2022-06-07 09:26:22 +00:00
|
|
|
{%- import 'util/helpers.html' as help -%}
|
2022-10-21 18:39:45 +00:00
|
|
|
{%- import 'html_head.html' as html_head with context -%}
|
2022-03-24 19:44:12 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2022-10-21 18:39:45 +00:00
|
|
|
{% 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>
|
2022-03-24 19:44:12 +00:00
|
|
|
{% include "header.html" %}
|
2022-11-15 19:14:29 +00:00
|
|
|
{% include "modals/expanded_image.html" %}
|
|
|
|
{% include "modals/emoji.html" %}
|
2022-09-27 01:28:39 +00:00
|
|
|
|
2022-09-24 03:49:40 +00:00
|
|
|
<div
|
|
|
|
id="root"
|
|
|
|
data-id="{{v.id}}"
|
|
|
|
data-username="{{v.username}}"
|
2022-11-16 14:38:20 +00:00
|
|
|
data-admin="{{v.admin_level >= PERMS['POST_COMMENT_MODERATION_TOOLS_VISIBLE']}}"
|
2022-09-24 03:49:40 +00:00
|
|
|
data-censored="{{v.slurreplacer}}"
|
|
|
|
data-sitename="{{SITE_NAME}}"
|
2022-09-28 00:06:44 +00:00
|
|
|
data-themecolor="{{v.themecolor}}"
|
|
|
|
data-namecolor="{{v.namecolor}}"
|
|
|
|
data-avatar="{{v.profile_url}}"
|
|
|
|
data-hat="{{v.hat_active}}">
|
2022-03-22 02:35:12 +00:00
|
|
|
</div>
|
2022-09-24 03:49:40 +00:00
|
|
|
<script>window.global = window</script>
|
2022-10-13 18:21:02 +00:00
|
|
|
{% 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 %}
|
2022-09-27 01:28:39 +00:00
|
|
|
<script defer src="{{'js/lozad.js' | asset}}"></script>
|
2022-09-27 22:17:42 +00:00
|
|
|
<script defer src="{{'js/lite-youtube.js' | asset}}"></script>
|
2022-09-13 06:00:02 +00:00
|
|
|
</body>
|