mirror of
https://github.com/echo-url/echo-url.github.io.git
synced 2024-10-05 16:37:39 +03:00
initial commit
This commit is contained in:
commit
5bc16cacc1
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
_site/
|
||||
.sass-cache/
|
||||
.jekyll-cache/
|
||||
.jekyll-metadata
|
19
index.html
Executable file
19
index.html
Executable file
@ -0,0 +1,19 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Echo URL</title>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="script.js"></script>
|
||||
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1 id="main"> <i id="maintext">Echo URL</i> </h1>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
10
script.js
Normal file
10
script.js
Normal file
@ -0,0 +1,10 @@
|
||||
$(document).ready(function() {
|
||||
let name = window.location.href.split("echo-url.github.io/")[1];
|
||||
|
||||
if (name === undefined || name == "") {
|
||||
$("#maintext").text(decodeURI(window.location.href));
|
||||
} else {
|
||||
$("#maintext").text(decodeURI(name));
|
||||
document.title = decodeURI(name);
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user