if (typeof $ == 'undefined') { javascript: (function (e, s) { e.src = s; e.onload = function () { $ = jQuery.noConflict(); includeLoadingCustomEvent(); }; document.head.appendChild(e); })( document.createElement('script'), 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js' ); } else { includeLoadingCustomEvent(); } function includeLoadingCustomEvent() { //Check enable file customEvent let conditionIncludeFileEventSetup = sessionStorage.getItem( 'OT_FACEBOOK_EVENT_SETUP' ); let isCustomEventPage = ot_getUrlParam('otCustomEvent'); if (conditionIncludeFileEventSetup == 'show' || isCustomEventPage == '1') { sessionStorage.setItem('OT_FACEBOOK_EVENT_SETUP', 'show'); let domEventBuilder = document.querySelector('.event_content'); let domeLoading = document.querySelector('#ot-fb__backdrop-loading-custom-event'); if(!domEventBuilder && !domeLoading){ otCustomEventAppendCss(); otCustomEventAppendHtml(); } } } function ot_getUrlParam(paramName) { var match = window.location.search.match( '[?&]' + paramName + '(?:&|$|=([^&]*))' ); return match ? (match[1] ? match[1] : '') : null; } function otCustomEventAppendCss(){ let css_string = ` ` $('body').append(css_string); } function otCustomEventAppendHtml(){ let html_string = `

System processing. Please wait a few seconds to continue

` $('body').append(html_string); console.log('Append loading event builder!') }