Browse Source

docs : tweaks

pull/14/head
David DeSandro 14 years ago
parent
commit
03660c4e56
  1. 2
      _includes/element-partial.html
  2. 8
      _includes/option-buttons.js

2
_includes/element-partial.html

@ -2,6 +2,6 @@
<div class="element {% for cat in element.categories %}{{ cat }} {% endfor %} " data-symbol="{{ element.symbol }}" data-category="{{ element.categories[0] }}">
<p class="number">{{ element.number }}</p>
<h3 class="symbol">{{ element.symbol }}</h3>
<h2 class="name">{{ element.name }} {{ w_class }}</h2>
<h2 class="name">{{ element.name }}</h2>
<p class="weight">{{ element.weight }}</p>
</div>

8
_includes/option-buttons.js

@ -4,11 +4,9 @@
var $this = $(this);
// don't proceed if already selected
if ( $this.hasClass('selected') ) {
return;
if ( !$this.hasClass('selected') ) {
$this.parents('.option-set').find('.selected').removeClass('selected');
$this.addClass('selected');
}
$this.parents('.option-set').find('.selected').removeClass('selected');
$this.addClass('selected');
});

Loading…
Cancel
Save