-
Notifications
You must be signed in to change notification settings - Fork 0
/
SmartHomeProfiles.html
117 lines (109 loc) · 4.29 KB
/
SmartHomeProfiles.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
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="./styles/stylesheet.css">
<link rel="stylesheet" href="./styles/addingUser.css">
<link rel="stylesheet" href="./styles/mediaqueries.css">
<link rel="stylesheet" href="./styles/animations.css">
<link rel="stylesheet" href="./styles/profile.css">
<title>SmartHome | Help</title>
<link rel="icon" href="./media/images/logo.png">
</head>
<body id="SmartHomeProfilesPage" class="loading-animation">
<header>
<nav>
<div class="nav-wrapper">
<a id="return-from-page-button" onclick = "location.href = localStorage.getItem('profilesPageReferrer') || 'SmartHome.html'">
<svg class="svg-icon"
style="width: 1em; margin: auto; transform: scale(1.2); display: flex; height: 1em;fill: currentColor;overflow: hidden;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path
d="M810.666667 469.333333H304.64l154.88-186.026666a42.666667 42.666667 0 1 0-65.706667-54.613334l-213.333333
256a50.773333 50.773333 0 0 0-3.84 6.4c0 2.133333 0 3.413333-2.986667 5.546667A42.666667 42.666667 0 0
0 170.666667 512a42.666667 42.666667 0 0 0 2.986666 15.36c0 2.133333 0 3.413333 2.986667 5.546667a50.773333
50.773333 0 0 0 3.84 6.4l213.333333 256A42.666667 42.666667 0 0 0 426.666667 810.666667a42.666667 42.666667
0 0 0 27.306666-9.813334 42.666667 42.666667 0 0 0 5.546667-60.16L304.64 554.666667H810.666667a42.666667 42.666667
0 0 0 0-85.333334z"
fill="#231F20" />
</svg>
</a>
<div id="logo" onclick="location.reload()"><img src="./media/images/logo.png" alt="SmartHome Logo">
<p>SmartHome</p>
</div>
</div>
<div class="nav-wrapper">
<div id="current-time"></div>
</div>
</nav>
</header>
<main>
<h1 id="welcome">Profiles</h1>
<div id="profileContainer">
<!-- 1º Botao de User -->
<div id="div-user-1">
<button id="user1Button" onclick='realIcon("user1"); location.href="SmartHome.html"'>
<img id="user1" src="./media/images/man.png">
</button>
<p class="user-name-display" id="user-1-name-display">Diego</p>
</div>
<!-- 2º Botao de User -->
<div id="div-user-2">
<button id="user2Button" onclick='realIcon("user2"); location.href="SmartHome.html"'>
<img id="user2" src="./media/images/woman.png">
</button>
<p class="user-name-display" id="user-2-name-display">Melissa</p>
</div>
<!-- 3º Botao de User -->
<div id="div-user-3">
<button id="user3Button" onclick='realIcon("user3"); location.href="SmartHome.html"'>
<img id="user3" src="./media/images/student.png">
</button>
<p class="user-name-display" id="user-3-name-display">Jorge</p>
</div>
<!--<button onclick="teste()">
<img id="teste" src="./media/images/man.png">
</button>
<!-- Botao de adicionar perfis -->
<div>
<a href="SmartHomeAddUser.html">
<button id="addProfile">
<svg id="add-profile-button" xmlns="http://www.w3.org/2000/svg" width="50" height="50"
viewBox="0 0 52 52">
<path
d="M26 0C11.664 0 0 11.663 0 26s11.664 26 26 26
26-11.663 26-26S40.336 0 26 0zm0 50C12.767 50 2 39.233 2 26S12.767 2 26 2s24 10.767 24 24-10.767 24-24 24z" />
<path
d="M38.5 25H27V14c0-.553-.448-1-1-1s-1 .447-1 1v11H13.5c-.552
0-1 .447-1 1s.448 1 1 1H25v12c0 .553.448 1 1 1s1-.447 1-1V27h11.5c.552 0 1-.447 1-1s-.448-1-1-1z" />
</svg>
</button>
</a>
<p class="user-name-display">Add Profile</p>
</div>
</div>
</main>
<footer>
<div id="settings"><img src="media/images/settings-icon.png" alt="Settings icon">
<div></div>
</div>
<div id="more-info"><p>i</p></div>
<select id="language-select">
<option value="en">English</option>
<option value="pt">Português</option>
</select>
</footer>
<script src="scripts/main.js"></script>
<script src="scripts/language.js"></script>
<script src="scripts/addingUser.js"></script>
<script src="scripts/settings.js"></script>
<script src="scripts/time.js"></script>
<script>
function myFunction() {
var statusJorge = JSON.parse(localStorage.getItem("jorgeStatus"));
jorge(statusJorge);
}
window.addEventListener("load", myFunction);
</script>
</body>