-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
547 lines (515 loc) · 20.8 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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Creative Review for MoPub</title>
<link rel="stylesheet" type="text/css" href="css/semantic.css">
<link rel="stylesheet" type="text/css" href="css/calendar.min.css">
<link rel="stylesheet" type="text/css" href="css/popup.css">
<link rel="stylesheet" type="text/css" href="css/tagify.css">
</head>
<body id="main_body">
<!-- Menu -->
<div class="ui tiny inverted black menu no-radius">
<a class="header item" href="">
<h4 style="margin-bottom: 0px;">Creative Review for MoPub</h4>
<div class="mopub-logo-menu"></div>
</a>
<div class="right menu">
<a class="item">
<i class="user circle large icon login-icon"></i>
<span id="logged-in-account" class="logged-in-account"></span>
</a>
</div>
</div>
<div class="ui container" style="width: 95%;">
<!-- Notification -->
<div class="ui small message notification" style="display: none;">
<i class="close icon"></i>
<div class="header"></div>
<p class="content"></p>
</div>
<!-- Grid -->
<div class="ui grid">
<div class="row" style="padding-bottom: 0px;">
<div class="sixteen wide column">
<div class="save-settings-btn">Save Settings</div>
</div>
</div>
<div class="row" style="padding-top: 0px;">
<div class="ui inverted dimmer init-loader active">
<div class="ui text loader">Loading..</div>
</div>
<div class="eight wide column">
<form class="ui small form ad-form">
<h4 class="ui dividing blue header">Select Source</h4>
<div class="required field">
<label>Fetch Creatives from</label>
<div class="ui selection fetch-source-dropdown dropdown">
<input type="hidden" name="fetch_source">
<i class="dropdown icon"></i>
<div class="default text">Select</div>
<div class="menu">
<div class="item" data-value="file_upload">Upload a File</div>
<div class="item" data-value="single_creative">Single Creative</div>
<div class="item" data-value="mpx_line_item">Marketplace Line Item</div>
<div class="item" data-value="mpx_tab">Marketplace Tab</div>
<div class="item disabled" data-value="ad_unit">Ad Unit (Not supported)</div>
</div>
</div>
</div>
<div class="required field field-upload-file fetch-source" style="display: none;">
<div class="ui info message">
<p> The file should include <b>Creative ID + Bidder ID</b> column or <b>Creative ID</b> AND <b>Bidder Name</b> in the title row. Column names are case sensitive.
</div>
<label>Upload CSV file</label>
<input type="file" id="upload-file" accept=".csv" name="uploaded_file">
</div>
<div class="required field fetch-calendar-field fetch-source" style="display: none;">
<label>Choose Date</label>
<div class="ui calendar">
<div class="ui input left icon">
<i class="calendar icon"></i>
<input type="text" placeholder="Date">
</div>
</div>
</div>
<div class="fields crt-bid-id-field fetch-source" style="display: none;">
<div class="required six wide field field-creative-id">
<label>Creative Id</label>
<input type="text" name="creative_id" placeholder="">
</div>
<div class="required ten wide field field-bidder-id">
<label>Bidder (DSP)</label>
<div class="ui fluid search selection dropdown bidder-list">
<input type="hidden" name="bidder_id">
<i class="dropdown icon"></i>
<div class="default text">Select Bidder(DSP)</div>
<div class="menu"></div>
</div>
</div>
</div>
<div class="required field field-mpx-line-item fetch-source" style="display: none;">
<label>Marketplace Line Item Id</label>
<input type="text" name="mpx_line_item_id" placeholder="">
</div>
<div class="required field field-ad-unit fetch-source" style="display: none;">
<label>Ad Unit Id</label>
<input type="text" name="adunit_id" placeholder="">
</div>
<h4 class="ui dividing blue header">Creative Filter</h4>
<div class="field">
<label>Creative Format (Leave blank for all formats)</label>
<select multiple="" class="ui dropdown creative-format-dropdown">
<option value="">All formats (default)</option>
<option value="banner">Banner (320x50 only)</option>
<option value="html">HTML (Including MRAID, Other banner sizes)</option>
<option value="vast">VAST</option>
<option value="native">Native</option>
</select>
</div>
<div class="field">
<label>Adomain (Case insensitive)</label>
<input id="adomain" type="text" placeholder="Enter Adomains" name="adomain">
</div>
<div class="field">
<label>Bidder (DSP)</label>
<div class="ui fluid multiple search selection dropdown bidder-list-filter">
<input type="hidden">
<i class="dropdown icon"></i>
<div class="default text">Select Bidder(DSP)</div>
<div class="menu"></div>
</div>
</div>
<div class="ui button ad-submit mopub-button-color mopub-button-radius disabled" id="ad-load-btn">Load</div>
<span class="api-status"></span>
</form>
</div> <!-- Column Ends -->
<div class="eight wide column">
<div class="row">
<h4 class="ui dividing blue header">Settings</h4>
<form class="ui equal width small form ad-form-options">
<div class="fields">
<div class="field">
<label>Image Quality</label>
<div class="ui selection img-quality-dropdown dropdown">
<input type="hidden" name="img_quality">
<i class="dropdown icon"></i>
<div class="default text"></div>
<div class="menu">
<div class="item" data-value="10">10</div>
<div class="item" data-value="20">20</div>
<div class="item" data-value="30">30 (default)</div>
<div class="item" data-value="40">40</div>
<div class="item" data-value="50">50</div>
<div class="item" data-value="60">60</div>
<div class="item" data-value="70">70</div>
<div class="item" data-value="80">80</div>
<div class="item" data-value="90">90</div>
<div class="item" data-value="100">100</div>
</div>
</div>
</div>
<div class="field">
<label>Rendering Delay</label>
<div class="ui selection render-delay-dropdown dropdown">
<input type="hidden" name="render_delay">
<i class="dropdown icon"></i>
<div class="default text"></div>
<div class="menu">
<div class="item" data-value="3000">3s</div>
<div class="item" data-value="5000">5s (default)</div>
<div class="item" data-value="7000">7s</div>
<div class="item" data-value="10000">10s</div>
</div>
</div>
</div>
<div class="field">
<label>Video Skip Offset</label>
<div class="ui selection skip-offset-dropdown dropdown">
<input type="hidden" name="skip_offset">
<i class="dropdown icon"></i>
<div class="default text"></div>
<div class="menu">
<div class="item" data-value="30">30%</div>
<div class="item" data-value="50">50% (default)</div>
<div class="item" data-value="70">70%</div>
</div>
</div>
</div>
</div>
<div class="fields">
<div class="field">
<label>Server Mode</label>
<div class="ui selection server-mode-dropdown dropdown">
<input type="hidden" name="server_mode">
<i class="dropdown icon"></i>
<div class="default text"></div>
<div class="menu">
<div class="item" data-value="localhost">Localhost</div>
<div class="item disabled" data-value="rickyserver">Ricky Server (Slow)</div>
</div>
</div>
</div>
<div class="field">
<label>Port</label>
<input type="text" class="port-number" name="port_num">
</div>
<div class="field">
<label>Parallel Processing</label>
<div class="ui selection domain-sharding-dropdown dropdown">
<input type="hidden" name="domain_sharding">
<i class="dropdown icon"></i>
<div class="default text"></div>
<div class="menu">
<div class="item" data-value="1">6 creatives</div>
<div class="item" data-value="2">12 creatives</div>
<div class="item" data-value="3">18 creatives</div>
<div class="item" data-value="4">24 creatives (default)</div>
<div class="item" data-value="5">30 creatives</div>
<div class="item" data-value="6">36 creatives</div>
<div class="item" data-value="7">42 creatives</div>
<div class="item" data-value="8">48 creatives</div>
<div class="item" data-value="9">54 creatives</div>
<div class="item" data-value="10">60 creatives</div>
<div class="item" data-value="11">66 creatives</div>
<div class="item" data-value="12">72 creatives</div>
<div class="item" data-value="13">78 creatives</div>
<div class="item" data-value="14">84 creatives</div>
<div class="item" data-value="15">90 creatives</div>
<div class="item" data-value="16">96 creatives</div>
</div>
</div>
</div>
</div>
</form>
</div> <!-- End or row -->
<div class="row">
<h4 class="ui dividing blue header">Status</h4>
<div class="ui small segment">
<div class="row">
<div class="ui small three statistics">
<div class="statistic blue">
<div id="number_of_creatives_stat" class="value">0</div>
<div class="label">Creatives Total</div>
</div>
<div class="statistic green">
<div id="number_of_crt_loaded_stat" class="value">0</div>
<div class="label">Success</div>
</div>
<div class="statistic red">
<div id="number_of_crt_failed_stat" class="value">0</div>
<div class="label">Failed</div>
</div>
</div>
</div>
<div class="ui hidden divider" style="margin-top: 0.5em; margin-bottom: 0.5em;"></div>
<div class="row">
<div class="ui blue small progress screenshot-progress-bar">
<div class="bar">
<div class="progress"></div>
</div>
<div class="label"></div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- Row end -->
</div> <!-- Grid end -->
</div> <!-- container -->
<div class="ui divider"></div>
<div class="ui container" style="width: 95%;">
<div class="ui mopub-button-color mopub-button-radius download-all-btn button small disabled">Download All</div>
<div class="ui top attached tabular menu tab-menu">
<a class="item active" data-tab="banner">
<span>Banner</span>
<span id="number_of_crt_banner" class="crt-num-tab"></span>
</a>
<a class="item" data-tab="html">
<span>HTML</span>
<span id="number_of_crt_html" class="crt-num-tab"></span>
</a>
<a class="item" data-tab="vast">
<span>VAST</span>
<span id="number_of_crt_vast" class="crt-num-tab"></span>
</a>
<a class="item" data-tab="native">
<span>Native</span>
<span id="number_of_crt_native" class="crt-num-tab"></span>
</a>
<a class="item" data-tab="failed">
<span>Failed</span>
<span id="number_of_crt_failed" class="crt-num-tab"></span>
</a>
</div>
<div class="ui bottom attached tab segment active" data-tab="banner">
<div class="ui cards banner-cards"></div>
</div>
<div class="ui bottom attached tab segment" data-tab="html">
<div class="ui cards html-cards"></div>
</div>
<div class="ui bottom attached tab segment" data-tab="vast">
<div class="ui cards vast-cards"></div>
</div>
<div class="ui bottom attached tab segment" data-tab="native">
<div class="ui cards native-cards"></div>
</div>
<div class="ui bottom attached tab segment" data-tab="failed">
<div class="ui cards failed-cards"></div>
</div>
</div>
<!-- Modal Non Video -->
<div class="ui modal non-video">
<div class="header">
<span class="modal-crt-type"></span>
</div>
<div class="scrolling content">
<div class="ui grid">
<div class="row">
<img src="" class="ui centered bordered image modal-crt-img">
</div>
<div class="row">
<div class="nine wide column">
<div class="ui divided selection list">
<a class="item">
<p>Creative Infomation</p>
</a>
<a class="item">
<div class="ui horizontal label">Bidder Name</div>
<span class="modal-crt-bidder-name"></span>
</a>
<a class="item">
<div class="ui horizontal label">Bidder Id</div>
<span class="modal-crt-bidder-id"></span>
</a>
<a class="item">
<div class="ui horizontal label">Creative Id</div>
<span class="modal-crt-id"></span>
</a>
<a class="item">
<div class="ui horizontal label">Adomain</div>
<span class="modal-crt-adomain"></span>
</a>
<a class="item">
<div class="ui horizontal label">Size</div>
<span class="modal-crt-size"></span>
</a>
</div>
</div>
<div class="seven wide column">
<div class="ui divided selection list">
<a class="item">
<p>Only available when fetched from MPX tab or line item</p>
</a>
<a class="item">
<div class="ui horizontal label">Impression</div>
<span class="modal-crt-imp"></span>
</a>
<a class="item">
<div class="ui horizontal label">Click</div>
<span class="modal-crt-click"></span>
</a>
<a class="item">
<div class="ui horizontal label">Revenue</div>
<span class="modal-crt-rev"></span>
</a>
</div>
</div>
</div>
<div class="one column row">
<div class="column">
<div class="ui form">
<div class="field">
<label>Markup</label>
<textarea class="modal-crt-markup"></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="actions">
<div class="ui red block mopub-button-radius button left floated basic">Block across all apps</div>
<div class="ui button left floated block-status-btn"></div>
<div class="ui blue basic mopub-button-radius button download-mopub-btn" data-tooltip="Download with Container">Download</div>
<div class="ui blue basic mopub-button-radius button preview-mopub-btn" data-tooltip="MoPub Internal Only">Preview in MoPub</div>
<div class="ui mopub-button-color mopub-button-radius approve button">Close</div>
</div>
</div>
<!-- Modal Video -->
<div class="ui modal video">
<div class="header">
<span class="video-modal-crt-type"></span>
</div>
<div class="scrolling content">
<div class="ui grid">
<div class="row">
<div class="seven wide column">
<img src="img/fail.png" class="ui right floated bordered image video-modal-crt-img">
</div>
<div class="two wide column"></div>
<div class="seven wide column">
<div id="vast-video-container">
<video id="vast-video-element" width="320" height="480" controls></video>
<div id="vast-ad-container"></div>
</div>
<div class="ui icon small basic buttons vast-player-btns" style="margin-top: 0.8rem;">
<button class="ui play button">
<i class="play icon"></i>
</button>
<button class="ui pause button">
<i class="pause icon"></i>
</button>
<button class="ui stop button">
<i class="stop icon"></i>
</button>
<button class="ui mute button">
<i class="volume up icon"></i>
</button>
</div>
<span class="modal-video-load-msg" style="margin-left: 5px;"></span>
<div class="ui message video-notification" style="display: none;">
<i class="close icon"></i>
<span class="content"></span>
</div>
</div>
</div>
<div class="row">
<div class="nine wide column">
<div class="ui divided selection list">
<a class="item">
<p>Creative Infomation</p>
</a>
<a class="item">
<div class="ui horizontal label">Bidder Name</div>
<span class="video-modal-crt-bidder-name"></span>
</a>
<a class="item">
<div class="ui horizontal label">Bidder Id</div>
<span class="video-modal-crt-bidder-id"></span>
</a>
<a class="item">
<div class="ui horizontal label">Creative Id</div>
<span class="video-modal-crt-id"></span>
</a>
<a class="item">
<div class="ui horizontal label">Adomain</div>
<span class="video-modal-crt-adomain"></span>
</a>
<a class="item">
<div class="ui horizontal label">Size</div>
<span class="video-modal-crt-size"></span>
</a>
</div>
</div>
<div class="seven wide column">
<div class="ui divided selection list">
<a class="item">
<p>Only available when fetched from MPX tab or line item</p>
</a>
<a class="item">
<div class="ui horizontal label">Impression</div>
<span class="video-modal-crt-imp"></span>
</a>
<a class="item">
<div class="ui horizontal label">Click</div>
<span class="video-modal-crt-click"></span>
</a>
<a class="item">
<div class="ui horizontal label">Revenue</div>
<span class="video-modal-crt-rev"></span>
</a>
</div>
</div>
</div>
<div class="one column row">
<div class="column">
<div class="ui form">
<div class="field">
<label>Markup</label>
<textarea class="video-modal-crt-markup"></textarea>
</div>
</div>
</div>
</div>
</div>
</div> <!-- Scroll content end -->
<div class="actions">
<div class="ui red block mopub-button-radius button left floated basic">Block across all apps</div>
<div class="ui button left floated block-status-btn"></div>
<div class="ui blue basic mopub-button-radius button download-mopub-btn">Download</div>
<div class="ui blue basic mopub-button-radius button preview-mopub-btn" data-tooltip="MoPub Internal Only">Preview in MoPub</div>
<div class="ui mopub-button-color mopub-button-radius approve button">Close</div>
</div>
</div>
<script type="text/javascript" src="lib/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="lib/semantic.min.js"></script>
<script type="text/javascript" src="lib/lodash.js"></script>
<script type="text/javascript" src="lib/calendar.min.js"></script>
<script type="text/javascript" src="lib/http.js"></script>
<script type="text/javascript" src="lib/papaparse.min.js"></script>
<script type="text/javascript" src="lib/tagify.js"></script>
<script type="text/javascript" src="https://imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/helpers.js"></script>
<script type="text/javascript" src="js/bidderManager.js"></script>
<script type="text/javascript" src="js/domainManager.js"></script>
<script type="text/javascript" src="js/statManager.js"></script>
<script type="text/javascript" src="js/vastContainer.js"></script>
<script type="text/javascript" src="js/mraidContainer.js"></script>
<script type="text/javascript" src="js/vastPlayer.js"></script>
<script type="text/javascript" src="js/class/Creative.js"></script>
<script type="text/javascript" src="js/notifyManager.js"></script>
<script type="text/javascript" src="js/htmlFactory.js"></script>
<script type="text/javascript" src="js/formValidator.js"></script>
<script type="text/javascript" src="js/serverManager.js"></script>
<script type="text/javascript" src="js/cardRender.js"></script>
<script type="text/javascript" src="js/csvManager.js"></script>
<script type="text/javascript" src="js/accountManager.js"></script>
<script type="text/javascript" src="js/creativeBlocker.js"></script>
<script type="text/javascript" src="js/moPubAPI.js"></script>
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/javascript" src="js/popupEvents.js"></script>
</body>
</html>