1 2 3 4 5var hah = false; 6var quitapone; 7var hideTwitterAttempts = 0; 8 9 10 11$(document).ready(inicia); 12function inicia(){ 13 14 15 16 17 $('.open-btn').click(abrecierra); 18 19 $('.close-btn').click(cierra); 20 $('.moduloemergente').click(cierra); 21 $('#navigation_trigger').click(menulateral); 22 $(".zoom").evenZoom(); 23 24 if ($('.fullimg.principal').length > 0) { 25 26 $('article').removeClass("noticia"); 27 $('article').addClass("encabecadofullimg noticia"); 28 } 29 30 31 32} 33 34 35var isiPad = navigator.userAgent.match(/iPad/i) != null; 36var isiPhone = navigator.userAgent.match(/iPhone/i) != null; 37var isiPod = navigator.userAgent.match(/iPod/i) != null; 38 39 40 41 42 43 44 45function abrecierra(){ 46 47 $('html').toggleClass('show-nav'); 48 49 } 50 51 52function cierra(){ 53 54 $('html').removeClass('show-nav'); 55 56 } 57 58function menulateral(){ 59 $('body').toggleClass('has-sidebar'); 60 } 61 62 63/* 64var $post = $(".animated-t"); 65setInterval(function(){ 66 $post.removeClass("animated-t"); 67}, 8200); 68 69var $post2 = $(".animated-t"); 70setInterval(function(){ 71 $post.addClass("animated-t"); 72}, 8255); 73 74*/ 75 76/********* SCROLL BAR POSITION *********/ 77 78$(function () { 79 80 var scroll = { 81 $body: $('html, body'), 82 $scrollbar: $(".scrollbar"), 83 $bar: $(".bar"), 84 documentheight: document.body.scrollHeight, 85 scrollbarwidth: $(".scrollbar").width(), 86 toscroll: 0, 87 oldscrolbarwidth: 0, 88 } 89 90 scroll.documentheight = document.body.scrollHeight; 91 scroll.toscroll = (scroll.documentheight - window.innerHeight) / scroll.scrollbarwidth; 92 $(scroll.$bar).css("width", $(window).scrollTop() / scroll.toscroll); 93 94 window.addEventListener('scroll', function () { 95 scroll.toscroll = (scroll.documentheight - window.innerHeight) / scroll.scrollbarwidth; 96 $(scroll.$bar).stop().animate({ width: $(window).scrollTop() / scroll.toscroll }, 1000, 'swing', function () { }); 97 }); 98 99 $(scroll.$scrollbar).click(function (e) { 100 scroll.oldscrolbarwidth = $(".scrollbar").width(); 101 scroll.toscroll = (scroll.documentheight - window.innerHeight) / scroll.scrollbarwidth; 102 scroll.$body.stop().animate({ scrollTop: e.pageX * scroll.toscroll }, 1000, 'swing', function () { }); 103 }); 104 105 $(window).resize(function () { 106 scroll.scrollbarwidth = $(".scrollbar").width(); 107 scroll.documentheight = document.body.scrollHeight; 108 scroll.toscroll = (scroll.documentheight - window.innerHeight) / scroll.scrollbarwidth; 109 $(scroll.$bar).css("width", $(window).scrollTop() / scroll.toscroll); 110 }); 111 112}); 113 114
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.