now index and display subentries
This commit is contained in:
parent
a8c0ea875c
commit
4ef96c50ab
4 changed files with 57 additions and 45 deletions
|
@ -131,41 +131,16 @@ $( document ).ready(function() {
|
|||
}
|
||||
};
|
||||
Plotly.newPlot(map, [$(this).data('map')], layout);
|
||||
|
||||
|
||||
|
||||
// var data = [{
|
||||
// type: 'scattergeo',
|
||||
// mode: 'markers+text',
|
||||
// text: [
|
||||
// 'Montreal', 'Toronto', 'Vancouver', 'Calgary', 'Edmonton',
|
||||
// 'Ottawa', 'Halifax', 'Victoria', 'Winnepeg', 'Regina'
|
||||
// ],
|
||||
// hovertext: 'HIMEM.SYS<br>EGAVGA.BGI',
|
||||
// hoverinfo: 'text',
|
||||
// lon: [
|
||||
// -73.57, -79.24, -123.06, -114.1, -113.28,
|
||||
// -75.43, -63.57, -123.21, -97.13, -104.6
|
||||
// ],
|
||||
// lat: [
|
||||
// 45.5, 43.4, 49.13, 51.1, 53.34, 45.24,
|
||||
// 44.64, 48.25, 49.89, 50.45
|
||||
// ],
|
||||
// marker: {
|
||||
// size: 7,
|
||||
// // color: [
|
||||
// // '#bebada', '#fdb462', '#fb8072', '#d9d9d9', '#bc80bd',
|
||||
// // '#b3de69', '#8dd3c7', '#80b1d3', '#fccde5', '#ffffb3'
|
||||
// // ],
|
||||
// line: {
|
||||
// width: 1
|
||||
// }
|
||||
// },
|
||||
// name: 'Canadian cities',
|
||||
// textposition: [
|
||||
// 'top right', 'top left', 'top center', 'bottom right', 'top right',
|
||||
// 'top left', 'bottom right', 'bottom left', 'top right', 'top right'
|
||||
// ],
|
||||
// }];
|
||||
});
|
||||
|
||||
// Event handler to show subentries
|
||||
$('#show-re').on("change", function () {
|
||||
if($(this).prop('checked')) {
|
||||
console.log('haha')
|
||||
$('li.abv-menu-re').removeAttr('hidden');
|
||||
}
|
||||
else {
|
||||
$('li.abv-menu-re').prop('hidden',true);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue