Skip to content

Instantly share code, notes, and snippets.

View MrKistic's full-sized avatar

Mark Simpson MrKistic

View GitHub Profile
@MrKistic
MrKistic / geolocation-IE11-map.patch
Created November 13, 2019 06:48
Drupal 8 Geolocation/Google maps IE11 bug patch
diff --git a/modules/geolocation_google_maps/js/geolocation-google-maps-api.js b/modules/geolocation_google_maps/js/geolocation-google-maps-api.js
index 66cc97c..d515767 100644
--- a/modules/geolocation_google_maps/js/geolocation-google-maps-api.js
+++ b/modules/geolocation_google_maps/js/geolocation-google-maps-api.js
@@ -172,7 +172,7 @@
return;
}
Drupal.geolocation.GeolocationMapBase.prototype.removeMapMarker.call(this, marker);
- marker.setMap(null);
+ !!marker.setMap ? marker.setMap(null) : null;
@MrKistic
MrKistic / gmap-recentre.html
Created July 2, 2013 02:09
Example of a responsive embedded Google map. It will recenter on window resize.
<!DOCTYPE html>
<html>
<head>
<title>Google Maps JavaScript API v3 Example: Map Simple</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
<meta charset="utf-8"/>
<style>
html, body {
margin: 0;
@MrKistic
MrKistic / gist:1be14448860170c26bf3
Last active August 29, 2015 14:27 — forked from warnergodfrey/gist:7512051
Access the ATO Business Portal using AusKey Mac OS X Mountain Lion
  • Install the latest JRE from Oracle
  • In the Java Control Panel, go to the Security tab and make sure 'Enable Java Content' is checked
  • Open Safari
  • Go to the ATO Business portal site https://bp.ato.gov.au/BpStatics/homepage.htm
  • Click Login
  • A dialog will apear asking you 'Do you want to trust the website “authentication.business.gov.au” to use the “Java” plug-in?'
  • Click 'Trust'
  • Now you will be asked 'Do you want to run this application?'
  • Click 'Run'
  • Another dialog will appear asking you to 'Allow access to the following application from this website?'