1$(function () { 2 if (!ace.vars['old_ie']) 3 $('.date-timepicker').datetimepicker({ 4 format: 'DD.MM.YYYY HH:mm:ss', 5 extraFormats: ['YYYY-MM-DD HH:mm:ss'], 6 locale: 'cs', 7 icons: { 8 time: 'fa fa-clock-o', 9 date: 'fa fa-calendar', 10 up: 'fa fa-chevron-up', 11 down: 'fa fa-chevron-down', 12 previous: 'fa fa-chevron-left', 13 next: 'fa fa-chevron-right', 14 today: 'fa fa-arrows ', 15 clear: 'fa fa-trash', 16 close: 'fa fa-times' 17 } 18 }); 19 20 $('.input-file').ace_file_input({ 21 no_file: 'Soubor nenà vybrán ...', 22 btn_choose: 'Vyberte', 23 btn_change: 'zmÄnit', 24 droppable: true, 25 onchange: null, 26 thumbnail: true, //| true | large 27 //whitelist:'gif|png|jpg|jpeg' 28 //blacklist:'exe|php' 29 //onchange:'' 30 // 31 }); 32 33 $('.input-file-image').ace_file_input({ 34 no_file: 'Obrázek nenà vybrán ...', 35 btn_choose: 'Vyberte', 36 btn_change: 'zmÄnit', 37 droppable: true, 38 onchange: null, 39 thumbnail: true, //| true | large 40 //whitelist:'gif|png|jpg|jpeg' 41 //blacklist:'exe|php' 42 //onchange:'' 43 // 44 }); 45 46 $('.input-file-multi-image').ace_file_input({ 47 style: 'well', 48 btn_choose: 'Drop files here or click to choose', 49 btn_change: null, 50 no_icon: 'ace-icon fa fa-cloud-upload', 51 droppable: true, 52 thumbnail: 'small'//large | fit 53 //,icon_remove:null//set null, to hide remove/reset button 54 /**,before_change:function(files, dropped) { 55 //Check an example below 56 //or examples/file-upload.html 57 return true; 58 }*/ 59 /**,before_remove : function() { 60 return true; 61 }*/ 62 , 63 preview_error: function (filename, error_code) { 64 //name of the file that failed 65 //error_code values 66 //1 = 'FILE_LOAD_FAILED', 67 //2 = 'IMAGE_LOAD_FAILED', 68 //3 = 'THUMBNAIL_FAILED' 69 //alert(error_code); 70 } 71 72 }).on('change', function () { 73 //console.log($(this).data('ace_input_files')); 74 //console.log($(this).data('ace_input_method')); 75 }); 76}); 77 78$(document).ready(function () { 79 if ($('a.gallery').length > 0) { 80 $('a.gallery').colorbox({rel: 'gal', transition:"none", width:"75%", height:"75%"}); 81 } 82 83 if ($('a.titul-gallery').length > 0) { 84 $('a.titul-gallery').colorbox({rel: 'titul', transition:"none", width:"75%", height:"75%"}); 85 } 86 87 $('.thide').hide(); 88 $('.tshow').click(function () { 89 $(this).next('.thide').slideToggle("fast"); 90 }); 91 92 $('#nav_slider_events').each(function () { 93 var $active, $content, $links = $(this).find('a'); 94 $active = $($links.filter('[href="' + location.hash + '"]')[0] || $links[0]); 95 $active.addClass('active'); 96 $content = $($active.attr('href')); 97 98 $links.not($active).each(function () { 99 $($(this).attr('href')).hide(); 100 }); 101 $(this).on('click', 'a', function (e) { 102 $active.removeClass('active'); 103 $content.hide(); 104 $active = $(this); 105 $content = $($(this).attr('href')); 106 $active.addClass('active'); 107 $content.show(); 108 e.preventDefault(); 109 }); 110 }); 111 112 $('#nav_slider_starosta').each(function () { 113 var $active, $content, $links = $(this).find('a'); 114 $active = $($links.filter('[href="' + location.hash + '"]')[0] || $links[0]); 115 $active.addClass('active'); 116 $content = $($active.attr('href')); 117 118 $links.not($active).each(function () { 119 $($(this).attr('href')).hide(); 120 }); 121 $(this).on('click', 'a', function (e) { 122 $active.removeClass('active'); 123 $content.hide(); 124 $active = $(this); 125 $content = $($(this).attr('href')); 126 $active.addClass('active'); 127 $content.show(); 128 e.preventDefault(); 129 }); 130 }); 131 132 if ($('.article-body form#adminForm a').length > 0) { 133 var items = $('.article-body form#adminForm .title'); 134 $.each(items, function (i, v) { 135 var key = $(v).find('a').attr('href'); 136 var value = $(v).parent().find('.hits').text(); 137 $.ajax({
138 method: "GET", 139 url: "/ajax/abacus", 140 data: {key: key, value: value}, 141 dataType: "json" 142 }).done(function (data) { 143 $(v).parent().find('.hits').text(data.value); 144 }); 145 $(v).find('a').on('click', function () { 146 $.ajax({ 147 method: "GET", 148 url: "/ajax/abacus", 149 data: {key: key, increment: 1}, 150 dataType: "json" 151 }); 152 }); 153 }); 154 } 155 156 $('.submenu span.sub-arrow').on('click', function () { 157 $(this).next('ul').slideToggle('fast'); 158 if ($(this).parent('li').hasClass('open')) { 159 $(this).parent('li').removeClass('open'); 160 $(this).parent('li').removeClass('active'); 161 $(this).parent('li').addClass('no-open'); 162 } else { 163 $(this).parent('li').removeClass('no-open'); 164 $(this).parent('li').addClass('open'); 165 $(this).parent('li').addClass('active'); 166 } 167 }); 168 169 $('a').each(function() { 170 if($(this).attr('href')) { 171 var link = $(this).attr('href'); 172 if(link.indexOf("pdf") > 0) { 173 $(this).attr("onclick", "captureOutboundLink(this.href);"); 174 } 175 } 176 177 }); 178 179 $('iframe').each(function() { 180 if($(this).parent('div').width() > 0) { 181 $(this).attr('width', $(this).parent('div').width()); 182 } 183 }); 184});
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.