permalink option

This commit is contained in:
mi
2025-11-15 18:04:49 +10:00
parent 742ff0e553
commit 866bfe4d6d
7 changed files with 143 additions and 9 deletions

View File

@@ -207,6 +207,9 @@
{% if embed_enabled %}
<script src="{{ url_for('static', filename='js/embed.js') }}"></script>
{% endif %}
{% if permalink_enabled %}
<script src="{{ url_for('static', filename='js/permalink.js') }}"></script>
{% endif %}
{% block extra_js %}{% endblock %}
</body>
</html>

View File

@@ -131,9 +131,14 @@
</div>
</div>
{% if embed_enabled %}
<div class="comic-embed-section">
{% if embed_enabled or permalink_enabled %}
<div class="comic-share-section">
{% if permalink_enabled %}
<button class="btn-permalink" id="permalink-button" data-comic-number="{{ comic.number }}" aria-label="Copy permalink to this comic">Copy Permalink</button>
{% endif %}
{% if embed_enabled %}
<button class="btn-embed" id="embed-button" data-comic-number="{{ comic.number }}" aria-label="Get embed code for this comic">Share/Embed</button>
{% endif %}
</div>
{% endif %}

View File

@@ -91,9 +91,14 @@
</div>
</div>
{% if embed_enabled %}
<div class="comic-embed-section">
{% if embed_enabled or permalink_enabled %}
<div class="comic-share-section">
{% if permalink_enabled %}
<button class="btn-permalink" id="permalink-button" data-comic-number="{{ comic.number }}" aria-label="Copy permalink to this comic">Copy Permalink</button>
{% endif %}
{% if embed_enabled %}
<button class="btn-embed" id="embed-button" data-comic-number="{{ comic.number }}" aria-label="Get embed code for this comic">Share/Embed</button>
{% endif %}
</div>
{% endif %}