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

FEAT: ADDED BBC NEWS STREAMING AUDIO #149

Merged
merged 1 commit into from
Jan 13, 2024
Merged
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
18 changes: 11 additions & 7 deletions hallelujah/templates/main/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
{% if not config.SYS_LOCAL_DEPLOY %}
<div class="container-fluid">
<audio preload="auto" controls="controls" autoplay="autoplay" type="audio/mpeg">
<source src="https://stream.live.vc.bbcmedia.co.uk/bbc_world_service" type="audio/mpeg">
</audio>
</div>

<div class="container-fluid mt-5">
{% else %}
<div class="container-fluid pt-2">
{% endif %}
<form method="post" role="form" class="input-group mb-3" action="{{ url_for('main.search', _external=True) }}">
<input class="form-control" type="search" id="search" name="search" placeholder="Search" required>
<button class="btn btn-primary" type="submit"><i class="bi-search"></i></button>
</form>
</div>

<!--
<div class="container-fluid mt-5 d-none">
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=337 height=280 src="//www.bbc.co.uk/sounds/player/bbc_world_service"></iframe>
</div>
-->

<div class="container-fluid mt-5">
<form method="post" role="form" class="form-check form-switch mb-3" id="toggleForm" action="{{ url_for('main.theme_switch', _external=True) }}">
<input class="form-check-input" type="checkbox" id="toggle" name="toggle"{% if request.cookies.get('theme') and request.cookies['theme'] != config.SYS_THEME_DAY %} checked="y"{% endif %}>
<label class="form-check-label mx-1" for="toggle"><i class="bi-moon-stars mx-1"></i>Night Mode</label>
<label class="form-check-label mx-1" for="toggle"><strong><i class="bi-moon-stars mx-1"></i></strong></label>
</form>
</div>

Expand Down