mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Some template stuff
This commit is contained in:
parent
ae6e252830
commit
ba0e82738a
@ -74,12 +74,8 @@
|
||||
</div>
|
||||
<script>
|
||||
socket.on('query_results', function(json_results) {
|
||||
console.log('Results recieved')
|
||||
console.log(json_results)
|
||||
var queryResultsElement = document.getElementById("query-results");
|
||||
for (let json_result of json_results) {
|
||||
queryResultsElement.innerHTML += json_result['tokens'] + '<br>';
|
||||
}
|
||||
console.log('Results recieved');
|
||||
console.log(json_results);
|
||||
});
|
||||
</script>
|
||||
<div class="col s12 m9 l9">
|
||||
@ -92,7 +88,6 @@ socket.on('query_results', function(json_results) {
|
||||
</div>
|
||||
<script>
|
||||
let queryData = document.forms['query_form'].elements;
|
||||
console.log(queryData);
|
||||
var queryBtn = document.getElementById('sent_query');
|
||||
queryBtn.addEventListener('click', function(event) {
|
||||
event.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user