PageSourceSearch

https://www.hotelzurpost-lauf.de/basewebinterface/com/scripts/logic-snipplet.min.js?rev=1783575453

js hotelzurpost-lauf.de collected 2026-10-08 01:45:28 UTC 6,836 bytes, 1 lines download raw bytes

1function snippletGetRandomString(e,t){for(var n=(t=t||"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789").length,a="",o=0;o<e;o++)a+=t.charAt(Math.floor(Math.random()*n));return a}function snippletGetUrl(e,t,n,a,o,s,i){var r=t+"/snipplet__"+a;if(null!=o)for(var l=0;l<o.length;l++)null!=o[l]?r+="__"+o[l]:r+="__";if(null!==s){if(r+=".pjson","string"==typeof s||"String"==typeof s)for(var p,c=s.split("&"),d={},l=0;l<c.length;l++)d[(p=c[l].split("="))[0]]=p[1];else d=s;postData=""+JSON.stringify({_Data:d}),methodType="POST",contentType="text/json"}else r+=".json",postData=null,methodType="GET",contentType="application/x-www-form-urlencoded";return void 0!==i&&null!=i&&(r+="?CM_ID="+i),{url:r,postData:postData,methodType:methodType,contentType:contentType}}function snippletGet(realm,baseUrl,languageKey,viewletId,fileArgs,parameters,onSuccess,onError,cacheManagerId){var request=snippletGetUrl(realm,baseUrl,languageKey,viewletId,fileArgs,parameters,cacheManagerId);window.app.layout.debugLevel&&console.debug("snippletGet",realm,baseUrl,languageKey,viewletId,fileArgs,parameters,cacheManagerId,$(realm));var onCompleteFunction=function(responseData){var eleViewlet=$(realm);eleViewlet.removeClass("vlt-loading"),responseData=snippletUpdateResponseData(realm,responseData),responseData.html&&$(realm).replaceWith(responseData.html),responseData.javascript&&eval(responseData.javascript),onSuccess&&onSuccess(responseData,realm),$(realm).get(0)&&window.app&&window.app.layout&&window.app.layout.reapply($(realm).get(0),"DOM_PATCHED"),window.cmsInitFancybox&&window.cmsInitFancybox(realm),window&&window.inlineEditor&&(window.inlineEditor&&window.inlineEditor.functions&&"function"==typeof window.inlineEditor.functions&&window.inlineEditor.functions("OnSuccessSnippletGet")?window.inlineEditor.functions("OnSuccessSnippletGet")(realm):window.cms2OnSuccessSnippletGet&&window.cms2OnSuccessSnippletGet(realm))},onErrorFunction=null,onErrorFunction=void 0===onError||null==onError?function(e,t,n){console.debug(e,t,n)}:onError;$(realm).addClass("vlt-loading");var myAjax=$.ajax({url:request.url,type:request.methodType,contentType:request.contentType,data:request.postData,success:onCompleteFunction,error:onErrorFunction,dataType:"json",processData:!1})}function snippletReload(o,s){window.app.layout.debugLevel&&console.debug("snippletReload",o,s),(s=s||{}).scrollIntoViewOffset=s.scrollIntoViewOffset||120,$(o).each(function(){var e,n=$(this).data("viewlet-params")||{},t=$(this).data("viewlet-fileargs")||[],a=$("form.FormlibForm",$(this));s&&s.params&&(n=Object.assign({},n,s.params||{})),s&&s.fileArgs&&s.fileArgs.length&&(t=s.fileargs),a.length&&(e=(e=$(a).data("page-controller-key"))+"__"+($("input[name="+e+"__package]",this).val()||"default")+"__"+($("input[name="+e+"__page]",this).val()||"PageForm")+"__"+($("input[name="+e+"__section]",this).val()||"form")+"__ViewForm",console.debug("snippletReload","fieldPrefix="+e,a),$.map($(a).serializeArray(),function(e,t){e.name.endsWith("SubmitButtonData")||e.name.endsWith("SubmitButton")||(n[e.name]=e.value)}),actions="submit"==n.action?"set|check|edit":"set|edit",n[e+"__XTRActions"]=actions),window.app.layout.debugLevel&&console.debug("snippletReload",o,n,t),s.scrollIntoView&&scrollIntoViewWithOffset(o,s.scrollIntoViewOffset),snippletGet("#"+$(this).attr("id"),$(this).data("base-url"),$(this).data("language-key"),$(this).data("viewlet-id"),t,n,s.onSuccess,s.onError,s.cacheManagerId)})}function snippletUpdateResponseData(e,t){var n=vltParseViewletUniqueId(e),a=vltParseViewletUniqueKey(e);if(null!==n&&null!==a)return window.app.layout.debugLevel&&console.debug("snippletUpdateResponseData",e,n,a),n?t?(null!=t.html&&(t.html=t.html.replace(/{{VIEWLET_UNIQUE_ID}}/gm,n).replace(/{{VIEWLET_UNIQUE_KEY}}/gm,a).replace(/{{REALM_SNIPPLET}}/gm,e)),null!=t.javascript&&(t.javascript=t.javascript.replace(/{{VIEWLET_UNIQUE_ID}}/gm,n).replace(/{{VIEWLET_UNIQUE_KEY}}/gm,a).replace(/{{REALM_SNIPPLET}}/gm,e))):console.warn("snippletUpdateResponseData",e,"responseData is null",t):console.warn("snippletUpdateResponseData",e,"no viewletUniqueId found in realm"),t;
1console.error("snippletUpdateResponseData","can not parse realm",e,n,a)}function snippletGetIdsByTypeIds(e){for(var t=[],n=0;n<e.length;n++)$("div.vlt-t"+e[n]).each(function(){t.push(parseInt($(this).attr("id").split("-")[1].substring(1),10))});return t}function fancyboxSnippletOpen(e,t,n,a,o,s,i,r,l,p,c){return snippletFancyboxOpen(e,t,n,a,o,s,i,r,l,p,c)}function snippletFancyboxOpen(baseUrl,languageKey,viewletId,fileArgs,parameters,onSuccess,onError,cacheManagerId,maxWidth,maxHeight,overrideOptions){var clb=function(){var vers=$.fancybox.version[0],viewletUniqueId="vlt-v"+viewletId+"-"+snippletGetRandomString(5),realm="#"+viewletUniqueId,onCompleteFunction=function(responseData){var options,options;reponseData=snippletUpdateResponseData(realm,responseData),"3"==vers?(options={parentEl:$("#cmsskin").get(0)||$("#voucherskin").get(0)||"body",baseClass:"ev-fancybox-default",beforeShow:function(e,t){options.zIndex&&$(".fancybox-container").css("zIndex",options.zIndex)},afterLoad:function(instance,current){options.zIndex&&$(".fancybox-container").css("zIndex",options.zIndex),maxWidth?($(".fancybox-content").css("width","100%"),$(".fancybox-content").css("maxWidth",maxWidth)):$(".fancybox-content > *").length&&$(".fancybox-content > *").attr("style")&&0<=$(".fancybox-content > *").attr("style").indexOf("max-width")&&($(".fancybox-content").css("width","100%"),$(".fancybox-content").css("maxWidth",$(".fancybox-content > *").css("maxWidth"))),eval(responseData.javascript)},afterShow:function(e,t){window.app&&window.app.layout&&window.app.layout.reapply($(".fancybox-container").get(0),"DOM_PATCHED")}},overrideOptions&&(options=Object.assign({},options,overrideOptions)),$.fancybox.open({type:"html",src:responseData.html,opts:options}),$("a, .ev-link",$(realm)).find("*").attr("data-selectable",!1)):(options={type:"html",parent:$("#cmsskin").get(0)||$("#voucherskin").get(0)||"body",wrapCSS:"page_content ev-overlay",content:responseData.html,fitToView:!0,autoSize:!1,closeClick:!1},maxWidth=maxWidth||980,maxWidth&&(options.maxWidth=maxWidth),maxHeight&&(options.maxHeight=maxHeight,options.height="100%"),$.fancybox(options),eval(responseData.javascript)),onSuccess&&onSuccess(responseData),console.debug()};onErrorFunction=void 0===onError||null==onError?function(e,t,n){console.debug(e,t,n)}:onError;var request=snippletGetUrl(realm,baseUrl,languageKey,viewletId,fileArgs,parameters,cacheManagerId),myAjax=$.ajax({url:request.url,type:request.methodType,contentType:request.contentType,data:request.postData,success:onCompleteFunction,error:onErrorFunction,dataType:"json",processData:!1})};return $.fancybox?clb():($("body").addClass("fancybox"),$.plugin("fancybox",clb)),!1}

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.