I am trying to add the following code into the footer of my templates and when I do so, it causes the links for replying to a post to disappear from my forum.
The purpose of this code is to present a popup when a user scrolls down on the page.
I am inserting it into the Footer for my active templates as shown here.
Can you please tell me where I should be inserting this code so that it does not prevent the forum from working properly?
1. I Place this code just above the closing body tag:
<div id="scrollbox"></div>
2. I Place this code below the closing html tag:
<script src="https://code.jquery.com/jquery-2.2.3.js" integrity="sha256-laXWtGydpwqJ8JA+X9x2miwmaiKhn8tVmOVEigRNtP4="cross origin="anonymous"></script>
<script type="text/javascript">
var request_uri = '/' + window.location.pathname.substr(1);
var src = 'http://www.heart-valve-surgery.com/valvereplacement/valvereplacement/scrollbox?request_uri='+request_uri;
jQuery.ajax({
url: src,
dataType: 'script',
async: true
});
</script>
The purpose of this code is to present a popup when a user scrolls down on the page.
I am inserting it into the Footer for my active templates as shown here.
Can you please tell me where I should be inserting this code so that it does not prevent the forum from working properly?
1. I Place this code just above the closing body tag:
<div id="scrollbox"></div>
2. I Place this code below the closing html tag:
<script src="https://code.jquery.com/jquery-2.2.3.js" integrity="sha256-laXWtGydpwqJ8JA+X9x2miwmaiKhn8tVmOVEigRNtP4="cross origin="anonymous"></script>
<script type="text/javascript">
var request_uri = '/' + window.location.pathname.substr(1);
var src = 'http://www.heart-valve-surgery.com/valvereplacement/valvereplacement/scrollbox?request_uri='+request_uri;
jQuery.ajax({
url: src,
dataType: 'script',
async: true
});
</script>
Comment