mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 06:53:47 -07:00
Initial release
This commit is contained in:
27
resources/web/guide/0/load.js
Normal file
27
resources/web/guide/0/load.js
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
var TargetPage=null;
|
||||
|
||||
function OnInit()
|
||||
{
|
||||
TranslatePage();
|
||||
|
||||
TargetPage=GetQueryString("target");
|
||||
|
||||
// Fallback timeout in case the C++ -> JS signal fails (e.g., WebKit issues)
|
||||
setTimeout("JumpToTarget()",20*1000);
|
||||
}
|
||||
|
||||
function HandleStudio( pVal )
|
||||
{
|
||||
let strCmd=pVal['command'];
|
||||
|
||||
if(strCmd=='userguide_profile_load_finish')
|
||||
{
|
||||
JumpToTarget();
|
||||
}
|
||||
}
|
||||
|
||||
function JumpToTarget()
|
||||
{
|
||||
window.open('../'+TargetPage+'/index.html','_self');
|
||||
}
|
||||
Reference in New Issue
Block a user