+
+ // Globals.
+ let throw_ok = 100 * (1 - throwaways / num_throws);
+ let catch_ok = 100 * (catches / (catches + drops));
+
+ let row = document.createElement('tr');
+ add_cell(row, 'td', '');
+ add_cell(row, 'td', '');
+ add_cell(row, 'td', '');
+ add_cell(row, 'td', '');
+ add_cell(row, 'td', num_throws);
+ add_cell(row, 'td', throwaways);
+ add_cell(row, 'td', throw_ok.toFixed(0) + '%');
+ add_cell(row, 'td', catches);
+ add_cell(row, 'td', drops);
+ add_cell(row, 'td', catch_ok.toFixed(0) + '%');
+ add_cell(row, 'td', '');
+ add_cell(row, 'td', '');
+ rows.push(row);
+