Skip to content

Commit 6c3a69f

Browse files
authored
Merge pull request #1090 from jdufresne/version
Show the library versions on all example pages
2 parents 0a67f67 + 8f65fc8 commit 6c3a69f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

example/templates/jquery/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script type="text/javascript">
1111
$(document).ready(function() {
1212
$('p.hide').show();
13-
$('#v').append($.fn.jquery);
13+
$('#v').text($.fn.jquery);
1414
});
1515
</script>
1616
</head>

example/templates/mootools/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
<script type="text/javascript">
1111
window.addEvent('domready', function() {
1212
$$('p.hide').setStyle('display', 'block');
13+
$('v').set('text', MooTools.version);
1314
});
1415
</script>
1516
</head>
1617
<body>
1718
<h1>MooTools Test</h1>
18-
<p class="hide">If you see this, MooTools is working.</p>
19+
<p class="hide">If you see this, MooTools <strong id="v"></strong> is working.</p>
1920
</body>
2021
</html>

example/templates/prototype/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
<script type="text/javascript">
1111
document.observe('dom:loaded', function() {
1212
$('showme').removeClassName('hide');
13+
$('v').textContent = Prototype.Version;
1314
});
1415
</script>
1516
</head>
1617
<body>
1718
<h1>Prototype Test</h1>
18-
<p class="hide" id="showme">If you see this, Prototype is working.</p>
19+
<p class="hide" id="showme">If you see this, Prototype <strong id="v"></strong> is working.</p>
1920
</body>
2021
</html>

0 commit comments

Comments
 (0)