Skip to content

Commit 8d2a7e0

Browse files
committed
📝 added jsdoc documentation
1 parent 87da4fd commit 8d2a7e0

5 files changed

Lines changed: 30 additions & 0 deletions

File tree

js/dataLoader.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* js/dataLoader.js
3+
* Handles loading of data files: films, series, collections, and notifications.
4+
* @module dataLoader
5+
*/
6+
17
/**
28
* Fetches all necessary data files: films, series, and collections.
39
* @returns {Object} An object containing films, series, and collections data.

js/display.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* js/display.js
3+
* Handles the display and rendering of media items, hero section, details overlay, collections, and notifications.
4+
* @module display
5+
*/
6+
17
import { playVideo } from './utils.js';
28

39
let activeDetailItem = null;

js/errorHandler.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* js/errorHandler.js
3+
* Handles error display and developer tools prevention.
4+
* @module errorHandler
5+
*/
6+
17
const msg = localStorage.getItem("streamit_error");
28
const errorMessageEl = document.getElementById("error-message");
39
const errorCodeEl = document.getElementById("error-code");

js/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* js/main.js
3+
* Main application logic for routing, filtering, searching, and initializing the app.
4+
* @module main
5+
*/
6+
17
import { fetchAllData, fetchNotifs } from './dataLoader.js';
28
import { setupHero, renderHorizontalRow, renderGrid, renderNotifs, openDetails, closeDetails, playCurrentMedia, renderCollections } from './display.js';
39
import { playVideo, closeVideo, toggleNotifs, toggleMobileMenu, toggleMobileSearch, showLoader, hideLoader } from './utils.js';

js/utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* js/utils.js
3+
* Utility functions for video playback, UI toggles, loader management, and video player enhancements.
4+
* @module utils
5+
*/
6+
17
const PROGRESS_PREFIX = 'streamit:progress:';
28
let currentVideoSrc = '';
39

0 commit comments

Comments
 (0)