PageSourceSearch

https://port.hu/js/search.extended.min.js?v=1788531793

js port.hu collected 2026-09-24 09:10:36 UTC 4,745 bytes, 3 lines download raw bytes

1/*! yii2port - v1.0.0 - 2026-09-04 14:22:42 */
2$(function(){({sCheckEvents:".check-events",sFavCinemaFilterLabel:"#only-fav-cinemas .checkbox-label",sFavCinemaModalToggler:".edit-favorite-cinemas",eCheckEventsClick:function(e){var t=e.data.self;""==$(e.currentTarget).attr("href")&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),t.loadEventDates($(e.currentTarget)))},eSetFavCinemaFilter:function(e){e.data.self;e.stopPropagation(),e.stopImmediatePropagation(),portFunctions.isLoggedIn()||($("#login_modal").modal(),e.preventDefault())},eToggleFavCinemaModal:function(e){e.data.self;e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),portFunctions.isLoggedIn()||$("#login_modal").modal()},init:function(){this.setEventHandlers()},setEventHandlers:function(){$(document).on("click",this.sCheckEvents,{self:this},this.eCheckEventsClick),$(document).on("click",this.sFavCinemaFilterLabel,{self:this},this.eSetFavCinemaFilter),$(document).on("click",this.sFavCinemaModalToggler,{self:this},this.eToggleFavCinemaModal),document.querySelector("#city")&&document.querySelector("#city").addEventListener("change",function(e){$("input.horizontal-search-city-main").val("cityList-3372"==e.target.value?1:"")})},loadEventDates:function(t){var a=$("#event-date").val(),n=$("#event-location").val(),e=$("#event-date-until").val(),i=t.data("event"),o="",s="",r=t.data("eventurl");$.ajax({url:"/search/get-cinema-events",type:"POST",data:{location:n,date:a,dateUntil:e,movie:i,movieUrl:r},success:function(e){return""===e?(s=1==n?(o="cityList-3372",n):(o=n,""),e=r+"?date="+a+"&city="+o+"&cityMain="+s+"#events",window.location.href=e):(t.hide(),$('.events-small-table[data-event="'+i+'"]').addClass("loaded").html(e))}})}}).init(),$("#search-form").on("submit",function(e){e.preventDefault();var e=window.location.pathname,t=(e.match(/^\/.*\//)&&(e=e.replace(/\/[^/]*$/,"")),$(this).find("[name=area]:checked").val());"start"!=$(this).find("[name=s]:checked").val()&&"place"!=$(this).find("[name=s]:checked").val()||"cinemaevent"!=t||(t+="-oldschool"),e.length&&"object"==typeof window.portSearch.urls&&window.portSearch.urls.hasOwnProperty(t)?e+="/"+window.portSearch.urls[t]:e=window.location.pathname,window.history.pushState({},"",e+"?"+$(this).serialize()),$(this).data("yiiActiveForm").validated=!0,$("#search-results").load(window.location.pathname,$(this).serialize(),function(){$("#search-results").addClass("old-school"),$("input[value=relevance]").parent().toggleClass("hidden",""==$("#search-form input[name=q]").val()),portFunctions.ajaxPageReloadMeasuring(),googletag.destroySlots(),ado.refresh(Object.keys(ado.masterSlaves)[0]),$("#mobile-search-hits-button span").text($("#search-hits").text())})}),$(document).on("click",".pagination a",function(e){e.preventDefault(),window.history.pushState({},"",this.href),$("#search-results").load(this.href,function(){portFunctions.ajaxPageReloadMeasuring(),googletag.destroySlots(),ado.refresh(Object.keys(ado.masterSlaves)[0]),portFunctions.scrollTo(".main-box")})}),$("#q").on("typeahead:select",function(e){$("#search-form").submit()}).on("keypress",function(e){var t;13==e.which&&(e=$(".tt-hint",this.parent).val(),t=$(this).typeahead("val"),e&&e!=t&&e.length>t.length&&$(this).typeahead("val",e),$(this).typeahead("close"),$("#search-form").submit())}),$("#search-form input[type=checkbox], #search-form select").on("change",function(e){var t,e=$(e.currentTarget),a=e.attr("name");"ageLimitFrom"===a?(t=$("#search-form select[name=ageLimitTo]"),parseInt(e.val())>parseInt(t.val())&&t.val(t.find("option").last().val())):"ageLimitTo"===a&&(t=$("#search-form select[name=ageLimitFrom]"),parseInt(e.val())<parseInt(t.val()))&&t.val(t.find("option").first().val()),$("#search-form").submit()}),$("#search-form input[type=radio]").not("#main-filters input[type=radio]").on("change",function(e){this.checked&&$("#search-form").submit()}),$("#search-form select").on("change",function(e){$("#search-form").submit()}),$("#search-form #main-filters").on("change",function(e){e=$(e.target);e.is(":checked")&&"checkbox"!==e.attr("type")&&(portPage.section=portSearch.replaceAcce
2ntedChars(e.parent().attr("title").toLowerCase())),"cinemaevent"==$(this).find("[name=area]:checked").val()||"theatreevent"==$(this).find("[name=area]:checked").val()?($("#only-fav-cinemas").removeClass("hide"),$(".edit-favorite-cinemas").removeClass("hide"),$("label[title='Helyszín']").removeClass("hidden"),$("label[title='Cím']").removeClass("hidden")):($("#only-fav-cinemas").addClass("hide"),$(".edit-favorite-cinemas").addClass("hide"),$("label[title='Helyszín']").addClass("hidden"),$("label[title='Cím']").addClass("hidden"))})});
3//# sourceMappingURL=search.extended.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.