kbo 작업중
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user