Skip to content

Commit 87e5fb4

Browse files
author
Jessica Shi
committed
remove unused code
1 parent 3dfb3f5 commit 87e5fb4

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

javascripts/demo.js

+5-21
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function demo() {
369369
var hideTables = function() {
370370
$("#tblFormats").hide();
371371
$("#tblSchedule").hide();
372-
model.resetSchedule()
372+
model.resetSchedule();
373373
};
374374
tblFormatsView.timerEvent = setTimeout(hideTables, timeout);
375375
} else {
@@ -824,7 +824,7 @@ function demo() {
824824
row += rowId;
825825
row += "\">";
826826
for (var c in scheduleCommands) {
827-
row += "<li><a>" + c + "</a></li>"
827+
row += "<li><a>" + c + "</a></li>";
828828
}
829829
row += "</ul></div></td>";
830830
row += "<td class=\"mdl-data-table__cell--non-numeric\"";
@@ -893,22 +893,6 @@ function demo() {
893893
model.addReorderedVar(row);
894894
});
895895
});
896-
897-
$('.dropdown-submenu a').on("mouseover", function(e){
898-
$(this).next('ul').show();
899-
});
900-
901-
// hardcoded currently?
902-
$('.CPU').on("mouseleave", function(e){
903-
$(this).find('ul').hide();
904-
});
905-
$('.GPU').on("mouseleave", function(e){
906-
$(this).find('ul').hide();
907-
});
908-
909-
$("#btnCPU").click(function() {
910-
911-
});
912896
}
913897
};
914898

@@ -1020,13 +1004,13 @@ function demo() {
10201004
command += param + ",";
10211005
}
10221006

1023-
command = command.substring(0, command.length - 1)
1007+
command = command.substring(0, command.length - 1);
10241008
command += ")";
10251009
}
10261010

10271011
var req = $.ajax({
10281012
type: "POST",
1029-
url: "http://localhost:80",
1013+
url: "http://tensor-compiler-online.csail.mit.edu",
10301014
data: escape(command),
10311015
async: true,
10321016
cache: false,
@@ -1104,7 +1088,7 @@ function demo() {
11041088
}
11051089
}
11061090
return "";
1107-
};
1091+
}
11081092

11091093
var demo = getURLParam("demo");
11101094
if (!(demo in examples)) {

0 commit comments

Comments
 (0)