-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathintro.html
150 lines (140 loc) · 6.02 KB
/
intro.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
<!-- This is a wide open CSP declaration. To lock this down for production, see below. -->
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" />
<!-- Good default declaration:
* gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
* https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
* Disables use of eval() and inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
* Enable inline JS: add 'unsafe-inline' to default-src
* Enable eval(): add 'unsafe-eval' to default-src
* Create your own at http://cspisawesome.com
-->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-inline' https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *" /> -->
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/bars.css" />
<link rel="stylesheet" href="./css/css/fontawesome-all.css" />
<link rel="manifest" href="./manifest.json">
<!-- <link rel="stylesheet" type="text/css" href="progress/progress.css" /> -->
<title>Eazy-T: Intro</title>
<!-- <meta name="viewport" content="width=device-width" /> -->
<!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -->
</head>
<body id="main" onload="main()">
<script>
//Main function that is called ASAP
function main() {
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', {
scope: '/torn/eazy-t/'
}).then(function(reg) {
console.log("Service worker registered")
}).catch(function(err) {
console.log(err);
});
}
if("apiKey" in localStorage){
window.location="index.html";
var refreshrate = 500000;
localStorage.setItem("refreshrate", refreshrate);
}
else {
alertify.error("API key not found!");
var refreshrate = 500000;
localStorage.setItem("refreshrate", refreshrate);
alertify.success("Set default refresh rate");
//alert("Welcome to Eazy-T. An API key has not been set. Please Continue...");
//var apiKey = prompt("Please enter your API Key:", "");
//localStorage.setItem("apiKey", apiKey);
//alert("Reloading the app & performing first time setup!");
//reloadApp();
}
}//END
//Reloads the current window. Eazy
function reloadApp(){window.location.reload()}
function hasAccount(){
window.location="hasAccount.html";
}
</script>
<table border="0" cellpadding="0" cellspacing="0" class="body">
<tr>
<td> </td>
<td class="container">
<div class="content">
<!-- START CENTERED WHITE CONTAINER -->
<table class="main">
<!-- START MAIN CONTENT AREA -->
<tr>
<td class="wrapper">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="#"><h1 id="playername">Eazy-T</h1></a>
<h3>Welcome!</h3>
<b><p>To properly use this app & all of it's features you must register at <a href="https://torn.com">torn.com</a> for your free account.</p></b>
<br>
<table class="btn btn-primary">
<tbody>
<tr>
<td>
<center><table border="0" cellpadding="0" cellspacing="15">
<tbody>
<tr>
<td> <a onclick="hasAccount()"><i class="fas fa-sign-in-alt"> Login w/ API</i></a> </td>
<td> <a target="_blank" href="https://www.torn.com"><i class="fas fa-user-plus"> Register @ torn.com</i></a> </td>
</tr>
</tbody>
</table></center>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block">
<!-- <span class="apple-link">Settings: </span> -->
<!-- <button onclick="goHome()">Home</button> -->
<!-- <button onclick="reloadApp()">Refresh</button> -->
</td>
</tr>
<tr>
<td class="content-block powered-by">
Created by: <a href="https://www.torn.com/profiles.php?XID=1947498">LunarControl</a>
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td> </td>
</tr>
</table>
<script src="//unpkg.com/hammer-touchemulator@0.0.2/touch-emulator.js"></script>
<script>//TouchEmulator()</script>
<script type="text/javascript" src="js/pulltorefresh-js-0.1.14/dist/pulltorefresh.js"></script>
<script src="js/alertify.js"></script>
<script>
/* global PullToRefresh */
PullToRefresh.init({
mainElement: '#main',
onRefresh: function() { reloadApp(); }
});
</script>
</body>
</html>