{"id":2868,"date":"2020-09-12T16:30:54","date_gmt":"2020-09-12T15:30:54","guid":{"rendered":"https:\/\/www.whereisworf.com\/?p=2868"},"modified":"2020-09-13T21:12:38","modified_gmt":"2020-09-13T20:12:38","slug":"gotham","status":"publish","type":"post","link":"https:\/\/www.whereisworf.com\/?p=2868","title":{"rendered":"Gotham"},"content":{"rendered":"\n<script>\nvar quoteText = \"The village is most famed for the stories of the 'Wise Men of Gotham'. These depict the people of the village as being stupid. However the reason for the behaviour is believed to be that the villagers wished to feign madness to avoid a Royal Highway being built through the village, as they would then be expected to build and maintain this route. Madness was believed at the time to be highly contagious, and when King John's knights saw the villagers behaving as if insane, the knights swiftly withdrew and the King's road was re-routed to avoid the village. Reminded of the foolish ingenuity of Gotham's residents, Washington Irving gave the name 'Gotham' to New York City in his Salmagundi Papers (1807). In turn, Bill Finger named the pastiche New York home of Batman, Gotham City.\";\nvar quoteCitation = \"en.wikipedia.org\";\nvar myLat = 52.868276;\nvar myLng = -1.2059929;\nvar showSV = true;\nvar triviaArray = [\"Parking was available on a small side road nearby\"];\nvar triviaCitation = \"PAUL\";\nvar extraMedia1Url = \"https:\/\/www.whereisworf.com\/wp-content\/uploads\/2020\/09\/20200912_163114-508x381.jpg\";\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=nottinghamshire\" rel=\"tag\">Nottinghamshire<\/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":2866,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[11,26],"_links":{"self":[{"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/posts\/2868"}],"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=2868"}],"version-history":[{"count":4,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/posts\/2868\/revisions"}],"predecessor-version":[{"id":2872,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/posts\/2868\/revisions\/2872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=\/wp\/v2\/media\/2866"}],"wp:attachment":[{"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whereisworf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}