diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-05-09 10:52:15 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-05-09 10:52:15 (GMT) |
commit | 8a903c13d8e1d7abb905858d5c3ce0660bf358d6 (patch) | |
tree | a90d9704561edacc47a61ec56c9c9147b7603e82 /www | |
parent | 4f7184f01215d348cc4a7b5b7a094cb1a7c6e695 (diff) |
renamed todo to schedules
Diffstat (limited to 'www')
-rw-r--r-- | www/js/schedules.js (renamed from www/js/todo.js) | 14 | ||||
-rw-r--r-- | www/schedules.html (renamed from www/todo.html) | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/www/js/todo.js b/www/js/schedules.js index f576d91..d4aa8a2 100644 --- a/www/js/todo.js +++ b/www/js/schedules.js @@ -49,7 +49,7 @@ rh.ShowList.prototype.fetch = function() { self.$this.trigger('pre-update'); $.getJSON( "/rh-bin/schedules.json?DAYS=1&START=" + format_date_iso(this.current), function(data) { if(data.status == "OK") { - history.replaceState(null, null, '/todo/' + format_date_iso(self.current)); + history.replaceState(null, null, '/schedules/' + format_date_iso(self.current)); self.last_succeeded = self.current; self.shows = []; $(data.shows).each(function(index, showdata) { @@ -182,7 +182,7 @@ rh.ShowView.prototype.render = function() { /***************** controller *****************/ -function todo_init() { +function schedules_init() { var url = parseLocationHref(); var d = new Date(); if(url.path.length > 1) { @@ -191,19 +191,19 @@ function todo_init() { d = tmp; } } - history.pushState(null, null, '/todo/' + format_date_iso(d)); + history.pushState(null, null, '/schedules/' + format_date_iso(d)); shows = new rh.ShowList(d); showListView = new rh.ShowListView(shows); - $('#btn-earlier').click(todo_prev); - $('#btn-later').click(todo_next); + $('#btn-earlier').click(schedules_prev); + $('#btn-later').click(schedules_next); } -function todo_prev() { +function schedules_prev() { shows.prev(); } -function todo_next() { +function schedules_next() { shows.next(); } diff --git a/www/todo.html b/www/schedules.html index 9351d3f..0708c29 100644 --- a/www/todo.html +++ b/www/schedules.html @@ -1,17 +1,17 @@ <!DOCTYPE HTML> <html> <head> - <title>Import Status on Radio Helsinki</title> + <title>Daily Schedules of Radio Helsinki</title> <meta charset="utf-8"> <meta name="author" content="Christian Pointner <equinox@helsinki.at>"> <link rel="shortcut icon" href="/img/favicon.ico" /> <link href="/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="/styles/common.css" rel="stylesheet"> - <link href="/styles/todo.css" rel="stylesheet"> + <link href="/styles/schedules.css" rel="stylesheet"> <script src="/javascript/jquery/jquery.min.js"></script> <script src="/js/utils.js"></script> - <script src="/js/todo.js"></script> + <script src="/js/schedules.js"></script> </head> <body> <div id="container"> @@ -52,7 +52,7 @@ </div> <script type="text/javascript"> - todo_init(); + schedules_init(); </script> </body> |