From: Steve Sutton Date: Mon, 10 Aug 2015 18:27:02 +0000 (-0400) Subject: Setup different backgrounds. X-Git-Tag: v1.0.0^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=649383d9cc44883c92f0b5c896e0c49606d41c18;p=WP-Themes%2Fmcgulpinpoint.git Setup different backgrounds. For client viewing. --- diff --git a/assets/big-rock-and-bridge.jpg b/assets/big-rock-and-bridge.jpg new file mode 100644 index 0000000..60d176b Binary files /dev/null and b/assets/big-rock-and-bridge.jpg differ diff --git a/assets/shoreline-1.jpg b/assets/shoreline-1.jpg new file mode 100644 index 0000000..50bf04b Binary files /dev/null and b/assets/shoreline-1.jpg differ diff --git a/assets/shoreline-2.jpg b/assets/shoreline-2.jpg new file mode 100644 index 0000000..693f64e Binary files /dev/null and b/assets/shoreline-2.jpg differ diff --git a/assets/trees-and-lighthouse.jpg b/assets/trees-and-lighthouse.jpg new file mode 100644 index 0000000..f8cddb9 Binary files /dev/null and b/assets/trees-and-lighthouse.jpg differ diff --git a/front-page.php b/front-page.php index a49b4fc..67ecf97 100644 --- a/front-page.php +++ b/front-page.php @@ -3,6 +3,11 @@
+ + + + + diff --git a/header.php b/header.php index 8ef08dd..d311fa4 100644 --- a/header.php +++ b/header.php @@ -6,8 +6,11 @@ <?php wp_title(); ?> - + +
@@ -25,4 +28,4 @@
-
\ No newline at end of file +
diff --git a/js/app.js b/js/app.js index 501680c..ba4215a 100644 --- a/js/app.js +++ b/js/app.js @@ -17,4 +17,24 @@ $(document).ready(function () { $(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'); + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 741d565..035a70b 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -8,4 +8,24 @@ $(document).ready(function () { $(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'); + }); }); diff --git a/page.php b/page.php index 969a08f..2533a1d 100644 --- a/page.php +++ b/page.php @@ -10,6 +10,11 @@
+ + + + +