Skip to content

Commit 1993c80

Browse files
committed
Load foundation.js everywhere to enable the menu for the mobile view.
1 parent dfc42af commit 1993c80

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

public/js/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
);
2222
}
2323

24-
// $(document).foundation();
24+
$(document).foundation();
2525

2626
} )( this );

views/album.ejs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<% layout( 'layout' ) -%>
22

3-
<% script( '/bower_components/foundation/js/foundation.min.js' ) %>
4-
<% script( '/bower_components/foundation/js/foundation/foundation.clearing.js' ) %>
5-
<% block( 'scripts', '<script>$(document).foundation()</script>' ) %>
6-
73
<main id="main-content">
84
<div class="row" id="album">
95
<div class="small-12 columns">

views/layout.ejs

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@
8383
</footer>
8484

8585
<script src="/bower_components/jquery/jquery.min.js"></script>
86+
<script src="/bower_components/foundation/js/foundation.min.js"></script>
87+
<script src="/bower_components/foundation/js/foundation/foundation.clearing.js"></script>
8688
<script src="/js/app.js"></script>
87-
<script src="/js/home.js"></script>
8889
<%- scripts %>
8990
</body>
9091
</html>

0 commit comments

Comments
 (0)