Design work
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
window.onload = function () {
|
||||
function update_filter() {
|
||||
var project_filter = document.getElementById("filter_category");
|
||||
project_filter.onchange = function () {
|
||||
if (project_filter.value == 'all') {
|
||||
window.location.href = '/projects';
|
||||
}
|
||||
else {
|
||||
window.location.href = '/projects/category/' + project_filter.value;
|
||||
}
|
||||
console.log(project_filter.value)
|
||||
if (project_filter.value == 'all') {
|
||||
window.location.href = '/projects';
|
||||
}
|
||||
}
|
||||
else {
|
||||
window.location.href = '/projects/category/' + project_filter.value;
|
||||
}
|
||||
}
|
||||
|
5
src/static/js/update_copyright.js
Normal file
5
src/static/js/update_copyright.js
Normal file
@@ -0,0 +1,5 @@
|
||||
window.onload = function () {
|
||||
var current_year = new Date().getFullYear();
|
||||
var copyright = document.getElementById('cr-year');
|
||||
copyright.textContent = current_year;
|
||||
}
|
Reference in New Issue
Block a user