-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientDemo.html
61 lines (55 loc) · 1.3 KB
/
clientDemo.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
<style>
.phone {
display: inline-block;
background-image: url(devices-sprite.jpg);
background-size: 467px;
background-origin: padding-box;
background-clip: border-box;
background-position-x: 50%;
background-position-y: 100%;
background-repeat-x: no-repeat;
background-repeat-y: no-repeat;
line-height: 20px;
height: 800px;
width: 467px;
margin: 0;
padding: 0;
border: 0;
color: rgb(51, 51, 51);
mix-blend-mode: multiply;
box-sizing: border-box;
}
.phone iframe {
height: 622px;
width: 350px;
border: 0;
margin: auto;
margin-top: 72px;
background-color: white;
}
iframe {
display: block;
-webkit-transform: scale(1);
-webkit-transform-origin: 0 0;
}
body {
margin-top: 10%;
background-color: white;
}
</style>
<script>
window.phoneCount = 0;
window.createPhones = setInterval(() => {
if (window.phoneCount < 4) {
let phone = document.createElement('div');
phone.className = 'phone';
let frame = document.createElement('iframe');
frame.src = 'http://127.0.0.1:8000/index.html';
phone.appendChild(frame);
document.body.appendChild(phone);
window.phoneCount += 1;
} else {
clearInterval(window.createPhones);
}
}, 400);
</script>