Monero/Aeon Webminer add-on module for After Dark https://habd.as/code/toxic-swamp/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toolbar.html 1.4KB

12345678910111213141516171819202122
  1. {{ partial "modules/toxic-swamp/inline.css.html" }}
  2. {{ partial "modules/toxic-swamp/inline.jsonld.html" }}
  3. {{ $toggle := partial "components/button" (dict "isghost" "true" "type" "success" "name" "toggle") }}
  4. {{ $controls := partial "components/buttongroup" (dict "class" "btn-controls" "body" $toggle) }}
  5. <form hidden name="webminer" class="grid -center js-toolbar">
  6. {{ partial "components/helpblock" (dict "class" "status" "body" (`<small class="js-status"></small>` | safeHTML))}}
  7. {{ partial "components/helpblock" (dict "class" "interstitial" "body" (`<small class="js-interstitial" hidden>Click to activate…</small>` | safeHTML))}}
  8. {{ partial "components/helpblock" (dict "class" "ticker" "body" (`<small class="js-ticker"></small>` | safeHTML))}}
  9. <input name="throttle" type="range" min="10" max="100" step="5" value="30">
  10. &nbsp;{{ $controls }}
  11. {{ partial "components/textinput" (dict "attrs" (dict "type" "hidden" "name" "hashrate" "value" "0")) }}
  12. {{ partial "components/textinput" (dict "attrs" (dict "type" "hidden" "name" "hashes" "value" "0")) }}
  13. </form>
  14. <noscript>
  15. <style>form[name="webminer"] { display: none !important; }</style>
  16. </noscript>
  17. {{ $script := resources.Get "/js/toolbar.js" | resources.ExecuteAsTemplate "toolbar.js" . }}
  18. <script integrity="{{ ($script | resources.Fingerprint "sha512").Data.Integrity }}">
  19. {{- $script.Content | safeJS -}}
  20. </script>