Update app.py
Browse files
app.py
CHANGED
@@ -1122,18 +1122,19 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
1122 |
<a onclick='snapshot();'>Screenshot</a><br/>
|
1123 |
<img src='' id='img_out' onload='var ctxt = document.getElementById(\"cnv_out\").getContext(\"2d\");ctxt.drawImage(this, 0, 0);'/><br/>
|
1124 |
<canvas id='cnv_out'></canvas>
|
1125 |
-
<div id='compass_box'><div id='compass'><
|
1126 |
-
<a id='fullscreen' style='position:relative;top:2em;' onclick='
|
1127 |
const model3D = document.getElementById(\"model3D\");
|
1128 |
if (model3D.style.width != \"100vw\") {
|
1129 |
model3D.style.width = \"100vw\";
|
1130 |
model3D.style.height = \"100vh\";
|
1131 |
model3D.style.position = \"fixed\";
|
|
|
1132 |
} else {
|
1133 |
model3D.style.width = \"initial\";
|
1134 |
model3D.style.height = \"initial\";
|
1135 |
model3D.style.position = \"initial\";
|
1136 |
-
|
|
|
1137 |
</div>
|
1138 |
""")
|
1139 |
render = gr.Button("Render")
|
|
|
1122 |
<a onclick='snapshot();'>Screenshot</a><br/>
|
1123 |
<img src='' id='img_out' onload='var ctxt = document.getElementById(\"cnv_out\").getContext(\"2d\");ctxt.drawImage(this, 0, 0);'/><br/>
|
1124 |
<canvas id='cnv_out'></canvas>
|
1125 |
+
<div id='compass_box'><div id='compass'><a id='fullscreen' onclick='
|
|
|
1126 |
const model3D = document.getElementById(\"model3D\");
|
1127 |
if (model3D.style.width != \"100vw\") {
|
1128 |
model3D.style.width = \"100vw\";
|
1129 |
model3D.style.height = \"100vh\";
|
1130 |
model3D.style.position = \"fixed\";
|
1131 |
+
model3D.style.zIndex = \"100\";
|
1132 |
} else {
|
1133 |
model3D.style.width = \"initial\";
|
1134 |
model3D.style.height = \"initial\";
|
1135 |
model3D.style.position = \"initial\";
|
1136 |
+
model3D.style.zIndex = \"initial\";
|
1137 |
+
}'><b style='color:blue;'>◅</b>𝍠<b style='color:red;'>▻</b></a></div>
|
1138 |
</div>
|
1139 |
""")
|
1140 |
render = gr.Button("Render")
|