#MooTools Timer Example
Below is a code snippet that uses the Timer and TimerTask classes.
##Script
function print(id, value) {
document.getElementById(id).innerHTML = value;
}
function urlObject(options) { | |
"use strict"; | |
/*global window, document*/ | |
var url_search_arr, | |
option_key, | |
i, | |
urlObj, | |
get_param, | |
key, |
{ | |
"success": true, | |
"itemTemplates": [ | |
{ | |
"templateId": "BADGE_BATTLE_ATTACK_WON", | |
"badgeSettings": { | |
"badgeType": "BADGE_BATTLE_ATTACK_WON", | |
"badgeRank": 4, | |
"targets": [ | |
10, |
var renderIntervalInMillis = 50; | |
var characterWidth = 80; | |
var i = 0; | |
var whitespace = (new Array(characterWidth)).join('\u205f'); | |
setInterval(function() { | |
var position = whitespace.length - (i++ % whitespace.length); | |
document.title = whitespace.substring(0, position) + '🐟' + whitespace.substring(position + 1); | |
}, renderIntervalInMillis); |
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Created by Isaac Holmlund (isaacch@gmail.com) --> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="type" nillable="false"> | |
<xs:simpleType> | |
<xs:restriction base="xs:string"> | |
<xs:enumeration value="action"/> | |
<xs:enumeration value="action-attack"/> | |
<xs:enumeration value="action-duration"/> | |
<xs:enumeration value="action-reaction"/> |
#MooTools Timer Example
Below is a code snippet that uses the Timer and TimerTask classes.
##Script
function print(id, value) {
document.getElementById(id).innerHTML = value;
}