About Manhattan Book Group | NYC Book Publisher | Become an Amazon Best Seller { const scripts = document.querySelectorAll('script[src]'); let sfound = false; for (let i = 0; i = 0 && scripts[i].getAttribute('src').indexOf('livesite.js') >= 0) || (scripts[i].getAttribute('src').indexOf('vcita.com') >= 0 && scripts[i].getAttribute('src').indexOf('loader.js') >= 0) ) { sfound = true; break } } if (sfound) return; document.cookie = "livesite_a9f19e98_engage=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; window.Vcita = {}; Vcita.legacyOptions = function () { return { desktopEnabled: 1, mobileEnabled: 1, engageButton: true, activeEngage: true, engageState: 'closed', actionButtons: false, // inlineActions: false, activeEngageAction: "schedule", //mobileQuickAction: "schedule", activeEngageActionText: 'Free Call (discuss services)', engageButtonText: 'Free Call (discuss services)', activeEngageTitle: "Talk with a Publishing Director", activeEngageText: "As the #1 rated indie book publisher in NYC by Kev's Best, we are confident that we can offer you solid guidance! Schedule your call below to discuss your project. ", imageUrl: "", textPoweredBy: 'Powered by vcita', themeActionColor: '#ce461c', themeActionHover: '#c75b3a', themeActionText: '#ffffff', themeMainActionColor: '#ce461c', themeMainActionHover: '#c75b3a', themeMainActionText: '#ffffff' } }; const checkLivesite = () => { if (!window.LiveSite) return false; setTimeout(window.LiveSite.ui.showActiveEngage, 5000); return true; }; const checkEngageButton = () => { const leb = document.querySelector('#livesite_engage_button a.ls-engage-button'); if (leb != null) { return true; } else return false; }; let tryit = 0, aeint; let lint = setInterval(() => { if (checkLivesite() || tryit == 100000) { clearInterval(lint); tryit = 0; aeint = setInterval(() => { if (checkEngageButton() || tryit == 100000) { clearInterval(aeint); } else tryit++; }, 10); } else tryit++; }, 100); document.body.appendChild(script) }); ]]>
Source
Recent Comments