diff --git a/scripts/haltestellen.js b/scripts/haltestellen.js index 469c170..10716c0 100644 --- a/scripts/haltestellen.js +++ b/scripts/haltestellen.js @@ -55,14 +55,29 @@ function ajaxCall(dataUrl, outputElement, callback) { console.log("anonymous function"); - /*var wurst = '[["13","Prohlis","754"],["13","Prohlis","754"],["13","Prohlis","754"],["13","Prohlis","754"]]'; + var hupatz; + var blub = document.getElementById("output"); + + var wurst = '[["13","Prohlis","754"],["13","Prohlis","754"],["13","Prohlis","754"],["13","Prohlis","754"]]'; console.log(wurst); - //wurst = wurst.replace(/\[\[/gi, '['); - //wurst = wurst.replace(/\]\]/gi, ']'); wurst = wurst.replace(/\],\[/gi, '#'); wurst = wurst.slice(2,-2); + wurst = wurst.split("#"); console.log(wurst); - console.log(wurst.split("#"));*/ + console.log(wurst.length); + + hupatz = "
" + hallo[x].slice(1,-1) + " | "; + } + hupatz += "