/
pleblist_host.html
33 lines (33 loc) · 1.34 KB
/
pleblist_host.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "layout.html" %}
{% set active_page = 'pleblist' %}
{% block title %}Pleblist Host{% endblock %}
{% block body %}
<div id="pleblist_host">
<div id="button_div"></div>
<div id="notification"></div>
<div class="ui divided items" id="donationlist"></div>
</div>
{% endblock %}
{% block footer %}
<!--<script async src="https://streamtip.com/socket.io/socket.io.js" type="text/javascript"></script>-->
<script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>
<script type="text/javascript">
secret_password = null;
streamtip_client_id = '{{ streamtip_data.client_id }}';
function streamtip_auth()
{
window.location.href = 'https://streamtip.com/api/oauth2/authorize?response_type=code&client_id={{ streamtip_data.client_id }}&redirect_uri={{ streamtip_data.redirect_uri }}';
}
twitchalerts_client_id = '{{ twitchalerts_data.client_id }}';
function twitchalerts_auth()
{
window.location.href = 'https://www.twitchalerts.com/api/v1.0/authorize?client_id={{ twitchalerts_data.client_id }}&redirect_uri={{ twitchalerts_data.redirect_uri }}&response_type=code&scope=donations.read+donations.create';
}
</script>
{% assets 'pleblist_shared' %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
{% assets 'pleblist_host' %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
{% endblock %}