1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

jQuery -> new MaterializeCSS way

This commit is contained in:
2017-12-24 20:58:15 +01:00
parent 71756f9ea0
commit 6ba4803ed2
2 changed files with 8 additions and 12 deletions

View File

@@ -1,12 +1,9 @@
(function($){
$(function(){
var options = {}
var elem = document.querySelector('.sidenav');
var instance = new M.Sidenav(elem, options);
$('.sidenav').sidenav();
/* Initialise collapsible tags block */
$(document).ready(function() {
$('.collapsible').collapsible();
var elem = document.querySelector('.collapsible');
var instance = new M.Collapsible(elem, {
// inDuration: 1000,
// outDuration: 1000
});
}); // end of document ready
})(jQuery); // end of jQuery name space

View File

@@ -39,7 +39,6 @@
}
</style>
<link href="{{ url_for('static', filename='css/digimarks.css') }}?20170728" type="text/css" rel="stylesheet" media="screen,projection"/>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
</head>
<body class="{{ theme.BODY }} {{ theme.TEXT }}">
<nav class="{{ theme.NAV }}" role="navigation">