-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit-test.html
39 lines (39 loc) · 1.07 KB
/
unit-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
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/PsychoGoldfishNG/newgrounds.io-for-javascript-html5@8772ef4/bin/newgroundsio.min.js"></script>
<script src="unit-test.js"></script>
<style>
body {
width: 100%;
}
#login_prompt {
position: absolute;
background-color: #ff0;
width: 50%;
padding: 20px;
border: 2px solid black;
left: 25%;
top:8%;
text-align: center;
}
#log_out {
position: absolute;
top: 4px;
right: 4px;
}
</style>
</head>
<body>
<div id="login_prompt">
<a href="#" target="_blank" id="login_link">LOG IN TO CONTINUE!</a>
<p>Waiting for login... <a href="#" id="cancel_link">[Cancel]</a></p>
</div>
<button id="log_out">Log Out</button>
<h1>Newgrounds.io Unit Test</h1>
<hr/>
<p>Simple Tests:</p>
<textarea style="width: 100%; height: 50%" id="output_text"></textarea>
<button id="testLoadNewgrounds">Click here to test Loader.loadNewgrounds as a redirect!</button>
</body>
</html>