Skip to content

Commit

Permalink
Merge pull request #3 from LZ2DMV/main
Browse files Browse the repository at this point in the history
Add plugin: tune_checkbox
  • Loading branch information
0xAF authored Jun 27, 2024
2 parents 9495666 + b1c7c9d commit 6d423ab
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ My public plugins for OWRX+.
Every plugin has it's own documentation.

### receiver plugins
- [frequency_far_jump](receiver/frequency_far_jump/) - jump to a frequency outside of the current profile, by typing it in the receiver's frequency dial. (LZ2DMV)
- [tune_checkbox](receiver/tune_checkbox/) - make the 'Hold mouse wheel down to tune' setting enabled by default (LZ2DMV)
- [frequency_far_jump](receiver/frequency_far_jump/) - jump to a frequency outside of the current profile, by typing it in the receiver's frequency dial (LZ2DMV)
- [keyboard_shortcuts](receiver/keyboard_shortcuts/) - add keyboard shortcuts to the receiver
- [colorful_spectrum](receiver/colorful_spectrum/) - colorize the spectrum analyzer
- [connect_notify](receiver/connect_notify/) - send/receive notifications on user connect/disconnect
Expand Down
14 changes: 14 additions & 0 deletions receiver/tune_checkbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# OWRX+ Receiver Plugin: tune_checkbox

This a one-line `receiver` plugin to make the 'Hold mouse wheel down to tune' setting enabled by default.

This setting allows you to use the mouse scroll to zoom into the waterfall.

# load
Add this lines in your `init.js` file:
```js
Plugins.load('https://0xaf.github.io/openwebrxplus-plugins/receiver/tune_checkbox/tune_checkbox.js');
```

# init.js
You can find more info on `init.js` [on GitHub pages](https://0xaf.github.io/openwebrxplus-plugins/) or directly in [0xAF's GitHub repo](https://github.com/0xAF/openwebrxplus-plugins).
11 changes: 11 additions & 0 deletions receiver/tune_checkbox/tune_checkbox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Plugin: Make the 'Hold mouse wheel down to tune' option checked by default.
* Allows you to zoom into the waterfall with the mouse scroll.
* License: Apache License 2.0
* Copyright (c) 2024 Dimitar Milkov, LZ2DMV
*/

Plugins.tune_checkbox.no_css = true;

$('#openwebrx-wheel-checkbox').prop('checked', true).change();

0 comments on commit 6d423ab

Please sign in to comment.