This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Pretendard 글꼴 Import | |
function custom_font_pretendard() { | |
wp_enqueue_style( 'custom_font_style', 'https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css', false ); | |
} | |
add_action( 'wp_enqueue_scripts', 'custom_font_pretendard' ); | |
// Pretendard 글꼴을 Jetcraft 콤포넌트 요소에만 적용 | |
add_action( 'wp_head', function () { ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EventBus { | |
constructor() { | |
// 이벤트 리스트 초기화 | |
this.eventObject = {}; | |
} | |
// 이벤트 발행 | |
publish(eventName) { | |
// 현재 이벤트의 모든 콜백함수 호출 | |
const callbackList = this.eventObject[eventName]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.container:after { | |
content: ''; | |
clear: both; | |
} | |
img { float: left } | |
</style> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.container { | |
display: flex; | |
flex-direction: row; | |
} | |
</style> | |
<div class="container"> | |
<div>1</div> | |
<div>2</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.container { | |
display: flex; | |
flex-flow: row nowrap; | |
align-content: stretch; | |
} | |
</style> | |
<div class="container"> | |
<div>1</div> |