.
*/
namespace Fisharebest\Webtrees;
use Fisharebest\Webtrees\Controller\LifespanController;
use Fisharebest\Webtrees\Functions\FunctionsPrint;
define('WT_SCRIPT_NAME', 'lifespan.php');
require './includes/session.php';
global $WT_TREE;
$controller = new LifespanController;
$controller
->restrictAccess(Module::isActiveChart($WT_TREE, 'lifespans_chart'))
->pageHeader()
->addExternalJavascript(WT_AUTOCOMPLETE_JS_URL);
?>
subtitle ?>
printTimeline() ?>
fillTimeline() ?>
addInlineJavascript("
autocomplete();
var scale = jQuery('#lifespan-scale'),
barHeight = jQuery('#lifespan-people').children().first().outerHeight();
jQuery('#lifespan-chart')
.width(scale.width())
.height(Math.ceil(jQuery('h4').outerHeight() + scale.height() + barHeight + $maxY));
jQuery('form').on('reset', function() {
jQuery('#clear').val(1);
jQuery(this).submit();
});
");