easyctf-2017/web/js/easyctf.js

48 lines
1.1 KiB
JavaScript
Raw Normal View History

2015-12-24 05:29:04 +00:00
var app = angular.module("easyctf", [ "ngRoute" ]);
2015-12-25 03:38:00 +00:00
app.config(function($routeProvider, $locationProvider) {
2015-12-24 05:29:04 +00:00
$routeProvider.when("/", {
templateUrl: "pages/home.html",
controller: "mainController"
})
.when("/about", {
templateUrl: "pages/about.html",
controller: "mainController"
})
.when("/register", {
templateUrl: "pages/register.html",
controller: "mainController"
})
.when("/login", {
templateUrl: "pages/login.html",
controller: "mainController"
2015-12-26 06:36:55 +00:00
})
.when("/chat", {
templateUrl: "pages/chat.html",
controller: "mainController"
})
.when("/updates", {
templateUrl: "pages/updates.html",
controller: "mainController"
})
.when("/problems", {
templateUrl: "pages/problems.html",
controller: "mainController"
})
.when("/programming", {
templateUrl: "pages/programming.html",
controller: "mainController"
})
.when("/shell", {
templateUrl: "pages/shell.html",
controller: "mainController"
})
2015-12-26 06:36:55 +00:00
.when("/scoreboard", {
templateUrl: "pages/scoreboard.html",
controller: "mainController"
2015-12-25 03:38:00 +00:00
});
$locationProvider.html5Mode(true);
2015-12-23 22:34:22 +00:00
});
2015-12-24 05:29:04 +00:00
app.controller("mainController", function($scope) {
2015-12-26 06:36:55 +00:00
});