/*! copyright(c) FIVESTONE. All right Reserved. ÆÄÀ̺꽺ÅæÀÇ Çã¶ô¾øÀÌ ¹«´Üº¹Á¦ ¹× »ç¿ë ÇÒ ¼ö ¾ø½À´Ï´Ù. new*/
(function($) {
$(document).ready(function() {
var totalCount = $("#bbs_list_01 > tbody > tr > td").size();
var items = new Array(totalCount);
$("#bbs_list_01 > tbody > tr > td").each(function(idx) {
items[idx] = $(this).html();
});
$("#bbs_list_01 > tbody").empty().append("
");
$("#bbs_list_01 > tbody > tr").append(" | ");
$itemsArea = $("#bbs_list_01 > tbody > tr > td > div");
for(var i = 0; i < totalCount ;i++ ) {
$itemsArea.append("" + items[i] + "
");
$itemsArea.find("img").addClass("featurette-image img-responsive01 center-block");
}
$("#gallery_board_view #post_area img").each(function() {
var imgWsize = parseInt( $(this).css("width").replace("px",""), 10);
$(this).attr("x-size",imgWsize);
$(this).css("height","auto");
});
var imageResize4jQuery = function() {
var extraSize = 50;
var screenSize = $(window).width();
$("#gallery_board_view #post_area img").each(function() {
var imgWidth = parseInt( $(this).attr("x-size"), 10 );
if(screenSize < imgWidth)
$(this).css("width", screenSize - extraSize );
else
$(this).css("width", imgWidth );
});
};
$(window).resize(function() { imageResize4jQuery() });
imageResize4jQuery();
});
})(jQuery);