feat: design
This commit is contained in:
@ -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)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user