-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
303 lines (246 loc) · 14.9 KB
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" ><!-- http-equiv="Content-Type" content="text/html; charset=UTF-8">-->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./index_files/style.css">
<link type="text/css" rel="stylesheet" href="./index_files/banner-styles.css">
<!--Google jquery CDN-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="./index_files/modal.js"></script>
<script type="text/javascript" src="./index_files/primaryjs.js"></script>
<script type="text/javascript" src="./randomJS/node_modules/randomorg-js/dist/randomorg-js.js"></script>
<script>
function randomnumberlength(){
var randomJs = new RandomJs();
var result = randomJs
.apikey('96f04c28-ee5d-446e-a763-e1c1f3c867a9')
.method('generateIntegers')
.params({n:1,min:1,max:1250}) //Need to create two for the two dimensions?//
.post(function(xhr, stream, body) {
//in browser:
//first argument is xhr object
//second argument is null
//in node:
//first argument is error object or null
//second argument is stream
console.log('==START==')
console.log('==xhr==')
console.log(xhr)
console.log('==stream==')
console.log(stream)
console.log('==body==')
console.log(body)
console.log('==END==')
randone = (JSON.parse(xhr.responseText).result.random.data[0])
});
}
</script>
<script>
function randomnumberheight(){
var randomJsTwo = new RandomJs();
var result = randomJsTwo
.apikey('96f04c28-ee5d-446e-a763-e1c1f3c867a9')
.method('generateIntegers')
.params({n:1,min:1,max:800}) //Need to create two for the two dimensions?//
.post(function(xhr, stream, body) {
//in browser:
//first argument is xhr object
//second argument is null
//in node:
//first argument is error object or null
//second argument is stream
console.log('==START==')
console.log('==xhr==')
console.log(xhr)
console.log('==stream==')
console.log(stream)
console.log('==body==')
console.log(body)
console.log('==END==')
randtwo = (JSON.parse(xhr.responseText).result.random.data[0])
});
}
</script>
<script> //move this to .js file for clickash only in the future//
document.onmousemove = mouseinfo;
function mouseinfo(event) {
var coordstart = (document.body.getBoundingClientRect().width)/2; //Changes where the search area starts for ad block. OffsetWidth supposedly display width of an area//
if ($carry == false){ //boolean found in modal.js
$xxx = event.pageX;
$yyy = event.pageY;
}
document.getElementById('mousedisplay').style.left=$xxx + 10; //Changes mouse hover display box start////
document.getElementById('mousedisplay').style.top=$yyy + 18; //Changes mouse hover display box start////
if (((coordstart % 1) * 10) < 5) {
x = Math.ceil(($xxx - coordstart + 625)) + 1;
}
else {
x = Math.floor(($xxx - coordstart + 625)) + 1;
}
y = Math.ceil(($yyy - headerHeight)); //Changes search height for ad board//
if ((y <= 0) || (y > 800) || (x <= 0) || (x > 1250)){
document.getElementById('mousedisplay').style.display = "none";
}
else {
document.getElementById('mousedisplay').style.display = "";
if ((y > 0) && (y <= 400) && (x > 0) && (x <= 625) && (document.cookie.indexOf("CONFIRMATION") > -1)){
document.getElementById('displayimage').innerHTML = '<img src="./index_files/Facebook.png" width="30" height="30">';
}
if ((y > 0) && (y <= 400) && (x > 625) && (x < 1250) && (document.cookie.indexOf("CONFIRMATION") > -1)){
document.getElementById('displayimage').innerHTML = '<img src="./index_files/Google.jpg" width="30" height="30">';
}
if ((y > 400) && (y < 800) && (x > 0) && (x <=625) && (document.cookie.indexOf("CONFIRMATION") > -1)){
document.getElementById('displayimage').innerHTML = '<img src="./index_files/Amazon.jpg" width="30" height="30">';
}
if ((y > 400) && (y < 800) && (x > 625) && (x < 1250) && (document.cookie.indexOf("CONFIRMATION") > -1)){
document.getElementById('displayimage').innerHTML = '<img src="./index_files/Apple.png" width="30" height="30">';
}
document.getElementById('displaytitle').innerHTML = " " + sponsortitle + " ";
document.getElementById('xylocation').innerHTML = "(" + x + "," + y + ")";
}
}
</script>
<title>Clixel</title>
<meta name="keywords" content="clixel, million, dollar, pixels, pixel, jason eaton, jason, eaton, kenny jabon, kenny, jabon, entrepreneur, student, loans, advertising, ad, links">
<meta name="description" content="Selling ad space and giving away cash in the process.">
</head>
<!-- for server-->
<div id="overlay" class="animated fadeIn">
<center>
<br/><br/><br/><br/><br/><br/><br/>
By clicking <input type="button" id="confirmation" style="border-radius: 8px" value="HERE"/>
you acknowledge that this website is a work in progress<br/>
and you can NOT win any money at this time.</br>
<br/>
All copyrighted material on this website is for example purposes only; <br/>
it does not reflect actual sponsorship or support of this site.
</center>
</div>
<!-- Creates the mouse popup on the sponsor page -->
<div id="mousedisplay" style="position: absolute; z-index: 99; border: 1px solid rgb(0, 0, 0); display: none; background: rgb(255, 255, 255);">
<!-- Leaves hover box coordinates visible after opening the modal -->
<span id="displayimage"></span><span id="displaytitle"></span><span id="xylocation"></span>
</div>
<center>
<header class="w3-grayscale-min">
<!-- Creates the banner at the top -->
<div id="toplogo">
<!-- I used #646464 for the banner boundground grey and roboto as the font-->
<a><img src="./index_files/clixel_current_prize.PNG" border="0" width="580" height="44" alt="Clixel" style="position:absolute; LEFT: 0; TOP: 0px; z-index: 1;"></a>
<!--<font size="6" color="white" style="position:absolute; LEFT: 410; TOP: 0px; z-index: 1;">$1731.87</font>-->
<!-- Login buttons -->
<button class="loginBtn loginBtn--facebook" style="Left:170px">
Login with Facebook
</button>
<button class="loginBtn loginBtn--google" style="Left:170px">
Login with Google
</button>
<!-- "New to Clixel? Click here!" button-->
<div class="w3-display-right w3-text-white" style="padding:30px; z-index: 1">
<p><a href="./info/index.html"target="_blank" class="w3-button w3-light-grey w3-padding-small w3-large w3-hover-opacity-off" style="position:relative; TOP:6px; LEFT:25px; z-index:1;">New to Clixel? Click here!</a></p>
</div>
</div>
</header>
<!-- Pixel layout -->
<div id="pixels" style="z-index:1">
<map id="Map" name="Map">
<area onmouseover="sponsor(this)" type="button" class="btn btn-primary video-btn" data-toggle="modal" data-src="https://www.youtube.com/embed/Lb4IcGF5iTQ" data-target="#myModal" shape="rect" coords="0,0,625,400" title="Facebook">
<img class=sponsorimage hidden="hidden" src="./index_files/Facebook.png" style="position:absolute; TOP:0; LEFT:0;" width="625" height="400">
<area onmouseover="sponsor(this)" type="button" class="btn btn-primary video-btn" data-toggle="modal" data-src="https://www.youtube.com/embed/oT6Xd5QsBOE" data-target="#myModal" shape="rect" coords="625,0,1250,400" title="Google">
<img class=sponsorimage hidden="hidden" src="./index_files/Google.jpg" style="position:absolute; TOP:0; LEFT:625px;" width="625" height="400">
<area onmouseover="sponsor(this)" type="button" class="btn btn-primary video-btn" data-toggle="modal" data-src="https://www.youtube.com/embed/J6-8DQALGt4" data-target="#myModal" shape="rect" coords="0,400,625,800" title="Amazon">
<img class=sponsorimage hidden="hidden" src="./index_files/Amazon.jpg" style="position:absolute; TOP:400px; LEFT:0;" width="625" height="400">
<area onmouseover="sponsor(this)" type="button" class="btn btn-primary video-btn" data-toggle="modal" data-src="https://www.youtube.com/embed/8rwsuXHA7RA" data-target="#myModal" shape="rect" coords="625,400,1250,800" title="Apple">
<img class=sponsorimage hidden="hidden" src="./index_files/Apple.png" style="position:absolute; TOP:400px; LEFT:625px;" width="625" height="400">
<img id=sponsorMap usemap="Map" hidden="hidden" style="position:absolute; TOP:0; LEFT:0;" width="1250" height="800">
</map>
<!-- Board overlay image -->
<img id=pixelbackgroundimage src="./index_files/adboard_money.jpeg" width="1250" height="800" border="0" usemap="#Map" style="position: absolute; top: 0px; left: 0px; border: none; visibility: visible;">
</center> <!--End of page content -->
<center>
<table>
<!-- Copyright bar at bottom -->
<tr><td id="copyright" height="18" width=1250px>Established by Jason Eaton and Kenneth Jabon. This website is a work in progress; prizes are not being awarded. All copyrighted material on this website is for example purposes only; it does not reflect actual sponsorship or support of this site.</td></tr> <!--Clixel © 2018 Jason Eaton and Kenneth Jabon. All rights reserved. We are not responsible for the content of linked advertisements. All sponsor content is © of the respective owner(s).-->
</table>
<button class="hiddenbutton" onclick="toggleSponsorImages()"> [][][][] </button>
</center>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<!-- Modal exit button -->
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="" id="video" allowscriptaccess="always">></iframe>
</div>
<!-- 'Winner?' button -->
<button type="button" id="maybewinner" onclick="randomCompare()">Discover if you've won in 8</button>
<!-- 'Winner' example button -->
<button type="button" id="winnerexample" onclick="winnerexample()">'Winner' example</button>
<!-- Winner button -->
<button type="button" id="winner" hidden="hidden" class="winnerFunction">Congratulations, you've won! Click here!</button>
</div>
</div>
</div>
</div>
<!-- Winning Modal -->
<div class="modal fade" id="winningModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-body">
<!-- Modal exit button -->
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<div class="winningtitle">
<h2>Choose One</h2>
</div>
<div class="winningmodal"></div>
<!-- Left side of winning modal -->
<div class="split left">
<h3>10% of Total Reward <br>($<script type="text/javascript"> document.write(tenpercentwithcommas)</script>)</h3>
<button type="button" id="10percent" style="margin-top:20px" z-index=1 onclick="fractionfunction()">I choose $<script type="text/javascript"> document.write(tenpercentwithcommas)</script>!</button>
</div>
<div class="split middle">
</div>
<!-- Right side of winning modal -->
<div class="split right">
<h3>1 in 20 Chance of Total Reward ($<script type="text/javascript"> document.write(totalwithcommas)</script>)</h3>
<button type="button" id="10percent" value="1" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">1</button>
<button type="button" id="10percent" value="2" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">2</button>
<button type="button" id="10percent" value="3" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">3</button>
<button type="button" id="10percent" value="4" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">4</button>
<button type="button" id="10percent" value="5" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">5</button>
<button type="button" id="10percent" value="6" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">6</button>
<button type="button" id="10percent" value="7" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">7</button>
<button type="button" id="10percent" value="8" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">8</button>
<button type="button" id="10percent" value="9" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">9</button>
<button type="button" id="10percent" value="10" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">10</button>
<button type="button" id="10percent" value="11" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">11</button>
</br>
<button type="button" id="10percent" value="12" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">12</button>
<button type="button" id="10percent" value="13" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">13</button>
<button type="button" id="10percent" value="14" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">14</button>
<button type="button" id="10percent" value="15" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">15</button>
<button type="button" id="10percent" value="16" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">16</button>
<button type="button" id="10percent" value="17" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">17</button>
<button type="button" id="10percent" value="18" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">18</button>
<button type="button" id="10percent" value="19" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">19</button>
<button type="button" id="10percent" value="20" style="margin-top:20px" z-index=1 onclick="oneintwenty(this.value)">20</button>
</div>
</div>
</div>
</div>
</div>