Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a1a4e8

Browse files
committed
loading
1 parent 14bffb9 commit 1a1a4e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

template/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,12 @@ <h2><a href="/articles/[%:id%]" target="_blank" title="[%:title%]">
370370
</article>
371371
</script>
372372

373+
<script type="text/x-jsrender" id="loading-tpl">
374+
<article class="article box_white" style="text-align: center; margin-top: 10px;">
375+
<img src="/static/img/loaders/loader7.gif" alt="加载中" />
376+
</article>
377+
</script>
378+
373379
{{end}}
374380
{{define "css"}}
375381
<link href="/static/css/index.css?v=0.4" rel="stylesheet"/>
@@ -413,6 +419,8 @@ <h2><a href="/articles/[%:id%]" target="_blank" title="[%:title%]">
413419
}
414420
}
415421

422+
$('#article-list').html($('#loading-tpl').html());
423+
416424
var params = {objtype: 1, limit: 10, rank_type: type}
417425
$.getJSON('/rank/view', params, function(result) {
418426
if (result.ok) {

0 commit comments

Comments
 (0)