forked from MarseyWorld/MarseyWorld
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
{%- import 'util/macros.html' as macros with context -%}
|
|
{%- import 'html_head.html' as html_head with context -%}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
{% if SITE == 'localhost' %}
|
|
{% set csp="script-src 'self' 'unsafe-inline' rdrama.net; connect-src 'self'; object-src 'none';" %}
|
|
{% else %}
|
|
{% set csp=none %}
|
|
{% endif %}
|
|
{{html_head.html_head(true, true, true, csp, "Chat", false)}}
|
|
<body>
|
|
{% include "header.html" %}
|
|
{% include "modals/expanded_image.html" %}
|
|
{% include "modals/emoji.html" %}
|
|
|
|
<div
|
|
id="root"
|
|
data-id="{{v.id}}"
|
|
data-username="{{v.username}}"
|
|
data-admin="{{v.admin_level >= PERMS['POST_COMMENT_MODERATION_TOOLS_VISIBLE']}}"
|
|
data-censored="{{v.slurreplacer}}"
|
|
data-sitename="{{SITE_NAME}}"
|
|
data-themecolor="{{v.themecolor}}"
|
|
data-namecolor="{{v.namecolor}}"
|
|
data-avatar="{{v.profile_url}}"
|
|
data-hat="{{v.hat_active}}">
|
|
</div>
|
|
<script>window.global = window</script>
|
|
{% if SITE == 'localhost' %}
|
|
<script defer src="https://rdrama.net/assets/js/chat_done.js"></script>
|
|
{% else %}
|
|
<script defer src="{{'js/chat_done.js' | asset}}"></script>
|
|
{% endif %}
|
|
<script defer src="{{'js/lozad.js' | asset}}"></script>
|
|
<script defer src="{{'js/lite-youtube.js' | asset}}"></script>
|
|
</body>
|