-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.html
67 lines (55 loc) · 1.49 KB
/
test.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
<!DOCTYPE HTML>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width'>
<script>
'use strict';
function handleLoad()
{
setTimeout(loadScript);
}
function loadScript()
{
var script = document.createElement('SCRIPT');
script.onload =
function ()
{
if (window.$)
{
var version = $.fn.jquery;
statusBlock.className = 'success';
statusBlock.textContent = 'jQuery Screwed ' + version + ' was loaded correctly.';
}
else
{
statusBlock.className = 'failed';
statusBlock.textContent = 'jQuery Screwed was not loaded correctly.';
}
};
script.src = 'jquery-3.7.1.screwed.js';
document.querySelector('head').appendChild(script);
}
addEventListener('load', handleLoad);
</script>
<style>
#statusBlock
{
border: thin solid black;
border-radius: .125em;
color: black;
display: inline-block;
font-weight: bold;
padding: 1em;
}
.failed { background: #ff7f7f; }
.pending { background: #bfbfbf; }
.success { background: #7fff7f; }
a { text-decoration: none; }
body { font: 24px sans-serif; text-align: center; }
</style>
<title>jQuery Screwed Test Page</title>
<p>This page tests your browser’s ability to load <a
href='https://github.com/fasttime/jquery-screwed'>jQuery Screwed</a>.</p>
<div class='pending' id='statusBlock'>Trying to load jQuery Screwed…</div>