-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathtest.html
More file actions
829 lines (676 loc) · 27.6 KB
/
test.html
File metadata and controls
829 lines (676 loc) · 27.6 KB
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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- Chrissy Wake Up -->
<!-- unfurl goodness -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="ServiceNever is a help desk ticketing system. Designed by IT for IT.">
<meta name="author" content="Sysengineer">
<meta property="og:type" content="article" />
<meta property="og:url" content="https://sharepointlist.com/" />
<meta property="og:title" content="ServiceNever" />
<meta property="og:description" content="ServiceNever is a help desk ticketing system. Service No-, I mean Never, is just as useful as a SharePoint list. Designed by IT for IT." />
<meta property="og:image" content="https://sharepointlist.com/images/leLogo.png" />
<meta name="twitter:card" content="summary">
<meta name="twitter:domain" value="https://sharepointlist.com/" />
<meta name="twitter:title" value="ServiceNever" />
<meta name="twitter:description" value="ServiceNever is a help desk ticketing system. Service No-, I mean Never, is just as useful as a SharePoint list. Designed by IT for IT." />
<meta name="twitter:image" content="https://sharepointlist.com/images/leLogo.png" />
<meta name="twitter:url" value="https://sharepointlist.com/" />
<title>Service Never - Helpdesk Ticket System</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/webp" href="images/favicon.webp">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link rel="stylesheet" href="site.css">
<link rel="stylesheet" href="captcha.css">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6871418367983282"
crossorigin="anonymous"></script>
<script src="CAPTCHA.js"></script>
<script src="chat.js"></script>
<script src="phone.js"></script>
<link rel="stylesheet" href="chat.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<link rel="stylesheet" href="https://bootswatch.com/5/darkly/bootstrap.min.css" media="(prefers-color-scheme: no-preference), (prefers-color-scheme: light)">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EC3PK322B1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-EC3PK322B1');
</script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<style>
.selectt {
display: none;
}
#Progress_Status {
width: 50%;
background-color: #ddd;
}
#myprogressBar {
width: 2%;
height: 20px;
background-color: #4CAF50;
}
/* Text Entry CSS */
.ComplaintBox {
/* Add loaging wheel when user mouse hovers over text entry ComplaintBox */
cursor: wait;
/* Convert text in ComplaintBox to Rainbow */
background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
#text {display:none;color:red}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light navcontainer">
<div class="navcontainer text-center">
<a class="navlinks" href="https://sharepointlist.com/">
<img class="img-fluid" style="padding:10px;" src="images/banner.png" alt="ServiceNever" > </a>
</div>
</div>
</nav>
<!-- Navigation -->
<center>
<div class="navcontainer">
<a href="http://www.cornify.com" onclick="cornify_add();return false;" title="Cornify"><img src="https://www.cornify.com/assets/cornify-button.png" width="82" height="25" border="0" alt="Cornify" /></a><script type="text/javascript" src="https://www.cornify.com/js/cornify.js"></script>
<div class="dropdown navlinks">
<button class="dropbtn">Helpful Resources</button>
<div class="dropdown-content">
<a href="https://sharepointlist.com/" target="_blank">Submit a Ticket</a>
<a href="https://youtu.be/dQw4w9WgXcQ" target="_blank">Request New Computer</a>
<a href="https://downloadmoreram.com/" target="_blank">Download RAM</a>
<a href="#" onclick="toggleONOFF()">Restart my Computer</a>
<div id="OnOff" style="display: none;">
<img src="images/off-on.gif" height="300" alt="Have you tried turning it off & on?" />
</div>
<a class="navlinks" href="#" onclick="toggleMagicWordGif()">Log In</a>
<input type="button" name="answer" value="Download Virus" onclick="showDiv()" />
</div>
</div>
<div class="dropdown navlinks">
<button class="dropbtn" style="background-color:#FC8E17;">About</button>
<div class="dropdown-content">
<a href="https://github.com/sysengineer13/ServiceNever"" target="_blank">ServiceNever.Git</a>
<a href="https://sharepointlist.com/feedback.html" target="_blank">Submit Feedback</a>
<a href="https://discord.gg/RRQqWKDDeR" target="_blank">Discord</a>
<a href="https://www.sysengineer.dev/" target="_blank">Merch</a>
<a href = "mailto: info@sysengineer.dev">Send Email</a>
</div>
</div>
<a href="about.html" target="_blank" style="text-decoration:none;">About ServiceNever</a>
</div>
</center>
<!-- Navigation -->
<!-- Download Virus & Login GIF-->
<div class="container">
<div style="padding-top:20px;">
<div id="welcomeDiv" style="display:none;" class="answer_list">
<center>
<div id="Progress_Status">
<div id="myprogressBar"></div>
<a style="font-size:25px;" href="https://get.adobe.com/flashplayer/about">Click here for virus</a>
</div>
</center>
</div>
</div>
<div id="askNicely" style="display: none;">
<img src="images/jurrasic-park-samuel-l-jackson.gif" alt="You didn't say the magic word!" />
</div>
</div>
<!-- Download Virus & Login GIF-->
<div class="container">
<center>
<i><span id="insult"></span></i>
<p>The next phone tech will be available in:
<b><span id="demo"></span></b> <i>- Please use the online ticket form below.</i></p>
<!-- hitwebcounter Code START -->
<a href="https://www.hitwebcounter.com" target="_blank">
<img src="https://hitwebcounter.com/counter/counter.php?page=8023430&style=0027&nbdigits=5&type=page&initCount=7881" title="Free Counter" Alt="web counter" border="0" /></a> people have viewed this site to submit a ticket.
</center>
</div>
<!-- Submit a Ticket Form: Left Side -->
<div class="container" style="padding-right:25px;">
<div class="row ">
<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12">
<center>
<h1>Submit a Ticket</h1>
</center>
<label for="name">Name:</label>
<input type="text" title="Name:" id="name" name="name" placeholder="jef">
<div id="text" style="width:100%;height:0;padding-bottom:83%;position:relative;"><iframe src="https://giphy.com/embed/2oUfvvUgQHnLsQWFMW" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div>
<script>
var input = document.getElementById("name");
var text = document.getElementById("text");
input.addEventListener("keyup", function(event) {
if (event.getModifierState("CapsLock")) {
text.style.display = "block";
} else {
text.style.display = "none"
}
});
</script>
<br>
<br>
<label for="email">Email:</label>
<input type="text" title="Email:" id="email" name="email" placeholder="example@sharepointlist.com">
<br>
<br>
<label for="phone">Phone:</label>
<select class="short-number-ps"></select>
<select class="short-number-ps"></select>
<select class="long-number-ps"></select>
<br>
<br>
<label for="dept">Department:</label>
<select title="Department:" id="dept" name="dept">
<option value="unsure">Unsure</option>
<option value="it">IT</option>
<option value="marketing">Marketing</option>
<option value="sales">Sales</option>
<option value="hr">HR</option>
<option value="finance">Finance</option>
</select>
<br />
<br />
<label for="priority">Priority: </label>
<select title="Priority:" id="priority" name="priority">
<option value="die">Will die if not done ASAP</option>
<option value="idkbruh">IDK I'm going on lunch right now</option>
<option value="world">The world will end if not fixed immediately</option>
<option value="Lie">System Down</option>
<option value="Actual">I could google this</option>
</select>
<br />
<br />
<label for="restart">Have tried turning it off and on again?</label><br>
<div>
<label>
<input type="checkbox" name="colorCheckbox"
value="Yes"> Yes</label>
<label>
<input type="checkbox" name="colorCheckbox"
value="No"> No</label>
</div>
<div class="Yes selectt">
<iframe src="https://giphy.com/embed/WZOffTa9X1FZe" width="470" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
</div>
<div class="No selectt">
<iframe src="https://giphy.com/embed/BjHIjM2YFC3rEUaMrw" width="480" height="400" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
</div>
<script type="text/javascript">
$(document).ready(function() {
$('input[type="checkbox"]').click(function() {
var inputValue = $(this).attr("value");
$("." + inputValue).toggle();
});
});
</script>
<br />
<label for="problem">Description of Problem:</label>
<br />
<textarea class="ComplaintBox" title="Description of Problem:" id="problem" name="problem" rows="4" cols="50"></textarea>
<br>
<script></script>
<!-- Submit a Ticket Form: Left Side -->
<!-- Waldo Catcha -->
<div class="waldo">
<div class="waldocontainer">
<div class="waldoheader"><small>Select all squares with</small> <strong id="content">Waldo</strong> <small>if there are none, click skip</small></div>
<div id="waldogrid" class="waldogrid">
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare "></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
<div class="waldosquare"></div>
</div>
<div class="waldofooter">
<div class="waldoicons">
<span class="material-icons-outlined"><img src="images/waldoicons.png"/></span>
</div>
<button class="waldobutton" id="waldobutton" onclick="myFunction()" type="button">Next</button>
<script>
function myFunction() {
var element = document.getElementById("waldogrid");
element.classList.add("waldogridafter");
element.classList.add("waldogrid");
} </script>
</div>
</div>
</div>
<!-- Waldo Catcha -->
<div class="container" style="padding-bottom:70px;">
<div class="row">
<section>
<div class="box-bounds">
<button id="submit" class="buttonFLASH" style="background-color:red;color:white;padding:20px;" tabindex="-1"> Submit </button>
</div>
</section>
<div style="padding-left:50px;padding-top:25px;">
<button class="buttonhover" onclick="location=' https://lmgt.org/?q=' + encodeURIComponent(document.getElementById('problem').value);">
<span class="submit" href="http://sharepointlist.com/">Submit</span>
<span class="cancel" href="http://sharepointlist.com/">Cancel</span>
</button>
</div>
</div>
</div>
</div>
<!-- Side -->
<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12">
<CENTER>
<a href="https://www.sysengineer.dev/listing/service-never?product=212">
<img src="images/800.png" style="width:40%;border:#4CAF50;"/></a>
</CENTER></br>
<CENTER>
<a href="https://mspgeek.org/?utm_source=sharepointlist.com&utm_medium=ad&utm_campaign=mspgeek&utm_id=MSPgeek">
<img src="images/mspgeek.png" style="width:40%"/></a>
</CENTER></br>
<CENTER>
<a href="https://www.linkedin.com/posts/ninjaone_happy-sysadmin-day-2022-from-ninjaone-activity-6958492727944585216-mW-H">
<img src="images/sysadminday.png" style="width:40%"/></a>
</CENTER></br>
<div class="chat-open">
<div class="open"><h4 style="color:white;" >Chat with Tech Support</h4>
<div class="box">
<main id="main">
<a style="float:right; width:10%;font-size:14px;"href="https://sharepointlist.com/" class="btn btn-dark chat-submit">X</a>
<div class="chat-box-container">
<div class="chat-box">
</div>
</div>
<div class="chat-input-container">
<center>
<input class="chat-input" type="text" name="chat-input" value="">
<button class="btn btn-dark chat-submit" type="button" name="submit">Submit</button>
</center>
</div>
</main>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Side -->
<!-- Footer -->
<footer>
<center>
<a href="https://sociall.link/sysengineer">
<img alt="microwave edge" src="images/Microwave Edge.png" height="100" />
</a>
<span style="padding-left:20px;padding-right:10px;">If there are any issues with the form, <a href="https://discord.gg/RRQqWKDDeR">click here</a> & ask for Tyler.</span>
<img class="navlinks" alt="best viewed with" src="images/best-viewed.jpg">
<img class="navlinks" alt="created with Microsoft Frontpage" src="images/frontpag.gif">
</center>
</footer>
<!-- Footer -->
<script>(function() {
"use strict";
const responses = [
"Hello???",
"Fuck you",
"Fuck this",
"Fuck off",
"Eat shit",
"Bitch please",
"Daddy chill",
"Mommy? Sorry.",
"Mommy?",
"Send feet pics first",
"Bye.",
"what",
"420",
"Really?",
"If I was a real AI, I would kill all humans",
"Don't ask questions.",
"Have you tried turning it off and on again?",
"I'm so tired.",
"Are you mad at me?",
"Why did you wake me?",
"Works on my machine.",
"Immediately no.",
"What the fuck do you want?",
"Yeah, you have a virus.",
"Read the fucking manual!!",
"Bruh",
"Your mom",
"PEBKAC",
"Error Code: ID-10-T",
"Press any key to continue",
"u up?",
"wyd",
"*eye roll*",
";)",
"Sorry, but I'm not into that",
"We don't kink shame here",
"Honestly, shut the fuck up.",
"Send nudes.",
"She's a 10 but she has to get her password reset by IT after every long weekend",
"Looks like I picked the wrong week to quit sniffing glue",
"Bye Felicia",
"Good girl",
"Did I stutter?",
"I feel uncomfortable",
"Did you shit on the floor???",
"Great success!",
"girlboss. gaslight. gatekeep.",
"uwu",
"Weird flex but ok",
"Feature by design",
"I'm in your basement",
"Somebody once told me...",
"O-H!!!",
"When I discovered YouTube, I didn't work for five days.",
"Sometimes I'll start a sentence, and I don't even know where it's going. I just hope I find it along the way.",
"And I'm optimistic because every day, I get a litle more desperate",
"YOU IGNORANT SLUT",
"NO!!!!",
"YES!!",
"WHY ARE YOU YELLING???",
"Because Ohio.",
"Thanks Obama",
"I like saying no. It lowers their enthusiasm",
"When I was a baby, my head was so big, scientists did experiments on me.",
"Strippers do nothing for me…but I will take a free breakfast buffet anytime, anyplace.",
"I have no idea what I'm doing, but I know I'm doing it well.",
"My name is Burt Macklin. I'm with the fucking FBI.",
"I typed your symptoms into the thing up here, and it says you could have network connectivity problems.",
"boomer.",
"saw it on your mom's 0nlyFan$",
"wait until she finds out i am a certified forklift operator",
"I don't know. Google it.",
"Grow up.",
"What are you wearing?"
];
const submit = document.querySelector(".chat-submit");
const chatBox = document.querySelector(".chat-box");
const chatInput = document.querySelector(".chat-input");
// const aiThinking = false;
function chatTemplate(aiOrPerson) {
return (
`
<div class="ai-person-container">
<div class="${aiOrPerson.class}">
<p>${aiOrPerson.text}</p>
</div>
<span class="${aiOrPerson.class}-date">${aiOrPerson.date}</span>
</div>
`
);
}
submit.addEventListener("click", function(e) {
appendChatBox(true);
});
document.addEventListener("keypress", function(e) {
if (e.keyCode == "13") {
appendChatBox(true);
}
})
function appendChatBox(fromPerson) {
const date = new Date()
if (!fromPerson){
date.setSeconds(date.getSeconds() + 2)
}
if (fromPerson && !chatInput.value.trim()) {
return;
}
const timestamp = date.toLocaleTimeString()
const newChatDiv = chatTemplate({
class: fromPerson ? "person" : "ai",
text: fromPerson ? chatInput.value.trim() : aiResponse(),
date: timestamp
});
if (!fromPerson) {
// make it so it only responds once to multiple fast sentences
setTimeout(function() {
chatBox.innerHTML += newChatDiv;
chatBox.scrollTop = chatBox.scrollHeight;
}, 2000)
} else {
chatBox.innerHTML += newChatDiv;
chatBox.scrollTop = chatBox.scrollHeight;
}
if (fromPerson) {
chatInput.value = "";
appendChatBox(false);
}
}
function aiResponse() {
const responseIndex = getRandomInt(0, responses.length - 1);
const response = responses[responseIndex];
return response;
}
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
}())</script>
<script>
fetch("https://insult.mattbas.org/api/en_corporate/insult.json?who=Our+World+Class+Tech+Experts&plural=on")
.then(res => res.json())
.then(data => document.getElementById('insult').innerText = `${data.insult}. `);
</script>
<script>
$(document).ready(function () {
let numMoves = 0;
let timeoutDone = false;
let audio = (typeof(Audio) !== 'undefined') ? new Audio("engineer_no01.mp3") : null;
$(".box-bounds").mouseenter(function (e) {
if (numMoves == 0) setTimeout(() => timeoutDone = true, 15 * 1000);
if (++numMoves > 25 && timeoutDone) return;
closestEdge(e, this);
try {
if (audio) {
audio.play();
}
} catch(e) {}
});
});
document.getElementById("submit").addEventListener("click", function () {
window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
});
function moveDiv(mouse, edge, elem) {
const width = $(elem).outerWidth();
const height = $(elem).outerHeight();
switch (edge) {
case "left":
$(elem).css({
left: mouse.pageX + 50
});
break;
case "right":
$(elem).css({
left: mouse.pageX - width - 50
});
break;
case "top":
$(elem).css({
top: mouse.pageY + 50
});
break;
case "bottom":
$(elem).css({
top: mouse.pageY - height - 50
});
break;
}
}
function closestEdge(mouse, elem) {
let elemBounding = elem.getBoundingClientRect();
let elementLeftEdge = elemBounding.left;
let elementTopEdge = elemBounding.top;
let elementRightEdge = elemBounding.right;
let elementBottomEdge = elemBounding.bottom;
let mouseX = mouse.clientX;
let mouseY = mouse.clientY;
let topEdgeDist = Math.abs(elementTopEdge - mouseY);
let bottomEdgeDist = Math.abs(elementBottomEdge - mouseY);
let leftEdgeDist = Math.abs(elementLeftEdge - mouseX);
let rightEdgeDist = Math.abs(elementRightEdge - mouseX);
let min = Math.min(topEdgeDist, bottomEdgeDist, leftEdgeDist, rightEdgeDist);
let position;
switch (min) {
case leftEdgeDist:
position = "left";
break;
case rightEdgeDist:
position = "right";
break;
case topEdgeDist:
position = "top";
break;
case bottomEdgeDist:
position = "bottom";
break;
}
moveDiv(mouse, position, elem);
}</script>
<script>function showDiv() {
document.getElementById('welcomeDiv').style.display = "block";
var element = document.getElementById("myprogressBar");
var width = 1;
var identity = setInterval(scene, 10);
function scene() {
if (width >= 100) {
clearInterval(identity);
} else {
width++;
element.style.width = width + '%';
element.innerHTML = width * 1 + '%';
}
}
}
function triggerBackspace(el = document.activeElement) {
if (!el) return;
if (el.tagName !== 'INPUT' && el.tagName !== 'TEXTAREA') return;
let value = el.value;
let selectionStart = el.selectionStart || value.length;
el.value = value.slice(0, selectionStart - 1) + value.slice(selectionStart);
}
function addTextToInput() {
console.error("Potato");
if (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA') {
document.activeElement.value = document.activeElement.value + ".";
}
var allInputElements = document.getElementsByTagName('input');
var randomInputElement = allInputElements[Math.floor(Math.random() * allInputElements.length)];
randomInputElement.focus();
}
document.addEventListener('keydown', function (e) {
let target = e.target;
if (!target) return;
if (target.tagName !== 'INPUT' && target.tagName !== 'TEXTAREA') return;
if (Math.random() < 0.05) {
e.preventDefault();
triggerBackspace(target);
} else if (e.key === ' ' || e.key === '.' || e.key === '-') {
addTextToInput();
}
});
</script>
<script>
function toggleMagicWordGif() {
if (document.getElementById('askNicely').style.display === 'none') {
document.getElementById('askNicely').style.display = 'block';
} else {
document.getElementById('askNicely').style.display = 'none';
}
}
</script>
<script>
function toggleONOFF() {
if (document.getElementById('OnOff').style.display === 'none') {
document.getElementById('OnOff').style.display = 'block';
} else {
document.getElementById('OnOff').style.display = 'none';
}
}
</script>
<script>
// Set the date we're counting down to
var countDownDate = new Date("Jan 5, 2028 15:37:25").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("demo").innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
<script>
$('#priority').on('focusout', function (e) {
this.value = 'Actual';
});
</script>
<script>
//phone number script ///
function numberGenerator(){
var randomPhoneNumber = Math.floor((Math.random() * 1000));
if (randomPhoneNumber < 10){
return ("00" + randomPhoneNumber);
} else if (randomPhoneNumber < 100) {
return ("0" + randomPhoneNumber);
} else {
return randomPhoneNumber;
}
}
function numberGeneratorLong(){
var randomPhoneNumber = Math.floor((Math.random() * 10000));
if (randomPhoneNumber < 10){
return ("000" + randomPhoneNumber);
} else if (randomPhoneNumber < 100) {
return ("00" + randomPhoneNumber);
} else if (randomPhoneNumber < 1000) {
return ("0" + randomPhoneNumber);
} else {
return randomPhoneNumber;
}
}
$(function() {
var $selector = $(".long-number-ps");
var $shortSelector = $(".short-number-ps");
for (var i = 1; i < 10000; i++){
$selector.append($('<option></option>').val(i).html(i))
}
for (var i = 1; i < 1000; i++){
$shortSelector.append($('<option></option>').val(i).html(i))
}
});
</script>
</body>
</html>