(Sakura님이 연습장:Sakura/1 문서를 틀:연습장:Sakura/1 문서로 이동했습니다) |
편집 요약 없음 |
||
7번째 줄: | 7번째 줄: | ||
<div class="evewiki-dark-bg" id="evewiki-novel-body"> | <div class="evewiki-dark-bg" id="evewiki-novel-body"> | ||
<div class="evewiki-novel-content" id="evewiki-drag-protection"> | <div class="evewiki-novel-content" id="evewiki-drag-protection"> | ||
<!-- 헤더 --> | <!-- ###헤더 --> | ||
<!-- ###### 이름 공간 시작 --> | |||
<div class="novel-content-header"> | <div class="novel-content-header"> | ||
<span class="evewiki-dark-txt"> | <span class="evewiki-dark-txt"> | ||
13번째 줄: | 14번째 줄: | ||
</span> | </span> | ||
</div> | </div> | ||
<!-- ######이름 공간 끝 --> | |||
<!-- ######버튼 시작 --> | |||
<div class="novel-content-btn"> | <div class="novel-content-btn"> | ||
<html><button class="btn btn-secondary tools-btn" id="font-family-pretendard" onclick="pretendard()"><div id="novel-btn-pretendard">고딕</div></button> <button class="btn btn-secondary tools-btn" id="font-family-myeongjo" onclick="myeongjo()"><div id="novel-btn-myeongjo">명조</div></button> <button class="btn btn-secondary tools-btn" id="font-size-up"><div id="novel-btn-up">+</div></button> <button class="btn btn-secondary tools-btn" id="font-size-down"><div id="novel-btn-down">-</div></button></html> | <html><button class="btn btn-secondary tools-btn" id="font-family-pretendard" onclick="pretendard()"><div id="novel-btn-pretendard">고딕</div></button> <button class="btn btn-secondary tools-btn" id="font-family-myeongjo" onclick="myeongjo()"><div id="novel-btn-myeongjo">명조</div></button> <button class="btn btn-secondary tools-btn" id="font-size-up"><div id="novel-btn-up">+</div></button> <button class="btn btn-secondary tools-btn" id="font-size-down"><div id="novel-btn-down">-</div></button></html> | ||
</div> | </div> | ||
<!-- 헤더 끝 --> | <!-- ######버튼 끝 --> | ||
<!-- 본문 --> | <!-- ###헤더 끝 --> | ||
<!-- ###본문 시작 --> | |||
<div class="novel-content-main" id="novel-content-main"> | <div class="novel-content-main" id="novel-content-main"> | ||
{{{본문|여기에 본문 입력}}} | {{{본문|여기에 본문 입력}}} | ||
</div> | </div> | ||
<!-- 본문 끝 --> | <!-- ###본문 끝 --> | ||
</div> | </div> | ||
<!-- 진행 바 시작 --> | |||
<div class="progress-container"> | |||
<div class="progress-bar" id="myBar"></div> | |||
</div> | |||
<!-- 진행 바 끝 --> | |||
</div> | </div> | ||
<no-comment-streams/> | <no-comment-streams/> | ||
35번째 줄: | 44번째 줄: | ||
border: 1px solid #CCD4E3; | border: 1px solid #CCD4E3; | ||
box-shadow: 0px 4px 20px rgb(0 0 0 / 5%); | box-shadow: 0px 4px 20px rgb(0 0 0 / 5%); | ||
overflow: hidden; | |||
} | } | ||
.evewiki-novel-content { | .evewiki-novel-content { | ||
125번째 줄: | 135번째 줄: | ||
transition: 250ms; | transition: 250ms; | ||
} | } | ||
/* 진행바입니다. */ | |||
.progress-container { | |||
margin-left: -2.5em; | |||
margin-top: calc(1.5em - 10px); | |||
width: calc(100% + 5.0em); | |||
height: 8px; | |||
background: #ccc; | |||
} | |||
.progress-bar { | |||
height: 8px; | |||
background: #466DFA; | |||
width: 0%; | |||
} | |||
/* 글꼴 */ | /* 글꼴 */ | ||
@font-face { | @font-face { | ||
186번째 줄: | 212번째 줄: | ||
function myeongjo() { | function myeongjo() { | ||
document.getElementById('novel-content-main').style.fontFamily = 'ChosunSm'; | document.getElementById('novel-content-main').style.fontFamily = 'ChosunSm'; | ||
} | |||
//진행바 | |||
window.onscroll = function() {myFunction()}; | |||
function myFunction() { | |||
var winScroll = document.novel-content-main.scrollTop || document.documentElement.scrollTop; | |||
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight; | |||
var scrolled = (winScroll / height) * 100; | |||
document.getElementById("myBar").style.width = scrolled + "%"; | |||
} | } | ||
</script> | </script> | ||
</html> | </html> |