-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
134 lines (118 loc) · 3.14 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<title>Tegro</title>
</head>
<style>
body {
box-sizing: border-box;
padding: 20px;
width: 300px;
}
.item_input_wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}
.wrapper_items_input {
display: flex;
flex-direction: column;
gap: 20px;
}
.wrapper_items_input input {
border: 1px solid #8a8a8a;
padding: 7px;
font-size: 14px;
font-family: sans-serif;
box-sizing: border-box;
border-radius: 4px;
}
.btn {
font-weight: 500;
padding: 0.625rem 1.25rem;
border-radius: 4px;
width: 100%;
background-color: #007aff;
border: 0;
color: #fff;
font-size: 14px;
font-family: sans-serif;
}
#step_2,
#step_1 {
display: none;
}
#step_2.active,
#step_1.active {
display: flex;
}
.error_string,
.error_string_2 {
display: none;
padding: 5px;
text-align: left;
background-color: #ff0000;
text-align: left;
color: #fff;
}
.error_string.active,
.error_string_2.active {
display: block;
}
.wrapper_link_get_api_key {
display: flex;
justify-content: center;
}
</style>
<body>
<div class="wrapper_items_input active" id="step_1">
<div class="item_input_wrapper">
<label for="shop_id">Shop ID:</label>
<input type="text" name="shop_id" id="shop_id">
</div>
<div class="item_input_wrapper">
<label for="secrt_key">Secrt Key:</label>
<input type="text" name="secrt_key" id="secrt_key">
</div>
<div class="item_input_wrapper">
<label for="api_key">API Key:</label>
<input type="text" name="api_key" id="api_key">
</div>
<div class="error_string">Fill in all the fields</div>
<button type="button" class="btn" id="btn_step_1">Next step</button>
<div class="wrapper_link_get_api_key">
<a href="https://tegro.money/my/shop-settings/">Get API key</a>
</div>
</div>
<div class="wrapper_items_input" id="step_2">
<div class="item_input_wrapper">
<label for="currency">Currency:</label>
<select name="currency" id="currency">
<option value="RUB">RUB</option>
<option value="USD">USD</option>
<option value="EUR">EUR</option>
<option value="EUR">EUR</option>
</select>
</div>
<div class="item_input_wrapper">
<label for="amount">Amount:</label>
<input type="text" name="amount" id="amount">
</div>
<div class="item_input_wrapper">
<label for="order_id">Order id:</label>
<input type="text" name="order_id" id="order_id">
</div>
<div class="item_input_wrapper" id="wrapper_order_link" style="display: none;">
<label for="link"></label>
<a href="#" id="order_link">Link</a>
</div>
<div class="error_string_2">Fill in all the fields</div>
<button type="button" class="btn" id="createOrder">Create</button>
<button type="button" class="btn" id="getAllOrders">Get all orders</button>
<div class="orders_list" id="orders_list"></div>
</div>
<script src="crypto-js.js"></script>
<script src="spark-md5.min.js"></script>
<script src="popup.js"></script>
</body>
</html>