I am trying to implement the bootstrap-material-design theme to my existing Bootstrap site.
In my main.blade.php
, I have this on top to denote the stylesheets.
<!-- CSS -->
<link href="/css/all.css" rel="stylesheet">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.2.1/css/material.min.css" />
{{--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/material-fullpalette.min.css" />--}}
<!-- Scripts -->
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://code.jquery.com/ui/1.10.2/jquery-ui.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/js/material.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/js/ripples.min.js'></script>
<script type="text/javascript"></script>
Here is in my main blade file – this is the blade wrapper file that exists across all my views.
At the bottom of this main blade, I have this JS as instructed by the docs:
<script>
$(document).ready(function() {
$.material.init();
});
</script>
However, when I try to click on my button or nav bar elements, there is no ripple effect. I do not see any errors on my console either.
Do I need to add any additional code to my button classes?
EDIT:
Here’s the Network tab:
2
Answers
Please try this one. i change order or scripts and add one css
Load
arrive.js
before thematerial-design.js
Install using bower
bower install arrive --save