1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/3.0/modules/tag_cloud_html5/views/tag_cloud_html5_block.html.php

39 lines
1.1 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<!--[if lt IE 9]><?= $theme->script("excanvas.compiled.js"); ?><![endif]-->
<script type="text/javascript">
$(document).ready(function() {
// set g-tag-cloud-html5-canvas size
$("#g-tag-cloud-html5-canvas").attr({
'width': $("#g-tag-cloud-html5").width(),
'height': $("#g-tag-cloud-html5").width()*<?= $height ?>
});
// start g-tag-cloud-html5-canvas
if(!$('#g-tag-cloud-html5-canvas').tagcanvas(<?= $options ?>,'g-tag-cloud-html5-tags')) {
// something went wrong, hide the canvas container g-tag-cloud-html5
$('#g-tag-cloud-html5').hide();
};
// tag autocomplete for g-add-tag-form
$("#g-add-tag-form input:text").autocomplete(
"<?= url::site("/tags/autocomplete") ?>", {
max: 30,
multiple: true,
multipleSeparator: ',',
cacheLength: 1}
);
});
</script>
<div id="g-tag-cloud-html5">
<canvas id="g-tag-cloud-html5-canvas">
<? echo t('Tag cloud loading...'); ?>
</canvas>
</div>
<div id="g-tag-cloud-html5-tags">
<?= $cloud ?>
</div>
<?= $wholecloud_link ?>
<?= $form ?>