-
Notifications
You must be signed in to change notification settings - Fork 0
/
homePage.php
189 lines (163 loc) · 6.2 KB
/
homePage.php
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
<!--
Project: Home Inventory Helper
PURPOSE: The user can view the overall weight progress, the last edited cardboard and can set the target weight.
If it's the first time it helps the user to set up the first info.
This code has been moved to a linux based OS.
-->
<html><!--Migration to HTML5, support to older browser to study-->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://kit.fontawesome.com/1e0bf4fd11.js" crossorigin="anonymous"></script>
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet'>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Home</title>
</head>
<body
onload="closeDropdownAtClickOutside(); rearrangeTopbar();"
onresize="resizeOpenedSidenav(); rearrangeTopbar();" >
<!--*****************************************************************************
------------------------------Top Navigation Bar--------------------------
<!-******************************************************************************** -->
<!--Menu icon, Home page icon, Search and Page Relative menu, all in a static top bar always visible-->
<div id="home-topbar" class="home-topbar topnav">
<!-- "Hamburger menu" / "Bar icon" to toggle the menu sidebar-->
<a id="sideMenuBarOpenBtn" href="#" onclick="openMenuSideBarOnClick()">
<i class="fa fa-bars"></i>
</a>
<a id="home-brand"
class="home-top-title-flex"
href="homePage.php">
<div class="brand-logo-shape">
<i class='fas fa-box-open'>
</i>
</div>
<div class="brand-name">
Oh! My Move
</div>
</a>
<!--Add homepage search and menu on the right side of the topNav-->
<!--Search
See https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_searchbar3-->
<div class="search-container">
<form class="home-search-form" action="livesearchview.php">
<button id="topBarSearchBtn" type="submit">
<i class="fa fa-search"></i>
</button>
<input type="text" placeholder="Search..." name="search" style="font-family:FontAwesome, Arial">
</form>
</div>
<!--Page Relative menu-->
<div class="dropdown">
<button id="topNavRelativeMenuDropButton" class="dropbtn" onclick="showDropdownAtClick()">
<i class="fa fa-ellipsis-v"></i>
</button>
<div class="dropdown-content" id="myDropdown">
<a href="#">Set moving date</a>
<a href="#">Set weight limit</a>
<a href="#">Set volume limit</a>
</div>
</div>
</div>
<div class="home-page-flex-container">
<!--*****************************************************************************
------------------------------Menu sidenav------------------------
-*****************************************************************************/
A responsive side menu bar-->
<div class="sidenav home-sidenav" id="myMenuSideBar">
<a id="sideMenuBarCloseBtn"
href="javascript:void(0)"
class="closebtn"
onclick="closeMenuSideBar()">
×
</a>
<!-- - My name, my email and and text to (dis)connect. -
Improve this section so that behave like this :
At first the user is not connected, it displays :
"Welcome! Connect"
Clicking on "connect" send the user to a sign in page.
When the user is connected, it displays :
"[email protected] Disconnect"
Clicking on "disconnect" log the user out.
-->
<div id="menuSideBarConnect">
<div
id="sidenav-brand-logo-shape"
class="sidenav-brand-logo-shape">
<i class='fas fa-box-open'>
</i>
Oh! My Move
</div>
<a href="#" class="icon">
Connect
</a>
</div>
<!--Link to the Home page-->
<a href="homePage.php" class="icon">
Home
</a>
<!--Link to the page "I prepare my move"-->
<a href="#" class="icon">
I prepare my move.
</a>
<!--Link to the page "I receive my items"-->
<a href="#" class="icon">
I receive my items.
</a>
<!--Link to the page "Objects List"-->
<a href="#" class="icon">
Objects Lists
</a>
<!--Link to the page "Save"-->
<a href="#" class="icon">
Save
</a>
<!--Link to the page "Share"-->
<a href="#" class="icon">
Share
</a>
<!--Link to the page "Bin"-->
<a href="#" class="icon">
Bin
</a>
</div>
<!--*****************************************************************************
------------------------------Main section------------------------
-*****************************************************************************/-->
<div id="homePageMainDiv" class="home-main">
<h1 class="home-h1">My Dashboard</h1>
<hr class="home-hr">
<h2 class="home-h2">Evolution</h2>
<p id="onebarchart_div">Loading global weight barchart...</p>
<!-- <p id="barchart_div">Loading disbribution barchart...</p> -->
<h2 class="home-h2">Edited recently</h2>
<div id="recent">
<a href="#">item01Name</a>
<a href="#">item02Name</a>
<a href="#">item03Name</a>
<a href="#">item04Name</a>
<a href="#">carboard01Name</a>
<a href="#">carboard02Name</a>
</div>
</div>
</div>
<!--*****************************************************************************
------------------------------Footer------------------------
-*****************************************************************************/-->
<!-- <div class="home-footer footer">
<?php echo date("Y.m.d") . " " . date("l") . ". The server time is " . date("h:i:sa");?>
<br>© Samuel Roccoli<br>
<?php echo date("Y");?> -->
<!--This button opens a form to add a new cardboard box.-->
<button id=""
class="w3-button w3-xlarge w3-circle w3-red w3-card-4 w3-margin w3-right"
onclick="location.href='recordNewCardboard.php';" >
+
</button>
<!-- </div> -->
</body>
<script src="myScript.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript" src="weightChart.js"></script>
</html>