Debian Codegraph @

dojox/mobile/tests/test_Badge.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
5 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
6 <meta name="apple-mobile-web-app-capable" content="yes"/>
7 <title>Badge</title>
8
9 <link href="../themes/common/domButtons/DomButtonRedBadge.css" rel="stylesheet"/>
10 <link href="../themes/common/domButtons/DomButtonGreenBadge.css" rel="stylesheet"/>
11 <link href="../themes/common/domButtons/DomButtonBlueBadge.css" rel="stylesheet"/>
12 <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script>
13
14 <script type="text/javascript">
15 require([
16 "dojo/dom",
17 "dojox/mobile/Badge",
18 "dojox/mobile/parser",
19 "dojox/mobile",
20 "dojox/mobile/compat"
21 ], function(dom, Badge){
22 dojo.ready(function(){
23 var b1 = new Badge();
24 b1.setValue("33");
25 dom.byId("container1").appendChild(b1.domNode);
26
27 var b2 = new Badge({value:"22"});
28 dom.byId("container1").appendChild(b2.domNode);
29
30 var b3 = new Badge({value:"33",className:"mblDomButtonBlueBadge"});
31 dom.byId("container1").appendChild(b3.domNode);
32
33 var b4 = new Badge({value:"44",className:"mblDomButtonBlueBadge",fontSize:11});
34 dom.byId("container1").appendChild(b4.domNode);
35
36 var c = 0;
37 var id = setInterval(function() {
38 c += 7;
39 if(c >= 100){
40 clearInterval(id);
41 }
42 btn1.setValue(c);
43 }, 500);
44 });
45 });
46 </script>
47 </head>
48 <body style="background-color:#9E9EA0;padding:30px;">
49 <div data-dojo-type="dojox.mobile.Badge" class="mblDomButtonRedBadge" data-dojo-props='value:"6"'></div>
50 <div data-dojo-type="dojox.mobile.Badge" class="mblDomButtonBlueBadge" data-dojo-props='value:"48"'></div>
51 <div data-dojo-type="dojox.mobile.Badge" class="mblDomButtonGreenBadge" data-dojo-props='value:"320"'></div>
52 <hr>
53 <div id="container1"></div>
54 <hr>
55 <div data-dojo-id="btn1" data-dojo-type="dojox.mobile.Badge" class="mblDomButtonRedBadge"></div>
56
57 </body>
58 </html>