From 24539738ed625dee198b5d35535d955064b325aa Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Wed, 13 Mar 2024 10:52:15 -0300 Subject: [PATCH] Now the shorts AI can create portrait and square shorts --- objects/Page.php | 12 +- objects/functionExec.php | 43 +++++- objects/functions.php | 42 +++++- objects/video.php | 7 +- plugin/AI/AI.php | 7 +- plugin/AI/cutVideo.json.php | 4 +- plugin/AI/footer.php | 2 +- plugin/AI/tabs/shorts.ajax.php | 5 +- plugin/AI/tabs/shorts.php | 4 +- plugin/PlayerSkins/mediaSession.php | 2 +- plugin/TheaterButton/script.js | 14 +- view/css/main.css | 25 ++-- view/help.php | 213 ++++++++++++++-------------- view/include/navbarMenuAndLogo.php | 2 +- view/js/ajaxLoad.js | 136 ++++++++++++------ 15 files changed, 333 insertions(+), 185 deletions(-) diff --git a/objects/Page.php b/objects/Page.php index 36558a53f5..b547cba828 100644 --- a/objects/Page.php +++ b/objects/Page.php @@ -128,16 +128,12 @@ class Page { $rtl = 'rtl'; } echo "bodyClass}\">"; - //echo '
'; - //$loaderParts = Layout::getLoaderDefault(); - //echo $loaderParts['css']; - //echo $loaderParts['html']; - //echo '
'; - //echo '
  • - tags with class .ajaxLoad + $('a.ajaxLoad').each(function () { + $(this).on('click', function (event) { + event.preventDefault(); // Prevent default click action + console.log('a.ajaxLoad clicked'); + var url = $(this).attr('href'); + queryAndProcessURL(url); + }); + }); +} + +$(function () { + makeAjaxLoad(); +}); \ No newline at end of file