1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
5 | <title>UpgradeBar Test</title> |
---|
6 | <style type="text/css"> |
---|
7 | @import "../../../dijit/tests/css/dijitTests.css"; |
---|
8 | </style> |
---|
9 | <link href="../UpgradeBar/UpgradeBar.css" rel="stylesheet" /> |
---|
10 | |
---|
11 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="parseOnLoad:true, isDebug: false, popup:true"></script> |
---|
12 | |
---|
13 | <script type="text/javascript"> |
---|
14 | require(["dojo/parser", "dojo/domReady", "dojox/widget/UpgradeBar", "dojox/embed/Flash", "dojo/sniff"], function(parser, domReady, UpgradeBar, flashModule, hasModule){ |
---|
15 | // globalize these; eww, yes, but useful for demo purposes, |
---|
16 | // for the inline functions in the validate attributes |
---|
17 | has = hasModule; |
---|
18 | flash = flashModule; |
---|
19 | domReady(dojo.hitch(parser, "parse")); |
---|
20 | }); |
---|
21 | </script> |
---|
22 | |
---|
23 | </head> |
---|
24 | <body class="tundra"> |
---|
25 | |
---|
26 | <h1 class="testTitle">dojox.widget.UpgradeBar</h1> |
---|
27 | |
---|
28 | <div data-dojo-type="dojox.widget.UpgradeBar" id="upgradeBar"> |
---|
29 | <div validate="has('ie')<10"> |
---|
30 | <span>Your browser sucks. Download a good one.</span> |
---|
31 | <a href="http://www.getfirefox.net/">Get Firefox</a> |
---|
32 | </div> |
---|
33 | |
---|
34 | <div validate="has('ff')<20"> |
---|
35 | <span>Your version of Firefox needs to be upgraded to version 20.</span> |
---|
36 | <a href="http://www.getfirefox.net/">Get Firefox</a> |
---|
37 | </div> |
---|
38 | |
---|
39 | <div validate="flash.available<14"> |
---|
40 | <span>This app needs a version of Flash that does not yet exist.</span> |
---|
41 | <a href="http://www.adobe.com/downloads/">Download Flash 14</a> |
---|
42 | </div> |
---|
43 | |
---|
44 | <div validate="!google.gears"> |
---|
45 | <span>This app will perform better with Google Gears.</span> |
---|
46 | <a href="http://gears.google.com/download.html">Download Google Gears</a> |
---|
47 | </div> |
---|
48 | </div> |
---|
49 | </body> |
---|
50 | </html> |
---|