|
|
| (같은 사용자의 중간 판 5개는 보이지 않습니다) |
| 1번째 줄: |
1번째 줄: |
| <html> | | <html> |
| <div style="background-color: rgba(22, 22, 26, 0.95); padding: 25px; border-radius: 12px; border: 2px solid #FF8C00; box-shadow: 0 10px 30px rgba(0,0,0,0.8); max-width: 600px; margin: auto; color: #d1d5db; font-family: sans-serif;"> | | <style> |
| <h2 style="color: #FF8C00; text-align: center; margin-top: 0; border-bottom: 1px solid #333; padding-bottom: 10px; font-weight: 900;">⚔️ SKY 연맹 영웅 교체 분석기</h2>
| | #HeroBox { max-width: 600px; margin: 30px auto; padding: 20px; background: #1a1a1d; border-radius: 10px; border: 2px solid #FF8C00; box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-family: 'Segoe UI', sans-serif; font-size: 14px; box-sizing: border-box; color: #d1d5db; } |
|
| | #HeroBox h3 { text-align: center; margin-bottom: 20px; font-size: 20px; color: #FF8C00; font-weight: 900; } |
| <div style="display: flex; justify-content: space-between; margin-top: 20px; gap: 15px; flex-wrap: wrap;">
| | .level-selection-container { display: flex; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; } |
| <div style="flex: 1; min-width: 200px; background-color: #121215; padding: 15px; border-radius: 8px; border: 1px solid #333;">
| | .level-selection-container .form-group { flex: 0 1 auto; width: auto; } |
| <h3 style="color: #e0e0e0; margin-top: 0; text-align: center;">🛡️ 기존 주력 영웅</h3>
| | .hero-selection-container { display: flex; justify-content: space-around; margin-bottom: 20px; flex-wrap: wrap; background: #121215; padding: 15px; border-radius: 8px; border: 1px solid #333; } |
| <label style="color: #bbb; font-size: 14px; font-weight: bold;">세대 (Generation)</label>
| | .form-group { margin-bottom: 15px; text-align: center; } |
| <select id="old_gen" style="width: 100%; padding: 10px; margin-top: 5px; margin-bottom: 15px; background: #222; color: #fff; border: 1px solid #555; border-radius: 5px;">
| | .form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #ccc; } |
| <option value="1">1세대 (Gen 1)</option><option value="2">2세대 (Gen 2)</option><option value="3">3세대 (Gen 3)</option><option value="4">4세대 (Gen 4)</option><option value="5">5세대 (Gen 5)</option>
| | .form-group select { width: 100%; padding: 8px; font-size: 14px; border-radius: 4px; border: 1px solid #555; background: #222; color: #fff; text-align: center; } |
| </select>
| | .hero-selection-container .hero-display { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 150px; max-width: 45%; box-sizing: border-box; padding: 0 10px; } |
| <label style="color: #bbb; font-size: 14px; font-weight: bold;">성급 (Stars)</label>
| | .hero-image { width: 80px; height: 80px; margin-top: 10px; border-radius: 8px; object-fit: cover; border: 2px solid #555; background: #000; } |
| <select id="old_star" style="width: 100%; padding: 10px; margin-top: 5px; background: #222; color: #fff; border: 1px solid #555; border-radius: 5px;">
| | .calc-btn { width: 100%; padding: 12px; font-size: 16px; background: #FF8C00; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; } |
| <option value="1">⭐ 1성</option><option value="2">⭐⭐ 2성</option><option value="3">⭐⭐⭐ 3성</option><option value="4">⭐⭐⭐⭐ 4성</option><option value="5" selected>⭐⭐⭐⭐⭐ 5성</option>
| | .calc-btn:hover { background: #ffaa00; box-shadow: 0 0 15px rgba(255,140,0,0.4); } |
| </select>
| | #message { text-align: center; margin-top: 10px; font-size: 13px; color: #999; } |
| </div>
| | #results { margin-top: 20px; font-size: 16px; font-weight: bold; color: #fff; text-align: center; padding: 15px; border: 1px dashed #FF8C00; border-radius: 5px; background-color: rgba(255, 140, 0, 0.1); display: none; } |
| | </style> |
|
| |
|
| <div style="flex: 1; min-width: 200px; background-color: #121215; padding: 15px; border-radius: 8px; border: 1px solid #333;">
| | <div id="HeroBox"> |
| <h3 style="color: #ffaa00; margin-top: 0; text-align: center;">⚔️ 신규 영웅</h3>
| | <h3>⚔️ 킹샷 영웅 스탯 정밀 비교기</h3> |
| <label style="color: #bbb; font-size: 14px; font-weight: bold;">세대 (Generation)</label>
| | |
| <select id="new_gen" style="width: 100%; padding: 10px; margin-top: 5px; margin-bottom: 15px; background: #222; color: #fff; border: 1px solid #555; border-radius: 5px;">
| | <div class="level-selection-container"> |
| <option value="1">1세대 (Gen 1)</option><option value="2" selected>2세대 (Gen 2)</option><option value="3">3세대 (Gen 3)</option><option value="4">4세대 (Gen 4)</option><option value="5">5세대 (Gen 5)</option>
| | <div class="form-group"> |
| </select>
| | <label for="levelSelect">⭐ 비교할 기준 성급/티어 선택:</label> |
| <label style="color: #bbb; font-size: 14px; font-weight: bold;">성급 (Stars)</label>
| | <select id="levelSelect"></select> |
| <select id="new_star" style="width: 100%; padding: 10px; margin-top: 5px; background: #222; color: #fff; border: 1px solid #555; border-radius: 5px;">
| |
| <option value="1">⭐ 1성</option><option value="2">⭐⭐ 2성</option><option value="3">⭐⭐⭐ 3성</option><option value="4" selected>⭐⭐⭐⭐ 4성</option><option value="5">⭐⭐⭐⭐⭐ 5성</option>
| |
| </select>
| |
| </div>
| |
| </div> | | </div> |
| | </div> |
|
| |
|
| <button onclick="calculateHero()" style="width: 100%; padding: 15px; margin-top: 25px; background-color: #FF8C00; color: #fff; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; box-shadow: 0 0 15px rgba(255,140,0,0.4); transition: 0.3s;">
| | <div class="hero-selection-container"> |
| 비교 분석 실행
| | <div class="form-group hero-display"> |
| </button>
| | <label for="hero1Select">🛡️ 현재 사용 중인 영웅:</label> |
|
| | <select id="hero1Select"></select> |
| <div id="calc_result" style="margin-top: 20px; padding: 15px; text-align: center; font-size: 18px; font-weight: bold; border-radius: 5px; display: none;"></div>
| | <img id="hero1Image" src="" alt="Your Hero" class="hero-image"> |
| | </div> |
| | |
| | <div class="form-group hero-display"> |
| | <label for="hero2Select">⚔️ 교체 후보 영웅:</label> |
| | <select id="hero2Select"></select> |
| | <img id="hero2Image" src="" alt="Compare Hero" class="hero-image"> |
| | </div> |
| | </div> |
| | |
| | <button id="runCalcBtn" class="calc-btn">영웅 교체 효율 분석하기</button> |
| | <p id="message">위 스탯은 영웅의 기본 스탯을 기준으로 하며, 위젯이나 전용 장비 수치는 포함되지 않습니다.</p> |
| | <div id="results"></div> |
| </div> | | </div> |
|
| |
| <script>
| |
| function calculateHero() {
| |
| var og = parseInt(document.getElementById('old_gen').value);
| |
| var os = parseInt(document.getElementById('old_star').value);
| |
| var ng = parseInt(document.getElementById('new_gen').value);
| |
| var ns = parseInt(document.getElementById('new_star').value);
| |
|
| |
| // 킹샷 로직: 세대가 넘어갈 때마다 기본 전투력이 약 1.5배 증가
| |
| var old_power = Math.pow(1.5, og - 1) * os * 1000;
| |
| var new_power = Math.pow(1.5, ng - 1) * ns * 1000;
| |
|
| |
| var resBox = document.getElementById('calc_result');
| |
| resBox.style.display = "block";
| |
|
| |
| if (new_power > old_power) {
| |
| var diff = Math.round((new_power / old_power - 1) * 100);
| |
| resBox.style.backgroundColor = "rgba(0, 255, 0, 0.1)";
| |
| resBox.style.border = "1px solid #00ff00";
| |
| resBox.style.color = "#00ff00";
| |
| resBox.style.boxShadow = "0 0 10px rgba(0,255,0,0.2)";
| |
| resBox.innerHTML = "✅ 신규 영웅으로 교체를 추천합니다! (효율 " + diff + "% 상승)<br><span style='font-size:14px; color:#ccc; font-weight:normal;'>기존 위력: " + Math.round(old_power) + " vs 신규 위력: " + Math.round(new_power) + "</span>";
| |
| } else if (new_power == old_power) {
| |
| resBox.style.backgroundColor = "rgba(255, 255, 0, 0.1)";
| |
| resBox.style.border = "1px solid #ffff00";
| |
| resBox.style.color = "#ffff00";
| |
| resBox.style.boxShadow = "0 0 10px rgba(255,255,0,0.2)";
| |
| resBox.innerHTML = "⚖️ 두 영웅의 위력이 동일합니다.<br><span style='font-size:14px; color:#ccc; font-weight:normal;'>전용 장비(Widget) 상황에 따라 선택하세요.</span>";
| |
| } else {
| |
| resBox.style.backgroundColor = "rgba(255, 68, 68, 0.1)";
| |
| resBox.style.border = "1px solid #ff4444";
| |
| resBox.style.color = "#ff4444";
| |
| resBox.style.boxShadow = "0 0 10px rgba(255,68,68,0.2)";
| |
| resBox.innerHTML = "❌ 아직은 기존 영웅을 계속 사용하는 것이 강력합니다.<br><span style='font-size:14px; color:#ccc; font-weight:normal;'>기존 위력: " + Math.round(old_power) + " vs 신규 위력: " + Math.round(new_power) + "</span>";
| |
| }
| |
| }
| |
| </script>
| |
| </html> | | </html> |