Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
sora
/
achievement
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
89fee119
authored
Mar 23, 2020
by
o.kimura
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
JSのインデント調整
parent
85b5e3f5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
achievement-official.conohawing.com/assets/js/faq.min.js
achievement-official.conohawing.com/assets/js/functions.min.js
achievement-official.conohawing.com/common_previous/js/common.js
achievement-official.conohawing.com/common_previous/js/common.min.js
achievement-official.conohawing.com/assets/js/faq.min.js
View file @
89fee119
$
(
function
(){
$
(
".p-faq-Q"
).
on
(
"click"
,
function
(){
$
(
this
).
next
().
slideToggle
(),
$
(
this
).
toggleClass
(
"active"
)});
var
s
=
$
(
".content"
),
a
=
$
(
".search__input"
).
find
(
"input[type=text]"
),
e
=
s
.
find
(
"h4"
),
l
=
$
(),
i
=
[];
e
.
each
(
function
(){
i
.
push
(
$
(
this
).
text
().
replace
(
/
\s{2,}
/g
,
" "
).
toLowerCase
())}),
a
.
on
(
"keyup"
,
function
(){
e
.
each
(
function
(){
l
=
$
(
this
),
l
.
html
(
l
.
html
().
replace
(
/<span class="highlight">
([^
<
]
+
)
<
\/
span>/gi
,
"$1"
))});
var
c
=
$
.
trim
(
a
.
val
()).
toLowerCase
();
if
(
c
.
length
)
for
(
var
n
in
i
)
if
(
l
=
e
.
eq
(
n
),
-
1
!=
i
[
n
].
indexOf
(
c
))
l
.
html
(
l
.
html
().
replace
(
new
RegExp
(
c
+
"(?!([^<]+)?>)"
,
"gi"
),
'<span class="highlight">$&</span>'
)),
l
.
parent
().
parent
().
css
(
"display"
,
"block"
);
else
{
l
.
parent
().
parent
().
css
(
"display"
,
"none"
);
var
t
=
$
(
"#sect1 .p-faq-Box"
).
filter
(
":visible"
).
length
,
f
=
$
(
"#sect2 .p-faq-Box"
).
filter
(
":visible"
).
length
,
p
=
$
(
"#sect3 .p-faq-Box"
).
filter
(
":visible"
).
length
,
o
=
$
(
"#sect4 .p-faq-Box"
).
filter
(
":visible"
).
length
,
r
=
$
(
"#sect5 .p-faq-Box"
).
filter
(
":visible"
).
length
,
d
=
$
(
"#sect6 .p-faq-Box"
).
filter
(
":visible"
).
length
;
0
==
t
?
$
(
"#faq-01"
).
css
(
"display"
,
"none"
):
$
(
"#faq-01"
).
css
(
"display"
,
"block"
),
0
==
f
?
$
(
"#faq-02"
).
css
(
"display"
,
"none"
):
$
(
"#faq-02"
).
css
(
"display"
,
"block"
),
0
==
p
?
$
(
"#faq-03"
).
css
(
"display"
,
"none"
):
$
(
"#faq-03"
).
css
(
"display"
,
"block"
),
0
==
o
?
$
(
"#faq-04"
).
css
(
"display"
,
"none"
):
$
(
"#faq-04"
).
css
(
"display"
,
"block"
),
0
==
r
?
$
(
"#faq-05"
).
css
(
"display"
,
"none"
):
$
(
"#faq-05"
).
css
(
"display"
,
"block"
),
0
==
d
?
$
(
"#faq-06"
).
css
(
"display"
,
"none"
):
$
(
"#faq-06"
).
css
(
"display"
,
"block"
),
0
==
t
&&
0
==
f
&&
0
==
p
&&
0
==
o
&&
0
==
r
&&
0
==
d
?
$
(
".faq-notfound"
).
css
(
"display"
,
"block"
):
$
(
".faq-notfound"
).
css
(
"display"
,
"none"
)}
else
e
.
parent
().
parent
().
css
(
"display"
,
"block"
),
$
(
"#faq-01"
).
css
(
"display"
,
"block"
),
$
(
"#faq-02"
).
css
(
"display"
,
"block"
),
$
(
"#faq-03"
).
css
(
"display"
,
"block"
),
$
(
"#faq-04"
).
css
(
"display"
,
"block"
),
$
(
"#faq-05"
).
css
(
"display"
,
"block"
),
$
(
"#faq-06"
).
css
(
"display"
,
"block"
)})});
$
(
function
(){
$
(
".p-faq-Q"
).
on
(
"click"
,
function
(){
$
(
this
).
next
().
slideToggle
(),
$
(
this
).
toggleClass
(
"active"
)});
var
e
=
$
(
".content"
),
t
=
$
(
".search__input"
).
find
(
"input[type=text]"
),
o
=
e
.
find
(
"h4"
),
n
=
$
(),
i
=
[];
o
.
each
(
function
(){
i
.
push
(
$
(
this
).
text
().
replace
(
/
\s{2,}
/g
,
" "
).
toLowerCase
())}),
t
.
on
(
"keyup"
,
function
(){
o
.
each
(
function
(){
n
=
$
(
this
),
n
.
html
(
n
.
html
().
replace
(
/<span class="highlight">
([^
<
]
+
)
<
\/
span>/gi
,
"$1"
))});
var
s
=
$
.
trim
(
t
.
val
()).
toLowerCase
();
if
(
s
.
length
)
for
(
var
a
in
i
)
if
(
n
=
o
.
eq
(
a
),
-
1
!=
i
[
a
].
indexOf
(
s
))
n
.
html
(
n
.
html
().
replace
(
new
RegExp
(
s
+
"(?!([^<]+)?>)"
,
"gi"
),
'<span class="highlight">$&</span>'
)),
n
.
parent
().
parent
().
css
(
"display"
,
"block"
);
else
{
n
.
parent
().
parent
().
css
(
"display"
,
"none"
);
var
l
=
$
(
"#sect1 .p-faq-Box"
).
filter
(
":visible"
).
length
,
c
=
$
(
"#sect2 .p-faq-Box"
).
filter
(
":visible"
).
length
,
f
=
$
(
"#sect3 .p-faq-Box"
).
filter
(
":visible"
).
length
,
r
=
$
(
"#sect4 .p-faq-Box"
).
filter
(
":visible"
).
length
,
d
=
$
(
"#sect5 .p-faq-Box"
).
filter
(
":visible"
).
length
,
u
=
$
(
"#sect6 .p-faq-Box"
).
filter
(
":visible"
).
length
;
0
==
l
?
$
(
"#faq-01"
).
css
(
"display"
,
"none"
):
$
(
"#faq-01"
).
css
(
"display"
,
"block"
),
0
==
c
?
$
(
"#faq-02"
).
css
(
"display"
,
"none"
):
$
(
"#faq-02"
).
css
(
"display"
,
"block"
),
0
==
f
?
$
(
"#faq-03"
).
css
(
"display"
,
"none"
):
$
(
"#faq-03"
).
css
(
"display"
,
"block"
),
0
==
r
?
$
(
"#faq-04"
).
css
(
"display"
,
"none"
):
$
(
"#faq-04"
).
css
(
"display"
,
"block"
),
0
==
d
?
$
(
"#faq-05"
).
css
(
"display"
,
"none"
):
$
(
"#faq-05"
).
css
(
"display"
,
"block"
),
0
==
u
?
$
(
"#faq-06"
).
css
(
"display"
,
"none"
):
$
(
"#faq-06"
).
css
(
"display"
,
"block"
),
0
==
l
&&
0
==
c
&&
0
==
f
&&
0
==
r
&&
0
==
d
&&
0
==
u
?
$
(
".faq-notfound"
).
css
(
"display"
,
"block"
):
$
(
".faq-notfound"
).
css
(
"display"
,
"none"
)}
else
o
.
parent
().
parent
().
css
(
"display"
,
"block"
),
$
(
"#faq-01"
).
css
(
"display"
,
"block"
),
$
(
"#faq-02"
).
css
(
"display"
,
"block"
),
$
(
"#faq-03"
).
css
(
"display"
,
"block"
),
$
(
"#faq-04"
).
css
(
"display"
,
"block"
),
$
(
"#faq-05"
).
css
(
"display"
,
"block"
),
$
(
"#faq-06"
).
css
(
"display"
,
"block"
)})});
\ No newline at end of file
\ No newline at end of file
achievement-official.conohawing.com/assets/js/functions.min.js
View file @
89fee119
if
(
$
(
function
(){
var
e
=
function
(){
return
{
option
:
".c-nav-menu1 li"
,
init
:
function
(){
var
e
=
$
(
this
.
option
),
t
=
this
;
$
(
document
).
off
(
"mouseenter.megaMenuOpen"
),
$
(
document
).
on
(
"mouseenter.megaMenuOpen"
,
this
.
option
,
function
(){
var
n
=
$
(
this
).
data
(
"target"
);
return
n
||
(
$
(
".c-nav2"
).
hide
(),
e
.
removeClass
(
"is-open"
)),
!
n
||
$
(
this
).
hasClass
(
"is-open"
)?
!
1
:(
e
.
removeClass
(
"is-open"
),
$
(
this
).
addClass
(
"is-open"
),
$
(
".c-nav2"
).
hide
(),
$
(
".c-nav2-"
+
n
).
fadeIn
(
"normal"
),
$
(
document
).
off
(
"mouseenter.megaMenuClose"
),
void
t
.
menuClose
())})},
menuClose
:
function
(){
var
e
=
$
(
this
.
option
);
$
(
document
).
on
(
"mouseenter.megaMenuClose"
,
"div"
,
function
(
t
){
$
(
t
.
target
).
hasClass
(
"c-nav1"
)
||
$
(
t
.
target
).
parents
(
".c-nav"
)[
0
]
||
$
(
t
.
target
).
parents
(
".c-nav2"
)[
0
]
||
$
(
t
.
target
).
hasClass
(
"c-nav2"
)
||
(
$
(
".c-nav2"
).
hide
(),
$
(
".bg-nav"
).
remove
(),
e
.
removeClass
(
"is-open"
),
$
(
document
).
off
(
"mouseenter.megaMenuClose"
))})},
destroy
:
function
(){
$
(
document
).
off
(
"mouseenter.megaMenuOpen"
)}}}();
e
.
init
()}),
$
(
window
).
on
(
"load resize"
,
function
(){
$
(
window
).
width
()
<=
767
?(
$
(
".menu-icon"
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
this
).
toggleClass
(
"is-active"
),
$
(
this
).
parent
().
next
().
next
().
slideToggle
()}),
$
(
".nav-sp .c-nav-link1"
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
this
).
hasClass
(
"open"
)?(
$
(
this
).
removeClass
(
"open"
),
$
(
this
).
next
().
slideToggle
()):(
$
(
this
).
addClass
(
"open"
),
$
(
this
).
next
().
slideToggle
())}),
$
(
".c-footer__list >li > .showSp"
).
off
(
"click"
).
on
(
"click"
,
function
(
e
){
e
.
preventDefault
(),
$
(
this
).
next
(
".c-footer__listsub"
).
slideToggle
()}),
$
(
".c-nav2"
).
removeAttr
(
"style"
)):(
$
(
".menu-icon"
).
off
(
"click"
),
$
(
".menu-icon"
).
removeClass
(
"is-active"
),
$
(
".nav-sp"
).
removeAttr
(
"style"
),
$
(
".nav-sp .c-nav-link1"
).
off
(
"click"
),
$
(
".nav-sp .c-navSP"
).
removeAttr
(
"style"
),
$
(
".c-footer__list >li > .showSp"
).
off
(
"click"
),
$
(
".c-footer__listsub"
).
removeAttr
(
"style"
))}),
$
(
".c-toTop"
).
length
){
var
scrollTrigger
=
10
,
backToTop
=
function
(){
var
e
=
$
(
window
).
scrollTop
();
e
>
scrollTrigger
?
$
(
".c-toTop"
).
fadeIn
():
$
(
".c-toTop"
).
fadeOut
()};
backToTop
(),
$
(
window
).
on
(
"scroll"
,
function
(){
backToTop
()}),
$
(
".c-toTop"
).
on
(
"click"
,
function
(
e
){
e
.
preventDefault
(),
$
(
"html,body"
).
animate
({
scrollTop
:
0
},
400
)})}
jQuery
(
document
).
ready
(
function
(){
$
(
".box-video"
).
click
(
function
(){
$
(
"iframe"
,
this
)[
0
].
src
+=
"&autoplay=1"
,
$
(
this
).
addClass
(
"open"
)})}),
$
(
function
(){
$
(
".tab"
).
click
(
function
(){
$
(
".is-active"
).
removeClass
(
"is-active"
),
$
(
this
).
addClass
(
"is-active"
),
$
(
".is-show"
).
removeClass
(
"is-show"
);
const
e
=
$
(
this
).
index
();
$
(
".tabCont"
).
eq
(
e
).
addClass
(
"is-show"
),
$
(
window
).
scroll
()})}),
$
(
function
(){
$
(
"a.btn--stop ,.reserveStop a"
).
click
(
function
(){
return
!
1
})}),
$
(
function
(){
var
e
=
navigator
.
userAgent
;
if
(
e
.
indexOf
(
"iPhone"
)
>
0
||
e
.
indexOf
(
"Android"
)
>
0
&&
e
.
indexOf
(
"Mobile"
)
>
0
);
else
{
var
t
=
$
(
window
),
o
=
$
(
"header"
).
clone
().
addClass
(
"fixed-nav"
).
appendTo
(
"body"
),
n
=
"is-show"
;
t
.
on
(
"load scroll"
,
function
(){
var
e
=
$
(
this
).
scrollTop
();
e
>
300
?
o
.
addClass
(
n
):
o
.
removeClass
(
n
)})}
var
i
=
50
,
s
=
100
;
$
(
'a[href^="#"]'
).
click
(
function
(){
var
e
=
navigator
.
userAgent
;
if
(
e
.
indexOf
(
"iPhone"
)
>
0
||
e
.
indexOf
(
"Android"
)
>
0
&&
e
.
indexOf
(
"Mobile"
)
>
0
){
var
t
=
$
(
this
).
attr
(
"href"
),
o
=
$
(
"#"
==
t
||
""
==
t
?
"html"
:
t
),
n
=
o
.
offset
().
top
-
s
;
return
$
(
"html, body"
).
animate
({
scrollTop
:
n
},
500
,
"swing"
),
!
1
}
var
t
=
$
(
this
).
attr
(
"href"
),
o
=
$
(
"#"
==
t
||
""
==
t
?
"html"
:
t
),
n
=
o
.
offset
().
top
-
i
;
return
$
(
"html, body"
).
animate
({
scrollTop
:
n
},
500
,
"swing"
),
!
1
}),
$
(
".sv"
).
on
(
"mouseover"
,
function
(){
$
(
this
).
addClass
(
"c-nav-sab-active"
)}),
$
(
".sv"
).
on
(
"mouseout"
,
function
(){
$
(
this
).
removeClass
(
"c-nav-sab-active"
)})}),
function
(
e
){
e
.
fn
.
fixMe
=
function
(){
return
this
.
each
(
function
(){
function
n
(){
o
=
t
.
clone
(),
o
.
find
(
"tbody"
).
remove
().
end
().
addClass
(
"fixed"
).
insertBefore
(
t
),
i
()}
function
i
(){
o
.
width
(
t
.
outerWidth
()),
o
.
find
(
"th"
).
each
(
function
(
o
){
e
(
this
).
css
(
"width"
,
t
.
find
(
"th"
).
eq
(
o
).
outerWidth
()
+
"px"
)})}
function
s
(){
var
n
=
e
(
this
).
scrollTop
(),
i
=
e
(
this
).
scrollLeft
(),
s
=
e
(
".header"
).
height
();
tableOffsetTop
=
t
.
offset
().
top
-
s
,
tableOffsetBottom
=
tableOffsetTop
+
t
.
height
()
-
t
.
find
(
"thead"
).
height
(),
tableOffsetLeft
=
t
.
offset
().
left
,
tableOffsetTop
>
n
||
n
>
tableOffsetBottom
?
o
.
hide
():
n
>=
tableOffsetTop
&&
tableOffsetBottom
>=
n
&&
o
.
is
(
":hidden"
)
&&
o
.
show
(),
o
.
css
({
left
:
tableOffsetLeft
-
i
+
"px"
,
top
:
s
})}
var
o
,
t
=
e
(
this
);
e
(
window
).
resize
(
i
),
e
(
window
).
scroll
(
s
),
n
()})}}(
jQuery
),
$
(
window
).
on
(
"load"
,
function
(){
screen
.
width
>
767
&&
$
(
".schedule-table"
).
fixMe
()}),
jQuery
(
window
).
load
(
function
(){
function
e
(){
$
(
"#seminar"
).
trigger
(
"click"
),
jQuery
(
"html, body"
).
animate
({
scrollTop
:
0
},
0
)}
""
!=
window
.
location
.
hash
&&
e
(
window
.
location
.
hash
.
substr
(
1
))}),
$
(
function
(){
$
(
".page-schedule .c-nav-link1, .c-footer__list li a"
).
on
(
"click"
,
function
(){
$
(
"#seminar"
).
trigger
(
"click"
)}),
$
(
".search__input"
).
submit
(
function
(
e
){
e
.
preventDefault
()})});
if
(
$
(
function
(){
var
e
=
function
(){
return
{
option
:
".c-nav-menu1 li"
,
init
:
function
(){
var
e
=
$
(
this
.
option
),
t
=
this
;
$
(
document
).
off
(
"mouseenter.megaMenuOpen"
),
$
(
document
).
on
(
"mouseenter.megaMenuOpen"
,
this
.
option
,
function
(){
var
n
=
$
(
this
).
data
(
"target"
);
return
n
||
(
$
(
".c-nav2"
).
hide
(),
e
.
removeClass
(
"is-open"
)),
!
n
||
$
(
this
).
hasClass
(
"is-open"
)?
!
1
:(
e
.
removeClass
(
"is-open"
),
$
(
this
).
addClass
(
"is-open"
),
$
(
".c-nav2"
).
hide
(),
$
(
".c-nav2-"
+
n
).
fadeIn
(
"normal"
),
$
(
document
).
off
(
"mouseenter.megaMenuClose"
),
void
t
.
menuClose
())})},
menuClose
:
function
(){
var
e
=
$
(
this
.
option
);
$
(
document
).
on
(
"mouseenter.megaMenuClose"
,
"div"
,
function
(
t
){
$
(
t
.
target
).
hasClass
(
"c-nav1"
)
||
$
(
t
.
target
).
parents
(
".c-nav"
)[
0
]
||
$
(
t
.
target
).
parents
(
".c-nav2"
)[
0
]
||
$
(
t
.
target
).
hasClass
(
"c-nav2"
)
||
(
$
(
".c-nav2"
).
hide
(),
$
(
".bg-nav"
).
remove
(),
e
.
removeClass
(
"is-open"
),
$
(
document
).
off
(
"mouseenter.megaMenuClose"
))})},
destroy
:
function
(){
$
(
document
).
off
(
"mouseenter.megaMenuOpen"
)}}}();
e
.
init
()}),
$
(
window
).
on
(
"load resize"
,
function
(){
$
(
window
).
width
()
<=
767
?(
$
(
".menu-icon"
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
this
).
toggleClass
(
"is-active"
),
$
(
this
).
parent
().
next
().
next
().
slideToggle
()}),
$
(
".nav-sp .c-nav-link1"
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
this
).
hasClass
(
"open"
)?(
$
(
this
).
removeClass
(
"open"
),
$
(
this
).
next
().
slideToggle
()):(
$
(
this
).
addClass
(
"open"
),
$
(
this
).
next
().
slideToggle
())}),
$
(
".c-footer__list >li > .showSp"
).
off
(
"click"
).
on
(
"click"
,
function
(
e
){
e
.
preventDefault
(),
$
(
this
).
next
(
".c-footer__listsub"
).
slideToggle
()}),
$
(
".c-nav2"
).
removeAttr
(
"style"
)):(
$
(
".menu-icon"
).
off
(
"click"
),
$
(
".menu-icon"
).
removeClass
(
"is-active"
),
$
(
".nav-sp"
).
removeAttr
(
"style"
),
$
(
".nav-sp .c-nav-link1"
).
off
(
"click"
),
$
(
".nav-sp .c-navSP"
).
removeAttr
(
"style"
),
$
(
".c-footer__list >li > .showSp"
).
off
(
"click"
),
$
(
".c-footer__listsub"
).
removeAttr
(
"style"
))}),
$
(
".c-toTop"
).
length
){
var
scrollTrigger
=
10
,
backToTop
=
function
(){
var
e
=
$
(
window
).
scrollTop
();
e
>
scrollTrigger
?
$
(
".c-toTop"
).
fadeIn
():
$
(
".c-toTop"
).
fadeOut
()};
backToTop
(),
$
(
window
).
on
(
"scroll"
,
function
(){
backToTop
()}),
$
(
".c-toTop"
).
on
(
"click"
,
function
(
e
){
e
.
preventDefault
(),
$
(
"html,body"
).
animate
({
scrollTop
:
0
},
400
)})}
jQuery
(
document
).
ready
(
function
(){
$
(
".box-video"
).
click
(
function
(){
$
(
"iframe"
,
this
)[
0
].
src
+=
"&autoplay=1"
,
$
(
this
).
addClass
(
"open"
)})}),
$
(
function
(){
$
(
".tab"
).
click
(
function
(){
$
(
".is-active"
).
removeClass
(
"is-active"
),
$
(
this
).
addClass
(
"is-active"
),
$
(
".is-show"
).
removeClass
(
"is-show"
);
const
e
=
$
(
this
).
index
();
$
(
".tabCont"
).
eq
(
e
).
addClass
(
"is-show"
),
$
(
window
).
scroll
()})}),
$
(
function
(){
$
(
"a.btn--stop ,.reserveStop a"
).
click
(
function
(){
return
!
1
})}),
$
(
function
(){
var
e
=
navigator
.
userAgent
;
if
(
e
.
indexOf
(
"iPhone"
)
>
0
||
e
.
indexOf
(
"Android"
)
>
0
&&
e
.
indexOf
(
"Mobile"
)
>
0
);
else
{
var
t
=
$
(
window
),
o
=
$
(
"header"
).
clone
().
addClass
(
"fixed-nav"
).
appendTo
(
"body"
),
n
=
"is-show"
;
t
.
on
(
"load scroll"
,
function
(){
var
e
=
$
(
this
).
scrollTop
();
e
>
300
?
o
.
addClass
(
n
):
o
.
removeClass
(
n
)})}
var
i
=
50
,
s
=
100
;
$
(
"a[href^=#]"
).
click
(
function
(){
var
e
=
navigator
.
userAgent
;
if
(
e
.
indexOf
(
"iPhone"
)
>
0
||
e
.
indexOf
(
"Android"
)
>
0
&&
e
.
indexOf
(
"Mobile"
)
>
0
){
var
t
=
$
(
this
).
attr
(
"href"
),
o
=
$
(
"#"
==
t
||
""
==
t
?
"html"
:
t
),
n
=
o
.
offset
().
top
-
s
;
return
$
(
"html, body"
).
animate
({
scrollTop
:
n
},
500
,
"swing"
),
!
1
}
var
t
=
$
(
this
).
attr
(
"href"
),
o
=
$
(
"#"
==
t
||
""
==
t
?
"html"
:
t
),
n
=
o
.
offset
().
top
-
i
;
return
$
(
"html, body"
).
animate
({
scrollTop
:
n
},
500
,
"swing"
),
!
1
}),
$
(
".sv"
).
on
(
"mouseover"
,
function
(){
$
(
this
).
addClass
(
"c-nav-sab-active"
)}),
$
(
".sv"
).
on
(
"mouseout"
,
function
(){
$
(
this
).
removeClass
(
"c-nav-sab-active"
)})}),
function
(
e
){
e
.
fn
.
fixMe
=
function
(){
return
this
.
each
(
function
(){
function
n
(){
o
=
t
.
clone
(),
o
.
find
(
"tbody"
).
remove
().
end
().
addClass
(
"fixed"
).
insertBefore
(
t
),
i
()}
function
i
(){
o
.
width
(
t
.
outerWidth
()),
o
.
find
(
"th"
).
each
(
function
(
o
){
e
(
this
).
css
(
"width"
,
t
.
find
(
"th"
).
eq
(
o
).
outerWidth
()
+
"px"
)})}
function
s
(){
var
n
=
e
(
this
).
scrollTop
(),
i
=
e
(
this
).
scrollLeft
(),
s
=
e
(
".header"
).
height
();
tableOffsetTop
=
t
.
offset
().
top
-
s
,
tableOffsetBottom
=
tableOffsetTop
+
t
.
height
()
-
t
.
find
(
"thead"
).
height
(),
tableOffsetLeft
=
t
.
offset
().
left
,
tableOffsetTop
>
n
||
n
>
tableOffsetBottom
?
o
.
hide
():
n
>=
tableOffsetTop
&&
tableOffsetBottom
>=
n
&&
o
.
is
(
":hidden"
)
&&
o
.
show
(),
o
.
css
({
left
:
tableOffsetLeft
-
i
+
"px"
,
top
:
s
})}
var
o
,
t
=
e
(
this
);
e
(
window
).
resize
(
i
),
e
(
window
).
scroll
(
s
),
n
()})}}(
jQuery
),
$
(
window
).
on
(
"load"
,
function
(){
screen
.
width
>
767
&&
$
(
".schedule-table"
).
fixMe
()}),
jQuery
(
window
).
load
(
function
(){
function
e
(){
$
(
"#seminar"
).
trigger
(
"click"
),
jQuery
(
"html, body"
).
animate
({
scrollTop
:
0
},
0
)}
""
!=
window
.
location
.
hash
&&
e
(
window
.
location
.
hash
.
substr
(
1
))}),
$
(
function
(){
$
(
".page-schedule .c-nav-link1, .c-footer__list li a"
).
on
(
"click"
,
function
(){
$
(
"#seminar"
).
trigger
(
"click"
)}),
$
(
".search__input"
).
submit
(
function
(
e
){
e
.
preventDefault
()})});
\ No newline at end of file
\ No newline at end of file
achievement-official.conohawing.com/common_previous/js/common.js
View file @
89fee119
...
@@ -121,7 +121,9 @@ var megaMenu = (function () {
...
@@ -121,7 +121,9 @@ var megaMenu = (function () {
if
(
!
$target
||
$
(
this
).
hasClass
(
'is-open'
))
return
false
;
if
(
!
$target
||
$
(
this
).
hasClass
(
'is-open'
))
return
false
;
$trigger
.
removeClass
(
'is-open'
);
$trigger
.
removeClass
(
'is-open'
);
$
(
this
).
addClass
(
'is-open'
);
$
(
this
).
addClass
(
'is-open'
);
if
(
!
$
(
".bg-nav"
)[
0
])
$
(
".header"
).
append
(
$
(
'<div>'
,
{
'class'
:
'bg-nav'
}));
if
(
!
$
(
".bg-nav"
)[
0
])
$
(
".header"
).
append
(
$
(
'<div>'
,
{
'class'
:
'bg-nav'
}));
$
(
".nav-global-submenu"
).
hide
();
$
(
".nav-global-submenu"
).
hide
();
$
(
".nav-global-submenu-"
+
$target
).
fadeIn
(
'normal'
);
$
(
".nav-global-submenu-"
+
$target
).
fadeIn
(
'normal'
);
$
(
document
).
off
(
"mouseenter.megaMenuClose"
);
$
(
document
).
off
(
"mouseenter.megaMenuClose"
);
...
@@ -189,6 +191,7 @@ var spMenu = (function () {
...
@@ -189,6 +191,7 @@ var spMenu = (function () {
}
}
}
}
}());
}());
function
selectBox
()
{
function
selectBox
()
{
//初期設定
//初期設定
$
(
".mod-search-select select"
).
change
(
function
()
{
$
(
".mod-search-select select"
).
change
(
function
()
{
...
@@ -202,6 +205,7 @@ function selectBox() {
...
@@ -202,6 +205,7 @@ function selectBox() {
//$(this).parents("form").submit();
//$(this).parents("form").submit();
});
});
}
}
function
faqAccordion
()
{
function
faqAccordion
()
{
if
(
$
(
".sec-faq"
)[
0
])
{
if
(
$
(
".sec-faq"
)[
0
])
{
$
(
".sec-faq dt"
).
click
(
function
(
event
)
{
$
(
".sec-faq dt"
).
click
(
function
(
event
)
{
...
@@ -311,7 +315,8 @@ function smoothscroll() {
...
@@ -311,7 +315,8 @@ function smoothscroll() {
//$($.browser.safari ? 'body' : 'html').animate({scrollTop:position}, speed, 'swing');
//$($.browser.safari ? 'body' : 'html').animate({scrollTop:position}, speed, 'swing');
var
body
=
'body'
;
var
body
=
'body'
;
var
userAgent
=
window
.
navigator
.
userAgent
.
toLowerCase
();
var
userAgent
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
userAgent
.
indexOf
(
'msie'
)
>
-
1
||
userAgent
.
indexOf
(
'trident'
)
>
-
1
||
userAgent
.
indexOf
(
"firefox"
)
>
-
1
)
{
/*IE6.7.8.9.10.11*/
if
(
userAgent
.
indexOf
(
'msie'
)
>
-
1
||
userAgent
.
indexOf
(
'trident'
)
>
-
1
||
userAgent
.
indexOf
(
"firefox"
)
>
-
1
)
{
/*IE6.7.8.9.10.11*/
body
=
'html'
;
body
=
'html'
;
}
}
position
-=
$
(
".header"
).
height
();
position
-=
$
(
".header"
).
height
();
...
@@ -346,6 +351,7 @@ function gMap(key, lat, lng) {
...
@@ -346,6 +351,7 @@ function gMap(key, lat, lng) {
var
styleType
=
new
google
.
maps
.
StyledMapType
(
styleOptions
);
var
styleType
=
new
google
.
maps
.
StyledMapType
(
styleOptions
);
map
.
mapTypes
.
set
(
'genius'
,
styleType
);
map
.
mapTypes
.
set
(
'genius'
,
styleType
);
map
.
setMapTypeId
(
'genius'
);
map
.
setMapTypeId
(
'genius'
);
function
addMarker
(
point
)
{
function
addMarker
(
point
)
{
var
marker
=
new
google
.
maps
.
Marker
({
var
marker
=
new
google
.
maps
.
Marker
({
...
@@ -437,6 +443,7 @@ function checkBrowser() {
...
@@ -437,6 +443,7 @@ function checkBrowser() {
}
}
return
ret
;
return
ret
;
}
}
function
isPhone
()
{
function
isPhone
()
{
return
(
navigator
.
userAgent
.
indexOf
(
'iPhone'
)
>
0
||
navigator
.
userAgent
.
indexOf
(
'Android'
)
>
0
);
return
(
navigator
.
userAgent
.
indexOf
(
'iPhone'
)
>
0
||
navigator
.
userAgent
.
indexOf
(
'Android'
)
>
0
);
}
}
...
...
achievement-official.conohawing.com/common_previous/js/common.min.js
0 → 100644
View file @
89fee119
function
headSearch
(){
var
e
=
$
(
".btn-search"
);
e
.
on
(
"click"
,
function
(
e
){
e
.
preventDefault
();
var
t
=
$
(
this
).
siblings
(
".btn-contact-search"
);
if
(
$
(
this
).
closest
(
".mod-header-contact"
).
hasClass
(
"is-search"
)){
if
(
""
==
t
.
find
(
"input"
).
val
())
return
$
(
this
).
closest
(
".mod-header-contact"
).
removeClass
(
"is-search"
),
!
1
;
t
.
find
(
"form"
).
submit
()}
else
$
(
this
).
closest
(
".mod-header-contact"
).
addClass
(
"is-search"
),
t
.
find
(
"input"
).
focus
()})}
function
selectBox
(){
$
(
".mod-search-select select"
).
change
(
function
(){
$
(
this
).
next
().
html
(
$
(
"option:selected"
,
this
).
text
())}).
trigger
(
"change"
),
$
(
".mod-search-select select"
).
change
(
function
(){
return
""
==
$
(
this
).
val
()?
!
1
:
void
(
window
.
location
.
href
=
$
(
this
).
val
())})}
function
faqAccordion
(){
$
(
".sec-faq"
)[
0
]
&&
$
(
".sec-faq dt"
).
click
(
function
(){
$
(
"+dd"
,
this
).
slideToggle
()})}
function
pagetop
(){
if
(
$
(
".btn-pagetop"
)[
0
]){
var
e
;
$
(
window
).
scroll
(
function
(){
e
=
$
(
window
).
scrollTop
(),
e
>=
150
?
$
(
".btn-pagetop"
).
addClass
(
"is-show"
):
$
(
".btn-pagetop"
).
removeClass
(
"is-show"
)})}}
function
smoothscroll
(){
$
(
'a[href^="#"]'
).
click
(
function
(){
var
e
=
400
,
t
=
$
(
this
).
attr
(
"href"
),
n
=
$
(
"#"
==
t
||
""
==
t
?
"html"
:
t
),
o
=
n
.
offset
().
top
,
i
=
"body"
,
s
=
window
.
navigator
.
userAgent
.
toLowerCase
();
return
(
s
.
indexOf
(
"msie"
)
>-
1
||
s
.
indexOf
(
"trident"
)
>-
1
||
s
.
indexOf
(
"firefox"
)
>-
1
)
&&
(
i
=
"html"
),
o
-=
$
(
".header"
).
height
(),
$
(
i
).
animate
({
scrollTop
:
o
},
e
,
"swing"
),
!
1
})}
function
gMap
(
e
,
t
,
n
){
google
.
maps
.
event
.
addDomListener
(
window
,
"load"
,
function
(){
function
c
(
e
){
var
t
=
new
google
.
maps
.
Marker
({
position
:
e
,
map
:
s
,
zIndex
:
99
});
return
google
.
maps
.
event
.
addListener
(
t
,
"click"
,
function
(){
s
.
panTo
(
t
.
getPosition
()),
infoWindow
.
close
(),
infoWindow
.
setContent
(
"<p style='font-size: 12px; text-align: center;'><span style='color: #000; font-size: 12px; font-weight: bold;'>お試し宿泊バー<br>神奈川県厚木市旭町3丁目11-14</span></p>"
),
infoWindow
.
open
(
s
,
t
)}),
t
}
var
o
=
document
.
getElementById
(
e
),
i
=
{
zoom
:
16
,
center
:
new
google
.
maps
.
LatLng
(
t
,
n
),
mapTypeId
:
google
.
maps
.
MapTypeId
.
ROADMAP
,
scaleControl
:
!
0
,
scrollwheel
:
!
1
},
s
=
new
google
.
maps
.
Map
(
o
,
i
),
a
=
[{
stylers
:[{
gamma
:.
8
},{
saturation
:
-
100
},{
lightness
:
20
}]}],
l
=
new
google
.
maps
.
StyledMapType
(
a
);
s
.
mapTypes
.
set
(
"genius"
,
l
),
s
.
setMapTypeId
(
"genius"
),
c
(
new
google
.
maps
.
LatLng
(
t
,
n
))})}
function
checkBrowser
(){{
var
e
=
navigator
.
userAgent
,
t
=
""
;
e
.
indexOf
(
"iPhone"
)
>
0
||
e
.
indexOf
(
"iPad"
)
>
0
||
e
.
indexOf
(
"iPod"
)
>
0
||
e
.
indexOf
(
"Android"
)
>
0
}
if
(
e
.
match
(
/Chrome/
))
$
(
"body"
).
addClass
(
"chrome"
),
t
=
"chrome"
;
else
if
(
e
.
indexOf
(
"Android"
)
>
0
)
$
(
"body"
).
addClass
(
"android"
),
t
=
"android"
;
else
if
(
e
.
match
(
/MSIE/
)){
$
(
"body"
).
addClass
(
"ie"
);
var
o
=
window
.
navigator
.
appVersion
;
-
1
!=
o
.
indexOf
(
"MSIE 6."
)?(
$
(
"body"
).
addClass
(
"ie6"
),
t
=
"ie6"
):
-
1
!=
o
.
indexOf
(
"MSIE 7."
)?(
$
(
"body"
).
addClass
(
"ie7"
),
t
=
"ie7"
):
-
1
!=
o
.
indexOf
(
"MSIE 8."
)?(
$
(
"body"
).
addClass
(
"ie8"
),
t
=
"ie8"
):
-
1
!=
o
.
indexOf
(
"MSIE 9."
)?(
$
(
"body"
).
addClass
(
"ie9"
),
t
=
"ie9"
):
-
1
!=
o
.
indexOf
(
"MSIE 10."
)
&&
(
$
(
"body"
).
addClass
(
"ie10"
),
t
=
"ie10"
)}
else
e
.
match
(
/Trident/
)?(
$
(
"body"
).
addClass
(
"ie11"
),
t
=
"ie11"
):
e
.
match
(
/Firefox/
)?(
$
(
"body"
).
addClass
(
"firefox"
),
t
=
"firefox"
):
e
.
match
(
/Safari/
)?(
$
(
"body"
).
addClass
(
"safari"
),
t
=
"safari"
):
e
.
match
(
/Opera/
)
&&
(
$
(
"body"
).
addClass
(
"opera"
),
t
=
"opera"
);
return
t
}
function
isPhone
(){
return
navigator
.
userAgent
.
indexOf
(
"iPhone"
)
>
0
||
navigator
.
userAgent
.
indexOf
(
"Android"
)
>
0
}
var
deviceMode
=
{},
breakPoint
=
768
,
newWidth
=
$
(
window
).
width
(),
oldWidth
=
newWidth
,
getDeviceMode
=
function
(){
if
(
breakPoint
<
$
(
window
).
width
())
var
e
=
"pc"
;
else
var
e
=
"sp"
;
return
e
};
$
(
document
).
ready
(
function
(){
$
(
window
).
width
();
deviceMode
[
"new"
]
=
getDeviceMode
(),
deviceMode
.
old
=
deviceMode
[
"new"
],
$
(
window
).
load
(
function
(){
$
(
window
).
triggerHandler
(
"loadDevice"
,
deviceMode
)}),
smoothscroll
(),
selectBox
(),
headSearch
(),
faqAccordion
(),
pagetop
(),
isPhone
()
||
$
(
"a[href^='tel:']"
).
click
(
function
(){
return
!
1
})}),
$
(
window
).
on
(
"resize orientationchange"
,
function
(){
newWidth
=
$
(
window
).
width
(),
newWidth
!==
oldWidth
&&
(
deviceMode
[
"new"
]
=
getDeviceMode
()),
deviceMode
[
"new"
]
!=
deviceMode
.
old
&&
$
(
window
).
triggerHandler
(
"changeDevice"
,
deviceMode
),
deviceMode
.
old
=
deviceMode
[
"new"
],
oldWidth
=
newWidth
}),
$
(
window
).
on
(
"loadDevice changeDevice"
,
function
(
e
,
t
){
"pc"
===
t
[
"new"
]?(
myAccordion
.
destroy
(),
megaMenu
.
init
(),
spMenu
.
destroy
(),
alignHeight
.
init
()):
"sp"
===
t
[
"new"
]
&&
(
myAccordion
.
init
(),
spMenu
.
init
(),
alignHeight
.
destroy
())});
var
myAccordion
=
function
(){
return
{
option
:
".box-footer-navi h2"
,
init
:
function
(){
var
e
=
$
(
this
.
option
);
e
.
on
(
"click"
,
function
(
e
){
$
(
this
).
next
(
"ul"
)[
0
]
&&
e
.
preventDefault
(),
$
(
this
).
next
(
"ul"
).
slideToggle
(
"normal"
),
$
(
this
).
toggleClass
(
"is-open"
)})},
destroy
:
function
(){
var
e
=
$
(
this
.
option
);
e
.
next
(
"ul"
).
css
(
"display"
,
""
),
e
.
removeClass
(
"is-open"
),
e
.
off
()}}}(),
megaMenu
=
function
(){
return
{
option
:
".nav-global li"
,
init
:
function
(){
var
e
=
$
(
this
.
option
),
t
=
this
;
$
(
document
).
off
(
"mouseenter.megaMenuOpen"
),
$
(
document
).
on
(
"mouseenter.megaMenuOpen"
,
this
.
option
,
function
(){
var
o
=
$
(
this
).
data
(
"target"
);
return
o
||
(
$
(
".nav-global-submenu"
).
hide
(),
$
(
".bg-nav"
).
remove
(),
e
.
removeClass
(
"is-open"
)),
!
o
||
$
(
this
).
hasClass
(
"is-open"
)?
!
1
:(
e
.
removeClass
(
"is-open"
),
$
(
this
).
addClass
(
"is-open"
),
$
(
".bg-nav"
)[
0
]
||
$
(
".header"
).
append
(
$
(
"<div>"
,{
"class"
:
"bg-nav"
})),
$
(
".nav-global-submenu"
).
hide
(),
$
(
".nav-global-submenu-"
+
o
).
fadeIn
(
"normal"
),
$
(
document
).
off
(
"mouseenter.megaMenuClose"
),
void
t
.
menuClose
())})},
menuClose
:
function
(){
var
e
=
$
(
this
.
option
);
$
(
document
).
on
(
"mouseenter.megaMenuClose"
,
"div"
,
function
(
t
){
$
(
t
.
target
).
hasClass
(
"header-main"
)
||
$
(
t
.
target
).
parents
(
".header-main"
)[
0
]
||
$
(
t
.
target
).
parents
(
".nav-global-submenu"
)[
0
]
||
$
(
t
.
target
).
hasClass
(
"nav-global-submenu"
)
||
(
$
(
".nav-global-submenu"
).
hide
(),
$
(
".bg-nav"
).
remove
(),
e
.
removeClass
(
"is-open"
),
$
(
document
).
off
(
"mouseenter.megaMenuClose"
))})},
destroy
:
function
(){
$
(
document
).
off
(
"mouseenter.megaMenuOpen"
)}}}(),
spMenu
=
function
(){
return
{
option
:{
trigger
:
".js-spmenu"
,
target
:
".nav-global-sp"
},
init
:
function
(){
var
e
=
$
(
this
.
option
.
trigger
),
t
=
$
(
this
.
option
.
target
);
e
.
off
(
"click"
),
e
.
on
(
"click"
,
function
(
n
){
n
.
preventDefault
(),
e
.
hasClass
(
"is-open"
)?(
t
.
fadeOut
(
"normal"
),
$
(
this
).
removeClass
(
"is-open"
)):(
t
.
fadeIn
(
"normal"
),
$
(
this
).
addClass
(
"is-open"
))}),
$
(
".list-nav-global-sp h2"
).
on
(
"click"
,
function
(
e
){
e
.
preventDefault
(),
$
(
this
).
next
(
"div"
).
slideToggle
(
"normal"
),
$
(
this
).
toggleClass
(
"is-open"
)})},
destroy
:
function
(){
var
e
=
$
(
this
.
option
.
trigger
),
t
=
$
(
this
.
option
.
target
);
t
.
css
(
"display"
,
""
),
e
.
next
(
"ul"
).
css
(
"display"
,
""
),
e
.
removeClass
(
"is-open"
),
e
.
off
(),
$
(
".list-nav-global-sp h2"
).
off
()}}}();
$
(
function
(){
var
e
=
$
(
"#pageTop"
);
e
.
hide
(),
$
(
window
).
scroll
(
function
(){
$
(
this
).
scrollTop
()
>
150
?
e
.
fadeIn
():
e
.
fadeOut
()}),
e
.
click
(
function
(){
return
$
(
"body,html"
).
animate
({
scrollTop
:
0
},
500
),
!
1
})});
var
alignHeight
=
function
(){
return
{
option
:{
parent
:
"-align"
,
children
:
"-item"
},
init
:
function
(){
var
e
=
this
.
option
,
t
=
$
(
"[class*="
+
e
.
parent
+
"]"
);
t
.
length
>
0
&&
(
alignHeight
.
changesize
(
e
),
$
(
window
).
on
(
"resize.change"
,
function
(){
$
(
window
).
trigger
(
"changesize"
)}),
$
(
window
).
on
(
"changesize"
,
function
(){
alignHeight
.
changesize
()}))},
reset
:
function
(){
var
e
=
this
.
option
,
t
=
$
(
"[class*="
+
e
.
parent
+
"]"
),
n
=
"[class$="
+
e
.
children
+
"]"
;
t
.
find
(
n
).
css
(
"height"
,
""
)},
changesize
:
function
(){
var
e
=
this
.
option
,
t
=
$
(
"[class*="
+
e
.
parent
+
"]"
),
n
=
"[class$="
+
e
.
children
+
"]"
;
t
.
find
(
e
.
children
).
css
(
"height"
,
""
),
t
.
each
(
function
(){
var
e
=
0
;
$
(
n
,
this
).
each
(
function
(){
$
(
this
).
outerHeight
()
>
e
&&
(
e
=
$
(
this
).
outerHeight
())}),
$
(
n
,
this
).
css
(
"height"
,
e
)})},
destroy
:
function
(){
$
(
window
).
off
(
"resize.change changesize"
),
alignHeight
.
reset
()}}}();
$
(
function
(){
$
(
".tab"
).
click
(
function
(){
$
(
".is-active"
).
removeClass
(
"is-active"
),
$
(
this
).
addClass
(
"is-active"
),
$
(
".is-show"
).
removeClass
(
"is-show"
);
const
e
=
$
(
this
).
index
();
$
(
".tabCont"
).
eq
(
e
).
addClass
(
"is-show"
)})}),
$
(
function
(){
$
(
"a.btn--stop ,.reserveStop a"
).
click
(
function
(){
return
!
1
})}),
function
(
e
){
e
.
fn
.
fixMe
=
function
(){
return
this
.
each
(
function
(){
function
o
(){
n
=
t
.
clone
(),
n
.
find
(
"tbody"
).
remove
().
end
().
addClass
(
"fixed"
).
insertBefore
(
t
),
i
()}
function
i
(){
n
.
width
(
t
.
outerWidth
()),
n
.
find
(
"th"
).
each
(
function
(
n
){
e
(
this
).
css
(
"width"
,
t
.
find
(
"th"
).
eq
(
n
).
outerWidth
()
+
"px"
)})}
function
s
(){
var
o
=
e
(
this
).
scrollTop
(),
i
=
e
(
this
).
scrollLeft
(),
s
=
e
(
".header"
).
height
();
tableOffsetTop
=
t
.
offset
().
top
-
s
,
tableOffsetBottom
=
tableOffsetTop
+
t
.
height
()
-
t
.
find
(
"thead"
).
height
(),
tableOffsetLeft
=
t
.
offset
().
left
,
tableOffsetTop
>
o
||
o
>
tableOffsetBottom
?
n
.
hide
():
o
>=
tableOffsetTop
&&
tableOffsetBottom
>=
o
&&
n
.
is
(
":hidden"
)
&&
n
.
show
(),
n
.
css
({
left
:
tableOffsetLeft
-
i
+
"px"
,
top
:
s
})}
var
n
,
t
=
e
(
this
);
e
(
window
).
resize
(
i
),
e
(
window
).
scroll
(
s
),
o
()})}}(
jQuery
),
$
(
window
).
on
(
"load"
,
function
(){
screen
.
width
>
767
&&
$
(
".schedule-table"
).
fixMe
()});
\ No newline at end of file
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