-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
250 lines (240 loc) · 7.31 KB
/
index.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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Larson || Your portal for local food and artisan crafts</title>
<script data-dojo-config="async:true" src="js/dojo-release-1.7.2-src/dojo/dojo.js"></script>
<link rel="stylesheet" rel="stylesheet" href="js/dojo-release-1.7.2-src/dijit/themes/larson/larson.css"/>
<link rel="stylesheet" rel="stylesheet" href="css/appStyles.css"/>
<script type="text/javascript">
var dojoConfig = {
baseUrl: "/js/",
tlmSiblingOfDojo: false,
packages: [
{ name: "dojo", location: "dojo" },
{ name: "dijit", location: "dijit" },
{ name: "dojox", location: "dojox" },
{ name: "larson", location: "larson" }
]
}
require(["dojo/parser","dojo/ready","dojo/cookie","larson/main","larson/login/mainLogin",
"dijit/form/TextBox", "dijit/form/Button", "larson/login/register", "larson/login/userMenu"],
function(parser, ready, cookie, main){
ready(function(){
if(cookie("loginCookie")) {
var loginCookie = dojo.fromJson(cookie("loginCookie"))
dojo.addClass(dojo.byId("signinNode"), "hidden")
dojo.removeClass(dojo.byId("signedinNode"), "hidden")
//dojo.byId("signedinNode").innerHTML = "Hi " + loginCookie.firstname + ", welcome back!"
var personButton = new dijit.form.DropDownButton({
label: loginCookie.firstname,
baseClass: "plainTextButton",
id: "accountButton",
dropDown: new larson.login.userMenu
}, "signedinButton")
//dojo.removeClass(dojo.byId("signoutNode"), "hidden")
dojo.addClass(dojo.byId("registerNode"), "hidden")
parser.parse()
}
})
})
</script>
</head>
<body class="larson">
<div class="pageWrapper">
<div class="topToolbar">
<div class="floatLeft padding10 bigText bold">
Larson
</div>
<div class="floatRight padding10">
<!-- bring in registration widget -->
<div data-dojo-type="larson.login.register" class="floatLeft borderRight" id="registerNode"></div>
<div class="floatLeft hidden" id="signedinNode">
<div id="signedinButton"></div>
</div>
<!-- bring in sign in widget -->
<div data-dojo-type="larson.login.mainLogin" class="floatLeft" id="signinNode"></div>
</div>
<div class="clearFix"></div>
</div>
<div class="toolBar">
<div class="floatLeft padding10 grayBackground border lightGrayBorder borderRadius" style="width:80%">
<input data-dojo-type="dijit.form.TextBox" />
<button data-dojo-type="dijit.form.Button">Search</button>
</div>
<div class="floatLeft" style="width:1%"></div>
<div class="floatRight grayBackground border lightGrayBorder borderRadius">
<div class="floatLeft padding20">
About
</div>
<div class="floatLeft padding20 borderLeft lightGrayBorder">
CSA's
</div>
<div class="floatLeft padding20 borderLeft lightGrayBorder">
Cart
</div>
</div>
<div class="clearFix"></div>
</div><!-- .toolBar -->
<div class="mainContentArea marginTop">
<div class="secondToolbar borderTop borderBottom lightGrayBorder marginTop marginBottom padding10 alignCenter">
Vegetables | Eggs | Raw Milk | Handmade Goods
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
<br />
Item content goes here
<br />
Item content goes here
<br />
</div>
<div class="oneItem padding10 grayBackground border lightGrayBorder borderRadius">
Item content goes here
</div>
<div class="clearFix"></div>
</div>
</div><!-- .pageWrapper -->
</body>
</html>