Topic: Embedding JB Gallery (php and inc) [SOLVED]
Hi,
My apologies in advance if this is a noob question... I am attempting to embed a Juicebox gallery on to the following website (the gallery would replace everything below the strip menu):
http://biopartner.co.uk/
I have read the tutorials on embedding but it simply doesn't work for me. Instead it completely takes over the page every time. I think the problem may stem from how our pages are coded.
The top half of the page is included on every page site-wide using .inc pages. These are used within the .php page format like css is (that's my understanding) but I've found no info on whether Juicebox will work with the file types. Below I provide code from a test page I've been putting together; if anyone can point out what my error is I would be immensely grateful:
<?php
$strMain = 1; // banner and menubar to display
$strSideNav = 1; // Side nav to display
include('includes/header.inc');
include('includes/main.inc');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>BIO-Europe 2017</title>
<meta charset="utf-8" />
<meta name="viewport" id="jb-viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1, user-scalable=0" />
<meta name="description" content="" />
<!-- START OPEN GRAPH TAGS-->
<meta property="og:title" content="BIO-Europe 2017" />
<meta property="og:type" content="website" />
<meta property="og:url" content="" />
<meta property="og:image" content="" />
<meta property="og:description" content="" />
<!-- END OPEN GRAPH TAGS-->
<style type="text/css">
body {
margin: 0px;
}
</style>
</head>
<body>
<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
new juicebox({
containerId: 'juicebox-container',
galleryWidth: '100%',
galleryHeight: '100%',
backgroundColor: 'rgba(255,255,255,1)'
});
</script>
<div id="juicebox-container">
<!-- Image gallery content for non-javascript devices -->
<noscript>