mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Updates to index page.
This commit is contained in:
parent
60d5aadda2
commit
c9db64b494
@ -7,7 +7,8 @@
|
||||
}
|
||||
|
||||
<div class="text-center mt-5" style="margin-bottom:150px">
|
||||
<h1>Remotely Login</h1>
|
||||
<h1 id="remotelyHeader">
|
||||
</h1>
|
||||
<div class="lead">
|
||||
Welcome. Please log in@(registrationAvailable ? " or register" : "").
|
||||
</div>
|
||||
@ -25,3 +26,5 @@
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="module" src="~/scripts/Pages/IndexNotLoggedIn.js"></script>
|
||||
@ -49,6 +49,7 @@
|
||||
<Content Remove="wwwroot\scripts\Models\Point.ts" />
|
||||
<Content Remove="wwwroot\scripts\Models\UserOptions.ts" />
|
||||
<Content Remove="wwwroot\scripts\Pages\ApiTokens.ts" />
|
||||
<Content Remove="wwwroot\scripts\Pages\IndexNotLoggedIn.ts" />
|
||||
<Content Remove="wwwroot\scripts\Pages\OrganizationManagement.ts" />
|
||||
<Content Remove="wwwroot\scripts\RemoteControl\ClipboardWatcher.ts" />
|
||||
<Content Remove="wwwroot\scripts\RemoteControl\Main.ts" />
|
||||
@ -163,6 +164,7 @@
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Models\Device.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Models\Parameter.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Pages\ApiTokens.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Pages\IndexNotLoggedIn.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Pages\OrganizationManagement.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\RemoteControl\ClipboardWatcher.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\RemoteControl\Main.ts" />
|
||||
|
||||
36
Server/wwwroot/scripts/Pages/IndexNotLoggedIn.js
Normal file
36
Server/wwwroot/scripts/Pages/IndexNotLoggedIn.js
Normal file
@ -0,0 +1,36 @@
|
||||
function typeText(textParts, header) {
|
||||
var currentText = textParts[0];
|
||||
textParts[0] = currentText.slice(1);
|
||||
if (currentText.length > 0) {
|
||||
if (currentText.split('').some(x => x != " ")) {
|
||||
header.innerHTML += currentText.charAt(0);
|
||||
window.setTimeout(() => {
|
||||
typeText(textParts, header);
|
||||
}, 100);
|
||||
}
|
||||
else {
|
||||
header.innerHTML = header.innerHTML.slice(0, -1);
|
||||
window.setTimeout(() => {
|
||||
typeText(textParts, header);
|
||||
}, 50);
|
||||
}
|
||||
}
|
||||
else {
|
||||
textParts.shift();
|
||||
if (textParts.length > 0) {
|
||||
window.setTimeout(() => {
|
||||
typeText(textParts, header);
|
||||
}, 800);
|
||||
}
|
||||
}
|
||||
}
|
||||
var text = [
|
||||
"Remote desktop",
|
||||
" ",
|
||||
" scripting",
|
||||
" ",
|
||||
"ly"
|
||||
];
|
||||
var header = document.getElementById("remotelyHeader");
|
||||
typeText(text, header);
|
||||
//# sourceMappingURL=IndexNotLoggedIn.js.map
|
||||
1
Server/wwwroot/scripts/Pages/IndexNotLoggedIn.js.map
Normal file
1
Server/wwwroot/scripts/Pages/IndexNotLoggedIn.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"IndexNotLoggedIn.js","sourceRoot":"","sources":["IndexNotLoggedIn.ts"],"names":[],"mappings":"AAAA,SAAS,QAAQ,CAAC,SAAmB,EAAE,MAA0B;IAC7D,IAAI,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAC/B,SAAS,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEpC,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QACxB,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE;YAC3C,MAAM,CAAC,SAAS,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC1C,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;gBACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAChC,CAAC,EAAE,GAAG,CAAC,CAAA;SACV;aACI;YACD,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YACjD,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;gBACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAChC,CAAC,EAAE,EAAE,CAAC,CAAA;SACT;KACJ;SACI;QACD,SAAS,CAAC,KAAK,EAAE,CAAC;QAElB,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;YACtB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;gBACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAChC,CAAC,EAAE,GAAG,CAAC,CAAA;SACV;KACJ;AACL,CAAC;AAED,IAAI,IAAI,GAAG;IACP,gBAAgB;IAChB,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,IAAI;CACP,CAAC;AAEF,IAAI,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC,gBAAgB,CAAuB,CAAC;AAE7E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC"}
|
||||
40
Server/wwwroot/scripts/Pages/IndexNotLoggedIn.ts
Normal file
40
Server/wwwroot/scripts/Pages/IndexNotLoggedIn.ts
Normal file
@ -0,0 +1,40 @@
|
||||
function typeText(textParts: string[], header: HTMLHeadingElement) {
|
||||
var currentText = textParts[0];
|
||||
textParts[0] = currentText.slice(1);
|
||||
|
||||
if (currentText.length > 0) {
|
||||
if (currentText.split('').some(x => x != " ")) {
|
||||
header.innerHTML += currentText.charAt(0);
|
||||
window.setTimeout(() => {
|
||||
typeText(textParts, header);
|
||||
}, 100)
|
||||
}
|
||||
else {
|
||||
header.innerHTML = header.innerHTML.slice(0, -1);
|
||||
window.setTimeout(() => {
|
||||
typeText(textParts, header);
|
||||
}, 50)
|
||||
}
|
||||
}
|
||||
else {
|
||||
textParts.shift();
|
||||
|
||||
if (textParts.length > 0) {
|
||||
window.setTimeout(() => {
|
||||
typeText(textParts, header);
|
||||
}, 800)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var text = [
|
||||
"Remote desktop",
|
||||
" ",
|
||||
" scripting",
|
||||
" ",
|
||||
"ly"
|
||||
];
|
||||
|
||||
var header = document.getElementById("remotelyHeader") as HTMLHeadingElement;
|
||||
|
||||
typeText(text, header);
|
||||
Loading…
Reference in New Issue
Block a user