-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout d'un fichier Pipfile.lock et amélioration du site web
- Loading branch information
1 parent
ed10c06
commit feecfb0
Showing
11 changed files
with
323 additions
and
71 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
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,14 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
|
||
[packages] | ||
numpy = "*" | ||
scipy = "*" | ||
requests = "*" | ||
|
||
[requires] | ||
python_version = "3.8" |
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
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="fr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="style.css" /> | ||
<title>Kwyk Solver</title> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Kwyk Solver</h1> | ||
<p>Un outil open source pour résoudre vos devoirs Kwyk.</p> | ||
<div> | ||
<button id="download-button" class="button-fill">Télécharger</button> | ||
<button id="github-button">Page GitHub</button> | ||
</div> | ||
</header> | ||
<main id="main"></main> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/11.0.0/markdown-it.min.js"></script> | ||
<script src="index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
const md = window.markdownit(); | ||
const downloadButton = document.getElementById("download-button"); | ||
const gitHubButton = document.getElementById("github-button"); | ||
const main = document.getElementById("main"); | ||
|
||
//#region Download button | ||
|
||
const dlUrlRequest = new XMLHttpRequest(); | ||
dlUrlRequest.onreadystatechange = () => { | ||
if (dlUrlRequest.readyState == 4 && dlUrlRequest.status == 200) { | ||
const url = JSON.parse(dlUrlRequest.responseText).url; | ||
downloadButton.addEventListener("click", () => { | ||
location.href = url; | ||
}); | ||
} | ||
}; | ||
dlUrlRequest.open("GET", "update_info.json", true); | ||
dlUrlRequest.send(); | ||
|
||
//#endregion | ||
|
||
//#region Main, README | ||
|
||
const readMeRequest = new XMLHttpRequest(); | ||
readMeRequest.onreadystatechange = () => { | ||
if (readMeRequest.readyState == 4 && readMeRequest.status == 200) { | ||
const html = md.render(readMeRequest.responseText); | ||
main.innerHTML = html; | ||
} | ||
}; | ||
readMeRequest.open( | ||
"GET", | ||
"https://raw.githubusercontent.com/Yougi3/Kwyk-Solver/master/README.md", | ||
true | ||
); | ||
readMeRequest.send(); | ||
|
||
//#endregion | ||
|
||
//#region GitHub button | ||
|
||
gitHubButton.addEventListener("click", () => { | ||
location.href = "https://github.com/Yougi3/Kwyk-Solver"; | ||
}); | ||
|
||
//#endregion |
Oops, something went wrong.