-
Notifications
You must be signed in to change notification settings - Fork 0
/
z2_topical_hub.html
115 lines (102 loc) · 3.69 KB
/
z2_topical_hub.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
---
layout: page
title: "专栏 | Topical Hub"
description: "「聚沙成塔丨积羽沉舟」"
header-img: "img/use/topical_hub.jpg"
header-mask: 0.3
---
<blockquote>
<p>本栏目对部分过往文章按主题进行了重新梳理</p>
<p>【点击对应栏目跳转】</p>
</blockquote>
<!-- 按钮 -->
<div style="display: flex; margin-top:16px; margin-bottom: 30px; justify-content:center; white-space: normal;">
<button id='visualization' class='light hub_choice' style="margin-right: 20px;">
<ion-icon name="desktop-outline" size="large"></ion-icon>
可视化<br>
visualization
</button>
<button id='DigitalIntelligenceMarketing' class='light hub_choice'>
<ion-icon name="pulse-outline" size="large"></ion-icon>
数智化营销<br>
Digital Intelligence Marketing
</button>
</div>
<div style="display: flex; margin-top:16px; margin-bottom: 30px; justify-content:center; white-space: normal;">
<button id='Methods' class='light hub_choice' style="margin-right: 20px;">
<ion-icon name="library-outline" size="large"></ion-icon>
研究方法<br>
Research Method
</button>
<button id="Tools" class='light hub_choice'>
<ion-icon name="construct-outline" size="large"></ion-icon>
日常工具<br>
Toolbox
</button>
</div>
<div class="post-container" id="hub_content">
</div>
<script>
let choices = document.querySelectorAll('.hub_choice');
choices.forEach((choice) => {
choice.onclick = handlehub;
})
function handlehub(e) {
let httpRequest = new XMLHttpRequest();
httpRequest.onreadystatechange = handleResponse;
httpRequest.open('GET', e.target.id + '.html');
httpRequest.send();
}
function handleResponse(e) {
if (e.target.readyState == XMLHttpRequest.DONE && e.target.status == 200) {
document.querySelector('#hub_content').innerHTML = e.target.responseText;
}
}
</script>
<!-- 横线 -->
<br>
<p width=window.innerWidth style="border-top: 6px solid #3879B1;border-radius: 6px; margin-bottom: 30px;"></p>
<!-- 日历图 -->
<div style="border-collapse: separate;">
{% include calendar.html %}
</div>
<!-- 文章库 -->
<br>
<div style="display: flex; justify-content: center">
<button type="button" id="all">
<div class="svg-wrapper-1">
<div class="svg-wrapper">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<path fill="none" d="M0 0h24v24H0z"></path>
<path fill="currentColor"
d="M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z">
</path>
</svg>
</div>
</div>
<span>文章库</span>
</button>
</div>
<br>
<div id="showAll">
</div>
<script>
let all = document.querySelectorAll('#all');
all.forEach((all) => {
all.onclick = handleAll;
})
function handleAll(e) {
let httpRequest = new XMLHttpRequest();
httpRequest.onreadystatechange = handleAllResponse;
httpRequest.open('GET', 'hub.html');
httpRequest.send();
}
function handleAllResponse(e) {
if (e.target.readyState == XMLHttpRequest.DONE && e.target.status == 200) {
document.querySelector('#showAll').innerHTML = e.target.responseText;
}
}
</script>
<!-- 安装图标库 -->
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>