forked from xugy0926/getting-started-with-javascript
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
150 lines (144 loc) · 4.92 KB
/
index.html
File metadata and controls
150 lines (144 loc) · 4.92 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>JavaScript编程入门</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel='stylesheet' href='./public/libs/bootstrap-3.3.7-dist/css/bootstrap.min.css' />
<link rel="stylesheet" href="./public/style.css">
<script src="./public/jquery-3.2.1.min.js"></script>
<script src="./public/vue.min.js"></script>
</head>
<body>
<div id="app">
<div class="main-header">
<div class="container">
<h1 class="title">{{ courseInfo.title }}</h1>
<div>
<img class="avatar"
v-bind:src="courseInfo.teacherAvatar">
</img>
<div class="teacher-info-pannel">
<p class="teacher-info-item">讲师: <span>{{ courseInfo.teacher }}</span></p>
<p class="teacher-info-item">授课时间: <span>{{ courseInfo.startTime }} - {{ courseInfo.endTime }}</span></p>
</div>
</div>
</div>
<div class="xingda">
<img src="https://o4a7cbihz.qnssl.com/picture/57140c0c-4ffa-4dde-9757-570b53f96796"></img>
<a href="https://xinshengdaxue.com">新生大学出品</a>
</div>
</div>
<div class="container">
<div class="col-md-12">
<div class="bs-callout bs-callout-danger">
<h4> 提问技巧 </h4>
<p>
1. 先去新大app查找。<br/>
2. 再去getting-started-with-javascript的<a href="https://github.com/xugy0926/getting-started-with-javascript/issues">issues</a>检索相关问题,找不到相关问题可以发起一个问题,老师会回答。<br/>
3. 最后还解决不了?或你的问题觉得很紧急?在微信群里问,问之前把问题整理好,尽量提供详细信息。<br/>
4. 如果再微信群不好意思问,还给你准备了一个幼儿园班。<br/>
</p>
</div>
</div>
<div class="col-md-4">
<div class="row">
<a class="thumbnail" href="https://www.xinshengdaxue.com/lessons/details?course_id=40">
<img src="https://o4a7cbihz.qnssl.com/avatar/614bb7be-491b-4c23-be79-0bb504ec54f6">
<div class="caption">
<p>课程介绍</p>
</div>
</a>
</div>
<div style="margin-bottom: 15px">
<a type="button" class="btn btn-default btn-block" href="https://github.com/xugy0926/getting-started-with-javascript">
<span class="glyphicon glyphicon-heart" aria-hidden="true"></span> getting-started-with-javascript
</a>
<a type="button" class="btn btn-default btn-block" href="https://github.com/xugy0926/words-from-the-heart">
<span class="glyphicon glyphicon-heart" aria-hidden="true">
</span> words-from-the-heart
</a>
</div>
</div>
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">GIT & GITHUB</h3>
</div>
<div class="panel-body">
<li class="list-group-item" v-for="item in gitTopics">
<a :href="item.url">
{{ item.title }}
</a>
</li>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">PPT</h3>
</div>
<div class="panel-body">
<li class="list-group-item" v-for="item in ppt">
<a :href="item.url">
{{ item.title }}
</a>
</li>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">课程的技术文档</h3>
</div>
<div class="panel-body">
<li class="list-group-item" v-for="item in topics">
<a :href="item.url">
{{ item.title }}
</a>
</li>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<img class="avatar" src="https://ws1.sinaimg.cn/large/006tKfTcgy1fi7s7vo8y0j30hs0hsaay.jpg"></img>
</div>
</body>
</html>
<script>
var app = new Vue({
el: '#app',
data: {
courseInfo: {},
gitTopics: [],
ppt: [],
topics: []
},
methods: {
getCourseInfo() {
var that = this;
$.get('https://js.xinshengdaxue.com/api/v1/learnJS/course/1/detail', function(data) {
if (data && data.code === 1) {
that.courseInfo = data.courseInfo;
} else {
alert('fetch data error.');
}
});
},
getTopics() {
var that = this;
$.get('https://js.xinshengdaxue.com/api/v1/learnJS/course/1/catelog', function(data) {
if (data && data.code === 1) {
that.gitTopics = data.catelog.gitTopicsList;
that.ppt = data.catelog.pptList;
that.topics = data.catelog.topicsList;
} else {
alert('fetch data error.');
}
});
}
}
})
app.getCourseInfo();
app.getTopics();
</script>