diff options
| -rw-r--r-- | index.html | 2 | ||||
| -rw-r--r-- | scripts/rhizicore.js | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -49,7 +49,7 @@ <div id="suggestion" > - <form> <input id="textanalyser" size= "70" placeholder="Type here to create a network:" onkeyup="Expand(this);"/></form> + <form> <input id = "textanalyser" size= "70" placeholder = "Type here to create a network:" onkeyup = "expand(this);"/></form> </div> <div class="typeselection"> diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index f8bf53ed..4692602b 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -1065,7 +1065,9 @@ function customSize(type) { return size; } -function Expand(obj){ - if (!obj.savesize) obj.savesize=obj.size; - obj.size=Math.max(obj.savesize,obj.value.length); +function expand(obj){ + if (!obj.savesize) + obj.savesize = obj.size; + obj.size = Math.max(obj.savesize,obj.value.length); + } |
