Make bump session button pretty
This commit is contained in:
@ -2,6 +2,14 @@
|
||||
<html lang="en">
|
||||
{{> head}}
|
||||
<body>
|
||||
{{> header}}
|
||||
|
||||
<ul class="striped_list">
|
||||
{{#each categories}}
|
||||
{{>category_entry}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
function toggle_category(id) {
|
||||
// Find out whether the button is in active (play) or inactive (paused) state
|
||||
@ -26,16 +34,15 @@
|
||||
//Send the proper header information along with the request
|
||||
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
||||
|
||||
xhr.onreadystatechange = function() {
|
||||
if(xhr.readyState === XMLHttpRequest.DONE) {
|
||||
console.log(xhr.status, xhr.responseText);
|
||||
document.location.reload(false /* don't reset scroll position */);
|
||||
}
|
||||
};
|
||||
|
||||
xhr.send();
|
||||
}
|
||||
</script>
|
||||
|
||||
{{> header}}
|
||||
|
||||
<ul class="striped_list">
|
||||
{{#each categories}}
|
||||
{{>category_entry}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user