Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
SWLab UI
Commits
e873f663
Commit
e873f663
authored
Nov 11, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
marked.min.js test
parent
bf8c99d8
Pipeline
#21850
passed with stages
in 4 minutes and 22 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
15 deletions
+3
-15
10-check-offline.js
src/js/10-check-offline.js
+0
-8
marked.min.js
src/js/vendor/marked.min.js
+2
-6
footer-scripts.hbs
src/partials/footer-scripts.hbs
+1
-1
No files found.
src/js/10-check-offline.js
View file @
e873f663
...
...
@@ -10,14 +10,6 @@
if
(
window
.
location
.
protocol
===
'file:'
)
{
chatButton
.
style
.
display
=
'none'
// 오프라인 상태면 chatButton 숨김
menu
.
style
.
display
=
'none'
}
else
{
import
(
'https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js'
)
.
then
((
module
)
=>
{
window
.
marked
=
module
.
marked
})
.
catch
((
error
)
=>
{
console
.
error
(
'Failed to load Marked.js:'
,
error
)
})
}
}
...
...
src/js/vendor/marked.min.js
View file @
e873f663
This diff is collapsed.
Click to expand it.
src/partials/footer-scripts.hbs
View file @
e873f663
<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.min.js"
></script>
<script
async
src=
"
{{{
uiRootPath
}}}
/js/vendor/highlight.js"
></script>
{{#if
env
.
SITE_SEARCH_PROVIDER
}}
{{>
search-scripts
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment