{% extends "base.html" %}
{% block title %}Contact{% endblock %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<h2 class="header">Contact Us</h2>
<p>This is the contact page.</p>
<button type="button" class="btn btn-outline-danger btn-lg" id="btn">Danger <span id="display">0</span></button>
<script type="text/javascript">
    let count = 0;
    let btn = document.getElementById("btn");
    let disp = document.getElementById("display");
     
    btn.onclick = function () {
                count++;
    disp.innerHTML = count;
    if (count >= 10) {
                window.location.href = "/"; // Aizvietojiet ar vēlamo URL
            }
    }
</script>
{% endblock %}