forked from ringcentral/ringcentral-embeddable-electron-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
129 lines (129 loc) · 3.06 KB
/
app.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
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' https://ringcentral.github.io">
<title>RingCentral Embeddable</title>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
#app {
display: flex;
padding: 0;
margin: 0;
border: none;
height: 100%;
flex-direction: column;
}
#header {
height: 36px;
line-height: 36px;
width: 100%;
text-align: center;
background: #f3f3f3;
-webkit-app-region: drag;
position: relative;
cursor: pointer;
}
#logo {
display: inline-block;
margin-top: 10px;
height: 16px;
width: 100px;
cursor: pointer;
}
.button {
position: absolute;
box-sizing: border-box;
top: 50%;
height: 20px;
width: 20px;
margin-top: -12px;
border-radius: 3px;
cursor: pointer;
border-style: solid;
border-width: 1px;
border-color: transparent;
-webkit-app-region: no-drag;
}
.button:hover {
border-color: #cccccc;
}
.close {
right: 14px;
}
.closeIcon {
position: relative;
overflow: hidden;
margin: 2px;
width: 14px;
height: 14px;
}
.line:first-child, .line:last-child {
position: absolute;
height: 2px;
width: 100%;
top: 6px;
left: 0;
background: #888888;
border-radius: 1px;
}
.line:first-child {
transform: rotate(45deg);
}
.line:last-child {
transform: rotate(-45deg);
}
.minimize {
right: 40px;
}
.minimizeIcon {
position: absolute;
box-sizing: border-box;
left: 3px;
bottom: 7px;
width: 12px;
height: 2px;
border: 1px solid #888888;
}
.minimizeIconBar {
width: 100%;
height: 1px;
background-color: #888888;
}
webview {
display: flex;
flex: 1;
border: none;
}
</style>
</head>
<body>
<div id="app">
<header id="header">
<div id="close" class="button close">
<div class="closeIcon">
<div class="line"></div><div class="line"></div>
</div>
</div>
<div id="minimize" class="button minimize">
<div class="minimizeIcon">
<div class="minimizeIconBar"></div>
</div>
</div>
<img src="./header_logo.svg" id="logo" />
</header>
<webview
preload="./preload.js"
partition="persist:rcstorage"
allowpopups
id="rc-widget-adapter-frame"
src="https://ringcentral.github.io/ringcentral-embeddable/app.html?appVersion=0.1.3&userAgent=RingCentralEmbeddableForLinux/0.1.3&disableConferenceCall=false"
>
</webview>
</div>
<script src="./app.js"></script>
</body>
</html>