This commit is contained in:
Kevin Chung
2016-09-27 21:54:18 -04:00
parent f1a63e18a7
commit 60bb118e16

View File

@@ -17,7 +17,7 @@ function loadchalbyname(chalname) {
}
function updateChalWindow(obj) {
window.location.hash = obj.name;
window.location.replace(window.location.href + '#' + obj.name);
var chal = $('#chal-window');
chal.find('.chal-name').text(obj.name);
chal.find('.chal-desc').html(marked(obj.description, {'gfm':true, 'breaks':true}));
@@ -270,7 +270,7 @@ $('.nav-tabs a').click(function (e) {
$('#chal-window').on('hidden.bs.modal', function() {
$('.nav-tabs a:first').tab('show');
window.history.back(1);
history.pushState("", document.title, window.location.pathname + window.location.search);
});
setInterval(update, 300000);