For client viewing.
<div id="content-wrapper">
<div class="row">
<div id="main-content" class="small-12 small-centered medium-11 columns">
+ <button id="switchOne">Background 1</button>
+ <button id="switchTwo">Background 2</button>
+ <button id="switchThree">Background 3</button>
+ <button id="switchFour">Background 4</button>
+ <button id="switchFive">Background 5</button>
<?php if(have_posts()) : while(have_posts()): the_post();?>
<?php the_content();?>
<?php endwhile; else:?>
<title><?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css">
<link href='http://fonts.googleapis.com/css?family=Cinzel:400,700' rel='stylesheet' type='text/css'>
- <link href='http://fonts.googleapis.com/css?family=Pinyon+Script' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=Pinyon+Script' rel='stylesheet' type='text/css'>
<?php wp_head(); ?>
+ <script>
+ var themeUrl = '<?php echo get_bloginfo('template_url');?>';
+ </script>
</head>
<body>
<div class="off-canvas-wrap" data-offcanvas>
<?php get_template_part('parts/slide-show');?>
</div>
</header>
- </div><!--End of shadow-->
\ No newline at end of file
+ </div><!--End of shadow-->
$(this).toggleClass('open');
$(this).siblings('ul').toggleClass('open');
});
+ $('#switchOne').click(function(e){
+ e.preventDefault();
+ $('body').css('background-image', 'url("' + themeUrl + '/assets/shoreline-1.jpg")');
+ });
+ $('#switchTwo').click(function(e){
+ e.preventDefault();
+ $('body').css('background-image', 'url("' + themeUrl + '/assets/shoreline-2.jpg")');
+ });
+ $('#switchThree').click(function(e){
+ e.preventDefault();
+ $('body').css('background-image', 'url("' + themeUrl + '/assets/big-rock-and-bridge.jpg")');
+ });
+ $('#switchFour').click(function(e){
+ e.preventDefault();
+ $('body').css('background-image', 'url("' + themeUrl + '/assets/tree-bkgrd-image.jpg")');
+ });
+ $('#switchFive').click(function(e){
+ e.preventDefault();
+ $('body').css('background', 'rgba(0, 0, 0, 0) url("' + themeUrl + '/assets/trees-and-lighthouse.jpg") no-repeat fixed 0 0 / cover');
+ });
});
$(this).toggleClass('open');
$(this).siblings('ul').toggleClass('open');
});
+ $('#switchOne').click(function(e){
+ e.preventDefault();
+ $('body').css('background-image', 'url("' + themeUrl + '/assets/shoreline-1.jpg")');
+ });
+ $('#switchTwo').click(function(e){
+ e.preventDefault();
+ $('body').css('background-image', 'url("' + themeUrl + '/assets/shoreline-2.jpg")');
+ });
+ $('#switchThree').click(function(e){
+ e.preventDefault();
+ $('body').css('background-image', 'url("' + themeUrl + '/assets/big-rock-and-bridge.jpg")');
+ });
+ $('#switchFour').click(function(e){
+ e.preventDefault();
+ $('body').css('background-image', 'url("' + themeUrl + '/assets/tree-bkgrd-image.jpg")');
+ });
+ $('#switchFive').click(function(e){
+ e.preventDefault();
+ $('body').css('background', 'rgba(0, 0, 0, 0) url("' + themeUrl + '/assets/trees-and-lighthouse.jpg") no-repeat fixed 0 0 / cover');
+ });
});
</div>
<div class="row">
<div id="main-content" class="small-12 small-centered medium-11 columns">
+ <button id="switchOne">Background 1</button>
+ <button id="switchTwo">Background 2</button>
+ <button id="switchThree">Background 3</button>
+ <button id="switchFour">Background 4</button>
+ <button id="switchFive">Background 5</button>
<?php if(have_posts()) : while(have_posts()): the_post();?>
<?php the_content();?>
<?php endwhile; else:?>