/** * ========================================================================== * * javascript for AZLINK. * スケジュール用 * * ========================================================================== */ $(function() { var setTableWidth = $('#mainFull').width(); var setTHWidth = ($('#scheduleTable').width() / 7) - 10; $('#scheduleTable').width(setTableWidth); $('#scheduleTable th').width(setTHWidth); $('#scheduleTable td > div').css('min-height', 100); $('#scheduleTable td').each(function() { $(this).find('dd:not(:last)').css('margin-bottom', 5); $(this).find('dd').not('.scheStop').each(function() { $(this).click(function() { var target = $(this).find('.place > a').attr('href'); window.open(target); return false; }); }); }); $('#scheduleTable thead th:eq(0)').addClass('thSun'); $('#scheduleTable thead th:eq(6)').addClass('thSat'); var icoClose = '../images/schedule/btCautionClose.gif'; var icoOpen = '../images/schedule/btCautionOpen.gif'; $('#scheCautionVox ul').hide(); $('#scheCautionVox h2 > img').attr({ src: icoOpen, alt: 'お申し込みに当たってのご注意を開く' }); $('#scheCautionVox h2 > a').click(function() { $('#scheCautionVox ul').slideToggle('fast', function() { var dispStatus = $(this).is(':visible'); if (dispStatus == true) { $(this).prev().find('img').attr({ src: icoClose, alt: 'お申し込みに当たってのご注意を閉じる' }); } else { $(this).prev().find('img').attr({ src: icoOpen, alt: 'お申し込みに当たってのご注意を開く' }); } }); }); /** * 指定スケジュールの参加費を無料に */ var gets = retrieveGETqs(); if (gets['serial'] == 530 || gets['serial'] == 531 || gets['serial'] == 533) { $("th:contains('体験参加費')").next().html('無料'); } });