| Line 6... |
Line 6... |
| 6 |
strokeWidth: undefined, // the stroke width, dynamically calulated if omitted in options
|
6 |
strokeWidth: undefined, // the stroke width, dynamically calulated if omitted in options
|
| 7 |
fillStyle: "#8ac575", // the fill color
|
7 |
fillStyle: "#8ac575", // the fill color
|
| 8 |
fontColor: "#477050", // the font color
|
8 |
fontColor: "#477050", // the font color
|
| 9 |
fontFamily: "sans-serif", // the font family
|
9 |
fontFamily: "sans-serif", // the font family
|
| 10 |
fontSize: undefined, // the font size, dynamically calulated if omitted in options
|
10 |
fontSize: undefined, // the font size, dynamically calulated if omitted in options
|
| 11 |
fontWeight: 700, // the font weight
|
11 |
fontWeight: 500, // the font weight
|
| 12 |
autostart: true, // start the countdown automatically
|
12 |
autostart: true, // start the countdown automatically
|
| 13 |
seconds: 10, // the number of seconds to count down
|
13 |
seconds: 10, // the number of seconds to count down
|
| 14 |
onComplete: undefined
|
14 |
onComplete: undefined
|
| 15 |
};
|
15 |
};
|
| 16 |
|
16 |
|
| Line 71... |
Line 71... |
| 71 |
this.pen.clearRect(0, 0, this.settings.width, this.settings.height);
|
71 |
this.pen.clearRect(0, 0, this.settings.width, this.settings.height);
|
| 72 |
},
|
72 |
},
|
| 73 |
|
73 |
|
| 74 |
_drawCountdownLabel: function (secondsElapsed) {
|
74 |
_drawCountdownLabel: function (secondsElapsed) {
|
| 75 |
var secondsLeft = this.settings.seconds - secondsElapsed,
|
75 |
var secondsLeft = this.settings.seconds - secondsElapsed,
|
| 76 |
label = "Please Wait";
|
76 |
label = "Processing...";
|
| 77 |
this.ariaText.text(secondsLeft);
|
77 |
this.ariaText.text(secondsLeft);
|
| 78 |
this.pen.fillStyle = this.settings.fontColor;
|
78 |
this.pen.fillStyle = this.settings.fontColor;
|
| 79 |
this.pen.font = this.settings.fontWeight + " " + this.settings.fontSize + "px " + this.settings.fontFamily;
|
79 |
this.pen.font = this.settings.fontWeight + " " + this.settings.fontSize + "px " + this.settings.fontFamily;
|
| 80 |
this.pen.fillText(secondsLeft, this.settings.width/2, this.settings.height/2 - (this.settings.fontSize/6.2) );
|
80 |
this.pen.fillText(secondsLeft, this.settings.width/2, this.settings.height/2 - (this.settings.fontSize/6.2) );
|
| 81 |
this.pen.font = "normal small-caps " + (this.settings.fontSize/3) + "px " + this.settings.fontFamily;
|
81 |
this.pen.font = "normal small-caps " + (this.settings.fontSize/3) + "px " + this.settings.fontFamily;
|