Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function clean($string) {
- $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.
- return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
- }
- if (!empty($_GET["state"])):
- $state = $_GET["state"];
- $state = clean($state);
- $theZip = strtolower($state);
- if (($theZip >= 90001) && ($theZip <= 96162) || ($theZip == 'california') || ($theZip == 'placer-county') || ($theZip == 'auburn')) { header('Location: /placercounty'); }
- if (($theZip >= 80001) && ($theZip <= 81658) || ($theZip == 'colorado') || ($theZip == 'denver') || ($theZip == 'golden')) { header('Location: /denver'); }
- if (($theZip >= 32004) && ($theZip <= 34997) || ($theZip == 'florida') || ($theZip == 'osceola-county') || ($theZip == 'osceola') || ($theZip == 'orlando')) { header('Location: /osceolacounty'); }
- if (($theZip == 'river-valley') || ($theZip == 'davenport')) { header('Location: /rivervalley'); }
- if (($theZip >= 50001) && ($theZip <= 52809) || ($theZip == 'iowa')) { header('Location: /searchresult/?state=iowa'); }
- if (($theZip == 52333-0416) || ($theZip == 'eastern-iowa') || ($theZip == 'Solon')) { header('Location: /easterniowa'); }
- if (($theZip == 52101) || ($theZip == 'tri-state-valley') || ($theZip == 'decorah')) { header('Location: /tristatevalley'); }
- if (($theZip >= 01001) && ($theZip <= 02791) || ($theZip == 'massachusetts') || ($theZip == 'essex-county') || ($theZip == 'essex') || ($theZip == 'methuen')) { header('Location: /essexcounty'); }
- if (($theZip >= 20331) && ($theZip <= 20331) || ($theZip == 'maryland') || ($theZip == 'delmarva-peninsula') || ($theZip == 'delmarva') || ($theZip == 'salisbury')) { header('Location: /delmarva'); }
- if (($theZip == 'eastern-michigan') || ($theZip == 'fort-gratiot') || ($theZip == 'gratiot')) { header('Location: /easternmichigan'); }
- if (($theZip >= 48001) && ($theZip <= 49971) || ($theZip == 'michigan')) { header('Location: /searchresult/?state=michigan'); }
- if (($theZip == 'northwest-michigan') || ($theZip == 'traverse-city') || ($theZip == 'traverse')) { header('Location: /nwmichigan'); }
- if (($theZip >= 48001) && ($theZip <= 49971) || ($theZip == 'ottawa-county') || ($theZip == 'ottawa') || ($theZip == 'grand-haven') || ($theZip == 'haven')) { header('Location: /ottawacounty'); }
- if (($theZip == 55707) || ($theZip == 'northland') || ($theZip == 'barnum')) { header('Location: /northland'); }
- if (($theZip == 55448) || ($theZip == 'central-minnesota') || ($theZip == 'coon-rapids') || ($theZip == 'rapids') || ($theZip == 'coon')) { header('Location: /centralminnesota'); }
- if (($theZip >= 55001) && ($theZip <= 56763) || ($theZip == 'minnesota')) { header('Location: /searchresult/?state=minnesota'); }
- if (($theZip >= 27006) && ($theZip <= 28909) || ($theZip == 'north-carolina') || ($theZip == 'carolina') || ($theZip == 'coon-rapids') || ($theZip == 'cutting-edge') || ($theZip == 'charlotte')) { header('Location: /charlotte'); }
- if (($theZip >= 88901) && ($theZip <= 89883) || ($theZip == 'nevada') || ($theZip == 'las-vegas')) { header('Location: /cleanworld'); }
- if (($theZip >= 10001) && ($theZip <= 14975) || ($theZip == 'new-york') || ($theZip == 'port-crane') || ($theZip == 'crane')) { header('Location: /southerntier'); }
- if (($theZip >= 43001) && ($theZip <= 45999) || ($theZip == 'ohio')) { header('Location: /searchresult/?state=ohio'); }
- if (($theZip == 44312) || ($theZip == 'akron')) { header('Location: /northcentralohio'); }
- if (($theZip == 44146) || ($theZip == 'cuyahoga') || ($theZip == 'oakwood')) { header('Location: /cuyahogacounty'); }
- if (($theZip == 44060) || ($theZip == 'lake-county') || ($theZip == 'lake') || ($theZip == 'mentor')) { header('Location: /lakecounty'); }
- if (($theZip == 45802) || ($theZip == 'lima') || ($theZip == 'lima')) { header('Location: /lima'); }
- if (($theZip == L7L4J7) || ($theZip == 'burlington')) { header('Location: /trefethen'); }
- if (($theZip == 97475) || ($theZip == 'oregon') || ($theZip == 'lane-county') || ($theZip == 'lane') || ($theZip == 'springfield')) { header('Location: /lanecounty'); }
- if (($theZip >=15001) && ($theZip <= 19640) || ($theZip == 'pennsylvania')) { header('Location: /searchresult/?state=pennsylvania'); }
- if (($theZip == 19540-9745) || ($theZip == 'mohnton') || ($theZip == 'lane-county') || ($theZip == 'berks') || ($theZip == 'berks-county')) { header('Location: /berkscounty'); }
- if (($theZip == 15220) || ($theZip == 'pittsburgh') || ($theZip == 'allegheny-county') || ($theZip == 'allegheny')) { header('Location: /alleghenycounty'); }
- if (($theZip == 17402) || ($theZip == 'york-county') || ($theZip == 'york')) { header('Location: /york'); }
- if (($theZip == 15857) || ($theZip == 'st-marys')) { header('Location: /saintmary'); }
- if (($theZip == 78130) || ($theZip == 'siouxland') || ($theZip == 'south-dakota') || ($theZip == 'dakota') || ($theZip == 'humboldt')) { header('Location: /siouxland'); }
- if (($theZip >= 73301) && ($theZip <= 73301) || ($theZip == 'texas')) { header('Location: /searchresult/?state=texas'); }
- if (($theZip == 57035) || ($theZip == 'two-rivers') || ($theZip == 'rivers') || ($theZip == 'new-braunfels')) { header('Location: /tworivers'); }
- if (($theZip == 77380) || ($theZip == 'lone-star') || ($theZip == 'lone') || ($theZip == 'star') || ($theZip == 'woodlands')) { header('Location: /woodlands'); }
- if (($theZip >= 22001) && ($theZip <= 24658) || ($theZip == 'virginia')) { header('Location: /searchresult/?state=virginia'); }
- if (($theZip == 24068) || ($theZip == 'valley') || ($theZip == 'christiansburg')) { header('Location: /newrivervalley'); }
- if (($theZip == 23235) || ($theZip == 'central-virginia') || ($theZip == 'richmond')) { header('Location: /centralvirginia'); }
- if (($theZip >=98001 ) && ($theZip <= 99403) || ($theZip == 'washington')) { header('Location: /searchresult/?state=washington'); }
- if (($theZip == 98321) || ($theZip == 'northwest') || ($theZip == 'buckley')) { header('Location: /northwest'); }
- if (($theZip == 98082) || ($theZip == 'mill-creek') || ($theZip == 'mill') || ($theZip == 'creek')) { header('Location: /pugetsound'); }
- if (($theZip >=53001) && ($theZip <= 54990) || ($theZip == 'wisconsin')) { header('Location: /searchresult/?state=wisconsin'); } //Wisconsin
- if (($theZip == 54702) || ($theZip == 'eau-claire') || ($theZip == 'eau') || ($theZip == 'claire')) { header('Location: /eauclaire'); }
- if (($theZip == 54937) || ($theZip == 'fox') || ($theZip == 'valley') || ($theZip == 'fond-du-lac')) { header('Location: /foxvalley'); }
- if (($theZip == 54452) || ($theZip == 'merrill')) { header('Location: /northwisconsin'); }
- if (($theZip == 54426-9409) || ($theZip == 'washing') || ($theZip == 'edgar')) { header('Location: /centralstatewashing'); }
- if (($theZip == 53048) || ($theZip == 'lomira')) { header('Location: /eastwisconsin'); }
- if (($theZip == 26554) || ($theZip == 'fairmont') || ($theZip == 'west-virginia')) { header('Location: /northcentralwv'); }
- endif;
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
- <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
- <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
- <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
- <script src="<?php bloginfo('template_url'); ?>/js/bootstrap.min.js"></script>
- <script src="<?php bloginfo('template_url'); ?>/js/js.js"></script>
- <script src="<?php bloginfo('template_url'); ?>/js/owl.carousel.min.js"></script>
- <link href="<?php bloginfo('template_url'); ?>/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
- <link href="<?php bloginfo('template_url'); ?>/style.css" rel="stylesheet" type="text/css" />
- <link href="<?php bloginfo('template_url'); ?>/css/hover.css" rel="stylesheet" type="text/css" />
- <link href="<?php bloginfo('template_url'); ?>/css/owl.carousel.css" rel="stylesheet" type="text/css" />
- <link rel='stylesheet' media='screen and (min-width: 320px) and (max-width: 768px)' href='<?php bloginfo('template_url'); ?>/css/xs device css.css' />
- <link rel='stylesheet' media='screen and (min-width: 769px) and (max-width: 992px)' href='<?php bloginfo('template_url'); ?>/css/sm device css.css' />
- <link rel='stylesheet' media='screen and (min-width: 993px) and (max-width: 1199px)' href='<?php bloginfo('template_url'); ?>/css/md device css.css' />
- <link rel='stylesheet' media='screen and (min-width: 1200px) and (max-width: 2000px)' href='<?php bloginfo('template_url'); ?>/css/lg device css.css' />
- <title><?php bloginfo('name'); ?>/</title>
- <?php wp_head(); ?>
- </head>
- <!-- HTML5 shim and Respond.js for 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/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <script src="<?php bloginfo('template_url'); ?>/js/respond.js"></script>
- <![endif]-->
- <style>
- #gform_submit_button_3{
- background-color: red;
- width: 100%;
- border: 0px;
- border-radius: 0px;
- color: white;
- font-family: bebas-neue;
- font-size: 30px;
- }
- #field_3_1 > label,#field_3_2 > label,#field_3_3 > label,#field_3_4 > label,#field_3_5 > label{
- display: none;
- }
- input[type="text"]{
- background: rgba(195, 195, 195, 0.01);
- border: 1px solid white;
- color: white;
- width: 100% !important;
- }
- ::-webkit-input-placeholder { /* WebKit browsers */
- color: white;
- }
- :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
- color: white;
- opacity: 1;
- }
- ::-moz-placeholder { /* Mozilla Firefox 19+ */
- color: white;
- opacity: 1;
- }
- :-ms-input-placeholder { /* Internet Explorer 10+ */
- color: white;
- }
- </style>
- <body>
- <!--------------------------------Top gray area start------------------------- -->
- <div class="container-fluid top-gray">
- <div class="container ">
- <div class="row">
- <div class="col-md-4 col-sm-6">
- <p class="abt-ctct-text"><a href="<?php the_field('page_url_1', 'options'); ?>"><?php the_field('page_name_1', 'options'); ?></a> | <a href="<?php the_field('page_url_2', 'options'); ?>"><?php the_field('page_name_2', 'options'); ?></a></p>
- </div>
- <div class="col-md-1"></div>
- <div class="col-md-3 col-sm-3 col-xs-12">
- <p class="contact text-center">800.321.0770</p>
- </div>
- <div class="col-md-4 franchise col-sm-3 col-xs-12">
- <p class="text-center top-txt"><a href="http://sparklewashfranchise.com" class="white"><?php the_field('red_text', 'options'); ?></a></p>
- </div>
- </div>
- </div>
- </div>
- <!--------------------------------Top gray area end--------------------------->
- <!--------------------------------Header area start------------------------- -->
- <div class="clearfix"> </div>
- <div class="container header">
- <div class="row">
- <div class="col-md-4 col-sm-4 col-xs-12">
- <a href="/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" class="img-responsive" alt="logo"/></a>
- </div>
- <div class="col-md-8 col-sm-8 col-xs-12">
- <div class="navbar navbar-inverse navabar-inverse-for-dropdown">
- <!-- button section start -->
- <span class="icon-bar"></span>
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <!-- button section end -->
- <?php
- wp_nav_menu( array(
- 'menu' => 'top',
- 'theme_location' => 'top',
- 'depth' => 2,
- 'container' => 'div',
- 'container_class' => 'collapse navbar-collapse pers',
- 'container_id' => '',
- 'menu_class' => 'nav navbar-nav down-menues pull-right menu',
- 'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
- 'walker' => new wp_bootstrap_navwalker())
- );
- ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--------------------------------Header area end----------------------------->
- <style>
- #home {
- background: url(<?php the_field('fbimage', 'options'); ?>) 50% 0 fixed;
- height: auto;
- margin: 0 auto;
- width: 100%;
- position: relative;
- padding: 20px 0;
- background-position:center;
- -webkit-background-size: cover;
- -moz-background-size: cover;
- -o-background-size: cover;
- background-size: cover;
- width: 100%;
- }
- </style>
- <!--------------------------------parallax area start--------------------------- -->
- <section id="home" class="section" data-stellar-background-ratio="0.5">
- <div class="container">
- <div class="row">
- <div class="col-md-7 big-word">
- <h1><?php the_field('form_text','options'); ?> </h1>
- </div>
- <div class="col-md-5 formarea">
- <div class="form-group">
- <?php gravity_form( 3, false, false, false, '', false ); ?>
- </div>
- </div>
- </div>
- </div>
- </section>
- <!--------------------------------parallax area end----------------------------->
- <!--------------------------------local area start--------------------------- -->
- <div class="container-fluid local">
- <div class="container">
- <div class="row ">
- <div class="col-md-12">
- <h2 class="text-center"><?php the_field('service_title','options'); ?></h2>
- <?php the_field('service_text','options'); ?>
- </div>
- <div class="col-md-2"></div>
- </div>
- </div>
- </div>
- <!--------------------------------local area end----------------------------->
- <!--------------------------------search area start--------------------------- -->
- <div class="container-fluid red-bg">
- <div class="container">
- <div class="row">
- <div class="col-md-12 col-sm-12">
- <h3 class="text-center"><?php the_field('search_text','options'); ?></h3>
- </div>
- <div class="col-md-12 dark-red col-sm-12">
- <div class="col-md-10 left-spacing col-sm-12">
- <form method="GET" action="/">
- <div class="form-group">
- <input type="text" class="search-input" name="state" id="exampleInputEmail1" placeholder="Enter state, or zip code">
- </div>
- </div>
- <div class="col-md-2 left-spacing right-spacing col-sm-12">
- <style>input[type="submit"]{ font-family: bebas-neue; }</style>
- <a href="http://sparklewash.com/location/"><input type="submit" class="btn btn-primary col-md-12 search col-sm-12 col-xs-12" value="SEARCH"></a>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- <!--------------------------------search area end----------------------------->
- <!--------------------------------services area start--------------------------- -->
- <div class="container-fluid services">
- <div class="row">
- <div class="col-md-12 col-sm-12">
- <h2 class="text-center">SERVICES WE OFFER!</h2>
- </div>
- <div class="col-md-12 col-sm-12"><!--slider start-->
- <div class="owl-carousel">
- <?php if( have_rows('offer', 'options') ):
- while ( have_rows('offer', 'options') ) : the_row(); ?>
- <div class="owl-item">
- <img src="<?php the_sub_field('offer_image'); ?>" class="img-responsive center-block" />
- <div class="slider-txt text-center"><?php the_sub_field('offer_text'); ?></div>
- <div class="gray-area">
- <h3 class="text-center red-txt"><?php the_sub_field('offer_title'); ?></h3>
- </div>
- <a href="<?php the_sub_field('offer_url'); ?>" ><button type="button" class="btn btn-primary center-block red-btn slider-btn">LEARN MORE</button></a>
- </div>
- <?php endwhile; endif; ?>
- </div>
- <!--owl end-->
- </div><!--slider end-->
- </div>
- </div>
- <!--------------------------------services area end----------------------------->
- <!--------------------------------services 2nd area start--------------------------- -->
- <div class="container-fluid">
- <div class="row">
- <div class="col-md-12 col-lg-12 col-sm-12 col-xs-12 ">
- <div class="owl-carousel2">
- <?php if( have_rows('corusel', 'options') ):
- while ( have_rows('corusel', 'options') ) : the_row(); ?>
- <div class="owl-item">
- <div class="col-md-4 blue-bg-area col-lg-4 col-sm-4 col-xs-12">
- <div class="service-heading"><?php the_sub_field('blueblock_title'); ?></div>
- <div class="service-sub"><?php the_sub_field('blueblock_text'); ?></div>
- </div>
- <div class="col-md-4 col-lg-4 col-sm-4 col-xs-12 spacing">
- <div class="col-md-12 left-spacing right-spacing col-sm-12 col-xs-12 hidden-xs">
- <img src="<?php the_sub_field('image_1'); ?>" class="img-responsive" />
- </div>
- <div class="col-md-12 left-spacing right-spacing red-service-area col-lg-12 col-sm-12 col-xs-12">
- <div class="service-heading text-center"><?php the_sub_field('block_1_title'); ?></div>
- <div class="service-sub text-center"><?php the_sub_field('block_1_text'); ?> </div>
- </div>
- </div>
- <div class="col-md-4 left-spacing col-lg-4 col-sm-4 col-xs-12">
- <div class="col-md-12 left-spacing right-spacing red-service-area2">
- <div class="service-heading text-center"><?php the_sub_field('block_2_title'); ?></div>
- <div class="service-sub text-center"><?php the_sub_field('block_2_text'); ?> </div>
- </div>
- <div class="col-md-12 left-spacing right-spacing cleang3 col-lg-12 col-sm-12 hidden-xs">
- <img src="<?php the_sub_field('image_2'); ?> " class="img-responsive" />
- </div>
- </div>
- </div>
- <?php endwhile; endif; ?>
- </div>
- <!--owl end-->
- </div>
- </div>
- </div>
- <!--------------------------------services 2nd area end----------------------------->
- <!--------------------------------Testiomonial area start--------------------------- -->
- <div class="container-fluid testimonial">
- <div class="container">
- <div class="row">
- <div class="col-md-4 ">
- <p class="customer-heading text-center"><b><?php the_field('title','options'); ?></b></p>
- </div>
- <div class="col-md-4">
- <div class="col-md-12 testimonials">
- <ul class="stars">
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- </ul>
- <div class="testi-sub"><?php the_field('text_1','options'); ?></div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="col-md-12 testimonials">
- <ul class="stars">
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- </ul>
- <div class="testi-sub"><?php the_field('text_2','options'); ?></div>
- </div>
- </div>
- </div>
- <div class="row top-spacing">
- <div class="col-md-7">
- <div class="col-md-12 testimonials">
- <ul class="stars">
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- </ul>
- <div class="testi-sub"><?php the_field('text_3','options'); ?></div>
- </div>
- </div>
- <div class="col-md-5">
- <div class="col-md-12 testimonials">
- <ul class="stars">
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
- </ul>
- <div class="testi-sub"><?php the_field('text_4','options'); ?></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--------------------------------Testiomonial area end----------------------------->
- <!--------------------------------footer area start--------------------------- -->
- <div class="container-fluid footer-area">
- <div class="container">
- <div class="row">
- <div class="col-md-6">
- <p class="white-txt copy-right">© 2015 Sparkle Wash International</p>
- </div>
- <div class="col-md-6">
- <ul class="social pull-right">
- <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/fb.png" class="img-responsive" /></a></li>
- <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/twiter.png" class="img-responsive" /></a></li>
- <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/gplus.png" class="img-responsive" /></a></li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <!--------------------------------footer area end--------------------------- -->
- <?php wp_footer(); ?>
- </body>
- </html>
- <script>
- $(document).ready(function(){
- $('.owl-carousel').owlCarousel({
- margin: 0,
- loop: true,
- items: 1,
- stagePadding: 250,
- nav: true,
- responsiveClass:true,
- pagination: false,
- navText : false,
- responsive:{
- 0:{
- items:1,
- nav:true,
- navText : false,
- pagination: false,
- loop:true,
- stagePadding: 0,
- },
- 1024:{
- items:1,
- nav:true,
- navText : false,
- pagination: false,
- loop:true,
- stagePadding: 250,
- },
- }
- })
- });
- </script>
- <script>
- $(document).ready(function(){
- $('.owl-carousel2').owlCarousel({
- margin: 0,
- loop: true,
- items: 1,
- stagePadding: 250,
- nav:true,
- navText : false,
- responsiveClass:true,
- responsive:{
- 0:{
- items:1,
- nav:true,
- navText : false,
- loop:true,
- stagePadding: 0,
- },
- 1024:{
- items:1,
- nav:true,
- navText : false,
- loop:true,
- stagePadding: 100,
- },
- }
- })
- });
- </script>
- <script>
- var owl = $('.owl-carousel3');
- owl.owlCarousel({
- items:1,
- loop:true,
- margin:10,
- autoplay: false,
- autoplayTimeout:1000,
- autoplayHoverPause:true
- });
- $('.play').on('click',function(){
- owl.trigger('autoplay.play.owl',[1000])
- })
- $('.stop').on('click',function(){
- owl.trigger('autoplay.stop.owl')
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement