-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport.html
More file actions
170 lines (160 loc) · 4.33 KB
/
Copy pathreport.html
File metadata and controls
170 lines (160 loc) · 4.33 KB
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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./icons/icon24.png">
<link rel="stylesheet" href="base.css">
<title>Отчет</title>
<style>
img {
user-select: none;
}
.dd_content {
background: #f2f2f2;
border: 3px double #121212;
padding: 6px;
position: absolute;
top: 14px;
z-index: 998;
}
.dd_content ul {
margin: 0;
list-style-type: none;
}
.dd_content li {
display: flex;
align-items: center;
gap: 6px;
height: 22px;
}
#imageDisplay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 999;
display: none;
}
#imageDisplay.visible {
display: flex;
justify-content: center;
align-items: center;
}
#imageDisplayImg {
max-height: 80vh;
object-fit: contain;
border-radius: 4px;
}
</style>
</head>
<body>
<div style="display:flex;gap:14px;align-items:center;">
<img src="./icons/icon128.png" id="titelLogo" alt="titelLogo" style="width:48px;padding-right:8px;">
<h1>Отчет</h1>
<b id="reportTitelId"></b>
</div>
<hr>
<table id="reportInfo">
<tr>
<th>Query</th>
<td id="rQuery" style="max-width:600px;word-wrap:break-word;"></td>
</tr>
<tr>
<th>Limit</th>
<td id="rLimit"></td>
</tr>
<tr>
<th>Marketplace</th>
<td id="rMP"></td>
</tr>
<tr>
<th>Total items</th>
<td id="rTotalItems"></td>
</tr>
<tr>
<th>Elapsed</th>
<td id="rElapsed"></td>
</tr>
<tr>
<th>Time</th>
<td id="rTime"></td>
</tr>
<tr>
<th>Error</th>
<td id="rError" style="color:red;"></td>
</tr>
</table>
<br>
<button class="bbtn" id="tryAgainBtn" style="margin-bottom:8px;" hidden>Повторить попытку</button>
<div id="actionBlock" style="display:none;">
<button class="bbtn" id="updateBtn">Обновить</button>
<span id="loadUpdateStatus" style="color:green;margin-left:6px" hidden>Загрузка...</span>
<br>
<hr>
<div style="display:flex;gap:12px;align-items:center;">
<a href="#bottomReportTable" style="font-size:24px;">↧</a>
<div>
<input type="checkbox" id="headersCheckbox" name="" checked />
<label for="headersCheckbox">Заголовки</label>
</div>
<div class="dd_menu" style="position:relative;">
<b id="tableExportDataDropBtn" style="cursor:pointer;color:blue;text-decoration:underline;">Данные↓</b>
<ul id="tableExportDataOptions" class="dd_content" hidden>
<li>
<input type="checkbox" id="name_cb" value="name" name="" checked />
<label for="name_cb">name</label>
</li>
<li>
<input type="checkbox" id="price_cb" value="price" name="" checked />
<label for="price_cb">price</label>
</li>
<li>
<input type="checkbox" id="rating_cb" value="rating" name="" checked />
<label for="rating_cb">rating</label>
</li>
<li>
<input type="checkbox" id="reviews_cb" value="reviews" name="" checked />
<label for="reviews_cb">reviews</label>
</li>
<li>
<input type="checkbox" id="url_cb" value="url" name="" checked />
<label for="url_cb">url</label>
</li>
<li>
<input type="checkbox" id="image_cb" value="image" name="" checked />
<label for="image_cb">image</label>
</li>
</ul>
</div>
<button class="bbtn" id="copyCsvBtn">Копировать CSV</button>
<button class="bbtn" id="exportCsvBtn">Экспорт CSV</button>
</div>
</div>
<div id="tableOfChangesBlock" hidden>
<div style="display:flex;gap:12px;align-items:center;">
<h2>Таблица изменений</h2>
<a href="#bottomTableOfChanges" style="font-size:24px;">↧</a>
<button class="bbtn" id="clearTableOfChanges">Очистить</button>
<b id="changesCountTxt"></b>
<b id="changesDiffCountTxt" style="color:green;"></b>
</div>
<table id="tableOfChanges">
</table>
<div id="bottomTableOfChanges"></div>
<a href="#actionBlock" style="font-size:24px;">↥</a>
<br>
</div>
<br>
<table id="reportTable" hidden>
</table>
<div id="bottomReportTable"></div>
<div id="imageDisplay">
<img id="imageDisplayImg" src="" alt="">
</div>
<a href="#actionBlock" style="font-size:24px;">↥</a>
<script src="report.js"></script>
</body>
</html>