Skip to content

Commit

Permalink
Add input textbox for SIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
spatialillusions committed May 30, 2017
1 parent 2b23e59 commit 29940c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dev/unitgenerator.html
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@
<table style="width:100%;padding: 10px;">
<tr>
<td style="width:50%;vertical-align:top;">
<h3 id="SIDC"></h3>
<input type="text" id="SIDC" onChange="sidcCreatorInit();drawSymbol();" style="border:0;color: rgb(0, 0, 0);font-size: 1.1rem;font-weight: normal;margin-top: 0.5rem;margin-bottom: 0.2rem;">
<!--<h3 id="SIDC" contenteditable="true" onChange="console.log('ping')"></h3>-->
<div id="MapMarker">
</div>
</td>
Expand Down Expand Up @@ -824,7 +825,7 @@ <h3>Base properties of the symbol.</h3>
var i;
var sidc = existingSidc;
if(window.location.hash){sidc = decodeURIComponent(window.location.hash.substring(1));}

if(document.getElementById("SIDC").value){sidc = document.getElementById("SIDC").value;}
//We have to initiate this if we start with a number sidc and then switch to a letter sidc
letterSIDC.modifier12();

Expand Down Expand Up @@ -1135,7 +1136,7 @@ <h3>Base properties of the symbol.</h3>
sidc = sidc.substr(0,14) + document.getElementById('2525DSpecialSubtypes').value + sidc.substr(16,4);
}
}
document.getElementById("SIDC").innerHTML = sidc;
document.getElementById("SIDC").value = sidc;

window.location.hash = sidc;
options.SIDC = sidc;
Expand Down

0 comments on commit 29940c8

Please sign in to comment.