Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
html
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
html
Commits
b85d6081
Commit
b85d6081
authored
Nov 18, 2022
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
fe46ff2a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
22 deletions
+8
-22
promise.gadget.js
promise.gadget.js
+6
-0
promise_gadget.js
promise_gadget.js
+0
-19
software.cfg.html
software.cfg.html
+2
-3
No files found.
promise.gadget.js
0 → 100644
View file @
b85d6081
/*global window, rJS, jIO, RSVP, Blob*/
/*jslint indent:2, maxlen: 80, nomen: true */
(
function
(
window
,
rJS
,
jIO
,
RSVP
)
{
"
use strict
"
;
var
gadget_definition
=
rJS
(
window
);
}(
window
,
rJS
,
RSVP
));
promise_gadget.js
deleted
100644 → 0
View file @
fe46ff2a
fetch
(
'
example.json.log
'
)
.
then
(
function
(
response
)
{
return
response
.
json
();
})
.
then
(
function
(
log_list
)
{
appendData
(
log_list
);
})
.
catch
(
function
(
err
)
{
console
.
log
(
'
error:
'
+
err
);
});
function
appendData
(
log_list
)
{
var
mainContainer
=
document
.
getElementById
(
"
myLog
"
);
for
(
var
i
=
0
;
i
<
log_list
.
length
;
i
++
)
{
var
div
=
document
.
createElement
(
"
div
"
);
console
.
log
(
JSON
.
parse
(
log_list
[
i
].
data
))
div
.
innerHTML
=
log_list
[
i
].
time
+
"
"
+
log_list
[
i
].
log_level
+
"
"
+
log_list
[
i
].
message
+
"
"
+
log_list
[
i
].
data
;
mainContainer
.
appendChild
(
div
);
}
}
software.cfg.html
View file @
b85d6081
...
@@ -2,11 +2,10 @@
...
@@ -2,11 +2,10 @@
<head>
<head>
<script
src=
"rsvp.js"
></script>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"example.json.log"
></script>
<script
src=
"promise.gadget.js"
></script>
<script
src=
"promise_gadget.js"
></script>
</head>
</head>
<body>
<body>
<body>
<body>
<
div
id=
"myLog"
></div
>
<
h1>
Couscous
</h1
>
</body>
</body>
</html>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment