-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
58 lines (53 loc) · 2.51 KB
/
index.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
<!-- /*
/ Author Name:AmitoshiYT
*/ -->
<!DOCTYPE html><html>
<head><title>AmitoshiYT</title></head><body style="background-color: gray;"><center><h1>Random User Name </h1><div class="padded" >
<?php
for ($s = '', $i = 0, $z = strlen($a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')-1; $i != 7; $x = rand(0,$z), $s .= $a[$x], $i++);
echo '<input type="text" name="txt" class="txt" style="border: none; width: 250px;
padding: 5px;" value="'.$s.'">
<input type="button" value="copy" class="btn" >';
echo "<br>";
echo "<br>";for ($s = '', $i = 0, $z = strlen($a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')-1; $i != 7; $x = rand(0,$z), $s .= $a[$x], $i++);
echo '<input type="text" style="border: none; width: 250px;
padding: 5px; " name="txt2" class="txt2" value="'.$s.'">
<input type="button" value="copy" class="btn2">';
echo "<br>";
echo "<br>";for ($s = '', $i = 0, $z = strlen($a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')-1; $i != 7; $x = rand(0,$z), $s .= $a[$x], $i++);
echo '<input type="text" style="border: none; width: 250px;
padding: 5px;" name="txt3" class="txt3" value="'.$s.'">
<input type="button" value="copy" class="btn3">';
echo "<br>";
echo "<br>";for ($s = '', $i = 0, $z = strlen($a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')-1; $i != 7; $x = rand(0,$z), $s .= $a[$x], $i++);
echo '<input type="text" style="border: none; width: 250px;
padding: 5px;" name="txt4" class="txt4" value="'.$s.'">
<input type="button" value="copy" class="btn4">';
echo "<br>";
echo "<br>";
?>
</center>
</div>
<script>
let btn=document.querySelector('.btn');
btn.addEventListener("click", function () {
let txt=document.querySelector('.txt');
txt.select();
document.execCommand ('copy'); });
</script><script>
let btn2=document.querySelector('.btn2');
btn2.addEventListener("click", function () {
let txt2=document.querySelector('.txt2');
txt2.select();
document.execCommand ('copy'); });</script> <script>
let btn3=document.querySelector('.btn3');
btn3.addEventListener("click", function () {
let txt3=document.querySelector('.txt3');
txt3.select();
document.execCommand ('copy'); });</script><script>
let btn4=document.querySelector('.btn4');
btn4.addEventListener("click", function () {
let txt4=document.querySelector('.txt4');
txt4.select();
document.execCommand ('copy'); });
</script></body></html>