Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function() {
- function getCookie(cname) {
- var name = cname + "=";
- var decodedCookie = decodeURIComponent(document.cookie);
- var ca = decodedCookie.split(';');
- for(var i = 0; i <ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') {
- c = c.substring(1);
- }
- if (c.indexOf(name) == 0) {
- return c.substring(name.length, c.length);
- }
- }
- return null;
- }
- var endWaitingTimer = 60 * 1000 * 5;/* 60 sec / 1000 milisec/ 5 min goal*/
- var waitPageTriggerCookie = setInterval(function() {
- if (getCookie('kodlakoach')) {
- clearInterval(waitPageTriggerCookie);
- window.adoric && window.adoric.trigger('online log in');
- }
- }, 1000);
- setTimeout(function() {
- clearInterval(waitPageTriggerCookie);
- }, endWaitingTimer);
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement