2022-01-05 13:42:24 +01:00
|
|
|
console.log("everything is still smooth")
|
|
|
|
|
2022-03-04 21:10:06 +01:00
|
|
|
function scrollToTheme() {
|
|
|
|
var uploadsuccessful = document.getElementById("uploadsuccessful");
|
|
|
|
if(uploadsuccessful){
|
|
|
|
const theme = document.getElementById('theme')
|
|
|
|
theme.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function scrollToLaunch() {
|
|
|
|
var cssSelected = document.getElementById("cssSelected");
|
|
|
|
if(cssSelected){
|
|
|
|
const launch = document.getElementById('launch')
|
|
|
|
launch.scrollIntoView({ behavior: 'smooth', block: 'end' });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 22:15:08 +01:00
|
|
|
|
2022-03-04 21:10:06 +01:00
|
|
|
document.addEventListener("DOMContentLoaded", scrollToTheme);
|
|
|
|
document.addEventListener("DOMContentLoaded", scrollToLaunch);
|
|
|
|
|
2022-01-05 13:42:24 +01:00
|
|
|
// function(e) {
|
|
|
|
// (e.keyCode === 13 || e.keyCode === 32) && $(this).trigger("click")
|
|
|
|
// }
|