Skip to content

Commit

Permalink
Small copy edit tweaks to the ID/class name test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansmith committed May 16, 2011
1 parent 4042910 commit d7fe259
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_class.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// Find all instances of range_NUMBER and kill 'em.
html.className = html.className.replace(/(\s+)?range_\d/g, '');

// Check for valid range.
if (i > -1) {
// Add class="range_NUMBER"
html.className += ' range_' + i;
Expand Down Expand Up @@ -48,11 +49,13 @@

* {
font-family: sans-serif;
line-height: 1.5;
}

.range_test {
/* Default */
display: none;
font-weight: bold;
}

html.range_0 #p_0 {
Expand Down Expand Up @@ -87,6 +90,10 @@
</style>
</head>
<body>
<p>
This page demonstrates how a callback function can be<br />
used with Adapt.js to change the class of the HTML tag.
</p>
<p class="range_test" id="p_0">
Visible at: 0px to 760px
</p>
Expand Down
6 changes: 6 additions & 0 deletions test_id.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@

* {
font-family: sans-serif;
line-height: 1.5
}

.range_test {
/* Default */
display: none;
font-weight: bold;
}

html#range_0 #p_0 {
Expand Down Expand Up @@ -79,6 +81,10 @@
</style>
</head>
<body>
<p>
This page demonstrates how a callback function can be<br />
used with Adapt.js to change the ID of the HTML tag.
</p>
<p class="range_test" id="p_0">
Visible at: 0px to 760px
</p>
Expand Down

0 comments on commit d7fe259

Please sign in to comment.