dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
51 lines (42 loc) • 1.82 kB
HTML
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>UpgradeBar Test</title>
<style type="text/css">
@import "../../../dijit/tests/css/dijitTests.css";
</style>
<link href="../UpgradeBar/UpgradeBar.css" rel="stylesheet" />
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="parseOnLoad:true, isDebug: false, popup:true"></script>
<script type="text/javascript">
require(["dojo/parser", "dojo/domReady", "dojox/widget/UpgradeBar", "dojox/embed/Flash", "dojo/sniff"], function(parser, domReady, UpgradeBar, flashModule, hasModule){
// globalize these; eww, yes, but useful for demo purposes,
// for the inline functions in the validate attributes
has = hasModule;
flash = flashModule;
domReady(dojo.hitch(parser, "parse"));
});
</script>
</head>
<body class="tundra">
<h1 class="testTitle">dojox.widget.UpgradeBar</h1>
<div data-dojo-type="dojox.widget.UpgradeBar" id="upgradeBar">
<div validate="has('ie')<10">
<span>Your browser sucks. Download a good one.</span>
<a href="http://www.getfirefox.net/">Get Firefox</a>
</div>
<div validate="has('ff')<20">
<span>Your version of Firefox needs to be upgraded to version 20.</span>
<a href="http://www.getfirefox.net/">Get Firefox</a>
</div>
<div validate="flash.available<14">
<span>This app needs a version of Flash that does not yet exist.</span>
<a href="http://www.adobe.com/downloads/">Download Flash 14</a>
</div>
<div validate="!google.gears">
<span>This app will perform better with Google Gears.</span>
<a href="http://gears.google.com/download.html">Download Google Gears</a>
</div>
</div>
</body>
</html>