1- <!DOCTYPE html>
2- < html lang ="en " xmlns ="http://www.w3.org/1999/xhtml ">
3-
1+ <!DOCTYPE html>
2+ < html lang ="en ">
43< head >
5- < meta charset ="utf-8 "/>
64 < title > Interest Calculator</ title >
5+ < link rel ="icon " type ="image/png " href ="../../../favicon.png ">
76 < link rel ="stylesheet " href ="styles.css "/>
87 < script defer src ="../../../pyscript/pyscript.js "> </ script >
98</ head >
10-
119< body >
1210
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 >
3529
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 >
4136 </ div >
4237 </ div >
43- </ div >
4438
4539
46- < div class ="flexelement ">
40+ < div class ="flexelement ">
4741
48- < div id ="form ">
42+ < div id ="form ">
4943
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 />
6054
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 />
6559
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 >
6767
68- < div style ="margin-top: 2%; ">
69- < span id ="simple_interest "> </ span >
70- < br />
71- < span id ="compound_interest "> </ span >
7268 </ div >
7369
7470 </ div >
7571
7672 </ div >
7773
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 >
8681
8782< footer >
8883 < p id ="footer_p ">
@@ -94,3 +89,4 @@ <h1 id="header_h1">Welcome to the Compound Calculator!</h1>
9489</ body >
9590
9691</ html >
92+
0 commit comments