Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise story events and DOM structure, add tests
The goal is to make this more self-contained. <style> elements are inside the story DOM element, and the actual passage is now in a separate .passage element. That way, it's possible to remove a story from the DOM wholesale. Events have been revised to match the namespacing approach that Bootstrap and Zurb Foundation take.
- Loading branch information
Chris Klimas
committed
Apr 1, 2017
1 parent
910f88d
commit 081d906
Showing
6 changed files
with
202 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
describe('The bootstrap', function() { | ||
it('makes jQuery globally available', function() { | ||
expect(window.jQuery).toBeDefined(); | ||
expect(window.$).toBeDefined(); | ||
}); | ||
|
||
it('makes Underscore globally available', function () { | ||
expect(window._).toBeDefined(); | ||
}); | ||
|
||
it('makes Marked globally available', function () { | ||
expect(window.marked).toBeDefined(); | ||
}); | ||
|
||
it('makes Story globally available', function () { | ||
expect(window.Story).toBeDefined(); | ||
}); | ||
|
||
it('makes Passage globally available', function () { | ||
expect(window.Passage).toBeDefined(); | ||
}); | ||
|
||
it('loads the story stored in <tw-storydata> and starts it'); | ||
}); |
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.