1var DYM = {}; 2// Cookies! 3DYM.cookie = { 4 write: function(name,value,days) { 5 if (days) { 6 var date = new Date(); 7 date.setTime(date.getTime()+(days*24*60*60*1000)); 8 var expires = "; expires="+date.toGMTString(); 9 } 10 else var expires = ""; 11 document.cookie = name+"="+value+expires+"; path=/"; 12 }, 13 14 read: function(name){ 15 var nameEQ = name + "="; 16 var ca = document.cookie.split(';'); 17 for(var i=0;i < ca.length;i++) { 18 var c = ca[i]; 19 while (c.charAt(0)==' ') c = c.substring(1,c.length); 20 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 21 } 22 return null; 23 }, 24 25 erase: function(name) { 26 SegMet.cookie.write(name,"",-1); 27 } 28}; 29 30 31(function($) { 32 $(function(){ 33 34 /** 35 * Open link in popup 36 */ 37 $(document).on('click.app', '[data-toggle="popup"]', function (e) { 38 e.preventDefault(); 39 var left = ($(window).width()/2) - (700/2), 40 top = ($(window).height()/2) - (500/2); 41 window.open($(this).attr('href'), $(this).data('share'), 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=700, height=500, top=' + top + ', left=' + left); 42 }); 43 44 // Set our Show/Hide Slider 45 // Format: .slider .slider-toggle .slider-content 46 // ------------------------------------------------ 47 $('.slider .slider-toggle').on('click', function(e){ 48 e.preventDefault(); 49 $(this).siblings('.slider-content').slideToggle(); 50 }) 51 52 53 /** 54 * Affix Code 55 */ 56 // Set timeout for slow-loading images 57 setTimeout(function(){ 58 var $sidebar = $('#sidebar-affix'); 59 if($sidebar.length){ 60 61 $sidebar.affix({ 62 offset: { 63 top: $sidebar.offset().top, 64 bottom: $('#footer').outerHeight(true) + 32 65 } 66 }); 67 68 } 69 70 }, 2000); 71 72 }); 73})( 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.