-
Notifications
You must be signed in to change notification settings - Fork 1
/
get.html
88 lines (59 loc) · 1.87 KB
/
get.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>YUI 3.0</title>
<script type="text/javascript" src="../../build/yui/yui-debug.js"></script>
<body>
<input id="addButton" type="button" value="Add link" />
<script type="text/javascript">
YUI({ base: '../../build/' }).use('node', function(Y) {
Y.on('click', function() {
for (var i=0; i<50; i=i+1) {
Y.Get.script("../../build/cookie/cookie-min.js");
}
}, '#addButton');
// Y.Get.css(["../../build/menu/assets/skins/sam/menu.css", "../../build/logger/assets/skins/sam/logger.css"], {
Y.Get.css(["http://yui.yahooapis.com/2.5.2/build/fonts/fonts.css"], {
timeout: 2000,
onSuccess: function() {
Y.log("css1 (menu, logger) complet", 'warn');
},
onTimeout: function() {
Y.log('onTimeout handler');
}
});
Y.Get.script([
"http://yui.yahooapis.com/2.5.2/build/yahoo/yahoo-min.js"
], {
timeout: 2000,
onSuccess: function() {
Y.log("css1 (menu, logger) complet", 'warn');
Y.Get.script([
"http://yui.yahooapis.com/2.5.2/build/event/event-min.js"
], {
timeout: 2000,
onSuccess: function() {
Y.log("nested complet", 'warn');
},
onTimeout: function() {
Y.log('onTimeout handler');
},
autopurge: true,
purgethreshold: 1
});
},
onTimeout: function() {
Y.log('onTimeout handler');
},
autopurge: true,
purgethreshold: 1
});
Y.Get.script("failure", {
onEnd: function(e) {
Y.log('onEnd: ' + e.statusText);
}
});
});
</script>
</body>
</html>