diff options
author | Marvin Borner | 2018-08-06 22:56:24 +0200 |
---|---|---|
committer | Marvin Borner | 2018-08-06 22:56:24 +0200 |
commit | 05b2f4b0ad4a90cfc4d8c46fde3795cc1f0a032d (patch) | |
tree | 7eef31f08f2940f7d1917aae3d8b92f8222aab1f /assets/js/main.js | |
parent | 176a7b431df65d12895e8eaf46f040872434c0af (diff) |
Reworked whole layout with a modern dashboard look (not finished)
Diffstat (limited to 'assets/js/main.js')
-rwxr-xr-x | assets/js/main.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/assets/js/main.js b/assets/js/main.js index 14bae8f..42ff881 100755 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -209,15 +209,6 @@ $(() => { RenderDayTimeChart(AverageWatchTimeOccurrence); RenderMostWatchedChart(SortedTitleOccurrenceCounter, TitleWatchTime); RenderHeatmap(HeatmapDates); - - // create scroll events - new Waypoint({ - element: $("canvas#MostWatchedChart"), - handler: direction => { - $("canvas#MostWatchedChart").fadeTo(1000, direction === "down" ? 1 : 0); - }, - offset: $("canvas#MostWatchedChart").height() - }); } /** @@ -374,11 +365,11 @@ $(() => { type: "POST" }).done(result => { const TopInformation = JSON.parse(result); - $(".MostWatchedOverview .MostWatchedPoster").attr( + $(".MostWatchedOverview > .MostWatchedPoster").attr( "src", `https://image.tmdb.org/t/p/w300${TopInformation.poster_path}` ); - $(".MostWatchedOverview .OverviewText .Description").text( + $(".MostWatchedOverview > .Description").text( TopInformation.overview ); console.log(TopInformation); |