File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 14
14
padding: 10px;
15
15
}
16
16
]]> </css >
17
- <html ><![CDATA[
18
- <div data-role="header">
17
+ <html > <![CDATA[ <div data-role="header">
19
18
<h1>Page 1</h1>
20
19
</div>
21
20
<div data-role="content">
24
23
<div class="myResult">The result will be displayed here</div>
25
24
</div>
26
25
</div>
26
+
27
27
<div data-role="page" id="page2">
28
28
<div data-role="header">
29
29
<h1>Page 2</h1>
32
32
<a href="#page1" data-role="button" data-inline="true">Go to Page 1</a>
33
33
<input type="button" value="Which Page is this?" class="myButton" data-inline="true"/> <br>
34
34
<div class="myResult">The result will be displayed here</div>
35
- </div>
36
- ]]> </ html >
37
- < code > < ![CDATA[
38
- $( function() {
39
- $( ".myButton" ).on ( "click", function() {
40
- var whichPageId = $.mobile.activePage.attr ( "id" );
41
- $( ".myResult" ).html( "This is " + whichPageId );
35
+ </div>]]> </ html >
36
+ < code >
37
+ < ![CDATA[$(function() {
38
+ $( ".myButton" ).on( "click", function() {
39
+ var whichPageId = $.mobile.activePage.attr ( "id" );
40
+ $( ".myResult" ).html ( "This is " + whichPageId );
41
+ } );
42
42
});
43
- });
44
- ]]> </code >
43
+ ]]> </code >
45
44
</example >
46
45
<category slug =" properties" />
47
46
</entry >
Original file line number Diff line number Diff line change 16
16
< /head>
17
17
< body>
18
18
19
- < div data-role="page" id="page1">
19
+ < div data-role="page" id="page1">
20
20
<xsl : value-of select =" html/text()" />
21
- < /div> <xsl : if test =" code" >
22
- < script> <xsl : value-of select =" code/text()" />< /script> </xsl : if >
21
+ < /div>
22
+ <xsl : if test =" code" >
23
+ < script> <xsl : value-of select =" code/text()" />< /script> </xsl : if >
23
24
24
25
< /body>
25
26
< /html>
You can’t perform that action at this time.
0 commit comments