Skip to content
Snippets Groups Projects
Commit fa4141a6 authored by Stahl, Merle's avatar Stahl, Merle
Browse files

Intervall

parent 30c21fa3
No related branches found
No related tags found
1 merge request!30Intervall
......@@ -155,7 +155,7 @@ function failure(graph) {
* checks at a fixed interval whether the contents of the JSON file have changed
and reloads the program if necessary
*/
var intervalId = window.setInterval(check_if_json_changed, 500)
var intervalId = window.setInterval(check_if_json_changed, 5000)
function check_if_json_changed() {
d3.json("json_text.json").then(function(graph) {
newjson_string = JSON.stringify(graph)
......
......@@ -171,7 +171,7 @@ function failure(graph) {
* checks at a fixed interval whether the contents of the JSON file have changed
and reloads the program if necessary
*/
var intervalId = window.setInterval(check_if_json_changed, 500)
var intervalId = window.setInterval(check_if_json_changed, 5000)
function check_if_json_changed() {
d3.json("json_text.json").then(function(graph) {
newjson_string = JSON.stringify(graph)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment