This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>MyApp</title> | |
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> | |
<%= javascript_include_tag "application", "data-turbolinks-track" => true %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link type="text/css" href="css/shadowbox.css" rel="stylesheet" media="all" /> | |
<script type="text/javascript" src="js/shadowbox.js"></script> | |
<script type="text/javascript"> | |
Shadowbox.init(); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="sample1.jpg" rel="shadowbox" title="サンプル01"><img src="sample01.jpg"></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="slide"> | |
<li class="slide1"><a href="sample01.jpg" rel="shadowbox[group]" title="サンプル01"><img src="sample1.jpg"></a></li> | |
<li class="slide1"><a href="sample02.jpg" rel="shadowbox[group]" title="サンプル02"><img src="sample2.jpg"></a></li> | |
<li class="slide1"><a href="sample03.jpg" rel="shadowbox[group]" title="サンプル03"><img src="sample3.jpg"></a></li> | |
<li class="slide1"><a href="sample04.jpg" rel="shadowbox[group]" title="サンプル04"><img src="sample4.jpg"></a></li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="//www.youtube.com/embed/QZ1poicuB2s" rel="shadowbox;width=560;height=315">YouTube動画</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sb-loading-inner span{background:url(/images/Shadowbox/loading.gif) no-repeat;padding-left:34px;display:inline-block;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$('a[href^=#]').click(function() { | |
var speed = 400; | |
var href= $(this).attr("href"); | |
var target = $(href == "#" || href == "" ? 'html' : href); | |
var position = target.offset().top; | |
$('body,html').animate({scrollTop:position}, speed, 'swing'); | |
return false; | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>smoothScroll</title> | |
<!-- javascripts --> | |
<script src="js/jquery-1.10.2.min.js"></script> | |
<script type="text/javascript" src="js/smoothScroll.js"></script> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select{ | |
-webkit-appearance:none; | |
-moz-appearance:none; | |
appearance:none; | |
text-indent: .01px; /*Firefox用*/ | |
text-overflow: ""; /*Firefox用*/ | |
} |
OlderNewer