From 2914c59f1ec0ce7b3ed184af56b9aabc7929d8e2 Mon Sep 17 00:00:00 2001
From: Beyza Turbil <91tube1bif@hft-stuttgart.de>
Date: Thu, 20 Jan 2022 16:45:27 +0100
Subject: [PATCH] Attributehandler fixed and new option added

---
 public/main.html | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/public/main.html b/public/main.html
index 790dc6e..e0ad09c 100644
--- a/public/main.html
+++ b/public/main.html
@@ -273,17 +273,18 @@
                  <div class="dropp-body"></div>
                  
                  <div class="select">
-                     <select id="selectBox" onmouseover="chosenAttributeHandler(this);">
-                         <option class=specificYield key= specificYield id="specificYield" value="specificYield" type= "selectBox" >Specific Yield</option>                        
-                         <option class=totalInvestment key="totalInvestment" id="totalInvestment" value="totalInvestment" type="selectBox" >Total Investment</option>
-                         <option class="maintenancePerYear" key="maintenancePerYear" value="maintenancePerYear" type="selectBox" >Maintenance Per Year</option>
-                         <option class="netPresentValue" key="netPresentValue" value="netPresentValue" type="selectBox" >Net Present Value</option>
-                         <option class="nominalPower" key="nominalPower" value="nominalPower" type="nominalPower" >Nominal Power</option>
+                     <select id="selectBox" onchange="chosenAttributeHandler(this);">
+                         <option selected disabled>Choose one</option>
+                         <option class=specificYield key= specificYield id="specificYield" value="specificYield" type="selectBox">Specific Yield</option>                        
+                         <option class=totalInvestment key="totalInvestment" id="totalInvestment" value="totalInvestment" type="selectBox">Total Investment</option>
+                         <option class="maintenancePerYear" key="maintenancePerYear" value="maintenancePerYear" type="selectBox">Maintenance Per Year</option>
+                         <option class="netPresentValue" key="netPresentValue" value="netPresentValue" type="selectBox">Net Present Value</option>
+                         <option class="nominalPower" key="nominalPower" value="nominalPower" type="nominalPower">Nominal Power</option>
                          <option class="paybackPeriod" key="paybackPeriod" value="paybackPeriod" id="selectBox">Payback Period</option>
-                         <option class="levelizedCostOfElectricity" key="levelizedCostOfElectricity" value="levelizedCostOfElectricity" type="selectBox" >Levelized Cost Of Electricity</option>
-                         <option class="internalRateOfReturn" key="internalRateOfReturn" value="internalRateOfReturn" type="selectBox" >Internal Rate Of Return</option>
-                         <option class="discountedPaybackPeriod" key="discountedPaybackPeriod" value="discountedPaybackPeriod" type="selectBox" >Discounted Payback Period</option>
-                         <option class="shadowValue" key="shadowValue" value="shadowValue" type="selectBox" >Shadow Value</option>
+                         <option class="levelizedCostOfElectricity" key="levelizedCostOfElectricity" value="levelizedCostOfElectricity" type="selectBox">Levelized Cost Of Electricity</option>
+                         <option class="internalRateOfReturn" key="internalRateOfReturn" value="internalRateOfReturn" type="selectBox">Internal Rate Of Return</option>
+                         <option class="discountedPaybackPeriod" key="discountedPaybackPeriod" value="discountedPaybackPeriod" type="selectBox">Discounted Payback Period</option>
+                         <option class="shadowValue" key="shadowValue" value="shadowValue" type="selectBox">Shadow Value</option>
                      </select>
                      <span class="focus"></span>
                    </div>
-- 
GitLab