Skip to content

Commit 3d0554b

Browse files
committed
fixed indentation in examples
1 parent c10ce19 commit 3d0554b

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

entries/jQuery.mobile.activePage.xml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,33 @@
1414
padding: 10px;
1515
}
1616
]]></css>
17-
<html><![CDATA[ <div data-role="header">
18-
<h1>Page 1</h1>
19-
</div>
20-
<div data-role="content">
21-
<a href="#page2" data-role="button" data-inline="true">Go to Page 2</a>
22-
<input type="button" value="Which Page is this?" class="myButton" data-inline="true"/> <br>
23-
<div class="myResult">The result will be displayed here</div>
24-
</div>
17+
<html><![CDATA[<div data-role="header">
18+
<h1>Page 1</h1>
2519
</div>
20+
<div data-role="content">
21+
<a href="#page2" data-role="button" data-inline="true">Go to Page 2</a>
22+
<input type="button" value="Which Page is this?" class="myButton" data-inline="true"/> <br>
23+
<div class="myResult">The result will be displayed here</div>
24+
</div>
25+
</div>
2626
27-
<div data-role="page" id="page2">
28-
<div data-role="header">
29-
<h1>Page 2</h1>
30-
</div>
31-
<div data-role="content">
32-
<a href="#page1" data-role="button" data-inline="true">Go to Page 1</a>
33-
<input type="button" value="Which Page is this?" class="myButton" data-inline="true"/> <br>
34-
<div class="myResult">The result will be displayed here</div>
35-
</div>]]></html>
36-
<code><![CDATA[
37-
$(function() {
38-
$( ".myButton" ).on( "click", function() {
39-
var whichPageId = $.mobile.activePage.attr( "id" );
40-
$( ".myResult" ).html( "This is " + whichPageId );
41-
});
27+
<div data-role="page" id="page2">
28+
<div data-role="header">
29+
<h1>Page 2</h1>
30+
</div>
31+
<div data-role="content">
32+
<a href="#page1" data-role="button" data-inline="true">Go to Page 1</a>
33+
<input type="button" value="Which Page is this?" class="myButton" data-inline="true"/> <br>
34+
<div class="myResult">The result will be displayed here</div>
35+
</div>]]></html>
36+
<code><![CDATA[
37+
$(function() {
38+
$( ".myButton" ).on( "click", function() {
39+
var whichPageId = $.mobile.activePage.attr( "id" );
40+
$( ".myResult" ).html( "This is " + whichPageId );
4241
});
43-
]]></code>
42+
});
43+
]]></code>
4444
</example>
4545
<category slug="properties"/>
4646
</entry>

entries2html.xsl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
&lt;/head&gt;
1717
&lt;body&gt;
1818

19-
&lt;div data-role="page" id="page1"&gt;
19+
&lt;div data-role="page" id="page1"&gt;
2020
<xsl:value-of select="html/text()"/>
21-
&lt;/div&gt;
22-
<xsl:if test="code">
23-
&lt;script&gt;<xsl:value-of select="code/text()"/>&lt;/script&gt;</xsl:if>
21+
&lt;/div&gt;
22+
23+
<xsl:if test="code">&lt;script&gt;<xsl:value-of select="code/text()"/>&lt;/script&gt;</xsl:if>
2424

2525
&lt;/body&gt;
2626
&lt;/html&gt;

0 commit comments

Comments
 (0)