2024-02-19 20:43:39 +09:00
|
|
|
{% extends "layout.html" %}
|
2024-03-31 14:45:26 +09:00
|
|
|
{% block title %}Krll URL Shortener{% endblock %}
|
2024-02-19 20:43:39 +09:00
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
{{ super() }}
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', path='/style.css') }}">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<main>
|
|
|
|
<div class="input-container">
|
|
|
|
<input id="url" placeholder="Loooooooooooong URL" />
|
|
|
|
<button id="to-shorten-btn">Shorten</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="result-container" id="result-container">
|
|
|
|
<p id="error">Your URL is invalid!</p>
|
|
|
|
<p id="short-url"></p>
|
|
|
|
<p id="copied">Copied!</p>
|
|
|
|
<img id="qr-code" />
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
2024-05-05 16:03:06 +09:00
|
|
|
<script>
|
|
|
|
const host = "{{ host }}";
|
|
|
|
</script>
|
|
|
|
|
2024-02-19 20:43:39 +09:00
|
|
|
<script src="{{ url_for('static', path='/script.js') }}"></script>
|
|
|
|
{% endblock %}
|