3 Ajax Chat for TRPG ver.2.6
4 (c)2007-2009 Cake All Rights Reserved.
5 Mail : cake_67@users.sourceforge.jp
6 Home : http://trpgtools-onweb.sourceforge.jp/
9 * JaveScriptライブラリ:チャット画面
14 <script type="text/javascript">
18 var deleteLastPastLog = '<?php print DELETE_LAST_PASTLOG;?>';
19 var maxNum = '<?php print MAX_NUM;?>';
20 var dateD = (new Date()).getTime();
21 var datetimeFormat = '<?php print DATETIME_FORMAT; ?>';
22 var showDatetime = '<?php print SHOW_DATETIME; ?>';
23 var showDatetimeYear = '<?php print SHOW_DATETIME_YEAR; ?>';
24 var showDatetimeSecond = '<?php print SHOW_DATETIME_SECOND; ?>';
25 var showMobileIcon = '<?php print SHOW_MOBILE_COM;?>';
26 var statusColor = '<?php print STATUS_COLOR; ?>';
27 var logfile = '<?php print RECENT_LOG;?>';
28 var mobileMark = '<?php show_mobile_icon(MOBILE_ICON, '', '', '', 'M', '', ''); ?>';
30 var userSeSrc = '<?php print SE_USER; ?>';
31 var systemSeSrc = '<?php print SE_SYSTEM; ?>';
32 var userSeObj = new Image();
33 var systemSeObj = new Image();
34 userSeObj.src = userSeSrc;
35 systemSeObj.src = systemSeSrc;
42 <?php if (UNPUBLIC_LAST_PASTLOG): ?>
46 if (OFFWINDOW_MSG || (UNPUBLIC_LAST_PASTLOG && NO_LAST_PASTLOG_MSG)) {
47 print ' window.parent.document.getElementById("offline_win").style.display = "none";';
54 Timer = setInterval('getLog(true)', getdata_on);
58 Timer = setInterval('getLog(true)', getdata_off);
60 if (OFFWINDOW_MSG || (UNPUBLIC_LAST_PASTLOG && NO_LAST_PASTLOG_MSG)) {
61 print ' window.parent.document.getElementById("offline_win").style.display = "";';
64 window.location.reload();
69 <?php if (!UNPUBLIC_LAST_PASTLOG): ?>
72 Timer = setInterval('getLog(true)', getdata_off);
75 $("#main_console").after('<?php print NO_LAST_PASTLOG_MSG; ?>');
83 $('#line_hr').click(function(ev) {
84 var select = $('select#hr option:selected').next().val();
86 select = '<?php print MAIN_BREAK_STYLE_DEFAULT; ?>';
88 lineSpaceHrChange(select);
90 $('select#hr').change(function(ev) {
91 var select = lineSpaneHrSelectChange($(':selected').val());
92 lineSpaceHrChange($(':selected').val());
97 $("#seConfig").hide();
98 $("#seSelect").hide();
99 if ($("#seSetting").attr("checked")) {