おみくじ開発しました!
社内でAIを使用した取り組みを模索しています。 そんな中、おみくじつくってみました。 こんなことがしたかったわけじゃないのになぁ。 もっと画期的なことをしたかったのですが。 楽しいからまあいっか。 今日のところはこれで終わりにしとこう^^。 body { font-family: sans-serif; text-align: center; padding: 50px; background-color: #f9f9f9; } #result { margin-top: 30px; font-size: 24px; font-weight: bold; color: #333; } button { font-size: 20px; padding: 12px 30px; background: linear-gradient(to bottom, #fdd835, #fbc02d); border: 2px solid #e0a800; border-radius: 12px; cursor: pointer; box-shadow: 0 6px #c9a300; transition: all 0.1s ease-in-out; } button:active { box-shadow: 0 2px #c9a300; transform: translateY(4px); } おみくじガチャ まわす! ここに結果が出ます const results = [ "大吉 今日は絶好調!", "中吉 いいことあるかも", "小吉 穏やかな1日になりそう", "末吉 無理せず自然体で", "凶 注意深く過ごそう!", "超大吉 奇跡が起きる予感!" ]; function draw() { const randomIndex = Math.floor(Math.random() * results.length); document.getElementById('result').textContent = results[randomIndex]; }
2025.08.09