Commit 512b675b authored by 박민석's avatar 박민석

marked.js test

parent 7a02a858
Pipeline #21871 passed with stages
in 4 minutes and 21 seconds
/* eslint-disable no-undef */ /* eslint-disable no-undef */
const chatButton = document.querySelector('.sidebar .chat-btn') ;(function () {
const menu = document.querySelector('.navbar-menu') 'use strict'
// 네트워크 상태 확인 및 버튼 제어 const chatButton = document.querySelector('.sidebar .chat-btn')
function checkIfLocalFile () { const menu = document.querySelector('.navbar-menu')
if (window.location.protocol === 'file:') {
chatButton.style.display = 'none' // 오프라인 상태면 chatButton 숨김 // 네트워크 상태 확인 및 버튼 제어
menu.style.display = 'none' function checkIfLocalFile () {
if (window.location.protocol === 'file:') {
chatButton.style.display = 'none' // 오프라인 상태면 chatButton 숨김
menu.style.display = 'none'
}
} }
}
// 초기 상태 설정 // 초기 상태 설정
checkIfLocalFile() checkIfLocalFile()
})()
<script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}" type="module"></script> <script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}" type="module"></script>
<script async src="{{{uiRootPath}}}/js/vendor/marked.js"></script> {{!-- <script async src="{{{uiRootPath}}}/js/vendor/marked.js"></script> --}}
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script> <script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
{{#if env.SITE_SEARCH_PROVIDER}} {{#if env.SITE_SEARCH_PROVIDER}}
{{> search-scripts}} {{> search-scripts}}
......
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