Ajustement/petits changements
This commit is contained in:
		| @@ -75,8 +75,16 @@ header { | ||||
| .container { | ||||
|     padding-bottom: 25px; | ||||
| } | ||||
| .inlineInput { | ||||
|     width: 25% !important; | ||||
| .selectInline { | ||||
|     display: inline !important; | ||||
|     width: 80px !important; | ||||
|     height: 40px !important; | ||||
| } | ||||
| #currencyOfTheValue, #currencyAfter { | ||||
|     width: 270px !important; | ||||
| } | ||||
| #option { | ||||
|     width: 315px !important; | ||||
| } | ||||
| #convertIn { | ||||
|     width: 6.7em; | ||||
|   | ||||
| @@ -12,6 +12,7 @@ | ||||
|         <link rel="canonical" href="function.divlo.fr"/>  | ||||
|         <meta name="Language" content="fr"/>  | ||||
|         <meta charset="utf-8"> | ||||
|         <meta name="theme-color" content="#ffd800"> | ||||
|  | ||||
|         <!--Open Graph Metadata--> | ||||
|         <meta property="og:title" content="<?php echo $title?>"> | ||||
|   | ||||
| @@ -174,8 +174,11 @@ function convertCurrency(value, currency, url) { | ||||
|               if (currencySymboleAPI === undefined) { | ||||
|                 currencySymboleAPI = 1; | ||||
|               }  | ||||
|               $('.results').html(formatNumberResult(value) + ' ' + jsonFixer.base + ' = ' + (currencySymboleAPI * value).toFixed(2) + ' ' + currency); | ||||
|               $('.rateDate').html("Dernier rafraîchissement du taux d'échange : " + jsonFixer.date); | ||||
|               let exchangeRateYear = jsonFixer.date[0] + jsonFixer.date[1] + jsonFixer.date[2] + jsonFixer.date[3];  | ||||
|               let exchangeRateMonth = jsonFixer.date[5] + jsonFixer.date[6]; | ||||
|               let exchangeRateDay = jsonFixer.date[8] + jsonFixer.date[9]; | ||||
|               $('.results').html(formatNumberResult(value) + ' ' + jsonFixer.base + ' = ' + formatNumberResult((currencySymboleAPI * value).toFixed(2)) + ' ' + currency); | ||||
|               $('.rateDate').html(`Dernier rafraîchissement du taux d'échange : ${exchangeRateDay}/${exchangeRateMonth}/${exchangeRateYear}`); | ||||
|             }  | ||||
|             catch (error) { | ||||
|                 $('.results').html(messageError); | ||||
|   | ||||
| @@ -241,7 +241,7 @@ $(function () { | ||||
|                 if (result === 0) { | ||||
|                     $('.results').html(messageError); | ||||
|                 } else { | ||||
|                     $('.results').html(`<b>${numbersValue}</b> s'écrit <b>${result}</b> en chiffres arabes.`); | ||||
|                     $('.results').html(`<b>${numbersValue}</b> s'écrit <b>${formatNumberResult(result)}</b> en chiffres arabes.`); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -16,7 +16,7 @@ | ||||
|         <label for="value">Entrez le nombre à convertir et sélectionner la devise de celui-çi :</label> | ||||
|         <br> | ||||
|         <input name="value" type="text" class="inlineInput" id="value" placeholder="(e.g : 50)" class="form-control"> | ||||
|         <select id="currencyOfTheValue"> | ||||
|         <select class="form-control selectInline" id="currencyOfTheValue"> | ||||
|             <option value="EUR">Euro (€) - EUR</option> | ||||
|             <option value="GBP">Livre sterling (£) - GBP</option> | ||||
|             <option value="USD">Dollar Américain ($) - USD</option> | ||||
| @@ -30,7 +30,7 @@ | ||||
|         </select> | ||||
|         <br> <br> | ||||
| 		<label for="currencyAfter">Choisissez la devise que voulez avoir après conversion :</label> <br> | ||||
|         <select id="currencyAfter"> | ||||
|         <select class="form-control selectInline" id="currencyAfter"> | ||||
|             <option value="£">Livre sterling (£) - GBP</option> | ||||
|             <option value="$ Américain">Dollar Américain ($) - USD</option> | ||||
|             <option value="$ Canadien">Dollar Canadien ($) - CAD</option> | ||||
|   | ||||
| @@ -16,7 +16,7 @@ | ||||
|         <label for="firstValue">Entrez la distance que vous voulez convertir et sélectionner l'unité de celle-çi :</label> | ||||
|         <br>  | ||||
|         <input name="firstValue" type="text" class="inlineInput" id="firstValue" placeholder="(e.g : 50)" class="form-control"> | ||||
|         <select id="firstValueUnit"> | ||||
|         <select class="form-control selectInline" id="firstValueUnit"> | ||||
|             <option value="pm">pm</option> | ||||
|             <option value="nm">nm</option> | ||||
|             <option value="µm">µm</option> | ||||
| @@ -33,7 +33,7 @@ | ||||
|         </select> | ||||
|         <br> <br> | ||||
| 		<label for="secondValue">Choisissez l'unité que vous voulez avoir après conversion :</label> <br> | ||||
|         <select id="secondValue"> | ||||
|         <select class="form-control selectInline" id="secondValue"> | ||||
|             <option value="pm">pm</option> | ||||
|             <option value="nm">nm</option> | ||||
|             <option value="µm">µm</option> | ||||
|   | ||||
| @@ -16,7 +16,7 @@ | ||||
|         <textarea name="value" type="text" id="value" placeholder="Votre valeur..." class="form-control"></textarea> | ||||
|         <br> | ||||
| 		<label for="option">Choisissez une option : </label> <br> | ||||
|         <select id="option"> | ||||
|         <select class="form-control selectInline" id="option"> | ||||
|         <option value="DecimalToBinary">Décimal en Binaire</option> | ||||
|             <option value="BinaryToDecimal">Binaire en Décimal</option> | ||||
|             <option value="DecimalToHexadecimal">Décimal en Hexadecimal</option> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user