Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
Website
Commits
a286aa09
Commit
a286aa09
authored
4 years ago
by
jonasled
Browse files
Options
Downloads
Patches
Plain Diff
fix error.ts gets alwaysExecuted
parent
bb4479f8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public/404.php
+3
-0
3 additions, 0 deletions
public/404.php
public/internal/500.php
+5
-2
5 additions, 2 deletions
public/internal/500.php
ts/error.ts
+9
-7
9 additions, 7 deletions
ts/error.ts
with
17 additions
and
9 deletions
public/404.php
+
3
−
0
View file @
a286aa09
...
...
@@ -56,5 +56,8 @@ if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) {
];
</script>
<script
src=
"/js/script.js"
></script>
<script>
startNewTask
();
</script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
public/internal/500.php
+
5
−
2
View file @
a286aa09
...
...
@@ -57,8 +57,11 @@ function getError500()
}
];
</script>
<script src="/js/script.js"></script>
</script>
<script src="/js/script.js"></script>
<script>
startNewTask();
</script>
</body>
</html>
EOF;
...
...
This diff is collapsed.
Click to expand it.
ts/error.ts
+
9
−
7
View file @
a286aa09
...
...
@@ -2,14 +2,14 @@ import Timeout = NodeJS.Timeout;
let
intervalTime
=
150
;
let
terminal
:
HTMLElement
=
<
HTMLElement
>
document
.
getElementsByClassName
(
"
terminal
"
)[
0
];
let
historyContainer
:
HTMLElement
=
<
HTMLElement
>
terminal
.
getElementsByClassName
(
"
history
"
)[
0
];
let
promptContainer
:
HTMLElement
=
<
HTMLElement
>
terminal
.
getElementsByClassName
(
"
prompt
"
)[
0
];
let
dataIndex
=
0
;
let
stringPosition
=
0
;
let
printTask
:
Timeout
;
let
terminal
:
HTMLElement
;
let
historyContainer
:
HTMLElement
;
let
promptContainer
:
HTMLElement
;
function
writeOut
()
{
// @ts-ignore
...
...
@@ -33,7 +33,9 @@ function writeOut() {
}
function
startNewTask
()
{
printTask
=
setInterval
(
writeOut
,
intervalTime
);
}
startNewTask
();
\ No newline at end of file
terminal
=
<
HTMLElement
>
document
.
getElementsByClassName
(
"
terminal
"
)[
0
];
historyContainer
=
<
HTMLElement
>
terminal
.
getElementsByClassName
(
"
history
"
)[
0
];
promptContainer
=
<
HTMLElement
>
terminal
.
getElementsByClassName
(
"
prompt
"
)[
0
];
printTask
=
setInterval
(
writeOut
,
intervalTime
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment