Commit 2c618b38 authored by Daniel Witek's avatar Daniel Witek

changed cursor on input field

parent ad37c430
......@@ -129,6 +129,7 @@ function sendSpellcheck(spell){
suggest = obj.spellcheck.collations
// console.log(suggest[1].collationQuery)
// console.log(suggest.length)
if(suggest.length > 1) document.getElementById("suggestions").innerHTML = "Spellcheck: "
for (var i = 1; i < suggest.length; i++) {
let test= suggest[i].collationQuery
console.log(test)
......@@ -136,7 +137,11 @@ function sendSpellcheck(spell){
i++;
word.innerHTML = test;
document.getElementById("suggestions").appendChild(word)
// if ((i+1)<suggest.length) words +=", "
if (i+1<suggest.length) {
let semicolon = document.createElement("span")
semicolon.innerHTML=", "
document.getElementById("suggestions").appendChild(semicolon)
}
}
}});
......
......@@ -57,6 +57,13 @@ body{
cursor: pointer;
}
#input {
cursor: text;
}
#suggestions li {
display: inline;
}
#results{
background-color: white;
......@@ -86,4 +93,4 @@ li{
.poke_about{
padding-bottom: 0.5em;
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment