mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2024-12-23 13:49:48 +01:00
eae810c15c
This pulls in our first external javascript dependency! And thus a yarn.lock.
28 lines
736 B
HTML
28 lines
736 B
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
|
|
{% block title %} Brutaldon - toot {% endblock %}
|
|
|
|
{% block page_scripts %}
|
|
<script src="{% static 'js/mousetrap.min.js' %}" type="application/javascript"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="title" >Toot!</h1>
|
|
<div class="box">
|
|
{% include "main/post_partial.html" %}
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block page_scripts_inline %}
|
|
<script type="application/javascript">
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
Mousetrap.bind('ctrl+enter', function(e) {
|
|
var form = document.querySelector('#post-form');
|
|
form.submit();
|
|
return true;
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|