mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 12:51:49 +00:00
first time popup
This commit is contained in:
parent
ccf84039c1
commit
fed7490129
@ -8,6 +8,18 @@
|
|||||||
<script src="js/index.js"></script>
|
<script src="js/index.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="firstTimeNotice">
|
||||||
|
<span>
|
||||||
|
<span class="boldTitle">Looks like this is your first time opening GrassClipper!<br/></span>
|
||||||
|
First of all, welcome, happy to see you here! :)<br/><br/>
|
||||||
|
Would you like to run the proxy installer?<br/>
|
||||||
|
(required to connect to private servers)
|
||||||
|
</span>
|
||||||
|
<div id="firstTimeBtns">
|
||||||
|
<button class="playBtn" id="firstTimeBtn" onclick="runInstallScript()">Install</button>
|
||||||
|
<button class="altBtn" id="firstTimeBtn">No thanks</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div id="settingsPanel" style="display: none;">
|
<div id="settingsPanel" style="display: none;">
|
||||||
<span id="fullSettingsTitle">Settings</span>
|
<span id="fullSettingsTitle">Settings</span>
|
||||||
<div id="settingsClose">
|
<div id="settingsClose">
|
||||||
|
@ -11,6 +11,29 @@ body {
|
|||||||
filter: brightness(0.6);
|
filter: brightness(0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.boldTitle {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.2em;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#firstTimeBtns {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#firstTimeBtns button {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#firstTimeNotice span {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#firstTimeNotice,
|
||||||
#settingsPanel {
|
#settingsPanel {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -23,9 +46,12 @@ body {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px solid #141414;
|
border: 1px solid #141414;
|
||||||
|
font-family: system-ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
#settingsPanel {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
height: 60%;
|
height: 60%;
|
||||||
font-family: system-ui;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#fullSettingsTitle {
|
#fullSettingsTitle {
|
||||||
@ -178,6 +204,21 @@ body {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.altBtn {
|
||||||
|
background: none;
|
||||||
|
color: #525252;
|
||||||
|
text-decoration: underline;
|
||||||
|
border: none;
|
||||||
|
line-height: 2px;
|
||||||
|
|
||||||
|
transition: color 0.05s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.altBtn:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
color: #ffd326;
|
||||||
|
}
|
||||||
|
|
||||||
.playBtn {
|
.playBtn {
|
||||||
padding: 0 30px;
|
padding: 0 30px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
:: Ensure admin
|
||||||
|
>nul 2>&1 reg query "HKU\S-1-5-19" || (
|
||||||
|
set params = %*:"="""%
|
||||||
|
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
|
||||||
|
)
|
||||||
|
|
||||||
echo Downloading proxy server...
|
echo Downloading proxy server...
|
||||||
|
|
||||||
if not exist "./ext" mkdir "ext"
|
if not exist "./ext" mkdir "ext"
|
Loading…
Reference in New Issue
Block a user