ot-apollo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home3/achieve/public_html/knowledgebase/wp-includes/functions.php on line 6131<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
<script>
WebFont.load({
google: {
families: ['Droid Sans', 'Droid Serif']
}
});
</script>
<script type="text/javascript">
WebFontConfig={
google:{families:["Lato:400,700,300,100:latin"]}
};
(function(){
var wf = document.createElement("script");
wf.src = ("https:" == document.location.protocol ? "https":"http") +
"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js";
wf.type="text/javascript";
wf.async="true";
var t = document.getElementsByTagName("script")[0];
t.parentNode.insertBefore(wf, t)
})();
</script>
You can also download Google WebFont Loader locally and call WebFont.load() function
For more details, check: https://github.com/typekit/webfontloader
]]>
Javascript code to open window popup center aligned to page with close event on button click:
$(btn-container).on("click", function() {
var w = 620;
var h = 350;
var win = window.open('http://achieveee.com', 'Achieveee', 'resizable,toolbar=0,location=0,scrollbars=1,menubar=0,width='+w+',height='+h+',top='+(screen.height-h)/2+',left='+(screen.width-w)/2+'');
var timer = setInterval(function() {
if (win.closed) {
clearInterval(timer);
alert('closed');
}
}, 1000);
});
]]>