-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (88 loc) · 3.41 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
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/app.css" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<script type="module" src="app.js"></script>
</head>
<body style="color: white">
<div id="bar">
<pear-ctrl></pear-ctrl>
<div class="password-notes-buttons">
<button id="pair-button" class="tablinks">
Pair New Device
</button>
<button class="tablinks" onclick="openView(event, 'Password')">
Password
</button>
<button class="tablinks" onclick="openView(event, 'Notes')">
Secure Notes
</button>
</div>
</div>
<div
class="button-bar"
style="width: 80%; right: auto; height: 12px"
></div>
<div class="container">
<div class="left-panel">
<div class="session-info">
<h2>Pearwords 🍐</h2>
<img src="assets/pear-vault.png" class="pear-vault-image" />
<div class="button add-data">Add Data</div>
<div class="button add-writer" disabled>Add a Writer</div>
<div class="button destroy-session">Destroy Vault</div>
</div>
</div>
<div class="right-panel">
<div class="password-table">
<img src="./assets/connectivity.png" class="connectivity" />
<div
id="Password"
style="display: block"
class="tabcontent"
>
<table id="passwordTable">
<tr>
<th>Username</th>
<th>Password</th>
<th>Website</th>
</tr>
</table>
</div>
<div id="Notes" class="tabcontent">
<table id="notesTable">
<tr class="notes-header">
<th>Notes</th>
</tr>
<tr>
<td>Test note</td>
</tr>
<tr>
<td>Test note</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<script>
function openView(evt, tabName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(
" active",
"",
);
}
document.getElementById(tabName).style.display = "block";
evt.currentTarget.className += " active";
}
</script>
</body>
</html>