-
ウエル活計算表!
投稿日 2025年9月17日 01:49:10 (主婦 副業)
ウエル活に必要なポイント数の自動計算作りました(*`・ω・)ゞ
※入力した金額を 1.5 で割り、小数点以下を四捨五入して必要ポイント数を算出
.ceil-box { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ceil-box input[type=”number”]{ width:140px; padding:8px; border:1px solid #ddd; border-radius:6px; font-size:14px; }
.ceil-box button{ padding:8px 12px; border-radius:6px; border:0; cursor:pointer; font-size:14px; }
.ceil-result{ margin-top:12px; padding:10px; background:#f9fafb; border-radius:6px; border:1px dashed #eee; font-weight:600; }
.ceil-note{ font-size:13px; color:#666; margin-top:6px; }
@media (max-width:480px){ .ceil-box { flex-direction:column; align-items:stretch } .ceil-box input[type=”number”]{ width:100% } }
ウエル活計算
↓回答ここに出てきます↓
ウエル活に必要なWAON POINT
function calcAmount(){
var input = document.getElementById(‘amountInput’);
var result = document.getElementById(‘result’);
var outVal = document.getElementById(‘outVal’);
var calcDetail = document.getElementById(‘calcDetail’);
var v = parseFloat(input.value);
if (isNaN(v) || v < 0){
alert('金額を0以上で入力してください。');
input.focus();
return;
}
var raw = v / 1.5;
var rounded = Math.round(raw);
outVal.textContent = rounded;
calcDetail.textContent = '計算: ' + v + ' ÷ 1.5 = ' + raw.toFixed(6).replace(/.?0+$/,'') + ' → 四捨五入 → ' + rounded;
result.style.display = 'block';
}
function clearAmount(){
document.getElementById('amountInput').value = '';
document.getElementById('result').style.display = 'none';
}
Source: N専業主婦のお小遣い稼ぎはじめました。ew feed
最新情報