jQuery(function ($) { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } }; $(document).ready(function () { if ($('.photo_output').length) { var $subject = []; $('.photo_output table').each(function (i) { $subject[i] = $(this).find('.board_output_gallery_subject').text(); $(this).find('tr').not(':eq(0)').remove(); $(this).find('tr').eq(0).find('td.board_output_gallery_img > a').append('

' + $subject[i] + '

'); }); } $('td.board_output_gallery_img').each(function (i) { $(this).find('br').remove(); }); $('.photo_output > tbody > tr > td').addClass('wow fadeInUp'); // }); $(document).ready(function () { if ($('.photo_list').length) { var $subject = []; $('.photo_list .bbsnewf5').each(function (i) { $subject[i] = $(this).find('.gallery_title').text(); $(this).find('> table tr').not(':eq(0)').remove(); $(this).find('> table tr').eq(0).find('a').append('

' + $subject[i] + '

'); }); } }); });