This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tommy Leunen
committed
Feb 14, 2016
1 parent
628130f
commit c15e172
Showing
6 changed files
with
20 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
<link rel="stylesheet" href="prism.css"> | ||
<script src="https://npmcdn.com/[email protected]/dist/react.js"></script> | ||
<script src="https://npmcdn.com/[email protected]/dist/react-dom.js"></script> | ||
<script src="https://npmcdn.com/dialog-polyfill/dialog-polyfill.js"></script> | ||
<link rel="stylesheet" type="text/css" href="https://npmcdn.com/dialog-polyfill/dialog-polyfill.css" /> | ||
<style> | ||
pre { | ||
position: relative; | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ const DOC_PAGES_DIR = path.join('docs', 'pages'); | |
const DOC_PAGES_DIR_OUTPUT = path.join('docs', 'pages', 'html'); | ||
|
||
function getCodePenForm(jsx, entireClass) { | ||
const prefix = 'for(const component in ReactMDL) { if(ReactMDL.hasOwnProperty(component)) { window[component] = ReactMDL[component]; } }'; | ||
const prefix = 'for(const component in ReactMDL) { if(ReactMDL.hasOwnProperty(component)) { window[component] = ReactMDL[component]; } } dialogPolyfill.registerDialog(document.querySelector("dialog"));'; | ||
const suffix = "ReactDOM.render(<Demo />, document.getElementById('demo'))"; | ||
const code = (entireClass) ? jsx : ` | ||
const Demo = (props) => { | ||
|
@@ -33,8 +33,8 @@ ${suffix}`; | |
css: '@import url(https://fonts.googleapis.com/icon?family=Material+Icons);', | ||
js: JS, | ||
js_pre_processor: 'babel', | ||
css_external: 'https://npmcdn.com/react-mdl/extra/material.css', | ||
js_external: 'https://npmcdn.com/[email protected]/dist/react.js;https://npmcdn.com/[email protected]/dist/react-dom.js;https://npmcdn.com/react-mdl/extra/material.js;https://npmcdn.com/react-mdl/out/ReactMDL.js' | ||
css_external: 'https://npmcdn.com/react-mdl/extra/material.css;https://npmcdn.com/dialog-polyfill/dialog-polyfill.css', | ||
js_external: 'https://npmcdn.com/[email protected]/dist/react.js;https://npmcdn.com/[email protected]/dist/react-dom.js;https://npmcdn.com/react-mdl/extra/material.js;https://npmcdn.com/react-mdl/out/ReactMDL.js;https://npmcdn.com/dialog-polyfill/dialog-polyfill.js' | ||
}; | ||
|
||
const JSONstring = JSON.stringify(data) | ||
|
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