1
- <!DOCTYPE html>
2
- < html lang ="en " xmlns ="http://www.w3.org/1999/xhtml ">
3
-
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
4
3
< head >
5
- < meta charset ="utf-8 "/>
6
4
< title > Interest Calculator</ title >
5
+ < link rel ="icon " type ="image/png " href ="../../../favicon.png ">
7
6
< link rel ="stylesheet " href ="styles.css "/>
8
7
< script defer src ="../../../pyscript/pyscript.js "> </ script >
9
8
</ head >
10
-
11
9
< body >
12
10
13
- < header >
14
- < h1 id ="header_h1 "> Welcome to the Compound Calculator!</ h1 >
15
- </ header >
16
-
17
- < main >
18
-
19
- < div class ="flexelement " id ="first_div ">
20
- < p id ="first_p ">
21
- Welcome to the "Simple and Compound Interest Calculator!"
22
- < br />
23
- < strong > "how does it work?"</ strong >
24
- to use the "Simple and Compound Interest Calculator", please enter the input data into the form.
25
- after clicking "Calculate", your result will be shown at the bottom of the form.
26
- </ p >
27
-
28
- < div style ="margin-left: 15%; ">
29
- < div style ="width: 100%; ">
30
- < input type ="radio " name ='expander ' id ="expander-1 ">
31
- < label class ="expander_label " for ="expander-1 "> Compound Interest Formula »</ label >
32
- < img src ="compound-interest.png " alt ="Compound Interest "
33
- style ="height: 200px; "/>
34
- </ div >
11
+ < section class ="calculator-demo ">
12
+ < section class ="calculator-inner ">
13
+ < div class ="flexelement " id ="first_div ">
14
+ < p id ="first_p ">
15
+ Welcome to the "Simple and Compound Interest Calculator!"
16
+ < br />
17
+ < strong > "how does it work?"</ strong >
18
+ to use the "Simple and Compound Interest Calculator", please enter the input data into the form.
19
+ after clicking "Calculate", your result will be shown at the bottom of the form.
20
+ </ p >
21
+
22
+ < div style ="margin-left: 15%; ">
23
+ < div style ="width: 100%; ">
24
+ < input type ="radio " name ='expander ' id ="expander-1 ">
25
+ < label class ="expander_label " for ="expander-1 "> Compound Interest Formula »</ label >
26
+ < img src ="compound-interest.png " alt ="Compound Interest "
27
+ style ="height: 200px; "/>
28
+ </ div >
35
29
36
- < div style ="margin-top: 25px; ">
37
- < input type ="radio " name ='expander ' id ="expander-2 ">
38
- < label class ="expander_label " for ="expander-2 "> Simple Interest Formula »</ label >
39
- < img src ="simple-interest.png " alt ="Simple Interest "
40
- style ="height: 150px; "/>
30
+ < div style ="margin-top: 25px; ">
31
+ < input type ="radio " name ='expander ' id ="expander-2 ">
32
+ < label class ="expander_label " for ="expander-2 "> Simple Interest Formula »</ label >
33
+ < img src ="simple-interest.png " alt ="Simple Interest "
34
+ style ="height: 150px; "/>
35
+ </ div >
41
36
</ div >
42
37
</ div >
43
- </ div >
44
38
45
39
46
- < div class ="flexelement ">
40
+ < div class ="flexelement ">
47
41
48
- < div id ="form ">
42
+ < div id ="form ">
49
43
50
- < div >
51
- < label > Principal
52
- < input id ="principal " type ="number " step ="1 ", style ="color: black; min-height: 60px; "/> </ label >
53
- < br /> < br >
54
- < label > Interest rate
55
- < input id ="interest_rate " type ="number " step ="0.1 " style ="color: black; min-height: 60px; "
56
- placeholder ="Decimal, f.e. 0.8 "/>
57
- </ label >
58
- < br >
59
- < br />
44
+ < div >
45
+ < label > Principal
46
+ < input id ="principal " type ="number " step ="1 " , style ="color: black; min-height: 60px; "/> </ label >
47
+ < br /> < br >
48
+ < label > Interest rate
49
+ < input id ="interest_rate " type ="number " step ="0.1 " style ="color: black; min-height: 60px; "
50
+ placeholder ="Decimal, f.e. 0.8 "/>
51
+ </ label >
52
+ < br >
53
+ < br />
60
54
61
- < label > Time
62
- < input id ="time " type ="number " step ="1 " min ="0 " style ="color: black; min-height: 60px; "
63
- placeholder ="in years "/> </ label >
64
- < br > < br />
55
+ < label > Time
56
+ < input id ="time " type ="number " step ="1 " min ="0 " style ="color: black; min-height: 60px; "
57
+ placeholder ="in years "/> </ label >
58
+ < br > < br />
65
59
66
- < button py-click ="interest() " id ="calc " style ="min-height: 60px; " disabled > Calculate</ button >
60
+ < button py-click ="interest() " id ="calc " style ="min-height: 60px; " disabled > Calculate</ button >
61
+
62
+ < div style ="margin-top: 2%; ">
63
+ < span id ="simple_interest "> </ span >
64
+ < br />
65
+ < span id ="compound_interest "> </ span >
66
+ </ div >
67
67
68
- < div style ="margin-top: 2%; ">
69
- < span id ="simple_interest "> </ span >
70
- < br />
71
- < span id ="compound_interest "> </ span >
72
68
</ div >
73
69
74
70
</ div >
75
71
76
72
</ div >
77
73
78
- </ div >
79
-
80
- < py-config src ="../py_config.toml "> </ py-config >
81
- < py-script src ="calculator.py "> </ py-script >
82
- < py-script >
83
- setup()
84
- </ py-script >
85
- </ main >
74
+ < py-config src ="../py_config.toml "> </ py-config >
75
+ < py-script src ="calculator.py "> </ py-script >
76
+ < py-script >
77
+ setup()
78
+ </ py-script >
79
+ </ section >
80
+ </ section >
86
81
87
82
< footer >
88
83
< p id ="footer_p ">
@@ -94,3 +89,4 @@ <h1 id="header_h1">Welcome to the Compound Calculator!</h1>
94
89
</ body >
95
90
96
91
</ html >
92
+
0 commit comments