initial commit

This commit is contained in:
iko 2021-01-15 13:13:32 +03:00
commit 5bc16cacc1
4 changed files with 47 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata

19
index.html Executable file
View 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
View 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);
}
});

14
style.css Executable file
View File

@ -0,0 +1,14 @@
html {
background-color: #fcfcfc;
}
#main {
display: block;
width: 100%;
margin-top: 30vh;
text-align: center;
/* background-color: #ff9998; */
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
font-weight: 800;
font-size: 89px;
}