webpackJsonp([4],{
/***/ 108:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(37);
/***/ }),
/***/ 37:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(55);
var ProjectPlayer = __webpack_require__(1);
var SubtypeMCQuery = __webpack_require__(4);
var dom = __webpack_require__( 3 );
var CgDnd = __webpack_require__(7);
var svg = __webpack_require__(76);
var ProjectMCQuery = SubtypeMCQuery.extend({
getHTML: function (mode) {
var html = '';
html += this.correct_incorrect_feedback();
if (html != '') {
html = dom.createHTML(html);
$('#section_7_feedback').html(html);
}
return '';
},
postInit: function () {
var html = '';
html += '
';
for (var i = 0; i < this.choices.length; ++i) {
html += '
';
}
html += '
';
html = dom.createHTML(html);
$('#section_7_dnd_words').html(html);
},
evaluateAnswer: function () {
if (player.section_7_complete) {
this.setGrade(100);
}
return true;
},
correct_incorrect_feedback: function (mode, is_correct) {
var html = '';
this.user_answer_index = this.choices.indexOf(player.user_answer);
if (this.user_answer_index != null && this.choices_fb[this.user_answer_index] != null) {
if (player.user_answer_correct) {
html += this.choices_fb[this.user_answer_index];
}
else if (player.user_answer_data === 'item1') {
html += 'This is a component of the ‘wanting’ pathway';
}
else if (player.user_answer_data === 'item2') {
html += 'This is a component of the ‘liking’ pathway';
}
}
$('#live-feedback').html(html);
html = '' + html + '
';
return html;
}
});
MC_Query = ProjectMCQuery;
var ChapterPlayer = ProjectPlayer.extend({
initialize2: function () {
this._super();
var self = this;
var html1 = dom.createHTML(svg.kolb_ch12_02),
html2 = dom.createHTML(svg.kolb_ch12_03);
this.action_label = {
section_2_button_1: '',
section_2_button_2: '',
section_2_button_3: '',
section_2_button_4: '',
section_4_button_1: 'Arrows appear showing how dopamin releases and acts on all listed structures of the brain.',
section_4_button_2: 'Lines connecting all hotspots appear, showing their unified operation.',
section_5_button_1: 'Arrows appear showing how dopamin releases and acts on all listed structures of the brain.',
section_5_button_2: 'Lines connecting all hotspots appear, showing their unified operation.'
};
player.section_7_complete = false;
this.section_with_widget.forEach( function (section) {
self.initWidgetButton(section);
});
UI_Elements.update_button_label('question_submit_button_1', 'Check Your Answer');
$('#question_action_div_2').remove();
$('#section_4_widget').prepend(html1);
$('#section_5_widget').prepend(html2);
},
show_section: function ( section_to_show ) {
this._super(section_to_show);
var c_section = this.section_currently_showing;
switch (c_section) {
case 4: {
player.scrollTop = $('#section_4_widget').offset().top;
}
case 6: {
this.dnd = this.dnd || new CgDnd(this.dnd_setting);
break;
};
default: ;
}
},
initWidgetButton: function (section) {
var section_buttons = $('#section_' + section + '_widget button'),
count = section_buttons.length,
self = this;
section_buttons.each(function (index, button) {
this.addEventListener('click', {
handleEvent: self.buttonClickHandler,
section: section,
count: count,
id: button.id
});
});
},
getSVGContent: function (svg_id) {
return document.getElementById(svg_id);
},
buttonClickHandler: function (event) {
var button = event.currentTarget,
isAriaPressed = button.getAttribute('aria-pressed') === 'true',
isAriaChecked = button.getAttribute('aria-checked') === 'true',
section_buttons = $('#section_' + this.section + '_widget button'),
live_text = '';
section_buttons.each(function () {
this.setAttribute('aria-pressed', button.id === this.id ? isAriaPressed : 'false');
});
button.setAttribute('aria-pressed', isAriaPressed ? 'false' : 'true');
button.setAttribute('aria-checked', 'true');
if (!isAriaChecked) {
$(button).append(' ');
}
$('[id ^= "section_' + this.section + '_feedback_"]').hide();
if (!isAriaPressed) {
live_text = player.action_label[button.id] +
$('#' + button.getAttribute('data-index')).find('p:first-child').text();
$('#' + button.getAttribute('data-index')).show().attr('tabindex', -1).focus();
player.updateLiveRegion(live_text);
}
if (document.querySelectorAll('#section_' + this.section + '_widget ' +
'button[aria-checked="true"]').length === this.count) {
// player.showNextButton();
player.completeSectionTask();
}
if (this.section !== 2) {
player.animateSVG('section_' + this.section + '_svg', 'g#' + this.id);
if (this.id === 'section_4_button_1' || this.id === 'section_5_button_1') {
player.animatePath('section_' + this.section + '_svg', 'g#path g');
}
}
$(document).scrollTop(player.scrollTop);
},
animateSVG: function (svg_id, svg_element) {
if (this.last_animate_svg_element !== undefined) {
$(this.getSVGContent(svg_id)).find(this.last_animate_svg_element).each(function () {
$(this).stop(true);
$(this).css({'opacity': 1});
});
if (this.last_animate_svg_path !== undefined && svg_element !== 'g#section_4_button_1' &&
svg_element !== 'g#section_5_button_1') {
$(this.getSVGContent(svg_id)).find(this.last_animate_svg_path).each(function () {
$(this).stop(true, false);
$(this).css({'opacity': 1});
});
this.last_animate_svg_path = undefined;
}
}
if (this.last_animate_svg_element !== svg_element) {
$(this.getSVGContent(svg_id)).find(svg_element).each(function () {
$(this).effect('pulsate', {times: 5}, 600);
});
this.last_animate_svg_element = svg_element;
}
else {
this.last_animate_svg_element = undefined;
}
},
animatePath: function (svg_id, svg_path) {
var duration = 500;
if (this.last_animate_svg_path !== undefined) {
$(this.getSVGContent(svg_id)).find(this.last_animate_svg_path).each(function () {
$(this).stop(true, false);
$(this).css({'opacity': 1});
});
}
if (this.last_animate_svg_path !== svg_path) {
$(this.getSVGContent(svg_id)).find(svg_path).each(function (index) {
$(this).delay(duration * index).effect('pulsate', {times: 1}, duration);
});
this.last_animate_svg_path = svg_path;
}
else {
this.last_animate_svg_path = undefined;
}
}
});
window.player = new ChapterPlayer();
player.dnd_setting = {
bounds: '#digfir_section_6',
dragItems: [
{
node: '#drag-item-0',
ariaLabel: 'drag-item-0',
data: 'item1',
className: 'custom-class',
groups: ['#ventral']
},
{
node: '#drag-item-1',
ariaLabel: 'drag-item-1',
data: 'item1',
className: 'custom-class',
groups: ['#nucleus']
},
{
node: '#drag-item-2',
ariaLabel: 'drag-item-2',
data: 'item2',
className: 'custom-class',
groups: ['#Dopamine_text']
},
{
node: '#drag-item-3',
ariaLabel: 'drag-item-3',
data: 'item2',
className: 'custom-class',
groups: ['#prefrontal']
},
{
node: '#drag-item-4',
ariaLabel: 'drag-item-4',
data: 'item1',
className: 'custom-class',
groups: ['#Dopamine_text']
},
{
node: '#drag-item-5',
ariaLabel: 'drag-item-5',
data: 'item2',
className: 'custom-class',
groups: ['#amygdala']
},
{
node: '#drag-item-6',
ariaLabel: 'drag-item-6',
data: 'item1',
className: 'custom-class',
groups: ['#prefrontal']
}
],
dropAreas: [
{
node: '#drop-area-1',
ariaLabel: 'Area 1',
data: 'item1',
className: 'custom-drop-area-class',
maxItemsInDropArea: 7,
initialAriaKeyboardDesc: 'Wanting'
},
{
node: '#drop-area-2',
ariaLabel: 'Area 1',
data: 'item2',
className: 'custom-drop-area-class',
maxItemsInDropArea: 7,
initialAriaKeyboardDesc: 'Liking'
}
],
helper: 'original',
handler: 'h2',
enabled: true,
snap: true,
commonDropAreasSettings: {
snapAlignParams: {
horizontalAlign: 'center',
verticalAlign: 'top',
withDroppedItemCSSMargins: true
}
},
tooltipParams: {
className: 'test',
position: 'start'
},
onCreate: function (data) {
},
onDragStart: function (data) {
$('.cg-dnd-tooltip').hide();
},
onDragMove: function (data) {
},
onDragStop: function (data, options) {
if (options.dropArea) {
player.user_answer = options.dragItem.node.textContent;
player.user_answer_data = options.dragItem.data;
if (options.dropArea.data === options.dragItem.data) {
player.user_answer_correct = true;
$(options.dropArea.node).height(options.dropArea.innerDragItemsCount * 50);
if (options.remainingDragItems.length === 0) {
player.section_7_complete = true;
}
}
else {
player.user_answer_correct = false;
options.dragItem.reset();
}
player.activity.submit_question(2);
}
},
onDragItemSelect: function (data, options) {
options.dropAreas[0].focus();
},
onDropAreaSelect: function (data, options) {
if (options.currentDraggedItem) {
options.currentDraggedItem.placeToDropArea({dropArea: options.dropArea});
}
else if (options.droppedItems.length) {
options.droppedItems[0].focus({delay: 0});
}
}
};
player.BUTTONS = {
section_5: {
waiting_button: {
id: 'waiting_button',
extra_class: 'standard_button toolbar_button prev_next_buttons control_button ui-button ui-widget ' +
'ui-state-default ui-corner-all ui-button-text-only ui-state-hover',
label: 'Waiting',
fn: 'player.showAnimation("waiting_feedback", "#Wanting", "brain")'
},
liking_button: {
id: 'liking_button',
extra_class: 'standard_button toolbar_button prev_next_buttons control_button ui-button ui-widget ' +
'ui-state-default ui-corner-all ui-button-text-only ui-state-hover',
label: 'Liking',
fn: 'player.showAnimation("liking_feedback", "#Liking", "brain")'
},
block: '#section_5_animation_block'
},
section_6: {
waiting_button: {
id: 'waiting_button2',
extra_class: 'standard_button toolbar_button prev_next_buttons control_button ui-button ui-widget ' +
'ui-state-default ui-corner-all ui-button-text-only ui-state-hover',
label: 'Waiting',
fn: 'player.showAnimation("waiting_feedback2", "#Wanting", "brain2")'
},
liking_button: {
id: 'liking_button2',
extra_class: 'standard_button toolbar_button prev_next_buttons control_button ui-button ui-widget ' +
'ui-state-default ui-corner-all ui-button-text-only ui-state-hover',
label: 'Liking',
fn: 'player.showAnimation("liking_feedback2", "#Liking", "brain2")'
},
block: '#section_6_animation_block'
}
};
player.section_with_widget = [2, 4, 5];
/***/ }),
/***/ 55:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 76:
/***/ (function(module, exports) {
var
kolb_ch12_02 = '' +
'A sagittal section of the rat\'s brain showing locations of brainstem, prefrontal ' +
'cortex, striatum, nucleus accumbens, ventral pallidum and amygdala a s well as a source of dopamine in the ' +
'ventral tegmentum. These all are components of wanting circuits. There are also several hotspots involved ' +
'into liking circuits. ' +
'' +
'' +
' ' +
' ' +
' ' +
'' +
'' +
'' +
' ‘Wanting’ ' +
' ' +
'‘Wanting’ ' +
' ' +
' ' +
'' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
' ' +
'' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
'‘Liking’ ' +
' ' +
'‘Liking’ ' +
' ' +
'' +
'' +
'Dopamine ' +
' ' +
'Dopamine ' +
' ' +
'' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
' ' +
'' +
'Amygdala ' +
'Nucleusaccumbens ' +
'Ventral pallidum ' +
'Prefrontal cortex ' +
'Striatrum ' +
'Brainstem ' +
' ' +
' ',
kolb_ch12_03 = '' +
'A sagittal section of the human brain showing locations of brainstem, prefrontal ' +
'cortex, striatum, nucleus accumbens, ventral pallidum and amygdala a s well as a source of dopamine in the ' +
'ventral tegmentum. These all are components of wanting circuits. There are also several hotspots involved ' +
'into liking circuits. ' +
'' +
' ' +
' ' +
'' +
' ' +
' ' +
'' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
'‘ ' +
'L ' +
'i ' +
'k ' +
'i ' +
'n ' +
'g ' +
'’ ' +
'‘ ' +
'L ' +
'i ' +
'k ' +
'i ' +
'n ' +
'g ' +
'’ ' +
' ' +
' ' +
'' +
'' +
'‘ ' +
'W ' +
'a ' +
'n ' +
't ' +
'i ' +
'n ' +
'g ' +
'’ ' +
'‘ ' +
'W ' +
'a ' +
'n ' +
't ' +
'i ' +
'n ' +
'g ' +
'’ ' +
' ' +
' ' +
'' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
'' +
'D ' +
'opamine ' +
' ' +
'D ' +
'opamine ' +
' ' +
'' +
'' +
'' +
'Striatum ' +
' ' +
'Striatum ' +
' ' +
'' +
'' +
'Am ' +
'y gdala ' +
' ' +
'Am ' +
'y gdala ' +
' ' +
'' +
'' +
'Nucleusa c cumbens ' +
' ' +
'Nucleusa c cumbens ' +
' ' +
'' +
'' +
'V e n t ' +
'r al pallidum' +
' ' +
' ' +
'V e n t ' +
'r al pallidum' +
' ' +
' ' +
'' +
'' +
'P r ef r o n tal ' +
'c o ' +
'r t e x ' +
' ' +
'P r ef r o n tal ' +
'c o r t e ' +
'x ' +
' ' +
'' +
'' +
'Br ' +
'ains t em ' +
' ' +
'Br ' +
'ains t em ' +
' ' +
' ' +
' ';
module.exports = {
kolb_ch12_02: kolb_ch12_02,
kolb_ch12_03: kolb_ch12_03
};
/***/ })
},[108]);
//# sourceMappingURL=neurosciactivities_ch12_1.js.map