Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
sora
/
keio-dentetsu
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
7f6ef750
authored
Aug 31, 2020
by
Orine Matsui
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
本番最新をDL
parent
5dc2630a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
78 deletions
common/css/base.css
common/js/script.js
common/css/base.css
View file @
7f6ef750
This diff is collapsed.
Click to expand it.
common/js/script.js
View file @
7f6ef750
/* header電話番号拡大 */
/* header電話番号拡大 */
$
(
function
()
{
$
(
function
()
{
$
(
'#head_contact li:first-child + *'
).
attr
(
'id'
,
'head_contact_tel'
);
$
(
'#head_contact li:first-child + *'
).
attr
(
'id'
,
'head_contact_tel'
);
pathname
=
location
.
pathname
;
pathname
=
location
.
pathname
;
if
(
pathname
.
indexOf
(
'/rental'
)
==
-
1
)
{
if
(
pathname
.
indexOf
(
'/rental'
)
==
-
1
)
{
$
(
'#head_contact_tel img'
).
hover
(
$
(
'#head_contact_tel img'
).
hover
(
function
()
{
function
()
{
$
(
'#head_contact_tel img'
).
attr
(
'src'
,
'/common/img/header_freedial_hotton.png'
);
$
(
'#head_contact_tel img'
).
attr
(
'src'
,
'/common/img/header_freedial_hotton.png'
);
},
function
()
{
},
function
()
{
$
(
'#head_contact_tel img'
).
attr
(
'src'
,
'/common/img/header_freedial.png'
);
$
(
'#head_contact_tel img'
).
attr
(
'src'
,
'/common/img/header_freedial.png'
);
}
}
);
);
}
else
{
}
else
{
$
(
'#head_contact_tel img'
).
hover
(
$
(
'#head_contact_tel img'
).
hover
(
function
()
{
function
()
{
$
(
'#head_contact_tel img'
).
attr
(
'src'
,
'/common/img/header_freedial_hotton_rental.png'
);
$
(
'#head_contact_tel img'
).
attr
(
'src'
,
'/common/img/header_freedial_hotton_rental.png'
);
},
function
()
{
},
function
()
{
$
(
'#head_contact_tel img'
).
attr
(
'src'
,
'/common/img/header_freedial.png'
);
$
(
'#head_contact_tel img'
).
attr
(
'src'
,
'/common/img/header_freedial.png'
);
}
}
);
);
}
}
})
})
/* site search */
/* site search */
$
(
function
()
{
$
(
function
()
{
var
cx
=
'012834083069365124613:clp9ogaosg0'
;
var
cx
=
'012834083069365124613:clp9ogaosg0'
;
var
gcse
=
document
.
createElement
(
'script'
);
var
gcse
=
document
.
createElement
(
'script'
);
gcse
.
type
=
'text/javascript'
;
gcse
.
type
=
'text/javascript'
;
gcse
.
async
=
true
;
gcse
.
async
=
true
;
gcse
.
src
=
(
document
.
location
.
protocol
==
'https:'
?
'https:'
:
'http:'
)
+
gcse
.
src
=
(
document
.
location
.
protocol
==
'https:'
?
'https:'
:
'http:'
)
+
'//cse.google.com/cse.js?cx='
+
cx
;
'//cse.google.com/cse.js?cx='
+
cx
;
var
s
=
document
.
getElementsByTagName
(
'script'
)[
0
];
var
s
=
document
.
getElementsByTagName
(
'script'
)[
0
];
s
.
parentNode
.
insertBefore
(
gcse
,
s
);
s
.
parentNode
.
insertBefore
(
gcse
,
s
);
})
})
/* image rollover */
/* image rollover */
function
smartRollover
()
{
function
smartRollover
()
{
if
(
document
.
getElementsByTagName
)
{
if
(
document
.
getElementsByTagName
)
{
var
images
=
document
.
getElementsByTagName
(
"img"
);
var
images
=
document
.
getElementsByTagName
(
"img"
);
for
(
var
i
=
0
;
i
<
images
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
images
.
length
;
i
++
)
{
if
(
images
[
i
].
getAttribute
(
"src"
).
match
(
"_off."
))
{
if
(
images
[
i
].
getAttribute
(
"src"
).
match
(
"_off."
))
{
images
[
i
].
onmouseover
=
function
()
{
images
[
i
].
onmouseover
=
function
()
{
this
.
setAttribute
(
"src"
,
this
.
getAttribute
(
"src"
).
replace
(
"_off."
,
"_on."
));
this
.
setAttribute
(
"src"
,
this
.
getAttribute
(
"src"
).
replace
(
"_off."
,
"_on."
));
}
}
images
[
i
].
onmouseout
=
function
()
{
images
[
i
].
onmouseout
=
function
()
{
this
.
setAttribute
(
"src"
,
this
.
getAttribute
(
"src"
).
replace
(
"_on."
,
"_off."
));
this
.
setAttribute
(
"src"
,
this
.
getAttribute
(
"src"
).
replace
(
"_on."
,
"_off."
));
}
}
}
}
}
}
}
}
}
}
if
(
window
.
addEventListener
)
{
if
(
window
.
addEventListener
)
{
window
.
addEventListener
(
"load"
,
smartRollover
,
false
);
window
.
addEventListener
(
"load"
,
smartRollover
,
false
);
}
}
else
if
(
window
.
attachEvent
)
{
else
if
(
window
.
attachEvent
)
{
window
.
attachEvent
(
"onload"
,
smartRollover
);
window
.
attachEvent
(
"onload"
,
smartRollover
);
}
}
/* smooth scroll */
/* smooth scroll */
$
(
function
(){
$
(
function
(){
// #で始まるアンカーをクリックした場合に処理
// #で始まるアンカーをクリックした場合に処理
$
(
'a[href^=#]'
).
click
(
function
()
{
$
(
'a[href^=#]'
).
click
(
function
()
{
var
speed
=
400
;
var
speed
=
400
;
var
href
=
$
(
this
).
attr
(
"href"
);
var
href
=
$
(
this
).
attr
(
"href"
);
var
target
=
$
(
href
==
"#"
||
href
==
""
?
'html'
:
href
);
var
target
=
$
(
href
==
"#"
||
href
==
""
?
'html'
:
href
);
var
position
=
target
.
offset
().
top
;
var
position
=
target
.
offset
().
top
;
$
(
'body,html'
).
animate
({
scrollTop
:
position
},
speed
,
'swing'
);
$
(
'body,html'
).
animate
({
scrollTop
:
position
},
speed
,
'swing'
);
//return false;
//return false;
});
});
});
});
/* page top */
/* page top */
$
(
function
()
{
$
(
function
()
{
$
(
'.page_top'
).
click
(
function
()
{
$
(
'.page_top'
).
click
(
function
()
{
$
(
'html,body'
).
animate
({
scrollTop
:
0
},
'slow'
);
$
(
'html,body'
).
animate
({
scrollTop
:
0
},
'slow'
);
return
false
;
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