1function ZjistiVelikost(velikost) { 2 3 var aktaulniSirka; 4 var novaVelikost; 5 6 if ($(window).width() > 1100) { 7 aktaulniSirka = 1100 - 125; 8 } 9 else { 10 aktaulniSirka = $(window).width() - 125; 11 } 12 13 if(velikost == 'sirka') { 14 novaVelikost = aktaulniSirka; 15 } 16 else if(velikost == 'vyska') { 17 novaVelikost = (aktaulniSirka / 16) * 9; 18 } 19 20 return novaVelikost; 21 22} 23 24$(document).ready(function() { 25 26 $(".colorbox").colorbox({ 27 28 transition: "none", 29 fixed: true, 30 maxWidth: "100%", 31 maxHeight: "100%", 32 fadeOut: 300, 33 current: "{current} / {total}", 34 previous: "‹", 35 next: "›", 36 close: "zavÅÃt", 37 rel: function() { return $(this).data('rel')} 38 39 }); 40 41 $('.colorbox-video').colorbox({iframe: true, fixed: true, innerWidth: ZjistiVelikost('sirka'), innerHeight: ZjistiVelikost('vyska'), close: "zavÅÃt", href:function(){ 42 return this.href; 43 }}); 44 45 $('.colorbox-youtube').colorbox({iframe: true, fixed: true, innerWidth: ZjistiVelikost('sirka'), innerHeight: ZjistiVelikost('vyska'), close: "zavÅÃt", href:function(){ 46 var videoId = new RegExp('[\\?&]v=([^&#]*)').exec(this.href); 47 if (videoId && videoId[1]) { 48 return `https://www.youtube.com/embed/${videoId[1]}?HD=1;`; 49 } 50 }}); 51 52}); 53 54$(window).resize(function () { 55 56 $('.colorbox-youtube').colorbox.resize({ 57 innerWidth: ZjistiVelikost('sirka'), 58 innerHeight: ZjistiVelikost('vyska') 59 }); 60 61 $('.colorbox-video').colorbox.resize({ 62 innerWidth: ZjistiVelikost('sirka'), 63 innerHeight: ZjistiVelikost('vyska') 64 }); 65 66});
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.