Skip to content

Commit 4ff3f6e

Browse files
Bharat SinhaBharat Sinha
Bharat Sinha
authored and
Bharat Sinha
committed
JS File for the Timout Functionality
1 parent f88b0fe commit 4ff3f6e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

timout.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ageTime = setInterval(function() {
2+
count += 1;
3+
if (count === 20) {
4+
clearInterval(pageTime);
5+
document.write("Code FOr Page To Be Displayed Here");
6+
}
7+
}, 1000);
8+
document.onreadystatechange = function() {
9+
if (document.readyState === 'interactive') {
10+
clearInterval(pageTime);
11+
}
12+
}
13+
14+
function reloadIM() {
15+
_gaq.push(['_trackPageview', '/IMartEvents/Timeout/Refresh' + document.location.pathname]);
16+
location.reload();
17+
}

0 commit comments

Comments
 (0)