webpackJsonp([8],{
/***/ 18:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(46);
var ch1_player = __webpack_require__(72);
window.player = new ch1_player();
/***/ }),
/***/ 46:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 72:
/***/ (function(module, exports, __webpack_require__) {
var project_player = __webpack_require__(0);
var platform = __webpack_require__(1).run_on;
var ch1_player = project_player.extend({
initialize2: function () {
this._super();
this.patternDone = false;
var $infoBlock = $('[data-block_type="infographic_text"]');
var focus_text = $infoBlock.text();
if (platform.android || platform.ios) {
$infoBlock.replaceWith($('
' + focus_text + '' +
'Map showing gini indexes. Focus on each country to see the gini index ' +
'and current life expectancy for that location. If you use keyboard use arrows to navigate the map.' +
'
'));
}
else {
$infoBlock.replaceWith($('' + focus_text + '
'));
}
var $skipLink = $('.skipMapLink');
if (platform.mobile) {
$skipLink.attr('tabIndex', '0').attr('class', $skipLink.attr('class') + ' visually-hidden');
$skipLink.click(function (e) {
for (var i = 0; i < 3; i++) {
setTimeout(function () {
$('.prev_button').focus();
}, 100);
}
});
}
else {
$skipLink.hide();
}
},
show_section: function (section_to_show) {
this._super(section_to_show);
if (this.section_currently_showing == 1 && !this.patternDone) {
this.patternDone = true;
var id = setInterval(function () {
if (window.getRussia) {
console.log(window.getRussia().getBoundingClientRect());
window.pattern.createPatternsArray(window.pathArray);
clearInterval(id);
}
}, 100);
}
}
});
module.exports = ch1_player;
/***/ }),
/***/ 89:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(18);
/***/ })
},[89]);
//# sourceMappingURL=bergerls11e_dataconnections_ch1.js.map