Skip to content

Instantly share code, notes, and snippets.

@wavded
Last active August 7, 2025 22:03
Show Gist options
  • Save wavded/9facffd4c5328826469f2e60b4e7da79 to your computer and use it in GitHub Desktop.
Save wavded/9facffd4c5328826469f2e60b4e7da79 to your computer and use it in GitHub Desktop.
<html>
<head>
<script>
geotab.addin.drive = function () {
return {
initialize: function (api, state, cb) {
console.log("DRIVE: INIT", state, api.getSession());
cb();
},
focus: function (api, state) {
console.log("DRIVE: FOCUS", state, api);
document.getElementById("addin-container").innerHTML = `<iframe src="https://portal.dqmconnect.com"></iframe>` },
blur: function (api, state) {
console.log("DRIVE: BLUR", api, state);
},
};
};
</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