examples
|
After Width: | Height: | Size: 533 KiB |
|
After Width: | Height: | Size: 314 KiB |
|
After Width: | Height: | Size: 364 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 118 KiB |
|
After Width: | Height: | Size: 262 KiB |
|
After Width: | Height: | Size: 294 KiB |
|
After Width: | Height: | Size: 193 KiB |
|
After Width: | Height: | Size: 412 KiB |
|
After Width: | Height: | Size: 459 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 163 KiB |
|
After Width: | Height: | Size: 278 KiB |
|
After Width: | Height: | Size: 217 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 214 KiB |
|
After Width: | Height: | Size: 355 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 163 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 488 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 170 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 226 KiB |
|
After Width: | Height: | Size: 189 KiB |
|
After Width: | Height: | Size: 233 KiB |
|
After Width: | Height: | Size: 218 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 250 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 403 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,2 @@
|
||||
//FEMINA namespace
|
||||
window.FEMINA=window.FEMINA||{},function(t){FEMINA.article=FEMINA.article||{};var e=function(e,r,n){FEMINA.ResponsiveBehaviour.call(this,e),this.containter=t(r),this.content=t(".calendar-content",this.containter),this.yearMonth=t(".year-month",this.containter),this.date=new Date,this.months=["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],this.currentMonth=this.date.getMonth(),this.displayedMonth=this.currentMonth,this.win=t(window),this.buttons={prev:t(".prev",this.container),next:t(".next",this.container),reset:t(".reset",this.container)},this.parse(n),this.initEvents()};e.prototype=Object.create(FEMINA.ResponsiveBehaviour.prototype),e.prototype.parent=FEMINA.ResponsiveBehaviour.prototype,e.prototype.constructor=e,FEMINA.article.Calendar=e,e.prototype.initEvents=function(){var t=this;this.buttons.prev.on("click."+this.id,function(){t.prev()}),this.buttons.next.on("click."+this.id,function(){t.next()}),this.buttons.reset.on("click."+this.id,function(){t.reset()})},e.prototype.parse=function(t){t=t||{},this.data={};for(var e in t)if(t.hasOwnProperty(e)){var r=new Date(e);if(isNaN(r.getTime())&&(r=new Date(parseInt(e))),isNaN(r.getTime()))console.error("Invalid date format",e);else{var n=r.getFullYear().toString()+r.getMonth().toString()+r.getDate().toString();this.data[n]=t[e]}}this.showMonth()},e.prototype.prev=function(){this.displayedMonth-=1,this.showMonth()},e.prototype.next=function(){this.displayedMonth+=1,this.showMonth()},e.prototype.reset=function(){this.displayedMonth=this.currentMonth,this.showMonth()},e.prototype.removeCellClickEvents=function(){t("a",this.content).off("click."+this.id)},e.prototype.addCellClickEvents=function(){var e=this;t("a",this.content).on("click."+this.id,function(r){r.preventDefault();var n=t(this).attr("href");e.showIframe(n)})},e.prototype.showIframe=function(e){var r=t('<div class="federer-naptar-overlay"><div class="overlay-content display-table"><div class="overlay-content-inner display-table-cell"><div id="frame-center" class="frame-centerer"><div class="close-button"></div><iframe style="overflow: scroll; -webkit-overflow-scrolling: touch;" src="'+e+'"></iframe></div></div></div></div>');t("body").append(r);var n=t(".federer-naptar-overlay iframe");t("#frame-center").focus(),t(".federer-naptar-overlay").css({top:t(document).scrollTop()+"px"}),this.win.height()<=n.height()&&(t("html").css({overflow:"hidden"}),t(".federer-naptar-overlay iframe").height(this.win.height())),t(".federer-naptar-overlay, .federer-naptar-overlay .close-button").click(function(){t(".federer-naptar-overlay").remove(),t("html").css({overflow:"auto"})}),t(".federer-naptar-overlay .frame-centerer").click(function(t){return t.stopPropagation(),!1})},e.prototype.showResetButton=function(){this.displayedMonth===this.currentMonth?this.buttons.reset.hide():this.buttons.reset.show()},e.prototype.showMonth=function(){this.removeCellClickEvents();var e=this.displayedMonth!=this.currentMonth?1:this.date.getDate(),r=new Date(this.date.getFullYear(),this.displayedMonth,e),n=this.date.getDate(),i=r.getMonth(),o=r.getFullYear(),s=new Date(o,i,1),a=new Date(o,i+1,1),h=s.getDay(),l=Math.round((a.getTime()-s.getTime())/864e5);this.yearMonth.html(o+" "+this.months[i]);var c="<table>";c+='<tr class="weekdays"><td>H</td><td>K</td><td>Sz</td><td>Cs</td><td>P</td><td>Szo</td><td>V</td></tr>',c+="<tr>";var d;for(d=0;d<h;d++)c+="<td> </td>";d=h;var e;for(e=1;e<=l;e++){var p=o.toString()+i.toString()+e.toString(),v=this.data[p];d%=7,0===d&&(c+="</tr><tr>");var u=t("<td>"),f="";if(this.displayedMonth===this.currentMonth&&e===n&&u.addClass("current-day"),v){var y=t("<a>");y.addClass("info-link"),y.attr("href",v),y.html(e),f=y}else f='<span class="no-link">'+e+"</span>";u.html(f),c+=u[0].outerHTML,d++}c+="</tr>",c+="</table>",this.content.html(c),this.showResetButton(),this.addCellClickEvents()}}(jQuery);
|
||||
@@ -0,0 +1 @@
|
||||
window.FEMINA=window.FEMINA||{},function(){var i=function(i){this.id=i,this.register()};i.prototype.register=function(){FEMINA.instances=FEMINA.instances||{},FEMINA.instances[this.id]=this},FEMINA.Instanceable=i}();
|
||||
@@ -0,0 +1 @@
|
||||
window.FEMINA=window.FEMINA||{},function(){var t=function(t){FEMINA.Instanceable.call(this,t),this.breakPoints={Mobile:{min:0,max:700},Desktop:{min:701,max:1/0}},this.active="Mobile",this.firstTime=!0;var o=this;$(window).resize(function(){o.checkResolution()})};t.prototype=Object.create(FEMINA.Instanceable.prototype),t.prototype.parent=FEMINA.Instanceable.prototype,t.prototype.constructor=t,FEMINA.ResponsiveBehaviour=t,t.prototype.checkResolution=function(){var t=$(window);for(var o in this.breakPoints)if(this.breakPoints.hasOwnProperty(o)){var i=this.breakPoints[o];t.width()>i.min&&t.width()<i.max&&(this.firstTime||o!==this.active?(this.firstTime=!1,this["stop"+this.active+"Behaviour"](),this["start"+o+"Behaviour"]()):this["do"+this.active+"Behaviour"](),this.active=o)}},t.prototype.startMobileBehaviour=function(){},t.prototype.doMobileBehaviour=function(){},t.prototype.stopMobileBehaviour=function(){},t.prototype.startDesktopBehaviour=function(){},t.prototype.doDesktopBehaviour=function(){},t.prototype.stopDesktopBehaviour=function(){}}();
|
||||
@@ -0,0 +1 @@
|
||||
window.FEMINA=window.FEMINA||{},function(e){FEMINA.article=FEMINA.article||{};var t=function(t,i){FEMINA.Instanceable.call(this,t);var o=e("iframe[src*='//player.vimeo.com'], iframe[src*='//www.youtube.com'], iframe[src*='//tv2.hu'], iframe[src*='//embed.indavideo.hu'], object, video, embed"),r=e(i);o.each(function(){e(this).attr("data-aspectRatio",e(this).height()/e(this).width()).removeAttr("height").removeAttr("width")}),e(window).resize(function(){var t=r.width();o.each(function(){var i=e(this);i.width(t).height(t*i.attr("data-aspectRatio"))})}).resize()};t.prototype=Object.create(FEMINA.ResponsiveBehaviour.prototype),t.prototype.parent=FEMINA.ResponsiveBehaviour.prototype,t.prototype.constructor=t,FEMINA.article.ResponsiveVideos=t}(jQuery);
|
||||
@@ -0,0 +1,3 @@
|
||||
var elemDiv = document.createElement('div');
|
||||
elemDiv.id ="mnxHDozyKPjB";
|
||||
document.body.appendChild(elemDiv);
|
||||
@@ -0,0 +1,2 @@
|
||||
!function(e,t){function n(){window.pageYOffset>0?document.getElementsByTagName("html")[0].classList.add("isScrolledDown"):document.body.classList.contains("slideshow")||document.getElementsByTagName("html")[0].classList.remove("isScrolledDown")}function o(e){if(e.relatedTarget&&e.target){var t=e.target.querySelector(".m-cf-indalista_container_list");if(-1!==["mid-small","medium","mid-large","large","x-large"].indexOf(Common.getBreakpoint().current.name)){var n=parseInt(e.target.getBoundingClientRect().width-e.relatedTarget.getBoundingClientRect().right)+"px";t.style.right=n}else t.style.right=""}}function r(e){var t=e.getBoundingClientRect(),n=document.body,o=document.documentElement,r=window.pageYOffset||o.scrollTop||n.scrollTop,a=window.pageXOffset||o.scrollLeft||n.scrollLeft,d=o.clientTop||n.clientTop||0,i=o.clientLeft||n.clientLeft||0,l=t.top+r-d,c=t.left+a-i;return{top:Math.round(l),left:Math.round(c)}}function a(e){d||(d=setTimeout(function(){d=null;var t=document.querySelector("[data-js-tracking-content-container]"),n=(window.pageYOffset+window.innerHeight-r(t).top)/t.getBoundingClientRect().height*100,o=5*Math.round(n/5);e.value!=o&&(e.value=5*Math.round(n/5))},250))}var d=null;document.addEventListener("DOMContentLoaded",function(r){var d=document.querySelector("[data-js-cemp-progress]"),i=document.querySelector("[data-js-tracking-content-container]");d&&i&&document.addEventListener("scroll",function(e){a(d)},!1);var l=document.querySelector("[data-js-dropdown=inda]");l&&e(l).on("shown.bs.dropdown",o),document.querySelector("[data-js-cemp-menu]")&&Navi.loadFeed(),window.addEventListener("scroll",t?t.throttle(n,100):n,!1),n()})}(window.jQuery,window._);
|
||||
//# sourceMappingURL=cemp_fejlec.ugly.js.map
|
||||
@@ -0,0 +1,38 @@
|
||||
'use strict';(function(){var cmpFile='noModule'in HTMLScriptElement.prototype?'cmp2.js':'cmp2-polyfilled.js';(function(){var cmpScriptElement=document.createElement('script');var firstScript=document.getElementsByTagName('script')[0];cmpScriptElement.async=true;cmpScriptElement.type='text/javascript';var cmpUrl;var tagUrl=document.currentScript.src;cmpUrl='https://cmp.inmobi.com/tcfv2/CMP_FILE?referer=sobors.hu'.replace('CMP_FILE',cmpFile);cmpScriptElement.src=cmpUrl;firstScript.parentNode.insertBefore(cmpScriptElement,firstScript);})();(function(){var css=""
|
||||
+" .qc-cmp-button { "
|
||||
+" background-color: #333 !important; "
|
||||
+" border-color: #333 !important; "
|
||||
+" } "
|
||||
+" .qc-cmp-button:hover { "
|
||||
+" border-color: #333 !important; "
|
||||
+" } "
|
||||
+" .qc-cmp-alt-action, "
|
||||
+" .qc-cmp-link { "
|
||||
+" color: #333 !important; "
|
||||
+" } "
|
||||
+" .qc-cmp-button.qc-cmp-secondary-button:hover { "
|
||||
+" background-color: #333 !important; "
|
||||
+" border-color: #333 !important; "
|
||||
+" } "
|
||||
+" .qc-cmp-button { "
|
||||
+" color: #fff !important; "
|
||||
+" } "
|
||||
+" .qc-cmp-button.qc-cmp-secondary-button:hover { "
|
||||
+" color: #fff !important; "
|
||||
+" } "
|
||||
+" .qc-cmp-button.qc-cmp-secondary-button { "
|
||||
+" color: #bababa !important; "
|
||||
+" } "
|
||||
+" .qc-cmp-button.qc-cmp-secondary-button { "
|
||||
+" background-color: #eee !important; "
|
||||
+" border-color: transparent !important; "
|
||||
+" } "
|
||||
+" .qc-cmp-ui a, "
|
||||
+" .qc-cmp-ui .qc-cmp-alt-action { "
|
||||
+" color: #333 !important; "
|
||||
+" } "
|
||||
+"#qc-cmp2-ui { max-height: 50%;}@media (min-width: 460px) { #qc-cmp2-ui { max-height: 100% !important; }}@media (min-width: 768px) { #qc-cmp2-ui { max-height: 350px !important; }}.qc-cmp2-footer .qc-cmp2-summary-buttons button span { overflow: unset !important;}"
|
||||
+""
|
||||
+"";var stylesElement=document.createElement('style');var re=new RegExp('"e;','g');css=css.replace(re,'"');stylesElement.type='text/css';if(stylesElement.styleSheet){stylesElement.styleSheet.cssText=css;}else{stylesElement.appendChild(document.createTextNode(css));}
|
||||
var head=document.head||document.getElementsByTagName('head')[0];head.appendChild(stylesElement);})();var autoDetectedLanguage='en';var gvlVersion=3;function splitLang(lang){if(lang.includes('pt')&&lang.length>2){return lang.split('-')[0]+'-'+lang.split('-')[1].toLowerCase();}
|
||||
return lang.length>2?lang.split('-')[0]:lang;};function isSupported(lang){var langs=['en','fr','de','it','es','da','nl','el','hu','pt','pt-br','pt-pt','ro','fi','pl','sk','sv','no','ru','bg','ca','cs','et','hr','lt','lv','mt','sl','tr','uk','zh','id','ko','ja','hi','vi','th','ms'];return langs.indexOf(lang)===-1?false:true;};if(gvlVersion===2&&isSupported(splitLang(document.documentElement.lang))){autoDetectedLanguage=splitLang(document.documentElement.lang);}else if(gvlVersion===3&&isSupported(document.documentElement.lang)){autoDetectedLanguage=document.documentElement.lang;}else if(isSupported(splitLang(navigator.language))){autoDetectedLanguage=splitLang(navigator.language);};var choiceMilliSeconds=(new Date).getTime();window.__tcfapi('init',2,function(){},{"coreConfig":{"uspVersion":1,"uspJurisdiction":["CA"],"uspLspact":"N","siteUuid":"342b23fa-7e3b-4651-b4b9-9816420ebfcf","themeUuid":"27a8fbdf-900d-44ad-9334-9efc4c596f3c","suppressCcpaLinks":false,"inmobiAccountId":"4z9XXyvnuPTjK","privacyMode":["GDPR","USP"],"gdprEncodingMode":"TCF_AND_GPP","mspaJurisdiction":"STATE_AND_NATIONAL","isCoveredTransaction":false,"mspaSignalMode":"OPT_OUT","ccpaViaUsp":false,"mspaOptOutPurposeIds":[1,2,3,4],"consentLocations":["WORLDWIDE"],"mspaAutoPopUp":true,"includeVendorsDisclosedSegment":true,"cmpVersion":"latest","hashCode":"Prba4w5Mxv2rAyQlhnCZdg","publisherCountryCode":"HU","publisherName":"Sóbors","vendorPurposeIds":[1,2,3,4,5,6,7,8,9,10,11],"vendorFeaturesIds":[1,2,3],"vendorPurposeLegitimateInterestIds":[7,8,9,2,10,11],"vendorSpecialFeaturesIds":[1,2],"vendorSpecialPurposesIds":[1,2,3],"googleEnabled":true,"consentScope":"service","thirdPartyStorageType":"iframe","consentOnSafari":false,"displayUi":"always","defaultToggleValue":"off","initScreenRejectButtonShowing":false,"initScreenCloseButtonShowing":false,"softOptInEnabled":false,"showSummaryView":true,"persistentConsentLinkLocation":3,"displayPersistentConsentLink":false,"uiLayout":"popup","publisherLogo":"https://sobors.hu/assets/images/sobors_logo.svg?qc-size=300,74","vendorListUpdateFreq":14,"publisherPurposeIds":[],"initScreenBodyTextOption":1,"publisherConsentRestrictionIds":[],"publisherLIRestrictionIds":[],"publisherPurposeLegitimateInterestIds":[],"stacks":[],"lang_":"hu","gvlVersion":3,"totalVendors":965,"gbcConfig":{"enabled":true,"urlPassThrough":false,"adsDataRedaction":false,"locations":["WORLDWIDE"],"applicablePurposes":[{"id":1,"defaultValue":"DENIED"},{"id":2,"defaultValue":"DENIED"},{"id":3,"defaultValue":"DENIED"},{"id":4,"defaultValue":"DENIED"},{"id":5,"defaultValue":"DENIED"},{"id":6,"defaultValue":"DENIED"},{"id":7,"defaultValue":"DENIED"}]},"legitimateInterestOptIn":true,"features":{"visitEvents":true,"advancedCustomizations":true},"translationUrls":{"common":"https://cmp.inmobi.com/tcfv2/translations/${language}.json","theme":"https://cmp.inmobi.com/custom-translations/4z9XXyvnuPTjK/27a8fbdf-900d-44ad-9334-9efc4c596f3c/${language}.json","all":"https://cmp.inmobi.com/consolidated-translations/4z9XXyvnuPTjK/27a8fbdf-900d-44ad-9334-9efc4c596f3c/${language}.json"},"gdprEnabledInUS":false,"optOutFromAllEnabled":false},"premiumUiLabels":{"uspDnsText":[""],"initScreenCustomLinks":[{"label":"Adatvédelmi tájékoztató","link":"https://femina.hu/info/adatvedelem/"},{"label":"Süti szabályzat","link":"https://femina.hu/info/sutiszabalyzat/"}]},"premiumProperties":{"googleWhitelist":[1]},"coreUiLabels":{"saveAndExitButton":"TOVÁBBI LEHETŐSÉGEK"},"theme":{"uxPrimaryButtonTextColor":"#fff","uxPrimaryButtonColor":"#333","uxSecondaryButtonTextColor":"#bababa","uxLinkColor":"#333"},"nonIabVendorsInfo":{}});})();
|
||||
@@ -0,0 +1 @@
|
||||
@media screen and (max-width:655px){.tiktok-embed{margin:0 25px}}.tiktok-embed{position:relative;display:block;width:100%;margin:18px auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;line-height:1.15;overflow:hidden;text-align:center;-webkit-text-size-adjust:100%;font-family:"proxima-regular","PingFangSC",sans-serif;font-weight:400}.tiktok-embed ::-webkit-scrollbar{display:none}.tiktok-embed>section{position:relative;border:1px solid rgba(22,24,35,.12);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:8px;text-align:left}.tiktok-embed>section>*{display:block;padding:0 12px}.tiktok-embed>section>:first-child{padding-top:12px}.tiktok-embed>section>:last-child{padding-bottom:12px}.tiktok-embed>section:before{content:"";display:block;width:100%;height:300px;border-radius:8px;background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(252,252,252,0)),color-stop(50%,#fcfcfc),to(rgba(252,252,252,0))),-webkit-gradient(linear,left top,left bottom,color-stop(100%,#f8f8f8),color-stop(0,transparent));background-image:-webkit-linear-gradient(left,rgba(252,252,252,0)0,#fcfcfc 50%,rgba(252,252,252,0)100%),-webkit-linear-gradient(#f8f8f8 100%,transparent 0);background-image:-moz-linear-gradient(left,rgba(252,252,252,0)0,#fcfcfc 50%,rgba(252,252,252,0)100%),-moz-linear-gradient(#f8f8f8 100%,transparent 0);background-image:linear-gradient(90deg,rgba(252,252,252,0)0,#fcfcfc 50%,rgba(252,252,252,0)100%),linear-gradient(#f8f8f8 100%,transparent 0);-webkit-background-size:300px 100%,100%100%;background-size:300px 100%,100%100%;background-position:-160%0,0 0;background-repeat:no-repeat;-webkit-animation:loading 1.5s infinite;-moz-animation:loading 1.5s infinite;animation:loading 1.5s infinite}.tiktok-embed>section:after{content:"";position:absolute;top:1em;right:1em;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDUiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA0NSA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMzLjA4NiAwSDI0LjIwNzRWMzUuNDIwM0MyNC4yMDc0IDM5LjY0MDYgMjAuNzkyNiA0My4xMDcyIDE2LjU0MyA0My4xMDcyQzEyLjI5MzQgNDMuMTA3MiA4Ljg3ODU4IDM5LjY0MDYgOC44Nzg1OCAzNS40MjAzQzguODc4NTggMzEuMjc1NCAxMi4yMTc1IDI3Ljg4NDEgMTYuMzE1MyAyNy43MzMzVjE4Ljg0MDZDNy4yODQ5OSAxOC45OTEzIDAgMjYuMzAxNCAwIDM1LjQyMDNDMCA0NC42MTQ1IDcuNDM2NzYgNTIgMTYuNjE4OSA1MkMyNS44MDEgNTIgMzMuMjM3OCA0NC41MzkxIDMzLjIzNzggMzUuNDIwM1YxNy4yNThDMzYuNTc2NyAxOS42Njk2IDQwLjY3NDUgMjEuMTAxNCA0NSAyMS4xNzY4VjEyLjI4NDFDMzguMzIyMSAxMi4wNTggMzMuMDg2IDYuNjMxODggMzMuMDg2IDBaIiBmaWxsPSIjMTYxODIzIi8+Cjwvc3ZnPgo=);display:block;width:30px;height:30px;background-repeat:no-repeat;background-position:center;-webkit-background-size:contain;background-size:contain}.tiktok-embed>a{display:inline-block;width:100%;height:44px;line-height:44px;text-align:center;border-radius:16px;border:1px solid rgba(0,0,0,.12);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-top:8px}.tiktok-embed>a svg{width:20px;height:20px;opacity:.5;vertical-align:middle;margin-top:-2px}.tiktok-embed>a>span{color:rgba(0,0,0,.5);font-size:14px;font-weight:500;margin-left:4px}@-webkit-keyframes loading{to{background-position:260%0,0 0}}@-moz-keyframes loading{to{background-position:260%0,0 0}}@keyframes loading{to{background-position:260%0,0 0}}.tiktok-embed iframe{border:none}.tiktok-embed a,.tiktok-embed a:link,.tiktok-embed a:visited,.tiktok-embed a:focus,.tiktok-embed a:hover,.tiktok-embed a:active{color:#000;text-decoration:none;background-color:rgba(0,0,0,0)}.tiktok-embed img{border-style:none}.tiktok-embed button,.tiktok-embed input{font-family:inherit;font-size:100%;line-height:1.15;margin:0;overflow:visible;text-transform:none}.tiktok-embed button,.tiktok-embed [type=button],.tiktok-embed [type=reset],.tiktok-embed [type=submit]{-webkit-appearance:button}.tiktok-embed button::-moz-focus-inner,.tiktok-embed [type=button]::-moz-focus-inner,.tiktok-embed [type=reset]::-moz-focus-inner,.tiktok-embed [type=submit]::-moz-focus-inner{border-style:none;padding:0}.tiktok-embed button:-moz-focusring,.tiktok-embed [type=button]:-moz-focusring,.tiktok-embed [type=reset]:-moz-focusring,.tiktok-embed [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.tiktok-embed [hidden]{display:none}
|
||||
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- saved from url=(0035)https://cdn.contrec.index.hu/f.html -->
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<script>
|
||||
function setCookie(cvalue) {
|
||||
var exdays = 28;
|
||||
var cname = 'tpc1';
|
||||
var d = new Date();
|
||||
d.setTime(d.getTime() + (exdays*24*60*60*1000));
|
||||
var expires = "expires="+ d.toUTCString();
|
||||
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=None;Secure";
|
||||
}
|
||||
|
||||
function getCookie() {
|
||||
let cname = 'tpc1';
|
||||
let name = cname + "=";
|
||||
let decodedCookie = decodeURIComponent(document.cookie);
|
||||
let ca = decodedCookie.split(';');
|
||||
for(let i = 0; i <ca.length; i++) {
|
||||
let c = ca[i];
|
||||
while (c.charAt(0) == ' ') {
|
||||
c = c.substring(1);
|
||||
}
|
||||
if (c.indexOf(name) == 0) {
|
||||
return c.substring(name.length, c.length);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script>
|
||||
|
||||
var cookieContent = getCookie();
|
||||
window.top.postMessage(cookieContent, '*');
|
||||
|
||||
function displayMessage (evt) {
|
||||
if (evt.origin=="https://index.hu" || evt.origin=="https://divany.hu" || evt.origin=="https://velvet.hu" || evt.origin=="https://totalcar.hu" || evt.origin=="https://totalbike.hu" || evt.origin=="https://femina.hu" || evt.origin=="https://sobors.hu" || evt.origin=="https://port.hu" || evt.origin=="https://napi.hu" || evt.origin=="https://www.napi.hu" || evt.origin=="https://economx.hu" || evt.origin=="https://www.economx.hu" || evt.origin=="https://tenyek.hu" || evt.origin=="https://www.azenmacskam.hu" || evt.origin=="https://azenmacskam.hu" || evt.origin=="https://welovebudapest.com" || evt.origin=="https://welovebalaton.hu" || evt.origin=="https://www.azenkutyam.hu" || evt.origin=="https://azenkutyam.hu" || evt.origin=="https://www.mediafuture.hu" || evt.origin=="https://mediafuture.hu" || evt.origin=="https://www.welovedogz.hu" || evt.origin=="https://welovedogz.hu" || evt.origin=="https://www.welovecatz.hu" || evt.origin=="https://welovecatz.hu" || evt.origin=="https://www.mandiner.hu" || evt.origin=="https://blikk.hu" || evt.origin=="https://www.blikk.hu" || evt.origin=="https://mandiner.hu" || evt.origin=="https://kiskegyed.hu" || evt.origin=="https://www.kiskegyed.hu" || evt.origin=="https://egeszsegkalauz.hu" || evt.origin=="https://www.egeszsegkalauz.hu" || evt.origin=="https://glamour.hu" || evt.origin=="https://www.glamour.hu") {
|
||||
if (evt.data.search('ASQW#')>=0) {
|
||||
setCookie(evt.data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (window.addEventListener) {
|
||||
window.addEventListener("message", displayMessage, false);
|
||||
}else{
|
||||
window.attachEvent("onmessage", displayMessage);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body></html>
|
||||
|
After Width: | Height: | Size: 4.7 MiB |
@@ -0,0 +1 @@
|
||||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=950)}({950:function(e,t){try{var n;const e=JSON.parse(null===(n=document.getElementById("__FRONTITY_PUBLIC_PATH__CONFIG"))||void 0===n?void 0:n.textContent).__FRONTITY_PUBLIC_PATH__;window.__FRONTITY_PUBLIC_PATH__=e}catch(e){console.warn(e)}}});
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
@@ -0,0 +1 @@
|
||||
.foundation-mq{font-family:"xx-small=0em&x-small=22.5em&small=31.25em&mid-small=43.75em&medium=64em&mid-large=77.8125em&large=100em&x-large=118.75em"}.c-human_title{color:#999;display:block;font-size:16px;font-style:italic;line-height:1.25;margin-bottom:6px}.c-human_details{-webkit-align-items:center;-ms-flex-align:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex}.c-human_details_portrait{outline:0}.c-human_details_portrait:hover,.c-human_details_portrait:focus{opacity:.85}.c-human_details_portrait_photo{display:block}.c-human_details_infos_name{display:block;line-height:1.25;outline:0}.c-human_details_infos_follow_button{border-radius:0 !important;display:block !important;height:19px !important;width:78px !important}.m-relatedbox{background-color:#fff;font-size:16px;line-height:24px;margin-top:16px;position:relative;text-align:left;width:100%}.m-relatedbox:after{bottom:1px;content:" ";display:block;height:24px;left:1px;position:absolute;z-index:1;width:calc(100% - 2px)}.m-relatedbox_title{color:#fff;font-weight:700;height:42px;line-height:42px;padding-left:16px;text-transform:uppercase}.m-relatedbox_list{max-height:600px;overflow:auto;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px}.m-relatedbox_list--outer{border-right:1px solid #ccc;border-bottom:1px solid #ccc;border-left:1px solid #ccc}.m-relatedbox_list_item:not(:last-child){border-bottom:1px solid #e6e6e6;padding-bottom:16px}.m-relatedbox_list_item:not(:first-child){margin-top:16px}.m-relatedbox_list_item_title{color:#323232;padding-left:10px}.m-relatedbox_list_item_text{color:#323232;font-size:16px;line-height:24px;padding-top:10px}.m-relatedbox_list_item_text:empty{display:none}
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="3px" height="17px" viewBox="0 0 3 17" style="enable-background:new 0 0 3 17;" xml:space="preserve">
|
||||
<rect y="5" width="3" height="12"/>
|
||||
<rect width="3" height="3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 540 B |
@@ -0,0 +1,864 @@
|
||||
/*
|
||||
* jQuery Mobile v1.4.5
|
||||
* http://jquerymobile.com
|
||||
*
|
||||
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
*/
|
||||
|
||||
(function ( root, doc, factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define( [ "jquery" ], function ( $ ) {
|
||||
factory( $, root, doc );
|
||||
return $.mobile;
|
||||
});
|
||||
} else {
|
||||
// Browser globals
|
||||
factory( root.jQuery, root, doc );
|
||||
}
|
||||
}( this, document, function ( jQuery, window, document, undefined ) {// This plugin is an experiment for abstracting away the touch and mouse
|
||||
// events so that developers don't have to worry about which method of input
|
||||
// the device their document is loaded on supports.
|
||||
//
|
||||
// The idea here is to allow the developer to register listeners for the
|
||||
// basic mouse events, such as mousedown, mousemove, mouseup, and click,
|
||||
// and the plugin will take care of registering the correct listeners
|
||||
// behind the scenes to invoke the listener at the fastest possible time
|
||||
// for that device, while still retaining the order of event firing in
|
||||
// the traditional mouse environment, should multiple handlers be registered
|
||||
// on the same element for different events.
|
||||
//
|
||||
// The current version exposes the following virtual events to jQuery bind methods:
|
||||
// "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
|
||||
|
||||
(function( $, window, document, undefined ) {
|
||||
|
||||
var dataPropertyName = "virtualMouseBindings",
|
||||
touchTargetPropertyName = "virtualTouchID",
|
||||
virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
|
||||
touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
|
||||
mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
|
||||
mouseEventProps = $.event.props.concat( mouseHookProps ),
|
||||
activeDocHandlers = {},
|
||||
resetTimerID = 0,
|
||||
startX = 0,
|
||||
startY = 0,
|
||||
didScroll = false,
|
||||
clickBlockList = [],
|
||||
blockMouseTriggers = false,
|
||||
blockTouchTriggers = false,
|
||||
eventCaptureSupported = "addEventListener" in document,
|
||||
$document = $( document ),
|
||||
nextTouchID = 1,
|
||||
lastTouchID = 0, threshold,
|
||||
i;
|
||||
|
||||
$.vmouse = {
|
||||
moveDistanceThreshold: 10,
|
||||
clickDistanceThreshold: 10,
|
||||
resetTimerDuration: 1500
|
||||
};
|
||||
|
||||
function getNativeEvent( event ) {
|
||||
|
||||
while ( event && typeof event.originalEvent !== "undefined" ) {
|
||||
event = event.originalEvent;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
function createVirtualEvent( event, eventType ) {
|
||||
|
||||
var t = event.type,
|
||||
oe, props, ne, prop, ct, touch, i, j, len;
|
||||
|
||||
event = $.Event( event );
|
||||
event.type = eventType;
|
||||
|
||||
oe = event.originalEvent;
|
||||
props = $.event.props;
|
||||
|
||||
// addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
|
||||
// https://github.com/jquery/jquery-mobile/issues/3280
|
||||
if ( t.search( /^(mouse|click)/ ) > -1 ) {
|
||||
props = mouseEventProps;
|
||||
}
|
||||
|
||||
// copy original event properties over to the new event
|
||||
// this would happen if we could call $.event.fix instead of $.Event
|
||||
// but we don't have a way to force an event to be fixed multiple times
|
||||
if ( oe ) {
|
||||
for ( i = props.length, prop; i; ) {
|
||||
prop = props[ --i ];
|
||||
event[ prop ] = oe[ prop ];
|
||||
}
|
||||
}
|
||||
|
||||
// make sure that if the mouse and click virtual events are generated
|
||||
// without a .which one is defined
|
||||
if ( t.search(/mouse(down|up)|click/) > -1 && !event.which ) {
|
||||
event.which = 1;
|
||||
}
|
||||
|
||||
if ( t.search(/^touch/) !== -1 ) {
|
||||
ne = getNativeEvent( oe );
|
||||
t = ne.touches;
|
||||
ct = ne.changedTouches;
|
||||
touch = ( t && t.length ) ? t[0] : ( ( ct && ct.length ) ? ct[ 0 ] : undefined );
|
||||
|
||||
if ( touch ) {
|
||||
for ( j = 0, len = touchEventProps.length; j < len; j++) {
|
||||
prop = touchEventProps[ j ];
|
||||
event[ prop ] = touch[ prop ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return event;
|
||||
}
|
||||
|
||||
function getVirtualBindingFlags( element ) {
|
||||
|
||||
var flags = {},
|
||||
b, k;
|
||||
|
||||
while ( element ) {
|
||||
|
||||
b = $.data( element, dataPropertyName );
|
||||
|
||||
for ( k in b ) {
|
||||
if ( b[ k ] ) {
|
||||
flags[ k ] = flags.hasVirtualBinding = true;
|
||||
}
|
||||
}
|
||||
element = element.parentNode;
|
||||
}
|
||||
return flags;
|
||||
}
|
||||
|
||||
function getClosestElementWithVirtualBinding( element, eventType ) {
|
||||
var b;
|
||||
while ( element ) {
|
||||
|
||||
b = $.data( element, dataPropertyName );
|
||||
|
||||
if ( b && ( !eventType || b[ eventType ] ) ) {
|
||||
return element;
|
||||
}
|
||||
element = element.parentNode;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function enableTouchBindings() {
|
||||
blockTouchTriggers = false;
|
||||
}
|
||||
|
||||
function disableTouchBindings() {
|
||||
blockTouchTriggers = true;
|
||||
}
|
||||
|
||||
function enableMouseBindings() {
|
||||
lastTouchID = 0;
|
||||
clickBlockList.length = 0;
|
||||
blockMouseTriggers = false;
|
||||
|
||||
// When mouse bindings are enabled, our
|
||||
// touch bindings are disabled.
|
||||
disableTouchBindings();
|
||||
}
|
||||
|
||||
function disableMouseBindings() {
|
||||
// When mouse bindings are disabled, our
|
||||
// touch bindings are enabled.
|
||||
enableTouchBindings();
|
||||
}
|
||||
|
||||
function startResetTimer() {
|
||||
clearResetTimer();
|
||||
resetTimerID = setTimeout( function() {
|
||||
resetTimerID = 0;
|
||||
enableMouseBindings();
|
||||
}, $.vmouse.resetTimerDuration );
|
||||
}
|
||||
|
||||
function clearResetTimer() {
|
||||
if ( resetTimerID ) {
|
||||
clearTimeout( resetTimerID );
|
||||
resetTimerID = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function triggerVirtualEvent( eventType, event, flags ) {
|
||||
var ve;
|
||||
|
||||
if ( ( flags && flags[ eventType ] ) ||
|
||||
( !flags && getClosestElementWithVirtualBinding( event.target, eventType ) ) ) {
|
||||
|
||||
ve = createVirtualEvent( event, eventType );
|
||||
|
||||
$( event.target).trigger( ve );
|
||||
}
|
||||
|
||||
return ve;
|
||||
}
|
||||
|
||||
function mouseEventCallback( event ) {
|
||||
var touchID = $.data( event.target, touchTargetPropertyName ),
|
||||
ve;
|
||||
|
||||
if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ) {
|
||||
ve = triggerVirtualEvent( "v" + event.type, event );
|
||||
if ( ve ) {
|
||||
if ( ve.isDefaultPrevented() ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
if ( ve.isPropagationStopped() ) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
if ( ve.isImmediatePropagationStopped() ) {
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleTouchStart( event ) {
|
||||
|
||||
var touches = getNativeEvent( event ).touches,
|
||||
target, flags, t;
|
||||
|
||||
if ( touches && touches.length === 1 ) {
|
||||
|
||||
target = event.target;
|
||||
flags = getVirtualBindingFlags( target );
|
||||
|
||||
if ( flags.hasVirtualBinding ) {
|
||||
|
||||
lastTouchID = nextTouchID++;
|
||||
$.data( target, touchTargetPropertyName, lastTouchID );
|
||||
|
||||
clearResetTimer();
|
||||
|
||||
disableMouseBindings();
|
||||
didScroll = false;
|
||||
|
||||
t = getNativeEvent( event ).touches[ 0 ];
|
||||
startX = t.pageX;
|
||||
startY = t.pageY;
|
||||
|
||||
triggerVirtualEvent( "vmouseover", event, flags );
|
||||
triggerVirtualEvent( "vmousedown", event, flags );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleScroll( event ) {
|
||||
if ( blockTouchTriggers ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !didScroll ) {
|
||||
triggerVirtualEvent( "vmousecancel", event, getVirtualBindingFlags( event.target ) );
|
||||
}
|
||||
|
||||
didScroll = true;
|
||||
startResetTimer();
|
||||
}
|
||||
|
||||
function handleTouchMove( event ) {
|
||||
if ( blockTouchTriggers ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var t = getNativeEvent( event ).touches[ 0 ],
|
||||
didCancel = didScroll,
|
||||
moveThreshold = $.vmouse.moveDistanceThreshold,
|
||||
flags = getVirtualBindingFlags( event.target );
|
||||
|
||||
didScroll = didScroll ||
|
||||
( Math.abs( t.pageX - startX ) > moveThreshold ||
|
||||
Math.abs( t.pageY - startY ) > moveThreshold );
|
||||
|
||||
if ( didScroll && !didCancel ) {
|
||||
triggerVirtualEvent( "vmousecancel", event, flags );
|
||||
}
|
||||
|
||||
triggerVirtualEvent( "vmousemove", event, flags );
|
||||
startResetTimer();
|
||||
}
|
||||
|
||||
function handleTouchEnd( event ) {
|
||||
if ( blockTouchTriggers ) {
|
||||
return;
|
||||
}
|
||||
|
||||
disableTouchBindings();
|
||||
|
||||
var flags = getVirtualBindingFlags( event.target ),
|
||||
ve, t;
|
||||
triggerVirtualEvent( "vmouseup", event, flags );
|
||||
|
||||
if ( !didScroll ) {
|
||||
ve = triggerVirtualEvent( "vclick", event, flags );
|
||||
if ( ve && ve.isDefaultPrevented() ) {
|
||||
// The target of the mouse events that follow the touchend
|
||||
// event don't necessarily match the target used during the
|
||||
// touch. This means we need to rely on coordinates for blocking
|
||||
// any click that is generated.
|
||||
t = getNativeEvent( event ).changedTouches[ 0 ];
|
||||
clickBlockList.push({
|
||||
touchID: lastTouchID,
|
||||
x: t.clientX,
|
||||
y: t.clientY
|
||||
});
|
||||
|
||||
// Prevent any mouse events that follow from triggering
|
||||
// virtual event notifications.
|
||||
blockMouseTriggers = true;
|
||||
}
|
||||
}
|
||||
triggerVirtualEvent( "vmouseout", event, flags);
|
||||
didScroll = false;
|
||||
|
||||
startResetTimer();
|
||||
}
|
||||
|
||||
function hasVirtualBindings( ele ) {
|
||||
var bindings = $.data( ele, dataPropertyName ),
|
||||
k;
|
||||
|
||||
if ( bindings ) {
|
||||
for ( k in bindings ) {
|
||||
if ( bindings[ k ] ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function dummyMouseHandler() {}
|
||||
|
||||
function getSpecialEventObject( eventType ) {
|
||||
var realType = eventType.substr( 1 );
|
||||
|
||||
return {
|
||||
setup: function(/* data, namespace */) {
|
||||
// If this is the first virtual mouse binding for this element,
|
||||
// add a bindings object to its data.
|
||||
|
||||
if ( !hasVirtualBindings( this ) ) {
|
||||
$.data( this, dataPropertyName, {} );
|
||||
}
|
||||
|
||||
// If setup is called, we know it is the first binding for this
|
||||
// eventType, so initialize the count for the eventType to zero.
|
||||
var bindings = $.data( this, dataPropertyName );
|
||||
bindings[ eventType ] = true;
|
||||
|
||||
// If this is the first virtual mouse event for this type,
|
||||
// register a global handler on the document.
|
||||
|
||||
activeDocHandlers[ eventType ] = ( activeDocHandlers[ eventType ] || 0 ) + 1;
|
||||
|
||||
if ( activeDocHandlers[ eventType ] === 1 ) {
|
||||
$document.bind( realType, mouseEventCallback );
|
||||
}
|
||||
|
||||
// Some browsers, like Opera Mini, won't dispatch mouse/click events
|
||||
// for elements unless they actually have handlers registered on them.
|
||||
// To get around this, we register dummy handlers on the elements.
|
||||
|
||||
$( this ).bind( realType, dummyMouseHandler );
|
||||
|
||||
// For now, if event capture is not supported, we rely on mouse handlers.
|
||||
if ( eventCaptureSupported ) {
|
||||
// If this is the first virtual mouse binding for the document,
|
||||
// register our touchstart handler on the document.
|
||||
|
||||
activeDocHandlers[ "touchstart" ] = ( activeDocHandlers[ "touchstart" ] || 0) + 1;
|
||||
|
||||
if ( activeDocHandlers[ "touchstart" ] === 1 ) {
|
||||
$document.bind( "touchstart", handleTouchStart )
|
||||
.bind( "touchend", handleTouchEnd )
|
||||
|
||||
// On touch platforms, touching the screen and then dragging your finger
|
||||
// causes the window content to scroll after some distance threshold is
|
||||
// exceeded. On these platforms, a scroll prevents a click event from being
|
||||
// dispatched, and on some platforms, even the touchend is suppressed. To
|
||||
// mimic the suppression of the click event, we need to watch for a scroll
|
||||
// event. Unfortunately, some platforms like iOS don't dispatch scroll
|
||||
// events until *AFTER* the user lifts their finger (touchend). This means
|
||||
// we need to watch both scroll and touchmove events to figure out whether
|
||||
// or not a scroll happenens before the touchend event is fired.
|
||||
|
||||
.bind( "touchmove", handleTouchMove )
|
||||
.bind( "scroll", handleScroll );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
teardown: function(/* data, namespace */) {
|
||||
// If this is the last virtual binding for this eventType,
|
||||
// remove its global handler from the document.
|
||||
|
||||
--activeDocHandlers[ eventType ];
|
||||
|
||||
if ( !activeDocHandlers[ eventType ] ) {
|
||||
$document.unbind( realType, mouseEventCallback );
|
||||
}
|
||||
|
||||
if ( eventCaptureSupported ) {
|
||||
// If this is the last virtual mouse binding in existence,
|
||||
// remove our document touchstart listener.
|
||||
|
||||
--activeDocHandlers[ "touchstart" ];
|
||||
|
||||
if ( !activeDocHandlers[ "touchstart" ] ) {
|
||||
$document.unbind( "touchstart", handleTouchStart )
|
||||
.unbind( "touchmove", handleTouchMove )
|
||||
.unbind( "touchend", handleTouchEnd )
|
||||
.unbind( "scroll", handleScroll );
|
||||
}
|
||||
}
|
||||
|
||||
var $this = $( this ),
|
||||
bindings = $.data( this, dataPropertyName );
|
||||
|
||||
// teardown may be called when an element was
|
||||
// removed from the DOM. If this is the case,
|
||||
// jQuery core may have already stripped the element
|
||||
// of any data bindings so we need to check it before
|
||||
// using it.
|
||||
if ( bindings ) {
|
||||
bindings[ eventType ] = false;
|
||||
}
|
||||
|
||||
// Unregister the dummy event handler.
|
||||
|
||||
$this.unbind( realType, dummyMouseHandler );
|
||||
|
||||
// If this is the last virtual mouse binding on the
|
||||
// element, remove the binding data from the element.
|
||||
|
||||
if ( !hasVirtualBindings( this ) ) {
|
||||
$this.removeData( dataPropertyName );
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Expose our custom events to the jQuery bind/unbind mechanism.
|
||||
|
||||
for ( i = 0; i < virtualEventNames.length; i++ ) {
|
||||
$.event.special[ virtualEventNames[ i ] ] = getSpecialEventObject( virtualEventNames[ i ] );
|
||||
}
|
||||
|
||||
// Add a capture click handler to block clicks.
|
||||
// Note that we require event capture support for this so if the device
|
||||
// doesn't support it, we punt for now and rely solely on mouse events.
|
||||
if ( eventCaptureSupported ) {
|
||||
document.addEventListener( "click", function( e ) {
|
||||
var cnt = clickBlockList.length,
|
||||
target = e.target,
|
||||
x, y, ele, i, o, touchID;
|
||||
|
||||
if ( cnt ) {
|
||||
x = e.clientX;
|
||||
y = e.clientY;
|
||||
threshold = $.vmouse.clickDistanceThreshold;
|
||||
|
||||
// The idea here is to run through the clickBlockList to see if
|
||||
// the current click event is in the proximity of one of our
|
||||
// vclick events that had preventDefault() called on it. If we find
|
||||
// one, then we block the click.
|
||||
//
|
||||
// Why do we have to rely on proximity?
|
||||
//
|
||||
// Because the target of the touch event that triggered the vclick
|
||||
// can be different from the target of the click event synthesized
|
||||
// by the browser. The target of a mouse/click event that is synthesized
|
||||
// from a touch event seems to be implementation specific. For example,
|
||||
// some browsers will fire mouse/click events for a link that is near
|
||||
// a touch event, even though the target of the touchstart/touchend event
|
||||
// says the user touched outside the link. Also, it seems that with most
|
||||
// browsers, the target of the mouse/click event is not calculated until the
|
||||
// time it is dispatched, so if you replace an element that you touched
|
||||
// with another element, the target of the mouse/click will be the new
|
||||
// element underneath that point.
|
||||
//
|
||||
// Aside from proximity, we also check to see if the target and any
|
||||
// of its ancestors were the ones that blocked a click. This is necessary
|
||||
// because of the strange mouse/click target calculation done in the
|
||||
// Android 2.1 browser, where if you click on an element, and there is a
|
||||
// mouse/click handler on one of its ancestors, the target will be the
|
||||
// innermost child of the touched element, even if that child is no where
|
||||
// near the point of touch.
|
||||
|
||||
ele = target;
|
||||
|
||||
while ( ele ) {
|
||||
for ( i = 0; i < cnt; i++ ) {
|
||||
o = clickBlockList[ i ];
|
||||
touchID = 0;
|
||||
|
||||
if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
|
||||
$.data( ele, touchTargetPropertyName ) === o.touchID ) {
|
||||
// XXX: We may want to consider removing matches from the block list
|
||||
// instead of waiting for the reset timer to fire.
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
return;
|
||||
}
|
||||
}
|
||||
ele = ele.parentNode;
|
||||
}
|
||||
}
|
||||
}, true);
|
||||
}
|
||||
})( jQuery, window, document );
|
||||
|
||||
(function( $ ) {
|
||||
$.mobile = {};
|
||||
}( jQuery ));
|
||||
|
||||
(function( $, undefined ) {
|
||||
var support = {
|
||||
touch: "ontouchend" in document
|
||||
};
|
||||
|
||||
$.mobile.support = $.mobile.support || {};
|
||||
$.extend( $.support, support );
|
||||
$.extend( $.mobile.support, support );
|
||||
}( jQuery ));
|
||||
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
var $document = $( document ),
|
||||
supportTouch = $.mobile.support.touch,
|
||||
scrollEvent = "touchmove scroll",
|
||||
touchStartEvent = supportTouch ? "touchstart" : "mousedown",
|
||||
touchStopEvent = supportTouch ? "touchend" : "mouseup",
|
||||
touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
|
||||
|
||||
// setup new event shortcuts
|
||||
$.each( ( "touchstart touchmove touchend " +
|
||||
"tap taphold " +
|
||||
"swipe swipeleft swiperight " +
|
||||
"scrollstart scrollstop" ).split( " " ), function( i, name ) {
|
||||
|
||||
$.fn[ name ] = function( fn ) {
|
||||
return fn ? this.bind( name, fn ) : this.trigger( name );
|
||||
};
|
||||
|
||||
// jQuery < 1.8
|
||||
if ( $.attrFn ) {
|
||||
$.attrFn[ name ] = true;
|
||||
}
|
||||
});
|
||||
|
||||
function triggerCustomEvent( obj, eventType, event, bubble ) {
|
||||
var originalType = event.type;
|
||||
event.type = eventType;
|
||||
if ( bubble ) {
|
||||
$.event.trigger( event, undefined, obj );
|
||||
} else {
|
||||
$.event.dispatch.call( obj, event );
|
||||
}
|
||||
event.type = originalType;
|
||||
}
|
||||
|
||||
// also handles scrollstop
|
||||
$.event.special.scrollstart = {
|
||||
|
||||
enabled: true,
|
||||
setup: function() {
|
||||
|
||||
var thisObject = this,
|
||||
$this = $( thisObject ),
|
||||
scrolling,
|
||||
timer;
|
||||
|
||||
function trigger( event, state ) {
|
||||
scrolling = state;
|
||||
triggerCustomEvent( thisObject, scrolling ? "scrollstart" : "scrollstop", event );
|
||||
}
|
||||
|
||||
// iPhone triggers scroll after a small delay; use touchmove instead
|
||||
$this.bind( scrollEvent, function( event ) {
|
||||
|
||||
if ( !$.event.special.scrollstart.enabled ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !scrolling ) {
|
||||
trigger( event, true );
|
||||
}
|
||||
|
||||
clearTimeout( timer );
|
||||
timer = setTimeout( function() {
|
||||
trigger( event, false );
|
||||
}, 50 );
|
||||
});
|
||||
},
|
||||
teardown: function() {
|
||||
$( this ).unbind( scrollEvent );
|
||||
}
|
||||
};
|
||||
|
||||
// also handles taphold
|
||||
$.event.special.tap = {
|
||||
tapholdThreshold: 750,
|
||||
emitTapOnTaphold: true,
|
||||
setup: function() {
|
||||
var thisObject = this,
|
||||
$this = $( thisObject ),
|
||||
isTaphold = false;
|
||||
|
||||
$this.bind( "vmousedown", function( event ) {
|
||||
isTaphold = false;
|
||||
if ( event.which && event.which !== 1 ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var origTarget = event.target,
|
||||
timer;
|
||||
|
||||
function clearTapTimer() {
|
||||
clearTimeout( timer );
|
||||
}
|
||||
|
||||
function clearTapHandlers() {
|
||||
clearTapTimer();
|
||||
|
||||
$this.unbind( "vclick", clickHandler )
|
||||
.unbind( "vmouseup", clearTapTimer );
|
||||
$document.unbind( "vmousecancel", clearTapHandlers );
|
||||
}
|
||||
|
||||
function clickHandler( event ) {
|
||||
clearTapHandlers();
|
||||
|
||||
// ONLY trigger a 'tap' event if the start target is
|
||||
// the same as the stop target.
|
||||
if ( !isTaphold && origTarget === event.target ) {
|
||||
triggerCustomEvent( thisObject, "tap", event );
|
||||
} else if ( isTaphold ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
$this.bind( "vmouseup", clearTapTimer )
|
||||
.bind( "vclick", clickHandler );
|
||||
$document.bind( "vmousecancel", clearTapHandlers );
|
||||
|
||||
timer = setTimeout( function() {
|
||||
if ( !$.event.special.tap.emitTapOnTaphold ) {
|
||||
isTaphold = true;
|
||||
}
|
||||
triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );
|
||||
}, $.event.special.tap.tapholdThreshold );
|
||||
});
|
||||
},
|
||||
teardown: function() {
|
||||
$( this ).unbind( "vmousedown" ).unbind( "vclick" ).unbind( "vmouseup" );
|
||||
$document.unbind( "vmousecancel" );
|
||||
}
|
||||
};
|
||||
|
||||
// Also handles swipeleft, swiperight
|
||||
$.event.special.swipe = {
|
||||
|
||||
// More than this horizontal displacement, and we will suppress scrolling.
|
||||
scrollSupressionThreshold: 30,
|
||||
|
||||
// More time than this, and it isn't a swipe.
|
||||
durationThreshold: 1000,
|
||||
|
||||
// Swipe horizontal displacement must be more than this.
|
||||
horizontalDistanceThreshold: 30,
|
||||
|
||||
// Swipe vertical displacement must be less than this.
|
||||
verticalDistanceThreshold: 30,
|
||||
|
||||
getLocation: function ( event ) {
|
||||
var winPageX = window.pageXOffset,
|
||||
winPageY = window.pageYOffset,
|
||||
x = event.clientX,
|
||||
y = event.clientY;
|
||||
|
||||
if ( event.pageY === 0 && Math.floor( y ) > Math.floor( event.pageY ) ||
|
||||
event.pageX === 0 && Math.floor( x ) > Math.floor( event.pageX ) ) {
|
||||
|
||||
// iOS4 clientX/clientY have the value that should have been
|
||||
// in pageX/pageY. While pageX/page/ have the value 0
|
||||
x = x - winPageX;
|
||||
y = y - winPageY;
|
||||
} else if ( y < ( event.pageY - winPageY) || x < ( event.pageX - winPageX ) ) {
|
||||
|
||||
// Some Android browsers have totally bogus values for clientX/Y
|
||||
// when scrolling/zooming a page. Detectable since clientX/clientY
|
||||
// should never be smaller than pageX/pageY minus page scroll
|
||||
x = event.pageX - winPageX;
|
||||
y = event.pageY - winPageY;
|
||||
}
|
||||
|
||||
return {
|
||||
x: x,
|
||||
y: y
|
||||
};
|
||||
},
|
||||
|
||||
start: function( event ) {
|
||||
var data = event.originalEvent.touches ?
|
||||
event.originalEvent.touches[ 0 ] : event,
|
||||
location = $.event.special.swipe.getLocation( data );
|
||||
return {
|
||||
time: ( new Date() ).getTime(),
|
||||
coords: [ location.x, location.y ],
|
||||
origin: $( event.target )
|
||||
};
|
||||
},
|
||||
|
||||
stop: function( event ) {
|
||||
var data = event.originalEvent.touches ?
|
||||
event.originalEvent.touches[ 0 ] : event,
|
||||
location = $.event.special.swipe.getLocation( data );
|
||||
return {
|
||||
time: ( new Date() ).getTime(),
|
||||
coords: [ location.x, location.y ]
|
||||
};
|
||||
},
|
||||
|
||||
handleSwipe: function( start, stop, thisObject, origTarget ) {
|
||||
if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&
|
||||
Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&
|
||||
Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {
|
||||
var direction = start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight";
|
||||
|
||||
triggerCustomEvent( thisObject, "swipe", $.Event( "swipe", { target: origTarget, swipestart: start, swipestop: stop }), true );
|
||||
triggerCustomEvent( thisObject, direction,$.Event( direction, { target: origTarget, swipestart: start, swipestop: stop } ), true );
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
},
|
||||
|
||||
// This serves as a flag to ensure that at most one swipe event event is
|
||||
// in work at any given time
|
||||
eventInProgress: false,
|
||||
|
||||
setup: function() {
|
||||
var events,
|
||||
thisObject = this,
|
||||
$this = $( thisObject ),
|
||||
context = {};
|
||||
|
||||
// Retrieve the events data for this element and add the swipe context
|
||||
events = $.data( this, "mobile-events" );
|
||||
if ( !events ) {
|
||||
events = { length: 0 };
|
||||
$.data( this, "mobile-events", events );
|
||||
}
|
||||
events.length++;
|
||||
events.swipe = context;
|
||||
|
||||
context.start = function( event ) {
|
||||
|
||||
// Bail if we're already working on a swipe event
|
||||
if ( $.event.special.swipe.eventInProgress ) {
|
||||
return;
|
||||
}
|
||||
$.event.special.swipe.eventInProgress = true;
|
||||
|
||||
var stop,
|
||||
start = $.event.special.swipe.start( event ),
|
||||
origTarget = event.target,
|
||||
emitted = false;
|
||||
|
||||
context.move = function( event ) {
|
||||
if ( !start || event.isDefaultPrevented() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
stop = $.event.special.swipe.stop( event );
|
||||
if ( !emitted ) {
|
||||
emitted = $.event.special.swipe.handleSwipe( start, stop, thisObject, origTarget );
|
||||
if ( emitted ) {
|
||||
|
||||
// Reset the context to make way for the next swipe event
|
||||
$.event.special.swipe.eventInProgress = false;
|
||||
}
|
||||
}
|
||||
// prevent scrolling
|
||||
if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
};
|
||||
|
||||
context.stop = function() {
|
||||
emitted = true;
|
||||
|
||||
// Reset the context to make way for the next swipe event
|
||||
$.event.special.swipe.eventInProgress = false;
|
||||
$document.off( touchMoveEvent, context.move );
|
||||
context.move = null;
|
||||
};
|
||||
|
||||
$document.on( touchMoveEvent, context.move )
|
||||
.one( touchStopEvent, context.stop );
|
||||
};
|
||||
$this.on( touchStartEvent, context.start );
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
var events, context;
|
||||
|
||||
events = $.data( this, "mobile-events" );
|
||||
if ( events ) {
|
||||
context = events.swipe;
|
||||
delete events.swipe;
|
||||
events.length--;
|
||||
if ( events.length === 0 ) {
|
||||
$.removeData( this, "mobile-events" );
|
||||
}
|
||||
}
|
||||
|
||||
if ( context ) {
|
||||
if ( context.start ) {
|
||||
$( this ).off( touchStartEvent, context.start );
|
||||
}
|
||||
if ( context.move ) {
|
||||
$document.off( touchMoveEvent, context.move );
|
||||
}
|
||||
if ( context.stop ) {
|
||||
$document.off( touchStopEvent, context.stop );
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
$.each({
|
||||
scrollstop: "scrollstart",
|
||||
taphold: "tap",
|
||||
swipeleft: "swipe.left",
|
||||
swiperight: "swipe.right"
|
||||
}, function( event, sourceEvent ) {
|
||||
|
||||
$.event.special[ event ] = {
|
||||
setup: function() {
|
||||
$( this ).bind( sourceEvent, $.noop );
|
||||
},
|
||||
teardown: function() {
|
||||
$( this ).unbind( sourceEvent );
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
})( jQuery, this );
|
||||
|
||||
|
||||
}));
|
||||
@@ -0,0 +1,477 @@
|
||||
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
|
||||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
*
|
||||
* Version: 1.3.7
|
||||
*
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.fn.extend({
|
||||
slimScroll: function(options) {
|
||||
|
||||
var valami = 1;
|
||||
|
||||
var defaults = {
|
||||
|
||||
// width in pixels of the visible scroll area
|
||||
width : 'auto',
|
||||
|
||||
// height in pixels of the visible scroll area
|
||||
height : '250px',
|
||||
|
||||
// width in pixels of the scrollbar and rail
|
||||
size : '7px',
|
||||
|
||||
// scrollbar color, accepts any hex/color value
|
||||
color: '#000',
|
||||
|
||||
// scrollbar position - left/right
|
||||
position : 'right',
|
||||
|
||||
// distance in pixels between the side edge and the scrollbar
|
||||
distance : '1px',
|
||||
|
||||
// default scroll position on load - top / bottom / $('selector')
|
||||
start : 'top',
|
||||
|
||||
// sets scrollbar opacity
|
||||
opacity : .4,
|
||||
|
||||
// enables always-on mode for the scrollbar
|
||||
alwaysVisible : false,
|
||||
|
||||
// check if we should hide the scrollbar when user is hovering over
|
||||
disableFadeOut : false,
|
||||
|
||||
// sets visibility of the rail
|
||||
railVisible : false,
|
||||
|
||||
// sets rail color
|
||||
railColor : '#333',
|
||||
|
||||
// sets rail opacity
|
||||
railOpacity : .2,
|
||||
|
||||
// whether we should use jQuery UI Draggable to enable bar dragging
|
||||
railDraggable : true,
|
||||
|
||||
// defautlt CSS class of the slimscroll rail
|
||||
railClass : 'slimScrollRail',
|
||||
|
||||
// defautlt CSS class of the slimscroll bar
|
||||
barClass : 'slimScrollBar',
|
||||
|
||||
// defautlt CSS class of the slimscroll wrapper
|
||||
wrapperClass : 'slimScrollDiv',
|
||||
|
||||
// check if mousewheel should scroll the window if we reach top/bottom
|
||||
allowPageScroll : false,
|
||||
|
||||
// scroll amount applied to each mouse wheel step
|
||||
wheelStep : 20,
|
||||
|
||||
// scroll amount applied when user is using gestures
|
||||
touchScrollStep : 200,
|
||||
|
||||
// sets border radius
|
||||
borderRadius: '7px',
|
||||
|
||||
// sets border radius of the rail
|
||||
railBorderRadius : '7px'
|
||||
};
|
||||
|
||||
var o = $.extend(defaults, options);
|
||||
|
||||
// do it for every element that matches selector
|
||||
this.each(function(){
|
||||
|
||||
var isOverPanel, isOverBar, isDragg, queueHide, touchDif,
|
||||
barHeight, percentScroll, lastScroll,
|
||||
divS = '<div></div>',
|
||||
minBarHeight = 30,
|
||||
releaseScroll = false;
|
||||
|
||||
// used in event handlers and for better minification
|
||||
var me = $(this);
|
||||
|
||||
// ensure we are not binding it again
|
||||
if (me.parent().hasClass(o.wrapperClass))
|
||||
{
|
||||
// start from last bar position
|
||||
var offset = me.scrollTop();
|
||||
|
||||
// find bar and rail
|
||||
bar = me.siblings('.' + o.barClass);
|
||||
rail = me.siblings('.' + o.railClass);
|
||||
|
||||
getBarHeight();
|
||||
|
||||
// check if we should scroll existing instance
|
||||
if ($.isPlainObject(options))
|
||||
{
|
||||
// Pass height: auto to an existing slimscroll object to force a resize after contents have changed
|
||||
if ( 'height' in options && options.height == 'auto' ) {
|
||||
me.parent().css('height', 'auto');
|
||||
me.css('height', 'auto');
|
||||
var height = me.parent().parent().height();
|
||||
me.parent().css('height', height);
|
||||
me.css('height', height);
|
||||
} else if ('height' in options) {
|
||||
var h = options.height;
|
||||
me.parent().css('height', h);
|
||||
me.css('height', h);
|
||||
}
|
||||
|
||||
if ('scrollTo' in options)
|
||||
{
|
||||
// jump to a static point
|
||||
offset = parseInt(o.scrollTo);
|
||||
}
|
||||
else if ('scrollBy' in options)
|
||||
{
|
||||
// jump by value pixels
|
||||
offset += parseInt(o.scrollBy);
|
||||
}
|
||||
else if ('destroy' in options)
|
||||
{
|
||||
// remove slimscroll elements
|
||||
bar.remove();
|
||||
rail.remove();
|
||||
me.unwrap();
|
||||
return;
|
||||
}
|
||||
|
||||
// scroll content by the given offset
|
||||
scrollContent(offset, false, true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
else if ($.isPlainObject(options))
|
||||
{
|
||||
if ('destroy' in options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// optionally set height to the parent's height
|
||||
o.height = (o.height == 'auto') ? me.parent().height() : o.height;
|
||||
|
||||
// wrap content
|
||||
var wrapper = $(divS)
|
||||
.addClass(o.wrapperClass)
|
||||
.css({
|
||||
position: 'relative',
|
||||
overflow: 'hidden',
|
||||
width: o.width,
|
||||
height: o.height
|
||||
});
|
||||
|
||||
// update style for the div
|
||||
me.css({
|
||||
overflow: 'hidden',
|
||||
width: o.width,
|
||||
height: o.height
|
||||
});
|
||||
|
||||
// create scrollbar rail
|
||||
var rail = $(divS)
|
||||
.addClass(o.railClass)
|
||||
.css({
|
||||
width: o.size,
|
||||
height: '100%',
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
display: (o.alwaysVisible && o.railVisible) ? 'block' : 'none',
|
||||
'border-radius': o.railBorderRadius,
|
||||
background: o.railColor,
|
||||
opacity: o.railOpacity,
|
||||
zIndex: 90
|
||||
});
|
||||
|
||||
// create scrollbar
|
||||
var bar = $(divS)
|
||||
.addClass(o.barClass)
|
||||
.css({
|
||||
background: o.color,
|
||||
width: o.size,
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
opacity: o.opacity,
|
||||
display: o.alwaysVisible ? 'block' : 'none',
|
||||
'border-radius' : o.borderRadius,
|
||||
BorderRadius: o.borderRadius,
|
||||
MozBorderRadius: o.borderRadius,
|
||||
WebkitBorderRadius: o.borderRadius,
|
||||
zIndex: 99
|
||||
});
|
||||
|
||||
// set position
|
||||
var posCss = (o.position == 'right') ? { right: o.distance } : { left: o.distance };
|
||||
rail.css(posCss);
|
||||
bar.css(posCss);
|
||||
|
||||
// wrap it
|
||||
me.wrap(wrapper);
|
||||
|
||||
// append to parent div
|
||||
me.parent().append(bar);
|
||||
me.parent().append(rail);
|
||||
|
||||
// make it draggable and no longer dependent on the jqueryUI
|
||||
if (o.railDraggable){
|
||||
bar.bind("mousedown", function(e) {
|
||||
var $doc = $(document);
|
||||
isDragg = true;
|
||||
t = parseFloat(bar.css('top'));
|
||||
pageY = e.pageY;
|
||||
|
||||
$doc.bind("mousemove.slimscroll", function(e){
|
||||
currTop = t + e.pageY - pageY;
|
||||
bar.css('top', currTop);
|
||||
scrollContent(0, bar.position().top, false);// scroll content
|
||||
});
|
||||
|
||||
$doc.bind("mouseup.slimscroll", function(e) {
|
||||
isDragg = false;hideBar();
|
||||
$doc.unbind('.slimscroll');
|
||||
});
|
||||
return false;
|
||||
}).bind("selectstart.slimscroll", function(e){
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
// on rail over
|
||||
rail.hover(function(){
|
||||
showBar();
|
||||
}, function(){
|
||||
hideBar();
|
||||
});
|
||||
|
||||
// on bar over
|
||||
bar.hover(function(){
|
||||
isOverBar = true;
|
||||
}, function(){
|
||||
isOverBar = false;
|
||||
});
|
||||
|
||||
// show on parent mouseover
|
||||
me.hover(function(){
|
||||
isOverPanel = true;
|
||||
showBar();
|
||||
hideBar();
|
||||
}, function(){
|
||||
isOverPanel = false;
|
||||
hideBar();
|
||||
});
|
||||
|
||||
// support for mobile
|
||||
me.bind('touchstart', function(e,b){
|
||||
if (e.originalEvent.touches.length)
|
||||
{
|
||||
// record where touch started
|
||||
touchDif = e.originalEvent.touches[0].pageY;
|
||||
}
|
||||
});
|
||||
|
||||
me.bind('touchmove', function(e){
|
||||
// prevent scrolling the page if necessary
|
||||
if(!releaseScroll)
|
||||
{
|
||||
e.originalEvent.preventDefault();
|
||||
}
|
||||
if (e.originalEvent.touches.length)
|
||||
{
|
||||
// see how far user swiped
|
||||
var diff = (touchDif - e.originalEvent.touches[0].pageY) / o.touchScrollStep;
|
||||
// scroll content
|
||||
scrollContent(diff, true);
|
||||
touchDif = e.originalEvent.touches[0].pageY;
|
||||
}
|
||||
});
|
||||
|
||||
// set up initial height
|
||||
getBarHeight();
|
||||
|
||||
// check start position
|
||||
if (o.start === 'bottom')
|
||||
{
|
||||
// scroll content to bottom
|
||||
bar.css({ top: me.outerHeight() - bar.outerHeight() });
|
||||
scrollContent(0, true);
|
||||
}
|
||||
else if (o.start !== 'top')
|
||||
{
|
||||
// assume jQuery selector
|
||||
scrollContent($(o.start).position().top, null, true);
|
||||
|
||||
// make sure bar stays hidden
|
||||
if (!o.alwaysVisible) { bar.hide(); }
|
||||
}
|
||||
|
||||
// attach scroll events
|
||||
attachWheel(this);
|
||||
|
||||
function _onWheel(e)
|
||||
{
|
||||
// use mouse wheel only when mouse is over
|
||||
if (!isOverPanel) { return; }
|
||||
|
||||
var e = e || window.event;
|
||||
|
||||
var delta = 0;
|
||||
if (e.wheelDelta) { delta = -e.wheelDelta/120; }
|
||||
if (e.detail) { delta = e.detail / 3; }
|
||||
|
||||
var target = e.target || e.srcTarget || e.srcElement;
|
||||
if ($(target).closest('.' + o.wrapperClass).is(me.parent())) {
|
||||
// scroll content
|
||||
scrollContent(delta, true);
|
||||
}
|
||||
|
||||
// stop window scroll
|
||||
if (e.preventDefault && !releaseScroll) { e.preventDefault(); }
|
||||
if (!releaseScroll) { e.returnValue = false; }
|
||||
}
|
||||
|
||||
function scrollContent(y, isWheel, isJump)
|
||||
{
|
||||
releaseScroll = false;
|
||||
var delta = y;
|
||||
var maxTop = me.outerHeight() - bar.outerHeight();
|
||||
|
||||
if (isWheel)
|
||||
{
|
||||
// move bar with mouse wheel
|
||||
delta = parseInt(bar.css('top')) + y * parseInt(o.wheelStep) / 100 * bar.outerHeight();
|
||||
|
||||
// move bar, make sure it doesn't go out
|
||||
delta = Math.min(Math.max(delta, 0), maxTop);
|
||||
|
||||
// if scrolling down, make sure a fractional change to the
|
||||
// scroll position isn't rounded away when the scrollbar's CSS is set
|
||||
// this flooring of delta would happened automatically when
|
||||
// bar.css is set below, but we floor here for clarity
|
||||
delta = (y > 0) ? Math.ceil(delta) : Math.floor(delta);
|
||||
|
||||
// scroll the scrollbar
|
||||
bar.css({ top: delta + 'px' });
|
||||
}
|
||||
|
||||
// calculate actual scroll amount
|
||||
percentScroll = parseInt(bar.css('top')) / (me.outerHeight() - bar.outerHeight());
|
||||
delta = percentScroll * (me[0].scrollHeight - me.outerHeight());
|
||||
|
||||
if (isJump)
|
||||
{
|
||||
delta = y;
|
||||
var offsetTop = delta / me[0].scrollHeight * me.outerHeight();
|
||||
offsetTop = Math.min(Math.max(offsetTop, 0), maxTop);
|
||||
bar.css({ top: offsetTop + 'px' });
|
||||
}
|
||||
|
||||
// scroll content
|
||||
me.scrollTop(delta);
|
||||
|
||||
// fire scrolling event
|
||||
me.trigger('slimscrolling', ~~delta);
|
||||
|
||||
// ensure bar is visible
|
||||
showBar();
|
||||
|
||||
// trigger hide when scroll is stopped
|
||||
hideBar();
|
||||
}
|
||||
|
||||
function attachWheel(target)
|
||||
{
|
||||
if (window.addEventListener)
|
||||
{
|
||||
target.addEventListener('DOMMouseScroll', _onWheel, false );
|
||||
target.addEventListener('mousewheel', _onWheel, false );
|
||||
}
|
||||
else
|
||||
{
|
||||
document.attachEvent("onmousewheel", _onWheel)
|
||||
}
|
||||
}
|
||||
|
||||
function getBarHeight()
|
||||
{
|
||||
// calculate scrollbar height and make sure it is not too small
|
||||
barHeight = Math.max((me.outerHeight() / me[0].scrollHeight) * me.outerHeight(), minBarHeight);
|
||||
bar.css({ height: barHeight + 'px' });
|
||||
|
||||
// hide scrollbar if content is not long enough
|
||||
var display = barHeight == me.outerHeight() ? 'none' : 'block';
|
||||
bar.css({ display: display });
|
||||
}
|
||||
|
||||
function showBar()
|
||||
{
|
||||
// recalculate bar height
|
||||
getBarHeight();
|
||||
clearTimeout(queueHide);
|
||||
|
||||
// when bar reached top or bottom
|
||||
if (percentScroll == ~~percentScroll)
|
||||
{
|
||||
//release wheel
|
||||
releaseScroll = o.allowPageScroll;
|
||||
|
||||
// publish approporiate event
|
||||
if (lastScroll != percentScroll)
|
||||
{
|
||||
var msg = (~~percentScroll == 0) ? 'top' : 'bottom';
|
||||
me.trigger('slimscroll', msg);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
releaseScroll = false;
|
||||
}
|
||||
lastScroll = percentScroll;
|
||||
|
||||
// show only when required
|
||||
if(barHeight >= me.outerHeight()) {
|
||||
//allow window scroll
|
||||
releaseScroll = true;
|
||||
return;
|
||||
}
|
||||
bar.stop(true,true).fadeIn('fast');
|
||||
if (o.railVisible) { rail.stop(true,true).fadeIn('fast'); }
|
||||
}
|
||||
|
||||
function hideBar()
|
||||
{
|
||||
// only hide when options allow it
|
||||
if (!o.alwaysVisible)
|
||||
{
|
||||
queueHide = setTimeout(function(){
|
||||
if (!(o.disableFadeOut && isOverPanel) && !isOverBar && !isDragg)
|
||||
{
|
||||
bar.fadeOut('slow');
|
||||
rail.fadeOut('slow');
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// maintain chainability
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
||||
$.fn.extend({
|
||||
slimscroll: $.fn.slimScroll
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1 @@
|
||||
((e,i,d)=>{var g;void 0===e.lightwidget&&(e.lightwidget={},g=null,e.addEventListener("message",function(e){var t;-1!==d.indexOf(e.origin.replace(/^https?:\/\//i,""))&&("lightwidget_lightbox"===(t="object"==typeof e.data?e.data:JSON.parse(e.data)).type&&null===g?((g=i.createElement("script")).src="https://cdn.lightwidget.com/widgets/lightwidget-lightbox.y.js".replace("y",t.version),i.body.appendChild(g)):t.size<=0||[].forEach.call(i.querySelectorAll('iframe[src*="lightwidget.com/widgets/x"],iframe[data-src*="lightwidget.com/widgets/x"],iframe[src*="instansive.com/widgets/x"]'.replace(/x/g,t.widgetId)),function(e){e.style.height=t.size+"px"}))},!1))})(window,document,["lightwidget.com","dev.lightwidget.com","cdn.lightwidget.com"]);
|
||||
|
After Width: | Height: | Size: 49 B |
@@ -0,0 +1 @@
|
||||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=951)}({951:function(e,t){try{if("undefined"!=typeof window&&window.byted_acrawler){var n;const e=JSON.parse(null===(n=document.getElementById("__MSSDK_CONFIG"))||void 0===n?void 0:n.textContent);window.byted_acrawler.init(e)}}catch(e){console.warn(e)}}});
|
||||
@@ -0,0 +1,150 @@
|
||||
__passportHeaderUtil={initFramework:function(){this.add_event_funct="addEventListener";this.event_type_prefix="";!document.addEventListener&&document.attachEvent&&(this.add_event_funct="attachEvent",this.event_type_prefix="on");this.polyIndexOf();this.polyCustomEvent();this.polyGetElementsByClassName()},polyIndexOf:function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c=this.length>>>0;b=Number(b)||0;b=0>b?Math.ceil(b):Math.floor(b);for(0>b&&(b+=c);b<c;b++)if(b in this&&this[b]===
|
||||
a)return b;return-1})},polyCustomEvent:function(){function a(b,c){c=c||{bubbles:!1,cancelable:!1,detail:void 0};var d=document.createEvent("CustomEvent");d.initCustomEvent(b,c.bubbles,c.cancelable,c.detail);return d}if("function"===typeof window.CustomEvent)return!1;a.prototype=window.Event.prototype;window.CustomEvent=a},polyGetElementsByClassName:function(){document.getElementsByClassName||(window.Element.prototype.getElementsByClassName=document.constructor.prototype.getElementsByClassName=function(a){if(this.querySelectorAll)return this.querySelectorAll("."+
|
||||
a);var b=this.getElementsByTagName("*");a=new RegExp("(?:\\s|^)"+a+"(?:\\s|$)");var c=[],d;for(d=b.length;d--;){var e=b[d];e.className.match(a)&&c.unshift(e)}return c})},addListener:function(a,b,c){var d=c;window.addEventListener||(d=function(e){e=e||window.event;e.target=e.target||e.srcElement;c.apply(this,[e])});a[this.add_event_funct](this.event_type_prefix+b,d,!1)},dispatchEvent:function(a,b,c){c=new CustomEvent(b,{detail:c});"function"==typeof a.dispatchEvent?a.dispatchEvent(c):"function"==typeof a.fireEvent&&
|
||||
a.fireEvent("on"+b,c)},replaceClass:function(a,b,c){__passportHeaderUtil.removeClass(a,b);__passportHeaderUtil.addClass(a,c)},removeClass:function(a,b){__passportHeaderUtil.hasClass(a,b)&&(a.className=(" "+a.className+" ").replace(" "+b+" "," ").replace(/^\s+|\s+$|(\s)\s+/g,"$1"))},addClass:function(a,b){__passportHeaderUtil.hasClass(a,b)||(a.className=(a.className+" "+b).replace(/^\s+|\s+$|(\s)\s+/g,"$1"))},hasClass:function(a,b){return-1<(" "+a.className+" ").indexOf(" "+b+" ")},cookie:function(a,
|
||||
b,c){if("undefined"!=typeof b){c=c||{};null===b&&(b="",c.expires=-1);var d="";c.expires&&("number"==typeof c.expires||c.expires.toUTCString)&&("number"==typeof c.expires?(d=new Date,d.setTime(d.getTime()+864E5*c.expires)):d=c.expires,d="; expires="+d.toUTCString());var e=c.path?"; path="+c.path:"",f=c.domain?"; domain="+c.domain:"";c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),d,e,f,c].join("")}else{b=null;if(document.cookie&&""!=document.cookie)for(c=document.cookie.split(";"),
|
||||
d=0;d<c.length;d++)if(e=c[d].replace(/^[ ]*/,""),e.substring(0,a.length+1)==a+"="){b=decodeURIComponent(e.substring(a.length+1));break}return b}},insertScript:function(a,b,c,d,e){if(b){b="__passportHeader-"+b;var f;(f=document.getElementById(b))&&f.parentNode.removeChild(f)}var g=document.createElement("script");g.type="text/javascript";g.async=!0;e&&(g.crossOrigin=e);b&&(g.id=b);g.src=a;var h=document.getElementsByTagName("head")[0];if(c&&"function"==typeof c){var k=!1;g.onload=g.onreadystatechange=
|
||||
function(){k||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(k=!0,c(),g.onload=g.onreadystatechange=null,h&&g.parentNode&&h.removeChild(g))}}d&&"function"==typeof d&&(g.onerror=d);h.appendChild(g)}};__passportEvent=function(a,b){a.config.IDENT_URL&&(this.header=a,this.cuid="undefined"==typeof b?null:b,this.cookieName="ident")};__passportEvent.prototype.getCookie=function(){return __passportHeaderUtil.cookie(this.cookieName)};
|
||||
__passportEvent.prototype.send=function(a,b){var c=this.getCookie();if(c){var d=1E17*Math.random();if("ot"==a){a=this.header.config.IDENT_URL+"ident/ot.js?&cemp="+encodeURIComponent(c)+"&rnd="+d;this.cuid&&(a+="&cuid="+encodeURIComponent(this.cuid));for(var e in b)a+="&"+encodeURIComponent(e)+"="+encodeURIComponent(b[e]);__passportHeaderUtil.insertScript(a)}}};__passportHeader=function(a){this.config=a;this.version="0db5ad1faad25ad06172636999a5d92b25c837fd";this.setConst();this.sites=[{id:"index",name:"Index",url:"https://index.hu"},{id:"index2",name:"Blog.hu C\u00edmlap",url:"https://cimlap.blog.hu",dropdownName:"Blog.hu C\u00edmlap"},{id:"velvet",name:"Velvet",url:"https://velvet.hu"},{id:"divany",name:"D\u00edv\u00e1ny",url:"https://divany.hu"},{id:"totalcar",name:"Totalcar",url:"https://totalcar.hu"},{id:"blog",name:"Blog",url:"https://blog.hu?icn=passport-header&ici={from}_text"},
|
||||
{id:"port",name:"Port",url:"https://port.hu"},{id:"forum",name:"F\u00f3rum",url:"https://forum.index.hu",logoutUrl:"http://kilepes.blog.hu"},{id:"economx",name:"Economx",url:"https://www.economx.hu"},{id:"video",name:"Vide\u00f3",url:"https://indavideo.hu"}];this.manisHeader={manis:{header:["index","velvet","divany","totalcar","economx"],inda:["blog","index2","port","forum","video"],indaTitle:"Inda"},inda:{header:["blog","port","forum","video","economx"],inda:["index","index2","velvet","divany","totalcar"],
|
||||
indaTitle:"Kiadv\u00e1nyok"}};if(this.dom=document.getElementById("passportHeader")){this.checkConfig();a=document.getElementsByTagName("script");this.debug=!1;for(var b=0;b<a.length;b++)a[b].src.match(/passportHeader-debug.js/)&&(this.debug=!0);this.init()}};__passportHeader.prototype.setConst=function(){this.konst={PROVIDER_STATUS_UNKNOWN:1,PROVIDER_STATUS_VALID:0,PROVIDER_STATUS_NOTICE:5,PROVIDER_STATUS_EXPIRED:10,PROVIDER_STATUS_INVALID:99}};
|
||||
__passportHeader.prototype.checkConfig=function(){"undefined"===typeof this.config.sitelinkId&&"undefined"===typeof this.manisHeader[this.config.sitelinkId]&&(this.config.sitelinkId="inda");"undefined"===typeof this.config.gaTrackingId&&(this.config.gaTrackingId="UA-21185729-2");"undefined"==typeof this.config.s3pc&&(this.config.s3pc={enabled:!1})};
|
||||
__passportHeader.prototype.init=function(){__passportHeaderUtil.initFramework();this.initAnalytics();this.noti=new __notiClient(this);this.ident=new __passportIdent(this,this.config.tid?this.config.tid:null);this.breaking=new __passportBreaking(this);this.cp=new __passportCP(this);new __passportRP(this);var a=this;this.loginError=null;this.config.s3pc.enabled&&(this.config.s3pc.supported=this.cp.supports3PC(),null===this.config.s3pc.supported&&this.cp.check3PCSupport(this.config.INDAPASS_URL+"cookiecheck",
|
||||
d=>{console.log("Cookiecheck result: ",d);this.config.s3pc.supported=d;var e=document.getElementById("user-dropdown");e&&null!==d&&!this.config.loggedIn&&this.insertHtml(e,this.createLogoutDropdown(d))}));var b=function(){a.initSubscriptionButtons();a.ui.onLoad();a.checkAlertStatus()};__passportHeaderUtil.addListener(document,"DOMContentLoaded",b);__passportHeaderUtil.addListener(window,"load",b);var c=this.createHeaderHtml();this.debug?(this.insertCss(this.config.HEADER_URL+"css/fixed_header.css?version="+
|
||||
this.version),this.insertCss(this.config.HEADER_URL+"css/plugins/_common.css?version="+this.version),this.insertCss(this.config.HEADER_URL+"css/plugins/bloghu.css?version="+this.version)):this.insertCss(this.config.HEADER_URL+"css/passportHeader.css?version="+this.version);this.insertHtml(this.dom,c);this.ui=new __passportHeaderUI(this);this.config.miniHeader&&__passportHeaderUtil.addClass(this.dom,"_iph_mini");"right"==this.config.miniHeader&&__passportHeaderUtil.addClass(this.dom,"_iph_mini-right");
|
||||
this.isProviderExpired()&&__passportHeaderUtil.addClass(this.dom,"_iph_fb_alert");this.noti.registerUnreachableHandler(function(){a.notiUnreachable()});b()};
|
||||
__passportHeader.prototype.reinit=function(a){for(var b in a)this.config[b]=a[b];this.insertHtml(this.dom,this.createHeaderHtml());this.ui=new __passportHeaderUI(this);this.config.miniHeader&&__passportHeaderUtil.addClass(this.dom,"_iph_mini");this.isProviderExpired()&&__passportHeaderUtil.addClass(this.dom,"_iph_fb_alert");this.ui.positionDropdown();this.noti.reinit()};
|
||||
__passportHeader.prototype.getSiteConfig=function(a){a||(a=this.config.partner_id);for(var b=0;b<this.sites.length;b++)if(this.sites[b].id==a)return this.sites[b];return!1};
|
||||
__passportHeader.prototype.createHeaderHtml=function(){var a='<div class="_iph_fixed-header fixed-header" id="_iph_fixed-header"> <div class="fixed-header-container">'+this.createRightHtml();a+=this.createMainHtml();this.config.miniHeader||(a+=this.createManisHtml(!1));a+=" </div></div>";this.config.miniHeader||(a=a+'<div class="_iph_fixed-header fixed-header-inda-dropdown-container">'+this.createIndaDropdown(),a+="</div>");a=a+'<div class="_iph_fixed-header fixed-header-dropdown-container inactive" id="_iph_fixed-header-dropdown-container"> <div class="fixed-header-dropdown-wrapper">'+
|
||||
this.createNotificationDropdown();a+=this.createUserDropdown();a+=this.createTokenalertDropdown();a+=" </div></div>";this.config.miniHeader||(a=a+'<div id="fixed-header-mobil-kiadvanyok" class="_iph_fixed-header fixed-header-mobil-kiadvanyok">'+this.createManisHtml(!0),a+="</div>");return a};
|
||||
__passportHeader.prototype.createMainHtml=function(){if(!this.config.mainMenu||!this.config.mainMenu.length)return"";var a='<ul class="_iph_main">';for(var b=0;b<this.config.mainMenu.length;b++){var c=this.config.mainMenu[b]["class"];a+='<li><a href="#" class="icon icon-'+c+'" id="icon-'+c+'"></a></li>'}return a+"</ul>"};
|
||||
__passportHeader.prototype.createRightHtml=function(){var a='<ul class="_iph_rgt">'+this.createTokenAlertIconHtml();this.config.disableNoti||(a+=' <li><a href="#" class="icon icon-harang" id="icon-harang">',this.config.loggedIn&&(a+=' <span class="badge inactive" id="notification-badge">0</span>'),a+=" </a></li>");var b=this.config.loggedIn?"icon-user":"icon-kulcs";this.config.loggedIn&&this.config.avatar&&(b+=" _iph-icon-avatar");a=a+' <li> <a href="#" class="icon '+(b+'" id="icon-user"');
|
||||
this.config.loggedIn&&this.config.avatar&&(a+=" style=\"background-image:url('"+this.config.avatar+"');background-position:center; background-size: 36px 36px\"");a=a+"></a>"+this.createHint();return a+" </li></ul>"};
|
||||
__passportHeader.prototype.createManisHtml=function(a){var b=this.manisHeader[this.config.sitelinkId].header;var c='<div class="fixed-header-mobil-kiadvanyok-container"> <ul class="kiadvanyok">';for(var d=0;d<b.length;d++){var e=this.getSiteConfig(b[d]),f=this.config.from?this.config.from:this.config.partner_id,g=e.id;e?(c+='<li><a href="'+this.getCTUrl(e.url,null,f)+"\" onclick=\"return passportHeader.gaEvent('click','jshead_ct:"+f+"-"+g+'\');" data-lnk="1">',c+=e.name,c+="</a></li>"):this.debug&&
|
||||
console.log("Unknown siteid "+b[d]+" in header config!")}c=c+' <li> <a id="icon-inda'+((a?"-mobile":"")+'" href="#">')+this.manisHeader[this.config.sitelinkId].indaTitle;return c+' <span class="icon-dropdown"></span> </a> </li> </ul></div>'};
|
||||
__passportHeader.prototype.createTokenAlertIconHtml=function(){return this.isProviderExpired()?'<li> <a href="#" class="icon icon-fbtoken" id="icon-fbtoken"> <span class="badge inactive" id="icon-fbtoken-badge"></span> </a></li>':""};
|
||||
__passportHeader.prototype.checkAlertStatus=function(){var a;this.config.providerExpired&&!this.config.providerExpired.checked&&(this.config.providerExpired.checked=!0,(a=document.location.hash.match(/^#(error|tokenrefresh)=(.*)$/))?this.showAlertResult(a[1],a[2]):this.isProviderExpired()&&__passportHeaderUtil.insertScript(this.config.HEADER_URL+"status.php?provider="+encodeURIComponent(this.config.providerExpired.name)))};
|
||||
__passportHeader.prototype.setAlertStatus=function(a,b){this.isProviderExpired()&&this.config.providerExpired.name==a&&1==b&&this.config.providerExpired.status>=this.konst.PROVIDER_STATUS_EXPIRED&&this.ui.toggler(["icon-fbtoken","fbtoken-dropdown"],null)};__passportHeader.prototype.resetAlertStatus=function(){this.isProviderExpired()&&__passportHeaderUtil.insertScript(this.config.HEADER_URL+"status.php?provider="+encodeURIComponent(this.config.providerExpired.name)+"&reset=1")};
|
||||
__passportHeader.prototype.showAlertResult=function(a,b){if("error"==a)__passportHeaderUtil.addClass(document.getElementById("fbtoken-dropdown"),"_iph_token_error");else{__passportHeaderUtil.addClass(document.getElementById("fbtoken-dropdown"),"_iph_token_success");this.gaEvent("sessionmeghosszabbitas","sikeresenmeghosszabbitva",null,"facebook");var c=this;window.setTimeout(function(){__passportHeaderUtil.addClass(document.getElementById("fbtoken-dropdown"),"_iph_fade_away");window.setTimeout(function(){c.ui.toggler(["fbtoken-dropdown"],
|
||||
null)},500)},1E4)}this.resetAlertStatus();void 0===window.history||void 0===window.history.replaceState||window.history.state&&window.history.state.hasActive||window.history.replaceState(null,"",window.location.href.replace(/(#.*$)/,""));this.ui.toggler(["icon-fbtoken","fbtoken-dropdown"],null)};__passportHeader.prototype.isProviderExpired=function(){return this.config.providerExpired&&"Facebook"==this.config.providerExpired.name};
|
||||
__passportHeader.prototype.getCTUrl=function(a,b,c,d){c&&(0<=a.indexOf("{from}")?a=a.replace("{from}",c):(d||(d="text"),b=["utm_source=fejlec_"+encodeURIComponent(c),"utm_medium="+encodeURIComponent(d),"utm_campaign=fejlec"].join("&"),b=0<=a.indexOf("?")?"&"+b:"?"+b,a=a.replace(/(#|$)/,b+"$1")));return a};
|
||||
__passportHeader.prototype.providerLoginClicked=function(a){var b=a.parentNode.parentNode.getElementsByTagName("form");if(1!=b.length)return!0;a.href=a.href.replace(/autologin=[01]/,"autologin="+(b[0].autologin.checked?1:0));return!0};
|
||||
__passportHeader.prototype.hasLoginError=function(){if(this.config.ignoreLoginError)return!1;if(null!==this.loginError)return this.loginError;var a=document.location.search.match(/[?&]error=(badpass|disabled)/);(this.loginError=a?a[1]:!1)&&void 0!==window.history&&void 0!==window.history.replaceState&&(a=search_orig=document.location.search,a=a.replace(/[?&]error=(badpass|disabled)/,""),"&"==a.charAt(0)?a="?"+a.substr(1):"?"==a&&(a=""),a=document.location.href.replace(document.location.pathname+search_orig,
|
||||
document.location.pathname+a),history.replaceState(null,null,a));return this.loginError};
|
||||
__passportHeader.prototype.createUserDropdown=function(){var a="",b=this.getSiteConfig();a+='<div class="fixed-header-dropdown user-dropdown'+(this.config.loggedIn?"":"-kijelentkezett")+'" id="user-dropdown">';if(this.config.loggedIn){var c=document.location.href;b.logoutUrl?c=b.logoutUrl:this.config.logoutUrl&&(c=this.config.logoutUrl);a+=' <ul class="_iph_std-menu">';this.config.hasFacebook?this.isProviderExpired()&&(a=a+' <li><p class="_iph_important">T\u00fal r\u00e9g l\u00e9pt\u00e9l be a Facebookoddal. Er\u0151s\u00edtsd meg, ha szeretn\u00e9l tov\u00e1bbra is \u00edgy bejelentkezve maradni! <em>(Egy klikk az eg\u00e9sz.)</em><p></li> <li class="facebook"><a href="'+
|
||||
(this.config.INDAPASS_URL+"refreshprovidertoken/?url="+encodeURIComponent(document.location.href)+"\" onclick=\"passportHeader.gaEvent('sessionmeghosszabbitas', 'meghosszabbitklikk', null, 'facebook')\"><span class=\"icon icon-facebook-fff\"></span> Meger\u0151s\u00edtem</a></li>"),a+=' <li class="divider"></li>'):(a+=' <li class="facebook"><a href="'+this.config.INDAPASS_URL+"connectloginprovider/?url="+encodeURIComponent(document.location.href)+"&partner="+this.config.partner_id+'"><span class="icon icon-facebook-fff"></span> \u00d6sszek\u00f6t\u00e9s Facebookkal</a></li>',
|
||||
a+=' <li class="divider"></li>');a+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL,"profil","indapass_profil")+'">Szolg\u00e1ltat\u00e1sok ('+this.config.nick+")</a></li>";a+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"profil/","profil","indapass_profil")+'">Indapass be\u00e1ll\u00edt\u00e1sok</a></li>';a+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"profil/#avatar","profil","indapass_avatar")+'">Profilk\u00e9p</a></li>';if(this.config.links&&
|
||||
this.config.links.loggedIn)for(b=0;b<this.config.links.loggedIn.length;b++)a+='<li><a href="'+this.config.links.loggedIn[b].url+'">'+this.config.links.loggedIn[b].text+"</a>";a=a+' <li class="divider"></li> <li><a class="secondary" href="'+(this.getCTUrl(this.config.INDAPASS_URL+"segitseg/","segitseg","segitseg")+'" target="_blank" onclick="return passportHeader.gaEvent(\'click\',\'help\');">Seg\u00edts\u00e9g</a></li>');a+=' <li><a class="secondary" href="'+this.getCTUrl(this.config.INDAPASS_URL+
|
||||
"kilepes/?redirect_to="+encodeURIComponent(c),"kilepes","kilepes")+'">Kil\u00e9p\u00e9s</a></li>';a+=" </ul>"}else a+=this.createLogoutDropdown(!this.config.s3pc.enabled||this.config.s3pc.supported||null===this.config.s3pc.supported);return a+"</div>"};
|
||||
__passportHeader.prototype.createLogoutDropdown=function(a){var b=!1,c;if(c=this.hasLoginError())switch(c){case "badpass":b="Hib\u00e1s felhaszn\u00e1l\u00f3n\u00e9v vagy jelsz\u00f3!";break;case "disabled":b="A felhaszn\u00e1l\u00f3nevet m\u00e9g nem aktiv\u00e1ltad!"}c=this.config.partner_id;var d=this.getSiteConfig();d&&d.registerSlug&&(c=d.registerSlug);html="";a?(html+=' <ul class="_iph_std-menu">',html+=' <li class="facebook"><a href="'+this.config.INDAPASS_URL+"providerlogin/?url="+
|
||||
encodeURIComponent(document.location.href)+"&partner="+this.config.partner_id+'&autologin=1" onclick="passportHeader.gaEvent(\'click\', \'facebooklogin\'); return passportHeader.providerLoginClicked(this);"><span class="icon icon-facebook-fff"></span> Bel\u00e9p\u00e9s Facebookkal</a></li>',html+=' <li class="divider indapass-logo"><span></span></li>',html+=' <li class="_iph_loginform">',html+=' <form action="'+this.config.LOGIN_URL+'" method="POST" accept-charset="utf-8">',
|
||||
html+=' <input type="hidden" name="partner_id" value="'+this.config.partner_id+'">',html+=' <input type="hidden" name="redirect_to" value="'+document.location.href+'"/>',html+=' <input type="text" placeholder="Email c\u00edm" name="username" id="_iph_login_username" onchange="return passportHeader.gaEvent(\'active\', \'loginemailmezo\')"/>',html+=' <input type="password" placeholder="Jelsz\u00f3" name="password" onchange="return passportHeader.gaEvent(\'active\', \'loginjelszomezo\')"/>',
|
||||
b&&(html+=' <p class="errormsg">'+b+"</p>"),html+=" <button type=\"submit\" onclick=\"return passportHeader.gaEvent('click', 'loginbutton')\">Bel\u00e9p\u00e9s</button>",html+=' <input id="maradjakbelepve" type="checkbox" name="autologin" value="1" checked="checked" onchange="return passportHeader.gaEvent(\'active\', \'loginremembermezo\')">',html+=' <label for="maradjakbelepve">Maradjak bel\u00e9pve</label>',html+=" </form>",html+=
|
||||
" </li>",html+=' <li class="divider"></li>',html+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"regisztracio/"+c+"/?redirect_to="+encodeURIComponent(document.location.href),"regisztracio","regisztracio")+"\" onclick=\"return passportHeader.gaEvent('click', 'loginregbutton')\">Regisztr\u00e1ci\u00f3</a>",html+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"jelszoemlekezteto/?redirect_to="+encodeURIComponent(document.location.href),"jelszoemlekzteto",
|
||||
"jelszoemlekezteto")+"\" onclick=\"return passportHeader.gaEvent('click', 'loginforgotpassbutton')\">Elfelejtettem a jelszavam</a>"):(html+=' <ul class="_iph_std-menu">',html+=' <li class="divider indapass-logo"><span></span></li>',html+=' <li class="_iph_loginform _iph_s3pc">',html+=' <a href="'+this.config.s3pc.loginHelperURL+'" class="_iph_btn" onclick="return passportHeader.gaEvent(\'click\', \'loginbutton\')">Bel\u00e9p\u00e9s</a>',html+=" </li>",html+=' <li class="divider"></li>',
|
||||
html+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"regisztracio/"+c+"/?redirect_to="+encodeURIComponent(document.location.href),"regisztracio","regisztracio")+"\" onclick=\"return passportHeader.gaEvent('click', 'loginregbutton')\">Regisztr\u00e1ci\u00f3</a>");html+=' <li><a class="_iph_help" href="'+this.getCTUrl(this.config.INDAPASS_URL+"segitseg/","segitseg","segitseg")+'" target="_blank" onclick="return passportHeader.gaEvent(\'click\',\'help\');">Seg\u00edts\u00e9g</a></li>';
|
||||
return html+=" </ul>"};
|
||||
__passportHeader.prototype.createNotificationDropdown=function(){var a='<div class="fixed-header-dropdown notifications-dropdown'+(this.config.loggedIn?"":"-kijelentkezett")+'" id="notifications-dropdown">';this.config.loggedIn&&(a+=' <div id="_iph_notification-loading"> <div class="_iph_noti_dot _iph_noti_dot1"></div> <div class="_iph_noti_dot _iph_noti_dot2"></div> <div class="_iph_noti_dot _iph_noti_dot3"></div> <div class="_iph_noti_dot _iph_noti_dot4"></div> <p>bet\u00f6lt\u00e9s...</p> </div> <div id="_iph_noti_unreachable"><p>Upsz, ez tov\u00e1bb tart mint gondoltuk...</p></div> <div id="_iph_notifications-list"> </div> <div id="_iph_has-more-button"><span class="_iph_lnk">tov\u00e1bbi \u00e9rtes\u00edt\u00e9sek</span></div>');return a+
|
||||
"</div>"};
|
||||
__passportHeader.prototype.createTokenalertDropdown=function(){var a="";if(!this.config.loggedIn)return a;a=a+'<div class="fixed-header-dropdown fbtoken-dropdown inactive" id="fbtoken-dropdown"> <p class="_iph_fbtoken_stnd">T\u00fal r\u00e9g l\u00e9pt\u00e9l be a Facebookoddal. Er\u0151s\u00edtsd meg, ha szeretn\u00e9l tov\u00e1bbra is \u00edgy bejelentkezve maradni! <em>(Egy klikk az eg\u00e9sz.)</em></p> <p class="_iph_fbtoken_err">Valami hiba t\u00f6rt\u00e9nt a Facebookos bel\u00e9p\u00e9sed meger\u0151s\u00edt\u00e9sekor :( Pr\u00f3b\u00e1lkozz \u00fajra picit k\u00e9s\u0151bb!</p> <p class="_iph_fbtoken_succ">Sikeresen meghosszabb\u00edtottad a Facebookos bel\u00e9p\u00e9sed :)</p> <p class="_iph_fbtoken_ctrl"> <a href="'+(this.getCTUrl(this.config.INDAPASS_URL+
|
||||
"profil/#setting-Facebook","profil","indapass_facebook")+"\" class=\"_iph_fbtoken_settings\" onclick=\"passportHeader.gaEvent('sessionmeghosszabbitas', 'beallitasklikk', null, 'facebook')\"></a>");a+=' <a href="'+this.config.INDAPASS_URL+"refreshprovidertoken/?url="+encodeURIComponent(document.location.href)+"\" class=\"_iph_fbtoken_fb\" onclick=\"passportHeader.gaEvent('sessionmeghosszabbitas', 'meghosszabbitklikk', null, 'facebook')\"><span>Meger\u0151s\u00edtem</span><span>\u00dajra pr\u00f3b\u00e1l</span></a>";
|
||||
return a+' </p> <span id="_iph_fbtoken_close"></span></div>'};
|
||||
__passportHeader.prototype.createIndaDropdown=function(){var a=this.manisHeader[this.config.sitelinkId].inda;var b='<div class="fixed-header-inda-dropdown-wrapper"> <div id="inda-dropdown" class="fixed-header-dropdown inda-dropdown"> <ul class="_iph_std-menu">';for(var c=0;c<a.length;c++){var d=this.getSiteConfig(a[c]);if(d){var e=this.config.from?this.config.from:this.config.partner_id,f=d.id;b+='<li><a href="'+this.getCTUrl(d.url,null,e)+"\" onclick=\"return passportHeader.gaEvent('click','jshead_ct:"+
|
||||
e+"-"+f+"');\">";b+=void 0!==d.dropdownName?d.dropdownName:d.name;b+="</a></li>"}else this.debug&&console.log("Unknown siteid "+a[c]+" in inda dropdown config!")}return b+" </ul> </div></div>"};__passportHeader.prototype.showBadge=function(a){var b=document.getElementById("notification-badge");b&&(0<a?(b.innerHTML=a,__passportHeaderUtil.removeClass(b,"inactive")):__passportHeaderUtil.addClass(b,"inactive"))};
|
||||
__passportHeader.prototype.addNotifications=function(a,b){void 0===b&&(b=!1);this.removeNoNotifications();var c="jan feb m\u00e1rc \u00e1pr m\u00e1j j\u00fan j\u00fal aug szept okt nov dec".split(" "),d=document.getElementById("_iph_notification-loading");d&&(d.style.display="none");if(d=document.getElementById("_iph_noti_unreachable"))d.style.display="none";d=document.getElementById("_iph_notifications-list");for(var e=new Date,f=new Date(e.getFullYear(),e.getMonth(),e.getDate()),g=d.firstChild,
|
||||
h=0;h<a.length;h++){var k=a[h];if(!k.deleted&&k.html){var l=document.createElement("div");l.innerHTML=k.html;l.setAttribute("data-notification_id",k.id);var n=this.findFirstElementWithClassName(l,"span","_iph_pubDate");if(n&&k.received){var m=new Date(k.received);if(m.getTime()>=f.getTime())if(e.getTime()-36E5<m.getTime())n.innerHTML=Math.ceil((e.getTime()-m.getTime())/6E4)+" perce";else{var p=10<=m.getMinutes()?m.getMinutes():"0"+m.getMinutes();n.innerHTML=m.getHours()+":"+p}else n.innerHTML=c[m.getMonth()]+
|
||||
". "+m.getDate()}l.className="notification";"read"==k.status&&(l.className+=" read");this.addNotificationClickAnalytics(l);this.ui.addNotificationEventListeners(l);b?d.insertBefore(l,g):d.appendChild(l)}}};
|
||||
__passportHeader.prototype.addNotificationClickAnalytics=function(a){a=a.getElementsByTagName("A");for(var b=0;b<a.length;b++){var c=a[b];c.hasAttribute("data-feedid")&&(c.setAttribute("data-real-href",c.href),c.href=this.getCTUrl(c.href,null,this.config.from?this.config.from:this.config.partner_id,"noti-dropdown"))}};
|
||||
__passportHeader.prototype.showNoNotifications=function(){var a=document.getElementById("_iph_notification-loading");a&&(a.style.display="none");if(a=document.getElementById("_iph_noti_unreachable"))a.style.display="none";a=document.getElementById("_iph_notifications-list");a.children.length||(a.innerHTML=this.noti.subscriptionCount?'<p id="_iph_nonoti"><span></span>Nincs friss dolog, amit mutatni tudn\u00e1nk. K\u00f6vess t\u00f6bb mindent \u00e9s lesz!':'<p id="_iph_nonoti"><span></span>M\u00e9g nem k\u00f6vetsz senkit. Kattintgass a k\u00f6vet\u00e9s gombokra \u00e9s t\u00f6bb\u00e9 nem maradsz le semmir\u0151l! <a href="http://index.hu/feliratkozas" data-lnk="1">B\u0151vebben...</a>')};
|
||||
__passportHeader.prototype.setBreaking=function(a){this.breaking&&this.breaking.setBreaking(a)};__passportHeader.prototype.removeNoNotifications=function(){var a=document.getElementById("_iph_nonoti");a&&a.parentNode.removeChild(a)};__passportHeader.prototype.setLoadMoreButton=function(a){document.getElementById("_iph_has-more-button").className="_iph_"+a};
|
||||
__passportHeader.prototype.notiUnreachable=function(){var a=document.getElementById("_iph_notification-loading");a&&(a.style.display="none");a=document.getElementById("_iph_notifications-list");!a.children.length&&(a=document.getElementById("_iph_noti_unreachable"))&&(a.style.display="block")};
|
||||
__passportHeader.prototype.initAnalytics=function(){window.ga||(window.GoogleAnalyticsObject="ga",window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=1*new Date,__passportHeaderUtil.insertScript("//www.google-analytics.com/analytics.js"));ga("create",this.config.gaTrackingId,"auto",{name:"passportTracker"});ga("passportTracker.set","anonymizeIp",!0)};
|
||||
__passportHeader.prototype.gaEvent=function(a,b,c,d){window.ga||this.initAnalytics();d||(d="noti");ga("passportTracker.send","event",d,a,b,c)};__passportHeader.prototype.initSubscriptionButtons=function(){if(document.getElementsByClassName)for(var a=document.getElementsByClassName("btn-pass"),b=0;b<a.length;b++)a[b].getAttribute("data-subscription-inicialized")||new __passportSubscription(a[b],this.noti,this.config)};
|
||||
__passportHeader.prototype.findFirstElementWithClassName=function(a,b,c){a=a.getElementsByTagName(b);c=new RegExp("(^|\\s)"+c+"(\\s|$)");for(b=0;b<a.length;b++)if(c.exec(a[b].className))return a[b];return null};__passportHeader.prototype.createHint=function(){return this.config.hint?'<img src="'+this.config.hint+'" width="1" height="1"/>':""};
|
||||
__passportHeader.prototype.insertCss=function(a){var b=document.createElement("link");b.type="text/css";b.href=a;b.rel="stylesheet";a=document.getElementsByTagName("link");a.length?a[a.length-1].parentNode.appendChild(b):(a=document.getElementsByTagName("head")[0])&&a.appendChild(b)};__passportHeader.prototype.insertHtml=function(a,b){a&&(a.innerHTML=b)};__passportHeaderUI=function(a){this.header=a;this.items={};this.handlerConfig();this.init();this.ignoreHistory=!1};
|
||||
__passportHeaderUI.prototype.handlerConfig=function(){var a=this;this.listeners={"icon-user":function(d){a.toggleUserDropdown(d)},"icon-harang":function(d){a.header.config.loggedIn?a.toggleNotificationDropdown(d):a.toggleUserDropdown(d);return!1},"icon-inda":function(d){return a.toggler(["icon-inda","icon-inda_parent","icon-inda-mobile","icon-inda-mobile_parent","inda-dropdown"],d)},"icon-fbtoken":function(d){return a.toggler(["icon-fbtoken","fbtoken-dropdown"],d)},"icon-inda-mobile":function(d){return a.toggler("icon-inda icon-inda_parent icon-inda-mobile icon-inda-mobile_parent inda-dropdown fixed-header-mobil-kiadvanyok".split(" "),
|
||||
d)},"user-dropdown":function(d){a.stopEvent(d,!0)},"notifications-dropdown":function(){},"inda-dropdown":function(d){a.stopEvent(d,!0)},"fbtoken-dropdown":function(d){a.stopEvent(d,!0)},"_iph_fixed-header-dropdown-container":function(d){return a.toggler([],d)},_iph_fbtoken_close:function(d){a.header.gaEvent("sessionmeghosszabbitas","bezarklikk",null,"facebook");a.header.resetAlertStatus();return a.toggler([],d)},"_iph_has-more-button":function(d){a.loadMoreNotifications();a.stopEvent(d);return!1}};
|
||||
if(this.header.config.mainMenu&&this.header.config.mainMenu.length)for(var b=0;b<this.header.config.mainMenu.length;b++){var c=this.header.config.mainMenu[b];c.click&&(this.listeners["icon-"+c["class"]]=function(d){return"string"==typeof c.click?window[c.click](d):c.click(d)})}};
|
||||
__passportHeaderUI.prototype.init=function(){var a=this,b;for(b in this.listeners){var c={};c.obj=document.getElementById(b);c.obj&&__passportHeaderUtil.addListener(c.obj,"click",this.listeners[b]);this.items[b]=c}this.setNotificationDivHeight();window.onresize=function(d){a.setNotificationDivHeight();a.positionDropdown()};__passportHeaderUtil.addListener(document,"click",function(d){"object"!==typeof a.items[d.target.id]&&(a.isUserDropdownOpen()&&a.header.gaEvent("click","fejlecloginclose"),a.isNotificationDropdownOpen()&&
|
||||
a.header.gaEvent("click","localmodalclose"),a.toggler([],d))});void 0!==window.history&&__passportHeaderUtil.addListener(window,"popstate",function(d){a.ignoreHistory||a.toggler([],d);a.ignoreHistory=!1});this.header.hasLoginError()&&(this.toggleUserDropdown(),(b=document.getElementById("_iph_login_username"))&&b.focus())};__passportHeaderUI.prototype.onLoad=function(){this.positionDropdown()};
|
||||
__passportHeaderUI.prototype.stopEvent=function(a,b){if(null===a)return!1;"function"==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;b||("function"==typeof a.preventDefault?a.preventDefault():a.returnValue=!1);return!1};
|
||||
__passportHeaderUI.prototype.addNotificationEventListeners=function(a){for(var b=this,c=a.getElementsByClassName("unsubscribe-icon-x"),d=0;d<c.length;d++)__passportHeaderUtil.addListener(c[d],"click",function(e){b.showUnsub(this);b.header.gaEvent("click","unsubscribestep1");return b.stopEvent(e)});c=a.getElementsByClassName("unsubBtnOk");for(d=0;d<c.length;d++)__passportHeaderUtil.addListener(c[d],"click",function(e){b.doUnsub(this);return b.stopEvent(e)},!1);c=a.getElementsByClassName("unsubBtnCancel");
|
||||
for(d=0;d<c.length;d++)__passportHeaderUtil.addListener(c[d],"click",function(e){b.hideUnsub(this);b.header.gaEvent("click","unsubscribecancel");return b.stopEvent(e)},!1);a=a.getElementsByTagName("A");for(d=0;d<a.length;d++)__passportHeaderUtil.addListener(a[d],"click",function(e){return b.followLink(this,e)},!1),__passportHeaderUtil.addListener(a[d],"touchstart",function(e){__passportHeaderUtil.addClass(this.parentNode,"touched")},!1)};
|
||||
__passportHeaderUI.prototype.followLink=function(a,b){this.markRead(a);if(!a.href)return!0;var c=a.getAttribute("data-real-href")?a.getAttribute("data-real-href"):a.href;this.header.gaEvent("contentclick",c);if(b.ctrlKey||b.metaKey)return!0;window.setTimeout(function(){window.location=a.href},150);return this.stopEvent(b)};
|
||||
__passportHeaderUI.prototype.markRead=function(a){if(a=this.findParentWithAttribute("data-notification_id",a))this.header.noti.setNotificationStatusToRead(a.getAttribute("data-notification_id")),__passportHeaderUtil.removeClass(a,"unread"),__passportHeaderUtil.addClass(a,"read")};
|
||||
__passportHeaderUI.prototype.toggler=function(a,b,c){var d=!1;if(b&&b.target&&b.target.tagName&&"A"==b.target.tagName&&b.target.getAttribute("data-lnk")||b&&(b.ctrlKey||b.metaKey))return!0;for(var e in this.items)this.items[e].obj&&(-1===a.indexOf(e)?__passportHeaderUtil.replaceClass(this.items[e].obj,"active","inactive"):__passportHeaderUtil.hasClass(this.items[e].obj,"active")?__passportHeaderUtil.replaceClass(this.items[e].obj,"active","inactive"):(__passportHeaderUtil.replaceClass(this.items[e].obj,
|
||||
"inactive","active"),d=!0));d?(__passportHeaderUtil.replaceClass(this.items["_iph_fixed-header-dropdown-container"].obj,"inactive","active"),void 0===window.history||void 0===window.history.pushState||window.history.state&&window.history.state.hasActive||window.history.pushState({targets:a,hasActive:!0},"",null)):(void 0!==window.history&&window.history.state&&window.history.state.hasActive&&(this.ignoreHistory=!0,window.history.go(-1)),__passportHeaderUtil.replaceClass(this.items["_iph_fixed-header-dropdown-container"].obj,
|
||||
"active","inactive"));if(null!==b&&"object"===typeof b&&this.checkIsIndapassElement(b.target))return this.stopEvent(b),"function"===typeof c&&c(),!1};__passportHeaderUI.prototype.checkIsIndapassElement=function(a){return"function"==typeof a.hasAttribute&&a.hasAttribute("id")&&"passportHeader"==a.getAttribute("id")?!0:"string"===typeof a.className&&a.className.match(/_iph_brk/)||!a.parentElement||"BODY"==a.parentElement.tagName?!1:this.checkIsIndapassElement(a.parentElement)};
|
||||
__passportHeaderUI.prototype.toggleNotificationDropdown=function(a){this.toggler(["icon-harang","icon-harang_parent","notifications-dropdown"],a);this.isNotificationDropdownOpen()?(this.header.gaEvent("click","localmodalopen"),this.header.noti.getNewNotifications()):this.header.gaEvent("click","localmodalclose")};
|
||||
__passportHeaderUI.prototype.toggleUserDropdown=function(a){if(this.header.config.loggedIn)return this.toggler(["icon-user","icon-user_parent","user-dropdown"],a);var b;if("object"==typeof a&&(b=a.target.className.match(/icon-([\w]+)/))){b=b[1];if(this.lastTarget!=b&&__passportHeaderUtil.hasClass(this.items["icon-user"].obj,"active"))return this.lastTarget=b,this.stopEvent(a),!1;this.lastTarget=b}b=this.toggler(["icon-user","icon-user_parent","user-dropdown"],a);this.isUserDropdownOpen()?this.header.gaEvent("click",
|
||||
"fejlecloginopen"):this.header.gaEvent("click","fejlecloginclose");return b};__passportHeaderUI.prototype.isNotificationDropdownOpen=function(){return __passportHeaderUtil.hasClass(this.items["notifications-dropdown"].obj,"active")};__passportHeaderUI.prototype.isUserDropdownOpen=function(){return __passportHeaderUtil.hasClass(this.items["user-dropdown"].obj,"active")};
|
||||
__passportHeaderUI.prototype.loadMoreNotifications=function(){this.header.gaEvent("click","tovabbiertesitesek");this.header.setLoadMoreButton("disabled");this.header.noti.getNextNotifications()};__passportHeaderUI.prototype.getClosestParent=function(a,b){for(a=a.parentNode;"BODY"!=a.tagName&&a.tagName!=b;)a=a.parentNode;return a};__passportHeaderUI.prototype.showUnsub=function(a){__passportHeaderUtil.addClass(a.nextElementSibling,"active")};
|
||||
__passportHeaderUI.prototype.doUnsub=function(a){var b=this.findParentWithAttribute("data-feedid",a);if(!b)return!1;this.header.noti.unsubscribe(b.getAttribute("data-feedid"));this.markRead(a);__passportHeaderUtil.addClass(b,"unsubscribed");a=b.getElementsByTagName("p");1>a.length||(a[0].innerHTML="Nem fogsz t\u00f6bb \u00e9rtes\u00edt\u00e9st kapni err\u0151l.")};__passportHeaderUI.prototype.hideUnsub=function(a){__passportHeaderUtil.removeClass(a.parentNode,"active")};
|
||||
__passportHeaderUI.prototype.setNotificationDivHeight=function(){var a=this.getViewport();null!==this.items["notifications-dropdown"].obj&&(700<a[0]?(a=parseInt(.75*a[1])-20,this.items["notifications-dropdown"].obj.style.maxHeight=a+"px"):this.items["notifications-dropdown"].obj.style.maxHeight=null)};
|
||||
__passportHeaderUI.prototype.positionDropdown=function(){if(this.items["inda-dropdown"]&&null!==this.items["inda-dropdown"].obj){var a=this.getViewport(),b=this.header.dom.className.match(/_iph_irresponsive/);this.items["inda-dropdown"].obj.style.left=700>=a[0]&&!b?null:this.items["icon-inda"].obj.offsetLeft+"px"}};
|
||||
__passportHeaderUI.prototype.getViewport=function(){if("undefined"!=typeof window.innerWidth){var a=window.innerWidth;var b=window.innerHeight}else"undefined"!=typeof document.documentElement&&"undefined"!=typeof document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?(a=document.documentElement.clientWidth,b=document.documentElement.clientHeight):(a=document.getElementsByTagName("body")[0].clientWidth,b=document.getElementsByTagName("body")[0].clientHeight);return[a,b]};
|
||||
__passportHeaderUI.prototype.findParentWithAttribute=function(a,b){return b&&void 0!==b.hasAttribute?b.hasAttribute(a)?b:void 0!==b.parentNode&&b.parentNode?this.findParentWithAttribute(a,b.parentNode):null:null};__passportIdent=function(a,b){if("object"==typeof a){if("undefined"!==typeof __passportHeader&&a instanceof __passportHeader){if(!a.config.IDENT_URL)return;this.IDENT_URL=a.config.IDENT_URL;this.tid=b;this.standalone=!1}else{if(!a.IDENT_URL)return;this.IDENT_URL=a.IDENT_URL;this.tid=a.tid;this.standalone=!0}this.cookieName="ident";this.cookieChecked=!1;this.tid&&(this.cookie=this.checkCookie())&&this.sendHit()}};
|
||||
__passportIdent.prototype.checkCookie=function(){var a;if(void 0!==this.cookie)return this.cookie;if(a=__passportHeaderUtil.cookie(this.cookieName))return a;if(this.cookieChecked)return!1;__passportHeaderUtil.insertScript(this.IDENT_URL+"management/getcookie?jsonp="+encodeURIComponent((this.standalone?"passportIdent":"passportHeader.ident")+".setCookie"));this.cookieChecked=!0;return!1};
|
||||
__passportIdent.prototype.setCookie=function(a){__passportHeaderUtil.cookie(this.cookieName,a,{path:"/",expires:14});this.cookie=a;this.sendHit()};__passportIdent.prototype.sendHit=function(a){if(this.tid||a){a||(a=this.tid);if(!this.cookie&&(this.tid=a,this.cookie=this.checkCookie(),!this.cookie))return;var b=1E17*Math.random();a=this.IDENT_URL+"ident/hit.js?tid="+encodeURIComponent(a)+"&cemp="+encodeURIComponent(this.cookie)+"&rnd="+b;__passportHeaderUtil.insertScript(a)}};
|
||||
"object"==typeof __passportIdentConfig&&(passportIdent=new __passportIdent(__passportIdentConfig));__notiClient=function(a,b){this.header=a;this.sessionTimeout=3600;this.sid=null;this.maxErrorDelay=120;this.unconnectedSince=null;this.maxUnconnectedPeriod=60;this.pingInterval=18E4;this.unreachable=!1;this.firstNotificationTime=this.lastNotificationTime=null;this.reregisterCount=0;this.pingTimer=null;this.subscriptionCount=0;this.inTransaction=!1;this.transactionCommands={};this.init(b)};
|
||||
__notiClient.prototype.init=function(a){if(null==a)if(window.localStorage)this.storage=localStorage;else return null;else this.storage=a;this.errorDelay=5;this.createDefaultEventHandlers();if(this.header.config.loggedIn&&!this.header.config.disableNoti){var b,c;(b=this.storage.getItem("__notiClient.sid"))&&(c=b.match(/(.*):([0-9]+)/))&&c[2]>(new Date).getTime()?(this.sid=c[1],this.loadSockJS()):this.startSession()}};
|
||||
__notiClient.prototype.createDefaultEventHandlers=function(){var a=this;this.onmessage=function(b){a.header.debug&&console.log("message",b)};this.eventHandlers=[];this.onaccepted=function(){};this.onclosed=function(){};this.onbeforeopen=function(){};this.onissubscribed={};this.onunreachableHandlers=[];this.loaded=!1};
|
||||
__notiClient.prototype.startSession=function(){let a,b;if(null==(a=this.header.config)?0:null==(b=a.s3pc)?0:b.tokenUrl){var c=new XMLHttpRequest;c.open("GET",this.header.config.s3pc.tokenUrl,!0);c.onreadystatechange=e=>{4==c.readyState&&200==c.status&&(e=JSON.parse(e.target.response),console.log("got token",e),__passportHeaderUtil.insertScript(this.header.config.NOTI_URL+"http/get_session?token="+e,"notiDaemon"))};c.send()}else{var d=this;__passportHeaderUtil.insertScript(this.header.config.NOTI_URL+
|
||||
"http/start_session?r="+Math.round(1E6*Math.random()),"notiDaemon",null,function(){d.header.debug&&console.log("Session start failed");this.parentNode.removeChild(this);d.retryLater(function(){d.startSession()})},"use-credentials")}};__notiClient.prototype.loadSockJS=function(){var a=this;__passportHeaderUtil.insertScript("https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js","sockjs",function(){a.openSocket()})};
|
||||
__notiClient.prototype.openSocket=function(){this.header.debug&&console.log("opening socket with sid: "+this.sid);this.onbeforeopen();var a=this;this.sock=new SockJS(this.header.config.NOTI_URL+"ws");this.sock.onopen=function(){a.header.debug&&console.log("socket opened");a.notiRegister();a.resetErrorDelay()};this.sock.onmessage=function(b){a.onmessage(b.data);try{var c=JSON.parse(b.data);a.onNotiMessage(c)}catch(d){}};this.sock.onclose=function(){a.header.debug&&console.log("socked closed, reconnecting...");
|
||||
a.retryLater(function(){a.openSocket()});a.onclosed()}};__notiClient.prototype.notiRegister=function(){this.sock&&this.sock.readyState===SockJS.OPEN&&(this.sock.send(JSON.stringify({action:"register",sid:this.sid,uid:this.header.config.uid})),this.setSID(this.sid))};
|
||||
__notiClient.prototype.getNotifications=function(a,b){if(this.sock&&this.sock.readyState===SockJS.OPEN)this.sock.send(JSON.stringify({action:"get_inbox",before:a,until:b}));else if(this.header.config.loggedIn){var c=this;this.registerOnLoadHandler(function(){c.getNotifications(a,b)})}};__notiClient.prototype.getNewNotifications=function(){this.getNotifications(null,this.firstNotificationTime)};__notiClient.prototype.getNextNotifications=function(){this.getNotifications(this.lastNotificationTime)};
|
||||
__notiClient.prototype.setNotificationsStatusToSeen=function(a){this.sock&&this.sock.readyState===SockJS.OPEN&&0<a&&this.sock.send(JSON.stringify({action:"notification_seen",until:a}))};__notiClient.prototype.setNotificationStatusToRead=function(a){this.loaded&&this.sock&&this.sock.readyState===SockJS.OPEN&&this.sock.send(JSON.stringify({action:"notification_read",id:a}))};
|
||||
__notiClient.prototype.setNotificationStatusToReadByURL=function(a){this.sock&&this.sock.readyState===SockJS.OPEN&&this.sock.send(JSON.stringify({action:"notification_read",url:a}))};__notiClient.prototype.subscribe=function(a){if(this.sock&&this.sock.readyState===SockJS.OPEN){var b=this.feedIdToGALabel(a);b&&this.header.gaEvent("subscribe",b);this.sock.send(JSON.stringify({action:"subscribe",feed_id:a}));this.subscriptionCount++}};
|
||||
__notiClient.prototype.unsubscribe=function(a){if(this.sock&&this.sock.readyState===SockJS.OPEN){var b=this.feedIdToGALabel(a);b&&this.header.gaEvent("unsubscribe",b);this.sock.send(JSON.stringify({action:"unsubscribe",feed_id:a}))}};__notiClient.prototype.feedIdToGALabel=function(a){a=a.match(/^feed:\/\/([^\/]+)(\/[^\/]+)?/);if(!a)return!1;void 0===a[2]?a[2]="/":a[2].match(/^\/[0-9]+$/)&&(a[2]="/");return a[1]+a[2]};
|
||||
__notiClient.prototype.beginTransaction=function(){this.inTransaction=!0;this.transactionCommands.isSubscribed=[]};__notiClient.prototype.endTransaction=function(){this.inTransaction=!1;this.transactionCommands.isSubscribed.length&&this.isSubscribed(this.transactionCommands.isSubscribed)};
|
||||
__notiClient.prototype.isSubscribed=function(a){if(this.sock&&this.sock.readyState===SockJS.OPEN)if("string"===typeof a&&(a=[a]),this.inTransaction)for(var b=0;b<a.length;b++)0>this.transactionCommands.isSubscribed.indexOf(a[b])&&this.transactionCommands.isSubscribed.push(a[b]);else this.sock.send(JSON.stringify({action:"isSubscribed",feed_ids:a}))};__notiClient.prototype.getSubscriptionCount=function(){this.sock&&this.sock.readyState===SockJS.OPEN&&this.sock.send(JSON.stringify({action:"subscriptionCount"}))};
|
||||
__notiClient.prototype.onNotiMessage=function(a){if(a.action)switch(a.action){case "setNotificationCount":this.onload(a.count);this.dispatchEvent("setNotificationCount",[a.count]);this.header.showBadge(a.count);break;case "isSubscribed":this.onIsSubscribedReceived(a.feeds);break;case "restartSession":this.restartSession();break;case "reregister":var b=this;++this.reregisterCount%3?window.setTimeout(function(){b.notiRegister()},5E3):9<=this.reregisterCount?this.serverUnreachable():this.restartSession();
|
||||
break;case "notifications":this.dispatchEvent("notifications",[a.notifications]);this.onNotifications(a);break;case "accepted":this.onaccepted();this.getSubscriptionCount();break;case "subscriptionCount":this.onSubscriptionCountReceived(a);break;case "pong":this.onPong()}};
|
||||
__notiClient.prototype.onNotifications=function(a){var b=null!=a.request.until&&null==a.request.before;b||this.header.setLoadMoreButton(a.hasMore?"active":"hidden");if(0==a.notifications.length)this.header.showNoNotifications();else{this.header.addNotifications(a.notifications,b);if(null===this.firstNotificationTime||a.notifications[0].received>this.firstNotificationTime)this.firstNotificationTime=a.notifications[0].received;if(null===this.lastNotificationTime||a.notifications[a.notifications.length-
|
||||
1].received<this.lastNotificationTime)this.lastNotificationTime=a.notifications[a.notifications.length-1].received;null==a.request.before&&this.header.ui.isNotificationDropdownOpen()&&this.setNotificationsStatusToSeen(this.firstNotificationTime)}};__notiClient.prototype.onSubscriptionCountReceived=function(a){"undefined"!=typeof a.count&&(this.subscriptionCount=a.count)};__notiClient.prototype.onIsSubscribedReceived=function(a){for(var b in a)this.dispatchIsSubscribed(b,a[b])};
|
||||
__notiClient.prototype.dispatchIsSubscribed=function(a,b){if(this.onissubscribed[a])if("function"==typeof this.onissubscribed[a])this.onissubscribed[a](b);else for(var c=0;c<this.onissubscribed[a].length;c++)this.onissubscribed[a][c](b)};__notiClient.prototype.registerOnIsSubscribedHandler=function(a,b){this.onissubscribed[a]||(this.onissubscribed[a]=[]);this.onissubscribed[a].push(b)};
|
||||
__notiClient.prototype.onload=function(a){this.loaded||(this.beginTransaction(),this.dispatchEvent("load",[a]),this.endTransaction(),this.loaded=!0,this.header.config.markURLRead&&this.setNotificationStatusToReadByURL(document.location.protocol+"//"+document.location.hostname+document.location.port+document.location.pathname+document.location.search))};__notiClient.prototype.registerOnLoadHandler=function(a){this.header.config.disableNoti||(this.loaded?a():this.addEventListener("load",a))};
|
||||
__notiClient.prototype.addEventListener=function(a,b){this.eventHandlers[a]||(this.eventHandlers[a]=[]);this.eventHandlers[a].push(b)};__notiClient.prototype.dispatchEvent=function(a,b){var c;if(this.eventHandlers[a])for(c=0;c<this.eventHandlers[a].length;c++)this.eventHandlers[a][c].apply(null,b)};__notiClient.prototype.registerUnreachableHandler=function(a){this.header.config.loggedIn&&!this.header.config.disableNoti&&this.onunreachableHandlers.push(a)};
|
||||
__notiClient.prototype.close=function(){this.sid=null;this.sock&&(this.sock.onclose=null,this.sock.close(),this.sock=null);this.storage.removeItem("__notiClient.sid")};__notiClient.prototype.restartSession=function(){this.close();var a=this;this.retryLater(function(){a.startSession()})};
|
||||
__notiClient.prototype.reinit=function(){this.close();this.firstNotificationTime=this.lastNotificationTime=null;this.loaded=!1;for(var a in this.onissubscribed)this.dispatchIsSubscribed(a,!1);this.header.config.loggedIn&&!this.header.config.disableNoti&&this.startSession()};
|
||||
__notiClient.prototype.retryLater=function(a){window.setTimeout(a,1E3*this.errorDelay);this.errorDelay=Math.min(2*this.errorDelay,this.maxErrorDelay);this.unconnectedSince?!this.unreachable&&(new Date).getTime()-this.unconnectedSince>1E3*this.maxUnconnectedPeriod&&this.serverUnreachable():this.unconnectedSince=(new Date).getTime()};__notiClient.prototype.serverUnreachable=function(){this.header.debug&&console.log("Server is considered unreachable");this.unreachable=!0;for(var a=0;a<this.onunreachableHandlers.length;a++)this.onunreachableHandlers[a]()};
|
||||
__notiClient.prototype.resetErrorDelay=function(){this.errorDelay=1;this.unconnectedSince=null;this.unreachable=!1;this.header.debug&&console.log("Server is reachable again")};__notiClient.prototype.setSID=function(a){this.sid=a;this.storage.setItem("__notiClient.sid",a+":"+((new Date).getTime()+1E3*this.sessionTimeout));this.sock||(void 0!==window.SockJS?this.openSocket():this.loadSockJS())};
|
||||
__notiClient.prototype.close=function(){this.sid=null;this.sock&&(this.sock.onclose=null,this.sock.close(),this.sock=null);this.onclosed()};__notiClient.prototype.ping=function(){if(this.sock&&!this.pingTimer){this.sock.send(JSON.stringify({action:"ping"}));var a=this;this.pingTimer=window.setTimeout(function(){a.header.debug&&console.log("no reply received on ping, closing socket");a.close();a.pingTimer=null;a.retryLater(function(){a.openSocket()})},1500)}};
|
||||
__notiClient.prototype.onPong=function(){if(this.pingTimer){window.clearTimeout(this.pingTimer);this.pingTimer=null;var a=this;window.setTimeout(function(){a.ping()},this.pingInterval)}};__passportSubscription=function(a,b,c){a.getAttribute("data-subscription-inicialized")||(this.dom=a,this.noti=b,this.feed_id=a.getAttribute("data-feed-id"),this.isSubscribed=null,this.didUriCheck=!1,this.config=c,this.dom.setAttribute("data-subscription-inicialized",1),this.txtFollow="k\u00f6vet\u00e9s",this.txtUnFollow="k\u00f6vetem",this.overlayClass="",a.getAttribute("data-txt-follow")&&(this.txtFollow=a.getAttribute("data-txt-follow")),a.getAttribute("data-txt-unfollow")&&(this.txtUnFollow=a.getAttribute("data-txt-unfollow")),
|
||||
a.getAttribute("data-overlay-class")&&(this.overlayClass=" "+a.getAttribute("data-overlay-class")),this.feed_id&&this.feed_id.match(/^feed:\/\/.*/)&&this.init())};
|
||||
__passportSubscription.prototype.init=function(){this.dom.innerHTML='<span class="_iph_loader"><em>T\u00f6lt\u00e9s</em><span class="_iph_dot _iph_dot1"></span><span class="_iph_dot _iph_dot2"></span><span class="_iph_dot _iph_dot3"></span><span class="_iph_dot _iph_dot4"></span></span>';__passportHeaderUtil.addClass(this.dom,"_iph_loading");this.dom.setAttribute("title","Bet\u00f6lt\u00e9s...");var a=this;this.dom.addEventListener("click",function(b){a.onClick();b.preventDefault()});if(this.config.disableNoti)this.onIsSubscribed(!1);
|
||||
else if(this.noti.registerOnIsSubscribedHandler(this.feed_id,function(b){a.onIsSubscribed(b)}),this.noti.registerOnLoadHandler(function(){a.noti.isSubscribed(a.feed_id)}),a.noti.registerUnreachableHandler(function(){null===a.isSubscribed&&a.showError()}),!this.config.loggedIn)this.onIsSubscribed(!1)};
|
||||
__passportSubscription.prototype.onIsSubscribed=function(a){this.isSubscribed=a;__passportHeaderUtil.removeClass(this.dom,"_iph_loading");__passportHeaderUtil.removeClass(this.dom,"_iph_subscr_error");__passportHeaderUtil.removeClass(this.dom.firstChild,"_iph_loader");this.dom.removeAttribute("title");a?(__passportHeaderUtil.addClass(this.dom,"_iph_unfollow"),__passportHeaderUtil.removeClass(this.dom,"_iph_follow"),this.dom.firstChild.innerHTML=this.txtUnFollow):(__passportHeaderUtil.addClass(this.dom,
|
||||
"_iph_follow"),__passportHeaderUtil.removeClass(this.dom,"_iph_unfollow"),this.dom.firstChild.innerHTML=this.txtFollow);this.checkLoginSubscription()};__passportSubscription.prototype.showError=function(){__passportHeaderUtil.removeClass(this.dom,"_iph_loading");__passportHeaderUtil.addClass(this.dom,"_iph_subscr_error");__passportHeaderUtil.removeClass(this.dom.firstChild,"_iph_loader");this.dom.firstChild.innerHTML="";this.dom.setAttribute("title","A k\u00f6vet\u00e9s jelenleg nem el\u00e9rhet\u0151.")};
|
||||
__passportSubscription.prototype.onClick=function(){if(null!==this.isSubscribed)if(this.config.loggedIn){if(this.isSubscribed){this.noti.unsubscribe(this.feed_id);var a="kikovetes"}else this.noti.subscribe(this.feed_id),a="bekovetes";void 0!==window._gaq&&_gaq.push(["_trackEvent","kovetes",a,document.title])}else this.login()};
|
||||
__passportSubscription.prototype.login=function(){function a(h){0==h.charCode&&27==h.keyCode&&b()}function b(){var h=g.getLoginOverlay();h.style.display="none";document.body.removeEventListener("keypress",a,!1);(d=document.getElementById("_iph_overlay_close"))&&d.removeEventListener("click",b,!1);(d=h.getElementsByClassName("_iph_overlay").item(0))&&ov.removeEventListener("click",b,!1)}var c=this.getLoginOverlay(),d,e=this.noti.header.ui.getViewport(),f=document.getElementById("_iph_overlay_login");
|
||||
if(f&&(f.style.left=Math.round((e[0]-350)/2)+"px",f.style.top=Math.round((e[1]-270)/2)+"px",c.style.display="block",e=document.location.href.replace(/#.*$/,"")+"#subscribe-"+encodeURIComponent(this.feed_id),f=c.getElementsByTagName("form"),1==f.length)){f[0].redirect_to.value=e;if(f=document.getElementById("_iph_overlay_fb_button"))f.href=this.config.INDAPASS_URL+"providerlogin/?url="+encodeURIComponent(e)+"&partner="+this.config.partner_id+"&autologin=1";var g=this;document.body.addEventListener("keydown",
|
||||
a,!1);(d=document.getElementById("_iph_overlay_close"))&&d.addEventListener("click",b,!1);ov=c;(d=c.getElementsByClassName("_iph_overlay").item(0))&&d.addEventListener("click",b,!1)}};
|
||||
__passportSubscription.prototype.checkLoginSubscription=function(){if(!this.didUriCheck){this.didUriCheck=!0;var a=document.location.hash.match(/^#subscribe-(feed.*)$/);if(a&&decodeURIComponent(a[1])==this.feed_id){this.isSubscribed||this.noti.subscribe(this.feed_id);var b=location.href.replace(a[0],"");b==location.href&&(b=location.href.replace("#"+encodeURIComponent(a[0].substr(1)),""));void 0!==window.history&&void 0!==window.history.replaceState?history.replaceState(null,null,b):location.href=
|
||||
b}}};__passportSubscription.prototype.getLoginOverlay=function(){var a=document.getElementById("_iph_login_overlay");a||(a=this.createLoginOverlay());a.className="_iph_fixed-header"+this.overlayClass;return a};
|
||||
__passportSubscription.prototype.createLoginOverlay=function(){var a="",b=this.config.partner_id,c=this.noti.header.getSiteConfig();c&&c.registerSlug&&(b=c.registerSlug);this.noti.header.gaEvent("click","feliratkozasloginopen");a=a+' <div class="_iph_overlay"></div> <ul id="_iph_overlay_login" class="_iph_std-menu _iph_overlay-window"> <li id="_iph_overlay_close"></li> <li class="facebook"><a href="'+(this.config.INDAPASS_URL+"providerlogin/?url="+encodeURIComponent(document.location.href)+
|
||||
"&partner="+this.config.partner_id+'&autologin=1" onclick="return passportHeader.providerLoginClicked(this);" id="_iph_overlay_fb_button"><span class="icon icon-facebook-fff"></span> Bel\u00e9p\u00e9s Facebookkal</a></li>');a=a+' <li class="divider indapass-logo"><span></span></li> <li class="_iph_loginform"> <form action="'+(this.config.LOGIN_URL+'" method="POST">');a+=' <input type="hidden" name="partner_id" value="'+this.config.partner_id+'">';a+=' <input type="hidden" name="redirect_to" value="'+
|
||||
document.location.href+'"/>';a=a+' <input type="text" placeholder="Email c\u00edm" name="username"/> <input type="password" placeholder="Jelsz\u00f3" name="password"/> <button type="submit">Bel\u00e9p\u00e9s</button> <input id="_iph_overlay_maradjakbelepve" type="checkbox" name="autologin" value="1" checked="checked"> <label for="_iph_overlay_maradjakbelepve">Maradjak bel\u00e9pve</label> </form> </li> <li class="divider"></li> <li class="_iph_log_reg"><a href="'+
|
||||
(this.noti.header.getCTUrl(this.config.INDAPASS_URL+"regisztracio/"+b+"/?redirect_to="+encodeURIComponent(document.location.href),"regisztracio","regisztracio")+'">Regisztr\u00e1ci\u00f3</a>');a+=' <li class="_iph_log_help"><a class="_iph_help" href="'+this.noti.header.getCTUrl(this.config.INDAPASS_URL+"segitseg/","segitseg","segitseg")+'" target="_blank" onclick="return passportHeader.gaEvent(\'click\',\'help\');">Seg\u00edts\u00e9g</a></li>';a+=" </ul>";b=document.createElement("div");
|
||||
b.setAttribute("id","_iph_login_overlay");b.innerHTML=a;document.body.appendChild(b);return b};__passportBreaking=function(a){this.header=a;this.config=!1;this.init()};__passportBreaking.prototype.init=function(){if(this.header.config.breakingUrl){var a=0>this.header.config.breakingUrl.indexOf("?")?"?":"&";a+="rnd="+Math.round(1E4*Math.random());__passportHeaderUtil.insertScript(this.header.config.breakingUrl+a,"passport-breaking")}};__passportBreaking.prototype.setBreaking=function(a){if(a){this.config=[];for(var b=0;b<a.length;b++)this.checkBreaking(a[b])&&this.config.push(a[b]);this.initBreaking()}};
|
||||
__passportBreaking.prototype.initBreaking=function(){if(!this.config||!this.config.length)return!1;var a=this;this.window={dom:this.createWindowDOM(),ticking:!1,active:!1,scrollY:window.scrollY,oldScrollY:window.scrollY};this.header.config.miniHeader?document.body.appendChild(this.window.dom):this.header.dom.appendChild(this.window.dom);__passportHeaderUtil.dispatchEvent(document,"breakingInitialized",{config:this.config,dom:this.window.dom});window.setTimeout(function(){__passportHeaderUtil.addClass(a.window.dom,
|
||||
"_iph_brk_act")},3E3)};__passportBreaking.prototype.checkBreaking=function(a){if(!a.partner||0>a.partner.indexOf(this.header.config.partner_id))return!1;var b=__passportHeaderUtil.cookie(this.getBreakingCounterId(a.id));null===b&&(b=a.maxDisplayCount);if(0>=b)return!1;a.url==document.location.href?b=0:b--;this.setBreakingCounter(a.id,b);return a.url!=document.location.href};
|
||||
__passportBreaking.prototype.setBreakingCounter=function(a,b){__passportHeaderUtil.cookie(this.getBreakingCounterId(a),b,{path:"/",expires:2});return!0};__passportBreaking.prototype.getBreakingCounterId=function(a){return"passportHeader_"+a};__passportBreaking.prototype.createWindowDOM=function(){for(var a="",b=0;b<this.config.length;b++)a+=this.createBreakingHTML(this.config[b]);b=document.createElement("div");b.className="_iph_brk";b.innerHTML=a;return b};
|
||||
__passportBreaking.prototype.createBreakingHTML=function(a){if(!this.config)return null;var b="_iph_brk_itm";a.cls&&(b+=" "+a.cls);var c="";a.target&&(c=' target="'+a.target+'"');b='<a href="'+a.url+'"'+c+" onclick=\"passportHeader.breaking.breakingClick('"+a.id+"', '"+a.cls+'\');" class="'+b+'">';b+='<p><span class="_brk_msg">';a.icon&&(b+='<img src="'+a.icon+'">');b+=a.msg;b=b+'</span><span class="_iph_brk_cls" onclick="passportHeader.breaking.breakingCloseClicked(\''+(a.id+"', this.parentNode.parentNode, event)\" onmouseenter=\"__passportHeaderUtil.addClass(this.parentNode.parentNode, '_brk_hover')\" onmouseleave=\"__passportHeaderUtil.removeClass(this.parentNode.parentNode, '_brk_hover')\"></span>");
|
||||
return b+"</p></a>"};__passportBreaking.prototype.breakingClick=function(a,b){this.setBreakingCounter(a,0);this.header.gaEvent("click",b.replace("_brk_",""),null,"breaking")};__passportBreaking.prototype.breakingCloseClicked=function(a,b,c){var d=b.parentNode;d.removeChild(b);this.setBreakingCounter(a,0);this.header.ui.stopEvent(c);if(!d.children.length){this.window.active=!1;this.window.dom.style.height=0;var e=this;window.setTimeout(function(){e.breakingDestruct()},1E3)}};
|
||||
__passportBreaking.prototype.breakingDestruct=function(){__passportHeaderUtil.removeClass(this.window.dom,"_iph_brk_act");this.window.dom.parentNode.removeChild(this.window.dom)};__passportCP=function(a){this.text="Ezen az oldalon s\u00fctiket haszn\u00e1lunk.<br> A b\u00f6ng\u00e9sz\u00e9ssel ezt elfogadod.";this.helpUrl="https://inda.hu/sutik/";this.buttonText="meg\u00e9rtettem";this.header=a;this.config=this.getConfig();this.config.text&&(this.text=this.config.text);this.config.helpUrl&&(this.helpUrl=this.config.helpUrl);this.config.buttonText&&(this.buttonText=this.config.buttonText);if(!document.cookie||navigator.userAgent&&navigator.userAgent.match(/FBAV|FB_IAM/)||navigator.userAgent&&
|
||||
navigator.userAgent.match(/indexapp/)||navigator.standalone||this.hasCookie()||this.header&&!this.config.enabled)return!1;this.add_event_funct="addEventListener";this.event_type_prefix="";!document.addEventListener&&document.attachEvent&&(this.add_event_funct="attachEvent",this.event_type_prefix="on");this.createPopup()};
|
||||
__passportCP.prototype.getConfig=function(a){return this.header&&this.header.config&&this.header.config.cookiePolicy?this.header.config.cookiePolicy:"object"==typeof __passportCPConfig?__passportCPConfig:{enabled:!0}};__passportCP.prototype.hasCookie=function(){return document.cookie.match(/(?:^|.*;\s*)_iph_pcb\s*=\s*([^;]*).*$/)};
|
||||
__passportCP.prototype.createPopup=function(){var a=this;this.createCss();this.el=document.createElement("div");this.el.innerHTML=this.buildPopup();this.el.setAttribute("id","_iph_cp_popup");this.header||(this.el.className="_iph_cp_standalone");document.body.appendChild(this.el);this.addListener(document.getElementById("_iph_cp_policy"),"click",function(){a.help()});this.addListener(document.getElementById("_iph_cp_accept"),"click",function(){a.accept()})};
|
||||
__passportCP.prototype.buildPopup=function(){var a="<div><p>"+(this.text+' <span id="_iph_cp_policy">Tov\u00e1bbi inform\u00e1ci\u00f3k</span></p>');a=a+'<p><button id="_iph_cp_accept">'+(this.buttonText+"</button></p>");return a+"</div>"};
|
||||
__passportCP.prototype.accept=function(){var a=new Date;a.setFullYear(a.getFullYear()+3);for(var b=location.hostname.split(".");2<b.length;)b.shift();document.cookie="_iph_pcb = 1 ; expires="+a.toUTCString()+"; "+(2<=b.length?"domain="+b.join("."):"")+"; path=/";if(a=document.getElementById("_iph_cp_popup"))a.parentNode.removeChild(a),this.header&&this.header.gaEvent("megertettemklikk",null,null,"cookiebar")};
|
||||
__passportCP.prototype.help=function(){window.open(this.helpUrl);this.header&&this.header.gaEvent("tovabbiinformacioklikk",null,null,"cookiebar")};
|
||||
__passportCP.prototype.createCss=function(){var a=document.head||document.getElementsByTagName("head")[0],b=document.createElement("style");b.type="text/css";b.styleSheet?b.styleSheet.cssText="#_iph_cp_popup { position: fixed; z-index: 10000; bottom: 0; left: 0; right: 0; height: auto; min-height: 50px; background-color: rgba(224, 224, 224, 0.94); overflow-x: auto; font-family: arial, sans-serif; font-size: 12px; color: black;}@media only screen and (max-width: 700px) { #_iph_cp_popup { border-top: 1px solid #cfcfcf; height: 160px; font-size: 14px; } #_iph_cp_popup._iph_cp_standalone { height: 108px; }}#_iph_cp_popup p { margin: 0; font-size: 12px; font-family: arial, sans-serif;}#_iph_cp_popup > div { margin: 10px auto 0 auto;}@media only screen and (min-width: 700px) { #_iph_cp_popup > div { max-width: 900px; position: relative; padding-left: 5px; margin-bottom: 10px; } #_iph_cp_popup p { line-height: 20px; margin-right: 140px; } #_iph_cp_popup p:last-child { position: absolute; margin-right: 0; right: 5px; top: 0; } #_iph_cp_popup p>br { display: none; }}@media only screen and (max-width: 700px) { #_iph_cp_popup > div { text-align: center; margin-top: 15px; min-width: 260px; } #_iph_cp_popup p:first-child { max-height: 50px; line-height: 14px; overflow-y: auto; } #_iph_cp_popup p:last-child { margin-top: 10px; }}#_iph_cp_popup button { border: 0px none; width: 122px; line-height: 20px; padding: 10px 0; font-size: 13px; cursor: pointer;}#_iph_cp_popup #_iph_cp_policy { text-decoration: underline; cursor: pointer; color: #009AD4;}#_iph_cp_popup p>a { color: #009AD4;}#_iph_cp_popup button#_iph_cp_accept { background-color: #505050; color: white; text-transform: uppercase; font-weight: bold;}":b.appendChild(document.createTextNode("#_iph_cp_popup { position: fixed; z-index: 10000; bottom: 0; left: 0; right: 0; height: auto; min-height: 50px; background-color: rgba(224, 224, 224, 0.94); overflow-x: auto; font-family: arial, sans-serif; font-size: 12px; color: black;}@media only screen and (max-width: 700px) { #_iph_cp_popup { border-top: 1px solid #cfcfcf; height: 160px; font-size: 14px; } #_iph_cp_popup._iph_cp_standalone { height: 108px; }}#_iph_cp_popup p { margin: 0; font-size: 12px; font-family: arial, sans-serif;}#_iph_cp_popup > div { margin: 10px auto 0 auto;}@media only screen and (min-width: 700px) { #_iph_cp_popup > div { max-width: 900px; position: relative; padding-left: 5px; margin-bottom: 10px; } #_iph_cp_popup p { line-height: 20px; margin-right: 140px; } #_iph_cp_popup p:last-child { position: absolute; margin-right: 0; right: 5px; top: 0; } #_iph_cp_popup p>br { display: none; }}@media only screen and (max-width: 700px) { #_iph_cp_popup > div { text-align: center; margin-top: 15px; min-width: 260px; } #_iph_cp_popup p:first-child { max-height: 50px; line-height: 14px; overflow-y: auto; } #_iph_cp_popup p:last-child { margin-top: 10px; }}#_iph_cp_popup button { border: 0px none; width: 122px; line-height: 20px; padding: 10px 0; font-size: 13px; cursor: pointer;}#_iph_cp_popup #_iph_cp_policy { text-decoration: underline; cursor: pointer; color: #009AD4;}#_iph_cp_popup p>a { color: #009AD4;}#_iph_cp_popup button#_iph_cp_accept { background-color: #505050; color: white; text-transform: uppercase; font-weight: bold;}"));
|
||||
a.appendChild(b)};__passportCP.prototype.addListener=function(a,b,c){var d=c;window.addEventListener||(d=function(e){e=e||window.event;e.target=e.target||e.srcElement;c.apply(this,[e])});a[this.add_event_funct](this.event_type_prefix+b,d,!1)};__passportCP.prototype.supports3PC=function(){if(!window.localStorage)return null;var a=window.localStorage.getItem("__indapass.3pc");return null===a?null:(a=JSON.parse(a))?void 0!==a.supported?a.supported:null:null};
|
||||
__passportCP.prototype.check3PCSupport=function(a,b){console.log("Checking 3rd party cookie support");if("undefined"===typeof window.fetch)return this.cookiecheckResult(!1);this.cookiecheckStep1(a,b)};
|
||||
__passportCP.prototype.cookiecheckStep1=function(a,b){var c=Math.round(1E6*Math.random());fetch(a+"?challenge="+c+"&expires=2592000",{credentials:"include"}).then(d=>d.json()).then(d=>{0<d.count?this.cookiecheckResult(!0,b):d.msg&&"challenge-set"==d.msg?setTimeout(()=>this.cookiecheckStep2(a,b,c),1E3):this.cookiecheckResult(!1,b)}).catch(d=>{console.log("Cookiecheck failed",d);this.cookiecheckResult(null,b)})};
|
||||
__passportCP.prototype.cookiecheckStep2=function(a,b,c){fetch(a,{credentials:"include"}).then(d=>d.json()).then(d=>{0<d.count?this.cookiecheckResult(!0,b):(console.log("Cookies not supported"),this.cookiecheckResult(!1,b))}).catch(d=>{console.log("Cookiecheck failed",d);this.cookiecheckResult(null,b)})};
|
||||
__passportCP.prototype.cookiecheckResult=function(a,b){if(null===a)return b(a);var c=window.localStorage.getItem("__indapass.3pc");null!==c&&(c=JSON.parse(c));c||(c={});c.supported=a;window.localStorage.setItem("__indapass.3pc",JSON.stringify(c));b(a)};"undefined"==typeof __passportHeader&&new __passportCP;__passportRP=function(a){this.cookieName="rp_init";this.config=a.config;"undefined"!==typeof this.config.IDENT_URL&&this.checkRP()};
|
||||
__passportRP.prototype.checkRP=function(){if(!this.hasCookie()){var a=document.createElement("img");a.setAttribute("border",0);a.setAttribute("width",1);a.setAttribute("height",1);var b="https:"==document.location.protocol?"https":"http";a.setAttribute("src",this.config.IDENT_URL.replace(/^http[s]?:/,"")+"management/rpFingerprint?proto="+b);document.body.appendChild(a);var c=!1,d=this;a.onload=a.onreadystatechange=function(){c||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||
|
||||
(c=!0,d.setCookie())};window.setTimeout(function(){d.setCookie()},5E3)}};__passportRP.prototype.hasCookie=function(){return __passportHeaderUtil.cookie(this.cookieName)};__passportRP.prototype.setCookie=function(){return __passportHeaderUtil.cookie(this.cookieName,"1",{expires:1})};var passportHeader=new __passportHeader(__passportHeader_config);
|
||||