mirror of
https://github.com/atapas/html-tips-tricks.git
synced 2024-11-16 08:48:26 +01:00
one more function added in output/index.html
This commit is contained in:
parent
f478ca2c9d
commit
704ff2e568
1 changed files with 36 additions and 22 deletions
|
@ -1,13 +1,15 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset='utf-8'>
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<title>HTML Tips and Tricks - Output</title>
|
<title>HTML Tips and Tricks - Output</title>
|
||||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap" rel="stylesheet">
|
<link
|
||||||
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
|
href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap"
|
||||||
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
|
<link rel="stylesheet" type="text/css" media="screen" href="../main.css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -16,10 +18,22 @@
|
||||||
<img src="../home.svg" alt="home" />
|
<img src="../home.svg" alt="home" />
|
||||||
</a>
|
</a>
|
||||||
<h2>Let's see the Output</h2>
|
<h2>Let's see the Output</h2>
|
||||||
<form oninput="x.value= (a.value && b.value) ? parseInt(a.value) * parseInt(b.value) : 0">
|
<form
|
||||||
<input type="number" id="a" value="0">
|
oninput="x.value= (a.value && b.value) ? parseInt(a.value) * parseInt(b.value) : 0"
|
||||||
* <input type="number" id="b" value="0">
|
>
|
||||||
= <output name="x" for="a b"></output>
|
<input type="number" id="a" value="0" />
|
||||||
|
* <input type="number" id="b" value="0" /> =
|
||||||
|
<output name="x" for="a b"></output>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<form
|
||||||
|
oninput="x.value= (a.value && b.value) ? parseInt(a.value) + parseInt(b.value) : 0"
|
||||||
|
>
|
||||||
|
<input type="number" id="a" value="0" />
|
||||||
|
+ <input type="number" id="b" value="0" /> =
|
||||||
|
<output name="x" for="a b"></output>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue