add back to top button on all pages
This commit is contained in:
parent
169d1977b4
commit
b60e1044e1
@ -91,6 +91,8 @@
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<div class="container is-justify-content-center padding">
|
||||
<img src="../assets/pics/classic/ceiling.jpg" alt="balloon ceiling fill" >
|
||||
</div>
|
||||
|
||||
@ -90,6 +90,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
|
||||
|
||||
<iframe style="border:none;width:100%; height: 600px;" id="contact-us-q7uycv" src="https://forms.beachpartyballoons.com/forms/contact-us-q7uycv"></iframe><script type="text/javascript" onload="initEmbed('contact-us-q7uycv')" src="https://forms.beachpartyballoons.com/widgets/iframe.min.js"></script>
|
||||
|
||||
@ -95,6 +95,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<section class="section theme-light">
|
||||
<div class="container">
|
||||
|
||||
@ -95,6 +95,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="../index.html">Gallery</a></li>
|
||||
|
||||
@ -110,6 +110,8 @@ cat > "$OUTPUT_FILE" <<EOL
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="../index.html">Gallery</a></li>
|
||||
|
||||
@ -76,6 +76,13 @@
|
||||
<a class="navbar-item" href="../../index.html">
|
||||
<img style="background-color: white;" src="../../assets/logo/BeachPartyBalloons-logo.png" alt="Beach Party Balloons logo">
|
||||
</a>
|
||||
|
||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
</a>
|
||||
</div>
|
||||
<div id="navbarBasicExample" class="navbar-menu has-text-right">
|
||||
<div class="navbar-end">
|
||||
@ -88,6 +95,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="../index.html">Gallery</a></li>
|
||||
|
||||
@ -110,6 +110,8 @@ cat > "$OUTPUT_FILE" <<EOL
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="../index.html">Gallery</a></li>
|
||||
|
||||
@ -69,6 +69,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<div class="columns is-desktop">
|
||||
<div class="column">
|
||||
|
||||
@ -76,6 +76,13 @@
|
||||
<a class="navbar-item" href="../../index.html">
|
||||
<img style="background-color: white;" src="../../assets/logo/BeachPartyBalloons-logo.png" alt="Beach Party Balloons logo">
|
||||
</a>
|
||||
|
||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
</a>
|
||||
</div>
|
||||
<div id="navbarBasicExample" class="navbar-menu has-text-right">
|
||||
<div class="navbar-end">
|
||||
@ -88,12 +95,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="../index.html">Gallery</a></li>
|
||||
<li class="is-active"><a href="#" aria-current="page">Organic</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title has-text-centered has-text-dark">Organic Balloon Décor</h1>
|
||||
|
||||
@ -110,12 +110,15 @@ cat > "$OUTPUT_FILE" <<EOL
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="../index.html">Gallery</a></li>
|
||||
<li class="is-active"><a href="#" aria-current="page">Organic</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title has-text-centered has-text-dark">Organic Balloon Décor</h1>
|
||||
|
||||
@ -76,6 +76,13 @@
|
||||
<a class="navbar-item" href="../../index.html">
|
||||
<img style="background-color: white;" src="../../assets/logo/BeachPartyBalloons-logo.png" alt="Beach Party Balloons logo">
|
||||
</a>
|
||||
|
||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
</a>
|
||||
</div>
|
||||
<div id="navbarBasicExample" class="navbar-menu has-text-right">
|
||||
<div class="navbar-end">
|
||||
@ -88,6 +95,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="../index.html">Gallery</a></li>
|
||||
@ -96,7 +105,7 @@
|
||||
</nav>
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title has-text-centered has-text-dark">Sculptures and Themes<</h1>
|
||||
<h1 class="title has-text-centered has-text-dark">Sculptures and Themes</h1>
|
||||
<div class="gallery">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -110,6 +110,8 @@ cat > "$OUTPUT_FILE" <<EOL
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="../index.html">Gallery</a></li>
|
||||
@ -118,7 +120,7 @@ cat > "$OUTPUT_FILE" <<EOL
|
||||
</nav>
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title has-text-centered has-text-dark">Sculptures and Themes<</h1>
|
||||
<h1 class="title has-text-centered has-text-dark">Sculptures and Themes</h1>
|
||||
<div class="gallery">
|
||||
EOL
|
||||
|
||||
|
||||
@ -66,6 +66,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
<!-- <div>
|
||||
<img class="image is-16by9" id="heroImg"
|
||||
src="assets/pics/classic/hero.jpg"
|
||||
|
||||
19
script.js
19
script.js
@ -154,3 +154,22 @@ document.querySelector(".lightbox .close").addEventListener("click", function(ev
|
||||
});
|
||||
|
||||
|
||||
// Get the button:
|
||||
let mybutton = document.getElementById("top");
|
||||
|
||||
// When the user scrolls down 20px from the top of the document, show the button
|
||||
window.onscroll = function() {scrollFunction()};
|
||||
|
||||
function scrollFunction() {
|
||||
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
|
||||
mybutton.style.display = "block";
|
||||
} else {
|
||||
mybutton.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
// When the user clicks on the button, scroll to the top of the document
|
||||
function topFunction() {
|
||||
document.body.scrollTop = 0; // For Safari
|
||||
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
|
||||
}
|
||||
20
style.css
20
style.css
@ -99,4 +99,24 @@ form{
|
||||
font-family: "Autour One", serif; /* font-family: "Playwrite AU SA", serif; */
|
||||
color:#363636;
|
||||
|
||||
}
|
||||
|
||||
#top {
|
||||
display: none; /* Hidden by default */
|
||||
position: fixed; /* Fixed/sticky position */
|
||||
bottom: 20px; /* Place the button at the bottom of the page */
|
||||
right: 30px; /* Place the button 30px from the right */
|
||||
z-index: 99; /* Make sure it does not overlap */
|
||||
border: none; /* Remove borders */
|
||||
outline: none; /* Remove outline */
|
||||
background-color: #d1fff8; /* Set a background color */
|
||||
cursor: pointer; /* Add a mouse pointer on hover */
|
||||
padding: 15px; /* Some padding */
|
||||
border-radius: 10px; /* Rounded corners */
|
||||
font-size: 18px; /* Increase font size */
|
||||
border:solid 1px #363636;
|
||||
}
|
||||
|
||||
#top:hover {
|
||||
background-color: #aedad3; /* Add a dark-grey background on hover */
|
||||
}
|
||||
@ -96,6 +96,7 @@ h1{
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<button onclick="topFunction()" class="has-text-dark" id="top" title="Go to top">Top</button>
|
||||
|
||||
<!-- Terms & Conditions Section -->
|
||||
<section class="terms-and-conditions">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user