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
ffc55c65
authored
Mar 17, 2020
by
Orine Matsui
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
https://gitlab.so-ra.co.jp/sora/achievement
into css整理
parents
ce353b0a
e9e16121
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
achievement-official.conohawing.com/assets/js/faq.min.js
achievement-official.conohawing.com/common_previous/css/other.css
achievement-official.conohawing.com/faq/index.php
achievement-official.conohawing.com/assets/js/faq.min.js
View file @
ffc55c65
$
(
function
(){
$
(
".p-faq-Q"
).
on
(
"click"
,
function
(){
$
(
this
).
next
().
slideToggle
(),
$
(
this
).
toggleClass
(
"active"
)});
var
e
=
$
(
".content"
),
t
=
$
(
".search__input"
).
find
(
"input[type=text]"
),
n
=
e
.
find
(
"h4"
),
i
=
$
(),
a
=
[];
n
.
each
(
function
(){
a
.
push
(
$
(
this
).
text
().
replace
(
/
\s{2,}
/g
,
" "
).
toLowerCase
())}),
t
.
on
(
"keyup"
,
function
(){
n
.
each
(
function
(){
i
=
$
(
this
),
i
.
html
(
i
.
html
().
replace
(
/<span class="highlight">
([^
<
]
+
)
<
\/
span>/gi
,
"$1"
))});
var
s
=
$
.
trim
(
t
.
val
()).
toLowerCase
();
if
(
s
.
length
)
for
(
var
o
in
a
)
if
(
i
=
n
.
eq
(
o
),
-
1
!=
a
[
o
].
indexOf
(
s
))
i
.
html
(
i
.
html
().
replace
(
new
RegExp
(
s
+
"(?!([^<]+)?>)"
,
"gi"
),
'<span class="highlight">$&</span>'
)),
i
.
parent
().
parent
().
css
(
"display"
,
"block"
);
else
{
i
.
parent
().
parent
().
css
(
"display"
,
"none"
);
var
l
=
$
(
"#sect1 .p-faq-Box"
).
filter
(
":visible"
).
length
,
f
=
$
(
"#sect2 .p-faq-Box"
).
filter
(
":visible"
).
length
,
r
=
$
(
"#sect3 .p-faq-Box"
).
filter
(
":visible"
).
length
,
c
=
$
(
"#sect4 .p-faq-Box"
).
filter
(
":visible"
).
length
,
h
=
$
(
"#sect5 .p-faq-Box"
).
filter
(
":visible"
).
length
,
d
=
$
(
"#sect6 .p-faq-Box"
).
filter
(
":visible"
).
length
;
0
==
l
?
$
(
"#faq-01"
).
css
(
"display"
,
"none"
):
$
(
"#faq-01"
).
css
(
"display"
,
"block"
),
0
==
f
?
$
(
"#faq-02"
).
css
(
"display"
,
"none"
):
$
(
"#faq-02"
).
css
(
"display"
,
"block"
),
0
==
r
?
$
(
"#faq-03"
).
css
(
"display"
,
"none"
):
$
(
"#faq-03"
).
css
(
"display"
,
"block"
),
0
==
c
?
$
(
"#faq-04"
).
css
(
"display"
,
"none"
):
$
(
"#faq-04"
).
css
(
"display"
,
"block"
),
0
==
h
?
$
(
"#faq-05"
).
css
(
"display"
,
"none"
):
$
(
"#faq-05"
).
css
(
"display"
,
"block"
),
0
==
d
?
$
(
"#faq-06"
).
css
(
"display"
,
"none"
):
$
(
"#faq-06"
).
css
(
"display"
,
"block"
),
0
==
l
&&
0
==
f
&&
0
==
r
&&
0
==
c
&&
0
==
h
&&
0
==
d
?
$
(
".faq-notfound"
).
css
(
"display"
,
"block"
):
$
(
".faq-notfound"
).
css
(
"display"
,
"none"
)}
else
n
.
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
$
(
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"
)})});
\ No newline at end of file
achievement-official.conohawing.com/common_previous/css/other.css
View file @
ffc55c65
...
...
@@ -2263,3 +2263,15 @@ body {
margin-bottom
:
12px
;
text-align
:
center
;
}
@media
screen
and
(
max-width
:
767px
)
{
.p-faq
.faq-notfound
{
display
:
none
;
font-size
:
1.6rem
;
line-height
:
1.4
;
}
}
input
::-webkit-input-placeholder
{
padding-top
:
0.2em
;
}
achievement-official.conohawing.com/faq/index.php
View file @
ffc55c65
...
...
@@ -17,7 +17,7 @@
<div
class=
"container"
>
<aside
class=
"side
pc-only
"
>
<aside
class=
"side"
>
<div
class=
"side__box"
>
<div
class=
"search"
>
...
...
@@ -28,7 +28,7 @@
</form>
</div>
<ul
class=
"side__list"
>
<ul
class=
"side__list
pc-only
"
>
<li
class=
"side__item"
>
<a
class=
"side__txt"
href=
"#faq-01"
>
セミナーについて
</a>
</li>
...
...
@@ -813,7 +813,7 @@
</div>
</div>
</section>
<p
class=
"faq-notfound"
>
該当する質問がありませんでした。他のキーワードをお試しください。
</p>
<p
class=
"faq-notfound"
>
該当する質問がありませんでした。
<br
class=
"sp-only"
>
他のキーワードをお試しください。
</p>
</main>
...
...
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