개발중일때만 사용할 스크립트 임포트

This commit is contained in:
주수현
2025-06-14 18:00:09 +09:00
parent f061085ce3
commit f26c43e8b0
3 changed files with 59 additions and 3 deletions

View File

@@ -2,8 +2,9 @@
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org"
layout:decorate="~{layout/layout}">
<section layout:fragment="content">
<section layout:fragment="content">
<span style="color:red; background-color: black;font-size: 30px;"> ** 화면 깨짐 주의 **</span>
<div class="row mb-1">
<div class="col ps-0 pe-0">
<a href="javascript:expand();" class="link-secondary">Expand</a>
@@ -511,6 +512,25 @@
$('#id').val(v);
}
</script>
<th:block layout:fragment="script">
<script th:inline="javascript">
document.addEventListener('DOMContentLoaded', function () {
const head = document.getElementsByTagName('head')[0];
const link1 = document.createElement('link');
link1.rel = 'stylesheet';
link1.href = /*[[@{/static/library/bootstrap/bootstrap.min.css}]]*/'';
head.appendChild(link1);
const link2 = document.createElement('link');
link2.rel = 'stylesheet';
link2.href =/*[[@{/static/library/bootstrap/bootstrap-icons.css}]]*/'';
head.appendChild(link2);
});
</script>
</th:block>
</section>
</html>