-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindexMC.html
135 lines (129 loc) · 4.88 KB
/
indexMC.html
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
<html>
<head>
<title>Drag N' Drop Practice</title>
<style type="text/css">
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/resources/dojo.css";
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css";
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css";
html, body, .dijitBorderContainer {width: 100%; height: 100%;}
canvas{
outline:0;
border:1px solid #000;
margin-left: auto;
margin-right: auto;
}
</style>
<script type="text/javascript">
var djConfig = {
isDebug: false,
parseOnLoad: true,
baseUrl: './',
modulePaths: { }
};
</script>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js">
</script>
<script type="text/javascript" src="/libs/uow.js"></script>
<script type="text/javascript" src="raphael.js"></script>
<script type="text/javascript" src="mapcreator.js"></script>
<script type="text/javascript" >
// kick off the game by creating the object
function main() {
paper = Raphael('holder', 1000, 530)
var dnd = new dragndrop(paper);
}
// don't start until everything is loaded
dojo.ready(main);
function checkData() {
var data = formDlg.attr('value');
console.log(data);
if (data.sdate > data.edate) {
alert("Start date must be before end date");
return false;
} else {
return true;
}
}
</script>
</head>
<body class=" claro ">
<div dojoType="dijit.Dialog" id="formDialog" title="Get Tile Information">
<table>
<tr>
<td>
<label for="vert">
Vertical Street:
</label>
</td>
<td>
<input dojoType="dijit.form.TextBox" type="text" name="vert" id="vert">
</td>
<td rowspan="6">
<div id="picture"></div>
</tr>
<tr>
<td>
<label for="horiz">
Horizontal Street:
</label>
</td>
<td>
<input dojoType="dijit.form.TextBox" type="text" name="horiz" id="horiz">
</td>
</tr>
<tr>
<td>
<label for="nw">
Northwest Building Name:
</label>
</td>
<td>
<input dojoType="dijit.form.TextBox" type="text" name="nw" id="nw">
</td>
</tr>
<tr>
<td>
<label for="ne">
Northeast Building Name:
</label>
</td>
<td>
<input dojoType="dijit.form.TextBox" type="text" name="ne" id="ne">
</td>
</tr>
<tr>
<td>
<label for="se">
Southeast Building Name:
</label>
</td>
<td>
<input dojoType="dijit.form.TextBox" type="text" name="se" id="se">
</td>
</tr>
<tr>
<td>
<label for="sw">
Southwest Building Name:
</label>
</td>
<td>
<input dojoType="dijit.form.TextBox" type="text" name="sw" id="sw">
</td>
</tr>
<tr>
<td align="center" colspan="2">
<button dojoType="dijit.form.Button" type="submit" id="button1" onClick="return dijit.byId('formDialog').isValid();">
Change Tile Info
</button>
<button dojoType="dijit.form.Button" type="button" onClick="dijit.byId('formDialog').hide();">
Not Now
</button>
</td>
</tr>
</table>
</div>
<div id="holder"></div>
</body>
</html>