Commit fca45616 by Kim Eunchul

#39703 ジャンルツリーの表示幅変更

parent f4c8b2ea
...@@ -22,31 +22,31 @@ $(function() { ...@@ -22,31 +22,31 @@ $(function() {
var tabTargetID = tabTarget; var tabTargetID = tabTarget;
$(tabTargetID).css("display","block"); $(tabTargetID).css("display","block");
var x = document.getElementsByClassName("tabUnitList")[listNum].clientHeight + 60; var tabUnitHeight = document.getElementsByClassName("tabUnitList")[listNum].clientHeight + 60;
$(".tabUnit").css("height", x +"px"); $(".tabUnit").css("height", tabUnitHeight +"px");
ResizeTab(); ResizeTab();
return false; return false;
}); });
}); });
function ResizeTab() { function ResizeTab() {
var x = document.getElementsByClassName("articlehome"); var articleBody = document.getElementsByClassName("articlehome");
var y = document.getElementsByClassName("tabUnit")[0].clientWidth; var tabUnitBody = document.getElementsByClassName("tabUnit")[0].clientWidth;
var width = 930 - y; var width = 930 - tabUnitBody;
var margin = y - 280; var margin = tabUnitBody - 280;
x[0].setAttribute("style","width:" + width + "px"); articleBody[0].setAttribute("style","width:" + width + "px");
$(".cnt_section_list .text .info .pic li .iconList").css("margin-right", margin); $(".cnt_section_list .text .info .pic li .iconList").css("margin-right", margin);
$(".sankaku_left").css("margin-left", 54 + margin*0.5); $(".sankaku_left").css("margin-left", 54 + margin*0.5);
$(".sankaku_right").css("margin-left", 179 + margin*0.5); $(".sankaku_right").css("margin-left", 179 + margin*0.5);
if(y > 280){ if(tabUnitBody > 280){
$(".no_m_right").css("margin-right", "25px"); $(".no_m_right").css("margin-right", "25px");
}else{ }else{
$(".no_m_right").css("margin-right", "0px"); $(".no_m_right").css("margin-right", "0px");
} }
if(y >= 435){ if(tabUnitBody >= 435){
$(".cnt_section_list .text").css("width", "199px"); $(".cnt_section_list .text").css("width", "199px");
$(".cnt_section_list .text").css("margin", "0 0 0 0"); $(".cnt_section_list .text").css("margin", "0 0 0 0");
$(".cnt_section_list .text .info .pic li .iconList").css("margin-right", 0); $(".cnt_section_list .text .info .pic li .iconList").css("margin-right", 0);
...@@ -60,7 +60,7 @@ function ResizeTab() { ...@@ -60,7 +60,7 @@ function ResizeTab() {
} }
if(193 + document.getElementsByClassName("sort_area")[0].clientWidth > x[0].clientWidth){ if(193 + document.getElementsByClassName("sort_area")[0].clientWidth > articleBody[0].clientWidth){
$(".tops p").css("top", "75px"); $(".tops p").css("top", "75px");
}else{ }else{
$(".tops p").css("top", "40px"); $(".tops p").css("top", "40px");
......
...@@ -489,24 +489,23 @@ HOME.changeDispListFunction = function() { ...@@ -489,24 +489,23 @@ HOME.changeDispListFunction = function() {
}; };
HOME.ResizeTab = function() { HOME.ResizeTab = function() {
var x = document.getElementsByClassName("articlehome"); var articleBody = document.getElementsByClassName("articlehome");
var y = document.getElementsByClassName("tabUnit")[0].clientWidth; var tabUnitBody = document.getElementsByClassName("tabUnit")[0].clientWidth;
var width = 930 - y; var width = 930 - tabUnitBody;
var margin = y - 280; var margin = tabUnitBody - 280;
var sankakuMarginL = y - 226;
x[0].setAttribute("style","width:" + width + "px"); articleBody[0].setAttribute("style","width:" + width + "px");
$(".cnt_section_list .text .info .pic li .iconList").css("margin-right", margin); $(".cnt_section_list .text .info .pic li .iconList").css("margin-right", margin);
$(".sankaku_left").css("margin-left", 54 + margin*0.5); $(".sankaku_left").css("margin-left", 54 + margin*0.5);
$(".sankaku_right").css("margin-left", 179 + margin*0.5); $(".sankaku_right").css("margin-left", 179 + margin*0.5);
if(y > 280){ if(tabUnitBody > 280){
$(".no_m_right").css("margin-right", "25px"); $(".no_m_right").css("margin-right", "25px");
}else{ }else{
$(".no_m_right").css("margin-right", "0px"); $(".no_m_right").css("margin-right", "0px");
} }
if(y >= 435){ if(tabUnitBody >= 435){
$(".cnt_section_list .text").css("width", "199px"); $(".cnt_section_list .text").css("width", "199px");
$(".cnt_section_list .text").css("margin", "0 0 0 0"); $(".cnt_section_list .text").css("margin", "0 0 0 0");
$(".cnt_section_list .text .info .pic li .iconList").css("margin-right", 0); $(".cnt_section_list .text .info .pic li .iconList").css("margin-right", 0);
...@@ -520,7 +519,7 @@ HOME.ResizeTab = function() { ...@@ -520,7 +519,7 @@ HOME.ResizeTab = function() {
} }
if(193 + document.getElementsByClassName("sort_area")[0].clientWidth > x[0].clientWidth){ if(193 + document.getElementsByClassName("sort_area")[0].clientWidth > articleBody[0].clientWidth){
$(".tops p").css("top", "75px"); $(".tops p").css("top", "75px");
}else{ }else{
$(".tops p").css("top", "40px"); $(".tops p").css("top", "40px");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment