Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## Project Overview

This is a simple static HTML website project with Korean language content. The repository contains basic HTML pages for demonstration and learning purposes.

## File Structure

- `index.html` - Main page with JavaScript examples demonstrating array iteration methods (for loops, forEach, for...of)
- `1.html` - First sub-page (Korean: "첫번째 서브 페이지")
- `survey_main.html` - Survey page (Korean: "설문조사 메인 페이지")
- `test.txt`, `test2.txt`, `test3`, `test4`, `test5` - Empty test files from commit history

## Development

### Viewing the Site

Since this is a static HTML site with no build process, you can view it by:

1. Opening HTML files directly in a browser:
```bash
# For file-based viewing
open index.html # macOS
xdg-open index.html # Linux
```

2. Using a local HTTP server (recommended for avoiding CORS issues):
```bash
# Python 3
python -m http.server 8000

# Python 2
python -m SimpleHTTPServer 8000

# Node.js (if http-server is installed)
npx http-server -p 8000
```
Then visit `http://localhost:8000` in your browser.

### Commit Message Convention

Based on git history, commit messages are written in Korean and follow the pattern:
- Feature additions: `#<number> <feature name> <status>` (e.g., "#2 설문조사 추가작업완료")
- General changes: Descriptive message in Korean (e.g., "메인페이지 내용 변경")

## Code Characteristics

- **Language**: Korean is used for page content and commit messages
- **JavaScript Style**: Uses both ES5 (var, for loops) and ES6 (arrow functions, for...of) syntax in index.html
- **HTML Standard**: HTML5 with UTF-8 encoding and viewport meta tags for responsive design
111 changes: 111 additions & 0 deletions gugudan.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>구구단</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
}
h1 {
text-align: center;
color: #333;
}
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 30px;
}
.table {
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.table h2 {
text-align: center;
color: #4CAF50;
margin-top: 0;
border-bottom: 2px solid #4CAF50;
padding-bottom: 10px;
}
.row {
padding: 8px;
margin: 5px 0;
border-radius: 5px;
transition: background-color 0.3s;
}
.row:hover {
background-color: #f0f0f0;
}
.equation {
font-size: 16px;
color: #555;
}
.result {
font-weight: bold;
color: #333;
}
@media (max-width: 768px) {
.container {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.container {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<h1>구구단 (Multiplication Table)</h1>
<div class="container" id="gugudan-container"></div>

<script>
function createGugudan() {
const container = document.getElementById('gugudan-container');

// 2단부터 9단까지
for (let dan = 2; dan <= 9; dan++) {
const tableDiv = document.createElement('div');
tableDiv.className = 'table';

const title = document.createElement('h2');
title.textContent = `${dan}단`;
tableDiv.appendChild(title);

// 1부터 9까지 곱하기
for (let i = 1; i <= 9; i++) {
const row = document.createElement('div');
row.className = 'row';

const equation = document.createElement('span');
equation.className = 'equation';
equation.textContent = `${dan} × ${i} = `;

const result = document.createElement('span');
result.className = 'result';
result.textContent = dan * i;

row.appendChild(equation);
row.appendChild(result);
tableDiv.appendChild(row);
}

container.appendChild(tableDiv);
}
}

// 페이지 로드 시 구구단 생성
createGugudan();
</script>
</body>
</html>