Debian Codegraph @

dojox/mobile/tests/test_domButtonsBadge.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>domButtonsBadge</title>
8
9 <link href="../themes/common/domButtons/DomButtonRedBadge.css" rel="stylesheet"/>
10 <link href="../themes/common/domButtons/DomButtonBlueBadge.css" rel="stylesheet"/>
11 <link href="../themes/common/domButtons/DomButtonGreenBadge.css" rel="stylesheet"/>
12
13 <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script>
14
15 <script type="text/javascript">
16 require([
17 "dojo/_base/window",
18 "dojo/dom",
19 "dojo/ready",
20 "dojox/mobile/iconUtils",
21 "dojox/mobile",
22 "dojox/mobile/parser",
23 "dojox/mobile/compat"
24 ], function(win, dom, ready, iconUtils){
25 function setIconValue(id, val){
26 var txt = win.doc.createTextNode(val);
27 dom.byId(id).firstChild.appendChild(txt);
28 }
29 ready(function(){
30 var nodes = win.doc.getElementsByTagName("div");
31 for(var i = 0, c = 0; i < nodes.length; i++){
32 var div = nodes[i];
33 if(div.nodeType != 1 || div.className.indexOf("mblDomButton") == -1){ continue; }
34 div.style.border = "1px solid red";
35 iconUtils.createDomButton(div);
36 setIconValue("btn"+c++, "15");
37 }
38 });
39 });
40 </script>
41 </head>
42 <body style="background-color:#C5CCD3;font-family:Helvetica;font-size:12px;">
43 <table style="border:none">
44 <tr><td><div id="btn0" class="mblDomButtonRedBadge"></div></td><td>mblDomButtonRedBadge</td></tr>
45 <tr><td><div id="btn1" class="mblDomButtonBlueBadge"></div></td><td>mblDomButtonBlueBadge</td></tr>
46 <tr><td><div id="btn2" class="mblDomButtonGreenBadge"></div></td><td>mblDomButtonGreenBadge</td></tr>
47 <tr><td><div id="btn3" class="mblDomButtonRedBadge" style="font-size:11px;color:pink;"></div></td><td>mblDomButtonRedBadge (small)</td></tr>
48 <tr><td><div id="btn4" class="mblDomButtonBlueBadge" style="font-size:11px;color:pink;"></div></td><td>mblDomButtonBlueBadge (small)</td></tr>
49 <tr><td><div id="btn5" class="mblDomButtonGreenBadge" style="font-size:11px;color:pink;"></div></td><td>mblDomButtonGreenBadge (small)</td></tr>
50 </table>
51 </body>
52 </html>