-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infrastructure: Add support for opening examples in CodePen (pull #1110)
Resolves issue #1102 by adding support to dynamically add an "Open in Codepen" button adjacent to the heading above an example. The examples/js/examples.js script uses the Codepen POST API to prefill its HTML/CSS/JS inputs. The script expects a specific class on the heading of the example and requires that IDs for specific elements be passed to the scourceCode.add method call. Co-authored-by: Matt King <[email protected]> Co-authored-by: Zoë Bijl <[email protected]>
- Loading branch information
1 parent
c57c012
commit 32ca9d3
Showing
3 changed files
with
181 additions
and
4 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