-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from ugyballoons/table-creation
Add table of metadata to listing pages
- Loading branch information
Showing
37 changed files
with
720 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ pytest | |
pytest-aiohttp | ||
python-dateutil | ||
types-python-dateutil | ||
types-requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
(function($){ | ||
/* global jQuery */ | ||
|
||
(function ($) { | ||
// click to retrieve & display data for day: | ||
$('.day').click(function(){ | ||
let date = this.dataset.date; | ||
let url_path = document.location.pathname; | ||
$('.current-movie').load(url_path + "/" + date); | ||
}); | ||
$('.year-title').click(function(){ | ||
$year_to_open = $(this).parent('.year'); | ||
if ($year_to_open.hasClass('open')) return; | ||
$('.day').click(function () { | ||
const date = this.dataset.date | ||
const urlPath = document.location.pathname | ||
$('.current-movie').load(urlPath + '/' + date) | ||
}) | ||
$('.year-title').click(function () { | ||
const $yearToOpen = $(this).parent('.year') | ||
if ($yearToOpen.hasClass('open')) return | ||
$('.year.open').removeClass('open').addClass('closed') | ||
$year_to_open.removeClass('closed').addClass('open'); | ||
}); | ||
$yearToOpen.removeClass('closed').addClass('open') | ||
}) | ||
})(jQuery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
(function($){ | ||
let url_path = document.location.pathname; | ||
let currentImage = $('.current-still'); | ||
let currentMovie = $('.current-movie') | ||
/* global jQuery */ | ||
|
||
setInterval(function refresh(){ | ||
$.get(url_path + "/update/image", function(data){ | ||
if (data.channel == "image"){ | ||
currentImage.find('img').attr({'src': data.url}) | ||
currentImage.find('a').attr({'href': data.url}) | ||
currentImage.find('.subheader h3').text(`${data.date} : Image ${data.seq}`); | ||
(function ($) { | ||
const urlPath = document.location.pathname | ||
const currentImage = $('.current-still') | ||
const currentMovie = $('.current-movie') | ||
|
||
setInterval(function refresh () { | ||
$.get(urlPath + '/update/image', function (data) { | ||
if (data.channel === 'image') { | ||
currentImage.find('img').attr({ src: data.url }) | ||
currentImage.find('a').attr({ href: data.url }) | ||
currentImage.find('.subheader h3').text(`${data.date} : Image ${data.seq}`) | ||
currentImage.find('.desc').text(data.name) | ||
} | ||
}); | ||
}, 5000); | ||
}) | ||
}, 5000) | ||
|
||
let videoCheckLatest = function() { | ||
video = currentMovie.find("video")[0]; | ||
$.get(url_path + "/update/monitor", function(data){ | ||
let currentMovieUrl = $(video).find('source').attr('src'); | ||
if (data.channel == "monitor" && data.url != currentMovieUrl) { | ||
$(video).find('source').attr({'src': data.url}); | ||
currentMovie.find('.movie-date').text(data.date); | ||
currentMovie.find('.movie-number').text(data.seq) | ||
currentMovie.find('.desc').text(data.name); | ||
video.load(); | ||
const videoCheckLatest = function () { | ||
const video = currentMovie.find('video')[0] | ||
$.get(urlPath + '/update/monitor', function (data) { | ||
const currentMovieUrl = $(video).find('source').attr('src') | ||
if (data.channel === 'monitor' && data.url !== currentMovieUrl) { | ||
$(video).find('source').attr({ src: data.url }) | ||
currentMovie.find('.movie-date').text(data.date) | ||
currentMovie.find('.movie-number').text(data.seq) | ||
currentMovie.find('.desc').text(data.name) | ||
video.load() | ||
} | ||
}); | ||
}) | ||
} | ||
|
||
setInterval(videoCheckLatest, 5000); | ||
|
||
setInterval(videoCheckLatest, 5000) | ||
})(jQuery) |
Oops, something went wrong.