Skip to content

Commit

Permalink
Tweaked the document sizes - pretty recursive: load the document, rea…
Browse files Browse the repository at this point in the history
…d the size, add to the script (then that may change the doc size!!!)
  • Loading branch information
remy committed Oct 28, 2010
1 parent f0e20ac commit cc7e1b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,10 @@ <h2>Your gift code: <span id="code">not ready yet - <em>please complete the quiz
// calculating the size of the doc, but we've had to now hard code these
// values - please change these if the size is different!
var sizes = {
198.89: true, // total size of all assets
26.56: true // total size of documents
104.19: true, // total size of all assets
26.82: true // total size of documents
102.55: true, // these are the sizes when the quiz doesn't save
25.17: true
};

var xhr = new XMLHttpRequest();
Expand Down

0 comments on commit cc7e1b5

Please sign in to comment.