feat: design

This commit is contained in:
2022-03-15 00:50:28 +01:00
parent a54d4be5b4
commit d34579130c
26 changed files with 9417 additions and 209 deletions

View File

@ -1,3 +1,22 @@
import fullpage from "node_modules/fullpage.js/dist/fullpage.js"
// import { createApp } from 'node_modules/vue/dist/vue.esm-browser.js'
// import App from './App.vue'
// createApp(App).mount('#app')
new fullpage('#fullpage', {
//options here
autoScrolling:true,
navigationPosition: 'left',
navigation: true,
paddingTop: '1rem',
paddingBottom: '1rem',
fitToSection: false,
fitToSectionDelay: 10000,
scrollingSpeed: 1000,
slidesNavigation: true
});
if ('serviceWorker' in navigator) {
// Use the window load event to keep the page load performant
window.addEventListener('load', () => {
@ -37,7 +56,6 @@ async function main () {
return score >= item.dataset.min && (item.dataset.max == "" || score <= item.dataset.max)
}).map(item => {
item.classList.add('active')
console.log(item.getElementsByClassName('score_' + form.dataset.id))
Array.from(item.getElementsByClassName('score_' + form.dataset.id)).map(item => item.innerHTML = score)
})
}