Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 227 lines (207 sloc) 9.951 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Andes Physics Tutor</title>
     <script type="text/javascript">
dojoConfig = {
isDebug:true,
parseOnLoad:true,
// async: true,
// popup:true,
baseUrl: "./",
packages: [
{name: "dojo", location: "dojo"},
{name: "dijit", location: "dijit"},
{name: "dojox", location: "dojox"},
{name: "andes", location: "andes"}
                         ]
};
if(dojoConfig.isDebug){
document.write('<link href="css/andes.css" rel="stylesheet" />');
                        // document.write('<scr'+'ipt src="dojo/dojo.js"></scr'+'ipt>');
}else{
document.write('<link href="release/dojo/css/andes.css" rel="stylesheet" />');
document.write('<scr'+'ipt src="release/dojo/dojo/dojo.js"></scr'+'ipt>');
};
</script>
        <script src="dojo/dojo.js"></script>
<script type="text/javascript">
                console.log("index.html dojo.require 0/4 done");

if(false){
               // From dojox/drawing/tests/test_drawing_toolbar.html
    
                dojo.require("dojo.parser");
               // try to do this in main.js
               // dojo.require("dojox.drawing");
}
                console.log("index.html dojo.require 1/4 done");
if(true){
               // custom Tools and Plugins need to be required
                // This is needed for the 100% button:
                dojo.require("dojox.drawing.tools.TextBlock");
                dojo.require("dojox.drawing.tools.Rect");
                dojo.require("dojox.drawing.tools.Ellipse");
                dojo.require("dojox.drawing.tools.Line");
                
                // dojo.require("dojox.drawing.annotations.Label");
                dojo.require("dojox.drawing.annotations.Angle");
                dojo.require("dojox.drawing.annotations.Arrow");
                dojo.require("dojox.drawing.annotations.BoxShadow");
};
                console.log("index.html dojo.require 2/4 done");
if(true){
                // moved into js files.
                // dojo.require("dojox.drawing.tools.custom.Vector");
                // dojo.require("dojox.drawing.tools.custom.Axes");
                
                dojo.require("dojox.drawing.tools.Arrow");
                dojo.require("dojox.drawing.plugins.tools.Pan");
                dojo.require("dojox.drawing.plugins.tools.Zoom");
                dojo.require("dojox.drawing.plugins.drawing.Grid");
                dojo.require("dojox.drawing.plugins.drawing.GreekPalette");
};
                console.log("index.html dojo.require 3/4 done");
if(true){
                // already below
                // dojo.require("dojox.drawing.ui.Toolbar");
                dojo.require("dojox.drawing.ui.Button");
                dojo.require("dojox.drawing.library.icons");
};
                // Stuff I added to get it to work
if(false){
                dojo.require("dijit.layout.BorderContainer");
                dojo.require("dijit/MenuBar");
                dojo.require("dijit/PopupMenuBarItem");
                dojo.require("dijit/Menu"); // not in original require
                dojo.require("dijit/form/Button"); // not in original

};
               console.log("index.html dojo.requires 4/4 done.");

if(true){
require([
                         "dojo/parser",
                         "dijit/MenuBar","dijit/PopupMenuBarItem",
                         "dijit/layout/ContentPane",
                         "dojox/drawing/tools/custom/Equation", // equation is in list of tools
                         "dojox/drawing/tools/custom/Vector", // vector is in list of tools
                         "dojox/drawing/tools/custom/Axes", // axes is in list of tools
                         "dijit/layout/BorderContainer", //This includes the splitter
                         "andes/defaults", // needed for drawing to load, separate from rest of Andes load
                         "dojox/drawing/Drawing",
                         "dojox/drawing/ui/Toolbar",
                         "andes/widget/ExpandoPane", // Separate from rest of Andes load
                         "dijit/form/TextBox",
                         "dojox/widget/UpgradeBar",
                         "dojox/drawing/plugins/drawing/GreekPalette",
                         "dojox/widget/DialogSimple",
                         "dijit/form/NumberSpinner",
                         "dijit/form/ToggleButton",
                         "andes"
]);
};

</script>
</head>
<body class="tundra">
    <div id="splashOverlay"></div>
    <div id="conEdit" contenteditable="true"></div>
    <div id="main" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="gutters:false">
<div data-dojo-type="dijit/MenuBar" id="navMenu" region="top" splitter="false">
<span id="problemName" class="dijitMenuItem dijitMenuItemLabel">Problem</span>
<div data-dojo-type="dijit/PopupMenuBarItem">
<span>Edit</span>
<div data-dojo-type="dijit/Menu" id="menuEdit">
<div id="menuOptions" data-dojo-type="dijit/MenuItem">Options</div>
</div>
</div>
<div data-dojo-type="dijit/PopupMenuBarItem">
<span>Physics</span>
<div data-dojo-type="dijit/Menu" id="menuPhysics">
<div id="menuPrinciples" data-dojo-type="dijit/MenuItem">Principles</div>
<div id="menuQuantities" data-dojo-type="dijit/MenuItem">Quantities</div>
<div id="menuUnits" data-dojo-type="dijit/MenuItem">Units</div>
<div id="menuConstants" data-dojo-type="dijit/MenuItem">Constants</div>
</div>
</div>


<div data-dojo-type="dijit/PopupMenuBarItem">
<span>Help</span>
<div data-dojo-type="dijit/Menu" id="menuHelp">
<div id="menuIntroText" data-dojo-type="dijit/MenuItem">Introduction</div>
<div id="menuIntroVideo" data-dojo-type="dijit/MenuItem">Intro Video</div>
<div id="menuIntroSlides" data-dojo-type="dijit/MenuItem">Slide show</div>
<div id="menuManual" data-dojo-type="dijit/MenuItem">Manual</div>
</div>
</div>
<div id="timer"></div>
<div data-dojo-type="dijit/form/Button" id="submitButton" style="position:absolute; top:0; right:10px; margin:0;">Submit</div>
</div>
<div id="toolPane" data-dojo-type="dijit/layout/ContentPane" region="left" splitter="false">
<div data-dojo-type="dojox/drawing/ui/Toolbar" id="gfxToolbarNode" drawingId="drawing" class="gfxToolbar" orient="V" tools="line,rect,ellipse,textBlock,equation,vector,axes" plugs="all" selected=""></div>
</div>
<div id="drawingPane" data-dojo-type="dijit/layout/ContentPane" region="center" >
<div data-dojo-type="dojox/drawing/Drawing" id="drawing" data-dojo-id="myDrawing" class="drawing" defaults="andes.defaults">
</div>
</div>

        <!-- AMD conversion: removed startExpanded:false property
from andes/widget/ExpandoPane. -->
<div id="helpPane" data-dojo-type="andes/widget/ExpandoPane" data-dojo-props="region:'right', splitter:true, title:'Tutor'">
<div id="helpWrapPane" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="gutters:false">
<div id="helpContentPane" data-dojo-type="dijit/layout/ContentPane" region="center"></div>

<div id="helpInputPane" data-dojo-type="dijit/layout/ContentPane" region="bottom">
<div data-dojo-type="dijit/form/TextBox" id="helpInput"></div>
<div data-dojo-type="dijit/form/Button" id="helpSubmit">Hint</div>
</div>
</div>
</div>

<div id="footerPane" data-dojo-type="dijit/layout/ContentPane" region="bottom"></div>
    </div>
    
    
    <div data-dojo-type="dojox/widget/UpgradeBar" id="upgradeBar">
        <!-- IE8 and below use VML which is very slow. -->
<div validate="dojo.isIE<9">
<span>Andes does not work well with older versions of Internet Explorer.&nbsp;
                Please upgrade to Firefox, Google Chrome, or IE 9.</span>
<a href="http://www.mozilla.com/firefox/">Download Firefox</a>
</div>
    </div>

    <!--Because this is a widget it is included in markup and NOT like the other plugins-->
    <div id="greekPalette" data-dojo-type="dojox/drawing/plugins/drawing/GreekPalette">
    </div>

    <!-- Modal dialog box for generic use.
dojox.widget.DialogSimple has executeScripts="true" by default -->
    <div id="consentDialog" data-dojo-type="dojox/widget/DialogSimple">
    </div>

    <!-- Principles menus constructed last -->
    <div id="majorPrinciples" data-dojo-type="dijit/Dialog" title="Major Principles">
<div id="majorModalTreeText"></div>
<div id="majorModalTree" class="tall">
Loading list of major Principles
</div>
    </div>
    
    <div id="allPrinciples" data-dojo-type="dijit/Dialog" title="Principles">
<div id="allModalTreeText"></div>
<div id="allModalTree" class="tall">
Loading list of all Principles
</div>
    </div>
    
    <div id="options" data-dojo-type="dijit/Dialog" title="Options">
<table id="optionsTable">
<tr>
<td class="left">AngleSnap:</td>
<td><input data-dojo-type="dijit/form/NumberSpinner" value="360" smallDelta="1" constraints="{min:1,max:360}" intermediateChanges="true" style="width:63px" id="optionsAngleSnap" name="angleSnap"/></td>
</tr>
<tr>
<td class="left">PowerPoint Style:</td>
<td><button data-dojo-type="dijit/form/ToggleButton" checked="checked" iconClass="dijitCheckBoxIcon" id="optionsClickMode">Blip</button></td>
</tr>
<tr>
<td class="left">Correct:</td>
<td><a id="colorCorrect"> </a></td>
</tr>
<tr>
<td class="left">Incorrect:</td>
<td><a id="colorIncorrect"> </a></td>
</tr>
<tr>
<td class="left">Timer:</td>
<td><button data-dojo-type="dijit/form/ToggleButton" iconClass="dijitCheckBoxIcon" id="showTimer">Blip</button></td>
</tr>
</table>
    </div>
    
</body>
</html>
Something went wrong with that request. Please try again.