Thursday, 22 August 2013

Javascript to stop working after a certain date

Javascript to stop working after a certain date

I have a JS and I want when the JS expiration date pass, the script to be
disabled.
Without the TOP 3 lines of code the script works properly. I'm not sure
what's wrong with the top 3 lines. Following the entire code:
#include <date.au3>
$ExpirationDate = '9/18/2013'
If _NowDate() = $ExpirationDate Then MsgBox(64, 'Info:', "")
/* TOP 3 lines above - Javascript to stop working after a certain date */
var isloggedin = true;
function bozhoShow() {
jQuery('&quot;div[id^=\&#39;bobito-button-wrapper\&#39;]&quot;').show();
}
function ggtimer() {
if (isloggedin == false) {
disableclicking();
}
jQuery(document).ready(function () {
var testmode = 0;
var dohidex = ' opacity: 0; filter: alpha(opacity = 0); ';
if (testmode == true) {
dohidex = '';
}
jQuery.get('functions.php?type=2', function (data) {
if (data.length > 3) {
//alert(data);
disableclicking();
} else {
//alert(data);
}
});

No comments:

Post a Comment