From: Steve Sutton Date: Tue, 18 Nov 2014 21:48:06 +0000 (-0500) Subject: Add slideshow X-Git-Tag: v1.0.0~74 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7a6667c17a06ce6ed40adf666431189d2fff21ac;p=WP-Themes%2FPrestonFeather.git Add slideshow --- diff --git a/css/styles.css b/css/styles.css index 3e78340..cff3980 100644 --- a/css/styles.css +++ b/css/styles.css @@ -548,3 +548,25 @@ img.alignleft, img.alignright, img.centered, div.wp-caption img { display: inline; } /* end google map*/ +/* Slideshow */ +.nivo-caption { + display: block; + float: right; + width: 450px !important; + height: 80px; + position: absolute; + bottom: 0; + right: 0; + left: 580px !important; + font-family: Times , sans-serif !important; +} +.nivo-caption h2 { + color: white; + font-family: Times , sans-serif; + font-weight: bold; +} +.metaslider { + margin-top: 50px; + border: 4px solid white; +} +/* End Slideshow */ \ No newline at end of file diff --git a/front-page.php b/front-page.php index c387fd7..1758fea 100644 --- a/front-page.php +++ b/front-page.php @@ -2,11 +2,14 @@
- + +
diff --git a/js/google-map.js b/js/google-map.js index 8a3141a..5a98404 100644 --- a/js/google-map.js +++ b/js/google-map.js @@ -19,9 +19,7 @@ var Map = { Map._map = new google.maps.Map(canvas, myOptions); Map._latLngBounds = new google.maps.LatLngBounds(); Map._infoWindow = new google.maps.InfoWindow; - var scripts= document.getElementsByTagName('script'); - var path= scripts[scripts.length-1].src.split('?')[0]; // remove any ?query - var mydir= path.split('/').slice(0, -1).join('/')+'/'; // remove last filename part of path + $.get(mydir + "map.xml", Map._loadData, 'xml'); }, @@ -107,5 +105,7 @@ var Map = { }); } }; - +var scripts= document.getElementsByTagName('script'); +var path= scripts[scripts.length-1].src.split('?')[0]; // remove any ?query +var mydir= path.split('/').slice(0, -1).join('/')+'/'; // remove last filename part of path $(document).ready(Map.init); \ No newline at end of file