You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
978 B
HTML

{% extends 'layout.html' %}
{% load i18n %}
{% load staticfiles %}
{% block wrap %}
<iframe id="livechat-iframe" src="https://vpn.ccrypto.org/kiwi/?nick={{username}}&theme=ccrelaxed#ccrypto"></iframe>
<script type="text/javascript">
(function() {
function resize() {
var h = (document.body.offsetHeight
- document.getElementById("topbar").offsetHeight
- document.getElementById("header").offsetHeight
- document.getElementById("footer").offsetHeight
- 10);
console.log(h);
document.getElementById("livechat-iframe").style.height = h + "px";
}
window.addEventListener("load", resize);
window.addEventListener("resize", resize);
})();
</script>
{% endblock %}
{# Remove the blue live chat link in the corner #}
{% block livechat_thing %}
{% endblock %}