fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. }
  14. }
Success #stdin #stdout 0.07s 16432KB
stdin
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>모바일 신분증</title>
    <style>
        body {
            background-color: #f4f6f9;
            font-family: 'Apple SD Gothic Neo', sans-serif;
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .container {
            width: 100%;
            max-width: 380px;
        }
        .id-card {
            background: linear-gradient(135deg, #1b365d 0%, #2c5282 100%);
            color: white;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
            margin-bottom: 20px;
        }
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 14px;
            opacity: 0.9;
        }
        .card-body {
            display: flex;
            gap: 16px;
            align-items: center;
        }
        .photo-box {
            width: 90px;
            height: 110px;
            background-color: #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .photo-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .info-box h2 {
            margin: 0 0 6px 0;
            font-size: 22px;
        }
        .info-box p {
            margin: 4px 0;
            font-size: 13px;
            opacity: 0.9;
        }
        .edit-form {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .edit-form label {
            display: block;
            font-size: 12px;
            font-weight: bold;
            color: #4a5568;
            margin-bottom: 4px;
            margin-top: 10px;
        }
        .edit-form input {
            width: 100%;
            padding: 10px;
            box-sizing: border-box;
            border: 1px solid #cbd5e0;
            border-radius: 6px;
            font-size: 14px;
        }
        .edit-form button {
            width: 100%;
            margin-top: 16px;
            background-color: #2b6cb0;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 6px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
        }
    </style>
</head>
<body>

<div class="container">
    <!-- 모바일 신분증 카드 화면 -->
    <div class="id-card">
        <div class="card-header">
            <span>주민등록증</span>
            <span>대한민국</span>
        </div>
        <div class="card-body">
            <div class="photo-box">
                <img id="cardPhoto" src="https://v...content-available-to-author-only...r.com/90x110?text=사진" alt="사진">
            </div>
            <div class="info-box">
                <h2 id="cardName">홍길동</h2>
                <p id="cardBirth">2000. 01. 01</p>
                <p id="cardRrn">000101-1******</p>
            </div>
        </div>
    </div>

    <!-- 정보 수정 폼 -->
    <div class="edit-form">
        <h3>신분증 정보 수정</h3>
        <label>이름</label>
        <input type="text" id="inputName" value="홍길동">
        
        <label>생년월일</label>
        <input type="text" id="inputBirth" value="2000. 01. 01">
        
        <label>주민등록번호 앞자리</label>
        <input type="text" id="inputRrn" value="000101-1******">

        <label>사진 이미지 주소 (URL)</label>
        <input type="text" id="inputPhoto" placeholder="이미지 주소를 입력하세요">

        <button onclick="updateCard()">적용하기</button>
    </div>
</div>

<script>
    function updateCard() {
        const name = document.getElementById('inputName').value;
        const birth = document.getElementById('inputBirth').value;
        const rrn = document.getElementById('inputRrn').value;
        const photo = document.getElementById('inputPhoto').value;

        document.getElementById('cardName').innerText = name;
        document.getElementById('cardBirth').innerText = birth;
        document.getElementById('cardRrn').innerText = rrn;
        
        if(photo.trim() !== "") {
            document.getElementById('cardPhoto').src = photo;
        }
        
        alert("신분증 정보가 수정되었습니다!");
    }
</script>

</body>
</html>
stdout
Standard output is empty