File tree 2 files changed +4
-5
lines changed
framework/src/main/scala/framework 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ abstract class Page(name: String) {
25
25
26
26
def cssLibs : List [Modifier ] = List (
27
27
JsLibs .bootstrap.css,
28
- styles.head.render[TypedTag [String ]]
28
+ styles.head.render[TypedTag [String ]],
29
29
)
30
30
31
31
def jsLibs : List [Tag ] = List (
Original file line number Diff line number Diff line change @@ -71,14 +71,13 @@ object MortgageCalculator extends framework.Page("mortgage_calculator") {
71
71
def calculate_refinance (element : Element , event : JQueryEvent ) = {
72
72
for {
73
73
amount <- $(" #loan" ).value().as[Int ]
74
- apr <- $(" #apr" ).value().as[Double ]
75
- years <- $(" #years" ).value().as[Int ]
74
+ apr <- $(" #apr" ).value().as[Double ]
75
+ years <- $(" #years" ).value().as[Int ]
76
76
newApr <- $(" #new_apr" ).value().as[Double ]
77
77
mortgage = Mortgage (amount = amount, apr = apr, years = years)
78
78
penalty <- Mortgage .API .refinancePenalty(mortgage, newApr)
79
79
} $(" #output" ).html(
80
- div(`class` := " container" )(s " You will save ${moneyFormat.format(penalty)} over $years years in interest " ).render
80
+ div(`class` := " container" )(s " You will save ${moneyFormat.format(penalty)} over $years years in interest " ).render,
81
81
)
82
82
}
83
83
}
84
-
You can’t perform that action at this time.
0 commit comments