-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (124 loc) · 5 KB
/
index.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
<?php
//Start session
session_start();
//Check whether the session variable SESS_EMAIL is present or not
if(!isset($_SESSION['SESS_EMAIL']) || (trim($_SESSION['SESS_EMAIL']) == '')) {
}else{
header("location:mindmap.html");
exit();
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>myMindWeb.kr</title>
<!-- css -->
<link rel="stylesheet" href="./theme.css" type="text/css" />
<link rel="stylesheet" href="./menuBar.css" type="text/css" />
<link rel="stylesheet" href="./popup.css" type="text/css" />
<!-- java script -->
<script type="text/javascript" src="./theme.js"></script>
<script type="text/javascript" src="./session.js"></script>
<script type="text/javascript" src="./php/api.js"></script>
<script type="text/javascript" src="./join.js"></script>
<script type="text/javascript" src="./menuAction.js"></script>
<!-- mind map -->
<link rel="stylesheet" type="text/css" href="./mapEngine/mindmap.css"></link>
<script src="mapEngine/framerate.js" language="javascript" type=""></script>
<script src="mapEngine/json2.js" language="javascript" type=""></script>
<script src="mapEngine/mapdata.js" language="javascript" type=""></script>
<script src="mapEngine/mindmapDraw.js" language="javascript" type=""></script>
<script src="mapEngine/mindmap.js" language="javascript" type=""></script>
<script src="mapEngine/clipboard.js" language="javascript" type=""></script>
<script src="mapEngine/mindmapMouse.js" language="javascript" type=""></script>
<script src="mapEngine/mindmapKeyboard.js" language="javascript" type=""></script>
</head>
<body onload="mainTheme()">
<!-- menu -->
<div id="menu">
<div id="title">
MyMindWeb.kr
</div>
<span class="vr"></span>
<div class="subtitle" id="mapname">RootName</div>
<span class="vr"></span>
<ul class="buttonBox">
<li class="button"><a href="#">new</a></li>
<li class="button"><a href="#">save</a></li>
<li class="button"><a href="#">load</a></li>
<li class="button"><a href="#">export</a></li>
<li class="button" onclick="helpToggle()"><a href="#">help</a></li>
</ul>
<span class="vr"></span>
<!-- session box -->
<div id="sessionBox">
<div id="errorMsg"></div>
<form id="login" action="#" onSubmit="return mmlogin()">
<input type="email" placeholder="email address" required="required" name="email" id="email"/>
<input type="password" placeholder="password" name="passwd" id="passwd" required/>
<input type="submit" value="login" class="buttonSubmit"/>
</form>
<span class="vr"></span>
<div class="button" onClick="onMenuJoinus()"><a href="#" onClick="return false">join us</a></div>
</div>
</div>
<!-- body -->
<div id="body">
<!-- mindmap -->
<input id="input" type="text"></input>
<canvas id="canvas" onMouseMove="onMouseMoveCanvas(this)" onmouseup="onMouseUpCanvas(this)" onmousedown="onMouseDownCanvas(this)" ondblclick="onMouseDbClickCanvas(this)" onclick="onMouseClickCanvas(this)">
</canvas>
</div>
<!-- help -->
<div id="help">
<div id="helpclose" onclick="helpToggle()"><a href="#">X</a></div>
insert child : insert key<br/>
insert sibling : enter key<br/>
modify node : F2<br/>
delete node : delete key<br/>
move : direction key<br/>
copy, paste, cut : ctrl + c,v,x<br/>
</div>
<!-- popup joinus -->
<div class="popupDeco" id="popupJoinus">
<div class="popupTitle">
join us
</div>
<div class="popupContent">
<div class="errorMsg" id="joinusError">errorMsg</div>
<form action="#" id="form" onSubmit="return formConfirm()">
<input id="joinEmail" type="email" placeholder="email"/>
<input id="joinEmailConfirm" type="email" placeholder="retype email"/>
<input id="joinPasswd" type="password" placeholder="password"/>
<input id="joinPasswdConfirm" type="password" placeholder="retype password"/>
<div class="buttonContainer">
<input type="submit" class="button blue" id="joinusOk" value="Ok"></input>
<div class="button blue" id="joinusCancel" onclick="joinCancel()">Cancel</div>
</div>
</form>
</div>
</div>
<!-- popup join ok -->
<div class="popupDeco" id="popupJoinOk">
<div class="popupTitle">
thank you.<br/>
login please
</div>
<div class="popupContent">
<div class="buttonContainer">
<div class="button blue" onclick="joinComplete()">Ok</div>
</div>
</div>
</div>
<!-- popup join fail -->
<div class="popupDeco" id="popupJoinFail">
<div class="popupTitle">
join fail
</div>
<div class="popupContent">
<div class="buttonContainer">
<div class="button blue" onclick="joinRetry()">Ok</div>
</div>
</div>
</div>
</body>
</html>