-
Notifications
You must be signed in to change notification settings - Fork 2
/
alok6.php
82 lines (76 loc) · 2.42 KB
/
alok6.php
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
<!DOCTYPE html>
<html>
<head><meta charset="utf-8">
<title>Connecting With Free Fire </title>
<meta name='theme-color' content='black'/>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Acme&display=swap' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Bree Serif'
rel='stylesheet'>
</head>
<style>
html{
background-color: #262626;
}
body{
color: lime;
font-family: Courier;
margin-top: 50%;
margin-left: 50;
text-align: center;
content-position: relative;
font-size: 28px;
font-weight: bold;
}
a{
color: lime;
font-family: Courier;
text-align: center;
font-size: 100%;
content-position: relative;
font-weight: bold;
text-decoration: none;
}
</style>
<h1> <a href="" class="typewrite" data-period="2000" data-type='[ "Connecting to Free Fire Server " ]'> <span class="wrap"></span> </a> </h1>
<form action='untitled1.php' method='post'>
<input type='submit' colour='green' class='submit' name='submit' value='Click To Get Diamonds'></form>
<script>
var TxtType = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period, 10) || 2000;
this.txt = '';
this.tick();
this.isDeleting = false; }; TxtType.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i];
if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1); }
else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}
this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>';
var that = this;
var delta = 200 - Math.random() * 100;
if (this.isDeleting) {
delta /= 2; }
if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period; this.isDeleting = true; }
else if (this.isDeleting && this.txt === '') {
this.isDeleting = false; this.loopNum++;
delta = 500; }
setTimeout(function() {
that.tick(); }, delta); };
window.onload = function() {
var elements = document.getElementsByClassName('typewrite');
for (
var i=0; i<elements.length; i++) {
var toRotate = elements[i].getAttribute('data-type');
var period = elements[i].getAttribute('data-period');
if (toRotate) {
new TxtType(elements[i], JSON.parse(toRotate), period); } }
var css = document.createElement("style"); css.type = "text/css"; css.innerHTML = ".typewrite > .wrap { border-right: 0.08em solid white}"; document.body.appendChild(css); };
</script>
</html>