Skip to content

Instantly share code, notes, and snippets.

@chanakaDe
Created Sep 23, 2020
Embed
What would you like to do?
@extends ('layout')
@section('content')
<style>
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
#myBtn {
display: none !important;
}
}
/*
##Device = Laptops, Desktops
##Screen = B/w 1025px to 1280px
*/
@media (min-width: 1025px) and (max-width: 1280px) {
#myBtn {
display: none !important;
}
}
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
#myBtn {
display: none;
position: fixed;
bottom: 20px;
/* right: 30px; */
z-index: 99;
font-size: 18px;
/* border: none; */
outline: none;
/* background-color: red; */
/* color: white; */
/* cursor: pointer; */
padding: 15px;
/* border-radius: 4px; */
width: 100%;
}
}
</style>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<div id="header-wrapper">
<div id="header" class="container">
<div id="logo">
<h1><a href="#">SimpleWork</a></h1>
</div>
<div id="menu">
<ul>
<li class="{{Request::path() === '/' ? 'current_page_item' : '' }}"><a href="#" accesskey="1" title="">Homepage</a></li>
<li><a href="#" accesskey="2" title="">Our Clients</a></li>
<li><a href="/about" accesskey="3" title="">About Us</a></li>
<li><a href="#" accesskey="4" title="">Articles</a></li>
<li><a href="#" accesskey="5" title="">Contact Us</a></li>
</ul>
</div>
</div>
<div id="header-featured">
<div id="banner-wrapper">
<div id="banner" class="container">
<h2>Maecenas luctus lectus</h2>
<p>This is <strong>SimpleWork</strong>, a free, fully standards-compliant CSS template designed by <a href="http://templated.co" rel="nofollow">TEMPLATED</a>. The photos in this template are from <a href="http://fotogrph.com/"> Fotogrph</a>. This free template is released under the <a href="http://templated.co/license">Creative Commons Attribution</a> license, so you're pretty much free to do whatever you want with it (even use it commercially) provided you give us credit for it. Have fun :) </p>
<a href="#" class="button">Etiam posuere</a>
</div>
</div>
</div>
</div>
<div id="wrapper">
<div id="page" class="container">
<div id="content">
<div class="title">
<h2>Welcome to our website</h2>
<span class="byline">Mauris vulputate dolor sit amet nibh</span>
</div>
<p><img src="images/banner.jpg" alt="" class="image image-full" /> </p>
<p>Aliquam libero. Vivamus nisl nibh, iaculis vitae, viverra sit amet, ullamcorper vitae, turpis. Aliquam erat volutpat. Vestibulum dui sem, pulvinar sed, imperdiet nec, iaculis nec, leo. Fusce odio. Etiam arcu dui, faucibus eget, placerat vel, sodales eget, orci. Donec ornare neque ac sem. Mauris aliquet. Aliquam sem leo, vulputate sed, convallis at, ultricies quis, justo. Donec nonummy magna quis risus. Quisque eleifend. Phasellus tempor vehicula justo. Aliquam lacinia metus ut elit. Suspendisse iaculis mauris nec lorem. Donec leo. Vivamus fermentum nibh in augue. Praesent a lacus at urna congue rutrum. Nulla enim eros, porttitor eu, tempus id, varius non, nibh. </p>
<p>Donec condimentum, urna non molestie semper, ligula enim ornare nibh, quis laoreet eros quam eget ante. Aliquam libero. Vivamus nisl nibh, iaculis vitae, viverra sit amet, ullamcorper vitae, turpis. Aliquam erat volutpat. Vestibulum dui sem, pulvinar sed, imperdiet nec, iaculis nec, leo. Fusce odio. Etiam arcu dui, faucibus eget, placerat vel, sodales eget, orci. Donec ornare neque ac sem. Mauris aliquet. Aliquam sem leo, vulputate sed, convallis at, ultricies quis, justo. Donec nonummy magna quis risus. Quisque eleifend. Phasellus tempor vehicula justo.</p>
<p>Donec condimentum, urna non molestie semper, ligula enim ornare nibh, quis laoreet eros quam eget ante. Aliquam libero. Vivamus nisl nibh, iaculis vitae, viverra sit amet, ullamcorper vitae, turpis. Aliquam erat volutpat. Vestibulum dui sem, pulvinar sed, imperdiet nec, iaculis nec, leo. Fusce odio. Etiam arcu dui, faucibus eget, placerat vel, sodales eget, orci. Donec ornare neque ac sem. Mauris aliquet. Aliquam sem leo, vulputate sed, convallis at, ultricies quis, justo. Donec nonummy magna quis risus. Quisque eleifend. Phasellus tempor vehicula justo.</p>
</div>
<div id="sidebar">
<ul class="style1">
<li class="first">
<h3>Amet sed volutpat mauris</h3>
<p><a href="#">In posuere eleifend odio. Quisque semper augue mattis wisi. Pellentesque viverra vulputate enim. Aliquam erat volutpat.</a></p>
</li>
<li>
<h3>Sagittis diam dolor sit amet</h3>
<p><a href="#">In posuere eleifend odio. Quisque semper augue mattis wisi. Pellentesque viverra vulputate enim. Aliquam erat volutpat.</a></p>
</li>
<li>
<h3>Maecenas ac quam risus</h3>
<p><a href="#">In posuere eleifend odio. Quisque semper augue mattis wisi. Pellentesque viverra vulputate enim. Aliquam erat volutpat.</a></p>
</li>
</ul>
<div id="stwo-col">
<div class="sbox1">
<h2>Etiam rhoncus</h2>
<ul class="style2">
<li><a href="#">Semper quis egetmi dolore</a></li>
<li><a href="#">Quam turpis feugiat dolor</a></li>
<li><a href="#">Amet ornare hendrerit lectus</a></li>
<li><a href="#">Quam turpis feugiat dolor</a></li>
</ul>
</div>
<div class="sbox2">
<h2>Integer gravida</h2>
<ul class="style2">
<li><a href="#">Semper quis egetmi dolore</a></li>
<li><a href="#">Quam turpis feugiat dolor</a></li>
<li><a href="#">Consequat lorem phasellus</a></li>
<li><a href="#">Amet turpis feugiat amet</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div>
<button class="btn btn-primary" onclick="topFunction()" id="myBtn">Top</button>
</div>
<div id="copyright" class="container">
<p style="color: red;">&copy; Untitled. All rights reserved. | Photos by <a href="http://fotogrph.com/">Fotogrph</a> | Design by <a href="http://templated.co" rel="nofollow">TEMPLATED</a>.</p>
</div>
<script>
//Get the button
var mybutton = document.getElementById("myBtn");
// 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 > 200 || document.documentElement.scrollTop > 200) {
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;
document.documentElement.scrollTop = 0;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment