-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
134 lines (119 loc) · 2.73 KB
/
index.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Find寻找自己</title>
<link rel="stylesheet" href="static/css/index.css">
<script src="https://cdn.bootcss.com/jquery/1.8.2/jquery.js"></script>
<!--<script src="./service/config.js"></script>-->
<style>
.nav {
background-color: black;
display: inline-block;
padding: 10px;
width: 100%;
}
.nav a {
color: #e7040f;
font-weight: bold;
padding: 10px;
}
.nav img {
vertical-align: middle;
}
.select .start {
width: auto;
height: 900px;
background-color: #000000;
}
.select .part {
display: none;
}
.select .part .ch {
width: auto;
height: 900px;
background-color: #333333;
}
.select .part .part-float {
width: 600px;
height: 333px;
float: left;
margin-top: 230px;
margin-left: 300px;
background-color: #333333;
}
.select .part .part-float h3 {
float: right;
}
.select .part .ch .ch-left {
width: 333px;
height: 100%;
float: left;
background-color: #000000;
}
.select .part .ch .ch-right {
width: 339px;
height: 100%;
float: right;
background-color: #000000;
}
.select .part .sh {
width: auto;
height: 900px;
background-color: #0d5aa7;
}
.select .part .jh {
width: auto;
height: 900px;
background-color: #5555aa;
}
</style>
</head>
<body>
<div class="nav">
<img id="nav_img" onclick="navImgChange();" src="./static/imgs/find.jpg" >
<div class="nav_con" style="display: inline-block">
<a href="static/index.html">新片段</a>
<a>程有趣</a>
<a>诗有情</a>
<a>今日F榜</a>
</div>
</div>
<div class="select">
<div class="start"></div>
<div class="part">
<div class="ch">
<div class="ch-left"></div>
<div class="part-float" style="color: white;font-size: larger">
<h1>追梦第38天,好 棒 哟 !</h1>
<h3>by - 小 f</h3>
</div>
<div class="ch-right"></div>
</div>
</div>
<div class="part">
<a><div class="sh"></div></a>
</div>
<div class="part">
<a><div class="jh"></div></a>
</div>
<div class="hide" style="display: none" id=""></div>
</div>
<script>
$('.nav_con a').on('click', function () {
$('.select .start').hide();
$('.select .part').hide();
var index = $(this).index();
$('.select .part').eq(index).show();
$('.select .hide').text(index);
})
</script>
<script type="text/javascript">
function navImgChange() {
var index = $('.select .hide').text();
$('.select .part').eq(index).hide();
$('.select .start').show();
}
</script>
</body>
</html>