openstack-manuals/www/templates/script_footer.tmpl
KATO Tomoyuki a497481199 Make script for superuser image variable
Change-Id: I0fc4dfcb63341fc946225cdeba0df3c613377dd6
Closes-Bug: 1421153
2015-02-12 21:53:59 +09:00

26 lines
1.1 KiB
Cheetah

<!-- jQuery Version 1.11.0 -->
<script type="text/javascript" src="{{ scriptdir }}jquery-1.11.0.js"></script>
<!-- Bootstrap Core JavaScript -->
<script type="text/javascript" src="{{ scriptdir }}bootstrap.min.js"></script>
<!-- The rest of the JS -->
<script type="text/javascript" src="{{ scriptdir }}navigation.js"></script>
<!-- Docs JS -->
<script type="text/javascript" src="{{ scriptdir }}docs.js"></script>
<!-- Popovers -->
<script type="text/javascript" src="{{ scriptdir }}webui-popover.js"></script>
<!-- Javascript for page -->
<script type="text/javascript">
// Change character image on refresh
// Add file names and captions to doc-characters.json
$.getJSON("{{ scriptdir }}/doc-characters.json", function(data) {
var item = data.images[Math.floor(Math.random()*data.images.length)];
$('<img src="{{ scriptdir }}../images/docs/' + item.image + '">').appendTo('#superuser-img');
$('<p>' + item.caption + '<strong>OpenStack Operator</strong></p>').appendTo('#superuser-img');
});
</script>