Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pl">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Mały sklep internetowy</title>
- <!-- Bootstrap -->
- <link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
- <link href="css/fontello.css" rel="stylesheet" type="text/css" />
- <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
- <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- <script src="dist/jquery.magnific-popup.js"></script>
- <link rel="stylesheet" href="dist/magnific-popup.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
- <style>
- .simpleCart_shelfItem {
- padding: 20px;
- transition: all .4s;
- -webkit-transition: all .4s;
- }
- .simpleCart_shelfItem:hover {
- transform: scale(1.05);
- -ms-transform: scale(1.05);
- -webkit-transform: scale(1.05);
- box-shadow: 0 0 20px #888;
- background-color: #fff;
- }
- .simpleCart_items img {
- max-width: 64px;
- max-height: 64px;
- }
- .item-quantity, .item-decrement, .item-increment {
- text-align: center;
- }
- .mix {
- display: none;
- }
- .res {
- width: 55%;
- heigh: 55%;
- }
- img.res {
- transition: filter .5s;
- position:relative;
- }
- a.btn-gallery:hover > img.res {
- filter: brightness(50%);
- }
- a.btn-gallery > i {
- position: absolute;
- display: none;
- left: 43%;
- top: 50%;
- z-index: 100;
- margin: auto;
- text-decoration: none;
- color: white;
- font-size: 35px;
- font-weight: bold;
- letter-spacing: 1px;
- }
- a.btn-gallery:hover > i
- {
- display: block;
- }
- .hidden {
- overflow: hidden;
- display: none;
- visibility: hidden;
- }
- </style>
- <script>
- $(document).ready(function() {
- $('a.btn-gallery').on('click', function(event) {
- event.preventDefault();
- var gallery = $(this).attr('href');
- $(gallery).magnificPopup({
- delegate: 'a',
- type:'image',
- gallery: {
- enabled: true
- }
- }).magnificPopup('open');
- });
- });
- </script>
- <script>
- $(document).ready(function(){
- $("#myInput").on("keyup", function() {
- var value = $(this).val().toLowerCase();
- $("#myTable span").filter(function() {
- $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
- });
- });
- });
- </script>
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins)-->
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
- <!-- Include all compiled plugins (below), or include individual files as needed -->
- <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
- <script src="js/simpleCart.js"></script>
- <script src="http://cdn.jsdelivr.net/jquery.mixitup/latest/jquery.mixitup.min.js?v=2.1.2"></script>
- <script>
- simpleCart({
- // array representing the format and columns of the cart,
- // see the cart columns documentation
- cartColumns: [
- { attr: "name", label: "Produkt"},
- { view: "currency", attr: "price", label: "Cena"},
- { view: "decrement", label: false, text: '<span class="glyphicon glyphicon-minus"></span>'},
- { attr: "quantity", label: "Ilość"},
- { view: "increment", label: false, text: '<span class="glyphicon glyphicon-plus"></span>'},
- { view: "currency", attr: "total", label: "Razem" },
- { view: "remove", text: '<span class="glyphicon glyphicon-remove"></span>', label: false}
- ],
- // "div" or "table" - builds the cart as a
- // table or collection of divs
- cartStyle: "table",
- // how simpleCart should checkout, see the
- // checkout reference for more info
- checkout: {
- type: "PayPal" ,
- email: "poczta@adrianbienias.pl"
- },
- // set the currency, see the currency
- // reference for more info
- currency: "PLN",
- // collection of arbitrary data you may want to store
- // with the cart, such as customer info
- data: {},
- // set the cart langauge
- // (may be used for checkout)
- language: "polish-pl",
- // array of item fields that will not be
- // sent to checkout
- excludeFromCheckout: [],
- // custom function to add shipping cost
- shippingCustom: null,
- // flat rate shipping option
- shippingFlatRate: 15,
- // added shipping based on this value
- // multiplied by the cart quantity
- shippingQuantityRate: 0,
- // added shipping based on this value
- // multiplied by the cart subtotal
- shippingTotalRate: 0,
- // tax rate applied to cart subtotal
- taxRate: 0,
- // true if tax should be applied to shipping
- taxShipping: false,
- // event callbacks
- beforeAdd : null,
- afterAdd : null,
- load : null,
- beforeSave : null,
- afterSave : null,
- update : null,
- ready : null,
- checkoutSuccess : null,
- checkoutFail : null,
- beforeCheckout : null,
- beforeRemove : null
- });
- // basic callback example
- simpleCart.bind( "afterAdd" , function(){
- $( ".koszyk" ).fadeOut(500).fadeIn(500);
- });
- simpleCart.bind( 'update' , function(){
- if (simpleCart.quantity() == 0)
- {
- $( ".hideIfEmpty" ).hide();
- $( ".showIfEmpty" ).show();
- }
- else
- {
- $( ".hideIfEmpty" ).show();
- $( ".showIfEmpty" ).hide();
- }
- });
- $(function(){
- $('#Container').mixItUp();
- });
- </script>
- </head>
- <body>
- <div class="container">
- <div class="row">
- <div class="col-sm-12">
- <nav class="navbar navbar-default" role="navigation">
- <div class="container-fluid">
- <div class="navbar-header">
- <a class="navbar-brand" href="#">Souvernir One</a>
- </div>
- <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
- <ul class="nav navbar-nav navbar-right">
- <li class="koszyk"><a href="#" data-toggle="modal" data-target="#myModal">Koszyk (<span class="simpleCart_quantity"></span>)</a></li>
- </ul>
- </div>
- <!-- /.navbar-collapse -->
- </div>
- <!-- /.container-fluid -->
- </nav>
- <label>Kategoria:</label>
- <div class="controls btn-group">
- <div style="float:left;">
- <button class="btn btn-default filter" type="button" data-filter=".all">Wszystko </button>
- </div>
- <div class="dropdown" style="float:left;margin-left: 7px;">
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" data-hover="dropdown">Komunia <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><button class="filter btn btn-link" data-filter=".Komunia_ch">Chłopiec</button></li>
- <li><button class="filter btn btn-link" data-filter=".Komunia_dz">Dziewczynka</button></li>
- <li><button class="filter btn btn-link" data-filter=".Aniol">Anioł</button></li>
- </ul>
- </div>
- <div class="dropdown" style="float:left;">
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" data-hover="dropdown">Chrzest <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><button class="filter btn btn-link" data-filter=".Dziecko">Dzieciątko</button></li>
- <li><button class="filter btn btn-link" data-filter=".Aniol_chrzest">Anioł</button></li>
- </ul>
- </div>
- <div class="dropdown" style="float:left;">
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" data-hover="dropdown">Dewocjonalia <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><button class="filter btn btn-link" data-filter=".Swieci">Święci</button></li>
- <li><button class="filter btn btn-link" data-filter=".Maryja">Matka Boska</button></li>
- </ul>
- </div>
- </div>
- <p> </p>
- </div>
- <!-- /col-sm-12 -->
- </div>
- <!-- /row -->
- </div>
- <!-- /container -->
- <!-- Modal -->
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 class="modal-title" id="myModalLabel">Koszyk <span class="showIfEmpty">jest pusty</span></h4>
- </div>
- <div class="hideIfEmpty">
- <div class="modal-body">
- <div class="simpleCart_items"></div>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Łącznie</th>
- <th>Koszty przesyłki</th>
- <th>Do zapłaty</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <div class="simpleCart_total"></div>
- </td>
- <td>
- <div class="simpleCart_shipping"></div>
- </td>
- <td>
- <div class="simpleCart_grandTotal"></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- /modal-body -->
- <div class="modal-footer">
- <!-- button to empty the cart -->
- <a href="javascript:;" class="simpleCart_empty btn btn-default">Opróżnij koszyk</a>
- <!-- create a checkout button -->
- <a href="javascript:;" class="simpleCart_checkout btn btn-primary">Złóż zamówienie</a>
- </div>
- <!-- /modal-footer -->
- </div>
- <!-- /hideIfEmpty -->
- </div>
- <!-- /modal-content -->
- </div>
- <!-- /modal-dialog -->
- </div>
- <!-- /modal -->
- <div id="Container" class="container">
- <input class="form-control" id="myInput" type="text" placeholder="Search..">
- <div class="row" id="myTable">
- <span>
- <div class="col-md-4 text-center mix Aniol_chrzest all" data-price="29.95">
- <div class="simpleCart_shelfItem">
- <div class="row">
- <div class="col-xs-12" >
- <h2 class="item_name">Anioł - a101s1</h2>
- <a href="#gallery-1" onMouseOver="this.style.cursor='pointer'" class="btn-gallery">
- <i class="icon-search"></i>
- <img class="res" src="img/a101s1.jpg" alt="">
- </a>
- </div>
- </div>
- <!-- /row -->
- <div class="row">
- <div class="col-xs-12">
- <h2 class="item_price">29.95 zł</h2>
- </div>
- </div>
- <!-- /row -->
- <div class="row">
- <div class="col-xs-4">
- </div>
- <div class="col-xs-3">
- <input type="text" value="1" class="item_Quantity form-control" placeholder="ilość">
- </div>
- <div class="col-xs-5">
- <input type="button" class="item_add btn btn-primary" value="Do koszyka">
- </div>
- </div>
- <!-- /row -->
- </div>
- <!-- /simpleCart_shelfItem -->
- </div>
- <!-- /col-md-4 -->
- </span>
- <span>
- <div class="col-md-4 text-center mix Aniol_chrzest all" data-price="29.95">
- <div class="simpleCart_shelfItem">
- <div class="row">
- <div class="col-xs-12">
- <h2 class="item_name" >Anioł - a101o1</h2>
- <a onMouseOver="this.style.cursor='pointer'" class="btn-gallery">
- <i class="icon-search"></i>
- <img class="res" src="img/a101o1.jpg" alt="">
- </a>
- </div>
- </div>
- <!-- /row -->
- <div class="row">
- <div class="col-xs-12" >
- <h2 class="item_price">29.95 zł</h2>
- </div>
- </div>
- <!-- /row -->
- <div class="row">
- <div class="col-xs-4">
- </div>
- <div class="col-xs-3">
- <input type="text" value="1" class="item_Quantity form-control" placeholder="ilość">
- </div>
- <div class="col-xs-5">
- <input type="button" class="item_add btn btn-primary" value="Do koszyka">
- </div>
- </div>
- <!-- /row -->
- </div>
- <!-- /simpleCart_shelfItem -->
- </div>
- <!-- /col-md-4 -->
- </span>
- <span>
- <div class="col-md-4 text-center mix Komunia_dz all" data-price="29.95">
- <div class="simpleCart_shelfItem">
- <div class="row">
- <div class="col-xs-12">
- <h2 class="item_name" >Komunia - k103g1</h2>
- <a onMouseOver="this.style.cursor='pointer'" class="btn-gallery">
- <i class="icon-search"></i>
- <img class="res"src="img/k103g1.jpg" alt="">
- </a>
- </div>
- </div>
- <!-- /row -->
- <div class="row">
- <div class="col-xs-12">
- <h2 class="item_price">29.95 zł</h2>
- </div>
- </div>
- <!-- /row -->
- <div class="row">
- <div class="col-xs-4">
- </div>
- <div class="col-xs-3">
- <input type="text" value="1" class="item_Quantity form-control" placeholder="ilość">
- </div>
- <div class="col-xs-5">
- <input type="button" class="item_add btn btn-primary" value="Do koszyka">
- </div>
- </div>
- <!-- /row -->
- </div>
- <!-- /simpleCart_shelfItem -->
- </div>
- <!-- /col-md-4 -->
- </span>
- </div>
- <!-- /row -->
- </div>
- <!-- /container -->
- <div id="gallery-1" class="hidden">
- <a href="https://images.unsplash.com/photo-1462774603919-1d8087e62cad?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=0ebd884b4d6ac379f42146a2b26fbf2e">Image 1</a>
- <a href="https://images.unsplash.com/photo-1460499593944-39e14f96a8c6?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=d8bc3d45d5eeaaf4f576665707f4fddb">Image 2</a>
- <a href="https://images.unsplash.com/photo-1434434319959-1f886517e1fe?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=218dfdd2c0735dbd6ca0f718064a748b">Image 3</a>
- <a href="https://images.unsplash.com/photo-1431576901776-e539bd916ba2?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=a0941b28175909ca62f096eb533b0c97">Image 4</a>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement