summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-05-21 19:58:47 -0400
committersostler <sbostler@gmail.com>2010-05-21 19:58:47 -0400
commit45a59a082d1485d5bf370b79d23d7d535e9fa645 (patch)
treeb1ee72e894589db917686f42e424cab0ced59ab1 /template
parentf7d0209fdb96ca7f02675fb139f5eaf9ade07a82 (diff)
Add tinychat test
Diffstat (limited to 'template')
-rw-r--r--template/chat.st14
-rw-r--r--template/tinychat.st12
2 files changed, 26 insertions, 0 deletions
diff --git a/template/chat.st b/template/chat.st
index 2eb1f30..c54936b 100644
--- a/template/chat.st
+++ b/template/chat.st
@@ -48,10 +48,24 @@ $endif$
}
jQuery(document).ready(startTitleUpdater);
</script>
+ <style>
+ #chat-wrapper {
+ position: absolute;
+ z-index: 1000000;
+ right: 100px;
+ bottom: 100px;
+ height: 40px;
+ width: 300px;
+ };
+ </style>
</head>
<body>
$banner()$
+$if(isadmin)$
+$tinychat()$
+$endif$
<div id="chatrap">
+
<div id="content">
<div id="messagetabs"></div>
<div id="rapper">
diff --git a/template/tinychat.st b/template/tinychat.st
new file mode 100644
index 0000000..58ecba3
--- /dev/null
+++ b/template/tinychat.st
@@ -0,0 +1,12 @@
+$if(user_nick)$
+<script>
+ var tinychat = {
+ room: "dump.fm tinychat"
+ , nick: "$user_nick$"
+ , oper: "none"
+ , urlsuper: "http://dump.fm"
+ };
+</script>
+<script src="http://tinychat.com/js/embed.js"></script>
+<div id="chat-wrapper"><h3>Tinychat Friends<h3><div id="client"></div></div>
+$endif$