We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55c7d70 commit 404f867Copy full SHA for 404f867
_layouts/default.html
@@ -2,6 +2,7 @@
2
<html lang="{{ site.lang }}">
3
{% include head.html %}
4
{% include scripts/jquery.html %}
5
+
6
<body>
7
<div class="container">
8
{{ content }}
@@ -15,7 +16,12 @@
15
16
if ('12|1|2|'.indexOf(month) > -1) {
17
console.log('겨울이네요 눈이 내립니다! 헷');
18
console.log('현재 url', window.location.href);
- 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
+ }
25
}
26
// 눈내리는 효과를 주기위해...
27
function doYouWannaBuildaSnowMan() {
0 commit comments