Skip to content

Commit 404f867

Browse files
committed
fix : 눈내리는 효과 제거
1 parent 55c7d70 commit 404f867

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

_layouts/default.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="{{ site.lang }}">
33
{% include head.html %}
44
{% include scripts/jquery.html %}
5+
56
<body>
67
<div class="container">
78
{{ content }}
@@ -15,7 +16,12 @@
1516
if ('12|1|2|'.indexOf(month) > -1) {
1617
console.log('겨울이네요 눈이 내립니다! 헷');
1718
console.log('현재 url', window.location.href);
18-
doYouWannaBuildaSnowMan();
19+
const url = window.location.href;
20+
// url이 home url 이면 동작하게 만듬
21+
console.log(url.split('/'));
22+
if (url.split('/').length === 4) {
23+
doYouWannaBuildaSnowMan();
24+
}
1925
}
2026
// 눈내리는 효과를 주기위해...
2127
function doYouWannaBuildaSnowMan() {

0 commit comments

Comments
 (0)