diff --git a/web/css/easyctf.css b/web/css/easyctf.css index 9325a9e..b92bdc0 100644 --- a/web/css/easyctf.css +++ b/web/css/easyctf.css @@ -9,7 +9,7 @@ } * { - font-family: "Proxima Nova"; + font-family: "Proxima Nova", Helvetica Neue, Helvetica, Arial, sans-serif; } .tab-content { @@ -20,4 +20,8 @@ > .active { display: block; } +} + +.NO_HOVER_UNDERLINE_DAMMIT:hover, .NO_HOVER_UNDERLINE_DAMMIT:focus, .NO_HOVER_UNDERLINE_DAMMIT:active { + text-decoration:none; } \ No newline at end of file diff --git a/web/index.html b/web/index.html index 1fb696a..0b0c030 100644 --- a/web/index.html +++ b/web/index.html @@ -19,7 +19,9 @@ + + diff --git a/web/js/admin.js b/web/js/admin.js new file mode 100644 index 0000000..c6b7fd6 --- /dev/null +++ b/web/js/admin.js @@ -0,0 +1,5 @@ +$(document).ready(function() { + $(".panel-title > a[data-toggle=collapse]").click(function(e) { + e.preventDefault(); + }); +}); \ No newline at end of file diff --git a/web/js/admin/problems.js b/web/js/admin/problems.js deleted file mode 100644 index e69de29..0000000 diff --git a/web/js/easyctf.js b/web/js/easyctf.js index 147a807..972f335 100644 --- a/web/js/easyctf.js +++ b/web/js/easyctf.js @@ -93,6 +93,12 @@ app.controller("profileController", ["$controller", "$scope", "$http", "$routePa app.controller("adminProblemsController", ["$controller", "$scope", "$http", function($controller, $scope, $http) { $controller("mainController", { $scope: $scope }); + $.post("/api/admin/problems/list", function(result) { + if (result["success"] == 1) { + $scope.problems = result["problems"]; + } + $scope.$apply(); + }); }]); function display_message(containerId, alertType, message, callback) { diff --git a/web/pages/admin/problems.html b/web/pages/admin/problems.html index 1d0a668..2e6888e 100644 --- a/web/pages/admin/problems.html +++ b/web/pages/admin/problems.html @@ -1,5 +1,126 @@ -

Problems

- + + +
+
+
+
+
+
There are no problems to show!
+ +
+
+
+
+ +
+
+
+
+
+
+
+

Be sure you are familiar with guidelines to writing problems before you submit!

+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
Nothing here yet.
+
+
- \ No newline at end of file + \ No newline at end of file diff --git a/web/pages/profile.html b/web/pages/profile.html index 6b3c9a3..7076211 100644 --- a/web/pages/profile.html +++ b/web/pages/profile.html @@ -52,5 +52,8 @@ \ No newline at end of file