mirror of
https://github.com/echo-url/echo-url.github.io.git
synced 2024-10-03 23:48:12 +03:00
10 lines
297 B
JavaScript
10 lines
297 B
JavaScript
$(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);
|
|
}
|
|
}); |