I've been trying to add a Return to Top button via Template pages for my HTML5 output. For some reason the button only works for pages that are not using the Template pages such as the Glossary and my Home Master page. I've include the code blocks from both pages below.
Glossary Code Block
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd">
<head>
<script type="text/javascript" defer="defer" src="../Scripts/Scroll-Button.js">
</script>
<link href="../Stylesheets/MainStyles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Glossary</h1>
<MadCap:glossaryProxy />
</body>
</html>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd">
<head>
<script type="text/javascript" defer="defer" src="../Scripts/Scroll-Button.js">
</script>
<script type="text/javascript" defer="defer" src="../Scripts/Google-Analytics.js">
</script>
</head>
<body>
<MadCap:breadcrumbsProxy />
<MadCap:menuProxy mc-linked-toc="$topicHeadings" style="mc-toc-depth: -1;mc-context-sensitive: True;mc-include-parent: True;mc-include-siblings: True;mc-include-children: True;" />
<MadCap:bodyProxy />
<MadCap:topicToolbarProxy class="" style="mc-topic-toolbar-items: ;" />
</body>
</html>
Working
<script type="text/javascript" defer="defer" src="Scripts/Scroll-Button.js">
</script>
Non working
<script type="text/javascript" defer="defer" src="../../0_Front Matter/Scripts/Scroll-Button.js">
</script>