Changeset 12861
- Timestamp:
- 03/03/08 18:03:13 (9 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/themes/themeTester.html (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/themes/themeTester.html
r12858 r12861 8 8 @import "../../dojo/resources/dojo.css"; 9 9 @import "../tests/css/dijitTests.css"; 10 @import "../../dojo/tests/dnd/dndDefault.css";11 10 12 11 html, body { height: 100%; width: 100%; padding: 0; border: 0; } 13 12 #main { height: 100%; width: 100%; padding: 0; border: 0; } 14 #header, #main { margin: 10px; } 13 /* #header, #mainSplit { margin: 10px; } */ 15 14 #leftAccordion { width: 25%; } 16 15 #bottomTabs { height: 40%; } … … 57 56 </style> 58 57 58 <script type="text/javascript"> 59 window.__globalList = {dojo: true, dijit: true, dojox: true, djConfig: true}; 60 for(var i in window){ 61 window.__globalList[i] = true; 62 } 63 </script> 64 59 65 <script type="text/javascript" src="../../dojo/dojo.js" 60 66 djConfig="parseOnLoad: false, isDebug: true"></script> … … 65 71 <script type="text/javascript" src="../dijit-all.js"></script> 66 72 67 <script type="text/javascript">68 // this is just a list of 'official' dijit themes, you can use ?theme=String69 // for 'un-supported' themes, too. (eg: yours)70 var availableThemes = [71 { theme:"tundra", author:"Dojo", baseUri:"../themes/" },72 { theme:"soria", author:"nikolai", baseUri:"../themes/" },73 //{ theme:"noir", author:"owen", baseUri:"../themes/"},74 { theme:"nihilo", author:"nikolai", baseUri:"../themes/" }75 ];76 </script>77 73 <script type="text/javascript" src="../tests/_testCommon.js"></script> 78 74 <script type="text/javascript"> // dojo.requires() … … 130 126 function myHandler(id,newValue){ 131 127 console.debug("onChange for id = " + id + ", value: " + newValue); 132 };133 134 function hideLoader(){135 var loader = dojo.byId('loader');136 dojo.fadeOut({ node: loader, duration:500,137 onEnd: function(){138 loader.style.display = "none";139 }140 }).play();141 128 } 142 129 143 130 dojo.addOnLoad(function() { 131 132 // this is just a list of 'official' dijit themes, you can use ?theme=String 133 // for 'un-supported' themes, too. (eg: yours) 134 var availableThemes = [ 135 { theme:"tundra", author:"Dojo", baseUri:"../themes/" }, 136 { theme:"soria", author:"nikolai", baseUri:"../themes/" }, 137 //{ theme:"noir", author:"owen", baseUri:"../themes/"}, 138 { theme:"nihilo", author:"nikolai", baseUri:"../themes/" } 139 ]; 144 140 145 141 var holder = dojo.byId('themeData'); … … 152 148 var start = new Date().getTime(); 153 149 dojo.parser.parse(dojo.byId('container')); 154 console. log("Total parse time: " + (new Date().getTime() - start) + "ms");150 console.info("Total parse time: " + (new Date().getTime() - start) + "ms"); 155 151 156 152 dojo.byId('loaderInner').innerHTML += " done."; 157 setTimeout(function(){hideLoader();},250); 158 153 setTimeout(function hideLoader(){ 154 var loader = dojo.byId('loader'); 155 dojo.fadeOut({ node: loader, duration:500, 156 onEnd: function(){ 157 loader.style.display = "none"; 158 } 159 }).play(); 160 }, 250); 161 162 var strayGlobals = []; 163 for(var i in window){ 164 if(!window.__globalList[i]){ strayGlobals.push(i); } 165 } 166 if(strayGlobals.length){ 167 console.warn("Stray globals: "+strayGlobals.join(", ")); 168 } 159 169 }); 160 170 … … 675 685 <div style="float:left; margin:5px; "> 676 686 <h3>Source 1</h3> 677 <div dojoType="dojo.dnd.Source" class="container">687 <div dojoType="dojo.dnd.Source" style="border:3px solid #ccc; padding: 1em 3em; "> 678 688 <div class="dojoDndItem">Item <strong>X</strong></div> 679 689 <div class="dojoDndItem">Item <strong>Y</strong></div> … … 683 693 <div style="float:left; margin:5px; "> 684 694 <h3>Source 2</h3> 685 <div dojoType="dojo.dnd.Source" class="container">695 <div dojoType="dojo.dnd.Source" style="border:3px solid #ccc; padding: 1em 3em; "> 686 696 <div class="dojoDndItem">Item <strong>1</strong></div> 687 697 <div class="dojoDndItem">Item <strong>2</strong></div>