PHP Classes

File: assets/js/app/tvshows/480mkv-com.js

Recommend this page to a friend!
  Classes of Ahmad Mustapha   Utility Web PHP API   assets/js/app/tvshows/480mkv-com.js   Download  
File: assets/js/app/tvshows/480mkv-com.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Utility Web PHP API
API to retrieve movie details and other resources
Author: By
Last change:
Date: 3 years ago
Size: 1,116 bytes
 

Contents

Class file image Download
$(function () { let $form = $('#form-femkvcom'); let $inputUrl = $form.find('input[name="femkvcom-url"]'); let $button = $form.find('button[type="submit"]'); let $linkExtractionStatus = $('#link-extraction-status'); $form.submit(function (event) { let link = performBasicLinkAction(event, $inputUrl, $button, $linkExtractionStatus); if (link) { fetchLinkData('tvshows/480mkv-com/' + link) .then(function (episodes) { $button.removeAttr('disabled').html('<i class="fa fa-search"></i> Fetch'); $inputUrl.removeAttr('disabled'); $linkExtractionStatus.html(''); episodes.forEach(function (episode) { $linkExtractionStatus.append(templateLinkExtractionEpisodeItem(episode)); }); }) .catch(function (error) { $button.removeAttr('disabled').html('<i class="fa fa-search"></i> Fetch'); $inputUrl.removeAttr('disabled'); }); } }); });