From d56448431d891c453d6e29c49f05caf2759668ef Mon Sep 17 00:00:00 2001 From: Luis Date: Sat, 11 Feb 2017 16:51:46 +0100 Subject: [PATCH] Moving specific javascript from library to demo --- demos/components.html | 21 ++++++++++++++++++++- static/js/webslides.js | 20 -------------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/demos/components.html b/demos/components.html index ec19a67..49a7368 100644 --- a/demos/components.html +++ b/demos/components.html @@ -3134,7 +3134,26 @@ - + diff --git a/static/js/webslides.js b/static/js/webslides.js index b61eace..e176ad1 100644 --- a/static/js/webslides.js +++ b/static/js/webslides.js @@ -493,23 +493,3 @@ jQuery.fn.webslides = function(options) { // Return same object return obj; } - - -jQuery(document).ready(function($){ - // Tabs - jQuery('ul.tabs li').click(function(){ - var $this = jQuery(this); - var tab_id = $this.attr('data-tab'); - jQuery('ul.tabs li').removeClass('current'); - jQuery('.tab-content').removeClass('current'); - $this.addClass('current'); - jQuery("#"+tab_id).addClass('current'); - }); -}); - -// Prototype better, faster. To show the grid/baseline.png, press Enter on keyboard -jQuery(document).keypress(function(e) { - if(e.which == 13) { - jQuery('body').toggleClass('baseline').css('height', $(document).height()); - } -});