Debian Codegraph @

dojox/mobile/tests/test_Tooltip.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>test Tooltip</title>
8
9 <script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base','SpinWheel','Tooltip']"></script>
10 <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script>
11
12 <script type="text/javascript">
13 require([
14 "dojo/dom",
15 "dojo/ready",
16 "dijit/_base/manager", // dijit.byId in markup
17 "dojox/mobile/parser",
18 "dojox/mobile",
19 "dojox/mobile/compat",
20 "dojox/mobile/SpinWheel",
21 "dojox/mobile/Tooltip"
22 ], function(dom, ready){
23 ready(function(){
24 dom.byId('bot').scrollIntoView(false);
25 });
26 });
27 </script>
28
29 <style>
30 .dj_phone BUTTON {
31 display:none;
32 }
33 INPUT {
34 font-family: monospace;
35 border-radius: 0px;
36 }
37 #spin1 {
38 width: 304px;
39 }
40 #pt {
41 width: 20px;
42 background-color: #C4C9DB;
43 opacity: 0.2;
44 }
45 #txt {
46 width: 10px;
47 margin-left: -15px;
48 padding-top: 85px;
49 font-size: 24px;
50 font-weight: bold;
51 border: none;
52 }
53 HTML {
54 min-height: 100%; /* workaround for android 3.x position:fixed bug */
55 }
56 </style>
57 </head>
58 <body style="visibility:hidden;">
59 <center style="width:100%;">
60 <button type="button" onclick="dijit.byId('customPicker').show(this, ['above','below-centered','before','after'])">below</button>
61 <input readonly onclick="dijit.byId('textTooltip').show(this, ['above-centered','below-centered','after','before'])" value="below" size="5">
62 <br><br><b>Click boundary nodes to see tooltips</b>
63 </center>
64 <center id="bot" class="bottom" style="position:fixed;bottom:0;width:100%;">
65 <input readonly tabindex="0" onclick="dijit.byId('textTooltip').show(this, ['above-centered','below-centered','before','after'])" value="above" size="5">
66 <button type="button" tabindex="0" onclick="dijit.byId('customPicker').show(this, ['below','above-centered','after','before'])">above</button>
67 </center>
68 <center style="position:fixed;top:33%;width:100%;">
69 <button type="button" onclick="dijit.byId('customPicker').hide()">click to hide spin wheels</button>
70 </center>
71 <center style="position:fixed;bottom:33%;width:100%;">
72 <input readonly onclick="dijit.byId('textTooltip').hide()" value="click to hide text tooltip" size="26">
73 </center>
74 <div style="position:fixed;top:50%;left:1px;direction:ltr;">
75 <input readonly onclick="dijit.byId('textTooltip').show(this, ['before','after','below-centered','above-centered'])" value="right" size="5">
76 <br>
77 <br>
78 <button type="button" onclick="dijit.byId('customPicker').show(this, ['before','after','below-centered','above-centered'])">right</button>
79 </div>
80 <div style="position:fixed;bottom:50%;right:1px;direction:rtl;">
81 <button type="button" onclick="dijit.byId('customPicker').show(this, ['after','before','above','below'])">left</button>
82 <br>
83 <br>
84 <input readonly onclick="dijit.byId('textTooltip').show(this, ['after','before','below','above'])" value="left" size="4">
85 </div>
86
87 <div id="textTooltip" data-dojo-type="dojox.mobile.Tooltip" class="mblTooltipBubble">Enter a value.<br><center>Please!</center></div>
88
89 <div id="customPicker" data-dojo-type="dojox.mobile.Tooltip">
90 <div id="spin1" data-dojo-type="dojox.mobile.SpinWheel">
91 <div data-dojo-type="dojox.mobile.SpinWheelSlot"
92 data-dojo-props="labels:['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']"
93 style="text-align:center;width:40px;"></div>
94 <div data-dojo-type="dojox.mobile.SpinWheelSlot"
95 data-dojo-props='labelFrom:3000, labelTo:3100'
96 style="width:70px;"></div>
97 <div id="pt" class="mblSpinWheelSlot"></div>
98 <div id="txt" class="mblSpinWheelSlot">.</div>
99 <div data-dojo-type="dojox.mobile.SpinWheelSlot"
100 data-dojo-props='labelFrom:0, labelTo:9'
101 style="width:30px;"></div>
102 <div data-dojo-type="dojox.mobile.SpinWheelSlot"
103 data-dojo-props="labels:['pt','px','cm']"
104 style="width:50px;"></div>
105 <div data-dojo-type="dojox.mobile.SpinWheelSlot"
106 data-dojo-props="labels:[
107 '<img src=images/i-icon-1.png>',
108 '<img src=images/i-icon-2.png>',
109 '<img src=images/i-icon-3.png>',
110 '<img src=images/i-icon-4.png>',
111 '<img src=images/i-icon-5.png>',
112 '<img src=images/i-icon-6.png>',
113 '<img src=images/i-icon-7.png>',
114 '<img src=images/i-icon-8.png>',
115 '<img src=images/i-icon-9.png>',
116 '<img src=images/i-icon-10.png>'
117 ]"
118 style="width:70px;text-align: center;"></div>
119 </div>
120 </div>
121 </body>
122 </html>