work.suroh.tk/assets/js/script.js

12 lines
263 B
JavaScript

// importing scripts
import '/assets/js/interaction.js'
// 'page' load transitions
const pageSection = document.querySelector('section.page')
pageSection.addEventListener('load', (e) => {
console.log('div loaded?')
console.log(e.target)
alert('ehllo')
})