{"id":1876,"date":"2019-08-19T15:08:09","date_gmt":"2019-08-19T15:08:09","guid":{"rendered":"https:\/\/www.whereisworf.com\/?p=1876"},"modified":"2019-10-22T16:56:50","modified_gmt":"2019-10-22T16:56:50","slug":"happy-mount-park","status":"publish","type":"post","link":"https:\/\/www.whereisworf.com\/?p=1876","title":{"rendered":"Happy Mount Park"},"content":{"rendered":"\n<script>\nvar quoteText = \"No one seems to know where the name originated from. The nice people who look after the park think it's simply based on the road name that the park is located on - Happy Mount Dr.\";\nvar quoteCitation = \"facebook.com\/happymountpark\";\nvar mapLocation = \"MORECAMBE, LANCASHIRE, GREAT BRITAIN\";\nvar myLat = 54.080870;\nvar myLng = -2.8359626;\nvar showSV = false;\nvar triviaText = \"This is a lovely park and well worth a visit especially if you have kids. It\u2019s close to the sea, has a large nearby car park, and if getting wet is your thing apparently has one of the best splash parks for miles around.\";\nvar triviaArray = [\"Parking was available at nearby Happy Mount Car Park\",\"Includes a natural adventure playground and one of the best splash parks for miles around!\"];\nvar triviaCitation = \"PAUL\";\nvar extraMedia1Url = \"https:\/\/www.whereisworf.com\/wp-content\/uploads\/2019\/08\/20190819_150825-508x381.jpg\";\nvar nearbyText = \"Happy Mount Dr\";\n<\/script>\n\n\n\n<!--http:\/\/fancyapps.com\/fancybox\/3\/-->\n<link rel=\"stylesheet\" href=\"https:\/\/www.whereisworf.com\/wp-content\/scripts\/jquery.fancybox.min.css\">\n<script src=\"https:\/\/www.whereisworf.com\/wp-content\/scripts\/jquery.fancybox.min.js\">\n<\/script>\n\n\n\n<!-- START OF MAIN CONTENT DIV -->\n<div id=\"contentDIV\">\n\n<!-- TOP \"BACK\" LINK -->\n<a target=\"_blank\" href=\"#\" onclick=\"javascript:openH();return false;\" style=\"text-align:center;display:block;\" rel=\"noopener noreferrer\">Back<\/a>\n\n<!-- START OF INFO DIV -->\n<div id=\"quoteDIV\">\n<h2>TRIVIA:<\/h2>\n<blockquote class=\"wp-block-quote\"><p><em id=\"em1\">quoteText<\/em><\/p><img class=\"quoteimage\" id=\"quoteIMG\"><cite id=\"cite1\">quoteCitation<\/cite><\/blockquote>\n<\/div>\n\n<!-- SCRIPT TO SHOW\/HIDE\/POPULATE INFO DIV -->\n<script>\nvar quoteELE = document.getElementById(\"quoteDIV\");\nif (quoteText === \"\" || quoteCitation === \"\")\n{quoteELE.style.display = \"none\";}\ndocument.getElementById(\"em1\").innerHTML = quoteText;\ndocument.getElementById(\"cite1\").innerHTML = quoteCitation;\n\nvar quoteImageELE = document.getElementById(\"quoteIMG\");\nif (typeof quoteImage != 'undefined' && quoteImage != \"\")\n{quoteImageELE.src = quoteImage;}\nelse\n{quoteImageELE.style.display = \"none\";}\n<\/script>\n\n<!-- START OF MAPS SECTION -->\n<h2>Map:<\/h2>\n\n<p class=\"tags\"><a href=\"https:\/\/www.whereisworf.com\/?tag=lancashire\" rel=\"tag\">Lancashire<\/a><a href=\"https:\/\/www.whereisworf.com\/?tag=england\" rel=\"tag\">England<\/a><\/p>\n\n<!-- SCRIPTS TO MAKE THE GOOGLE MAP WORK -->\n<div id=\"mapG\" style=\"height: 300px;\"><\/div>\n\n<script>\n       function initMap() {\n        var map = new google.maps.Map(document.getElementById('mapG'), {\n          zoom: 16,\n          center: {lat: + myLat, lng: + myLng},\n\t  disableDefaultUI: true,\n          mapTypeId: 'hybrid',\n          mapId: 'WIW_POST'\n        });\n        const marker = new google.maps.marker.AdvancedMarkerElement({ \n          position: {lat: + myLat, lng: + myLng},\n          map: map\n        });\n        const worfFlag = document.createElement('img');\n        worfFlag.src = new URL('https:\/\/www.kitesheffield.co.uk\/WIsW\/wp-content\/images\/worfflag.png').href;\n        marker.append(worfFlag);\n      }   \n<\/script>\n<script async=\"\" defer=\"\" src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyAQJi2NjLOMIeVctfs984RQ5Crau6lRPZc&amp;callback=initMap&amp;libraries=marker\">\n<\/script>\n\n<!-- SCRIPTS TO MAKE THE OSM MAP WORK -->\n<div id=\"mapOSM\" class=\"map\" style=\"height: 300px; display: none;\"><\/div>\n<link rel=\"stylesheet\" href=\"https:\/\/www.whereisworf.com\/wp-content\/scripts\/ol.css\" type=\"text\/css\">\n<script src=\"https:\/\/www.whereisworf.com\/wp-content\/scripts\/ol.js\"><\/script>\n\n<!-- SCRIPT TO RESIZE MAP DIVS -->\n<script>\nvar width = window.innerWidth || document.body.clientWidth;\nif (width > 700)\n{document.getElementById(\"mapG\").style.width=\"525px\";\ndocument.getElementById(\"mapOSM\").style.width=\"525px\"}\nelse\n{document.getElementById(\"mapG\").style.width=\"325px\";\ndocument.getElementById(\"mapOSM\").style.width=\"325px\";}\n<\/script>\n\n<!-- START OF MAP CHOICE -->\n<br>\n<button id=\"mapChoice\" onclick=\"javascript:mapChange()\" class=\"buttonLink\">Prefer OpenStreetMap?<\/button>\n\n<script>\nmapChange = function() {\n\nif (document.getElementById(\"mapChoice\").innerHTML.includes(\"Google\"))\n{\ndocument.getElementById(\"mapG\").style.display='block';\ndocument.getElementById(\"mapOSM\").style.display='none';\ndocument.getElementById(\"mapChoice\").innerHTML='Back to OpenStreetMap?';\n}\nelse\n{\ndocument.getElementById(\"mapG\").style.display='none';\ndocument.getElementById(\"mapOSM\").style.display='block';\ndocument.getElementById(\"mapChoice\").innerHTML='Back to Google Maps?';\n\nif (document.getElementById(\"mapOSM\").innerHTML === '')\n{\nvar iconStyle = new ol.style.Style({\n  image: new ol.style.Icon({\n          anchor: [0.5, 0.5],\n          anchorXUnits: 'fraction',\n          anchorYUnits: 'fraction',\n    src: 'https:\/\/www.kitesheffield.co.uk\/WIsW\/wp-content\/images\/worfsquarebig.png'\n  })\n});\n\n    var iconFeature = new ol.Feature({geometry: new ol.geom.Point(ol.proj.fromLonLat([myLng, myLat]))});\n    iconFeature.setStyle(iconStyle);\n\nvar map = new ol.Map({\n  target: 'mapOSM',\n  layers: [ \n\tnew ol.layer.Tile({source: new ol.source.OSM()}),\n\tnew ol.layer.Vector({source: new ol.source.Vector({features: [iconFeature]})})\n  ],\n  view: new ol.View({center: ol.proj.fromLonLat([myLng, myLat]),zoom: 16})\n});\n}}}\n<\/script>\n\n<!-- START OF LINKS DIV  -->\n<h2>Links:<\/h2>\n<a target=\"_blank\" href=\"#\" onclick=\"javascript:openM();return false;\" rel=\"noopener noreferrer\">Google Maps<\/a>\n<br>\n<div id=\"svDIV\"><a target=\"_blank\" href=\"#\" onclick=\"javascript:openS();return false;\" rel=\"noopener noreferrer\">Google Streetview<\/a>\n<br><\/div>\n<a target=\"_blank\" href=\"#\" onclick=\"javascript:openP();return false;\" rel=\"noopener noreferrer\">OpenStreetMap<\/a>\n<br>\n<!--<a target=\"_blank\" href=\"#\" onclick=\"javascript:openO();return false;\" rel=\"noopener noreferrer\">OS Maps<\/a>\n<br>-->\n<a target=\"_blank\" href=\"#\" onclick=\"javascript:openB();return false;\" rel=\"noopener noreferrer\">Bing Maps<\/a>\n<br>\n<a target=\"_blank\" href=\"#\" onclick=\"javascript:openG();return false;\" rel=\"noopener noreferrer\">UK Grid Reference Finder OS Map<\/a>\n<br>\n\n\n<!-- SCRIPT TO MAKE LINKS WORK AND SHOW\/HIDE STREETVIEW -->\n<script>\nopenH = function() {if (document.referrer.indexOf(window.location.host) !== -1) window.history.back(); else window.location.replace(window.location.href.substring(0, window.location.href.lastIndexOf(\"\/\")));}\nopenM = function() {window.open('https:\/\/maps.google.com\/maps?z=16&;t=h&q=loc:' + myLat + ',' + myLng);}\nopenS = function() {window.open('https:\/\/maps.google.com\/maps\/@?api=1&map_action=pano&viewpoint=' + myLat + ',' + myLng);}\nopenG = function() {window.open('https:\/\/gridreferencefinder.com\/os.php?lt=' + myLat + '&lg=' + myLng);}\nopenB = function() {window.open('https:\/\/www.bing.com\/maps?where1='+ myLat + ',' + myLng + '&lvl=16');}\nopenO = function() {window.open('https:\/\/osmaps.ordnancesurvey.co.uk\/' + myLat + ',' + myLng + ',16');}\nopenP = function() {window.open('https:\/\/www.openstreetmap.org\/?mlat=' + myLat + '&mlon=' + myLng + '&zoom=17');}\nvar svELE = document.getElementById(\"svDIV\");\nif (showSV === false) {svELE.style.display = \"none\";}\n<\/script>\n\n<!-- START OF VISIT DIV -->\n<div id=\"triviaDIV\">\n<h2>Visit:<\/h2>\n<blockquote class=\"wp-block-quote\"><p><em id=\"trivia1\">triviaText<\/em><\/p><img class=\"quoteimage\" id=\"triviaIMG\"><img class=\"quoteimage2\" id=\"triviaIMG2\"><cite id=\"cite2\">triviaCitation<\/cite><\/blockquote>\n<br>\n<\/div>\n\n<!-- START OF NO VISIT DIV -->\n<div id=\"noTriviaDIV\">\n<br><br><br>\n<\/div>\n\n<!-- SCRIPT TO SHOW\/HIDE\/POPULATE VISIT & NO VISIT DIV -->\n<script type=\"module\">\n\nif (triviaArray === \"\" || triviaCitation === \"\")\n{\ndocument.getElementById(\"triviaDIV\").style.display = \"none\";\n}\nelse\n{\ndocument.getElementById(\"noTriviaDIV\").style.display = \"none\";\n}\n\nimport { LatLon } from 'https:\/\/www.whereisworf.com\/wp-content\/scripts\/osgridref.js';\nconst gridref = new LatLon(myLat, myLng).toOsGrid();\nvar pDate = document.getElementsByClassName(\"post-date\")[0].innerHTML;\nvar pD = parseInt(pDate.substring(0, 2));\nvar pDateOptions = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit' };\nvar postDateNoOrdinal = new Date(pDate.substring(6, 10) + \"-\" + pDate.substring(3, 5)  + \"-\" + pDate.substring(0, 2) + \"T\" + pDate.substring(11, 13) + \":\" + pDate.substring(14, 16));\n\n\/\/postDateNoOrdinal = new Date(postDateNoOrdinal.valueOf() + (postDateNoOrdinal.getTimezoneOffset() * 60000)); \n\nvar postDate = \"Worf was here \" + postDateNoOrdinal.toLocaleDateString(\"en-gb\", pDateOptions).replace(\" \" + pD + \" \", \" \" + pD + (31==pD||21==pD||1==pD?\"st\":22==pD||2==pD?\"nd\":23==pD||3==pD?\"rd\":\"th\") + \" \");\ndocument.getElementById(\"trivia1\").innerHTML = (triviaArray != \"\") ? \"<ul type=\\\"disc\\\" class=\\\"post-list\\\"><li>\" + postDate + \"<\/li><li>\" + triviaArray.join(\"<\/li><li>\") + \"<\/li><li>\" + 'OS Grid Reference: ' + gridref.toString() + \"<\/li><li>\" + 'Latitude and Longitude: ' + myLat + ', ' + myLng + \"<\/li><\/ul>\" : \"\";\ndocument.getElementById(\"cite2\").innerHTML = triviaCitation;\nvar triviaImageELE = document.getElementById(\"triviaIMG\");\nif (typeof triviaImage != 'undefined' && triviaImage != \"\")\n{triviaImageELE.src = triviaImage;}\nelse\n{triviaImageELE.style.display = \"none\";}\nvar triviaImageELE2 = document.getElementById(\"triviaIMG2\");\nif (typeof triviaImage2 != 'undefined' && triviaImage2 != \"\")\n{triviaImageELE2.src = triviaImage2;}\nelse\n{triviaImageELE2.style.display = \"none\";}\n<\/script>\n\n<!-- START OF GALLERY DIV -->\n<div id=\"galleryDIV\" style=\"text-align: center;\">\nTap image below to enlarge<\/br><\/br>\n<ul class=\"wp-block-gallery columns-1 is-cropped\"><li class=\"blocks-gallery-item\"><figure><a id=\"extraMedia1\" data-fancybox=\"\" data-animation-effect=\"false\" data-click-content=\"close\" data-touch=\"false\"><img id=\"extraMedia2\"><\/a><\/figure><\/li><\/ul>\n<\/div>\n\n<!-- SCRIPT TO SHOW\/HIDE\/POPULATE GALLERY DIV -->\n<script>\nif (extraMedia1Url === \"\")\n{\ndocument.getElementById(\"galleryDIV\").style.display = \"none\";\n}\nvar fullFile = extraMedia1Url.substring(0, extraMedia1Url.lastIndexOf(\"-\")) + '.' + extraMedia1Url.split('.').pop();\ndocument.getElementById(\"extraMedia1\").href = fullFile;\ndocument.getElementById(\"extraMedia2\").src = extraMedia1Url;\n<\/script>\n\n<!-- START OF NEARBY DIV -->\n<div id=\"nearbyDIV\">\n<h2>NEARBY:<\/h2>\n<blockquote class=\"wp-block-quote\"><p><em id=\"nearby1\">nearbyText<\/em><\/p><\/blockquote>\n<\/div>\n\n<!-- SCRIPT TO SHOW\/HIDE\/POPULATE NEARBY-->\n<script>\nif (typeof nearbyText === 'undefined')\n{\ndocument.getElementById(\"nearbyDIV\").style.display = \"none\";\n}\nelse\n{\ndocument.getElementById(\"nearby1\").innerHTML = nearbyText;\n}\n<\/script>\n\n<!-- BOTTOM \"BACK\" LINK -->\n<br>\n<a target=\"_blank\" href=\"#\" onclick=\"javascript:openH();return false;\" style=\"text-align:center;display:block;\" rel=\"noopener noreferrer\">Back<\/a>\n\n<\/div>\n\n<!-- START OF MAIN ALERT DIV -->\n<div id=\"alertDIV\">\n\n<\/div>\n\n<!-- SCRIPT TO SHOW CONTENT OR ALERT DIV -->\n<script>\nif (typeof quoteText === 'undefined' || typeof quoteCitation === 'undefined' || typeof myLat === 'undefined' || typeof myLng === 'undefined' || typeof showSV === 'undefined' || typeof triviaArray === 'undefined' || typeof triviaCitation === 'undefined' || typeof extraMedia1Url === 'undefined' || myLat === 0 || myLng === 0)\n{document.getElementById(\"contentDIV\").style.display = \"none\";}\nelse\n{document.getElementById(\"alertDIV\").style.display = \"none\";}\n<\/script>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1868,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[11,14],"_links":{"self":[{"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/posts\/1876"}],"collection":[{"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1876"}],"version-history":[{"count":16,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/posts\/1876\/revisions"}],"predecessor-version":[{"id":2091,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/posts\/1876\/revisions\/2091"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/media\/1868"}],"wp:attachment":[{"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}