閲覧履歴
4
10
compact
off
horizontal
off
#000000
#000000
#ffffff
// 現在のページのURLを取得
var currentURL = window.location.href;
// "products"がURLに含まれているかをチェック
if (currentURL.includes("products")) {
// "products"が含まれている場合の処理をここに記述
console.log("This page contains 'products' in the URL.");
// 指定されたクラス名を持つ要素を非表示にする関数
function hideElement() {
var recentlyViewedElement = document.querySelector(".Qe_Recently-view");
if (recentlyViewedElement) {
recentlyViewedElement.style.display = "none";
console.log("Element with class '.Qe_Recently-view' hidden.");
} else {
console.log("Element with class '.Qe_Recently-view' not found.");
}
}
// 1秒後に非表示にする処理を実行
setTimeout(hideElement, 3000); // 1000ミリ秒 = 1秒
} else {
// "products"が含まれていない場合の処理をここに記述
console.log("This page does not contain 'products' in the URL.");
// ここに追加のコードを記述して、"products"が含まれていない場合の処理を行う
}
.box-slider{
max-width:225px;
margin: 0 auto;
}
.box-slider .productImg{
width: 225px;
height: 225px;
object-fit: cover;
display: flex;
align-items: center;
overflow: hidden;
margin: 0 auto;
}
.recently_sliders .product_title{
font-size: 12.25px !important;
text-align: left !important;
}
.product_price_main{
text-align: left !important;
}
.recently_sliders .product_price{
font-size: 12.25px !important;
text-align: left !important;
font-weight:bold;
}
.recently_sliders .productImg{
border: 1px solid #000;
border-radius: 5px;
}
.recently_sliders .productImg img{
}
.Qe_Recently-view{
max-width:960px;
margin:0 auto;
}
¥