14 lines
438 B
JavaScript
14 lines
438 B
JavaScript
var instance = new FormDeflater(
|
|
document.getElementById('myform'),
|
|
['input'], // éléments à éviter (tagName)
|
|
['name', 'data-name'] // Attributs par ordre de priorité
|
|
);
|
|
|
|
/* (2) On récupère l'objet */
|
|
console.log( instance.deflate() );
|
|
|
|
|
|
Notification = new NotificationClass( $('#notification-container') );
|
|
|
|
Notification.show( 'warning', 'ERREUR', 'Une erreur de chargement est intervenue..' );
|