1(jQuery)(function ($) { 2 3 // lightbox 4 // $('[rel="lightbox"]').lightbox(); 5 6 // responsibility for video and youtube videos 7 var $allVideos = $("iframe[src^='//player.vimeo.com'], iframe[src^='//www.youtube.com'], iframe[src^='//www.youtube-nocookie.com'], object, embed"), 8 $fluidEl = $("figure"); 9 10 $allVideos.each(function() { 11 12 $(this) 13 // jQuery .data does not work on object/embed elements 14 .attr('data-aspectRatio', this.height / this.width) 15 .removeAttr('height') 16 .removeAttr('width'); 17 18 }); 19 20 $(window).resize(function() { 21 var newWidth = $fluidEl.width(); 22 $allVideos.each(function() { 23 var $el = $(this); 24 $el 25 .width(newWidth) 26 .height(newWidth * $el.attr('data-aspectRatio')); 27 28 }); 29 30 }).resize(); 31 32 function refreshTemperature() { 33 $.get( 'https://teplomer.novavesuchot.cz/json/sensors.json', function( data ) { 34 $('.js-temperature').html('<span>' + data.temperatures[0].t + '°C'); 35 }); 36 } 37 38 refreshTemperature(); 39 setInterval(function() { 40 refreshTemperature(); 41 }, 60000); 42 43 44 // EU cookies bar 45 jQuery('.eu-cookies button').click(function(event) { 46 event.preventDefault(); 47 var date = new Date(); 48 date.setFullYear(date.getFullYear() + 10); 49 document.cookie = 'eu-cookies=1; path=/; expires=' + date.toGMTString(); 50 jQuery('.eu-cookies').hide(); 51 }); 52 53 // open links in the new window 54 $('.externi_odkaz').click(function () { 55 this.target= '_blank'; 56 }) 57});
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.