kbo 작업중

This commit is contained in:
2025-03-25 23:18:33 +09:00
parent efa5d6a600
commit 225c99a5b3
69 changed files with 92 additions and 30 deletions

View File

@@ -623,6 +623,7 @@ $(document).on("click", ".inCarGame .dtthumb", function (e) {
$(document).on("click", ".displayTheme .dtthumb", function () {
const dtlImgPath = $(this).attr("value");
const dtlTeamPath = $(this).attr("team");
const dtlImgs = $(".dtlImgs");
const dtthumbClickState = $(this).attr("data-click");
@@ -662,6 +663,22 @@ $(document).on("click", ".displayTheme .dtthumb", function () {
$(this).attr("src", `${pathWithoutFileName}/${dtlImgPath}-${idx}.png`);
});
if ($(".displayTheme-kbo").length > 0) {
$(".video-welcome").each(function (e) {
const src = $(this).find("source").attr("src");
const lastIndex = src.lastIndexOf("/");
const pathWithoutFileName = src.substring(0, lastIndex);
$(this).attr("src", `${pathWithoutFileName}/welcome_${dtlTeamPath}.mp4`);
});
$(".video-goodbye").each(function (e) {
const src = $(this).find("source").attr("src");
const lastIndex = src.lastIndexOf("/");
const pathWithoutFileName = src.substring(0, lastIndex);
$(this).attr("src", `${pathWithoutFileName}/goodbye_${dtlTeamPath}.mp4`);
});
}
if (dtthumbClickState === "false") {
$(".theme-story").append(dtthumbItemHtml);
$(this).attr("data-click", "true");