mirror of
https://github.com/ivuorinen/generic-landing-page.git
synced 2026-02-23 21:52:49 +00:00
Generic landing page
This commit is contained in:
7
src/app.js
Normal file
7
src/app.js
Normal file
@@ -0,0 +1,7 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const container = document.querySelector('h1');
|
||||
const hostname = window.location.hostname || document.title;
|
||||
|
||||
container.textContent = hostname;
|
||||
document.title = hostname
|
||||
});
|
||||
Reference in New Issue
Block a user