commit 5bc16cacc165261adc7735ecd13a90fcfcd1c453 Author: iko Date: Fri Jan 15 13:13:32 2021 +0300 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ca8682 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +_site/ +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata diff --git a/index.html b/index.html new file mode 100755 index 0000000..faa430f --- /dev/null +++ b/index.html @@ -0,0 +1,19 @@ + + + + + Echo URL + + + + + + + + + +

Echo URL

+ + + + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..5b2bf6f --- /dev/null +++ b/script.js @@ -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); + } +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100755 index 0000000..6e048e6 --- /dev/null +++ b/style.css @@ -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; +} \ No newline at end of file