-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecd8d63
commit 3e5099f
Showing
7 changed files
with
220 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
// this code is created by LWJerri#3290 https://lwjerri.js.org/ | ||
const teamContainer = document.getElementById(".team-container"); | ||
const API = "https://japi.ohori.me/discord/avatar/"; | ||
/* | ||
THIS CODE BY LWJerri#3290 | ||
*/ | ||
const boxOwners = document.getElementById("owners_list"); | ||
/* | ||
you can use this api but if you need to create custome api check: | ||
https://github.com/Hadi-Koubeissi/discord-web-api | ||
*/ | ||
const API = "https://discord-web-api.glitch.me/discord/user/"; | ||
|
||
const owners = [ | ||
{ | ||
"id": "442793591501357056", | ||
"post": "Creator / Dev", | ||
"post": "Bot Owner", | ||
"GHURL": "https://github.com/Hadi-Koubeissi", | ||
"InstaURL": "", | ||
"YTURL": "https://www.youtube.com/channel/UCmO0xdpxQr7fX2Csth_2JOQ" | ||
} | ||
] | ||
|
||
for(let indexOne = 0; indexOne < owners.length; indexOne++){ | ||
for (let indexOne = 0; indexOne < owners.length; indexOne++) { | ||
const elementOwners = owners[indexOne]; | ||
|
||
$.getJSON(API + elementOwners.id) | ||
.then(output => { | ||
if(!output.username || !output.url){ | ||
setTimeout(function(){ | ||
document.querySelectorAll(".banner img").forEach(imgs => imgs.src = url + "/src/images/logo-default.png"); | ||
}, 1000); | ||
} | ||
.then(output => { | ||
if (!output.username || !output.url) { | ||
setTimeout(function () { | ||
document.querySelectorAll(".banner img").forEach(imgs => imgs.src = url + "../assets/bot.png"); | ||
}, 1000); | ||
} | ||
|
||
const ownerList = "<div id='trigger' class='card' style='margin: 15px;'><div class='banner'><img src='" + output.url + "'></div></br></br></br></br><h2 class='name'>" + output.username + "</h2><div class='title'><h1 id='trigger2' style='font-size: 26px; color: #000000;'>" + elementOwners.post + "</h2></div><div class='actions'><div class='follow-btn' style='margin-bottom: 5px;'><a href='" + elementOwners.GHURL + "' target='_blank'><button style='color: #000000;'>GitHub</button></a></div><div class='follow-btn'><a href='" + elementOwners.YTURL + "' target='_blank'><button style='color: #000000;'>YouTube</button></a></div></div></div>" | ||
teamContainer.innerHTML += ownerList; | ||
}); | ||
const ownerList = "<div id='trigger' class='card' style='margin: 15px;'><div class='banner'><img src='" + output.url + "'></div></br></br></br></br><h2 class='name'>" + output.username + "</h2><div class='title'><h1 id='trigger2' style='font-size: 26px; color: #000000;'>" + elementOwners.post + "</h2></div><div class='actions'><div class='follow-btn' style='margin-bottom: 5px;'><a href='" + elementOwners.GHURL + "' target='_blank'><button style='color: #000000;'>GitHub</button></a></div><div class='follow-btn'><a href='" + elementOwners.YTURL + "' target='_blank'><button style='color: #000000;'>YouTube</button></a></div></div></div>" | ||
boxOwners.innerHTML += ownerList; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<link rel="stylesheet" href="../css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="../css/main.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<link rel="icon" href="../assets/favicon.png"> | ||
<title>Hbot</title> | ||
</head> | ||
|
||
<body style="background-color: #38383b"> | ||
<div class="container-fluid text-center" style="margin: 25px 0 25px 0;"> | ||
<h1 class="display-5 licetitle" style="padding-bottom: 10px;"><b>LICENSE</b></h1> | ||
<hr style="border: 1px solid #ffff; width: 170px;"> | ||
<blockquote class="blockquote"> | ||
<p class="mb-0 textlice" id="text"></p> | ||
</blockquote> | ||
<a class="btn btn-primary" href="https://github.com/Hadi-koubeissi/Discord-bot-website-templat">Go to github | ||
repository</a> | ||
<a class="btn btn-success" href="../index.html">Back to main page</a> | ||
|
||
<script src="../js/license.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters