2985 |
28 Nov 14 |
nicklas |
1 |
|
2985 |
28 Nov 14 |
nicklas |
var PinkPanther = function() |
2985 |
28 Nov 14 |
nicklas |
3 |
{ |
2985 |
28 Nov 14 |
nicklas |
4 |
|
2985 |
28 Nov 14 |
nicklas |
var skin = {}; |
2985 |
28 Nov 14 |
nicklas |
6 |
|
2985 |
28 Nov 14 |
nicklas |
7 |
/** |
2985 |
28 Nov 14 |
nicklas |
Create a <span id="pink-panther"> and add some text to it. |
2985 |
28 Nov 14 |
nicklas |
Add it as a child to the document body. |
2985 |
28 Nov 14 |
nicklas |
10 |
*/ |
2985 |
28 Nov 14 |
nicklas |
skin.initSkin = function() |
2985 |
28 Nov 14 |
nicklas |
12 |
{ |
2985 |
28 Nov 14 |
nicklas |
var span = document.createElement('div'); |
2985 |
28 Nov 14 |
nicklas |
span.id = 'pink-panther'; |
2985 |
28 Nov 14 |
nicklas |
span.className = 'bg-filled-100'; |
2985 |
28 Nov 14 |
nicklas |
span.innerHTML = 'This is the Pink Panther skin!'; |
2985 |
28 Nov 14 |
nicklas |
document.body.appendChild(span); |
2985 |
28 Nov 14 |
nicklas |
18 |
} |
2985 |
28 Nov 14 |
nicklas |
19 |
|
2985 |
28 Nov 14 |
nicklas |
return skin; |
2985 |
28 Nov 14 |
nicklas |
21 |
|
2985 |
28 Nov 14 |
nicklas |
22 |
}(); |
2985 |
28 Nov 14 |
nicklas |
23 |
|
2985 |
28 Nov 14 |
nicklas |
Doc.addFinalizer(PinkPanther.initSkin); |
2985 |
28 Nov 14 |
nicklas |
25 |
|