-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
129 lines (127 loc) · 3.59 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>TEL</title>
<link rel="icon" type="image/png" href="logo.png" />
<style>
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
body{
background: #1f1f1f;
text-align:center;
color: #c0b18b;
font-family: Arial, Helvetica, sans-serif;
text-shadow: 2px 2px #000000;
}
a{
font-size: 3vw;
letter-spacing: 5px;
color: #c0b18b;
text-decoration: none;
}
h3{
font-size: 5vw;
}
#sub{
font-size: 2em;
text-shadow: 1px 1px 0 #1f1f1f, 2px 2px 0 #679480, 3px 3px 0 #1f1f1f, 4px 4px 0 #679480;
letter-spacing: 5px;
color: #c0b18b;
text-decoration: none;
margin-bottom: 0px;
}
#head{
font-size: 120px;
text-shadow: 5px 5px 0 #1f1f1f, 10px 10px 0 #679480, 15px 15px 0 #1f1f1f, 20px 20px 0 #679480;
letter-spacing: 50px;
color: #c0b18b;
text-decoration: none;
margin-bottom: 0px;
}
a:link {
color: #c0b18b;
}
a:visited {
color: #c0b18b;
}
a:hover {
color: #c0b18b;
}
a:active {
color: #c0b18b;
}
#screenshot{
width: 50vh;
}
#tg{
width: 20vh;
margin: 2vh;
}
#link{
color: #679480;
}
.row {
display: flex;
}
.column {
flex: 50%;
}
</style>
</head>
<body>
<h1 id="head">TEL</h1>
<h2 id="sub">Termux Expert Launcher</h2>
<!--<img id="screenshot" src="logo.png"/>-->
<br>
<img id="screenshot" src="1631987287599.png"/>
<hr>
<h3>Download</h3>
<h5><a id="tel" href="https://github.com/t-e-l/tel/releases/latest">TEL</a></h5>
<h5><a id="api" href="https://github.com/t-e-l/termux-api/releases/latest">TEL:API</a></h5>
<h5><a id="tasker" href="https://github.com/t-e-l/termux-tasker/releases/latest">TEL:Tasker</a></h5>
<br>
<hr>
<h5><a href="https://t-e-l.github.io/wiki">Wiki</a></h5>
<div class="row">
<div class="column">
<a href="https://t.me/termux_expert_launcher">
<img id="tg" src="https://camo.githubusercontent.com/d2b2d73ed818ec94e0015998cbce9d40e05ac49b/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f382f38322f54656c656772616d5f6c6f676f2e737667"/>
</a>
</div>
<div class="column">
<a href="https://github.com/t-e-l/tel">
<img id="tg" src="https://www.pngkey.com/png/full/178-1787508_github-icon-download-at-icons8-white-github-icon.png"/>
</a>
</div>
</div>
<script>
function parseUrl(repo){
var xmlhttp = new XMLHttpRequest();
var url = "https://api.github.com/repos/t-e-l/termux-"+repo+"/releases/latest"
if(repo === "tel"){
url = "https://api.github.com/repos/t-e-l/tel/releases/latest"
}
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myArr = JSON.parse(this.responseText);
if(myArr["assets"].length > 0){
document.getElementById(repo).href=myArr["assets"][0]["browser_download_url"];
}
}
};
xmlhttp.open("GET", url, true);
xmlhttp.send();
}
var repos = ["api","tasker"];
for(let r of repos){
parseUrl(r);
}
</script>
</body>
</html>