Skip to content
Snippets Groups Projects
Commit daf449b5 authored by CupCakeArmy's avatar CupCakeArmy
Browse files

Adding the API Specification

parent c58eb63d
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -49,7 +49,9 @@ body {
.loginPanel {
width: 100%;
height: 100%;
display: none;
top: 0%;
left: 0%;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
......
......@@ -34,8 +34,8 @@ var tools = {
$.ajax({
url: 'tools/' + tools.curTool + '.tool',
dataType: 'html',
error: function(msg) {
tools.log(msg, 's');
error: function() {
tools.log('Tool not found', 'e');
}
}).done(function(data){
$('#main-content').html(data);
......@@ -82,12 +82,20 @@ var tools = {
Initialization of page
*/
//Binding tool change whenever the hash is changed
window.onhashchange = tools.getTool;
//Setting home if no other tool is selected
if(window.location.hash == '' || window.location.hash == null)
window.location.hash = 'home';
tools.getTool();
//Binding tool change whenever the hash is changed
window.onhashchange = tools.getTool;
// Binding the button for toggeling the sidemenu
$('.toggleSidebarBtn').click(tools.toggleSideMenu);
\ No newline at end of file
// Binding the buttons
$('.toggleSidebarBtn').click(tools.toggleSideMenu);
amivaccess.ready(function(){
tools.getTool();
if(amivaccess.authenticated())
$('.loginPanel').css({'top':'-100%'});
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment