Skip to content

Commit

Permalink
Started work on adding the tabbed interface plugin for v4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
schindld committed Oct 24, 2013
1 parent 95faa8a commit b618d07
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/plugins/tabbedinterface/tabbedinterface.js
@@ -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 ));

0 comments on commit b618d07

Please sign in to comment.