-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlinks_generating.html
94 lines (90 loc) · 3.24 KB
/
links_generating.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
<!DOCTYPE html>
<html>
<head>
<meta content="text/html" charset="UTF-8">
<meta name="viewport" content="width=502">
<title>Links generating - Wheiss' tools</title>
<link rel="Shortcut Icon" href="ico/illust_73070421.webp" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/default.css">
</head>
<body>
<div>
<h5 style="user-select:none !important;" id="un_copy_Para">A tool for generating links.</h5>
</div>
<style>
.user_path_1-textarea {
width: 460px;
height: 55.2px;
padding: 4px 8px;
}
.result-textarea {
width: 460px;
height: 248px;
background-color: #e6e6fa;
}
.submit-button {
margin:0.25% 8px 0.25% 0.25px;
padding: 4px 8px;
}
.copy-button {
margin:0.25% 0.25% 0.25% 8px;
padding: 4px 12px;
background-color: #e6e6fa;
}
/* .container {
display: flex;
justify-content: center;
}*/
</style>
<form action="api/links_generating.php" method="POST">
<br>
<div>
<textarea name="user_path_1" class="user_path_1-textarea" placeholder="[essential]http://6.6.6.6:880/(a-z)(a-z)ws.m3u8
http://jscbn.tx-cdn.gitv.tv/gitv_escape/G_CCTV-(1-17)-CQ/G_CCTV-(1)-CQ.m3u8" maxlength="500"></textarea><br>
<button type="submit" class="submit-button" style="user-select:none !important;" id="un_copy_Para">Submit</button>
<button onclick="copyToClipboard()" class="copy-button" style="user-select:none !important;" id="un_copy_Para">Copy</button>
</div>
</form>
<div style="height:467.8px">
<textarea id="result" class="result-textarea" readonly placeholder="It supports four types of modes and five groups of variables, with a length of up to six for each variable.
Normal mode: (0-999999)、(a-z)、(A-Z).
Retain zero mode: (00-999999) and (000000-999999) have the same function.
Hex mode: (0-f)、(0-F).
Reuse mode: (1)、(2)、(3)、(4)、(5).
(Reuse mode need to be used in conjunction with other modes.)"></textarea>
</div>
<div>
<hr>
<span class="p1" style="user-select:none !important;" id="un_copy_Para"><a href="javascript:;" onClick="javascript:history.back(-1);">Previous</a></span>
<span class="p1" style="user-select:none !important;" id="un_copy_Para">Author: <a href="https://www.wheiss.com/">Wheiss</a> Source Code: <a href="https://github.com/WheissCherry/Wheiss-tools/">Github</a> Version: <a href="https://github.com/WheissCherry/Wheiss-tools/releases/tag/v1.7">1.3</a></span>
<span class="p1" style="user-select:none !important;" id="un_copy_Para"><a href="/">Home</a></span>
</div>
<script>
function copyToClipboard() {
const resultTextarea = document.getElementById('result');
resultTextarea.select();
document.execCommand('copy');
}
const form = document.querySelector('form');
form.addEventListener('submit', function(event) {
event.preventDefault();
const user_path_1 = document.querySelector('textarea[name="user_path_1"]').value;
fetch('api/links_generating.php', {
method: 'POST',
body: new URLSearchParams({
user_path_1: user_path_1
})
})
.then(response => response.text())
.then(processedData => {
const resultTextarea = document.getElementById('result');
resultTextarea.value = processedData;
});
});
document.getElementById("un_copy_Para").oncopy = function(event) {
event.clipboardData.setData("text/plain", "");
event.preventDefault();
};
</script>
</body>
</html>