summaryrefslogtreecommitdiff
path: root/template/chat.st
blob: c54936bf39d5cc5f4b3b76263266bc83b106334d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!--/*

     _____          ___           ___           ___         ___         ___     
    /  /::\        /__/\         /__/\         /  /\       /  /\       /__/\    
   /  /:/\:\       \  \:\       |  |::\       /  /::\     /  /:/_     |  |::\   
  /  /:/  \:\       \  \:\      |  |:|:\     /  /:/\:\   /  /:/ /\    |  |:|:\  
 /__/:/ \__\:|  ___  \  \:\   __|__|:|\:\   /  /:/~/:/  /  /:/ /:/  __|__|:|\:\ 
 \  \:\ /  /:/ /__/\  \__\:\ /__/::::| \:\ /__/:/ /:/  /__/:/ /:/  /__/::::| \:\
  \  \:\  /:/  \  \:\ /  /:/ \  \:\~~\__\/ \  \:\/:/   \  \:\/:/   \  \:\~~\__\/
   \  \:\/:/    \  \:\  /:/   \  \:\        \  \::/     \  \::/     \  \:\      
    \  \::/      \  \:\/:/     \  \:\        \  \:\      \  \:\      \  \:\     
     \__\/        \  \::/       \  \:\        \  \:\      \  \:\      \  \:\    
                   \__\/         \__\/         \__\/       \__\/       \__\/    

(c)2010 dump.fm -->

<html>
<head>
  <title>dump.fm</title>
$head()$

  <link rel="stylesheet" type="text/css" href="/static/css/dump.css">
  <script type="text/javascript" src="/static/js/invalid_domains.js"></script>
  <script type="text/javascript" src="/static/webcam/webcam.js"></script>
  <script type="text/javascript" src="/static/js/ajaxupload.js"></script>
$if(user_nick)$
  <script type="text/javascript" src="/json/$user_nick$/favorites"></script>
$endif$
  <script>
    jQuery(document).ready(initChat);
    var Nick = $json_user_nick$;
    var Room = $json_room_key$;
    var Timestamp = $timestamp$;
    var Version = $version$;
$if(isadmin)$
    var IsAdmin = true;
$else$
    var IsAdmin = false;
$endif$
    if (Nick) {
      jQuery(document).ready(function() { setupUpload('upload', Room); });
    }
    function showAlert() { alert('MUST LOGIN'); }
    var newwindow;
    function pop(url) {
      newwindow=window.open(url,'name','height=50,width=400,left=20,top=20,location=0,status=0,scrollbar=0,resizable=0');
      if (window.focus) {newwindow.focus()}
    }
    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">
        </div>
        <div id="userList">
          $users: { u |
          <div class="username"><a href="/$u.nick$" target="_blank">
          $u.score_ent$
              $if(u.avatar)$
              <img src="$u.avatar$" width="50" height="50">
              $else$
              <img src="/static/img/noinfo.png">
              $endif$
              $u.nick$</a><br>
            </div>
          }$
	</div>
        <div id="messagePane">
          <div id="messageList">
$messages: { m |
            <div class="msgDiv oldmsg dump $if(m.favorited)$favorite$endif$" id="message-$m.message_id$" nick="$m.nick$">
              <span class="nick">
                <b><a href="http://dump.fm/$m.nick$">$m.nick$</a></b>
  $if(m.favorited)$
    <img src="/static/img/thumbs/chatheartover.gif" class="chat-thumb" onclick="Tag.favorite(this)">
  $else$
    <img src="/static/img/thumbs/smallheart.gif" class="chat-thumb" onclick="Tag.favorite(this)">
  $endif$ 
              </span>
            <span class="content">$m.content$</span>
            </div>
}$
            <hr />
          </div>
          <div id="msgInputDiv">
              <div id="msginputrapper">  <input id="msgInput" class="msgInput" type="input" />    </div>   
                <input id="msgSubmit" type="submit" value="Send"/>
   
                <input id="upload" value="Upload" type="submit">
                <input id="webcam-button-upload" value="Webcam" type="submit">
                <input id="webcam-button-snap" value="Send Pic" type="submit" class="invisible blink">  
                             <button id="palette-button"><img src="/static/img/palette.gif"></button>
                <div id="trophy" style="display:none;"><a href="javascript:pop('http://www.likeneveralways.com/trash/count/index.php');"class="tooltip" title="Contest Counter"><img src="/static/img/trophyicon.gif"></a></div>
              </div><div id="effects-msg"class="invisible">click on your face for effects!</div>
          </div>

        </div>
      </div>        
    </div>
  </div>
  <div id="palette"><div id="palette-thumbs"></div></div>
  <div id="footerc">
    <p>
$footer()$
    <p>
  </div>
$preload()$
</body>
</html>