diff options
author | Matthew Strapp <msattr@gmail.com> | 2021-02-23 15:54:25 -0600 |
---|---|---|
committer | Matthew Strapp <msattr@gmail.com> | 2021-02-23 15:54:25 -0600 |
commit | a0e5d4e22036dba5dd972e67b4b2ff9feeeca590 (patch) | |
tree | 35e11133e3b3ccf587b87c593f8b06536e48fc67 /csci4131/hw3/contacts.js | |
parent | hw3 (diff) | |
download | homework-a0e5d4e22036dba5dd972e67b4b2ff9feeeca590.tar homework-a0e5d4e22036dba5dd972e67b4b2ff9feeeca590.tar.gz homework-a0e5d4e22036dba5dd972e67b4b2ff9feeeca590.tar.bz2 homework-a0e5d4e22036dba5dd972e67b4b2ff9feeeca590.tar.lz homework-a0e5d4e22036dba5dd972e67b4b2ff9feeeca590.tar.xz homework-a0e5d4e22036dba5dd972e67b4b2ff9feeeca590.tar.zst homework-a0e5d4e22036dba5dd972e67b4b2ff9feeeca590.zip |
work homework work
Diffstat (limited to 'csci4131/hw3/contacts.js')
-rw-r--r-- | csci4131/hw3/contacts.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/csci4131/hw3/contacts.js b/csci4131/hw3/contacts.js index a8c4b26..af8c84e 100644 --- a/csci4131/hw3/contacts.js +++ b/csci4131/hw3/contacts.js @@ -1,3 +1,5 @@ +document.getElementById("bigboi").classList.add("isntRotating"); + function change(small, row) { document.getElementsByClassName("smol")[row].src = small; } @@ -5,6 +7,15 @@ function lucky() { var image = ["carlson.jpg", "johnston.jpg", "morrill.jpg", "shepherd.jpg", "snyder.jpg", "walter.jpg"]; document.getElementById("bigboi").src = image[Math.floor(6 * Math.random())]; } +let isRotating=0; +function dizzy() { + if (!isRotating) { + document.getElementById("bigboi").classList.remove("isntRotating"); + } else { + document.getElementById("bigboi").classList.add("isntRotating"); + } + isRotating^=1; +} let map; function initMap() { map = new google.maps.Map(document.getElementById("map"), { @@ -53,10 +64,10 @@ function addPoints(locations) { if (!this.infoWindow) { this.infoWindow = new google.maps.InfoWindow({ content: this.data.content, - }); + } this.infoWindow.open(map, this); }) } -}
\ No newline at end of file +} |