When scanStatus == 'limit' the centerPopup() and loadPopup() functions do not trigger.
The functions are called from a file called js/count.js. The file is available here.
These are my functions, stored in js/popup.js:
// Loading popup with jQuery magic!
function loadPopup() {
// Loads popup only if it is disabled
if (popupStatus == 0) {
$("#backgroundPopup").css({
"opacity": "0.7"
});
$("#backgroundPopup").fadeIn("slow");
$("#popupContact").fadeIn("slow");
popupStatus = 1;
}
}
// Centering popup
function centerPopup() {
// Request data for centering
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#popupContact").height();
var popupWidth = $("#popupContact").width();
// Centering
$("#popupContact").css({
"position": "absolute",
"top": windowHeight / 2 - popupHeight / 2,
"left": windowWidth / 2 - popupWidth / 2
});
// Only need force for IE6
$("#backgroundPopup").css({
"height": windowHeight
});
}
Both files are included in the HTML like so:
<script type="text/javascript">
var uid = "rZCENk6w";
var website = "http://www.engadget.com";
</script>
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/javascript" src="js/count.js"></script>
Thank you in advance for any help.
Based on the code found in the linked file (near the bottom), the methods are never called on the document becoming ready because they are commented out:
You would need to uncomment them in order to execute them accordingly: