Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kanban-nanjing-11
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
caolun
kanban-nanjing-11
Commits
06b85c80
Commit
06b85c80
authored
Jun 21, 2024
by
xcc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跑马灯跑部分bug修复
parent
6b0c5550
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
1 deletion
+46
-1
page2.css
css/page2.css
+1
-1
page1.html
page1.html
+20
-0
page2.html
page2.html
+13
-0
page3.html
page3.html
+12
-0
No files found.
css/page2.css
View file @
06b85c80
...
...
@@ -855,7 +855,7 @@
}
.marquee-container
{
width
:
50
%
;
width
:
49
%
;
overflow
:
hidden
;
white-space
:
nowrap
;
box-sizing
:
border-box
;
...
...
page1.html
View file @
06b85c80
...
...
@@ -266,6 +266,8 @@
$
(
"
#warningNode
"
).
css
(
"
display
"
,
"
block
"
);
}
}
else
{
handStop
=
false
;
}
}
...
...
@@ -292,6 +294,12 @@
let
warningMsg
=
_data
.
warningMsg
;
$
(
"
#msgShowWindow
"
).
text
(
warningMsg
);
$
(
"
#msgShowWindow
"
).
addClass
(
"
error
"
);
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
var
duration
=
(
totalWidth
)
/
1000
*
1000
*
4
;
// 假设1px滚动需要1ms
element
.
style
.
animationDuration
=
duration
+
'
ms
'
;
}
}
}
if
(
_data
.
type
===
'
warningMag
'
){
...
...
@@ -300,12 +308,24 @@
let
warningMsg
=
_data
.
message
;
$
(
"
#msgShowWindow
"
).
text
(
warningMsg
);
$
(
"
#msgShowWindow
"
).
addClass
(
"
error
"
);
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
var
duration
=
(
totalWidth
)
/
1000
*
1000
*
4
;
// 假设1px滚动需要1ms
element
.
style
.
animationDuration
=
duration
+
'
ms
'
;
}
}
}
if
(
_data
.
type
==
'
broadcast
'
){
if
(
_data
.
message
){
$
(
"
#broadcastShowWindow
"
).
text
(
_data
.
message
);
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
var
duration
=
(
totalWidth
)
/
1000
*
1000
*
4
;
// 假设1px滚动需要1ms
element
.
style
.
animationDuration
=
duration
+
'
ms
'
;
}
}
}
...
...
page2.html
View file @
06b85c80
...
...
@@ -347,6 +347,7 @@ $(document).ready(function () {
}
if
(
_data
.
type
===
'
statusWarningMag
'
){
$
(
"
#equipmentStatus
"
).
text
(
_data
.
status
);
if
(
_data
.
status
===
'
异常
'
){
$
(
"
#equipmentStatus
"
).
addClass
(
"
error
"
);
//TODO 异常报警信息
...
...
@@ -357,10 +358,22 @@ $(document).ready(function () {
$
(
"
#msgShowWindow
"
).
removeClass
(
"
error
"
);
$
(
"
#equipmentStatus
"
).
addClass
(
"
text-124
"
);
}
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
var
duration
=
(
totalWidth
)
/
1000
*
1000
*
4
;
// 假设1px滚动需要1ms
element
.
style
.
animationDuration
=
duration
+
'
ms
'
;
}
}
if
(
_data
.
type
==
'
broadcast
'
){
if
(
_data
.
message
){
$
(
"
#broadcastShowWindow
"
).
text
(
_data
.
message
);
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
var
duration
=
(
totalWidth
)
/
1000
*
1000
*
4
;
// 假设1px滚动需要1ms
element
.
style
.
animationDuration
=
duration
+
'
ms
'
;
}
}
}
if
(
_data
.
type
==
'
info
'
){
...
...
page3.html
View file @
06b85c80
...
...
@@ -129,11 +129,23 @@
let
warningMsg
=
_data
.
warningMsg
;
$
(
"
#msgShowWindow
"
).
text
(
warningMsg
);
$
(
"
#msgShowWindow
"
).
addClass
(
"
error
"
);
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
var
duration
=
(
totalWidth
)
/
1000
*
1000
*
4
;
// 假设1px滚动需要1ms
element
.
style
.
animationDuration
=
duration
+
'
ms
'
;
}
}
}
if
(
_data
.
type
==
'
broadcast
'
){
if
(
_data
.
message
){
$
(
"
#broadcastShowWindow
"
).
text
(
_data
.
message
);
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
var
duration
=
(
totalWidth
)
/
1000
*
1000
*
4
;
// 假设1px滚动需要1ms
element
.
style
.
animationDuration
=
duration
+
'
ms
'
;
}
}
}
if
(
_data
.
type
===
'
siteId
'
){
...
...
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