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 */
const chatButton = document.querySelector('.sidebar .chat-btn')
const menu = document.querySelector('.navbar-menu')
;(function () {
'use strict'
// 네트워크 상태 확인 및 버튼 제어
function checkIfLocalFile () {
if (window.location.protocol === 'file:') {
chatButton.style.display = 'none' // 오프라인 상태면 chatButton 숨김
menu.style.display = 'none'
const chatButton = document.querySelector('.sidebar .chat-btn')
const menu = document.querySelector('.navbar-menu')
// 네트워크 상태 확인 및 버튼 제어
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 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>
{{#if env.SITE_SEARCH_PROVIDER}}
{{> 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