PageSourceSearch

https://www.ipb.ac.id/wp-content/plugins/wp-event-manager/assets/js/common.min.js

js ipb.ac.id collected 2026-09-24 08:42:12 UTC 4,627 bytes, 1 lines download raw bytes

1var Common=function(){var abortObjects=[],javaScriptInfoLoggingEnabled=!1,javaScriptTraceLoggingEnabled=!1;return{init:function(){Common.logInfo("Common.init..."),Common.cleanupLegacyLayoutKeys(),jQuery(document).delegate("ul.wpem-tabs-wrap li.wpem-tab-link","click",Common.tabChanged),window.addEventListener("keydown",function(e){27===e.keyCode&&jQuery(".wpem-modal-close").length>0&&jQuery(".wpem-modal-close").trigger("click")}),jQuery(".wpem-modal-button").click(function(){jQuery("body").addClass("wpem-modal-open");var e=jQuery(this).attr("data-modal-id");jQuery("#"+e).length>0&&jQuery("#"+e).addClass("wpem-modal-open")}),jQuery(".wpem-modal-overlay").click(function(){jQuery("body").removeClass("wpem-modal-open"),jQuery(".wpem-modal").removeClass("wpem-modal-open")}),jQuery("#submit-organizer-form").submit(function(e){jQuery("#submit-organizer-form").css("pointer-events","none")}),jQuery("#submit-venue-form").submit(function(e){jQuery("#submit-venue-form").css("pointer-events","none")}),jQuery(".wpem-modal-close").click(function(){jQuery("body").removeClass("wpem-modal-open"),jQuery(".wpem-modal").removeClass("wpem-modal-open")}),jQuery(".wpem-listing-accordion").length>0&&jQuery(".wpem-listing-accordion").click(function(){this.classList.toggle("active");var e=this.nextElementSibling;"block"===e.style.display?e.style.display="none":e.style.display="block"})},tabChanged:function(e){jQuery(this).addClass("active").parents("ul.wpem-tabs-wrap").find("li").not(jQuery(this)).removeClass("active");var o=jQuery(this).data("tab");jQuery(this).closest(".wpem-tabs-wrapper").find(".wpem-tab-content .wpem-tab-pane").not("#"+o).removeClass("active"),jQuery(this).closest(".wpem-tabs-wrapper").find(".wpem-tab-content .wpem-tab-pane#"+o).addClass("active")},getLayoutStorageKey:function(e){var o="layout_"+window.location.pathname;return null!=e&&""!==e&&(o+="_"+e),o},getLayout:function(e){return localStorage.getItem(Common.getLayoutStorageKey(e))},setLayout:function(e,o){localStorage.setItem(Common.getLayoutStorageKey(o),e)},cleanupLegacyLayoutKeys:function(){try{if("1"===localStorage.getItem("wpem_layout_cleanup_done"))return;localStorage.removeItem("layout");for(var e=[],o=0;o<localStorage.length;o++){var n=localStorage.key(o);n&&0===n.indexOf("wpem_layout_")&&e.push(n)}for(var t=0;t<e.length;t++)localStorage.removeItem(e[t]);localStorage.setItem("wpem_layout_cleanup_done","1")}catch(e){}},jsonToString:function(e){return void 0===e?"":JSON.stringify(e)},stringToJson:function(jsonString){if(Common.logInfo("stringToJson..."),void 0!==jsonString&&0!==jsonString.length)return eval("("+jsonString+")")},getCurrentDateTime:function(){var e=new Date,o=e.getMonth()+1;return e.getFullYear()+"-"+o+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()},setLogValue:function(e){void 0!==e&&0!==e.length&&(javaScriptInfoLoggingEnabled=e)},setTraceValue:function(e){void 0!==e&&0!==e.length&&(javaScriptTraceLoggingEnabled=e)},logInfo:function(e){javaScriptInfoLoggingEnabled&&window.console&&console.log(e)},logTrace:function(e){javaScriptTraceLoggingEnabled&&window.console&&console.log(e)},logForce:function(e){window.console&&console.log(e)},logError:function(e){window.console&&console.error(e)},htmlEncode:function(e){if(void 0!==e&&0!==e.length)return escape(e)},htmlDecode:function(e){if(void 0!==e&&0!==e.length)return unescape(e)},validateEmail:function(e){Common.logInfo("Common.validateEmail...");return/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/.test(e)},validatePincode:function(e){Common.logInfo("Common.validatePincode...");return/^[0-9]+$/.test(e)},validateName:function(e){Common.logInfo("Common.validateName...");return/[A-Za-z \-_.\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/.test(e)},isURL:function(e){Common.logInfo("Common.isURL...");var o=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i");return e.length<2083&&o.test(e)},showToggleContent:function(e){Common.logInfo("Common.actions.showToggleContent..."),jQuery(this).toggleClass("wpem-active-button"),e.preventDefault()},hideToggleContent:function(e){Common.logInfo("Common.actions.hideToggleContent..."),e.preventDefault()}}};Common=Common(),jQuery(document).ready(function(e){Common.init()});

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.