Commit 8ab75c5b authored by minseok.park's avatar minseok.park

update url

parent 910d6de6
Pipeline #20181 passed with stages
in 3 minutes and 59 seconds
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
download.addEventListener('click', function () { download.addEventListener('click', function () {
var pathname = window.location.pathname var pathname = window.location.pathname
var path = pathname.split('/') var path = pathname.split('/')
var filename = path[2] ? path[2] === 'swlab-docs' ? 'docs' : `docs-${path[2]}` : '' var filename = path[3] ? path[3] === 'swlab-docs' ? 'docs' : `docs-${path[3]}` : ''
var directory = path[2] && path[3] ? path[2] === 'swlab-docs' ? path[2] : path[3] : '' var directory = path[3] && path[4] ? path[3] === 'swlab-docs' ? path[3] : path[4] : ''
var link = document.createElement('a') var link = document.createElement('a')
link.href = `http://182.162.100.110:10001/download-file?filename=${filename}.zip&directory=${directory}` link.href = `https://swlab.bwg.co.kr/web/dms/download-file?filename=${filename}.zip&directory=${directory}`
link.click() link.click()
if (link.parentNode) { if (link.parentNode) {
......
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
<div class="navbar-item has-dropdown is-hoverable"> <div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" href="#">Products</a> <a class="navbar-link" href="#">Products</a>
<div class="navbar-dropdown"> <div class="navbar-dropdown">
<a class="navbar-item" href="https://swlab.bwg.co.kr/docs/bxm/swlab-docs-bxm/current">BXM</a> <a class="navbar-item" href="https://swlab.bwg.co.kr/web/docs/bxm/swlab-docs-bxm/current/index.html">BXM</a>
<a class="navbar-item" href="https://swlab.bwg.co.kr/docs/bxi/swlab-docs-bxi/current">BXI</a> <a class="navbar-item" href="https://swlab.bwg.co.kr/web/docs/bxi/swlab-docs-bxi/current/index.html">BXI</a>
<a class="navbar-item" href="https://swlab.bwg.co.kr/docs/bxcp/swlab-docs-bxcp/current">BXCP</a> <a class="navbar-item" href="https://swlab.bwg.co.kr/web/docs/bxcp/swlab-docs-bxcp/current/index.html">BXCP</a>
<a class="navbar-item" href="https://swlab.bwg.co.kr/docs/bxcm/swlab-docs-bxcm/current">BXCM</a> <a class="navbar-item" href="https://swlab.bwg.co.kr/web/docs/bxcm/swlab-docs-bxcm/current/index.html">BXCM</a>
</div> </div>
</div> </div>
<div class="navbar-item"> <div class="navbar-item">
......
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