Skip to content

Instantly share code, notes, and snippets.

@wavded
Last active July 20, 2022 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavded/c24cdaaafb4df026458654bf85240ee5 to your computer and use it in GitHub Desktop.
Save wavded/c24cdaaafb4df026458654bf85240ee5 to your computer and use it in GitHub Desktop.
Geotab DQM-Connect Add-in
<html>
<head>
<script>
geotab.addin.drive = function () {
return {
initialize: function (api, state, cb) {
console.log("DRIVE: INIT");
cb();
},
focus: function (api, state) {
console.log("DRIVE: FOCUS");
window.open("https://portal.dqmconnect.com");
window.history.back();
},
blur: function (api, state) {
console.log("DRIVE: BLUR");
},
};
};
</script>
</head>
<body>
<div id="addin-container"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment