Widget:Timer: 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:
alert("Test");
alert("Test");
$.getScript("http://wikidoc.org/includes/jquery.timer.js", function (){
$.getScript("http://wikidoc.org/includes/jquery.timer.js", function (){
 
$(document).ready(function() {
var timer = $.timer(function() {
var timer = $.timer(function() {
                 alert('This message was sent by a timer.');
                 alert('This message was sent by a timer.');
Line 9: Line 9:


         timer.set({ time : 5000, autostart : true });
         timer.set({ time : 5000, autostart : true });
}
});
});
</script>
</script>
</includeonly>
</includeonly>

Revision as of 16:04, 4 February 2013