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 13: Line 13:
         currentTime +=incrementTime;
         currentTime +=incrementTime;
         if(currentTime == 30000){
         if(currentTime == 30000){
            var api = new mw.Api();
 
            api.get( {
                action: 'updatetracker',
                user: mw.user.getName(),
                activity: window.location.pathname.substring(11,window.location.pathname.length),
            } )
         }
         }
     },
     },

Revision as of 19:30, 22 April 2014