Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jianchayuan
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
liuqing
jianchayuan
Commits
205a5a20
Commit
205a5a20
authored
Nov 09, 2023
by
liuqing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://180.168.156.211:2903/liuqing/jianchayuan
# Conflicts: # index.html
parents
98b555df
a58bbc28
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
216 additions
and
0 deletions
+216
-0
index.html
index.html
+81
-0
workshop.css
static/css/workshop.css
+72
-0
workshop_bg.png
static/images/workshop_bg.png
+0
-0
workshop.html
workshop.html
+63
-0
No files found.
index.html
View file @
205a5a20
...
...
@@ -3,10 +3,72 @@
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<
<<<<<<
HEAD
<
title
>
监区平面图
</title>
<script
src=
"../static/js/flexible.js"
></script>
<link
rel=
"stylesheet"
href=
"../static/css/common.css"
>
</head>
=======
<script
src=
"static/js/jquery-1.8.1.min.js"
type=
text/javascript
></script>
<script
src=
"static/js/flexible.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"static/css/common.css"
/>
<title>
上海市人民检察院
</title>
</head>
<style
type=
"text/css"
>
/* img {
width: 100%;
} */
/* 鼠标悬停时显示的tooltip样式 */
.tooltip
{
position
:
absolute
;
background-color
:
#333
;
color
:
#fff
;
padding
:
5px
;
border-radius
:
5px
;
display
:
none
;
/* 初始时隐藏 */
}
</style>
<script
type=
"text/javascript"
>
$
(
function
()
{
})
function
handleClick
(
areaNumber
)
{
// 根据不同的区域执行不同的操作
switch
(
areaNumber
)
{
case
1
:
alert
(
'点击了区域 1'
);
// 执行区域 1 的操作
break
;
case
2
:
alert
(
'点击了区域 2'
);
// 执行区域 2 的操作
break
;
// 添加更多的 case 语句处理其他区域
}
}
function
showTooltip
(
event
,
content
)
{
// 获取tooltip元素
var
tooltip
=
document
.
getElementById
(
'tooltip'
);
// 设置tooltip的内容
tooltip
.
innerHTML
=
content
;
// 设置tooltip的位置
tooltip
.
style
.
left
=
event
.
pageX
+
'px'
;
tooltip
.
style
.
top
=
event
.
pageY
+
'px'
;
// 显示tooltip
tooltip
.
style
.
display
=
'block'
;
}
function
hideTooltip
()
{
// 隐藏tooltip
var
tooltip
=
document
.
getElementById
(
'tooltip'
);
tooltip
.
style
.
display
=
'none'
;
}
</script>
>>>>>>> a58bbc28b511c367a82c847858c8470172463762
<body>
<div
class=
"container"
>
<div
class=
"main-area"
>
...
...
@@ -44,6 +106,25 @@
</div>
</div>
</div>
<
<<<<<<
HEAD
=
======
<
img
src=
"static/images/index1.png"
usemap=
"#image-map"
>
<map
name=
"image-map"
>
<area
target=
""
alt=
"jianzu1"
title=
"jianzu1"
href=
""
coords=
"588,579,633,641"
onclick=
"handleClick(1)"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu2"
title=
"jianzu2"
href=
""
coords=
"667,565,708,620"
onclick=
"handleClick(2)"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu3"
title=
"jianzu3"
href=
""
coords=
"708,687,669,641"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu4"
title=
"jianzu4"
href=
""
coords=
"732,638,776,683"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu5"
title=
"jianzu5"
href=
""
coords=
"758,564,803,618"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu6"
title=
"jianzu6"
href=
""
coords=
"820,452,857,501"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu7"
title=
"jianzu7"
href=
""
coords=
"834,536,869,587"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu8"
title=
"jianzu8"
href=
""
coords=
"981,518,1015,564"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu9"
title=
"jianzu9"
href=
""
coords=
"1066,644,1103,696"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu10"
title=
"jianzu10"
href=
""
coords=
"1129,639,1171,686"
shape=
"rect"
>
<area
target=
""
alt=
"jianzu11"
title=
"jianzu11"
href=
""
coords=
"1241,662,1283,705"
shape=
"rect"
>
</map>
>>>>>>> a58bbc28b511c367a82c847858c8470172463762
</div>
</body>
...
...
static/css/workshop.css
0 → 100644
View file @
205a5a20
.padding_box
{
padding
:
3.5rem
2rem
0
;
}
.flex-box
{
display
:
flex
;
align-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
}
.menu_box
{
width
:
10rem
;
}
.menu_title_box
{
width
:
100%
;
text-align
:
center
;
font-size
:
32px
;
color
:
#fff
;
}
.tab_list
ul
{
display
:
block
;
width
:
100%
;
}
.tab_list
ul
li
{
color
:
#fff
;
font-weight
:
normal
;
font-size
:
16px
;
background
:
rgb
(
0
35
105
/
70%
);
margin
:
0.4rem
0
;
border-radius
:
0.2rem
;
line-height
:
2rem
;
}
.tab_list
ul
li
div
{
font-size
:
0.6rem
;
justify-content
:
space-around
;
}
.monitor
{
font-size
:
0.5rem
;
}
.monitor
span
{
background
:
#006aec
;
padding
:
0.1rem
0.4rem
;
border-radius
:
2rem
;
margin-left
:
0.1rem
;
}
.tab_list
ul
li
a
{
color
:
#a84c47
;
}
.tab_list
ul
li
.current
{
line-height
:
2rem
;
border
:
none
;
background
:
#006aec
;
font-weight
:
normal
;
}
.tab_list
ul
li
.current
.monitor
span
{
background
:
#0055bd
;
}
.content_box
{
flex
:
1
;
}
\ No newline at end of file
static/images/workshop_bg.png
0 → 100644
View file @
205a5a20
841 KB
workshop.html
0 → 100644
View file @
205a5a20
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<script
src=
"static/js/jquery-1.8.1.min.js"
type=
text/javascript
></script>
<script
src=
"static/js/flexible.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"static/css/common.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"static/css/workshop.css"
/>
<title>
上海市人民检察院
</title>
</head>
<style
type=
"text/css"
>
.content
{
background
:
url(static/images/workshop_bg.png)
;
width
:
100%
;
min-height
:
100vh
;
background-position-x
:
center
;
}
</style>
<script
type=
"text/javascript"
>
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
})
});
</script>
<body>
<div
class=
"content"
>
<div
class=
"flex-box padding_box"
>
<div
class=
"menu_box"
>
<div
class=
"menu_title_box"
>
北车间
</div>
<div
class=
"tab_list"
>
<ul>
<li
class=
"current"
>
<div
class=
"flex-box"
>
<p>
一楼
</p>
<p
class=
"monitor"
>
监控点
<span>
28
</span></p>
</div>
</li>
<li>
<div
class=
"flex-box"
>
<p>
二楼
</p>
<p
class=
"monitor"
>
监控点
<span>
28
</span></p>
</div>
</li>
</ul>
</div>
</div>
<div
class=
"content_box"
>
222
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
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