-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5be2b6d
commit 606d767
Showing
8 changed files
with
42 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,2 @@ | ||
<script type="text/javascript" src="libs/fluidbox/jquery.fluidbox.min.js"></script> | ||
<script> | ||
$(function () { | ||
$('p img') | ||
.wrap( | ||
function() { | ||
return "<a class='fld' href='" + $( this ).attr("src") + "'></a>"; | ||
} | ||
) | ||
.parents() | ||
.filter('a.fld') | ||
.fluidbox(); | ||
}); | ||
</script> | ||
<script type="text/javascript" src="include/js/enable-fluidbox.js"></script> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pre code, p code { | ||
font-family: 'Source Code Pro', monospace; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
<link href='libs/fluidbox/css/fluidbox.css' rel='stylesheet' type='text/css'> | ||
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'> | ||
<style type="text/css"> | ||
pre code { | ||
font-family: 'Source Code Pro', monospace; | ||
} | ||
</style> | ||
<link href='include/css/style.css' rel='stylesheet' type='text/css'> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/****************************************************************************** | ||
* Fluidbox is applied to <a> elements which contains <img> element, | ||
* while img tags are not wrapped in HTML files generated by usual knit. | ||
* | ||
* So, this script wraps <img> with <a> and then fluidbox(). | ||
*****************************************************************************/ | ||
|
||
$(function () { | ||
$('p img') | ||
.wrap( | ||
function() { | ||
return "<a class='fld' href='" + $( this ).attr("src") + "'></a>"; | ||
} | ||
) | ||
.parents() | ||
.filter('a.fld') | ||
.fluidbox(); | ||
}); |
This file contains 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
This file contains 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