equal
deleted
inserted
replaced
|
1 |
|
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
3 <html> |
|
4 <head> |
|
5 <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
6 <title>Building a UI with AsyncQueue</title> |
|
7 |
|
8 <style type="text/css"> |
|
9 /*margin and padding on body element |
|
10 can introduce errors in determining |
|
11 element position and are not recommended; |
|
12 we turn them off as a foundation for YUI |
|
13 CSS treatments. */ |
|
14 body { |
|
15 margin:0; |
|
16 padding:0; |
|
17 } |
|
18 </style> |
|
19 |
|
20 <link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}js/lib/yui/{{ YUI_VERSION }}/build/cssfonts/fonts-min.css" /> |
|
21 <script type="text/javascript" src="{{ MEDIA_URL }}js/lib/yui/{{ YUI_VERSION }}/build/yui/yui-min.js"></script> |
|
22 |
|
23 </head> |
|
24 |
|
25 <body class=" yui-skin-sam"> |
|
26 |
|
27 qsdfqsdfqsdfqsdf |
|
28 |
|
29 |
|
30 <script type="text/javascript"> |
|
31 |
|
32 YUI.add('coment', function(Y) { |
|
33 function Coment() { |
|
34 this._init(); |
|
35 } ; |
|
36 Coment.prototype = { |
|
37 _init : function () { |
|
38 Y.log('inited'); |
|
39 }, |
|
40 fun : function () { |
|
41 Y.log('fun') ; |
|
42 } |
|
43 }; |
|
44 Y.Coment = Coment; |
|
45 }, '0.0.1'); |
|
46 |
|
47 YUI({base:"{{ MEDIA_URL }}js/lib/yui/{{ YUI_VERSION }}/build/", timeout: 10000}).use("coment",function (Y) { |
|
48 Y.log('in here') ; |
|
49 var coment = new Y.Coment() ; |
|
50 coment.fun() ; |
|
51 }); |
|
52 </script> |
|
53 |
|
54 <!--END SOURCE CODE FOR EXAMPLE =============================== --> |
|
55 |
|
56 </body> |
|
57 </html> |