1/* 2Name: Toggle Searchbar 3Author: Marktime Media 4Author URI: http://marktimemedia.com 5Version: 0.1 6License: GPLv2 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License version 2, 10 as published by the Free Software Foundation. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the 15 GNU General Public License for more details. 16 17 The license for this software can likely be found here: 18 http://www.gnu.org/licenses/gpl-2.0.html 19*/ 20 21(function($){ 22 23/* Toggle Sidebar */ 24 25 function sidebarToggle() { 26 var sidebarWrap = $('.sidebar--inner'); // body 27 var sidebarToggle = $('.sidebar--toggle'); // button 28 29 $(document).on('click', '.sidebar-toggle-closed', function(){ // if toggle is closed, click button or to open 30 sidebarWrap.removeClass('sidebar-hidden'); 31 sidebarToggle.removeClass('sidebar-toggle-closed').addClass('sidebar-toggle-open'); 32 33 //console.log('clicked 1'); 34 }); 35 36 $(document).on('click', '.sidebar-toggle-open', function(){ // if toggle is open, close 37 sidebarWrap.addClass('sidebar-hidden'); 38 sidebarToggle.addClass('sidebar-toggle-closed').removeClass('sidebar-toggle-open'); 39 40 //console.log('clicked 2'); 41 }); 42 } 43 44 sidebarToggle(); 45 46})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.