Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zanhuangyingji
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
yaqizhang
zanhuangyingji
Commits
b55515f3
Commit
b55515f3
authored
Apr 07, 2022
by
yaqizhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://111.61.77.35:15/yaqizhang/zanhuangyingji
into master
parents
8ba8faac
59535284
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
544 additions
and
442 deletions
+544
-442
app.js
ioc_frontweb/js/app.js
+527
-430
utils.js
ioc_frontweb/js/utils.js
+10
-10
style.css
ioc_frontweb/style/style.css
+7
-2
No files found.
ioc_frontweb/js/app.js
View file @
b55515f3
This diff is collapsed.
Click to expand it.
ioc_frontweb/js/utils.js
View file @
b55515f3
...
...
@@ -627,7 +627,7 @@ function createLegendList() {
tmpLi
+=
'<li data-id="'
+
items
[
i
].
id
+
'" class="legendItem"><div><img class="legendPic" style="padding: 7px 0;" src="./images/legend/'
+
'" class="legendItem"><div
class="first"
><img class="legendPic" style="padding: 7px 0;" src="./images/legend/'
+
items
[
i
].
legendCode
+
'.png" alt=""/><span class="legendTitle">'
+
items
[
i
].
legendName
+
...
...
@@ -645,15 +645,15 @@ function createLegendList() {
var
legendchild
=
document
.
getElementsByClassName
(
"legendchild"
);
for
(
var
i
=
0
;
i
<
legenditem
.
length
;
i
++
){
// legenditem[i].index = i;
legenditem
[
i
].
onclick
=
function
(){
if
(
this
.
lastChild
.
style
.
display
==
"none"
){
this
.
style
.
backgroundImage
=
"url(images/vectorbot.png)"
;
this
.
lastChild
.
style
.
display
=
"block"
;
}
else
{
this
.
style
.
backgroundImage
=
"url(images/re.png)"
;
this
.
lastChild
.
style
.
display
=
"none"
;
}
};
//
legenditem[i].onclick = function(){
//
if(this.lastChild.style.display == "none"){
//
this.style.backgroundImage="url(images/vectorbot.png)";
//
this.lastChild.style.display = "block";
//
}else{
//
this.style.backgroundImage="url(images/re.png)";
//
this.lastChild.style.display = "none";
//
}
//
};
}
// 默认显示视频监控设备
// $('.legendItem').eq(0).click();
...
...
ioc_frontweb/style/style.css
View file @
b55515f3
...
...
@@ -317,7 +317,7 @@ table.layui-table th {
.legendItem
{
margin
:
3px
0
;
overflow
:
hidden
;
cursor
:
pointer
;
/* cursor: pointer; */
float
:
left
;
background
:
url(../images/re.png)
;
background-size
:
100%
100%
;
...
...
@@ -325,11 +325,16 @@ table.layui-table th {
padding
:
0
5px
;
margin-left
:
10px
;
}
.legendItem
.first
{
cursor
:
pointer
;
}
.legendchild
{
display
:
none
;
width
:
auto
;
position
:
fixed
;
bottom
:
85px
;
bottom
:
50px
;
height
:
70px
;
}
/* .legendItem:active + .legendchild{
display: block;
...
...
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