-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
523 lines (397 loc) · 17.9 KB
/
404.html
File metadata and controls
523 lines (397 loc) · 17.9 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
<!DOCTYPE html>
<html lang="zh-tw">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="Hugo 0.53 with theme Tranquilpeak 0.4.3-BETA">
<title>404 Page not found</title>
<meta name="author" content="kwei">
<meta name="keywords" content=", Hugo, coding, js, engineer, sleepycookie">
<link rel="icon" href="https://sleepyman212.github.io/favicon.png">
<meta name="description" content="sleepycokie 的 blog 分享一些程式解題的心得和隨筆心得">
<meta property="og:description" content="sleepycokie 的 blog 分享一些程式解題的心得和隨筆心得">
<meta property="og:type" content="blog">
<meta property="og:title" content="404 Page not found">
<meta property="og:url" content="">
<meta property="og:site_name" content="sleepycookie's blog">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="sleepycookie's blog">
<meta name="twitter:description" content="sleepycokie 的 blog 分享一些程式解題的心得和隨筆心得">
<meta property="og:image" content="https://sleepyman212.github.io/images/cat.jpg">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.min.css" integrity="sha256-vuXZ9LGmmwtjqFX1F+EKin1ThZMub58gKULUyf0qECk=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/helpers/jquery.fancybox-thumbs.min.css" integrity="sha256-SEa4XYAHihTcEP1f5gARTB2K26Uk8PsndQYHQC1f4jU=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://sleepyman212.github.io/css/style-jsjn0006wyhpyzivf6yceb31gvpjatbcs3qzjvlumobfnugccvobqwxnnaj8.min.css" />
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-119870337-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
</head>
<main class="posts">
<article class="post">
<h1>404 Not Found</h1>
<p>Sorry, but we couldn't find the page you're looking for.</p>
<p>Please head back <a href="https://sleepyman212.github.io/">home</a>.</p>
</article>
</main>
<div id="about">
<div id="about-card">
<div id="about-btn-close">
<i class="fa fa-remove"></i>
</div>
<img id="about-card-picture" src="https://sleepyman212.github.io/images/cat.jpg" alt="作者的圖片" />
<h4 id="about-card-name">kwei</h4>
<div id="about-card-bio">挑戰每天的自己,比昨天更前進一點</div>
<div id="about-card-job">
<i class="fa fa-briefcase"></i>
<br/>
CCU_Student
</div>
<div id="about-card-location">
<i class="fa fa-map-marker"></i>
<br/>
Taiwan
</div>
</div>
</div>
<div id="algolia-search-modal" class="modal-container">
<div class="modal">
<div class="modal-header">
<span class="close-button"><i class="fa fa-close"></i></span>
<a href="https://algolia.com" target="_blank" rel="noopener" class="searchby-algolia text-color-light link-unstyled">
<span class="searchby-algolia-text text-color-light text-small">by</span>
<img class="searchby-algolia-logo" src="https://www.algolia.com/static_assets/images/press/downloads/algolia-light.svg">
</a>
<i class="search-icon fa fa-search"></i>
<form id="algolia-search-form">
<input type="text" id="algolia-search-input" name="search"
class="form-control input--large search-input" placeholder="搜尋" />
</form>
</div>
<div class="modal-body">
<div class="no-result text-color-light text-center">沒有找到文章</div>
<div class="results">
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/alphavsopacity/">
<h3 class="media-heading">AlphaVSOpacity</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Sep 9, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><h1 id="opacity-跟-background-差別">opacity 跟 background 差別</h1>
<ul>
<li>opacity 子元素都會受影響,也會變成透明</li>
<li>background-color 子元素就不會影響</li>
</ul>
<h2 id="example">example</h2>
<h3 id="opacity">opacity</h3>
<p><style>
.bg1{
width: 700px;
height: 500px;
background-position:center;
color:black;
font-size:8rem;
opacity:.6;
}
.bg1-txt{
width:100%;
height:100%;
display:flex;
justify-content:center;
align-items:center;
}
</style>
<div class='bg1' style="background: url('/images/alphaBG.png');">
<div class='bg1-txt'>
Test
</div>
</div></p>
<pre><code class="language-htmlmixed="><style>
.bg{
background: url("/images/alphaBG.png");
width: 800px;
height:600px;
background-position:center;
color:black;
font-size:8rem;
opacity:.6;
}
.bg-txt{
width:100%;
height:100%;
display:flex;
justify-content:center;
align-items:center;
}
</style>
<div class='bg'>
<div class='bg-txt'>
Test
</div>
</div>
</code></pre>
<blockquote>
<p>上面的範例連文字都會有透明</p>
</blockquote>
<h3 id="backgroud">backgroud</h3>
<p><style>
.bg{
width: 700px;
height:500px;
background-position:center;
color:black;
font-size:8rem;
}
.bg-txt{
width:100%;
height:100%;
background: rgba(255,255,255,.3);
display:flex;
justify-content:center;
align-items:center;
}
</style>
<div class='bg' style="background: url('/images/alphaBG.png');">
<div class='bg-txt'>
Test
</div>
</div></p>
<pre><code class="language-htmlmixed="><style>
.bg{
background: url("/images/alphaBG.png");
width: 800px;
height:600px;
background-position:center;
color:black;
font-size:8rem;
}
.bg-txt{
width:100%;
height:100%;
background: rgba(255,255,255,.3);
display:flex;
justify-content:center;
align-items:center;
}
</style>
<div class='bg'>
<div class='bg-txt'>
Test
</div>
</div>
</code></pre>
<blockquote>
<p>文字不會透明了,只有背竟有透明一點</p>
</blockquote>
<h2 id="參考資料">參考資料</h2>
<p><a href="https://www.youtube.com/watch?v=yxAGnwgzM4E">CSS Opacity VS Alpha | Opacity 跟 Alpha的差異 | 調整透明度</a>
<a href="https://kknews.cc/zh-tw/tech/va6zgml.html">CSS實現背景圖片透明,文字不透明效果</a></p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/fetch_post/">
<h3 class="media-heading">Fetch POST 傳遞資料</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Jul 7, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><p>最近剛好在使用 fetch 代替 ajax ,剛好遇到了一些小問題,所以寫下來提醒一下自己</p>
<p>fetch 是一個新的 API 可以讓我們可以去做 AJAX ,而且用起來更直觀</p>
<p>當要使用 fetch 來做 POST 我們可以用以下的寫法:</p>
<pre><code class="language-javascript">fetch(URL,{
method:'POST',
method: 'cors' // 用來作為 跨域請求用的
})
</code></pre>
<p>這樣就可以使用 fetch 發出 POST 的請求,當我們要附上資料時,可以用 FormData 這一個 class 來帶上我們的資料</p>
<p><code>const fd = new FormData([可以直接指定 dom 元素是 form 的])</code></p>
<pre><code class="language-javascript">const fd = FormData();
fd.append('key',value);
</code></pre>
<p>可以用以上兩種方法來給 FormData 資料</p>
<p>最後只需要把 FormData 帶入 fetch 中的欄位,就可以成功帶上資料了</p>
<pre><code class="language-javascript">fetch(URL,{
method:'POST',
method: 'cors', // 用來作為 跨域請求用的
body: fd
})
</code></pre>
<blockquote>
<p>這邊不需要去指定 Content-Type ,因為 fetch 會幫我們帶上適當的屬性</p>
</blockquote></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/moodle_build/">
<h3 class="media-heading">建立 moodle 工作環境</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Apr 4, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather">環境要求 os ubuntu 18.04.1 apache mysql php moodle 3.x 安裝教學 用來建立 server 用的 apache 更新套件 sudo apt update 安裝apache sudo apt install apache2 讓 apache 可以通過防火牆之前,先看一下 sudo ufw app list 現在讓 apache 可以通</div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/cas_build/">
<h3 class="media-heading">建立 CAS server</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Apr 4, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather">環境要求 jdk-11 apache-maven-3.5.2 apache-tomcat-9.0.17 install openjdk sudo add-apt-repository ppa:openjdk-r/ppa sudo apt update sudo apt install openjdk-11-jdk java -version #看一下版本跟有無安裝成功 install tomcat Create Tomcat User sudo groupadd tomcat #創建一個 tomcat 群組 sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat #創建一個較 tomcat 的使用者</div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/php_session/">
<h3 class="media-heading">PHP session 換頁找不到了</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Mar 3, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><p>最近重新架 PHP 的環境,在使用 session 的時候發現了問題,當我在這個網頁設定了 session 後,
當我跳轉到另一個網頁後,發現 session 不見了!!!!</p>
<p>我確認了一下我有沒有開啟 session(<code>session_start()</code>) , 也確認了我是在同一個網域底下,結果是我在其中一個關鍵的 php 檔案沒有開啟…</p>
<p>於是我上網找了一下有沒有可以避免的方法,發現是 <code>session.auto_start</code> ,它可以自動幫我們開啟 session ,這樣就不會有時忘了開了,可以在 <code>php_info()</code> 中找找看,如下圖,如果確認沒有開後,可以到 php.ini 裡去改掉他</p>
<p><code>session.auto_start=1</code> 這樣應該就可以了</p>
<p><img src="https://i.imgur.com/oNpf7vl.png" alt="" /></p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/box_model/">
<h3 class="media-heading">Box Model</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Jan 1, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather">在 HTML 裡的每個元素都有一個 box-model,而 box-model 是用來表達一個元件的呈現方式,在 CSS 裡可以用 box-sizing 這個屬性去設定,以下是他可以設定的值 content-box –> 預設的模</div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/accessibility1/">
<h3 class="media-heading">無障礙網頁規範</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Dec 12, 2018
</span>
</span>
<div class="media-content hide-xs font-merryweather">以下是網站無障礙規範 2.0 的內容 我把 AA 級的規範盡量拿出來,如果要達到 AAA 級,仍需到網站無障礙規範 2.0參考 1. (替代文字)為任何非文字的內容提供相等</div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/alias/">
<h3 class="media-heading">Alias</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Nov 11, 2018
</span>
</span>
<div class="media-content hide-xs font-merryweather">alias 可以用來自己定義指令,讓自己更方便 用法: alias 新指令的名稱=‘指令名稱’ 如果不想要每次登入都打一遍,可以在家目錄底下的</div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/vboxsf/">
<h3 class="media-heading">與virtual box共用資料夾</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Nov 11, 2018
</span>
</span>
<div class="media-content hide-xs font-merryweather">如何跟 Virtual Box 共用資料夾 step 1 先創建一個資料夾,名字隨便,這個是要拿來做共用的資料夾 step 2 開啟共用權限 右鍵資料夾點選內容 在點選第二個的共用 點選共用 新</div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://sleepyman212.github.io/post/%E8%A3%BD%E4%BD%9C%E8%A9%95%E5%88%86%E6%98%9F%E6%98%9F%E7%9A%84%E6%96%B9%E6%B3%95/">
<h3 class="media-heading">製作評分星星的方法</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Aug 8, 2018
</span>
</span>
<div class="media-content hide-xs font-merryweather">製作評分星星的方法 最近剛好在想要如何做評分星星的效果,所以就來做一下了 ps 如果有跑版把 .text li 裡的 width 條一下應該就可以了 成品 ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ .test{ height:</div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
</div>
</div>
<div class="modal-footer">
<p class="results-count text-medium"
data-message-zero="沒有找到文章"
data-message-one="找到 1 篇文章"
data-message-other="找到 {n} 篇文章">
19 posts found
</p>
</div>
</div>
</div>
<div id="cover" style="background-image:url('https://sleepyman212.github.io/images/cover.jpg');"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js" integrity="sha256-/BfiIkHlHoVihZdc6TFuj7MmJ0TWcWsMXkeDFwhi0zw=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.7/js/jquery.fancybox.min.js" integrity="sha256-GEAnjcTqVP+vBp3SSc8bEDQqvWAZMiHyUSIorrWwH50=" crossorigin="anonymous"></script>
<script src="https://sleepyman212.github.io/js/script-qi9wbxp2ya2j6p7wx1i6tgavftewndznf4v0hy2gvivk1rxgc3lm7njqb6bz.min.js"></script>
<script>
$(document).ready(function() {
hljs.configure({ classPrefix: '', useBR: false });
$('pre.code-highlight > code, pre > code').each(function(i, block) {
if (!$(this).hasClass('codeblock')) {
$(this).addClass('codeblock');
}
hljs.highlightBlock(block);
});
});
</script>
</body>
</html>