forked from sugarlabs/musicblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
24 lines (18 loc) · 686 Bytes
/
Copy pathscript.js
File metadata and controls
24 lines (18 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$(document).ready(function () {
var mode = localStorage.beginnerMode;
var modeIcon = document.getElementById('mode');
var modeText = document.getElementById('modeText');
if (mode === null || mode === 'true') {
modeIcon.innerHTML = 'star_border';
modeText.setAttribute('data-tooltip', 'Switch to advanced mode');
} else {
modeIcon.innerHTML = 'star';
modeText.setAttribute('data-tooltip', 'Switch to beginner mode');
}
$('.tooltipped').tooltip();
$('.materialize-iso, .dropdown-trigger').dropdown({
constrainWidth: false,
hover: false, // Activate on hover
belowOrigin: true, // Displays dropdown below the button
});
});