Skip to content

Commit

Permalink
Fix: For Kubuś & Norbiś
Browse files Browse the repository at this point in the history
  • Loading branch information
WitaLisek committed May 3, 2024
1 parent 5a5940d commit fff5b58
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions core/templates/core/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
{% block head %}
<script type="module">
const canvas = document.getElementById('starback-bg');
const starback = new Starback(canvas, {
type: 'dot',
quantity: 250,
height: window.innerHeight,
width: window.innerWidth,
backgroundColor: [],
randomOpacity: true,
});
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
window.addEventListener('resize', resizeCanvas);
const starback = new Starback(canvas, {
type: 'dot',
quantity: 250,
height: window.innerHeight,
width: window.innerWidth,
backgroundColor: [],
randomOpacity: true,
});
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
window.addEventListener('resize', resizeCanvas);
</script>

{% endblock %}

{% block content %}
Expand All @@ -39,5 +38,4 @@
</div>
</div>
</div>

{% endblock %}

0 comments on commit fff5b58

Please sign in to comment.