@section('page_title') OSAA - {{ ucfirst(strtolower($for)) }} @stop @section('page_sub_title') OSAA Information and Resources for {{ ucfirst(strtolower($for)) }} @stop @section('scripts') @parent {{-- Google reCAPTCHA script --}} @stop @section('jquery_init') // Success bar $('.success_bar').animate({ 'top' : 32, 'background-color' : 'rgba(176, 255, 190, 1.0)'}, 1600, 'easeOutQuad', function () { $(this).delay(6000).fadeOut(4000); $(this).hover(function () { $(this).stop(true).css('opacity', '1.0'); }, function () { $(this).fadeOut(4000); }) }); $('.button').button(); $('.tabs').tabs(); $('.tab_button') .button() .css({'font-size' : '12pt', 'height' : '4.5em', 'width' : '150px', 'padding-top' : '1em', 'margin-right' : '40px'}) .click(function(event) { event.preventDefault(); var target = $(this).attr('data-goto-index'); $('.tabs').tabs('option', 'active', target); }); /* * Tab activation and element focus */ function activateTab(target_tab_id, focus) { var target_tab = $('.tabs ul:first li a[href="#' + target_tab_id + '"]'); var target_tab_index = target_tab.attr('data-tab-order'); $('.tabs').tabs('option', 'active', target_tab_index); if (focus != null) { focusOnElement($(focus)); } } @if (!Helpers::strIsEmpty($info['tab'])) var anchor = "{{ $info['tab'] }}"; @else var anchor = window.location.hash.substring(1); @endif var focus = null; if (anchor) { activateTab(anchor, focus); focus = '#content'; } @if (!Helpers::strIsEmpty($info['focus'])) focus = "#{{ $info['focus'] }}"; @endif function focusOnElement(focus_element) { var top = focus_element.offset().top - 75; setTimeout(function() { $('html, body').scrollTop(top); }, 1); } if (focus != null) { focusOnElement($(focus)); } // Required field marker $('[data-required]:not([data-required-indicator])').after('*'); {{-- AD workshop registration form scripts --}} @if (!is_null($info['workshop_form'])) var workshop_form = $('form.workshop_registration'); // Hide optional form elements on load $('.attendee[data-index!="1"]', workshop_form).hide(); $('.other_school', workshop_form).hide(); // Change the number of attendees $('select[name="number"]', workshop_form).on('change', function() { // Get the number of attendees var number = parseInt($('option:selected', $(this)).val()); updateAttendees(number); // Focus on the first attendee's name $('input[name="attendees[1][name]"]', workshop_form).focus(); }); if (parseInt($('select[name="number"] option:selected', workshop_form).val()) > 1) { updateAttendees(parseInt($('select[name="number"] option:selected', workshop_form).val())); } function updateAttendees(number) { // Show/hide as appropriate if (number == 1) { $('.attendee[data-index!="1"]', workshop_form).slideUp(400); } else if (number == 2) { $('.attendee[data-index="2"]', workshop_form).slideDown(400); $('.attendee[data-index="3"]', workshop_form).slideUp(400); } else if (number == 3) { $('.attendee[data-index!="1"]', workshop_form).slideDown(400); } } // Change the school selection $('select[name="school"]', workshop_form).on('change', function() { var value = $('option:selected', $(this)).val(); schoolSelectOption(value, true); }); function schoolSelectOption(value, shift_focus) { if (value == 'OTHER') { $('.other_school', workshop_form).slideDown(400); if (shift_focus || $('input[name="other_school"]', workshop_form).val() == "") { $('input[name="other_school"]', workshop_form).focus(); } } else { $('.other_school', workshop_form).slideUp(400); if (shift_focus) { $('input[name="attendees[1][name]"]', workshop_form).focus(); } } } // Show other school option on reload schoolSelectOption($('select[name="school"] option:selected', workshop_form).val(), false); // Date accordion $('.dates', workshop_form).accordion({ 'header' : 'div.date_option', 'heightStyle' : 'content', 'collapsible' : true }); // Session table hover style $('.date_option_info table', workshop_form) .hover(function() { $(this).addClass('session_hover'); }, function() { $(this).removeClass('session_hover'); }); // Tutorial check-box $('input[type="checkbox"][name="attending_tutorial"]', workshop_form).on('change', function(event) { var field = $(this); var checked = false; if (field.is(':checked')) { var checked = true; } var other_fields = $('input[type="checkbox"][name="attending_tutorial"][id!="' + field.attr('id') + '"]', workshop_form); if (checked) { other_fields.prop('checked', true).prop('disabled', true); } else { other_fields.prop('checked', false).prop('disabled', true); } }); // Session radio button $('input[type="radio"][name="session"]', workshop_form).on('change', function(event) { // Remove all selection styles $('.date_option_info table', workshop_form).removeClass('session_selected'); $('.date_title', workshop_form).removeClass('header_selected'); $('.session_title', workshop_form).html(''); $('input[type="checkbox"][name="attending_tutorial"]', workshop_form).prop('disabled', true); // Get the selected option title var session_title = $(this).attr('data-session-name'); // Show selected session option $('#' + $(this).attr('data-paired-checkbox')).prop('disabled', false); $(this).parents('td').children('input[type="checkbox"][name="attending_tutorial"]').prop('disabled', false); console.log($('#' + $(this).attr('data-paired-checkbox')).attr('id')); $(this).parents('table').addClass('session_selected'); $(this).parents('.date_option_info').prev().children('.date_title').addClass('header_selected'); $(this).parents('.date_option_info').prev().children('.session_title').html(session_title); }); $('input[type="submit"]', workshop_form) .button() .css({'font-size' : '11pt', 'padding-top' : '1.5em', 'padding-bottom' : '1.5em', 'position' : 'absolute', 'top' : '0.25em', 'right' : '-130px'}) .click(function(event) { event.preventDefault(); var form = $(this).parents('form'); // Show a confirmation $('
') .appendTo('body') .dialog( { draggable : false, resizable : false, modal : true, height : 275, width : 425, title : 'Confirm Registration', buttons: [ { text : "Register", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { form.submit(); } }, { text : "Cancel", 'class' : "float_right", 'data-autofocus' : "true", icons : { primary : 'ui-icon-cancel'}, click : function() { // Close the dialog box $(this).dialog("close"); } } ], open : function () { var dialog_object = $(this); var data = { 'school' : $('select[name="school"] option:selected', form).text(), 'number' : parseInt($('select[name="number"] option:selected', form).val()), 'session' : $('input[name="session"]:checked', form).attr('data-session-name'), 'date' : $('input[name="session"]:checked', form).attr('data-session-date'), }; dialog_object.html('
The NFHS Rules App contains quizzes for all NFHS sports and provides access to the
| @if (!Helpers::strIsEmpty($location->map_url)) {{ $location->name}}, {{ $location->city }} @else {{ $location->name}}, {{ $location->city }} @endif |
@if ($location->offer_tutorial)
Check this box if you also plan to attend the optional Eligibility/Transfer Tutorial.
@endif
|
|
| {{ Helpers::formatDateTime('%SCHEDULE%', strtotime($schedule->start)) }} - {{ Helpers::formatDateTime('%SCHEDULE%', strtotime($schedule->end)) }} | {{ $schedule->topic }} @if (!Helpers::strIsEmpty($schedule->note)) ({{ $schedule->note }}) @endif | |
|
||