Added a original url lookup

This commit is contained in:
xemeds
2020-08-25 12:11:00 +03:00
parent a138e24d79
commit e5e9b7a5f4
5 changed files with 59 additions and 5 deletions
+18
View File
@@ -0,0 +1,18 @@
{% extends "layout.html" %}
{% block body %}
<div class="url-form">
<h1>&#60 Original URL &#62</h1>
<input type="text" value="{{ url }}" id="url" class="feedback-input" readonly>
<button onclick="copyURL()" class="button">Copy</button>
</div>
{% endblock %}
{% block script %}
function copyURL() {
var url = document.getElementById("url");
url.select();
url.setSelectionRange(0, 99999)
document.execCommand("copy");
}
{% endblock %}