-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
130 lines (101 loc) · 5 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
130
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<meta name="description" content="a bot for manage opensource repository">
<meta name="author" content="ngdream">
<link rel="shortcut icon" href="assets/icon.png" type="image/x-icon">
<title>ngdreambot</title>
</head>
<body>
<header>
<img src="assets/icon.png" alt="" class="profil">
<div class="header-content">
<h2>a bot for manage projects</h2>
<div class="buttons">
<a href="https://www.paypal.me/ngdream" class="btn">
<div class="custom">donate</div></a>
<a href="https://github.com/ngdream/ngdream_bot" class="btn">
<div class="custom">contribute</div></a>
</a>
</div>
</div>
</header>
<section id="about">
<h1>About kiki</h1>
<p>
kiki is a telegram bot that allows you to manage projects, created by ngdream this bot will allow you to share your projects more easily with kiki it is even possible for you to clone the subdirectories of the repositories on github in the near future new functionality will be added which will even allow you to delete and create a new repository with this bot
</p>
<section id="share">
<H1>share</H1>
<div class="presentation"><img src="assets/preview-share1.png" alt=""> <h3> share a repository</h3></div>
<div class="presentation"><img src="assets/preview-share2.png" alt=""> <h3> share a subfolder in a repository</h3></div>
<div class="presentation"> <img src="assets/preview-share3.png" alt=""><h3>share just a file in a repository</h3></div>
</section>
</section>
<section>
<H1>support me </H1>
<p>
I am entirely developed by volunteers and independent developer
server hosting is not cheap help me become even better by donating or contributing directly to the project on github
</p>
</section>
<script>
function getAllUrlParams(url) {
// get query string from url (optional) or window
var queryString = url ? url.split('?')[1] : window.location.search.slice(1);
// we'll store the parameters here
var obj = {};
// if query string exists
if (queryString) {
// stuff after # is not part of query string, so get rid of it
queryString = queryString.split('#')[0];
// split our query string into its component parts
var arr = queryString.split('&');
for (var i = 0; i < arr.length; i++) {
// separate the keys and the values
var a = arr[i].split('=');
// set parameter name and value (use 'true' if empty)
var paramName = a[0];
var paramValue = typeof (a[1]) === 'undefined' ? true : a[1];
// (optional) keep case consistent
paramName = paramName.toLowerCase();
if (typeof paramValue === 'string') paramValue = paramValue.toLowerCase();
// if the paramName ends with square brackets, e.g. colors[] or colors[2]
if (paramName.match(/\[(\d+)?\]$/)) {
// create key if it doesn't exist
var key = paramName.replace(/\[(\d+)?\]/, '');
if (!obj[key]) obj[key] = [];
// if it's an indexed array e.g. colors[2]
if (paramName.match(/\[\d+\]$/)) {
// get the index value and add the entry at the appropriate position
var index = /\[(\d+)\]/.exec(paramName)[1];
obj[key][index] = paramValue;
} else {
// otherwise add the value to the end of the array
obj[key].push(paramValue);
}
} else {
// we're dealing with a string
if (!obj[paramName]) {
// if it doesn't exist, create property
obj[paramName] = paramValue;
} else if (obj[paramName] && typeof obj[paramName] === 'string'){
// if property does exist and it's a string, convert it to an array
obj[paramName] = [obj[paramName]];
obj[paramName].push(paramValue);
} else {
// otherwise add the property
obj[paramName].push(paramValue);
}
}
}
}
return obj;
}
console.log(getAllUrlParams(window.location.toString()))
</script>
</body>
</html>