{% extends 'base.html' %}
{% block pagecontent %}
dataset pickle |
{% if header['dataset_pickle'] is not None %}
download file |
{% else %}
not available yet... |
{% end %}
dataset table CSV |
{% if header['dataset_csv'] is not None %}
download file |
{% else %}
not available yet... |
{% end %}
light curves ZIP |
{% if header['lczipfpath'] is not None %}
download file |
{% else %}
not available yet... |
{% end %}
column key |
title |
description |
numpy dtype |
{% end %}
{% block pagejs_modules %}
{% end %}
{% block pagejs %}
$(document).ready(function() {
// UI action setup
lcc_ui.action_setup();
// format all the moments
$('.moment-format').each(function (index, elem) {
// get the text we need
var mt = moment($(this).text()).fromNow();
$(this).html($(this).text() + ' (' + mt + ')');
});
// start the dataset check every 15 seconds and load if available
lcc_datasets.get_dataset('{{ setid }}', 15.0);
// on window resize, make sure to stick the table to the bottom again
$(window).on('resize', function (evt) {
// calculate the offset
var datacontainer_offset = $('.datatable-container').offset().top;
$('.datatable-container').height($(window).height() -
datacontainer_offset);
// make the table div bottom stick to the bottom of the container
// so we can have a scrollbar at the bottom
$('.dataset-table')
.height($('.datatable-container').height());
});
// also listen on any collapse events so we can set the height
// correctly
$('.accordion').on('shown.bs.collapse hidden.bs.collapse', function (evt) {
// calculate the offset
var datacontainer_offset = $('.datatable-container').offset().top;
$('.datatable-container').height($(window).height() -
datacontainer_offset);
// make the table div bottom stick to the bottom of the container
// so we can have a scrollbar at the bottom
$('.dataset-table')
.height($('.datatable-container').height());
});
});
{% end %}