forked from MarseyWorld/MarseyWorld
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
{%- import 'util/helpers.html' as help -%}
|
|
{%- 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", none, "", false)}}
|
|
<body>
|
|
{% include "header.html" %}
|
|
{% include "expanded_image_modal.html" %}
|
|
{% include "emoji_modal.html" %}
|
|
|
|
<div
|
|
id="root"
|
|
data-id="{{v.id}}"
|
|
data-username="{{v.username}}"
|
|
data-admin="{{v.admin_level >= PERMS['ADMIN_MOP_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>
|