Repository navigation
Expand file tree
/
Copy pathroom.cshtml
More file actions
105 lines (96 loc) · 4.05 KB
/
Copy pathroom.cshtml
File metadata and controls
105 lines (96 loc) · 4.05 KB
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
<!DOCTYPE html>
<html style="height: 100%; max-height: 100%;">
<head>
<!--Meta section-->
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="description" content="Code with another person in real-time code editor.">
<meta name="author" content="Jan Radlowski">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Code Together - Real Time Code Editor</title>
<!--Reference css-->
<link rel="stylesheet" href="~/css/room.css" />
<!--Reference jquery library-->
<script src="~/Scripts/jquery-2.2.1.min.js"></script>
<!--Reference the SignalR library. -->
<script src="~/Scripts/jquery.signalR-2.1.2.min.js"></script>
<!--Reference the autogenerated SignalR hub script. -->
<script src="~/signalr/hubs"></script>
</head>
<body>
<div id="mobileNav">
<button id="viewChat" onclick="ShowHiddenPart('viewChat')"><p>Chat</p><img src="~/img/chat.png" /></button>
<button id="viewEditors" onclick="ShowHiddenPart('viewChat')"><p>Editors</p><img src="~/img/editorsView.png" /></button>
<button id="settings1" onclick="ShowHiddenPart('settings1')"><p>Editor1</p><img src="~/img/settingsBright.png" /></button>
<button id="settings2" onclick="ShowHiddenPart('settings2')"><p>Editor2</p><img src="~/img/settingsBright.png" /></button>
<div id="openNav">
<img src="~/img/back.png" />
</div>
</div>
<div class="editorOptions">
<div id="selectOptions1">
<label id="modeLabel1" for="modeSelect1">Mode: </label>
<select id="modeSelect1" onchange="changeMode1()"></select>
<label id="themeLabel1" for="themeSelect1">Theme: </label>
<select id="themeSelect1" onclick="changeTheme1()"></select>
</div>
<div id="selectOptions2">
<label id="modeLabel2" for="modeSelect1">Mode: </label>
<label id="othersMode">abap</label>
<label id="themeLabel2" for="themeSelect1">Theme: </label>
<select id="themeSelect2" onclick="changeTheme2()"></select>
</div>
</div>
<div id="roomFull">
<div id="modal">
<div id="modalHeader">
<h3 id="alertHeader"></h3>
<p>Please join other room or try again later.</p>
</div>
<form id="fullRoomForm" method="get" action="~/room">
<input id="txtJoin" type="text" name="chatroom" placeholder="Room ID" autocomplete="off" required/>
<input id="btnJoin" type="button" value="Join Room" />
<input id="btnCreate" type="submit" value="Create New Room" />
</form>
</div>
</div>
<div id="codeTogether">
<div id="firstEditor">
<div id="editor1"></div>
</div><!--
--><div id="chat">
<div id="chatGetName">
<div id="nameInputs">
<form id="nameForm">
<input id="txtName" type="text" placeholder="Your Name" required />
<input id="btnName" type="submit" value="Save" />
</form>
</div>
</div>
<div id="chat2Show">
<button id="opts1" type="button" value="Options" onclick="showOpts('selectOptions1')">
<img class="settingsIco" src="~/img/leftArrow.png" style="float:left;" />
<img class="settingsIco" src="~/img/settingsIco.png" />
</button>
<button id="opts2" type="button" value="Options" onclick="showOpts('selectOptions2')">
<img class="settingsIco" src="~/img/rightArrow.png" style="float:right;" />
<img class="settingsIco" src="~/img/settingsIco.png" />
</button>
<textarea id="chatbox" readonly></textarea>
<input id="msgText" type="text" placeholder="Message" />
<input id="sendMsg" type="button" value="SEND" />
</div>
</div><!--
--><div id="secondEditor">
<div id="editor2"></div>
</div>
</div>
<script src="~/AceEditor/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="~/Scripts/RoomFunctions.js" type="text/javascript" charset="utf-8"></script>
<script src="~/Scripts/EditorFunctions.js" type="text/javascript" charset="utf-8"></script>
<script src="~/Scripts/RoomUtilities.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>