FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
electron-node-red/console.htm at master · feecat/electron-node-red · GitHub
feecat
/
electron-node-red
Public
forked from
dceejay/electron-node-red
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
electron-node-red
/
console.htm
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (40 loc) · 1.79 KB
Breadcrumbs
electron-node-red
/
console.htm
Copy path
File metadata and controls
40 lines (40 loc) · 1.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html
>
<
html
lang
="
en
"
>
<
head
>
<
meta
charset
="
utf-8
"
>
<
meta
http-equiv
="
X-UA-Compatible
"
content
="
IE=edge
"
>
<
title
>
Node-RED Console
</
title
>
<
meta
name
="
viewport
"
content
="
width=device-width, initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=1
"
>
<
script
>
const
logLength
=
250
;
const
ipc
=
require
(
'electron'
)
.
ipcRenderer
;
var
list
=
[
]
;
var
scrollDown
=
function
(
)
{
setTimeout
(
function
(
)
{
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
)
;
}
,
50
)
;
}
var
clearList
=
function
(
)
{
list
=
[
]
;
document
.
getElementById
(
"debug"
)
.
innerHTML
=
""
;
ipc
.
send
(
'clearLogBuffer'
,
"clear"
)
;
}
ipc
.
on
(
'logBuff'
,
(
event
,
data
)
=>
{
list
=
data
;
document
.
getElementById
(
"debug"
)
.
innerHTML
=
list
.
join
(
"<br/>"
)
;
}
)
;
ipc
.
on
(
'debugMsg'
,
(
event
,
data
)
=>
{
list
.
push
(
data
)
;
if
(
list
.
length
>
logLength
)
{
list
.
shift
(
)
;
}
document
.
getElementById
(
"debug"
)
.
innerHTML
=
list
.
join
(
"<br/>"
)
;
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
)
;
}
)
;
</
script
>
</
head
>
<
body
style
="
margin:0;
"
onload
="
scrollDown()
"
>
<
font
style
="
font-family:'Helvetica Neue', Arial, Helvetica, sans-serif; font-size:9pt;
"
>
<
div
id
="
header
"
style
="
background-color:#910000; position:fixed; height:16px; width:100%; padding:8px;
"
>
<
input
type
="
button
"
style
="
float:right; margin-right:15px
"
value
="
Clear Log
"
onclick
="
clearList()
"
;
/>
</
div
>
<
div
id
="
debug
"
style
="
padding:4px; padding-left:8px; padding-top:34px;
"
>
</
div
>
</
font
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL