Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added audio aid to gita storyline #1778

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 35 additions & 3 deletions Gita-Storyline/storyline.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,40 @@
</ul>
</nav>
</header>
<img id="play" onclick="toggleAudio()" src="https://res.cloudinary.com/dchan630/image/upload/v1481676817/play_ierlvl.png" class="img-fluid" alt="Responsive image"><audio id='player' src='flute_music.mp3'></audio>
<img id="pause" onclick="toggleAudio()" src="https://res.cloudinary.com/dchan630/image/upload/v1481676820/pause_nqfaht.png" class="img-fluid" alt="Responsive image">
<img
id="play"
onclick="toggleAudio()"
src="https://res.cloudinary.com/dchan630/image/upload/v1481676817/play_ierlvl.png"
class="img-fluid"
alt="Responsive image"
/><audio id="player" src="flute_music.mp3"></audio>
<img
id="pause"
onclick="toggleAudio()"
src="https://res.cloudinary.com/dchan630/image/upload/v1481676820/pause_nqfaht.png"
class="img-fluid"
alt="Responsive image"
/>
<!-- Add the audio toggle button for conversation -->
<button
onclick="toggleConversationAudio()"
id="conversation-audio-toggle"
style="
background-color: #5a4fcf;
color: white;
padding: 10px 15px;
border: none;
cursor: pointer;
border-radius: 50px;
margin: 7px 7px -10px 30px;
bottom: 5px;
left: 50%;
transform: translateX(-8%);
"
>
Play Conversation Audio
</button>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

<div class="milky-way"></div>
Expand Down Expand Up @@ -230,4 +262,4 @@
</script>
<script src="storyline.js"></script>
</body>
</html>
</html>
Loading