Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit f17e033

Browse files
Update multiple mobile viewers
1 parent eb5617f commit f17e033

30 files changed

+270
-0
lines changed

viewers/templates/Mobile/M3DM Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@
201201
<body onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
202202
<div id="fixed_menu" class="fixed-menu">
203203
<div class="fm">
204+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
205+
<label for="btn_desktop" title="Open Desktop Version"></label>
204206
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
205207
<label for="btn_url" title="Get remote model via URL"></label>
206208
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -255,6 +257,13 @@
255257

256258
function return_false() { return false; }
257259

260+
function switch_to_desktop() {
261+
let link = document.createElement( 'a' );
262+
link.style.display = 'none';
263+
link.href = "../3DM Viewer.html";
264+
link.click();
265+
}
266+
258267
function show_url() {
259268
if (url_displayed === true) {
260269
url_displayed = false;

viewers/templates/Mobile/M3DS Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@
185185
<body onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
186186
<div id="fixed_menu" class="fixed-menu">
187187
<div class="fm">
188+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
189+
<label for="btn_desktop" title="Open Desktop Version"></label>
188190
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
189191
<label for="btn_url" title="Get remote model via URL"></label>
190192
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -238,6 +240,13 @@
238240

239241
function return_false() { return false; }
240242

243+
function switch_to_desktop() {
244+
let link = document.createElement( 'a' );
245+
link.style.display = 'none';
246+
link.href = "../3DS Viewer.html";
247+
link.click();
248+
}
249+
241250
function show_url() {
242251
if (url_displayed === true) {
243252
url_displayed = false;

viewers/templates/Mobile/M3MF Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
<body onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
185185
<div id="fixed_menu" class="fixed-menu">
186186
<div class="fm">
187+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
188+
<label for="btn_desktop" title="Open Desktop Version"></label>
187189
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
188190
<label for="btn_url" title="Get remote model via URL"></label>
189191
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -237,6 +239,13 @@
237239

238240
function return_false() { return false; }
239241

242+
function switch_to_desktop() {
243+
let link = document.createElement( 'a' );
244+
link.style.display = 'none';
245+
link.href = "../3MF Viewer.html";
246+
link.click();
247+
}
248+
240249
function show_url() {
241250
if (url_displayed === true) {
242251
url_displayed = false;

viewers/templates/Mobile/MAMF Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
<body onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
185185
<div id="fixed_menu" class="fixed-menu">
186186
<div class="fm">
187+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
188+
<label for="btn_desktop" title="Open Desktop Version"></label>
187189
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
188190
<label for="btn_url" title="Get remote model via URL"></label>
189191
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -237,6 +239,13 @@
237239

238240
function return_false() { return false; }
239241

242+
function switch_to_desktop() {
243+
let link = document.createElement( 'a' );
244+
link.style.display = 'none';
245+
link.href = "../AMF Viewer.html";
246+
link.click();
247+
}
248+
240249
function show_url() {
241250
if (url_displayed === true) {
242251
url_displayed = false;

viewers/templates/Mobile/MASSIMP Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@
217217
<body id="body" onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
218218
<div id="fixed_menu" class="fixed-menu">
219219
<div class="fm" id="fm1">
220+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
221+
<label for="btn_desktop" title="Open Desktop Version"></label>
220222
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
221223
<label for="btn_url" title="Get remote model via URL"></label>
222224
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -280,6 +282,13 @@
280282

281283
function return_false() { return false; }
282284

285+
function switch_to_desktop() {
286+
let link = document.createElement( 'a' );
287+
link.style.display = 'none';
288+
link.href = "../ASSIMP Viewer.html";
289+
link.click();
290+
}
291+
283292
function show_url() {
284293
if (url_displayed === true) {
285294
url_displayed = false;

viewers/templates/Mobile/MDAE Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@
204204
<body onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
205205
<div id="fixed_menu" class="fixed-menu">
206206
<div class="fm">
207+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
208+
<label for="btn_desktop" title="Open Desktop Version"></label>
207209
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
208210
<label for="btn_url" title="Get remote model via URL"></label>
209211
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -259,6 +261,13 @@
259261

260262
function return_false() { return false; }
261263

264+
function switch_to_desktop() {
265+
let link = document.createElement( 'a' );
266+
link.style.display = 'none';
267+
link.href = "../DAE Viewer.html";
268+
link.click();
269+
}
270+
262271
function show_url() {
263272
if (url_displayed === true) {
264273
url_displayed = false;

viewers/templates/Mobile/MDST Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@
206206
<body onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
207207
<div id="fixed_menu" class="fixed-menu">
208208
<div class="fm" id="fm1">
209+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
210+
<label for="btn_desktop" title="Open Desktop Version"></label>
209211
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
210212
<label for="btn_url" title="Get remote model via URL"></label>
211213
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -265,6 +267,13 @@
265267

266268
function return_false() { return false; }
267269

270+
function switch_to_desktop() {
271+
let link = document.createElement( 'a' );
272+
link.style.display = 'none';
273+
link.href = "../DST Viewer.html";
274+
link.click();
275+
}
276+
268277
function set_gui_position() {
269278
let fixed_menu_bottom = ( parseInt( $('#fixed_menu').outerHeight( true ) ) + 2 ).toString() + 'px';
270279
document.getElementById('gui_position').style.marginTop = fixed_menu_bottom;

viewers/templates/Mobile/MFBX Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@
187187
<body onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
188188
<div id="fixed_menu" class="fixed-menu">
189189
<div class="fm">
190+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
191+
<label for="btn_desktop" title="Open Desktop Version"></label>
190192
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
191193
<label for="btn_url" title="Get remote model via URL"></label>
192194
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -242,6 +244,13 @@
242244

243245
function return_false() { return false; }
244246

247+
function switch_to_desktop() {
248+
let link = document.createElement( 'a' );
249+
link.style.display = 'none';
250+
link.href = "../FBX Viewer.html";
251+
link.click();
252+
}
253+
245254
function show_url() {
246255
if (url_displayed === true) {
247256
url_displayed = false;

viewers/templates/Mobile/MGCODE Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@
155155
<body onload="reset_all(); document_ready(); disabled_changed();" onresize="resize();">
156156
<div id="fixed_menu" class="fixed-menu">
157157
<div class="fm">
158+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
159+
<label for="btn_desktop" title="Open Desktop Version"></label>
158160
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
159161
<label for="btn_url" title="Get remote model via URL"></label>
160162
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -179,6 +181,13 @@
179181
<div id="div_loading" class="loading_msg">GCODE Viewer</div>
180182

181183
<script>
184+
function switch_to_desktop() {
185+
let link = document.createElement( 'a' );
186+
link.style.display = 'none';
187+
link.href = "../GCODE Viewer.html";
188+
link.click();
189+
}
190+
182191
function show_url() {
183192
if (url_displayed === true) {
184193
url_displayed = false;

viewers/templates/Mobile/MGLTF Viewer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@
234234
<body onload="reset_all(); disabled_changed(); document_ready();" onresize="resize();">
235235
<div id="fixed_menu" class="fixed-menu">
236236
<div class="fm">
237+
<button id="btn_desktop" title="Open Desktop Version" onclick="switch_to_desktop();">D</button>
238+
<label for="btn_desktop" title="Open Desktop Version"></label>
237239
<button title="Get remote model via URL" id="btn_url" onclick="show_url()" style="min-width: 38px;">URL</button>
238240
<label for="btn_url" title="Get remote model via URL"></label>
239241
<button title="Browse Local Files" id="btn_file_input" style="min-width: 54px;" onclick="document.getElementById('file_input').click();">Browse</button>
@@ -341,6 +343,13 @@
341343

342344
function return_false() { return false; }
343345

346+
function switch_to_desktop() {
347+
let link = document.createElement( 'a' );
348+
link.style.display = 'none';
349+
link.href = "../GLTF Viewer.html";
350+
link.click();
351+
}
352+
344353
function show_url() {
345354
if (url_displayed === true) {
346355
url_displayed = false;

0 commit comments

Comments
 (0)