Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed the description to match te 2.0 structure, added some new opt…
…ions, fixed Class name
- Loading branch information
1 parent
1671030
commit 723d5e4
Showing
10 changed files
with
63 additions
and
55 deletions.
There are no files selected for viewing
13 changes: 7 additions & 6 deletions
13
_includes/examples/hashTabber-example-code-js-options.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
var tabber = new hashTabber(options = { | ||
activeClass: 'showMe', | ||
container: '.testTabber', | ||
data: '.testTabber-data', | ||
nav: '.testTabber-nav', | ||
tab: 'data-startingTab', | ||
var tabber = new HashTabber(options = { | ||
classActive: 'active', | ||
classData: 'hashTabber-data', | ||
classNav: 'hashTabber-nav', | ||
dataDefault: 'data-hashtabber-default', | ||
dataId: 'data-hashtabber-id', | ||
dataPair: 'data-hashtabber-pair', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
var tabber = new hashTabber(); | ||
var tabber = new HashTabber(); | ||
tabber.run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
<ol class="hashTabber-nav" data-hashtabber-id="dinosaurs" data-hashtabber-default="pterosaur"> | ||
<h2>Species:</h2> | ||
{% for dinosaur in site.data.dinosaurs %} | ||
<li data-hashtabber-pair="{{ dinosaur.slug }}"> | ||
<a>{{ dinosaur.name }}</a> | ||
</li> | ||
{% endfor %} | ||
</ol><!-- | ||
--><ol class="hashTabber-data" data-hashtabber-id="dinosaurs"> | ||
{% for dinosaur in site.data.dinosaurs %} | ||
<li data-hashtabber-pair="{{ dinosaur.slug }}"> | ||
<article> | ||
<h3>{{ dinosaur.name}}</h3> | ||
<p>{{ dinosaur.description }}</p> | ||
<p><a href="{{ dinosaur.url }}" target="_blank">Read more about {{ dinosaur.name }}</a></p> | ||
</article> | ||
</li> | ||
{% endfor %} | ||
</ol> | ||
<section class="hashTabber-sandstone-wrapper"> | ||
<ol class="hashTabber-nav hashTabber-sandstone" data-hashtabber-id="dinosaurs" data-hashtabber-default="pterosaur"> | ||
<h2>Species:</h2> | ||
{% for dinosaur in site.data.dinosaurs %} | ||
<li data-hashtabber-pair="{{ dinosaur.slug }}"> | ||
<a>{{ dinosaur.name }}</a> | ||
</li> | ||
{% endfor %} | ||
</ol><!-- | ||
--><ol class="hashTabber-data hashTabber-sandstone" data-hashtabber-id="dinosaurs"> | ||
{% for dinosaur in site.data.dinosaurs %} | ||
<li data-hashtabber-pair="{{ dinosaur.slug }}"> | ||
<article> | ||
<h3>{{ dinosaur.name}}</h3> | ||
<p>{{ dinosaur.description }}</p> | ||
<p><a href="{{ dinosaur.url }}" target="_blank">Read more about {{ dinosaur.name }}</a></p> | ||
</article> | ||
</li> | ||
{% endfor %} | ||
</ol> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.