-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathdelayed.html
47 lines (43 loc) · 1.1 KB
/
delayed.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
<meta charset="UTF-8">
<meta content="width=device-width,initial-scale=1" name="viewport"/>
<script>
UPLOADCARE_PUBLIC_KEY = "demopublickey";
UPLOADCARE_TABS = "default huddle";
UPLOADCARE_DEBUG_UPLOADS = true;
</script>
<script src="./uploadcare.full.js"></script>
<script>
$ = uploadcare.jQuery;
jQuery = uploadcare.jQuery;
</script>
<script>
UPLOADCARE_MANUAL_START = true;
UPLOADCARE_PUBLIC_KEY = "";
$(function($) {
var countdown = 3;
var counter = $("#countdown").html(countdown);
var tick = function() {
countdown--;
if (countdown > 0) {
counter.html(countdown);
setTimeout(tick, 1000);
} else {
counter.remove();
uploadcare.start({
publicKey: "demopublickey",
localeTranslations: { ready: "BANG!" }
});
}
};
setTimeout(tick, 1000);
});
</script>
<div id="countdown" style="font-size: 60px;"></div>
<div class="hidden">
<input type="hidden" role="uploadcare-uploader" />
<input
type="hidden"
role="uploadcare-uploader"
value="cdd5795a-ae83-49ea-9b2e-e9c6999f3421"
/>
</div>