-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing code to match eslint rules. function definition syntax Version bump
- Loading branch information
Showing
4 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
// @author jonatkins | ||
// @name Periodic refresh | ||
// @category Tweaks | ||
// @version 0.1.0 | ||
// @version 0.1.1 | ||
// @description For use for unattended display screens only, this plugin causes idle mode to be left once per hour. | ||
|
||
/* exported setup --eslint */ | ||
/* global idleReset */ | ||
// use own namespace for plugin | ||
var periodicRefresh = {}; | ||
window.plugin.periodicRefresh = periodicRefresh; | ||
|
||
var wakeup = function() { | ||
function wakeup () { | ||
console.log('periodicRefresh: timer fired - leaving idle mode'); | ||
idleReset(); | ||
} | ||
|
||
|
||
var setup = function() { | ||
|
||
function setup () { | ||
var refreshMinutes = 60; | ||
|
||
setInterval (wakeup, refreshMinutes*60*1000 ); | ||
|
||
}; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
// @author jonatkins | ||
// @name Disable mouse wheel zoom | ||
// @category Tweaks | ||
// @version 0.1.0 | ||
// @version 0.1.1 | ||
// @description Disable the use of mouse wheel to zoom. The map zoom controls or keyboard are still available. | ||
|
||
|
||
/* exported setup --eslint */ | ||
// use own namespace for plugin | ||
// var scrollWheelZoomDisable = {}; | ||
// window.plugin.scrollWheelZoomDisable = scrollWheelZoomDisable; | ||
|
||
var setup = function() { | ||
|
||
function setup () { | ||
window.map.scrollWheelZoom.disable(); | ||
|
||
}; | ||
} | ||
|