mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
19 lines
432 B
JavaScript
19 lines
432 B
JavaScript
$(document).ready(function () {
|
|
// pretty code
|
|
prettyPrint();
|
|
|
|
//fancy image
|
|
$('.topic_content img,.reply_content img').each(function () {
|
|
if ($(this).width > 500) {
|
|
$(this).width(500);
|
|
}
|
|
var elem = $('<a class="content_img"></a>');
|
|
elem.attr('href', $(this).attr('src'));
|
|
$(this).wrap(elem);
|
|
});
|
|
$('.content_img').fancybox({
|
|
transitionIn: 'elastic',
|
|
transitionOut: 'elastic'
|
|
});
|
|
});
|