PageSourceSearch

https://turismosierradefrancia.es/wp-content/plugins/sierra-de-fra…/js/library/toastify.min.js?ver=%201.12.0

js turismosierradefrancia.es collected 2026-10-01 13:00:34 UTC 6,247 bytes, 1 lines download raw bytes

1!function(t,o){"object"==typeof module&&module.exports?module.exports=o():t.Toastify=o()}(this,function(t){function i(t){return new i.lib.init(t)}function n(t,o){return o.offset[t]?isNaN(o.offset[t])?o.offset[t]:o.offset[t]+"px":"0px"}function l(t,o){return!(!t||"string"!=typeof o)&&!!(t.className&&-1<t.className.trim().split(/\s+/gi).indexOf(o))}return i.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},i.lib=i.prototype={toastify:"1.12.0",constructor:i,init:function(t){return t=t||{},this.options={},this.toastElement=null,this.options.text=t.text||i.defaults.text,this.options.node=t.node||i.defaults.node,this.options.duration=0===t.duration?0:t.duration||i.defaults.duration,this.options.selector=t.selector||i.defaults.selector,this.options.callback=t.callback||i.defaults.callback,this.options.destination=t.destination||i.defaults.destination,this.options.newWindow=t.newWindow||i.defaults.newWindow,this.options.close=t.close||i.defaults.close,this.options.gravity="bottom"===t.gravity?"toastify-bottom":i.defaults.gravity,this.options.positionLeft=t.positionLeft||i.defaults.positionLeft,this.options.position=t.position||i.defaults.position,this.options.backgroundColor=t.backgroundColor||i.defaults.backgroundColor,this.options.avatar=t.avatar||i.defaults.avatar,this.options.className=t.className||i.defaults.className,this.options.stopOnFocus=(void 0===t.stopOnFocus?i.defaults:t).stopOnFocus,this.options.onClick=t.onClick||i.defaults.onClick,this.options.offset=t.offset||i.defaults.offset,this.options.escapeMarkup=(void 0!==t.escapeMarkup?t:i.defaults).escapeMarkup,this.options.ariaLive=t.ariaLive||i.defaults.ariaLive,this.options.style=t.style||i.defaults.style,t.backgroundColor&&(this.options.style.background=t.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var t,o,i,s,e=document.createElement("div");for(t in e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.'),this.options.style)e.style[t]=this.options.style[t];return this.options.ariaLive&&e.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE?e.appendChild(this.options.node):(this.options.escapeMarkup?e.innerText=this.options.text:e.innerHTML=this.options.text,""!==this.options.avatar&&((s=document.createElement("img")).src=this.options.avatar,s.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(s):e.insertAdjacentElement("afterbegin",s))),!0===this.options.close&&((s=document.createElement("button")).type="button",s.setAttribute("aria-label","Close"),s.className="toast-close",s.innerHTML="&#10006;",s.addEventListener("click",function(t){t.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this)),i=0<window.innerWidth?window.innerWidth:screen.width,("left"==this.options.position||!0===this.options.positionLeft)&&360<i?e.insertAdjacentElement("afterbegin",s):e.appendChild(s)),this.options.stopOnFocus&&0<this.options.duration&&(o=this,e.addEventListener("mouseover",function(t){window.clearTimeout(e.timeOutValue)}),e.addEventListener("mouseleave",function(){e.timeOutValue=window.setTimeout(function(){o.removeElement(e)},o.options.duration)})),void 0!==this.options.destination&&e.addEventListener("click",function(t){t.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(t){t.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeof this.options.offset&&(i=n("x",this.options),s=n("y",this.options),i="left"==this.options.position?i:"-"+i,s="toastify-top"==this.options.gravity?s:"-"+s,e.style.transform="translate("+i+","+s+")"),e},showToast:function(){var t;if(this.toastElement=this.buildToast(),!(t="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";var o=i.defaults.oldestFirst?t.firstChild:t.lastChild;return t.insertBefore(this.toastElement,o),i.reposition(),0<this.options.duration&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),i.reposition()}.bind(this),400)}},i.reposition=function(){for(var t={top:15,bottom:15},o={top:15,bottom:15},i={top:15,bottom:15},s=document.getElementsByClassName("toastify"),e=0;e<s.length;e++){var n=!0===l(s[e],"toastify-top")?"toastify-top":"toastify-bottom",a=s[e].offsetHeight;n=n.substr(9,n.length-1);(0<window.innerWidth?window.innerWidth:screen.width)<=360?(s[e].style[n]=i[n]+"px",i[n]+=a+15):!0===l(s[e],"toastify-left")?(s[e].style[n]=t[n]+"px",t[n]+=a+15):(s[e].style[n]=o[n]+"px",o[n]+=a+15)}return this},i.lib.init.prototype=i.lib,i});

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.