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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
欄位 | 內容
-----|--------
學期 | 111 學年度下學期
學生 | xxx
學號末兩碼 | xx
學生 | 894
學號末兩碼 | 04
教師 | [陳鍾誠](https://www.nqu.edu.tw/educsie/index.php?act=blog&code=list&ids=4)
學校科系 | [金門大學資訊工程系](https://www.nqu.edu.tw/educsie/index.php)
課程內容 | https://github.com/ccc111b/html2denojs
38 changes: 38 additions & 0 deletions html/CSS.CSS
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

h1 {
text-align: center;
color:#1c65ad;
}

body {
margin: 20px 10%;

}
body {
background-color: #13a782;

}
pre {
background-color: #e71616;
border:1px dotted #1916b9;
padding: 20px;
border-radius: 20px;
}



h2 {
text-align: center;
color:#1c65ad;
}

body {
margin: 20px 10%;
}

pre {
background-color: #c9f30b;
border:1px dotted #2b944e;
padding: 20px;
border-radius: 20px;
}
61 changes: 61 additions & 0 deletions html/CSS.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<link rel="stylesheet" href="CSS.CSS">


</head>
<body>
<header>
<pre>
<h1>3/10經典賽賽程</h1>
</header>
<ul>
<li><a href="https://www.mlb.com/gameday/czech-republic-vs-china/2023/03/09/719531">11:00捷克VS中國</a></li>
<li><a href="https://www.mlb.com/gameday/cuba-vs-panama/2023/03/09/719538/preview">12:30古巴VS巴拿馬</a></li>
<li><a href="https://www.mlb.com/gameday/korea-vs-japan/2023/03/10/719532/preview">18:00韓國VS日本</a></li>
<li><a href="https://www.mlb.com/gameday/italy-vs-chinese-taipei/2023/03/10/719540/preview">19:00義大利VS台灣</a></li>
</ul>
</header>
</pre>
<h2>3/11經典賽賽程</h2>
<li><a href="https://www.mlb.com/gameday/china-vs-australia/2023/03/10/719526/preview">11:00中國VS澳洲</a></li>
<head>
<meta charset="UTF-8">
<title>註冊表單</title>
</head>
<body>
<form>
<h3>註冊表單</h3>
<label for="username">用戶名:</label>
<input type="text" id="username" name="username" placeholder="請輸入用戶名" required>
<label for="phone number">手機號碼:</label>
<input type="text" id="phone number" name="phone number" placeholder="請輸入手機號碼" required>
<pattern="[0-9]{10}" required>
<label for="password">密碼:</label>
<input type="password" id="password" name="password" placeholder="請輸入密碼" required>
<label for="email">郵箱:</label>
<input type="text" id="email" name="email" placeholder="請輸入郵箱" required>
<label for="age">年齡:</label>
<input type="text" id="age" name="age" placeholder="請輸入年齡" required>
<label for="gender">性別:</label>
<select id="gender" name="gender">
<option value="male">男</option>
<option value="female">女</option>
</select>
<label for="blood type">血型:</label>
<select id="blood type" name="blood type">
<option value="A">A</option>
<option value="B">B</option>
<option value="O">O</option>
<option value="AB">AB</option>
</select>
<label for="birthday">生日:</label>
<input type="date" id="birthday" name="birthday" placeholder="請輸入生日" required><br>
<input type="submit" value="註冊">
</form>
</pre>
</body>
</html>
11 changes: 11 additions & 0 deletions html/Prime
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function isPrime(n)
{
if (n<=1)
return false
for (let i=2;i<=n;i++)
{
if(n%i == 0)
return false
}
return true
}
7 changes: 7 additions & 0 deletions html/fibonacci
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function fibonacci(n)
{
if (n==1 || n==2)
return 1;
else return fibonacci(n-1)+fibonacci(n-2)
}
console.log (fibonacci((100)));
15 changes: 15 additions & 0 deletions html/hello.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>李宥榆的個人檔案</title>
</head>
<body>

<h1>李宥榆的個人檔案</h1>
<h2>金門大學</h2>
<h2>學號:111110504</h2>
<a href="https://www.facebook.com/profile.php?id=100015059806137"><p>https://www.facebook.com/profile.php?id=100015059806137</p></a>
<img src="https://scontent.fkhh1-2.fna.fbcdn.net/v/t1.18169-9/16649268_152423928602933_2896975686967722880_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=a4a2d7&_nc_ohc=Ely1svkc9iMAX82w9kQ&_nc_ht=scontent.fkhh1-2.fna&oh=00_AfAr9br9DTcLmOcLJlNZCsI61M0UM3L4fiJNrLtVMrmjSA&oe=641F9766" alt="https://www.facebook.com/stories/447497979503364/?source=story_tray" width="500" height="500">

</body>
</html>
72 changes: 72 additions & 0 deletions html/註冊表單.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>註冊表單</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f1f1f1;
}
form {
background-color: #fff;
max-width: 500px;
margin: 20px auto;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
input[type=text], input[type=password], select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
background-color: #4CAF50;
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<form>
<h2>註冊表單</h2>
<label for="username">用戶名:</label>
<input type="text" id="username" name="username" placeholder="請輸入用戶名" required>
<label for="phone number">手機號碼:</label>
<input type="text" id="phone number" name="phone number" placeholder="請輸入手機號碼" required>
<pattern="[0-9]{10}" required>
<label for="password">密碼:</label>
<input type="password" id="password" name="password" placeholder="請輸入密碼" required>
<label for="email">郵箱:</label>
<input type="text" id="email" name="email" placeholder="請輸入郵箱" required>
<label for="age">年齡:</label>
<input type="text" id="age" name="age" placeholder="請輸入年齡" required>
<label for="gender">性別:</label>
<select id="gender" name="gender">
<option value="male">男</option>
<option value="female">女</option>
</select>
<label for="blood type">血型:</label>
<select id="blood type" name="blood type">
<option value="A">A</option>
<option value="B">B</option>
<option value="O">O</option>
<option value="AB">AB</option>
</select>
<label for="birthday">生日:</label>
<input type="text" id="birthday" name="birthday" placeholder="請輸入生日" required><br>
<input type="submit" value="註冊">
</form>
</body>
</html>
11 changes: 11 additions & 0 deletions 矩陣相加
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function vadd(a,b)
{
let r =[]
for (let i=0; i<a.length; i++)
{
r[i] = a[i]+ b[i]
}
return r
}
let v1 = [1,2], v2 =[1,1]
console.log("vadd(v1,v2=", vadd(v1,v2))
72 changes: 72 additions & 0 deletions 註冊表單.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>註冊表單</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f1f1f1;
}
form {
background-color: #fff;
max-width: 500px;
margin: 20px auto;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
input[type=text], input[type=password], select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
background-color: #4CAF50;
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<form>
<h2>註冊表單</h2>
<label for="username">用戶名:</label>
<input type="text" id="username" name="username" placeholder="請輸入用戶名" required>
<label for="phone number">手機號碼:</label>
<input type="text" id="phone number" name="phone number" placeholder="請輸入手機號碼" required>
<pattern="[0-9]{10}" required>
<label for="password">密碼:</label>
<input type="password" id="password" name="password" placeholder="請輸入密碼" required>
<label for="email">郵箱:</label>
<input type="text" id="email" name="email" placeholder="請輸入郵箱" required>
<label for="age">年齡:</label>
<input type="text" id="age" name="age" placeholder="請輸入年齡" required>
<label for="gender">性別:</label>
<select id="gender" name="gender">
<option value="male">男</option>
<option value="female">女</option>
</select>
<label for="blood type">血型:</label>
<select id="blood type" name="blood type">
<option value="A">A</option>
<option value="B">B</option>
<option value="O">O</option>
<option value="AB">AB</option>
</select>
<label for="birthday">生日:</label>
<input type="text" id="birthday" name="birthday" placeholder="請輸入生日" required><br>
<input type="submit" value="註冊">
</form>
</body>
</html>