feat: ⚡VI 배지 탭 시 변동성완화장치 설명 토스트
VI 배지를 누르면 VI 설명 토스트 표시(동적/정적VI·발동 기준·2분 단일가). document 위임(배지는 동적 생성) + preventDefault/stopPropagation으로 행 토글 차단. 배지에 cursor:pointer 추가. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -9352,6 +9352,13 @@ window.openPinModal = openPinModal;
|
||||
if(window.showToast) window.showToast(msg, ok?'success':'info');
|
||||
});
|
||||
})();
|
||||
// ⚡VI 배지 탭 → 변동성완화장치 설명 토스트. 배지는 동적 생성이라 document 위임. 행(details) 토글은 막음.
|
||||
document.addEventListener('click',function(e){
|
||||
var b=(e.target&&e.target.closest)?e.target.closest('.rt-vi-badge'):null;
|
||||
if(!b)return;
|
||||
e.preventDefault();e.stopPropagation();
|
||||
if(window.showToast)window.showToast('⚡VI(변동성완화장치) — 주가가 짧은 시간에 급변하면 약 2분간 단일가매매로 전환해 과열을 식히는 장치예요. 동적VI는 직전 체결가, 정적VI는 당일 기준가 대비 일정 변동률(코스피200 3%·그 외 6% 등)에서 발동됩니다.','info',7000);
|
||||
});
|
||||
function tick(){
|
||||
if(document.hidden) return;
|
||||
var codes=codesOnPage();
|
||||
@@ -9377,7 +9384,7 @@ window.openPinModal = openPinModal;
|
||||
document.addEventListener('behive:panels-loaded',function(){ if(window.__rtState) applyState(window.__rtState); });
|
||||
setInterval(tick,1000); tick();
|
||||
})();</script>
|
||||
<style>.rt-vi-badge{display:inline-block;margin-left:6px;padding:0 5px;border-radius:4px;font-size:10px;font-weight:700;color:#1a1205;background:#ffd166;vertical-align:middle}</style>'''
|
||||
<style>.rt-vi-badge{display:inline-block;margin-left:6px;padding:0 5px;border-radius:4px;font-size:10px;font-weight:700;color:#1a1205;background:#ffd166;vertical-align:middle;cursor:pointer}</style>'''
|
||||
|
||||
return f'''<!doctype html>
|
||||
<html lang="ko">
|
||||
|
||||
Reference in New Issue
Block a user