ご予約フォーム
CALENDAR
営業日カレンダー
※「Safari」のブラウザでカレンダーが表示されない場合、以下をお試しください。
●iPhoneの場合
ホーム画面→「設定」→「Safari」→「プライバシーとセキュリティ」→「サイト越えトラッキングを防ぐ」を無効にする。
●Macの場合
アプリケーション「Safari」→「環境設定」→「プライバシー」→「サイト越えトラッキングを防ぐ」のチェックを外す。
RESERVE
ご予約はこちら
<script> document.addEventListener("DOMContentLoaded", function() { const textarea = document.querySelector('textarea[name="form-field-fabf14"]'); const maxLength = 500; const charsLeftDiv = document.querySelector('.charsLeft'); textarea.addEventListener('input', function() { const charsEntered = textarea.value.length; const charsLeft = maxLength - charsEntered; let className = "numColor"; if (charsLeft <= 10) { className = "numColorLow"; } const coloredCharsLeft = `残り <span class="${className}">${charsLeft}</span> 文字`; charsLeftDiv.innerHTML = coloredCharsLeft; }); }); </script> <script> document.addEventListener('DOMContentLoaded', function() { var textarea = document.querySelector('textarea[name="form-field-fabf14"]'); if (textarea) { textarea.addEventListener('keydown', function(e) { if (e.keyCode == 13 || e.which == 13) { var cursorPos = this.selectionStart; var value = this.value; var newText = value.substring(0, cursorPos) + '\n' + value.substring(cursorPos); this.value = newText; // カーソルの位置を更新 this.selectionStart = cursorPos + 1; this.selectionEnd = cursorPos + 1; } }); } }); </script>