webpackJsonp([4],{ /***/ 18: /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }), /***/ 27: /***/ (function(module, exports, __webpack_require__) { var project_player = __webpack_require__(1); var player_ch06 = project_player.extend({ initialize_sections: function () { var player = this; // define this so it's available inside the below function $('[data-type=\'section\']').each(function (index, element) { var jq = $(element); // establish the section in the sections array; store its jq var s = player.sections[player.sections.length] = {}; s.jq = jq; // set the section's index s.index = index; jq.attr('data-section-index', index).attr('id', 'digfir_section_' + index); // extract the section's title and number s.number = jq.find('h2').find('[data-type=number]').html(); s.title = jq.find('h2').find('[data-type=title]').html(); // process page queries for the section player.activity.process_page_queries_for_section(jq); ++player.section_count; s.md = new window.Metadata({ lowercase_keys: true }); s.md.add_from_jq(s.jq.children('[data-type=metadata]')); if (s.md.section_type && window.mheAYS[s.md.section_type]) { var initialize = window.mheAYS[s.md.section_type].initialize; if (initialize) { initialize(s); } } }); var mc_radio_buttons = $('[data-type="query"] .query_mc_choice_radio'); for (var i = 0; i < mc_radio_buttons.length; i++) { var headerId; if (i % 10 == 0 || i % 10 == 5) { headerId = 'header-1'; } if (i % 10 == 1 || i % 10 == 6) { headerId = 'header-2'; } if (i % 10 == 2 || i % 10 == 7) { headerId = 'header-3'; } if (i % 10 == 3 || i % 10 == 8) { headerId = 'header-4'; } if (i % 10 == 4 || i % 10 == 9) { headerId = 'header-5'; } var legend = $(mc_radio_buttons[i]).closest('fieldset').find('legend'); legend.remove(); var text = $(mc_radio_buttons[i]).closest('tr').find('td:first p'); var textId = text.attr('id'); var labelId = $(mc_radio_buttons[i]).next('label').attr('id'); var labelString = textId + ' ' + headerId + ' ' + labelId; $(mc_radio_buttons[i]).attr('aria-labelledby', labelString); } $('[data-type="query"]').find('.query_dd_select').each(function () { var text = $(this).closest('tr').find('td:first p'); var label = text.text(); var textId = $(this).attr('id') + '_text'; text.attr('id', textId); $(this).closest('table').attr('role', 'group'); $(this).attr('aria-labelledby', textId); $(this).attr('aria-label', label); }); }, initialize2: function () { this._super(); var $nextButton = $('#digfir_section_0').find('.next_button'); var $clearBoth = $('
'); $clearBoth.insertBefore($nextButton); } }); module.exports = player_ch06; /***/ }), /***/ 46: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(9); /***/ }), /***/ 9: /***/ (function(module, exports, __webpack_require__) { __webpack_require__(18); var player_ch06 = __webpack_require__(27); window.player = new player_ch06(); /***/ }) },[46]); //# sourceMappingURL=cyha_mods_ch06.js.map