1$(function(){ 2 3 $("#slidertop").bxSlider({ 4 5 auto:true, 6 7 pause:8000, 8 9 pager:true, 10 11 controls:false, 12 13 autoHover:true 14 15 }); 16 17 18 19 $("header nav").stickyPanel({ 20 21 savePanelSpace: true 22 23 }); 24 25 26 27 28 29 30 31 $("#btntopcontainer").stickyPanel({ 32 33 savePanelSpace: false 34 35 }); 36 37 38 39 /* $("#customprice").stickyPanel({ 40 41 savePanelSpace: true 42 43 }); */ 44 45 46 47 $("#newsslider").bxSlider({ 48 49 slideWidth:288, 50 51 minSlides: 2, 52 53 maxSlides: 3, 54 55 slideMargin:25 56 57 }); 58 59 60 61 $('a.btnbacktop, a.gobacktop').click(function(e){ 62 63 $('html,body').scrollTo(0, 0); 64 65 e.preventDefault(); 66 67 }); 68 69 70 71 //video lightboxes 72 73 74 75 $(".openvideo").fancybox({ 76 77 type:'iframe', 78 79 width:750, 80 81 height:422, 82 83 autoResize:false, 84 85 autoSize:false 86 87 }) 88 89 90 91 //picture lightboxes 92 93 94 95 $(".fancybox, .lupaampliar").fancybox({ 96 minWidth: '10px', 97 minHeight: '10px' 98 }); 99 100 101 102 /*$(".fancybox, .lupaampliar").fancybox({ 103 fitToView: true, 104 beforeShow: function () { 105 106 $(".fancybox-image").css('webkitFilter','contrast(130%)'); 107 var proporcion = (1024/this.width); 108 this.width = 1024; 109 this.height = parseInt(this.height*proporcion); 110 } 111 }); 112 */ 113 114 115 /* Categories Submenu */ 116 117 118 119 $("nav.subcategories>ul>li>a").click(function(){ 120 121 122 123 if($(this).hasClass("abierto")){ 124 125 $(this).parent().children("ul").slideUp(); 126 127 $(this).removeClass("abierto"); 128 129 } else { 130 131 132 133 $("nav.subcategories>ul>li>a").removeClass("abierto"); 134 135 $("nav.subcategories>ul>li>ul").slideUp(); 136 137 $(this).parent().children("ul").slideToggle(); 138 139 $(this).toggleClass("abierto"); 140 141 142 143 } 144 145 if(!$(this).hasClass("nosubmenu")){ 146 147 return false; 148 149 } 150 151 152 153 }); 154 155 156 157 /* Login Button */ 158 159 $("#btnlogin").click(function(){ 160 161 162 163 $("#searchform, #donateform, #translateform").fadeOut('fast'); 164 165 $("#loginform").fadeToggle('fast'); 166 167 return false; 168 169 }); 170 171 172 173 /* Search Button */ 174 175 $("#btnsearch").click(function(){ 176 177 178 179 $("#loginform, #donateform, #translateform").fadeOut('fast'); 180 181 $("#searchform").fadeToggle('fast'); 182 183 return false; 184 185 }); 186 187 188 189 /* Donate Button */ 190 191 /* $("#btndonate").click(function(){ 192 193 194 195 $("#loginform, #searchform, #translateform").fadeOut('fast'); 196 197 $("#donateform").fadeToggle('fast'); 198 199 return false; 200 201 }); */ 202 203 204 /* translate Button */ 205 206 $("#btnlang").click(function(){ 207 208 209 210 $("#loginform, #searchform, #donateform").fadeOut('fast'); 211 212 $("#translateform").fadeToggle('fast'); 213 214 return false; 215 216 }); 217 218 219 220 /* Ads popup */ 221 222 223 224 $("#bottompopup").delay(5000).slideDown(); 225 226 227 228 $(".closebtn, .btn-no").click(function(){ 229 230 $(this).parent().slideUp(); 231 232 return false; 233 234 }); 235 236 237 238 /* back to top 2*/ 239 240 241 242 $(".backtotop").hide(); 243 244 245 246 var offset = 300; 247 248 var duration = 500; 249 250 jQuery(window).scroll(function() { 251 252 if (jQuery(this).scrollTop() > offset) { 253 254 jQuery('.backtotop').fadeIn(duration); 255 256 } else { 257 258 jQuery('.backtotop').fadeOut(duration); 259 260 } 261 262 }); 263 264 265 266 jQuery('.backtotop').click(function(event) { 267 268 event.preventDefault(); 269 270 jQuery('html, body').animate({scrollTop: 0}, duration); 271 272 return false; 273 274 }) 275 276 277$("a.opennote, a.viewnote").fancybox({ 278 type:'iframe', 279 width:550, 280 height:475, 281 scrolling : 'none', 282 autoSize: false, 283 //afterClose: function(){ window.parent.location.reload(); }, 284 autoResize:false 285 }); 286 287}); 288
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.