Merge "Make script for superuser image variable"
This commit is contained in:
commit
32abd0a953
@ -82,13 +82,6 @@ $('a').click(function(){
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Change character image on refresh
|
|
||||||
// Add file names and captions to doc-characters.json
|
|
||||||
$.getJSON('common/js/doc-characters.json', function(data) {
|
|
||||||
var item = data.images[Math.floor(Math.random()*data.images.length)];
|
|
||||||
$('<img src="common/images/docs/' + item.image + '">').appendTo('#superuser-img');
|
|
||||||
$('<p>' + item.caption + '<strong>OpenStack Operator</strong></p>').appendTo('#superuser-img');
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,3 +14,12 @@
|
|||||||
<script type="text/javascript" src="{{ scriptdir }}webui-popover.js"></script>
|
<script type="text/javascript" src="{{ scriptdir }}webui-popover.js"></script>
|
||||||
|
|
||||||
<!-- Javascript for page -->
|
<!-- 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user