Added Content-Security-Policy to ensure that external scripts cannot be loaded.
Moved inline scripts to their own files. Moved all front-end scripts to /assets/js/scripts.
This commit is contained in:
@@ -21,16 +21,5 @@
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
<script type="application/javascript">
|
||||
|
||||
// DOM cache.
|
||||
const welcomeButton = document.getElementById('welcomeButton')
|
||||
|
||||
welcomeButton.addEventListener('click', e => {
|
||||
$('#welcomeContainer').fadeOut(500, () => {
|
||||
$('#loginContainer').fadeIn(500)
|
||||
})
|
||||
})
|
||||
|
||||
</script>
|
||||
<script src="./assets/js/scripts/welcome.js"></script>
|
||||
</div>
|
||||
Reference in New Issue
Block a user