-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (72 loc) · 2.92 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
<!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/ready","dojo/cookie","larson/main","larson/login/mainLogin","larson/login/signout",
"dijit/form/TextBox", "dijit/form/Button", "larson/login/register"], function(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!"
dojo.removeClass(dojo.byId("signoutNode"), "hidden")
dojo.addClass(dojo.byId("registerNode"), "hidden")
}
})
})
</script>
</head>
<body class="larson">
<div class="pageWrapper">
<div class="toolBar grayBackground border lightGrayBorder">
<div class="floatLeft padding20 borderRight lightGrayBorder darkGrayBackground whiteText bigText bold">
Larson
</div>
<div class="floatLeft padding10">
<input data-dojo-type="dijit.form.TextBox" />
<button data-dojo-type="dijit.form.Button">Search</button>
</div>
<div class="floatRight">
<!-- bring in registration widget -->
<div data-dojo-type="larson.login.register" class="floatLeft padding20 borderLeft lightGrayBorder" id="registerNode"></div>
<div class="floatLeft padding20 borderLeft lightGrayBorder">
Cart
</div>
<div class="floatLeft padding20 borderLeft lightGrayBorder hidden" id="signedinNode"></div>
<!-- bring in sign in widget -->
<div data-dojo-type="larson.login.mainLogin" class="floatLeft padding20 borderLeft lightGrayBorder" id="signinNode"></div>
<!-- bring in sign out widget -->
<div data-dojo-type="larson.login.signout" class="floatLeft padding20 borderLeft lightGrayBorder hidden" id="signoutNode"></div>
<div class="floatLeft padding20 borderLeft lightGrayBorder">
Help
</div>
</div>
<div class="clearFix"></div>
</div><!-- .toolBar -->
<div class="mainContentArea marginTop">
<div class="sideBar border padding10 lightGrayBorder borderRadius marginRight grayBackground floatLeft">
Sidebar Items go here
</div>
<div>
Main item listings will go here
</div>
</div>
</div><!-- .pageWrapper -->
</body>
</html>