Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
fca45616
Commit
fca45616
authored
Sep 18, 2020
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#39703 ジャンルツリーの表示幅変更
parent
f4c8b2ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
abvw/common/js/tab.js
+10
-10
abvw/js/home.js
+8
-9
No files found.
abvw/common/js/tab.js
View file @
fca45616
...
@@ -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
tabUnitBod
y
=
document
.
getElementsByClassName
(
"tabUnit"
)[
0
].
clientWidth
;
var
width
=
930
-
y
;
var
width
=
930
-
tabUnitBod
y
;
var
margin
=
y
-
280
;
var
margin
=
tabUnitBod
y
-
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
(
tabUnitBod
y
>
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
(
tabUnitBod
y
>=
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"
);
...
...
abvw/js/home.js
View file @
fca45616
...
@@ -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
(
tabUnitBod
y
>
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
(
tabUnitBod
y
>=
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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment