-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
30 lines (27 loc) · 1.15 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Information storage form</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="form-container">
<div class="language-switch">
<button id="faBtn" class="active">FA</button>
<button id="enBtn">EN</button>
</div>
<h2 id="formTitle">فرم ثبت اطلاعات</h2>
<form id="userForm">
<input type="text" id="firstName" placeholder="نام" required>
<input type="text" id="lastName" placeholder="نام خانوادگی" required>
<input type="text" id="mobile" placeholder="شماره موبایل" required>
<button type="submit" id="saveBtn">ذخیره اطلاعات</button>
</form>
<button onclick="downloadCSV()" id="downloadBtn">دانلود فایل CSV</button>
<button onclick="clearLocalStorage()" id="clearBtn">حذف اطلاعات ذخیره شده</button>
</div>
<script src="./script.js"></script>
</body>
</html>