Changeset 12861

Show
Ignore:
Timestamp:
03/03/08 18:03:13 (9 months ago)
Author:
bill
Message:

Ooops, [12858] overwrote some other changes. Refs #6065.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/themes/themeTester.html

    r12858 r12861  
    88                @import "../../dojo/resources/dojo.css"; 
    99                @import "../tests/css/dijitTests.css"; 
    10                 @import "../../dojo/tests/dnd/dndDefault.css"; 
    1110 
    1211                html, body { height: 100%; width: 100%; padding: 0; border: 0; } 
    1312                #main { height: 100%; width: 100%; padding: 0; border: 0; } 
    14                 #header, #main { margin: 10px; } 
     13/*              #header, #mainSplit { margin: 10px; } */ 
    1514                #leftAccordion { width: 25%; } 
    1615                #bottomTabs { height: 40%; } 
     
    5756        </style> 
    5857 
     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 
    5965        <script type="text/javascript" src="../../dojo/dojo.js"  
    6066                djConfig="parseOnLoad: false, isDebug: true"></script> 
     
    6571        <script type="text/javascript" src="../dijit-all.js"></script> 
    6672 
    67         <script type="text/javascript"> 
    68                 // this is just a list of 'official' dijit themes, you can use ?theme=String  
    69                 // 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> 
    7773        <script type="text/javascript" src="../tests/_testCommon.js"></script> 
    7874        <script type="text/javascript"> // dojo.requires() 
     
    130126                function myHandler(id,newValue){ 
    131127                        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(); 
    141128                } 
    142129 
    143130                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                        ]; 
    144140 
    145141                        var holder = dojo.byId('themeData'); 
     
    152148                        var start = new Date().getTime(); 
    153149                        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"); 
    155151 
    156152                        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                        } 
    159169                }); 
    160170 
     
    675685                                        <div style="float:left; margin:5px; "> 
    676686                                                <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; "> 
    678688                                                        <div class="dojoDndItem">Item <strong>X</strong></div> 
    679689                                                        <div class="dojoDndItem">Item <strong>Y</strong></div> 
     
    683693                                        <div style="float:left; margin:5px; "> 
    684694                                                <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; "> 
    686696                                                        <div class="dojoDndItem">Item <strong>1</strong></div> 
    687697                                                        <div class="dojoDndItem">Item <strong>2</strong></div>