|
|
|
|
@ -4,14 +4,15 @@ function setShare(pct) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function onKindChange(kind) {
|
|
|
|
|
const shareWrap = document.getElementById('share-wrap');
|
|
|
|
|
const a_share = document.getElementById('a_share');
|
|
|
|
|
const presets = document.getElementById('presets');
|
|
|
|
|
if (!shareWrap || !presets) return;
|
|
|
|
|
if (!a_share || !presets) return;
|
|
|
|
|
|
|
|
|
|
if (kind === 'transfer') {
|
|
|
|
|
shareWrap.style.display = '';
|
|
|
|
|
presets.style.display = '';
|
|
|
|
|
a_share.style.display = 'none';
|
|
|
|
|
presets.style.display = 'none';
|
|
|
|
|
} else {
|
|
|
|
|
shareWrap.style.display = '';
|
|
|
|
|
a_share.style.display = '';
|
|
|
|
|
presets.style.display = '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|