fix support links and related button attachments
This commit is contained in:
parent
b379477e90
commit
30d417c2e0
2 changed files with 8 additions and 3 deletions
|
|
@ -1948,7 +1948,6 @@ gapp.register("kiri.init", (root, exports) => {
|
||||||
$('curtain').style.display = 'none';
|
$('curtain').style.display = 'none';
|
||||||
|
|
||||||
// bind interface action elements
|
// bind interface action elements
|
||||||
// $('app-name').onclick = api.help.show;
|
|
||||||
$('mode-device').onclick = api.show.devices;
|
$('mode-device').onclick = api.show.devices;
|
||||||
$('mode-profile').onclick = settingsLoad;
|
$('mode-profile').onclick = settingsLoad;
|
||||||
$('mode-fdm').onclick = () => api.mode.set('FDM');
|
$('mode-fdm').onclick = () => api.mode.set('FDM');
|
||||||
|
|
@ -1984,6 +1983,12 @@ gapp.register("kiri.init", (root, exports) => {
|
||||||
api.widgets.for(w => w.unrotate());
|
api.widgets.for(w => w.unrotate());
|
||||||
selection.update_info();
|
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
|
// rotation buttons
|
||||||
let d = (Math.PI / 180);
|
let d = (Math.PI / 180);
|
||||||
$('rot_x_lt').onclick = () => { selection.rotate(-d * $('rot_x').value,0,0) };
|
$('rot_x_lt').onclick = () => { selection.rotate(-d * $('rot_x').value,0,0) };
|
||||||
|
|
|
||||||
|
|
@ -456,9 +456,9 @@
|
||||||
<div style="padding:20px;font-size:larger;font-weight:bold">Your contribution is appreciated!</div>
|
<div style="padding:20px;font-size:larger;font-weight:bold">Your contribution is appreciated!</div>
|
||||||
<div style="padding:5px 0 5px 0;justify-content:center">And supports ongoing development,</div>
|
<div style="padding:5px 0 5px 0;justify-content:center">And supports ongoing development,</div>
|
||||||
<div style="padding:5px 0 20px 0;justify-content:center">servers, forums, and related costs</div>
|
<div style="padding:5px 0 20px 0;justify-content:center">servers, forums, and related costs</div>
|
||||||
<button id="don8pt" class="yellow" style="justify-content:center;padding:25px;font-size:larger"><a target="_paypal" href="https://paypal.me/gridspace3d?locale.x=en_US">Become a Patreon Patron</a></button>
|
<button id="don8pt" class="yellow" style="justify-content:center;padding:25px;font-size:larger"><a target="_paypal" href="https://www.patreon.com/c/gridspace3d">Become a Patreon Patron</a></button>
|
||||||
<button id="don8gh" class="yellow" style="justify-content:center;padding:25px;font-size:larger"><a target="_github" href="https://github.com/sponsors/GridSpace">Sponsor on GitHub</a></button>
|
<button id="don8gh" class="yellow" style="justify-content:center;padding:25px;font-size:larger"><a target="_github" href="https://github.com/sponsors/GridSpace">Sponsor on GitHub</a></button>
|
||||||
<button id="don8pp" class="yellow" style="justify-content:center;padding:25px;font-size:larger"><a target="_paypal" href="https://paypal.me/gridspace3d?locale.x=en_US">Donate with PayPal</a></button>
|
<button id="don8pp" class="yellow" style="justify-content:center;padding:25px;font-size:larger"><a target="_paypal" href="https://paypal.me/gridspace3d">Donate with PayPal</a></button>
|
||||||
<div class="t-pad2"></div>
|
<div class="t-pad2"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue