/
output.html
95 lines (85 loc) · 2.62 KB
/
output.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
<html>
<head>
<title>Output</title>
<style type="text/css">
body {
background: #000000;
margin: 0;
overflow: hidden;
-webkit-app-region: drag;
-webkit-user-select: none;
}
/*
#invisibleTopLayer {
position:fixed;
left: 0px;
width: 100%;
top: 0px;
height: 100%;
z-index: 1000;
}*/
iframe {
/* position:fixed; */
position:absolute;
left: 0px;
width: 100%;
top: 0px;
height: 100%;
}
#frame1 {
z-index: 3;
opacity:1;
}
#frame2 {
z-index: 4;
opacity:1;
}
#frameGroupA {
opacity: 1;
}
#frameGroupB {
opacity: 0;
}
#messages {
z-index: 5;
position:fixed;
top:10px;
right:10px;
}
</style>
<script>
//Node-webkit
document.addEventListener('DOMContentLoaded',function(){
//If this element is on top and covers the whole window this will prevent user from dropping a new html file that gets loaded in the window
stopDragAndDrop(document.getElementById("invisibleTopLayer"));
})
function stopDragAndDrop(element) {
element.addEventListener("dragover", function(e) {
e.preventDefault();
}, false);
element.addEventListener("drop", function(e) {
e.preventDefault();
}, false);
}
//end node-webkit
document.addEventListener('DOMContentLoaded',function(){
var strWindowFeatures = "menubar=no,location=no,resizable=yes,scrollbars=no,status=no";
//Node-webkit opens controls.html first which in turn opens this window
//CefWithSyphonopens this window first and we therefore need to open controls.html here
//Check if we are in node-webkit
if (typeof require == "undefined") {
var controlsWin = window.open("controls.html", "Controls", strWindowFeatures);
}
})
</script>
</head>
<body>
<div id="invisibleTopLayer"></div>
<div id="frameGroupA">
<iframe id="frame1" src="" allowtransparency="true" scrolling="no" frameBorder="no"></iframe>
</div>
<div id="frameGroupB">
<iframe id="frame2" src="" allowtransparency="true" scrolling="no" frameBorder="no"></iframe>
</div>
</body>
</html>