Fixed: Videos within a profile wouldn't display the proper play video link
Added: Hovering over the icon or Info button for 4 seconds will automatically open sidebar
This commit is contained in:
Squidly271 2022-05-22 14:14:52 -04:00
parent 616fa509c9
commit b24362bc2e
4 changed files with 21 additions and 4 deletions

View File

@ -682,6 +682,17 @@ $(function(){
removeApp(path,name);
});
var iconHoverTimer;
$("body").on("mouseover",".ca_displayIcon,.infoButton",function() {
var icon = this;
iconHoverTimer = setTimeout(function() {
icon.click();
},4000);
});
$("body").on("mouseout",".ca_displayIcon,.infoButton",function() {
clearTimeout(iconHoverTimer);
});
/* Everything is now initialized. This is the start of the actual "real" code */
if ( "<?=$firstRun?>" == "true" ) {
$(".ca_templatesDisplay").hide();

View File

@ -1,4 +1,4 @@
adf99b88870ea8f7dbb8f6960495fb57 ./Apps.page
ec6a7223b0a9d028724db44a1d81a67f ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
@ -21,4 +21,4 @@ da3b4f9b73c5c3bf65be6c42d68b51f9 ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
ce8e45452d3b63b5943b6f39c817bbf9 ./skins/Narrow/css.php
c4d6ce8de3baff1c9de2b7f348b2f340 ./skins/Narrow/skin.html
21a0c78b29b87cac7c2ae06f15eebaa2 ./skins/Narrow/skin.php
2905a26b3e834934a0cfcea6dae94667 ./skins/Narrow/skin.php

View File

@ -860,16 +860,22 @@ function getRepoDescriptionSkin($repository) {
$t .= "<div>";
if ( $repo['Photo'] ) {
$photos = is_array($repo['Photo']) ? $repo['Photo'] : [$repo['Photo']];
$t .= "<div>";
foreach ($photos as $shot) {
$t .= "<a class='screenshot' href='".trim($shot)."'><img class='screen' src='".trim($shot)."' onerror='this.style.display=&quot;none&quot;'></img></a>";
}
$t .= "</div>";
}
if ( $repo['Video'] ) {
$videos = is_array($repo['Video']) ? $repo['Video'] : [$repo['Video']];
$vidText = (count($videos) == 1) ? "Play Video" : "Play Video %s";
$t .= "<div>";
$count = 1;
foreach ($videos as $vid) {
$t .= "<a class='screenshot mfp-iframe' href='".trim($vid)."'><div class='vid ca_fa-film'></div></a>";
$t .= "<a class='screenshot videoButton mfp-iframe' href='".trim($vid)."'><div class='ca_fa-film'> ".sprintf(tr($vidText),$count)."</div></a>";
$count++;
}
$t .= "</div>";
}
$t .= "</div>";