1jQuery(document).ready(function($){ 2/*________________admin bar*/ 3 $('#toggle-cab-open, #wp-admin-bar-toggle-cab-close a').click(function(e){ 4 e.preventDefault(); 5 $('body.caffeine-admin-bar').toggleClass('cab-open'); 6 }); 7/*________________search form*/ 8 //$('.caffeine_search-button, .caffeine_search-menu_button a').click(function(e){ 9 //e.preventDefault(); 10 //$('.caffeine_search-wrapper').toggleClass('active').fadeToggle('1000'); 11 //if ($('.caffeine_search-wrapper').hasClass('active')) { 12 //$('.caffeine_search-wrapper .search-field').focus(); 13 //} 14 //}); 15/*________________search form*/ 16 if ($('body').hasClass('caffeine-spanner') && $('body').hasClass('search-results')) { 17 function getSearchVariable(variable) { 18 var query = window.location.search.substring(1); 19 var vars = query.split("&"); 20 for (var i=0;i<vars.length;i++) { 21 var pair = vars[i].split("="); 22 if(pair[0] == variable){return pair[1];} 23 } 24 return(false); 25 } 26 var query = getSearchVariable("s"); 27 var queries = query.split("+"); 28 29 for (i = 0; i < queries.length; i++) { 30 $('article p, article a, article li').each(function(){ 31 $(this).html( 32 $(this).html().replace(queries[i],'<span class="spanner">'+queries[i]+'</span>') 33 ); 34 }); 35 } 36 } 37/*________________developer mode*/ 38 // $('.devbox').draggable({ 39 // containment: 'window', 40 // scroll: false 41 // }); 42 43 enableGodMode(); 44 function enableGodMode() { 45 //help us obi 1 46 vh(); 47 vw(); 48 st_sl(); 49 redbox(); 50 closebox(); 51 } 52 function vh() { 53 x(); 54 $(window).resize(function(){x();}); 55 function x() { 56 $('.devbox_vh').html($(window).height()); 57 } 58 } 59 function vw() { 60 x(); 61 $(window).resize(function(){x();}); 62 function x() { 63 $('.devbox_vw').html($(window).width()); 64 } 65 } 66 function st_sl() { 67 x(); 68 $(window).scroll(function(){x();}); 69 function x() { 70 $('.devbox_st').html($(window).scrollTop()); 71 $('.devbox_sl').html($(window).scrollLeft()); 72 } 73 } 74 function redbox() { 75 $('.divred').click(function(){ 76 $('body').toggleClass('divred'); 77 }); 78 } 79 function closebox() { 80 $('#wp-admin-bar-toggle-dev-mode > a, .devbox .close-devbox').click(function(e){ 81 e.preventDefault(); 82 $('body').toggleClass('devmode-active'); 83 }); 84 } 85});
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.