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
Binary file removed Introduction/img/hello.jpg
Binary file not shown.
Binary file removed Introduction/img/images.png
Binary file not shown.
31 changes: 0 additions & 31 deletions Introduction/個人介紹.html

This file was deleted.

23 changes: 0 additions & 23 deletions Introduction/別人對我說的話.html

This file was deleted.

25 changes: 0 additions & 25 deletions Introduction/首頁.html

This file was deleted.

61 changes: 61 additions & 0 deletions calculator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>簡易計算機</title>
</head>
<body>
<h1>簡易計算機</h1>

<p>這個計算機可以計算加減乘除並印出結果</p>


num1:<br>
<input type="number" id="num1">
<br>
operators(+.-.*./):<br>
<input type="text" id="operators">
<br>
num2:<br>
<input type="number" id="num2">
<br><br>
<input type="button" onclick="myFunction()" value="result">
<br><br>



<p id="result"></p>

<script>
function myFunction() {
var a,b,c
a= document.getElementById("num1").value*1;
b= document.getElementById("num2").value*1;
c= document.getElementById("operators").value;

if(c=='+'){
document.getElementById("result").innerHTML = a+b;
}
if(c=='-'){
document.getElementById("result").innerHTML = a-b;
}
if(c=='*'){
document.getElementById("result").innerHTML = a*b;
}
if(c=='/'){
document.getElementById("result").innerHTML = a/b;
}
}

function clears() {
document.getElementById("result").innerHTML='';
}

</script>

<output id="result"></output>

<input type="button" onclick="clears()" value="clear">

</body>
</html>
33 changes: 33 additions & 0 deletions grade determination.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>成績判斷</title>
</head>
<body>
<h1>輸入成績判斷及格與否</h1>

請輸入成績:<br>
<input type="number" id="grade">
<br><br>
<input type="button" onclick="deter()" id="deter" value="determine">
<br><br>

<script>
function deter(){
var a
a=document.getElementById("grade").value;

if(a>=60){
document.getElementById("result").innerHTML="及格"
}else{
document.getElementById("result").innerHTML="不及格";
}
}
</script>

<output id="result" ></output>


</body>
</html>