Skip to content

Commit

Permalink
Merge 7928cef into fc5cc5d
Browse files Browse the repository at this point in the history
  • Loading branch information
rstorey committed May 24, 2019
2 parents fc5cc5d + 7928cef commit 89a89f1
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions concordia/templates/transcriptions/asset_detail.html
Expand Up @@ -32,10 +32,11 @@
{% flag_enabled 'ADVERTISE_ACTIVITY_UI' as ADVERTISE_ACTIVITY_UI %}

{% if ADVERTISE_ACTIVITY_UI and activity_mode %}
<div class="alert alert-dark alert-dismissible w-100" role="alert">
<a href="{% url 'action-app' %}#mode={{ activity_mode }}&asset={{ asset.pk }}" target="_blank">
<div class="alert alert-dark alert-dismissible w-100 text-center" id="new-interface-banner" role="alert" hidden>
<a class="btn btn-success" href="{% url 'action-app' %}#mode={{ activity_mode }}&asset={{ asset.pk }}" target="_blank">
Try this page in our new interface
</a>
<button type="button" class="btn btn-dark" id="no-interface-banner">Don't display this again</button>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
Expand Down Expand Up @@ -517,6 +518,18 @@ <h5 id="captcha-modal-title" class="modal-title">Please confirm you are not a ro
<script src="https://cdnjs.cloudflare.com/ajax/libs/openseadragon/2.4.0/openseadragon.min.js" integrity="sha256-grVJpqgDSGBx1q2llmvY+J5zU9hEHbO7UvftFY2bK1w=" crossorigin="anonymous"></script>
<script src="{% static 'js/contribute.js' %}"></script>
<script src="{% static 'js/asset-reservation.js' %}"></script>
<script>
if (
!localStorage.getItem("no-interface-banner") &&
!(window.screen.width < 1024 || window.screen.height < 768)
) {
$("#new-interface-banner").attr("hidden", false);
}
$("#no-interface-banner").click(function() {
localStorage.setItem("no-interface-banner", true);
$("#new-interface-banner").attr("hidden", true);
});
</script>
<script>
var seadragonViewer = OpenSeadragon({
id: "asset-image",
Expand Down

0 comments on commit 89a89f1

Please sign in to comment.