Skip to content

Commit a8078f6

Browse files
committed
modify HTML page design
1 parent 8eab7cf commit a8078f6

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

html/css/main.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
.name {
22
font-weight: bold;
33
}
4-
.screen_name, .datetime {
5-
color: lightslategray;
4+
.screen_name, time {
5+
color: lightgray;
66
}
77
body {
8-
background-color: darkgray;
8+
background-color: #ebae78;
9+
}
10+
a {
11+
color: #8E623C;
912
}
1013
h1, dl, footer {
1114
background-color: white;
@@ -16,10 +19,15 @@ h1 {
1619
margin-top: 50px;
1720
line-height: 2em;
1821
text-indent: 1em;
22+
background-color: #8E623C;
23+
}
24+
h1 a {
25+
color: white;
26+
text-decoration: none;
1927
}
2028
dt, footer {
2129
padding-top: 5px;
22-
border-top: 1px solid darkgray;
30+
border-top: 1px solid #ebae78;
2331
}
2432
dt img {
2533
float: left;
@@ -34,4 +42,9 @@ footer {
3442
text-align: center;
3543
padding-bottom: 10px;
3644
margin-bottom: 50px;
45+
color: white;
46+
background-color: #8E623C;
47+
}
48+
footer a {
49+
color: white;
3750
}

yaya_plugin_main.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ sys.fnc.makeHTML
163163
if (_reply_screen_name == '')
164164
continue
165165
_name = sys.fnc.d_to_s(_a_screen_name[_i])
166+
_time = RE_REPLACEEX(_a_datetimestr[_i], '^(\d{4})/(\d{2})/(\d{2}) (\d{2}):(\d{2}):(\d{2})$', '$1-$2-$3T$4:$5:$6')
166167
_t = '<dt><img src="' + _image_directory + _a_screen_name[_i] + '.png" width="32" height="32" alt="' + _a_screen_name[_i] + '" />'/
167-
+ '<span class="name">' + _name + '</span> <span class="screen_name">@' + _a_screen_name[_i] + '</span> <span class="datetime">' + _a_datetimestr[_i] + '</span></dt>'
168+
+ '<span class="name">' + _name + '</span> <span class="screen_name">@' + _a_screen_name[_i] + '</span> <time datetime="' + _time + '">' + _a_datetimestr[_i] + '</time></dt>'
168169
FWRITE(_path, _t)
169170
_mes = RE_REPLACEEX(_a_message[_i], "((?:https?|ftp):\/\/[-_.!~*'()a-zA-Z0-9;\/?:@&=+$,%#]+)", '<a href="$1">$1</a>')
170171
_t = '<dd><a href="#">@' + _reply_screen_name + '</a> ' + _mes + '</dd>'

0 commit comments

Comments
 (0)