mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 05:24:01 -06:00
NEW: UserGuide Add Loading Tip
JIRA: none Change-Id: I43d79d740b9180a16d02c54c0c9d6e11c23b1ce7 (cherry picked from commit 03d8d58fad95199236ee7a5f931d3f395ee8dc1d)
This commit is contained in:
parent
f1cba23976
commit
df6516e3e3
6 changed files with 101 additions and 17 deletions
20
resources/web/guide/0/index.html
Normal file
20
resources/web/guide/0/index.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Cache-Control" content="max-age=7200" />
|
||||
<title>loading</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="load.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/dark.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="load.js"></script>
|
||||
</head>
|
||||
<body onLoad="OnInit()">
|
||||
<img id="LoadingSvg" src="loading.svg" />
|
||||
</body>
|
||||
</html>
|
21
resources/web/guide/0/load.css
Normal file
21
resources/web/guide/0/load.css
Normal file
|
@ -0,0 +1,21 @@
|
|||
@keyframes rotate {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
display:flex;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#LoadingSvg
|
||||
{
|
||||
animation: rotate 5s infinite linear;
|
||||
height: 60%;
|
||||
}
|
24
resources/web/guide/0/load.js
Normal file
24
resources/web/guide/0/load.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
var TargetPage=null;
|
||||
|
||||
function OnInit()
|
||||
{
|
||||
TargetPage=GetQueryString("target");
|
||||
|
||||
//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');
|
||||
}
|
9
resources/web/guide/0/loading.svg
Normal file
9
resources/web/guide/0/loading.svg
Normal file
|
@ -0,0 +1,9 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 19.2742C11 19.675 11.3555 20 11.7941 20C16.3261 20 20 16.6421 20 12.5C20 8.35786 16.3261 5 11.7941 5C11.3555 5 11 5.32496 11 5.72581C11 6.12666 11.3555 6.45161 11.7941 6.45161C15.4489 6.45161 18.4118 9.15957 18.4118 12.5C18.4118 15.8404 15.4489 18.5484 11.7941 18.5484C11.3555 18.5484 11 18.8733 11 19.2742Z" fill="url(#paint0_linear_2417_1599)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_2417_1599" x1="11.9338" y1="19.2801" x2="11" y2="5.79458" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#00AE42"/>
|
||||
<stop offset="1" stop-color="#00AE42" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 747 B |
Loading…
Add table
Add a link
Reference in a new issue