Skip to content

Commit 149a7cd

Browse files
committed
添加本地时间
1 parent 8a933e6 commit 149a7cd

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

_includes/weather.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<!--<div class="entry-box">-->
2-
<!--<iframe width="225" scrolling="no" height="89" frameborder="0" allowtransparency="true"-->
3-
<!--src="http://i.tianqi.com/index.php?c=code&amp;id=12&amp;icon=1&amp;num=3"></iframe>-->
2+
<!--<iframe width="225" scrolling="no" height="89" frameborder="0" allowtransparency="true"-->
3+
<!--src="http://i.tianqi.com/index.php?c=code&amp;id=12&amp;icon=1&amp;num=3"></iframe>-->
44
<!--</div>-->
5+
<div id="linkweb" style="margin-left: 18px"></div>
6+
<script>setInterval("linkweb.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);</script>
57

68
<div class="r weather" style="margin-left: 20px">
7-
<iframe id="weather" style="width: 230px" allowtransparency="true" frameborder="0" width="255px" height="100px" scrolling="no"
9+
<iframe id="weather" style="width: 230px" allowtransparency="true" frameborder="0" width="255px" height="100px"
10+
scrolling="no"
811
src="//tianqi.2345.com/plugin/widget/index.htm?s=2&z=1&t=1&v=0&d=1&bd=0&k=000000&f=&q=1&e=0&a=1&c=58362&w=255&h=98&align=center"></iframe>
912
</div>
1013

11-
1214
<!--<div class="r weather">-->
13-
<!--<iframe allowtransparency="true" frameborder="0" width="877" height="100" scrolling="no"-->
14-
<!--src="http://tianqi.2345.com/plugin/widget/index.htm?s=2&z=1&t=1&v=0&d=3&bd=1&k=000000&f=&ltf=009944&htf=ffffff&q=1&e=1&a=1&c=54511&w=600&h=100&align=center"></iframe>-->
15+
<!--<iframe allowtransparency="true" frameborder="0" width="877" height="100" scrolling="no"-->
16+
<!--src="http://tianqi.2345.com/plugin/widget/index.htm?s=2&z=1&t=1&v=0&d=3&bd=1&k=000000&f=&ltf=009944&htf=ffffff&q=1&e=1&a=1&c=54511&w=600&h=100&align=center"></iframe>-->
1517
<!--</div>-->
1618

1719
<!--<div class="r weather">-->

_layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<!-- Blog weather Well -->
6969
<div class="well">
7070
<h4>
71-
天气状况
71+
时间天气
7272
</h4>
7373
<div class="row">
7474
{% include weather.html %}

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
{% if page.paginator %}
77
{% assign paginator = page.paginator %}
88
{% endif %}
9-
<div class="r weather">
10-
<iframe allowtransparency="true" frameborder="0" width="877" height="100" scrolling="no"
11-
src="//tianqi.2345.com/plugin/widget/index.htm?s=2&z=1&t=1&v=0&d=5&bd=1&k=000000&f=&ltf=009944&htf=cc0000&q=1&e=1&a=1&c=54511&w=877&h=100&align=center"></iframe>
12-
</div>
9+
<!--<div class="r weather">-->
10+
<!--<iframe allowtransparency="true" frameborder="0" width="877" height="100" scrolling="no"-->
11+
<!--src="http://tianqi.2345.com/plugin/widget/index.htm?s=2&z=1&t=1&v=0&d=5&bd=1&k=000000&f=&ltf=009944&htf=cc0000&q=1&e=1&a=1&c=54511&w=877&h=100&align=center"></iframe>-->
12+
<!--</div>-->
1313
<!-- Loop output paged posts -->
1414
{% for post in paginator.posts %}
1515
<h3 style="height: 25px; line-height: 20px; margin-top: -5px; margin-bottom: 0px;">

0 commit comments

Comments
 (0)