Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwindmill_tutorial.js
More file actions
Latest commit
41 lines (33 loc) · 994 Bytes
/
Copy pathwindmill_tutorial.js
File metadata and controls
41 lines (33 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$=function(v){
returndocument.getElementById(v);
};
varerase=function(){
fleegix.fx.fadeOut($('messages'));
};
varwriteClicked=function(){
$('messages').style.opacity=0;
$('messages').innerHTML='Clicked the DIV and recorded it!';
fleegix.fx.fadeIn($('messages'));
setTimeout('erase()',2000);
};
varwriteTxtChanged=function(){
if($('textFieldOne').value!=''){
$('messages').style.opacity=0;
$('messages').innerHTML='Changed text and recorded it!';
fleegix.fx.fadeIn($('messages'));
setTimeout('erase()',2000);
}
}
varinit=function(){
vars=$('sub');
s.style.opacity=0;
fleegix.fx.fadeIn(s);
if(navigator.userAgent.indexOf('Safari/41')>-1){
document.body.style.backgroundColor='#7cb3c0';
$('main').style.borderColor='#16323b';
}
vard=$('recordedClickId');
fleegix.event.listen(d,'onclick',writeClicked);
vart=$('btnSub');
fleegix.event.listen(t,'onclick',writeTxtChanged);
};