1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-07 06: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($){ var options = {}
$(function(){ var elem = document.querySelector('.sidenav');
var instance = new M.Sidenav(elem, options);
$('.sidenav').sidenav(); var elem = document.querySelector('.collapsible');
var instance = new M.Collapsible(elem, {
/* Initialise collapsible tags block */ // inDuration: 1000,
$(document).ready(function() { // outDuration: 1000
$('.collapsible').collapsible();
}); });
}); // end of document ready
})(jQuery); // end of jQuery name space

View File

@@ -39,7 +39,6 @@
} }
</style> </style>
<link href="{{ url_for('static', filename='css/digimarks.css') }}?20170728" type="text/css" rel="stylesheet" media="screen,projection"/> <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> </head>
<body class="{{ theme.BODY }} {{ theme.TEXT }}"> <body class="{{ theme.BODY }} {{ theme.TEXT }}">
<nav class="{{ theme.NAV }}" role="navigation"> <nav class="{{ theme.NAV }}" role="navigation">