Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1090 from jdufresne/version
Browse files Browse the repository at this point in the history
Show the library versions on all example pages
  • Loading branch information
matthiask committed Sep 7, 2018
2 parents 0a67f67 + 8f65fc8 commit 6c3a69f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/templates/jquery/index.html
Expand Up @@ -10,7 +10,7 @@
<script type="text/javascript">
$(document).ready(function() {
$('p.hide').show();
$('#v').append($.fn.jquery);
$('#v').text($.fn.jquery);
});
</script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion example/templates/mootools/index.html
Expand Up @@ -10,11 +10,12 @@
<script type="text/javascript">
window.addEvent('domready', function() {
$$('p.hide').setStyle('display', 'block');
$('v').set('text', MooTools.version);
});
</script>
</head>
<body>
<h1>MooTools Test</h1>
<p class="hide">If you see this, MooTools is working.</p>
<p class="hide">If you see this, MooTools <strong id="v"></strong> is working.</p>
</body>
</html>
3 changes: 2 additions & 1 deletion example/templates/prototype/index.html
Expand Up @@ -10,11 +10,12 @@
<script type="text/javascript">
document.observe('dom:loaded', function() {
$('showme').removeClassName('hide');
$('v').textContent = Prototype.Version;
});
</script>
</head>
<body>
<h1>Prototype Test</h1>
<p class="hide" id="showme">If you see this, Prototype is working.</p>
<p class="hide" id="showme">If you see this, Prototype <strong id="v"></strong> is working.</p>
</body>
</html>

0 comments on commit 6c3a69f

Please sign in to comment.