Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
3cb33c36
Commit
3cb33c36
authored
9 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
UI: add a splashscreen
parent
a492020c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
gui/index.html
+50
-0
50 additions, 0 deletions
gui/index.html
gui/package.json
+6
-2
6 additions, 2 deletions
gui/package.json
with
56 additions
and
2 deletions
gui/index.html
0 → 100644
+
50
−
0
View file @
3cb33c36
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
Duniter
</title>
<style>
html
{
font-family
:
"Courier New"
,
Courier
,
monospace
;
}
img
{
width
:
50%
;
margin-left
:
auto
;
margin-right
:
auto
;
display
:
block
;
margin-top
:
40vh
;
transform
:
translateY
(
-50%
);
}
h1
{
text-align
:
center
;
width
:
80%
;
margin-top
:
-10%
;
margin-left
:
auto
;
margin-right
:
auto
;
}
</style>
</head>
<body>
<img
src=
"duniter.png"
/>
<h1
id=
"loader"
>
Loading...
</h1>
<script
type=
"text/javascript"
>
function
reqListener
()
{
document
.
getElementById
(
'
loader
'
).
innerHTML
=
'
Server ready.
'
;
location
.
href
=
'
http://127.0.0.1:9220
'
;
}
function
test
()
{
var
oReq
=
new
XMLHttpRequest
();
oReq
.
addEventListener
(
"
load
"
,
reqListener
);
oReq
.
open
(
"
GET
"
,
"
http://127.0.0.1:9220/
"
);
oReq
.
send
();
}
function
strange
()
{
document
.
getElementById
(
'
loader
'
).
innerHTML
=
'
The server is not starting...
'
;
}
setInterval
(
test
,
800
);
setTimeout
(
strange
,
8000
);
</script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
gui/package.json
+
6
−
2
View file @
3cb33c36
{
{
"name"
:
"Duniter"
,
"name"
:
"Duniter"
,
"main"
:
"
http://localhost:9220
"
,
"main"
:
"
index.html
"
,
"node-main"
:
"../sources/bin/ucoind"
,
"node-main"
:
"../sources/bin/ucoind"
,
"window"
:
{
"window"
:
{
"icon"
:
"duniter.png"
,
"icon"
:
"duniter.png"
,
"title"
:
"Duniter v0.2"
"title"
:
"Duniter"
,
"width"
:
800
,
"height"
:
800
,
"min_width"
:
750
,
"min_height"
:
400
}
}
}
}
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