-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtraining_material.html
More file actions
198 lines (173 loc) · 9.49 KB
/
training_material.html
File metadata and controls
198 lines (173 loc) · 9.49 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.88.1">
<title>資科研習教材</title>
<link rel="canonical" href="https://bootstrap5.hexschool.com/docs/5.1/examples/navbar-bottom/">
<!-- Bootstrap core CSS -->
<link href="https://bootstrap5.hexschool.com/docs/5.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- Favicons -->
<link rel="apple-touch-icon" href="https://bootstrap5.hexschool.com/docs/5.1/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="https://bootstrap5.hexschool.com/docs/5.1/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="https://bootstrap5.hexschool.com/docs/5.1/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="https://bootstrap5.hexschool.com/docs/5.1/assets/img/favicons/manifest.json">
<link rel="mask-icon" href="https://bootstrap5.hexschool.com/docs/5.1/assets/img/favicons/safari-pinned-tab.svg" color="#7952b3">
<link rel="icon" href="https://bootstrap5.hexschool.com/docs/5.1/assets/img/favicons/favicon.ico">
<meta name="theme-color" content="#7952b3">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container-fluid" id="navheader">
<data-module></data-module>
<a class="navbar-brand" href="#">資科研習教材</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<template v-for="session in sections">
<li class="nav-item">
<m-dropdown :clips="session.clips" @update="updateUrl">{{ session.title }}</m-dropdown>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
{{ session.title }}
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<template v-for="clip in session.clips">
<li><a class="dropdown-item" v-bind:href="clip.url">{{ clip.title }}</a></li>
</template>
</ul>
</div>
</li>
</template>
</ul>
<form class="d-flex">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</nav>
<main class="container">
<div class="bg-light p-5 rounded mt-3">
<h1>Bottom Navbar example</h1>
<p class="lead">This example is a quick exercise to illustrate how the bottom navbar works.</p>
<a class="btn btn-lg btn-primary" href="https://bootstrap5.hexschool.com/docs/5.1/components/navbar/" role="button">View navbar docs »</a>
<div class="container-fluid" id="navbar">
<nav class="navbar fixed-bottom navbar-expand-sm navbar-dark bg-dark">
<a class="navbar-brand" href="#">資科研習教材</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav">
<template v-for="session in sections">
<li class="nav-item">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
{{ session.title }}
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<template v-for="clip in session.clips">
<li><a class="dropdown-item" :href="clip.url">{{ clip.title }}</a></li>
</template>
</ul>
</div>
</li>
</template>
</div>
</div>
</nav>
</div>
</main>
<script src="https://bootstrap5.hexschool.com/docs/5.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="./components/m-dropdown.js"></script>
<script src="./components/data-module.js"></script>
<script>
var video = [
{
title: "1120研習教材",
clips: [
{ title: "研習教材(一)前端軟體設計架構介紹", url: "https://drive.google.com/file/d/1I6_kNEVf6W2cn2upUmhmXiNcn-2Rdj84/preview" },
{ title: "研習教材(二)Git 版本控制概念", url: "https://drive.google.com/file/d/1I5TFRokc1OHbPist4LEeoHi_we51lz2a/preview" },
{ title: "研習教材(三)Github程式庫介紹", url: "https://drive.google.com/file/d/1Np6K7_jiU9LbwX8VVqOCCm5bbQxvc8tA/preview" },
{ title: "研習教材(四)創建我的GitHub 遠端程式庫", url: "https://drive.google.com/file/d/1ytMiue5iBfGz-Ht2Sjlxwb-pbqiPXIiY/preview" },
{ title: "研習教材(五)使用VS Code開啟遠端程式庫", url: "https://drive.google.com/file/d/1pnC31F9WLmZKzpfdy1C2cJSepvU3ISFl/preview" },
{ title: "研習教材(六)推送一個靜態網頁", url: "https://drive.google.com/file/d/17OME_shV16E6-MP7EuwOiRmyGUcQKorU/preview" },
{ title: "研習教材(七)套用BootStrap與協作", url: "https://drive.google.com/file/d/1IYBZ5BzQb1_bF5OVfPqFE8gRq5k-Nbx-/preview" },
{ title: "研習教材(八)完成一個Vue動態網頁", url: "https://drive.google.com/file/d/1mTJtv_CfKqUnUetU9dL7xNj1K52neGle/preview" },
{ title: "研習教材(完)使用jsFiddle開發測試", url: "https://drive.google.com/file/d/1fZGrV7b--ozl416MG0Z1AI33cPgSTpNE/preview" }
]
},
{
title: "1204研習教材",
clips: [
{ title: "研習教材(一)軟體組職能介紹-認識軟體業", url: "https://drive.google.com/file/d/1qa8wAPVjI_yJn-ZYEKl1Jx9GMsrZuSn5/preview" },
{ title: "研習教材(二)軟體職能的修己與助人", url: "https://drive.google.com/file/d/10rlEMfQRR3CTBgds3sfii2dYUAsDxMRc/preview" },
{ title: "研習教材(三)軟體開發流程生命週期", url: "https://drive.google.com/file/d/1wQdHrUKVu5DdWwf1Y8RbhFD5DHX1EjMY/preview" },
{ title: "研習教材(四)複習與QrcodeReader預習", url: "https://drive.google.com/file/d/1KbRJu66f2sBVqDWIwemD2nyb_XquCn9v/preview" },
{ title: "研習教材(五)Vue的概念與核心實體", url: "https://drive.google.com/file/d/1p0hzkjjjn_m6dA_aIq68djsLThKxLQS3/preview" },
{ title: "研習教材(六)Vue的核心功能-資料加工與邏輯整合", url: "https://drive.google.com/file/d/1dClF7zAqRInpQlp6b17d1_Ofkga1LDO7/preview" },
{ title: "研習教材(七)Vue的黑魔法-指令", url: "https://drive.google.com/file/d/11nMt7jXjavW1fZC-CgBIIsEAy9R7C5nr/preview" },
{ title: "研習教材(完)用館務創造人生的價值", url: "https://drive.google.com/file/d/1VBthDsIRlHevjI4VNpFGIQSwa-EE4hXi/preview" }
]
}
]
/*
Vue.component('m-dropdown',{
props:['clips'],
methods:{
change(url){
this.$emit('update', url);
}
},
template:`
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
<slot></slot>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li v-for="clip in clips"><a class="dropdown-item" @click.prevent="change(clip)">{{ clip.title }}</a></li>
</ul>
</div>
`
});
*/
var navbar = new Vue({
data:{
sections: video
}
}).$mount("#navbar");
var navheader = new Vue({
data:{
sections: video
},
methods:{
updateUrl(url){
alert(url.title);
}
}
}).$mount("#navheader");
</script>
</body>
</html>