-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathchat.html
935 lines (681 loc) · 22.5 KB
/
chat.html
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="initial-scale=1.0">
<title>どどんとふ</title>
<style type="text/css">
<!--
body { font-size: 100%; }
#modal-content{
width:50%;
margin:0;
padding:10px 20px;
border:2px solid #aaa;
background:#fff;
position:fixed;
display:none;
z-index:2;
}
.button-link{
color:#00f;
text-decoration:underline;
}
.button-link:hover{
cursor:pointer;
color:#f00;
}
#modal-overlay{
z-index:1;
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:120%;
background-color:rgba(0,0,0,0.75);
}
select{
height:1.5em;
font-size:0.9em;
}
#roomSelectForm{
display: block;
}
#messages {
font-size:1.0em;
}
//-->
</style>
<script type="text/javascript" src="getInfo/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
var params = {}
window.onload = function onLoad() {
changeDisplay(false);
params = getQueryParams();
centeringMessages();
checkClient( displayRoomInfo );
}
function getQueryParams() {
var result = new Object();
var queryTextOriginal = document.location.search;
if (queryTextOriginal.length <= 0) {
return result;
}
// 最初の1文字 (?記号) を除いた文字列を取得する
var queryText = queryTextOriginal.substring(1);
// クエリの区切り記号 (&) で文字列を配列に分割する
var parameters = queryText.split('&');
for (var i = 0; i < parameters.length; i++) {
// パラメータ名とパラメータ値に分割する
var element = parameters[i].split('=');
var paramName = decodeURIComponent(element[0]);
var paramValue = decodeURIComponent(element[1]);
// パラメータ名をキーとして連想配列に追加する
result[paramName] = decodeURIComponent(paramValue);
}
return result;
}
function trace( obj ) {
var text = '';
if( typeof(obj) == 'object' ){
for(var key in obj){
text += key + ' : ' + obj[key] + "\r\n";
}
}else{
text = obj;
}
console.log(text);
return;
};
function checkClient(action) {
url = getServerUrl() + "?webif=getBusyInfo&callback=?";
trace(url);
jQuery.getJSON(url, function(data) {
trace(data);
if( data.result != "OK" ) {
shutdown( "ERROR: " + data.result );
return;
}
if( data.loginCount >= data.maxLoginCount ) {
shutdown( "server FULL !!" );
return;
}
action();
});
}
function displayRoomInfo() {
url = getServerUrl() + "?webif=getRoomList&callback=?"
trace(url);
jQuery.getJSON(url, getRoomListResult);
}
var roomInfos = [];
function getRoomListResult(data) {
trace(data);
if( data.result != "OK" ) {
alert( "ERROR: " + data.result );
return;
}
roomInfos = data.playRoomStates;
for(var i in roomInfos){
var info = roomInfos[i];
if( isEmptyRoom(info) ) {
continue;
}
trace(info);
var title = info.index + ":" + info.playRoomName
trace("title : " + title);
var roomNo = parseInt(info.index);
$('#roomNo').append( $('<option>').html(title).val(roomNo) );
}
initRoom();
}
function isEmptyRoom(info) {
return ( info.lastUpdateTime == "" );
}
function initRoom() {
var roomNo = params["r"];
var roomPass = params["p"];
if( (roomNo == null) || (roomNo == undefined)) {
$('#preloader').hide();
return;
}
$("#roomNo").val( roomNo );
$("#roomPass").val(roomPass);
var color = getBeginChatColor();
onChangeColor(color);
beginClient();
}
function getBeginChatColor() {
var color = getCookie('color');
if( color ) {
return color;
}
color = chatFontColor;
return color;
}
function selectRoomNo() {
var roomNo = $("#roomNo").val();
var roomPass = $("#roomPass").val();
trace("roomNo : " + roomNo);
trace("roomPass : " + roomPass);
url = location.href
url = url.replace(/\?r=(\d*)(&p=(.*))?/g, '');
if( /\?/.exec( url ) == null ) {
url += '?';
} else {
url += '&';
}
if(roomPass == null || roomPass == ""){
url += 'r=' + roomNo;
}else{
url += 'r=' + roomNo + '&p=' + roomPass;
}
trace(url);
location.href = url
}
function getServerUrl() {
//var url = "http://localhost/";
var url = "./";
url = url.replace(/DodontoF.swf$/, "");
url = url.replace(/DodontoFServer.rb.*$/, "");
url = url.replace(/\/$/, "");
url = url + "/DodontoFServer.rb";
return url
}
var lastTime = 0;
function beginClient() {
initClient();
toggleRoomSelect();
toggleFileUpload();
getChatLog();
}
var autoReloadTimer = 0;
function setAutoReload() {
clearAutoReload();
$("#reloadButton").css("display", "inline");
if( $("#autoReload").attr("checked") ) {
getChatLog();
autoReloadTimer = setInterval(getChatLog, 3000);
$("#reloadButton").css("display", "none");
}
}
function clearAutoReload() {
if( autoReloadTimer == 0 ) {
return;
}
clearInterval(autoReloadTimer);
autoReloadTimer = 0;
}
function getDisplayTarget() {
return $('#text,#sendButton,#messages,#gameType,#diceHelp,#diceHelpOpen,#bottomSpace');
}
function getAntiDisplayTarget() {
return $('#preloader');
}
function changeDisplay( isEnable ) {
if( isEnable ) {
getDisplayTarget().show();
getAntiDisplayTarget().hide();
} else {
getDisplayTarget().hide();
getAntiDisplayTarget().show();
}
centering();
}
function shutdown(message) {
alert(message);
getDisplayTarget().hide();
getAntiDisplayTarget().hide();
}
var diceInfos = {};
function initClient() {
url = getServerUrl() + "?webif=getServerInfo&dice=true&callback=?"
trace(url);
jQuery.getJSON(url, function(data) {
//trace(data);
if( data.result != "OK" ) {
alert( "ERROR: " + data.result );
return;
}
var infos = data.diceBotInfos;
if( infos == null ) {
return;
}
var baseDiceBotHelp = '';
for(var i in infos){
var info = infos[i];
if( info.gameType == "BaseDiceBot" ) {
baseDiceBotHelp = info.info;
continue;
}
$('#gameType').append($('<option>').html(info.name).val(info.gameType));
diceInfos[info.gameType] = info;
}
diceInfos['DiceBot'].info = baseDiceBotHelp;
selectRoomDefaultDiceBot();
});
}
function selectRoomDefaultDiceBot() {
var info = getRoomInfo();
if( info != null ) {
$("#gameType").val( info.gameType );
}
changeGameType();
}
function getRoomInfo() {
for(var i in roomInfos){
var info = roomInfos[i];
var roomNo = parseInt(info.index);
if( $("#roomNo").val() == roomNo ) {
return info;
}
}
return null;
}
function changeGameType() {
//trace(diceInfos);
var gameType = $("#gameType").val();
var info = diceInfos[gameType];
if( info == null ) {
return;
}
$("#modal-content").height('auto');
$('#diceHelp').text( info.info );
}
//./DodontoFServer.rb?webif=chat&room=10&time=0
function getChatLog() {
trace("getChatLog Begin");
roomNo = $("#roomNo").val();
roomPass = $("#roomPass").val();
if(roomPass != "" || roomPass == null){
url = getServerUrl() + "?webif=chat&room=" + roomNo + "&password=" + encodeURIComponent(roomPass) + "&time=" + lastTime;
}else{
url = getServerUrl() + "?webif=chat&room=" + roomNo + "&time=" + lastTime;
}
trace(url);
jQuery.getJSON(url, getChatLogResult);
trace("getChatLog End");
}
function getChatLogResult(data) {
trace(data);
if( data == null ) {
return;
}
if( data.result != "OK" ) {
alert( "ERROR: " + data.result );
return;
}
var chats = data.chatMessageDataLog;
if( chats == null ) {
return;
}
if( chats.length == 0 ) {
return;
}
changeDisplay(true);
//[1231768657.515,{"senderName":"name","uniqueId":"1231768388.609","color":"000000","message":"Welcome."}]
var html = "";
for (var i = 0; i < chats.length; i++) {
var data = chats[i];
var time = data[0];
if( time <= lastTime ) {
continue;
}
lastTime = time;
var params = data[1];
var name = params.senderName;
var color = params.color;
var message = getPrintMessage(params.message);
html = getMessageHtml(color, name, message) + html;
}
printMessage(html);
trace(lastTime);
}
function printMessage(html) {
trace( html );
$("#messages").prepend(html);
$("#messages").scrollTop(100000000);
}
var cutInReg = /###CutInCommand:(.+?)###(.+)/;
var soundReg = /^###CutInMovie###(.+)/;
function getPrintMessage(message) {
var result = cutInReg.exec(message);
if( result == null ) {
//下のifは、BGM/SE再生用です
if(soundReg.test(message)){
message = message.replace('###CutInMovie###', '');
cutinData = JSON.parse(message);
return cutinData.message + '<br />' + getPlayer(cutinData);
}
return message;
}
var json = result[2];
data = JSON.parse( json );
var result = data.chatMessage;
trace(result);
return result;
}
function getPlayer(jsonData){
var source = jsonData.soundSource;
var id = jsonData.mx_internal_uid;
var isLoop = jsonData.isSoundLoop;
var audioTag;
if(isLoop){
audioTag = '<audio src="'+source+'" id="'+id+'" controls loop preload="metadata">';
}else{
audioTag = '<audio src="'+source+'" id="'+id+'" controls preload="metadata">';
}
return audioTag;
}
function getMessageHtml(color, name, message) {
return '<div style="color:#' + color + ';" >' + '<b>' + name + '</b><br />' + message + '</div><hr>';
}
function sendMessage () {
var text = $("#text").val();
$("#text").val("");
if( text == '' ) {
return;
}
text = getSendMessage(text);
trace("text : " + text);
var name = $("#name").val();
var gameType = $("#gameType").val();
var color = chatFontColor.replace("#", "");
url = getServerUrl() + "?webif=talk&room=" + roomNo + "&password=" + roomPass + "&name=" + name + "&message=" + text + "&bot=" + gameType +"&color=" + color + "&callback=?"
trace( url );
jQuery.getJSON(url, function(data){
})
.done(function(json) {
getChatLog();
})
.error(function(jqXHR, textStatus, errorThrown) {
$("#text").val(text);
//console.log("エラー:" + textStatus);
//console.log("テキスト:" + jqXHR.responseText);
var html = getMessageHtml("000000", "System", "==Send Message Failed==");
printMessage(html);
});
}
function getSendMessage(text) {
text = text.replace(/[A-Za-z0-9]/g, function(s) {
return String.fromCharCode(s.charCodeAt(0) - 0xFEE0);
});
zenkaku = "@「」[]、,#$()*/+-=><";
hankaku = "@[][],,#$()*/+-=><";
var tr = buildTr(zenkaku, hankaku);
text = tr(text);
text = encodeURIComponent(text)
return text;
}
function buildTr(from, to) {
var replaces = {};
var exp = '';
for (var i in from) {
var c = from[i];
replaces[c] = to.substr(i, 1);
exp += '[]-^\\'.indexOf(c) < 0 ? c : '\\' + c;
}
var re = RegExp('[' + exp + ']', 'g');
function replacer(c) { return replaces[c]; }
return function(str) { return str.replace(re, replacer); };
}
$(function(){
$("#diceHelpOpen").click( function(){
$("body").append('<div id="modal-overlay"></div>');
$("#modal-overlay").fadeIn("slow");
centeringModalSyncer();
$("#modal-content").fadeIn("slow");
var closeAction = function(){
$("#modal-content,#modal-overlay").fadeOut("slow", function(){
$("#modal-overlay").remove();
})};
$("#modal-overlay,#modal-close").unbind().click(closeAction);
$("#modal-content").unbind().dblclick(closeAction);
});
//リサイズされたら、センタリングをする
$(window).resize(centering);
});
$(function($){
$("#text").keydown(function(e){
if(e.ctrlKey && e.keyCode === 13){
sendMessage();
return false;
}
});
});
function toggleRoomSelect(){
toggleForm("#roomSelectForm", "#toggleRoomSelectForm", 'Room選択を開く', 'Room選択を閉じる');
}
function toggleFileUpload(){
toggleForm("#fileUpload", "#toggleFileUploadForm", '画像', '画像アップロードを閉じる');
}
function toggleForm(targetId, buttonId, openMessage, closeMessage){
var isOpen = $(targetId).css("display") != "none" ? true : false;
if( isOpen ) {
$(targetId).css("display", "none");
$(buttonId).html( openMessage );
} else {
$(targetId).css("display", "block");
$(buttonId).html( closeMessage );
}
}
//センタリングをする関数
function centering(){
centeringMessages();
centeringModalSyncer();
}
function centeringMessages() {
var height = $(window).height();
var diff = height - $("#topSpace").height() - $("#bottomSpace").height();
$("#messages").height(diff - 40);
}
function centeringModalSyncer() {
adjustModalHeight()
var width = $(window).width();
var height = $(window).height();
var contentWidth = $("#modal-content").outerWidth({margin:true});
var contentHeight = $("#modal-content").outerHeight({margin:true});
//コンテンツ(#modal-content)を真ん中に配置するのに、端から何ピクセル離せばいいか?を計算
var pxleft = ((width - contentWidth) / 2);
var pxtop = ((height - contentHeight) / 2);
$("#modal-content").css({"left": pxleft + "px"});
$("#modal-content").css({"top": pxtop + "px"});
}
function adjustModalHeight() {
var target = $("#modal-content");
target.height('auto');
target.width('auto');
var height = $(window).height();
if( height < target.height() ) {
target.height(height - 50);
}
var width = $(window).width();
if( width < target.width() ) {
target.width(width - 50);
}
}
var chatFontColor = "#BF9000";
$(document).ready(function() {
$('label#color').simpleColorPicker({ onChangeColor: onChangeColor});
});
function onChangeColor(color) {
color = color.toUpperCase();
trace(color);
$('label#color').css("color", color);
$('#name').css("color", color);
$('#text').css("color", color);
setCookie('color', color);
chatFontColor = color;
trace(chatFontColor);
}
// クッキー保存 setCookie(クッキー名, クッキーの値, クッキーの有効日数)
function setCookie(key, value, expiredays) {
// pathの指定
var path = location.pathname;
trace("path : " + path);
// pathをフォルダ毎に指定する場合のIE対策
var paths = path.split("/");
if(paths[paths.length-1] != "") {
paths[paths.length-1] = "";
path = paths.join("/");
}
// 有効期限の日付
var extime = new Date().getTime();
var cltime = new Date(extime + (60 * 60 * 24 * 1000 * expiredays));
var exdate = cltime.toUTCString();
// クッキーに保存する文字列を生成
var string = key +"="+ escape(value);// 値はエンコードしておく
string += "; path="+ path;
string += "; ";
if(expiredays) {
string += "expires=" + exdate + "; ";
}
// クッキーに保存
document.cookie = string;
}
// クッキーの値を取得 getCookie(クッキー名)
function getCookie(key) {
if( document.cookie.length <= 0 ) {
return "";
}
// クッキーの値を取り出す
var startIndex = document.cookie.indexOf(key + "=");
if(startIndex == -1) {
return "";
}
startIndex += key.length + 1;
var endIndex = document.cookie.indexOf(";", startIndex);
if( endIndex == -1) {
endIndex = document.cookie.length;
}
// 値をデコードして返す
var string = document.cookie.substring(startIndex, endIndex);
var value = unescape(string);
trace("cookie " + key + "=" + value);
return value;
}
function setCreateSmallImageFunction() {
var changeFunction = function() {
var file = this.files[0];
var reader = new FileReader();
var size = 100;//縮小画像の縦横の最大サイズはここで決め打ち。
var canvas = document.querySelector('#smallImageCanvas');
canvas.width = 0;
canvas.height = 0;
var canvas2D = canvas.getContext('2d');
canvas2D.clearRect(0, 0, size, size);
reader.onloadend = function() {
var image = new Image();
image.onload = function() {
var width = size;
var height = image.height * (size/image.width);
if( height > width ) {
width = image.width * (size/image.height);
height = size;
}
canvas.width = width;
canvas.height = height;
canvas2D.drawImage(image, 0, 0, width, height);
}
image.src = reader.result;
}
reader.readAsDataURL(file);
}
var captureForm = document.querySelector('#fileData');
captureForm.addEventListener('change', changeFunction, false);
}
$(function($){
setCreateSmallImageFunction();
});
function uploadImage() {
//jqueryを導入していることが前提です。
// フォームデータを取得
var formData = new FormData( $('form#fileUpload')[0] );//アップロードする画像の指定
//縮小画像を取得。縮小画像をアップロード時に送信すると
//「どどんとふ」本体の画像一覧に縮小画像が利用されるので動作が軽くなりユーザーに親切です。
//ただ設定は手間なのも事実なので、指定を省略することも可能です。
var canvas = document.querySelector('#smallImageCanvas');
var base64Data = canvas.toDataURL('image/png');
smallImageData = base64Data.replace('data:image/png;base64,', '');
formData.append( 'smallImageData', smallImageData ); //縮小画像の指定(省略可能)
formData.append( 'webif', "uploadImageData" ); //webifの指定
formData.append( 'room', roomNo ); //部屋番号の指定
if(roomPass != "" || roomPass == null){
formData.append( 'password', roomPass ); //パスワードの指定
}
formData.append( 'tags', $('#tags').val() ); //タグ名の指定
//formData.append( 'imagePassword', "パスワード" ); //絵のパスワードも指定できます(ここでは未使用)
for(item of formData) {
console.log(item);
};
var url = getServerUrl();
// POSTでアップロード
$.ajax({
url : url,
type : "POST",
data : formData,
async: false,
cache : false,
contentType : false,
processData : false
})
.done(function(data, textStatus, jqXHR){
$('#fileUploadResult').text( "result : " + data.result + ", fileName:" + data.fileName );
$('#uploadImageButton').prop('disabled', true);
})
.fail(function(jqXHR, textStatus, errorThrown){
alert("fail");
console.log( 'ERROR', jqXHR, textStatus, errorThrown );
$('#uploadImageButton').prop('disabled', true);
});
}
</script>
<link type="text/css" href="src_javascript/simple-color-picker/jquery.simple-color-picker.css" rel="stylesheet">
<script type="text/javascript" src="src_javascript/simple-color-picker/jquery.simple-color-picker.js"></script>
</head>
<body>
<div id="topSpace">
<div>RoomNo.
<div id="roomSelectForm">
<select id="roomNo" >
<option value="null"> </option>
</select>
<input type="password" id="roomPass" placeholder="password(見学の場合はなし)">
<input type="button" value="入室" onClick="selectRoomNo()">
</div>
<a id="toggleRoomSelectForm" class="button-link" onClick="toggleRoomSelect()">Room選択を閉じる</a><br />
<select id="gameType" onChange="changeGameType()" style="width:200px;" ></select>
<a id="diceHelpOpen" class="button-link">ダイスヘルプ</a>
</div>
<span id="bottomSpace" width="100%">
<label id="color" >■文字色変更■</label><br />
<input id="name" placeholder="name" /><br />
<textarea id="text" cols="40" rows="4" placeholder="text"></textarea><br />
<input type="button" onClick="sendMessage()" value="送信">
<input id="reloadButton" type="button" onClick="getChatLog()" value="更新" />
<input type="checkbox" id="autoReload" onClick="setAutoReload()" >自動更新(3秒)
<form id="fileUpload">
<hr>
<span style="width: 150px;">
<canvas id="smallImageCanvas" width="100" height="100" style="margin-left: 73px"></canvas>
</span>
<span>
<input type="file" id="fileData" name="fileData" accept="image/*" capture onclick="$('#uploadImageButton').prop('disabled', false)"><br>
<input id="tags" placeholder="tags" />
<button type="button" id="uploadImageButton" onclick="uploadImage()" disabled="true" >画像アップロード</button><br>
<label id="fileUploadResult" >機能実装例のための仮機能です。画像アップロードは可能ですが、画像の表示は未サポートです。</label>
</span>
</form>
<a id="toggleFileUploadForm" class="button-link" onClick="toggleFileUpload()">画像</a><br />
</span>
<hr>
</div>
<img id="preloader" src="image/preloader.gif" />
<div id="messages"></div>
<div id="modal-content" height="10" style="overflow: auto; ">
<pre id="diceHelp"></pre>
<p><a id="modal-close" class="button-link">閉じる</a></p>
</div>
</body>
</html>