I am trying to integrate the bootstraptour on my website.
I am getting the following error:
Uncaught TypeError: n.data(...).tip is not a function
I load my resources like this:
<link href="<?=base_url()?>assets/css/bootstrap-tour.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script defer="defer" src="<?=base_url()?>assets/js/bootstrap-tour.min.js" type="text/javascript"></script>
and in my view I perform this:
<script type="text/javascript">
$(document).ready(function() {
// Instance the tour
var tour = new Tour({
steps: [
{
element: "#adminvolunteers",
title: "Title of my step",
content: "Content of my step"
},
{
element: "#adminorganizations",
title: "Title of my step",
content: "Content of my step"
}
]});
// Initialize the tour
tour.init();
// Start the tour
tour.start();
});
</script>
If i remove the defer in the script load I get the following error:
Uncaught TypeError: n.popover is not a function