Switch to side-by-side view

--- a/OSSEval/static/js/osseval.js
+++ b/OSSEval/static/js/osseval.js
@@ -1,9 +1,18 @@
 var id_selected_instance=0;
 
-$(document).ready(function() {
-  //$('a#answer_link').click(function() { alert('aaa');return false;})
-})
-
+$(document).ready(function () {
+    $('legend').click(function () {
+        var $this = $(this);
+        var parent = $this.parent();
+        var contents = parent.contents().not(this);
+        if (contents.length > 0) {
+            $this.data("contents", contents.remove());
+        } else {
+            $this.data("contents").appendTo(parent);
+        }
+    });
+    $('legend').css( 'cursor', 'pointer' );
+ });
 var update_answers_error = function(data, textStatus, jqXHR) { 
     console.log("update_answers_error: " + data.response); 
 }