mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Initial release
This commit is contained in:
48
resources/web/guide/4orca/4orca.js
Normal file
48
resources/web/guide/4orca/4orca.js
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
function OnInit()
|
||||
{
|
||||
TranslatePage();
|
||||
|
||||
SendStealthModeCheck();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function SendStealthModeCheck()
|
||||
{
|
||||
let nVal="no";
|
||||
if( $('#StealthMode').is(':checked') )
|
||||
nVal="yes";
|
||||
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="save_stealth_mode";
|
||||
tSend['data']={};
|
||||
tSend['data']['action']=nVal;
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function GotoNetPluginPage()
|
||||
{
|
||||
let bRet=SendStealthModeCheck();
|
||||
|
||||
if(bRet)
|
||||
window.location.href="../5/index.html";
|
||||
}
|
||||
|
||||
|
||||
function FinishGuide()
|
||||
{
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="user_guide_finish";
|
||||
tSend['data']={};
|
||||
tSend['data']['action']="finish";
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
|
||||
//window.location.href="../6/index.html";
|
||||
}
|
||||
Reference in New Issue
Block a user