Skip to content

Commit 4ccec3d

Browse files
Updated demo teplate page.
1 parent f56ba38 commit 4ccec3d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/demos/_demo-template/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@
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 -->

0 commit comments

Comments
 (0)