1$(function(){ 2 $(".gridlayout-3cols").css("table-layout","inherit"); // gridlayout bug-fix 1. 3 setTimeout(function(){ 4 $(window).trigger("scroll"); 5 $(".gridlayout-3cols").css("table-layout","fixed"); // gridlayout bug-fix 2. 6 }, 5); 7 //if (window.currdate) $("#current_date").html( window.currdate ); 8 $("#current_date").html( GetTodayDate() ); 9 $("input[name='cht']").width(122); 10 $(".countrylist span:nth-child(5n)").append("<div></div>"); 11 console.log("print_link") 12 13 $(".print_link").click(function(){ 14 document.location = document.location.href + "?newsprint=I"; 15 }) 16}); 17 18var months = new Array("január", "február", "március","április","május","június","július","augusztus","szeptember","október","november","december") ; 19var days = new Array("vasárnap","hétfÅ","kedd","szerda","csütörtök","péntek","szombat"); 20function GetTodayDate() { 21 22 var tdate = new Date(); 23 var dayNum = tdate.getDay(); 24 var dd = ("" + tdate.getDate()).slice(-2); 25 var MM = ("0" + (tdate.getMonth() + 1)).slice(-2); 26 27 var yyyy = tdate.getFullYear(); 28 var xxx = yyyy + ". " + months[(tdate.getMonth() )] + " " + dd + ". "+days[dayNum]; 29 30 return xxx; 31 } 32 33 34 35// mobile stuf 36$(function(){ 37 w = $( window ).width(); 38 39 var $el_mobmnubtn = $(".mobile_menu_button"); 40 var $el_mobmenu = $(".mobmenu"); 41 42 43 $("<div id=\"mm_inside\"></div>").appendTo($el_mobmenu); 44 var $el_mobmenu_in = $("#mm_inside"); 45 46 var $mnu_pn_mainmenu = $("#header #menu ul.pncustommenumenu"); 47 var $mnu_countrymenu = $("#head-cont .cmenu ul.coumen"); 48 var $mnu_socialbuttons = $("#head-cont .social_buttons"); 49 50 var $mnu_tags = $("#head-cont .tagscontainer"); 51 var $mnu_countrylist = $("#head-cont .countrylist"); 52 53 54 function initializeMobileMenu(){ 55 populateMenu(); 56 $el_mobmnubtn.click(function(){ 57 mm_openclose(false); 58 }); 59 60 } 61 function populateMenu(){ 62 $($("#logincont").clone()).appendTo($el_mobmenu_in); 63 $($mnu_countrymenu.clone()).appendTo($el_mobmenu_in); 64 $($mnu_pn_mainmenu.clone()).appendTo($el_mobmenu_in); 65 66 $($mnu_countrylist.clone()).appendTo($el_mobmenu_in); 67 $($mnu_tags.clone()).appendTo($el_mobmenu_in); 68 69 70 $($mnu_socialbuttons.clone()).appendTo($el_mobmenu_in); 71 } 72 function mm_openclose(force_close){ 73 force_close = typeof force_close !== 'undefined' ? force_close : false; 74 var currentstate; 75 76 if(!force_close){ 77 currentstate = ($el_mobmenu.css("width").indexOf("0")==0) ? "closed" : "open"; 78 } else { 79 currentstate = "open"; 80 } 81 82 if(currentstate == "closed"){ 83 // the menu is currently closed. 84 // so we may want to open it. 85 menuopen = true; 86 var sct = $(document).scrollTop(); 87 88 $("<div class=\"mm_overlay\"></div>").prependTo("#d_mobile"); 89 $(".mm_overlay").click(function(){ 90 mm_openclose(true); 91 }); 92 $("#wrap").css("top", -$(document).scrollTop()); 93 $("#wrap").addClass("fixed"); 94 95 96 $el_mobmenu.animate({ 97 'width': "75%" 98 }, 250); 99 100 } else { 101 // the menu is currently open or have some strange state. 102 // regardless this, we should close it. 103 104 $(".mm_overlay").remove(); 105 $(".mm_overlay").unbind("click"); 106 $("#wrap").removeClass("fixed"); 107 $(document).scrollTop($("#wrap").css("top").replace("px", "") * -1); 108 $("#wrap").css("top", 0); 109 menuopen = false; 110 $el_mobmenu.animate({ 111 'width': "0" 112 }, 250); 113 } 114 115 } 116 117 var resizelock = false; 118 $(window).resize(function(){ 119 if( w != $( window ).width() ){ 120 121 if(!resizelock && menuopen){ 122 mm_openclose(true); 123 resizelock = true; 124 } 125 waitForFinalEvent(function() { 126 resizelock = false; 127 }, 500, "hello"); 128 129 w = $( window ).width(); 130 131 delete w; 132 } 133 134 $(window).trigger("scroll"); 135 }); 136 137 138 139 140 initializeMobileMenu(); 141 142 143 var w = 0; 144 var menuopen; 145 146 147 var waitForFinalEvent = (function() { 148 var timers = {}; 149 return function(callback, ms, uniqueId) { 150 if (!uniqueId) { 151 uniqueId = "Don't call this twice without a uniqueId"; 152 } 153 if (timers[uniqueId]) { 154 clearTimeout(timers[uniqueId]); 155 } 156 timers[uniqueId] = setTimeout(callback, ms); 157 }; 158 })(); 159}); 160 161// header magic 162 163$(function(){ 164 165 //if(template=="orszag" || template=="attr"){ 166 /* 167 $(window).scroll(function(){ 168 if($(document).scrollTop() > 150){ 169 $("#header").addClass("scrolled"); 170 } else if($(document).scrollTop() == 0){ 171 $("#header").removeClass("scrolled"); 172 } 173 $("#pagecont").css("paddingTop", $("#header").height()+15 + "px"); 174 }); 175 */ 176 //} 177 $("#totop").bind("click",function(){ 178 $("html, body").animate({ scrollTop: 0 }, 500); 179 }) 180 $(window).scroll(function(){ 181 if($(document).scrollTop() > 350){ 182 $("#totop").addClass("scrolled"); 183 } else if($(document).scrollTop() < 350){ 184 $("#totop").removeClass("scrolled"); 185 } 186 }) 187 188}); 189 190$(function(){ 191 var opened = false;
192 $("#mnuitm-search").on("click, mouseenter", function(){ 193 $("#shb_main").show(); 194 opened = true; 195 }); 196 $("#shb_main").on("mouseenter", function(){ 197 opened = true; 198 }); 199 $("#shd_attr").on("click, mouseenter", function(){ 200 $("#shb_attr").show(); 201 opened = true; 202 }); 203 $("#shd_news").on("click, mouseenter", function(){ 204 $("#shb_attr").hide(); 205 opened = true; 206 }); 207 $("#shd_news").on("mouseleave", function(){ 208 opened = false; 209 setTimeout(function(){ 210 if(!opened){ 211 $("#shb_main").hide(); 212 } 213 }, 500); 214 }); 215 $("#shb_attr").on("mouseleave", function(){ 216 $("#shb_attr").hide(); 217 opened = false; 218 setTimeout(function(){ 219 if(!opened){ 220 $("#shb_main").hide(); 221 } 222 }, 500); 223 }); 224 $("#mnuitm-search").on("mouseleave", function(){ 225 opened = false; 226 setTimeout(function(){ 227 if(!opened){ 228 $("#shb_main").hide(); 229 } 230 }, 500); 231 }); 232 $("#shb_main").on("mouseleave", function(){ 233 if(!opened){ 234 $("#shb_main").hide(); 235 } 236 }); 237}); 238 239 240 241$(document).ready(function(){ 242 $("#menu_1 li:first-child div a").addClass("material-icons"); 243}); 244 245/* 246$(document).ready(function(){ 247 setTimeout(function(){ 248 if(template=="news" && sth==true){ 249 document.querySelector('style').textContent += "@media screen and (min-width:721px) {#header.scrolled .left.bccc { margin-top: -25px !important;; }}"; 250 } 251 }, 750); 252}); 253*/ 254 255 256 257 258
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.