// 商談予約確認ページに注意書きを追加 (function() { let checkInterval; // スタイルを追加 const style = document.createElement('style'); style.textContent = ` .business-appointment-note { background-color: #fff3cd; border: 1px solid #ffc107; border-radius: 4px; padding: 16px; margin: 20px 0; } .business-appointment-note-text { font-size: 13px; line-height: 1.8; color: #856404; margin: 0; } .business-appointment-note-link { color: #00913A; text-decoration: underline; font-weight: 600; } .business-appointment-note-link:hover { color: #007a31; text-decoration: none; } `; document.head.appendChild(style); // 注意書きのHTML const noteContent = `

※こちらの商談予約は、オンライン展示会内において出展者とオンライン上で予約した商談が表示されております。会期中に会場内で開催される特別商談会(ビジネスマッチング)の予約は含まれておりませんので予めご了承ください。特別商談会(ビジネスマッチング)の詳細についてはこちら

`; // 注意書きを挿入する関数 function insertNote() { try { // 商談予約テーブルを探す const appointmentTable = document.querySelector('.business-appointment__table'); if (!appointmentTable) { return false; } // 既に注意書きが挿入されているかチェック const existingNote = document.querySelector('.business-appointment-note'); if (existingNote) { return true; } console.log('商談予約の注意書きを挿入します'); // テーブルの後に注意書きを追加 appointmentTable.insertAdjacentHTML('afterend', noteContent); console.log('商談予約の注意書きの挿入が完了しました'); return true; } catch (error) { console.error('商談予約の注意書き挿入エラー:', error); return false; } } // 1秒ごとに監視(DOMがリセットされる可能性があるため) console.log('商談予約ページの監視を開始します...'); checkInterval = setInterval(function() { insertNote(); }, 1000); // 初回実行 insertNote(); })();