var Player_chapter = Player_subtype.extend({
initialize_sections: function() {
this._super();
// chapter-specific stuff here
},
initialize2: function() {
this._super();
// chapter-specific stuff here
$('option').each(function() {
var $option = $(this)
var option_txt = $option.text();
if (match = option_txt.match(/(Diocletian and Constantine attempt to reconstruct the )(empire)/)) {
$option.html(match[1] + '
' + match[2]);
}
else if (match = option_txt.match(/(Julio-Claudian emperors; expansion into northern and )(western Europe)/)) {
$option.html(match[1] + '
' + match[2]);
}
else if (match = option_txt.match(/(Antonine emperors; prosperity and the height of the pax )(Romana)/)) {
$option.html(match[1] + '
' + match[2]);
}
else if (match = option_txt.match(/(Senate grants Octavian the title “Augustus”; date marks the )(beginning of the Roman Empire)/)) {
$option.html(match[1] + '
' + match[2]);
}
});
}
});
player = new Player_chapter();