{% extends "bootstrap/base.html" %}
|
|
{% block title %}tia.paste{% endblock %}
|
|
|
|
{% block styles %}
|
|
{{super()}}
|
|
<link rel="stylesheet" href="{{url_for('.static', filename='style.css')}}">
|
|
{% endblock %}
|
|
|
|
{% block navbar %}
|
|
{% include "fragments/navbar.j2" %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<iframe id="apps" src="https://technicalincompetence.club/frame" width="305" height="400" class="shadow-lg overlay-frame" style="display: none;"></iframe>
|
|
<div id="overlay" style="display: none;" onclick="showApps();"></div>
|
|
<div class="container" style="margin-top: 15px">
|
|
<div id="success-alert" class="alert alert-success" role="alert" style="display: none;"></div>
|
|
<div id="error-alert" class="alert alert-danger" role="alert" style="display: none;"></div>
|
|
<form>
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-12">
|
|
<label>Enter some text:</label>
|
|
<div id="editor"></div>
|
|
<br>
|
|
<button type="button" class="btn btn-primary" id="submit">Save Paste</button>
|
|
<br>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script src="{{url_for('.static', filename='editor.bundle.js')}}"></script>
|
|
<script>
|
|
function showApps () {
|
|
$("#apps").toggle();
|
|
$("#overlay").toggle();
|
|
}
|
|
</script>
|
|
{% endblock %}
|