bilbo
0
152
0
2024.11.28 07:00
Aliens: Dark Descent
‘).appendTo(document.body);
gifencBg = $(“.gif-encoding-background”);
}
if(gifenc.length == 0){
jQuery(‘
Optimizing GIF file…
please wait for a moment.
‘).appendTo(document.body);
gifenc = $(“.gif-encoding”);
}
gifenc.show();
gifencBg.show();
var edDivX = edDivEl.offset().left;
var edDivY = edDivEl.offset().top;
gifencBg.css(“top”,edDivY);
gifencBg.css(“left”,edDivX);
gifencBg.css(“width”,edDivEl.outerWidth());
gifencBg.css(“height”,edDivEl.outerHeight());
var scTop = $(window).scrollTop();
var gifencTop = edDivY+((edDivEl.height()-gifenc.height())/2);
var gifencLeft = edDivX+((edDivEl.width()-gifenc.width())/2);
gifenc.css(“top”,gifencTop);
gifenc.css(“left”,gifencLeft);
}
function hideGifEnc(){
var gifenc = $(“.gif-encoding”);
var gifencBg = $(“.gif-encoding-background”);
gifenc.hide();
gifencBg.hide();
}
‘);
}
$(“#ajax-reply-list .best-comment-wrap”).append(html_build);
}else{
$(“#ajax-reply-list”).append(html_build);
}
var commentEl = “#comment”+ajaxdata[i].id
$(commentEl + “best”).find(“.content-view-ok”).html(ajaxdata[i].content);
$(commentEl).find(“.content-view-ok”).html(ajaxdata[i].content);
changeGoodButtonIcon(ajaxdata[i].is_good, $(commentEl + “best”).find(‘.top-util-area’).find(‘#goodButton’))
changeGoodButtonIcon(ajaxdata[i].is_good, $(commentEl).find(‘.top-util-area’).find(‘#goodButton’))
function changeGoodButtonIcon(isGood, el) {
if (isGood) {
el.removeClass(‘no’);
} else {
el.addClass(‘no’)
}
}
}
goodButtonInit()
}
}
function drawReply(type, data) {
var html = “”;
var dataIdName = data.id
if(type!=”common” && type != 2) {
dataIdName += type
}
if (type == 2) {
html += ”;
return html;
}
html += ”;
if(!data.user_profile) {
html += ‘‘;
}
else {
html += ”;
}
html += ”;
if(data.is_writer) {
html += ”;
}
html += ”;
html += ”;
if(type == 2) {
html += ”;
} else {
html += ”;
}
if(data.user_as_level) {
html += ”;
}
html += data.user_nick;
html += ”;
html += ‘
‘;
if(type == ‘best’) {
html += ”;
}
html += ‘
‘;
html += ‘
‘;
html += ‘‘ + data.reg_at + ‘‘;
html += ‘
‘;
html += ”;
html += ”;
if (type == 2) {
html += ‘
‘;
html += ‘
‘;
html += ‘ @’ + data.as_re_name + ‘
‘;
}
}
if(data.as_shingo ‘; // 3
}
if(data.as_lucky > 0){
html += ‘
congratulations! luck points ‘ + data.as_lucky + ‘Points were obtained.
‘;
}
html += ”;
html += ”;
html += ‘
‘;
html += ‘
‘;
html += ‘
‘;
html += ‘
‘;
html += ”;
return html;
}
function addBlindIcon(id) {
return ‘‘;
}
function clearCommentHtml()
{
$(“#ajax-reply-list”).empty();
}
function showReply(comment, id)
{
if(id)
{
if($(“#replay_all_btn” + id).hasClass(‘open’))
{
$(“.comment_reply” + id).show();
$(“#replay_all_btn” + id).html(“답글 접기”);
$(“#replay_all_btn” + id).removeClass(“open”);
$(“#replay_all_btn” + id).addClass(“replay-all-close”);
}
else
{
cancelComment()
$(“.comment_reply” + id).remove();
$(“#replay_all_btn” + id).html(“답글 전체보기”);
$(“#replay_all_btn” + id).addClass(“open”);
$(“#replay_all_btn” + id).removeClass(“replay-all-close”);
}
}
}
var goodClick = true;
function goodButtonInit() {
$(“.goodButton, .noGoodButton”).not(‘.init’).on(‘click’, function(e) {
if(goodClick == true){
goodClick = false;
var $tx;
if($(this).hasClass(“goodButton”)) {
$tx = “good”;
} else {
$tx = “nogood”;
}
excuteGood(this.href, $(this), $tx);
setTimeout(function(){
goodClick = true;
}, 1500);
return false;
}
else {
return false;
}
}).not(‘.init’).on(‘dblclick’, function(e) {
e.preventDefault();
});
$(“.goodButton, .noGoodButton”).addClass(‘init’)
}
function showReplyAll() {
if($(‘.comment-btn.open’).length > 0){
$(‘.comment-btn.open’).each(function () {
var id = $(this).attr(‘data-id’)
var row = $(this).attr(‘data-row’)
var comment = $(this).attr(‘data-comment’)
showReply(comment, id, row)
})
}
}
Quasar Zone – A space-wide community: from the beginning to the end of the universe
로그인
‘)
$tmp.find(‘span’).text(e.nick)
$tmp.find(‘img’).attr(‘src’, e.img_path)
$tmp.find(‘.user-nick-wrap’).attr(‘data-id’, e.data_id)
$tmp.find(‘.user-nick-wrap’).attr(‘data-row’, e.data_row)
$list.append($tmp)
})
$pop.addClass(‘active’)
userNickWrapReInit()
drawVotePagination(index, count, data);
}
function drawVotePagination(index, count, data) {
$(“.voter-popup-area .paging-wrap”).empty();
var currentPage = data.current_page;
var firstPage = 1;
var lastPage = data.last_page;
var offset = parseInt(currentPage / 5);
var remain = currentPage % 5;
var pagingStartNum = remain == 0 ? (offset – 1) * 5 + 1 : offset * 5 + 1;
var pagingLastNum = pagingStartNum + 4;
if (pagingLastNum > lastPage) {
pagingLastNum = lastPage;
}
var prevPage = pagingStartNum – 5;
if (prevPage lastPage) {
var nextPage = pagingLastNum
} else {
var nextPage = pagingLastNum + 1;
}
if (lastPage == 1) {
$(‘.voter-popup-area’).find(‘.paging-wrap’).remove(‘.paging-wrap’);
} else {
var tag = ”;
tag += ”;
if (currentPage == 1) {
tag += ‘이전’;
} else {
tag += ‘이전’;
}
tag += ”;
if (pagingLastNum == lastPage) {
tag += ‘다음’;
} else {
tag += ‘다음’;
}
tag += ”;
}
$(“.voter-popup-area .paging-wrap”).append(tag);
}
function closeVoteListPop() {
var $pop = $(‘.voter-popup-wrap’)
$pop.removeClass(‘active’)
}