Forgot the image block html template
This commit is contained in:
parent
ab3655ff37
commit
32a80e5d7f
17
web_client/application/views/image_block.html.php
Normal file
17
web_client/application/views/image_block.html.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<script>
|
||||
$("#image_block").ready(function() {
|
||||
setTimeout("reloadRandomImage();", 10000); // Change the random image block
|
||||
});
|
||||
|
||||
function reloadRandomImage() {
|
||||
$.get("/g3_client/index.php/g3_client/block/random", function(data, textStatus) {
|
||||
$("#image_block").html(data);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<h3>Random Image</h3>
|
||||
<a href="<?= $path ?>">
|
||||
<img src="<?= $src ?>" alt="<?= $title ?>" />
|
||||
</a>
|
||||
<p><?= $title ?></p>
|
Reference in New Issue
Block a user