From 1aff697d77e72c8a4c33031fd4725a39bdbaa4fd Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Thu, 24 May 2018 19:26:09 -0700 Subject: [PATCH] removing ajax --- BUILD.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/BUILD.md b/BUILD.md index 4ee8aa1..752f701 100644 --- a/BUILD.md +++ b/BUILD.md @@ -1032,21 +1032,3 @@ And lastly, adjust css: margin-bottom: 50px; } ``` - -## Use AJAX - -We'll have to do some cleanup before we can do AJAX - -1. Move all functions to the top of the page -1. Group all variable declarations together below function declarations -1. Move the rest of the initializing code inside an init function an call it -1. Move runs data to external `data.json` file -1. Set `var runs = null` at top of page -1. Set runs and call `init()` after ajax call succeeds: - -```javascript -d3.json('data.json', function(error, data){ - runs = data; - init(); -}); -```