aboutsummaryrefslogtreecommitdiff
path: root/static/funny.js
blob: 0e703f72b5eb839dddfcfcd4a911496481e2f04e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
bool = false
var audio 
if (new Date().getMonth() === 9){
    console.log("boo")
    audio = new Audio('boo.mp3')
} else {
    audio = new Audio('for-maeve.mp3')
}
function no() {
    bool = !bool
    if(bool){
        audio.play()
    } else {
        audio.pause()
    }
  }