Browse Source
* properly pass the messagesOnly to chat * use actual username if embed is not messageonly * mv embed chat to chat-overlay * add new embed chat page * fix router * secure random number for non-secure application! * add chat enable/disable functionality * add username form add customStyles * mv overlay css * add style for embed chat style cleanup * rm username form from chat overlay * refactoring * css cleanup css adjust * minor cleanup * mark the embed chats as readonly and readwrite * replace 301 redirects with 307 * add redirect for the cached address * set insatnce name in chatpull/1289/head
9 changed files with 361 additions and 56 deletions
@ -0,0 +1,26 @@ |
|||||||
|
|
||||||
|
<html> |
||||||
|
<head> |
||||||
|
<base target="_blank" /> |
||||||
|
<meta charset="UTF-8" /> |
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> |
||||||
|
<link href="/js/web_modules/tailwindcss/dist/tailwind.min.css" rel="stylesheet" /> |
||||||
|
<link href="./styles/chat.css" rel="stylesheet" /> |
||||||
|
<link href="./styles/standalone-chat-readonly.css" rel="stylesheet" /> |
||||||
|
</head> |
||||||
|
|
||||||
|
<body> |
||||||
|
<div id="messages-only"></div> |
||||||
|
|
||||||
|
<script type="module"> |
||||||
|
import { h, render } from '/js/web_modules/preact.js'; |
||||||
|
import htm from '/js/web_modules/htm.js'; |
||||||
|
const html = htm.bind(h); |
||||||
|
|
||||||
|
import StandaloneChat from './js/app-standalone-chat.js'; |
||||||
|
render( |
||||||
|
html`<${StandaloneChat} readonly />`, document.getElementById("messages-only") |
||||||
|
); |
||||||
|
</script> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,26 @@ |
|||||||
|
|
||||||
|
<html> |
||||||
|
<head> |
||||||
|
<base target="_blank" /> |
||||||
|
<meta charset="UTF-8" /> |
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> |
||||||
|
<link href="/js/web_modules/tailwindcss/dist/tailwind.min.css" rel="stylesheet" /> |
||||||
|
<link href="./styles/chat.css" rel="stylesheet" /> |
||||||
|
<link href="./styles/standalone-chat-readwrite.css" rel="stylesheet" /> |
||||||
|
</head> |
||||||
|
|
||||||
|
<body> |
||||||
|
<div id="messages-only"></div> |
||||||
|
|
||||||
|
<script type="module"> |
||||||
|
import { h, render } from '/js/web_modules/preact.js'; |
||||||
|
import htm from '/js/web_modules/htm.js'; |
||||||
|
const html = htm.bind(h); |
||||||
|
|
||||||
|
import StandaloneChat from './js/app-standalone-chat.js'; |
||||||
|
render( |
||||||
|
html`<${StandaloneChat} />`, document.getElementById("messages-only") |
||||||
|
); |
||||||
|
</script> |
||||||
|
</body> |
||||||
|
</html> |
@ -1,26 +0,0 @@ |
|||||||
|
|
||||||
<html> |
|
||||||
<head> |
|
||||||
<base target="_blank" /> |
|
||||||
<meta charset="UTF-8" /> |
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> |
|
||||||
<link href="/js/web_modules/tailwindcss/dist/tailwind.min.css" rel="stylesheet" /> |
|
||||||
<link href="./styles/chat.css" rel="stylesheet" /> |
|
||||||
<link href="./styles/standalone-chat.css" rel="stylesheet" /> |
|
||||||
</head> |
|
||||||
|
|
||||||
<body> |
|
||||||
<div id="messages-only"></div> |
|
||||||
|
|
||||||
<script type="module"> |
|
||||||
import { h, render } from '/js/web_modules/preact.js'; |
|
||||||
import htm from '/js/web_modules/htm.js'; |
|
||||||
const html = htm.bind(h); |
|
||||||
|
|
||||||
import StandaloneChat from './js/app-standalone-chat.js'; |
|
||||||
render( |
|
||||||
html`<${StandaloneChat} messagesOnly />`, document.getElementById("messages-only") |
|
||||||
); |
|
||||||
</script> |
|
||||||
</body> |
|
||||||
</html> |
|
@ -0,0 +1 @@ |
|||||||
|
index-standalone-chat-readonly.html |
Loading…
Reference in new issue