Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3DWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐来柯
3DWeb
Commits
804ecde1
Commit
804ecde1
authored
Jan 07, 2022
by
徐来柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add layerjs
parent
37f7c17c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
2 deletions
+21
-2
index.html
index.html
+2
-0
index.js
js/index.js
+19
-2
layer.js
js/layerjs/layer.js
+0
-0
icon-ext.png
js/layerjs/theme/default/icon-ext.png
+0
-0
icon.png
js/layerjs/theme/default/icon.png
+0
-0
layer.css
js/layerjs/theme/default/layer.css
+0
-0
loading-0.gif
js/layerjs/theme/default/loading-0.gif
+0
-0
loading-1.gif
js/layerjs/theme/default/loading-1.gif
+0
-0
loading-2.gif
js/layerjs/theme/default/loading-2.gif
+0
-0
No files found.
index.html
View file @
804ecde1
...
...
@@ -104,5 +104,6 @@
<script
src=
"./js/jquery.min.js"
></script>
<script
src=
"./js/echarts.js"
></script>
<script
src=
"./js/day.js"
></script>
<script
src=
"./js/layerjs/layer.js"
></script>
<script
src=
"./js/index.js"
></script>
</html>
\ No newline at end of file
js/index.js
View file @
804ecde1
...
...
@@ -548,6 +548,7 @@ getRight3()
setInterval
(()
=>
{
getRight3
()
},
1000
)
let
alarmItem
=
[]
function
getRight3
()
{
let
alarm
=
document
.
getElementById
(
'alarm'
)
let
alarmData
=
document
.
getElementById
(
'alarmData'
)
...
...
@@ -561,8 +562,9 @@ function getRight3() {
success
:
function
(
res
)
{
alarmData
.
innerText
=
res
.
data
.
length
let
str
=
``
res
.
data
.
forEach
(
item
=>
{
str
+=
`<div class="list list_red">
alarmItem
=
res
.
data
alarmItem
.
forEach
((
item
,
index
)
=>
{
str
+=
`<div class="list list_red" onmouseover="showTips(event,
${
index
}
)" id="alarm
${
index
}
" >
<span>
${
item
.
Info
}
</span>
</div>`
})
...
...
@@ -570,3 +572,17 @@ function getRight3() {
},
});
}
function
showTips
(
e
,
index
)
{
let
tips
=
layer
.
tips
(
alarmItem
[
index
].
Info
,
'#'
+
e
.
currentTarget
.
id
,
{
tips
:
1
,
time
:
0
,
area
:
'auto'
,
maxWidth
:
500
,
skin
:
'table-tips'
,
});
e
.
currentTarget
.
onmouseleave
=
function
()
{
layer
.
closeAll
(
tips
);
}
}
\ No newline at end of file
js/layerjs/layer.js
0 → 100644
View file @
804ecde1
This diff is collapsed.
Click to expand it.
js/layerjs/theme/default/icon-ext.png
0 → 100644
View file @
804ecde1
5.77 KB
js/layerjs/theme/default/icon.png
0 → 100644
View file @
804ecde1
11.2 KB
js/layerjs/theme/default/layer.css
0 → 100644
View file @
804ecde1
This diff is collapsed.
Click to expand it.
js/layerjs/theme/default/loading-0.gif
0 → 100644
View file @
804ecde1
5.66 KB
js/layerjs/theme/default/loading-1.gif
0 → 100644
View file @
804ecde1
701 Bytes
js/layerjs/theme/default/loading-2.gif
0 → 100644
View file @
804ecde1
1.75 KB
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