2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-22 13:26:14 +01:00
brutaldon-interfaccia-web-m.../brutaldon/templates/intercooler/post.html

18 lines
679 B
HTML

<div class="modal-background" ></div>
<div class="modal-content">
<div class="box">
{% include "main/post_partial.html" %}
</div>
</div>
<button id="toot-modal-close" class="modal-close is-large" aria-label="close"></button>
<script type="application/javascript">
$("#toot-modal-close").on("click", function () { $("#new-toot-modal").toggleClass("is-active"); });
$(".modal-background").on("click", function () { $("#new-toot-modal").toggleClass("is-active"); });
Mousetrap.bind('ctrl+enter', function(e) {
Intercooler.triggerRequest("#post-form");
});
Mousetrap.bind('esc', function(e) { $("#new-toot-modal").toggleClass("is-active"); });
</script>