Skip to content

Commit a44ef74

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

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

_includes/weather.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
<!--<iframe width="225" scrolling="no" height="89" frameborder="0" allowtransparency="true"-->
33
<!--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>
7-
85
<div class="r weather" style="margin-left: 20px">
96
<iframe id="weather" style="width: 230px" allowtransparency="true" frameborder="0" width="255px" height="100px"
107
scrolling="no"

_layouts/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<script src="/js/jquery-1.11.0.js"></script>
2525
<!-- Bootstrap Core JavaScript -->
2626
<script src="/js/bootstrap.min.js"></script>
27+
<script>setInterval("linkweb.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);</script>
2728
</head>
2829

2930
<body>
@@ -68,7 +69,7 @@
6869
<!-- Blog weather Well -->
6970
<div class="well">
7071
<h4>
71-
时间天气
72+
<div id="linkweb"></div>
7273
</h4>
7374
<div class="row">
7475
{% include weather.html %}

0 commit comments

Comments
 (0)