Skip to content

Commit 6890ea1

Browse files
committed
Open fixed plugin
1 parent 655cfc7 commit 6890ea1

File tree

9 files changed

+65
-11
lines changed

9 files changed

+65
-11
lines changed

examples/dashboard.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,9 +987,15 @@ <h4 class="card-title">Employees Stats</h4>
987987
$(document).ready(function() {
988988
// Javascript method's body can be found in assets/js/demos.js
989989
md.initDashboardPageCharts();
990+
if (window_width > 767) {
991+
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
992+
$('.fixed-plugin .dropdown').addClass('show');
993+
$('.fixed-plugin .dropdown-menu').addClass('show');
994+
}
995+
}
990996

991997
});
992998
</script>
993999
</body>
9941000

995-
</html>
1001+
</html>

examples/icons.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,12 @@ <h5>The icons are visible on Desktop mode inside an iframe. Since the iframe is
464464
window_width = $(window).width();
465465

466466
fixed_plugin_open = $('.sidebar .sidebar-wrapper .nav li.active a p').html();
467+
if (window_width > 767) {
468+
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
469+
$('.fixed-plugin .dropdown').addClass('show');
470+
$('.fixed-plugin .dropdown-menu').addClass('show');
471+
}
472+
}
467473

468474
// if( window_width > 767 && fixed_plugin_open == 'Dashboard' ){
469475
// if($('.fixed-plugin .dropdown').hasClass('show-dropdown')){
@@ -600,4 +606,4 @@ <h5>The icons are visible on Desktop mode inside an iframe. Since the iframe is
600606
</script>
601607
</body>
602608

603-
</html>
609+
</html>

examples/map.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,14 @@
538538
$(document).ready(function() {
539539
// Javascript method's body can be found in assets/js/demos.js
540540
demo.initGoogleMaps();
541+
if (window_width > 767) {
542+
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
543+
$('.fixed-plugin .dropdown').addClass('show');
544+
$('.fixed-plugin .dropdown-menu').addClass('show');
545+
}
546+
}
541547
});
542548
</script>
543549
</body>
544550

545-
</html>
551+
</html>

examples/notifications.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,10 +693,15 @@ <h4 class="card-title">
693693
</script>
694694
<script>
695695
$(document).ready(function() {
696-
//init DateTimePickers
697-
md.initFormExtendedDatetimepickers();
696+
if (window_width > 767) {
697+
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
698+
$('.fixed-plugin .dropdown').addClass('show');
699+
$('.fixed-plugin .dropdown-menu').addClass('show');
700+
}
701+
}
702+
698703
});
699704
</script>
700705
</body>
701706

702-
</html>
707+
</html>

examples/tables.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,8 +842,16 @@ <h4 class="card-title mt-0"> Table on Plain Background</h4>
842842
}, 1000);
843843
});
844844
});
845+
if (window_width > 767) {
846+
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
847+
$('.fixed-plugin .dropdown').addClass('show');
848+
$('.fixed-plugin .dropdown-menu').addClass('show');
849+
}
850+
}
845851
});
852+
853+
846854
</script>
847855
</body>
848856

849-
</html>
857+
</html>

examples/typography.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,15 @@ <h2>
665665
}, 1000);
666666
});
667667
});
668+
669+
if (window_width > 767) {
670+
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
671+
$('.fixed-plugin .dropdown').addClass('show');
672+
$('.fixed-plugin .dropdown-menu').addClass('show');
673+
}
674+
}
668675
});
669676
</script>
670677
</body>
671678

672-
</html>
679+
</html>

examples/upgrade.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,16 @@ <h4 class="card-title">Material Dashboard PRO</h4>
644644
}, 1000);
645645
});
646646
});
647+
if (window_width > 767) {
648+
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
649+
$('.fixed-plugin .dropdown').addClass('show');
650+
$('.fixed-plugin .dropdown-menu').addClass('show');
651+
}
652+
}
647653
});
654+
655+
648656
</script>
649657
</body>
650658

651-
</html>
659+
</html>

examples/user.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,16 @@ <h4 class="card-title">Alec Thompson</h4>
676676
}, 1000);
677677
});
678678
});
679+
if (window_width > 767) {
680+
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
681+
$('.fixed-plugin .dropdown').addClass('show');
682+
$('.fixed-plugin .dropdown-menu').addClass('show');
683+
}
684+
}
679685
});
686+
687+
680688
</script>
681689
</body>
682690

683-
</html>
691+
</html>

presentation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ <h3>Thank you for supporting us!</h3>
400400
</div>
401401
<footer class="footer">
402402
<div class="container">
403-
<a class="footer-brand" href="https://www.creative-tim.com">Material Dashboard</a>
403+
<a class="footer-brand" href="https://demos.creative-tim.com/material-dashboard/examples/dashboard.html">Material Dashboard</a>
404404
<ul class="pull-center">
405405
<li>
406406
<a href="https://www.creative-tim.com/" target="_blank">

0 commit comments

Comments
 (0)