Added DMCA page

This commit is contained in:
Dominik V. Salonen 2015-12-28 16:38:13 +01:00
parent a8e6a09aa3
commit 170c26eaac
4 changed files with 18 additions and 0 deletions

3
run.py
View File

@ -119,6 +119,9 @@ def privacy():
@app.route('/faq') @app.route('/faq')
def faq(): def faq():
return render_template('faq.html', page=config["SITE_DATA"]) return render_template('faq.html', page=config["SITE_DATA"])
@app.route('/dmca')
def dmca():
return render_template('dmca.html', page=config["SITE_DATA"])
# Static resources that browsers spam for # Static resources that browsers spam for
@app.route('/favicon.ico') @app.route('/favicon.ico')

View File

@ -114,4 +114,10 @@ ul {
ul li:before { ul li:before {
content: "- "; content: "- ";
}
.dmca {
width: 100%;
height: auto;
padding: 10px;
} }

6
templates/dmca.html Normal file
View File

@ -0,0 +1,6 @@
{% extends "regular.html" %}
{% block body %}
<video class="dmca" autoplay loop>
<source src="{{ url_for('static', filename='media/DMCA.webm') }}">
</video>
{% endblock %}

View File

@ -25,6 +25,9 @@
<li> <li>
<a href="/faq">FAQ</a> <a href="/faq">FAQ</a>
</li> </li>
<li>
<a href="/dmca">DMCA</a>
</li>
</ul> </ul>
<script> <script>
document.getElementById("file").onchange = function() { document.getElementById("file").onchange = function() {