index.ejs 11.4 KB
<!DOCTYPE html>
<html lang="ko">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="OpenSource node.js chat application">
    <meta name="author" content="Igor Antun">
    <link rel="icon" type="image/png" href="img/favicon.png" />

    <title>채팅 사이트</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/chat.css" rel="stylesheet">
    <link href="css/ripples.css" rel="stylesheet">
    <link href="css/material-wfont.min.css" rel="stylesheet">
    <link href="css/jquery-ui.css" rel="stylesheet">

    <link href="css/emojione.min.css" rel="stylesheet" type="text/css"/>
    <link href="http://fonts.googleapis.com/earlyaccess/nanumgothic.css" rel="stylesheet" type="text/css">    
</head>

<body>
    <div class="container-fluid main">
        <a target="_blank" href="http://khuhub.khu.ac.kr/2018102163/My_Project"><img style="position: absolute; top: 0; right: 0; border: 0;z-index:999" src="http://gdanawa.com/files/github.png" alt="김대욱깃허브"></a>

        <div class="row">
            <div class="col-xs-12 col-lg-10 col-lg-offset-1"><br>
                <div class="well page active">
                    <nav class="navbar shadow-z-2">
                        <div class="container-fluid">
                            <div class="navbar-header">
                                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapser">
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                </button>
                                <a class="navbar-brand" href="#">채팅 사이트<span id="version" style="font-size:7pt"></span></a>
                            </div>

                            <div class="collapse navbar-collapse" id="collapser">
                                <ul class="nav navbar-nav">
                                    <li class="active"><a href="#">채팅</a></li>
                                    <li><a id="help" href="#">도움말</a></li>
                                    <li><a id="user" href="#">사용자</a></li>
                                    <li><a id="menu-admin" href="#" >Admin</a></li>
                                    <li><a id="menu-options" href="#">옵션</a></li>
                                </ul>
                            </div>
                        </div>
                    </nav>

                    <div class="row">
                        <div class="col-xs-12 col-md-12 ">
                            <div class="well">
                                <div class="row">
                                    <div class="col-xs-6">
                                        <h2>채팅</h2>
                                    </div>
                                    <div class="col-xs-6">
                                        <button id="options" class="btn btn-fab btn-fab-mini btn-primary pull-right">
                                            <i id="icon-settings" class="mdi mdi-action-settings"></i>
                                        </button>
                                        <button id="audio" class="btn btn-fab btn-fab-mini btn-primary pull-right" >
                                            <i id="icon-audio" class="mdi mdi-av-mic"></i>
                                        </button>
                                    </div>
                                </div>
                                <br>

                                <div class="panel panel-default">
                                    <div class="panel-heading">채팅 창</div>
                                    <div id="panel" class="panel-body"></div>
                                </div>

                                <p id="typing"><br></p>
                                <hr>

                                <div class="row">
                                    <div class="col-lg-8 col-lg-offset-2">
                                        <div class="input-group">
                                            <span class="input-group-addon"><span id="icon" class="mdi mdi-social-person"></span></span>
                                            <input id="message" type="text" class="form-control" placeholder="사용할 이름을 넣어주세요" aria-describedby="basic-addon1" maxlength="768">
                                            <span class="input-group-btn">
                                                <button id="send" class="btn btn-primary btn-flat">접속</button>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <p class="text-left pull-left">EDIT by <a href="http://khuhub.khu.ac.kr/2018102163/My_Project" target="_blank">김대욱</a></p>
                            <p id="badges" class="text-right pull-right">
                                <span><label id="users" class="label">0 사용자</label></span>
                                <span><label id="admin" class="label label-warning" >ADMIN</label></span>
                                <span><label class="label label-info">BETA</label></span>
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="help-dialog" class="modal fade" tabindex="-1">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="row">
                        <h4><b>옵션변경하기:</b></h4>
                        <div class="col-xs-3"><b>
                            <b>명령어</b>
                            <br>/pm
                            <br>/me or /em
                            <br>/shrug
                            <br>/name
                            <br>/users
                            <br>/help
                            <br>/clear
                            <br>/reconnect
                        </b></div>
                        <div class="col-xs-2">
                            <b>변수</b>
                            <br>[user] [message]
                            <br>[message]
                            <br>[message]
                            <br>[name]
                            <br>
                            <br>
                            <br>
                        </div>
                        <div class="col-xs-7">
                            <b>설명</b>
                            <br>귓속말 <i>[message]</i> for <i>[user]</i>
                            <br>입력 <i>[message]</i> 기울이기
                            <br>입력 <i>[message]</i> 와 함께 '¯\_(ツ)_/¯'
                            <br>채팅 이름 변경 <i>[name]</i>
                            <br>접속자 확인
                            <br>도움말 보기
                            <br>채팅창 지우기
                            <br>재접속
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="admin-help-dialog" class="modal fade" tabindex="-1">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="row">
                        <h4><b>Current available administrator commands:</b></h4>
                        <div class="col-xs-3"><b>
                            <b>명령어</b>
                            <br>/alert
                            <br>/kick
                            <br>/ban
                            <br>/role
                        </b></div>
                        <div class="col-xs-2">
                            <b>변수</b>
                            <br>[message]
                            <br>[user]
                            <br>[user] [minutes]
                            <br>[user] [1-3]
                        </div>
                        <div class="col-xs-7">
                            <b>설명</b>
                            <br>Sends global <i>[message]</i>
                            <br>Kicks <i>[user]</i> from the server
                            <br>Bans <i>[user]</i> from the server for <i>[minutes]</i>
                            <br>Changes <i>[user]</i> administrator permissions
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="options-dialog" class="modal fade" tabindex="-1">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-body">
                    <h4><b>Chat options:</b></h4>
                    <div class="togglebutton">
                        <label>이모티콘<input id="emoji" type="checkbox"></label>
                    </div>
                    <div class="togglebutton">
                        <label>욕설 필터<input id="greentext" type="checkbox"></label>
                    </div>
                    <div class="togglebutton" id="toggle-inline">
                        <label>이미지보기<input id="inline" type="checkbox"></label>
                    </div>
                    <div class="togglebutton">
                        <label>채팅 음성지원<input id="sound" type="checkbox"></label>
                    </div>
                    <div class="togglebutton" id="toggle-desktop" >
                        <label>채팅 알림<input id="desktop" type="checkbox"></label>
                    </div>
                    <div class="togglebutton" id="toggle-synthesis" >
                        <label>음성 합성 [Experimental]<input id="synthesis" type="checkbox"></label>
                    </div>
                    <div class="togglebutton" id="toggle-recognition" >
                        <label>음성 인식 [Experimental]<input id="recognition" type="checkbox"></label>
                    </div>
                </div>
            </div>
        </div>
    </div>



    <div id="users-dialog" class="modal fade" tabindex="-1">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-body">
                    <h4><b>현재 접속자:</b></h4>
                    <div id="users-content"></div>
                </div>
            </div>
        </div>
    </div>
    <script>
        var VERSION="<%= version%>";
    </script>

    <script src="js/complete.ly.1.0.1.min.js"></script>
    <script src="js/jquery-2.1.3.min.js"></script>
    <script src="js/emojione.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery-ui.min.js"></script>
    <script src="js/jquery.easing.min.js"></script>
    <script src="js/jquery.linkify.min.js"></script>
    <script src="js/ripples.min.js"></script>
    <script src="js/material.min.js"></script>
    <script src="js/chat.js"></script>

    <script>
        $(document).ready(function() {
            $.material.init();
        });
    </script>
</body>
</html>