Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
1) the label: {div {@ id="label"} There have been no clicks yet }
|
||||
2) the button: {input {@ type="button" value="click me" onclick="CLICKAPP.inc()" }}
|
||||
3) the script: {script °° code °°} where code is a single function:
|
||||
|
||||
var CLICKAPP = (function() {
|
||||
var counter = 0;
|
||||
var inc = function() {
|
||||
counter++;
|
||||
getId('label').innerHTML =
|
||||
'There are ' + counter + ' clicks now';
|
||||
};
|
||||
return {inc:inc}
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue