This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadvanced.html
166 lines (158 loc) · 6.4 KB
/
advanced.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>IIROSE For PC</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./mdui/css/mdui.min.css">
<script src="./mdui/js/mdui.min.js"></script>
<script>
window.$ = window.jQuery = require('jquery');
</script>
<script src="./md5.js"></script>
<script src="./advanced.js"></script>
<script src="./communication.new.js"></script>
</head>
<body>
<style>
body {
margin: 0px;
padding: 0px;
overflow: auto;
}
.menu {
-webkit-app-region: drag;
}
.menu button,
li,
ul {
-webkit-app-region: no-drag;
}
.menu a {
-webkit-app-region: no-drag;
}
.tabs {
width: 70%;
margin-left: 15%;
margin-right: 15%;
padding-top: 20px;
padding-left: 15px;
padding-right: 15px;
padding-bottom: 20px;
border-radius: 5px;
}
</style>
<div class="mdui-appbar menu mdui-shadow-3" id="menu">
<div class="mdui-toolbar mdui-color-indigo">
<button class="mdui-btn mdui-btn-icon" mdui-menu="{target: '#window-menu'}"><i
class="mdui-icon material-icons">menu</i></button>
<p href="javascript:;" class="mdui-typo-headline">IIROSE</p>
<p class="mdui-typo-title" id="system-type">for PC</p>
<p class="mdui-typo-title">
<script>
document.write(ipc.sendSync('version', 1));
</script>
</p>
<!-- 菜单 -->
<ul class="mdui-menu mdui-menu-cascade" id="window-menu">
<li class="mdui-divider"></li>
<li class="mdui-menu-item">
<a href="javascript:min()" class="mdui-ripple">最小化</a>
</li>
<li class="mdui-menu-item">
<a href="javascript:close();" class="mdui-ripple">退出</a>
</li>
<li class="mdui-divider"></li>
<li class="mdui-menu-item">
<a href="javascript:about();">关于</a>
</li>
</ul>
</div>
<div class="mdui-tab mdui-tab-centered mdui-color-indigo" mdui-tab>
<a href="#main" class="mdui-ripple">IIROSE</a>
<a href="#setting" class="mdui-ripple">设置</a>
<a href="#user" class="mdui-ripple">登陆</a>
<a href="#room" class="mdui-ripple">切换房间</a>
<a href="#about" class="mdui-ripple">关于</a>
</div>
</div>
<div id="main" class="mdui-p-a-2">
<textarea style="width:100%;" rows="20" placeholder="Message" id="messages" readonly></textarea>
<br />
<div class="mdui-textfield">
<input class="mdui-textfield-input" type="text" placeholder="发送消息" id="sendmessage" />
</div>
<div class="mdui-textfield">
<input class="mdui-textfield-input" type="text" placeholder="发射弹幕" id="senddanmu" />
</div>
</div>
<div id="setting" class="mdui-p-a-2">
<div class="tabs mdui-shadow-1 mdui-hoverable mdui-typo">
<h1>窗口设置</h1>
<div class="mdui-textfield">
<label class="mdui-textfield-label">窗口宽度</label>
<input class="mdui-textfield-input" type="text" id="config-w" />
</div>
<div class="mdui-textfield">
<label class="mdui-textfield-label">窗口高度</label>
<input class="mdui-textfield-input" type="text" id="config-h" />
</div>
<h1>高级设置</h1>
<button onclick="reload()" class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-pink-accent">重载窗口</button>
<button onclick="location.reload()"
class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-pink-accent">刷新页面</button>
<button onclick="switchWindow(0)"
class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-pink-accent">切换至normal模式</button>
<div class="mdui-textfield">
<label class="mdui-textfield-label">缓存大小 (MB)</label>
<input class="mdui-textfield-input" type="text" id="cacheSize" />
</div>
<br />
<center>
<button onclick="ipc.sendSync('session', 2);reload()"
class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-pink-accent">清除缓存并重载窗口</button>
<button onclick="ipc.sendSync('session', 3);reload()"
class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-pink-accent">重置并重载窗口</button>
</center>
</div>
</div>
<div id="user" class="mdui-p-a-2">
<div class="tabs mdui-shadow-1 mdui-hoverable mdui-typo">
<h1>Account</h1>
<div class="mdui-textfield">
<label class="mdui-textfield-label">User Name</label>
<input class="mdui-textfield-input" id="login" type="text" />
</div>
<br />
<div class="mdui-textfield">
<label class="mdui-textfield-label">Password</label>
<input class="mdui-textfield-input" id="password" type="password" />
</div>
<br />
<div class="mdui-textfield">
<label class="mdui-textfield-label">Roomid</label>
<input class="mdui-textfield-input" id="roomid" type="text" />
</div>
<br />
<center>
<button onclick="savelogin()"
class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-pink-accent">保存登录信息</button>
</center>
</div>
</div>
<div id="room" class="mdui-p-a-2 mdui-typo">
<h1>切换房间</h1>
<p id="rooms">等待房间数据...</p>
</div>
<div id="about" class="mdui-p-a-2 mdui-typo">
<ul>
<li>GitHub: iirose-tools/electron-iirose</li>
<li>Version: <script>
document.write(ipc.sendSync('version', 1));
</script>
</li>
</ul>
</div>
</body>
</html>