Commit c9e8d0f2 authored by minseok.park's avatar minseok.park

update header -- pathname test

parent e89acf1e
;(function () { ;(function () {
'use strict' 'use strict'
var download = document.getElementById('download')
document.addEventListener('scroll', function () { document.addEventListener('scroll', function () {
var navbar = document.querySelector('.navbar') var navbar = document.querySelector('.navbar')
...@@ -10,4 +12,8 @@ ...@@ -10,4 +12,8 @@
navbar.classList.remove('active') navbar.classList.remove('active')
} }
}) })
download.addEventListener('click', function () {
console.log(window.location.pathname)
})
})() })()
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</div> </div>
<div class="navbar-item"> <div class="navbar-item">
<span class="control"> <span class="control">
<a class="button download" href="#"> <a id="download" class="button download" href="#">
<i class="download_icon"></i> <i class="download_icon"></i>
Download Download
</a> </a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment