-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just finished adding my click event to the mobile view of the application. This is a very rough draft that I will revisit, but for now, I'm going to start working on the responsiveness and jump to the desktop version of this project
- Loading branch information
1 parent
642f365
commit ad6292f
Showing
4 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
let display = true; | ||
let cont = true | ||
|
||
const shareBtn = document.getElementById('share-btn'); | ||
const lightShareBtn = document.getElementById('share-btn'); | ||
const darkShareBtn = document.getElementById('dark-share'); | ||
|
||
const nameDate = document.getElementById('name-date-container'); | ||
const profilePic = document.querySelector('.michelle'); | ||
const sigSect = document.getElementById('sig-section'); | ||
const sigSect = document.getElementById('sig-section-event'); | ||
|
||
shareBtn.addEventListener('click', function() { | ||
lightShareBtn.addEventListener('click', function() { | ||
nameDate.style.visibility = 'hidden'; | ||
profilePic.style.visibility = 'hidden'; | ||
sigSect.style.backgroundColor = '#48556A' | ||
}) | ||
sigSect.style.visibility = 'visible'; | ||
}) | ||
|
||
darkShareBtn.addEventListener('click', function() { | ||
nameDate.style.visibility = 'visible'; | ||
profilePic.style.visibility = 'visible'; | ||
sigSect.style.visibility = 'hidden'; | ||
}) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters