File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
docs/demos/_demo-template Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1616 < script >
1717 // Script here
1818 </ script >
19+ < script id ="myScript ">
20+ // myScript
21+ </ script >
1922 < style >
2023 /* Custom styles here */
2124 </ style >
25+ < style id ="myStyle ">
26+ /* myStyle */
27+ </ style >
2228</ head >
2329< body >
2430< div data-role ="page ">
@@ -44,12 +50,12 @@ <h3>Subheading</h3>
4450
4551 < h3 > Subheading</ h3 >
4652
47- < div data-demo-html ="true " data-demo-js ="true " data-demo-css ="true ">
53+ < div data-demo-html ="true " data-demo-js ="#myScript " data-demo-css ="#myStyle ">
4854 <!-- data-demo-html="true" to include the markup in this div in the source code view -->
49- <!-- data-demo-js="true " to include scripts from the head in the source code view -->
50- <!-- data-demo-css="true " to include style from the head in the source code view -->
55+ <!-- data-demo-js="myScript " to include a specific script from the head in the source code view -->
56+ <!-- data-demo-css="myStyle " to include a specific style from the head in the source code view -->
5157 </ div > <!--/demo-html -->
52-
58+
5359 </ div > <!--/content-primary -->
5460
5561 </ div > <!-- /content -->
You can’t perform that action at this time.
0 commit comments