diff --git a/src/kiri/init.js b/src/kiri/init.js index cc59dede..e5c75a2f 100644 --- a/src/kiri/init.js +++ b/src/kiri/init.js @@ -1948,7 +1948,6 @@ gapp.register("kiri.init", (root, exports) => { $('curtain').style.display = 'none'; // bind interface action elements - // $('app-name').onclick = api.help.show; $('mode-device').onclick = api.show.devices; $('mode-profile').onclick = settingsLoad; $('mode-fdm').onclick = () => api.mode.set('FDM'); @@ -1984,6 +1983,12 @@ gapp.register("kiri.init", (root, exports) => { api.widgets.for(w => w.unrotate()); selection.update_info(); }; + // attach button handlers to support targets + for (let btn of ["don8pt","don8gh","don8pp"]) { + $(btn).onclick = (ev) => { + window.open(ev.target.children[0].href); + } + } // rotation buttons let d = (Math.PI / 180); $('rot_x_lt').onclick = () => { selection.rotate(-d * $('rot_x').value,0,0) }; diff --git a/web/kiri/index.html b/web/kiri/index.html index e3bca12a..60bf3ecf 100644 --- a/web/kiri/index.html +++ b/web/kiri/index.html @@ -456,9 +456,9 @@
Your contribution is appreciated!
And supports ongoing development,
servers, forums, and related costs
- + - +