sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
1.9 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>UpgradeBar Test</title>
<style type="text/css">
body{
font-family:sans-serif;
}
@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:false, isDebug: false"></script>
<script type="text/javascript">
require(["dojox/widget/UpgradeBar", "dojo/sniff", "dojox/embed/Flash"], function(UpgradeBar, has, flash){
new UpgradeBar({
notifications:[
{
validate:function(){
return has("ie")<10;
},
message: '<span>Your version of Internet Explorer needs to be upgraded to Firefox.</span>'
+ '<a href="http://www.getfirefox.net/">Get Firefox</a>'
},
{
validate:function(){
return has("ff")<20;
},
message: '<span>Your version of Firefox needs to be upgraded to a version that does not exist.</span>'
+ '<a href="http://www.getfirefox.net/">Get Firefox</a>'
},
{
validate:function(){
var evals = true;
try{ evals = flash.available<14}catch(e){}
return evals;
},
message: '<span>This app needs a version of Flash that has never been released.</span>'
+ '<a href="http://www.adobe.com/downloads/">Get Flash Player</a>'
},
{
validate:function(){
return typeof google == "undefined" || !google.gears;
},
message: '<span>This app will perform better with Google Gears.</span>'
+ '<a href="http://gears.google.com/download.html">Download Google Gears</a>'
}
]
});
});
</script>
</head>
<body class="tundra">
<h1 class="testTitle">dojox/widget/UpgradeBar</h1>
</body>
</html>