mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-08 14:34:04 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 additions and 0 deletions
68
resources/web/guide/11/11.css
Normal file
68
resources/web/guide/11/11.css
Normal file
|
@ -0,0 +1,68 @@
|
|||
|
||||
#Content
|
||||
{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content:flex-start;
|
||||
align-items:center;
|
||||
}
|
||||
|
||||
|
||||
#EarthIcon img
|
||||
{
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
#EarthIcon
|
||||
{
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#RegionList
|
||||
{
|
||||
border: 3px solid #C7C7C7;
|
||||
width: 400px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.RegionItem
|
||||
{
|
||||
line-height: 40px;
|
||||
height: 40px;
|
||||
padding-left: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.RegionItem:hover
|
||||
{
|
||||
background-color: #ECECEC;
|
||||
}
|
||||
|
||||
|
||||
.RegionSelected
|
||||
{
|
||||
background-color:#00AE42;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.RegionSelected:hover
|
||||
{
|
||||
background-color:#00AE42;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#ChangeTip
|
||||
{
|
||||
margin-top: 15px;
|
||||
line-height:20px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.TipIcon
|
||||
{
|
||||
width:24px;
|
||||
height: 24px;
|
||||
margin-right: 5px;
|
||||
}
|
68
resources/web/guide/11/11.js
Normal file
68
resources/web/guide/11/11.js
Normal file
|
@ -0,0 +1,68 @@
|
|||
var m_OldRegion='';
|
||||
var m_Region='';
|
||||
|
||||
function OnInit()
|
||||
{
|
||||
//let strInput=JSON.stringify(cData);
|
||||
//HandleStudio(strInput);
|
||||
|
||||
TranslatePage();
|
||||
|
||||
RequestProfile();
|
||||
}
|
||||
|
||||
|
||||
function RequestProfile()
|
||||
{
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="request_userguide_profile";
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
}
|
||||
|
||||
function HandleStudio( pVal )
|
||||
{
|
||||
let strCmd=pVal['command'];
|
||||
//alert(strCmd);
|
||||
|
||||
if(strCmd=='response_userguide_profile')
|
||||
{
|
||||
HandleRegionlList(pVal['response']);
|
||||
}
|
||||
}
|
||||
|
||||
function HandleRegionlList( pItem )
|
||||
{
|
||||
m_OldRegion=pItem['region'];
|
||||
|
||||
let nNum=$(".RegionItem[region='"+m_OldRegion+"']").length;
|
||||
if( nNum==1 )
|
||||
ChooseRegion(m_OldRegion);
|
||||
}
|
||||
|
||||
|
||||
function ChooseRegion( strRegion )
|
||||
{
|
||||
m_Region=strRegion;
|
||||
|
||||
$('.RegionItem').removeClass('RegionSelected');
|
||||
$(".RegionItem[region='"+strRegion+"']").addClass('RegionSelected');
|
||||
}
|
||||
|
||||
function GotoPolicyPage()
|
||||
{
|
||||
let ItemSelected=$('.RegionSelected')[0];
|
||||
let RegionFinal=$(ItemSelected).attr("region");
|
||||
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="save_region";
|
||||
tSend['region']=RegionFinal;
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
|
||||
window.location.href="../3/index.html";
|
||||
}
|
||||
|
||||
|
BIN
resources/web/guide/11/earth.png
Normal file
BIN
resources/web/guide/11/earth.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
38
resources/web/guide/11/index.html
Normal file
38
resources/web/guide/11/index.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Cache-Control" content="max-age=7200" />
|
||||
<title>引导_P21</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="11.css" />
|
||||
<script type="text/javascript" src="../js/jquery-3.6.0.min.js"></script>
|
||||
<script type="text/javascript" src="../js/json2.js"></script>
|
||||
<script type="text/javascript" src="../../data/text.js"></script>
|
||||
<script type="text/javascript" src="../js/globalapi.js"></script>
|
||||
<script type="text/javascript" src="../js/common.js"></script>
|
||||
<script type="text/javascript" src="11.js"></script>
|
||||
</head>
|
||||
<body onLoad="OnInit()">
|
||||
<div id="Title">
|
||||
<div class="trans" tid="t47">Please select your login region</div>
|
||||
</div>
|
||||
<div id="Content">
|
||||
<div id="EarthIcon"><img src="earth.png"/></div>
|
||||
<div id="RegionList">
|
||||
<div class="trans RegionItem RegionSelected" tid="t48" region="Asia-Pacific" onclick="ChooseRegion('Asia-Pacific')">Asia-Pacific</div>
|
||||
<div class="trans RegionItem" tid="t49" region="China" onclick="ChooseRegion('China')">China</div>
|
||||
<div class="trans RegionItem" tid="t60" region="Europe" onclick="ChooseRegion('Europe')">Europe</div>
|
||||
<div class="trans RegionItem" tid="t61" region="North America" onclick="ChooseRegion('North America')">North America</div>
|
||||
<div class="trans RegionItem" tid="t62" region="Others" onclick="ChooseRegion('Others')">Others</div>
|
||||
</div>
|
||||
<!-- <div id="ChangeTip">
|
||||
<div><img class="TipIcon" src="tip.png" /></div>
|
||||
<div tid="t63">After changing the region, your account will be logged out. Please log in again later.</div>
|
||||
</div>-->
|
||||
</div>
|
||||
<div id="AcceptArea">
|
||||
<div class="NormalBtn trans" id="AcceptBtn" tid="t9" onclick="GotoPolicyPage()">Next</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
resources/web/guide/11/tip.png
Normal file
BIN
resources/web/guide/11/tip.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Loading…
Add table
Add a link
Reference in a new issue