forked from WyattMufson/ONTlockExt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
137 lines (131 loc) · 5.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
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
<html ng-app="mainpopup">
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="js/angular.min.js"></script>
<script src="js/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="/lib/browser.js"></script>
<script type="text/javascript" src="bower_components/crypto-js/crypto-js.js"></script>
<script src="js/popup.js"></script>
</head>
<body>
<div ng-controller="popupCtrl" id="mainPopup">
<div id="header" class="row">
<div class="col-xs-12">
<img src="./images/icon.png" id="logo"></img>
<h1 id="title">ONTlock</h1>
<a ng-if="showPasswords" ng-click="addPassword()" id="add-password">+</a>
</div>
</div>
<!-- First time loading page -->
<div class="row" style="background-color: white" ng-if="firstLoad">
<div class="col-xs-12" id="first-load">
<div ng-if="notLoggedIn">
<p>WIF</p>
<input id="wif-key-input"></input>
</div>
<p>Password</p>
<input id="password-input" type="password"></input>
<p>Confirm Password</p>
<input id="confirm-password-input" type="password"></input>
<h6 ng-if="showError" style="color: red">{{errorMessage}}</h6>
<a ng-click="logInClicked()"><button>Log In</button></a>
<br><br>
<hr><b>Or</b><hr><br>
<a id="create-wallet" href="https://github.com/ontio/OWallet/releases" target="_blank">Create wallet to get started</a>
</div>
</div>
<!-- Passwords Page -->
<div class="row" style="background-color: white" ng-if="showPasswords">
<div class="col-xs-12">
<ul id="password-list">
<li ng-repeat="password in passwords track by $index"
ng-click="showDetailsForPassword(password)"
ng-style="{ 'background': (isHover ? '#FAFAFA' : 'transparent') }"
ng-mouseenter="isHover = true;"
ng-mouseleave="isHover = false;">
<img src="./images/icon.png" id="icon-thumb">
<p id="website-label">{{password.url}}</p>
<p id="username-label">{{password.username}}</p>
<hr>
</li>
</ul>
<div ng-if="!passwords.length" id="no-pass">
<h4>No Passwords yet!</h4>
<a ng-click="addPassword()">Add a password</a>
</div>
</div>
</div>
<div class="row" style="background-color: white; padding-bottom: 20px;" ng-if="showDetails || showAddPassword">
<div class="col-xs-12">
<a id="back" href="/" ng-click="backPressed()">Back</a>
</div>
</div>
<!-- Add Password Page -->
<div class="row" style="background-color: white" ng-show="showAddPassword">
<div class="col-xs-12" id="add-new-password">
<h5>{{addOrEdit}}</h5>
<p>URL</p>
<input id="new-url"></input>
<p>Username</p>
<input id="new-username"></input>
<p>Password</p>
<input id="new-password" type="password"></input>
<p>Master Password</p>
<input id="master-password" type="password"></input>
<a ng-click="addNewPassword()"><button>{{addOrEdit}}</button></a>
</div>
</div>
<!-- Details Page -->
<div class="row" style="background-color: white" ng-show="showDetails">
<div class="col-xs-12">
<ul id="action-list">
<li ng-click="action(1)"
ng-style="{ 'background': (isHover1 ? '#FAFAFA' : 'transparent') }"
ng-mouseenter="isHover1 = true;"
ng-mouseleave="isHover1 = false;">
<p id="website-label">Copy Username</p>
<!-- This input is needed for copy -->
<input id="copyfrom" tabindex='-1' aria-hidden='true'>
</li>
<li ng-click="action(2)"
ng-style="{ 'background': (isHover2 ? '#FAFAFA' : 'transparent') }"
ng-mouseenter="isHover2 = true;"
ng-mouseleave="isHover2 = false;">
<p id="website-label">Copy Password</p>
</li>
<li ng-click="action(3)"
ng-style="{ 'background': (isHover3 ? '#FAFAFA' : 'transparent') }"
ng-mouseenter="isHover3 = true;"
ng-mouseleave="isHover3 = false;">
<p id="website-label">Copy URL</p>
</li>
<li ng-click="action(4)"
ng-style="{ 'background': (isHover4 ? '#FAFAFA' : 'transparent') }"
ng-mouseenter="isHover4 = true;"
ng-mouseleave="isHover4 = false;">
<p id="website-label">Go to URL</p>
</li>
<li ng-click="action(5)"
ng-style="{ 'background': (isHover5 ? '#FAFAFA' : 'transparent') }"
ng-mouseenter="isHover5 = true;"
ng-mouseleave="isHover5 = false;">
<p id="website-label">Edit</p>
</li>
<li ng-click="action(6)"
ng-style="{ 'background': (isHover6 ? '#FAFAFA' : 'transparent') }"
ng-mouseenter="isHover6 = true;"
ng-mouseleave="isHover6 = false;">
<p id="website-label">Delete</p>
</li>
</ul>
<div class="row" style="background-color: white" ng-show="showDelete">
<p>Master Password</p>
<input id="delete-master-password" type="password"></input>
</div>
</div>
</div>
</div>
</body>
</html>