summaryrefslogtreecommitdiff
path: root/priv/discord_activity.html.eex
blob: 83bda0d555b815323dcd15752cba9e0d471d9e81 (plain)
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex, nofollow">
    <title>discord activity | mediasync</title>
    <style>
        body {
            overflow: hidden;
        }
        iframe {
            border: none;
        }
        html, body, iframe {
            margin: 0;
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
    <iframe src="/.proxy/?<%= Mediasync.Constants.query_param_discord_activity_inner() %>"></iframe>
    <script>
        const DISCORD_CLIENT_ID = "<%= Application.fetch_env!(:mediasync, :discord_client_id) %>";
    </script>
    <script src="/static/discord-embedded-app-sdk/Discord.js" type="module"></script>
    <script src="/static/discord_activity.js" type="module"></script>
</body>
</html>