{% extends "base.html" %}

{% block extrahead %}
<meta property="og:title" content="{% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }}">
<meta property="og:description" content="{{ config.site_description }}">
<meta property="og:url" content="{{ config.site_url }}">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="robots" content="index, follow">
{% endblock %}

{% block libs %}
{{ super() }}
<script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
{% endblock %}

{% block _announce %}
<a href="#" target="_blank" style="color:white"></a>
{% endblock %}

{% block content %}
{{ super() }}
{% endblock %}

{% block footer %}
<button id="support-button" onclick="document.getElementById('support-widget').classList.toggle('invisible')">
    &#x1F468;&#x200D;&#x1F4BB; Need help?
</button>
<section id="support-widget" class="md-typeset invisible">
    <h4>Technical support</h4>
    <p>You can get expert guidance on WebAR with encantar.js by contacting <a href="#" class="support-link" id="technical-support-widget" data-goatcounter-click></a>.</p>
    <p>If you have any projects that you want created or modified, then feel free to <a href="#" class="support-link" id="technical-support-consulting-widget" data-goatcounter-click>get in touch</a>.</p>
    <p>I speak English and Portuguese. Falo Inglês e Português.</p>
</section>
<script>
document.addEventListener('DOMContentLoaded', function() {
    var salad = 'nbjmup;tvqqpsuAfodboubs/efw';
    var link = salad.split('').map(c => String.fromCharCode(c.charCodeAt(0)-1)).join('');
    document.querySelectorAll('a.support-link').forEach(function(a) {
        a.href = link;
        if(a.innerText.length == 0)
            a.innerText = link.substring(7);
    });
});
</script>
{{ super() }}
{% endblock %}