Skip to content

Commit 01fbbe8

Browse files
committed
More style clean up and bug fixes
1 parent 1f83f9e commit 01fbbe8

File tree

6 files changed

+597
-518
lines changed

6 files changed

+597
-518
lines changed

css/font-awesome.min.css

-403
This file was deleted.

css/screen.css

+585-2
Large diffs are not rendered by default.

js/github.js

-32
This file was deleted.

js/modernizr-2.0.js

-5
This file was deleted.

js/pinboard.js

-56
This file was deleted.

js/slash.js

+12-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
(function($) {
22
// Append caption after pictures
3-
$('.entry-content').each(function(i) {
4-
var _i = i;
5-
$(this).find('img').each(function() {
6-
var alt = this.alt;
3+
$('.entry-content img').each(function(i) {
4+
var alt = this.alt;
5+
var parent = $(this).parent();
76

8-
var parent = $(this).parent();
9-
10-
if (alt != '') {
11-
var element = $(this);
12-
if (parent.is('a')) {
13-
element = parent;
14-
}
15-
element.after('<span class="caption">'+alt+'</span>');
7+
if (alt != '') {
8+
var element = $(this);
9+
if (parent.is('a')) {
10+
element = parent;
1611
}
12+
element.after('<span class="caption">'+alt+'</span>');
13+
}
1714

18-
if (!parent.is('a')) {
19-
$(this).wrap('<a href="'+this.src+'" title="'+alt+'" class="fancybox" rel="gallery'+_i+'" />');
20-
}
21-
else {
22-
parent.addClass('fancybox');
23-
parent.attr('rel', 'gallery' + _i)
24-
}
25-
});
15+
if (!parent.is('a')) {
16+
$(this).wrap('<a href="'+this.src+'" title="'+alt+'" />');
17+
}
2618
});
2719
})(jQuery);

0 commit comments

Comments
 (0)