Minor changes

This commit is contained in:
2016-11-14 00:34:01 +09:00
parent e6c17a67c3
commit e23f843450
11 changed files with 394 additions and 5 deletions

10
scripts/init.ts Normal file
View File

@ -0,0 +1,10 @@
// Fix Facebook login hash in URL
if(window.location.hash && window.location.hash === '#_=_') {
window.history.pushState('', document.title, window.location.pathname)
}
// Fade out loading animation
document.addEventListener('DOMContentLoaded', function(event) {
$.loadingAnimation.classList.add('fade-out')
$.updateAvatars()
})