alexa_browser_client/templates/alexa_browser_client/alexa-browser-client.html
{% load static from staticfiles %}
<html>
<head>
<title>Alexa Browser Client</title>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script src="{% static 'main.js' %}"></script>
</head>
<body>
<h1 id="status-label" style="font-size: 60px;"></h1>
<button>Begin</button>
<script type="text/javascript">
document.querySelector('button').addEventListener('click', function(event) {
event.target.remove();
AlexaBrowserClient({
loginUrl: '{% url "refreshtoken" %}',
websocketUrl: '{{ websocket_url }}',
statusLabel: document.getElementById('status-label')
});
});
</script>
</body>
</html>