Last active
July 20, 2022 17:03
-
-
Save wavded/c24cdaaafb4df026458654bf85240ee5 to your computer and use it in GitHub Desktop.
Geotab DQM-Connect Add-in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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