This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
119 lines (105 loc) · 4.08 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Web3Daily</title>
<link rel="icon" href="images/rebase-icon.png" type="image/x-icon" />
<link rel="shortcut icon" href="images/rebase-icon.png" type="image/x-icon">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui"> -->
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE;chrome=1">
<meta name="keywords" content="Rebase blockchain Bitcoin Ethereum 区块链 比特币 以太坊 波卡 数字货币">
<meta name="description" content="Rebase 是一个极客组织,致力于帮助极客更好地利用科技创新,推动社会变革。">
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.3/handlebars.min.js"></script>
<script id="articleTpl" type="text/x-handlebars-template">
{{#each articles}}
{{#if this}}
<div class="article">
<h2 class="title">
{{this.attributes.title}}
<span class="time">{{this.attributes.time}}</span>
</h2>
<p>
<a href="{{this.attributes.url}}" target="_blank">{{this.attributes.url}}</a>
<br />
</p>
<p>
<span class="author">{{this.attributes.author}}</span>
{{this.attributes.introduce}}
</p>
</div>
{{/if}}
{{/each}}
</script>
<style>
.wximg {
width: 200px;
height: 200px;
}
.img {
width: 150px;
height: 150px;
}
</style>
</head>
<body>
<div class="header">
<span>Web3 极客日报</span>
<small>@Rebase.network</small>
</div>
<!--
<div class="tables">
<a href="#" class="first">热门话题</a>
<a href="#">科技动态</a>
<a href="#">开发者资讯</a>
<a href="#">区块链快讯</a>
<a href="#">招聘行情</a>
</div>
<div class="lab"><a href="#"><img src="images/lab.png" width="50"></a></div>
-->
<div class="wire"></div>
<div id="posts">
<!--
<div class="article">
<h2 class="title">
<a href="#" target="_blank">英国拟对谷歌、Facebook 广告收入征收数字税</a>
<span class="time">2019/12/15</span>
</h2>
<p>
<span class="author">Shooter</span>
据外媒报道,英国财政部正计划对广告收入征收新的数字税。财政部正在研究,企业从英国用户身上获得了多少价值,并尝试让企业就这些价值纳税 ... 英国财政部长菲利普 · 哈蒙德(Philip Hammond)上周在保守党大会上发表演讲时提出所谓的「数字服务税」,这可能会瞄准美国科技巨头在英国的广告收入。但对可能影响英国科技创业公司的方案持谨慎态度 ... 来自英国政府的消息人士表示,新税将更多地影响谷歌和 Facebook,对亚马逊的影响较小。
</p>
</div>
-->
</div>
<div class="sponsor">
<h3>公众号</h3>
<a href="javascript:;"><img src="images/wx.jpg" class="wximg"></a>
</div>
<div class="sponsor">
<h3>链接</h3>
<a href="https://www.chainfeeds.xyz/" target="_blank"><img src="images/chainfeeds_light.svg" class="img"></a>
<!--
<a href="#"><img src="images/smwd.png"></a>
<a href="#"><img src="images/wegene.png"></a>
<a href="#"><img src="images/jsj.png"></a>
<a href="#"><img src="images/zr.png"></a>
<a href="#"><img src="images/dm.png"></a>
<a href="#"><img src="images/dz.png"></a>
-->
</div>
</body>
<script>
var url = "https://db.rebase.network/api/v1/geekdailies?sort=time:desc&pagination[page]=1&pagination[pageSize]=30";
$.get(url, function(resp) {
var data = resp.data;
var source = $("#articleTpl").html();
var template = Handlebars.compile(source);
var html = template({
articles: data
});
$('#posts').html(html);
})
</script>
</html>