Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved issue no 3: SideNav left to right #14

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<a href="#home" class="brand-logo">
<img src="./source/images/fcc-khi.png">
</a>
<a href="#" data-activates="mobile-menu" class="button-collapse">
<a href="#" data-activates="mobile-menu" class="button-collapse" style="float:right;">
<i class="fa fa-bars fa-2x" aria-hidden="true"></i>
</a>
<ul class="right hide-on-med-and-down">
Expand Down
8 changes: 7 additions & 1 deletion source/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ let materialize = require('../../node_modules/materialize-css/dist/js/materializ


$(document).ready(function () {
$(".button-collapse").sideNav();
$('.button-collapse').sideNav({
menuWidth: 300, // Default is 300
edge: 'right', // Choose the horizontal origin
closeOnClick: true, // Closes side-nav on <a> clicks, useful for Angular/Meteor
draggable: true, // Choose whether you can drag to open on touch screens,
}
);
$('.parallax').parallax();
$('.carousel').carousel({ indicators: true, padding: 50, shift: 80 });
let setCopyRightYear = () => {
Expand Down