Formatting Update
This commit is contained in:
parent
c3a327b608
commit
458ff472e1
|
@ -6,4 +6,4 @@ const convert = (n1, n2, conversionFactor) => {
|
|||
let inputBox = document.getElementById(id1).value;
|
||||
// updating the other input box after conversion
|
||||
document.getElementById(id2).value = ((inputBox * conversionFactor).toFixed(2));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -278,8 +278,8 @@ def add_currency_card(soup: BeautifulSoup,
|
|||
element1 = element1.parent
|
||||
|
||||
# Creating the conversion factor
|
||||
conversion_factor = conversion_details['currencyValue1'] / \
|
||||
conversion_details['currencyValue2']
|
||||
conversion_factor = (conversion_details['currencyValue1'] /
|
||||
conversion_details['currencyValue2'])
|
||||
|
||||
# Creating a new div for the input boxes
|
||||
conversion_box = soup.new_tag('div')
|
||||
|
|
Loading…
Reference in New Issue
Block a user