Skip to content

Added audio, play/pause button and audio switch, image and audio file…#13

Open
zseiman wants to merge 3 commits intoaapomm:masterfrom
zseiman:master
Open

Added audio, play/pause button and audio switch, image and audio file…#13
zseiman wants to merge 3 commits intoaapomm:masterfrom
zseiman:master

Conversation

@zseiman
Copy link

@zseiman zseiman commented May 13, 2016

…s as well as corresponding directories

HTML
=>div #mute
=>audio
css
=>mute
=>mute:hover
directories
=>images
=>music
JavaScript
=>MusicSwitch function and associated commands
images
=>muteButton.png
=>mutedButton.png
audio
=>bensound-scifi.mp3
text
=>Credits (url to music source)

Purpose: to add background music to game along with optional on/off switch

…s as well as corresponding directories

HTML
=>div #mute
=>audio
css
=>mute
=>mute:hover
directories
=>images
=>music
JavaScript
=>MusicSwitch function and associated commands
images
=>muteButton.png
=>mutedButton.png
audio
=>bensound-scifi.mp3
text
=>Credits (url to music source)
@aapomm
Copy link
Owner

aapomm commented May 15, 2016

@zseiman thank you for this pull request! I appreciate it. Though, there are some concerns that need to be addressed before I can merge this.

css/main.css Outdated

text-align: right;
}
#mute{
Copy link
Owner

@aapomm aapomm May 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zseiman can you move this to utility.css? This is to preserve the files' semantics. I think the mute button is a "utility" and shouldn't belong in main.css. Thanks.

Also, the mute button seems to push the whole console off center. I think it would be better if the button is placed at the top left/right preferably with position: absolute.

@chuckoy
Copy link
Contributor

chuckoy commented May 15, 2016

For linking: fix for issue #10

@zseiman
Copy link
Author

zseiman commented May 15, 2016

Awesome! Yea, I'm happy to try to help. I'm just stoked to have an opportunity to contribute to something. Thanks for the response!

@zseiman zseiman closed this May 16, 2016
@zseiman zseiman reopened this May 16, 2016
=>index.html
added audio tag with autoplay and loop attributes
=> +music.js
added music.js containing 'musicSwitch' function
=>utility.css
added #mute button styling
height: 27px;

text-align: right;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zseiman I think you accidentally removed this. haha

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Sorry about that. Have to work on my code cleanliness. This is my first attempt at contribution and I'm pretty nervous about it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relax. You're doing fine! 👍

fixed bracket in main.css and indentation in music.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants