1function showHideContent() { 2 3 let blockClassList = ["wp-block-button", "wp-block-image", "wp-block-group"]; 4 5 let main = document.getElementById("primary"); 6 7 if (typeof (main) != 'undefined' && main != null) { 8 9 let domElementList = []; 10 11 let contentParagraphs = main.getElementsByTagName("p"); 12 13 for (let i = 0; i < contentParagraphs.length; i++) { 14 if (contentParagraphs[i].dataset.status && contentParagraphs[i].dataset.startTime) { 15 domElementList.push(contentParagraphs[i]) 16 } 17 } 18 19 blockClassList.forEach(item => { 20 21 let content = main.getElementsByClassName(item); 22 23 for (let i = 0; i < content.length; i++) { 24 if (content[i].dataset.status && content[i].dataset.startTime) { 25 domElementList.push(content[i]) 26 } 27 } 28 }) 29 30 if (domElementList.length !== 0) { 31 for (let i = 0; i < domElementList.length; i++) { 32 if (domElementList[i].dataset.status && domElementList[i].dataset.startTime) { 33 let status = domElementList[i].dataset.status; 34 let unixStartTime = domElementList[i].dataset.startTime; 35 let unixEndTime = domElementList[i].dataset.endTime; 36 let now = new Date(); 37 let offsetInMs = now.getTimezoneOffset() * 60000; // convert minutes to milliseconds 38 let currentUnixTime = Math.floor( new Date(new Date().getTime() - offsetInMs).getTime() / 1000) 39 40 if (unixEndTime !== undefined) { 41 if (status === 'show') { 42 if (unixEndTime >= currentUnixTime && currentUnixTime >= unixStartTime) { 43 domElementList[i].style.display = 'block'; 44 } else { 45 domElementList[i].style.display = 'none'; 46 } 47 } else if (status === 'hide') { 48 if (unixEndTime >= currentUnixTime && currentUnixTime >= unixStartTime) { 49 domElementList[i].style.display = 'none'; 50 } else { 51 domElementList[i].style.display = 'block'; 52 } 53 } else if (status === 'none') { 54 domElementList[i].style.display = 'block'; 55 } 56 } else { 57 if (status === 'show') { 58 domElementList[i].style.display = 'none'; 59 if (currentUnixTime >= unixStartTime) { 60 domElementList[i].style.display = 'block'; 61 } 62 } else if (status === 'hide') { 63 domElementList[i].style.display = 'block'; 64 if (currentUnixTime >= unixStartTime) { 65 domElementList[i].style.display = 'none'; 66 } 67 } else if (status === 'none') { 68 domElementList[i].style.display = 'block'; 69 } 70 } 71 } 72 } 73 } 74 75 } 76 77} 78 79window.addEventListener("load", showHideContent); 80 81; 82/*! This file is auto-generated */ 83(function() { 84"use strict";var wp;(wp||={}).hooks=(()=>{var v=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var w=(e,n)=>{for(var s in n)v(e,s,{get:n[s],enumerable:!0})},D=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of g(n))!I.call(e,t)&&t!==s&&v(e,t,{get:()=>n[t],enumerable:!(r=S(n,t))||r.enumerable});return e};var T=e=>D(v({},"__esModule",{value:!0}),e);var le={};w(le,{actions:()=>ae,addAction:()=>J,addFilter:()=>K,applyFilters:()=>N,applyFiltersAsync:()=>ee,createHooks:()=>F,currentAction:()=>te,currentFilter:()=>re,defaultHooks:()=>b,didAction:()=>ie,didFilter:()=>se,doAction:()=>X,doActionAsync:()=>Y,doingAction:()=>ne,doingFilter:()=>oe,filters:()=>ce,hasAction:()=>P,hasFilter:()=>Q,removeAction:()=>L,removeAllActions:()=>U,removeAllFilters:()=>W,removeFilter:()=>M});function z(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}var m=z;function E(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}var f=E;function Z(e,n){return function(r,t,a,i=10){let c=e[n];if(!f(r)||!m(t))return;if(typeof a!="function"){console.error("The hook callback must be a function.");return}if(typeof i!="number"){console.error("If specified, the hook priority must be a number.");return}let l={callback:a,priority:i,namespace:t};if(c[r]){let o=c[r].handlers,d;for(d=o.length;d>0&&!(i>=o[d-1].priority);d--);d===o.length?o[d]=l:o.splice(d,0,l),c.__current.forEach(h=>{h.name===r&&h.currentIndex>=d&&h.currentIndex++})}else c[r]={handlers:[l],runs:0};r!=="hookAdded"&&e.doAction("hookAdded",r,t,a,i)}}var H=Z;function C(e,n,s=!1){return function(t,a){let i=e[n];if(!f(t)||!s&&!m(a))return;if(!i[t])return 0;let c=0;if(s)c=i[t].handlers.length,i[t]={runs:i[t].runs,handlers:[]};else{let l=i[t].handlers;for(let o=l.length-1;o>=0;o--)l[o].namespace===a&&(l.splice(o,1),c++,i.__current.forEach(d=>{d.name===t&&d.currentIndex>=o&&d.currentIndex--}))}return t!=="hookRemoved"&&e.doAction("hookRemoved",t,a),c}}var p=C;function O(e,n){return function(r,t){let a=e[n];return typeof t<"u"?r in a&&a[r].handlers.some(i=>i.namespace===t):r in a}}var _=O;function j(e,n,s,r){return function(a,...i){let c=e[n];c[a]||(c[a]={handlers:[],runs:0}),c[a].runs++;let l=c[a].handlers;if(!l||!l.length)return s?i[0]:void 0;let o={name:a,currentIndex:0};async function d(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;
84)u=await l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}function h(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;)u=l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}return(r?d:h)()}}var A=j;function $(e,n){return function(){let r=e[n];return Array.from(r.__current).at(-1)?.name??null}}var y=$;function V(e,n){return function(r){let t=e[n];return typeof r>"u"?t.__current.size>0:Array.from(t.__current).some(a=>a.name===r)}}var k=V;function q(e,n){return function(r){let t=e[n];if(f(r))return t[r]&&t[r].runs?t[r].runs:0}}var x=q;var B=class{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=H(this,"actions"),this.addFilter=H(this,"filters"),this.removeAction=p(this,"actions"),this.removeFilter=p(this,"filters"),this.hasAction=_(this,"actions"),this.hasFilter=_(this,"filters"),this.removeAllActions=p(this,"actions",!0),this.removeAllFilters=p(this,"filters",!0),this.doAction=A(this,"actions",!1,!1),this.doActionAsync=A(this,"actions",!1,!0),this.applyFilters=A(this,"filters",!0,!1),this.applyFiltersAsync=A(this,"filters",!0,!0),this.currentAction=y(this,"actions"),this.currentFilter=y(this,"filters"),this.doingAction=k(this,"actions"),this.doingFilter=k(this,"filters"),this.didAction=x(this,"actions"),this.didFilter=x(this,"filters")}};function G(){return new B}var F=G;var b=F(),{addAction:J,addFilter:K,removeAction:L,removeFilter:M,hasAction:P,hasFilter:Q,removeAllActions:U,removeAllFilters:W,doAction:X,doActionAsync:Y,applyFilters:N,applyFiltersAsync:ee,currentAction:te,currentFilter:re,doingAction:ne,doingFilter:oe,didAction:ie,didFilter:se,actions:ae,filters:ce}=b;return T(le);})(); 85(window.wp ||= {}).hooks = wp.hooks; 86})(); 87;
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.