Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
sora
/
sanitary-net
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
853c248e
authored
Oct 19, 2020
by
o.kimura
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
メニュー表示色調整・スクロール阻止
parent
8d9c5b0e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
18 deletions
utsukushitoilet/shared/css/common_jp.css
utsukushitoilet/shared/images/_pt_language.gif
utsukushitoilet/shared/images/pt_language.png
utsukushitoilet/shared/js/common.js
utsukushitoilet/shared/css/common_jp.css
View file @
853c248e
This diff is collapsed.
Click to expand it.
utsukushitoilet/shared/images/_pt_language.gif
0 → 100644
View file @
853c248e
1.11 KB
utsukushitoilet/shared/images/pt_language.png
0 → 100644
View file @
853c248e
17.1 KB
utsukushitoilet/shared/js/common.js
View file @
853c248e
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
mobileNav
();
smoothScroll
();
gSearch
();
});
$
(
function
()
{
/* 言語切り替え */
$
(
'#lang select'
).
change
(
function
()
{
$
(
function
()
{
/* 言語切り替え */
$
(
'#lang select'
).
change
(
function
()
{
if
(
$
(
this
).
val
()
!=
''
)
{
window
.
location
.
href
=
$
(
this
).
val
();
}
...
...
@@ -17,19 +17,25 @@ $( function () {
var
toggle
=
$
(
'#toggle_btn'
);
var
toggle_menu
=
$
(
'#toggle_menu'
);
var
overlay
=
$
(
'.overlay'
);
toggle
.
on
(
'click'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'active'
)
)
{
toggle
.
on
(
'click'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'active'
)
)
{
$
(
this
).
removeClass
(
'active'
);
toggle_menu
.
slideUp
(
'fast'
);
overlay
.
slideUp
(
'fast'
);
$
(
"html"
).
css
(
"overflow-y"
,
"auto"
);
$
(
"body"
).
removeClass
(
'active'
);
}
else
{
$
(
this
).
addClass
(
'active'
);
toggle_menu
.
slideDown
(
'fast'
);
overlay
.
slideDown
(
'fast'
);
$
(
"html"
).
css
(
"overflow-y"
,
"hidden"
);
setTimeout
(
function
()
{
$
(
"body"
).
addClass
(
'active'
);
},
100
);
}
return
false
;
});
overlay
.
on
(
'click'
,
function
()
{
overlay
.
on
(
'click'
,
function
()
{
toggle
.
removeClass
(
'active'
);
toggle_menu
.
slideUp
(
'fast'
);
overlay
.
slideUp
(
'fast'
);
...
...
@@ -39,11 +45,11 @@ $( function () {
});
/* モバイル用ナビゲーション */
var
mobileNav
=
(
function
()
{
var
mobileNav
=
(
function
()
{
var
openFlg
=
0
;
var
ua
=
navigator
.
userAgent
;
$
(
'#toggle'
).
click
(
function
()
{
if
(
openFlg
==
0
)
{
$
(
'#toggle'
).
click
(
function
()
{
if
(
openFlg
==
0
)
{
$
(
'#navi'
).
addClass
(
"open"
);
$
(
'#toggle'
).
addClass
(
"open"
);
$
(
'#head_menu'
).
addClass
(
"open"
);
...
...
@@ -68,7 +74,7 @@ var mobileNav = ( function() {
});
var
gSearch
=
(
function
()
{
var
gSearch
=
(
function
()
{
var
cx
=
'002492979778199743801:oaprkry4gm4'
;
var
gcse
=
document
.
createElement
(
'script'
);
gcse
.
type
=
'text/javascript'
;
...
...
@@ -80,16 +86,15 @@ var gSearch = ( function() {
});
/* smooth scroll */
var
smoothScroll
=
(
function
()
{
$
(
'.pagetop a'
).
click
(
function
()
{
var
smoothScroll
=
(
function
()
{
$
(
'.pagetop a'
).
click
(
function
()
{
var
speed
=
400
;
var
href
=
$
(
this
).
attr
(
"href"
);
var
href
=
$
(
this
).
attr
(
"href"
);
var
target
=
$
(
href
==
"#"
||
href
==
""
?
'html'
:
href
);
var
position
=
target
.
offset
().
top
;
$
(
'body,html'
).
animate
({
scrollTop
:
position
},
speed
,
'swing'
);
$
(
'body,html'
).
animate
({
scrollTop
:
position
},
speed
,
'swing'
);
return
false
;
});
});
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