From 74212353ecd85249154a5ca5a48110fe9ac98bd4 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 8 Oct 2017 15:22:41 +1300 Subject: [PATCH] webpage: display your uploads --- static/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 8d17e21..5fba33a 100644 --- a/static/index.html +++ b/static/index.html @@ -33,7 +33,17 @@ $.get("/about", function(ret) { // Load upload widget contented.init("#surrogate-area", function(items) { - console.log(items); + + var $table = $(""); + for (var i = 0; i < items.length; ++i) { + $table.append($("").append([ + $("
").text(items[i]), + $("").html("view"), + $("").html("info") + ])) + } + $("#surrogate-area").html($table); + });