Skip to content

Commit

Permalink
Merge pull request #156 from Zavy86/fix-155
Browse files Browse the repository at this point in the history
fix privacy popup
  • Loading branch information
Zavy86 authored Jul 26, 2024
2 parents 53d55e1 + bfd638c commit 2ae469d
Show file tree
Hide file tree
Showing 3 changed files with 341 additions and 337 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.36
1.0.37
37 changes: 17 additions & 20 deletions scripts/initializations.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,25 @@

// Detect touch screen and enable scrollbar if necessary
function is_touch_device(){
try {
document.createEvent("TouchEvent");
return true;
} catch(e) {
return false;
}
try {
document.createEvent("TouchEvent");
return true;
} catch(e) {
return false;
}
}

// Plugin initialization
$(document).ready(function(){
const sidenav = $('.sidenav');

sidenav.sidenav({
edge: 'left',
draggable: true
});

$('.tooltipped').tooltip();
$('.modal').modal();

// Check for touch screen devices
if(is_touch_device()) {
$("#nav-mobile").css({overflow: "auto"});
}
const sidenav = $('.sidenav');
sidenav.sidenav({
edge: 'left',
draggable: true
});
$('.tooltipped').tooltip();
$('.modal').modal();
// Check for touch screen devices
if(is_touch_device()) {
$("#nav-mobile").css({overflow: "auto"});
}
});
Loading

0 comments on commit 2ae469d

Please sign in to comment.