|
@@ -72,4 +72,16 @@ $(document).ready(function () {
|
|
|
$this.wrapInner('<b/>');
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $('p').each(function () {
|
|
|
+ var $this = $(this);
|
|
|
+ var sClass = $this.attr('class') ? $this.attr('class') : '';
|
|
|
+ var aClass = sClass.split(' ');
|
|
|
+ // In a more general case, we would also need to :
|
|
|
+ // - remove multiple spacers
|
|
|
+ // - order and deduplicate existing classes.
|
|
|
+ aClass.push('inhabitants');
|
|
|
+ sClass = aClass.join(' ').trim();
|
|
|
+ $this.attr('class', sClass);
|
|
|
+ });
|
|
|
});
|