intro image, only start on start

This commit is contained in:
j 2022-04-22 18:57:55 +01:00
parent bf9b95f2e6
commit cddeea5ab0

View file

@ -34,6 +34,9 @@
#intro, #contact { #intro, #contact {
display: none; display: none;
} }
#intro img {
width: 100%;
}
</style> </style>
</head> </head>
<body> <body>
@ -61,12 +64,14 @@
timenav_height: 100, timenav_height: 100,
}); });
} }
/*
document.querySelector('#intro').addEventListener('click', event => { document.querySelector('#intro').addEventListener('click', event => {
document.querySelector('#intro').style.display = 'none' document.querySelector('#intro').style.display = 'none'
document.querySelector('#contact').style.display = 'none' document.querySelector('#contact').style.display = 'none'
document.querySelector('#timeline').style.display = 'block' document.querySelector('#timeline').style.display = 'block'
load_timeline() load_timeline()
}) })
*/
if (document.location.hash.slice(1).length) { if (document.location.hash.slice(1).length) {
load_timeline() load_timeline()
} }