Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started work on adding the tabbed interface plugin for v4.0
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW) | ||
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html | ||
*/ | ||
/* | ||
* tabbedinterface plugin | ||
*/ | ||
/*jshint unused: false */ | ||
/*global console */ | ||
(function( $, win, doc ) { | ||
"use strict"; | ||
var selector = ".wet-boew-tabbedinterface", | ||
init = function() { | ||
var pluginElements = $(this); | ||
win._timer.remove( selector ); | ||
// your code here... | ||
console.log(this); | ||
}; | ||
|
||
// Bind the init event of the plugin | ||
$(doc).on( "wb.timerpoke", selector, init ); | ||
|
||
// Add the timer poke to initialize the plugin | ||
win._timer.add( selector ); | ||
|
||
}( jQuery, window, document )); |