Widget:TimerTest2: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
<script type='text/javascript'> | <script type='text/javascript'> | ||
mw.loader.using('mediawiki.user',function(){ | mw.loader.using('mediawiki.user',function(){ | ||
if($.inArray("CMEUser", mw.config.get( 'wgUserGroups' ))){ | |||
var Obj1 = new (function(){ | var Obj1 = new (function(){ | ||
var $timer1, | var $timer1, | ||
Line 67: | Line 67: | ||
$(document).mousemove(function(){Obj2.resetTimer();}); | $(document).mousemove(function(){Obj2.resetTimer();}); | ||
$(document).scroll(function(){Obj2.resetTimer();}); | $(document).scroll(function(){Obj2.resetTimer();}); | ||
} | |||
}); | }); | ||
</script> | </script> |