+ // Low depth.
+ var lowdepth = '';
+ if (data['lowdepth']) {
+ lowdepth = 'Quick look: ';
+ var lds = [];
+ Object.keys(data['lowdepth']).forEach(function(depth) {
+ let info = data['lowdepth'][depth];
+ lds.push([parseInt(depth), format_short_score(info.slice(0,-1)), info[info.length - 1]]);
+ });
+ lds.sort(function(a, b) { return a[0] - b[0]; });
+ for (var i = 0; i < lds.length; ++i) {
+ lowdepth += '<span class="depth">d' + lds[i][0] + ':</span> ' + lds[i][2] + ' ' + lds[i][1];
+ if (i != lds.length - 1) {
+ lowdepth += ', ';
+ }
+ }
+ }
+ $("#lowdepth").html(lowdepth);
+