1/* 2 * ê°¤ë¬ë¦¬ ì°ì¸¡ ë¡ê·¸ì¸ ë°ì¤ ì¤í¬ë¦½í¸ 3 * 2018.02.05 - jhcho 4 * 5 */ 6 7/* 8 * ì림 리ì¤í¸ 9 */ 10 11//ì림 ëª©ë¡ ë ì´ì´ ì´ê¸°/ë«ê¸° 12var alarmList = function(toggleElm, toggleClass, type) { 13 //console.log(toggleElm) 14 //console.log(toggleClass) 15 //console.log(type) 16 var chk_view = 'N'; 17 //console.log($('#alarmList').css('position')) 18 //console.log($('#alarmList').css('display')) 19 if(type == 'H'){ 20 if($('#alarmList').css('position') != 'fixed' && $('#alarmList').css('display') == 'block') chk_view = 'Y'; 21 $('#alarmList').css({'top':'50%','left':'50%','margin-left':'-210px','margin-top':'-118px','right':'','position':'fixed'}); 22 $('#alarmConf').css({'top':'50%','left':'50%','margin-left':'-210px','margin-top':'-118px','right':'','position':'fixed'}); 23 }else if(type == 'G'){ 24 if($('#alarmList').css('position') != 'fixed' && $('#alarmList').css('display') == 'block') chk_view = 'Y'; 25 }else if(type == 'W'){ 26 if($('#alarmList').css('position') == 'fixed' && $('#alarmList').css('display') == 'block') chk_view = 'Y'; 27 $('#alarmList').css({'top':'145px','left':'','margin-left':'','margin-top':'','right':'-1px','position':''}); 28 $('#alarmConf').css({'top':'145px','left':'','margin-left':'','margin-top':'','right':'-1px','position':''}); 29 }else{ 30 if($('#alarmList').css('position') == 'fixed' && $('#alarmList').css('display') == 'block') chk_view = 'Y'; 31 $('#alarmList').css({'top':'79px','left':'','margin-left':'','margin-top':'','right':'-1px','position':''}); 32 $('#alarmConf').css({'top':'79px','left':'','margin-left':'','margin-top':'','right':'-1px','position':''}); 33 } 34 //console.log(chk_view) 35 if($('#alarmList').css('display') == 'none') { 36 login_box_layer_close(); 37 38 $('#alarmList').show(); 39 40 $(toggleElm).removeClass(toggleClass); 41 42 if(typeof(alarmClearNew) == 'function') { 43 alarmClearNew(); // alarm_polling.js 44 } 45 } 46 else { 47 if(chk_view == 'N'){ 48 alarmListClose(); 49 alarmConfClose(); 50 } 51 } 52}; 53 54//ì림 ëª©ë¡ ë ì´ì´ ë«ê¸° 55var alarmListClose = function() { 56 $('#alarmList').hide(); 57}; 58 59/////////////////////////////////////////////////////////////////////////////// 60 61/* 62 * ì림 ì¤ì 63 */ 64 65// ì림 ì¤ì ë ì´ì´ ì´ê¸°/ë«ê¸° 66var alarmConf = function() { 67 if($('#alarmConf').css('display') == 'none') { 68 login_box_layer_close(); 69 $('#alarmConf').show(); 70 } 71 else { 72 alarmConfClose(); 73 } 74}; 75 76// ì림 on/off 77var alarmConfToggle = function(type) { 78 if($('#alarmConf .'+type+' button').hasClass('on')){ 79 $('#alarmConf .'+type+' button').removeClass('on'); 80 $('#alarmConf .'+type+' .blind').text('off'); 81 }else{ 82 $('#alarmConf .'+type+' button').addClass('on'); 83 $('#alarmConf .'+type+' .blind').text('on'); 84 } 85 var popup = $('#alarmConf .popup button').hasClass('on'); 86 var reply = $('#alarmConf .reply button').hasClass('on'); 87 var reReply = $('#alarmConf .reReply button').hasClass('on'); 88 var pum = $('#alarmConf .pum button').hasClass('on'); 89 var rtbest = $('#alarmConf .rtbest button').hasClass('on'); 90 91 if(type == 'popup' && popup){ 92 $('#alarmConf .setting_onoff button').addClass('on'); 93 $('#alarmConf .setting_onoff .blind').text('on'); 94 }else if(type == 'popup' && !popup){ 95 $('#alarmConf .setting_onoff button').removeClass('on'); 96 $('#alarmConf .setting_onoff .blind').text('off'); 97 }else if(type =='reply' || type =='reReply' || type =='pum' || type =='rtbest'){ 98 if((reply || reReply || pum || rtbest) && !popup){ 99 $('#alarmConf .popup button').addClass('on'); 100 $('#alarmConf .popup .blind').text('on') 101 }else if(!reply && !reReply && !pum && !rtbest && popup){ 102 $('#alarmConf .popup button').removeClass('on'); 103 $('#alarmConf .popup .blind').text('off') 104 } 105 } 106} 107 108// ì림 ì¤ì ë ì´ì´ ë«ê¸° 109var alarmConfClose = function() { 110 $('#alarmConf').hide(); 111}; 112 113// [ì¤ë² ì림] ìì 4 ì¬ê¸°ë¶í° (2026-09-14 ì¶ê°) : ì림 ì¤ì 켬/ëì GA4 ë¡ë ë³´ë¸ë¤ 114// ìë² ì ë³ ì§ê³ì ê°ì ìì ·ê°ì ì¡°ê±´ìì ë³´ë¸ë¤. ëì GA ë ì°¨ë¨ê¸°ì ë§í ì«ìê° ë ì ê² ì¡íë¤. 115// ë°ëìëì§ë ãíë©´ì´ ê·¸ë ¤ì§ ëì ê°ãê³¼ ë¹êµíë¤. ìë²ë ì¿ í¤ë¡ ë¹êµíë¯ë¡ íì ì¬ë¬ ê° ì´ì´ ëë©´ 116// ì´ê¸ë ì ìëë°, íì ì ì본ì ì´ëê¹ì§ë ìë² ì§ê³ë¤. 117var rtb_conf_prev = null; 118 119$(function() { 120 var $rtb = $('#alarmConf .setting_onoff.rtbest button'); 121 122 if($rtb.length) { 123 rtb_conf_prev = $rtb.hasClass('on') ? 1 : 0; 124 } 125}); 126// [ì¤ë² ì림] ìì 4 ì¬ê¸°ê¹ì§ 127 128// ì림 ì¤ì ì ì¥ 129var alarmConfUpdate = function() { 130 var conf = new Object; 131 var csrf_token = get_cookie('ci_c'); 132 133 $('#alarmConf .setting_onoff > button').each(function() { 134 var status = $(this).hasClass('on') ? 1 : 0; 135 136 conf[$(this).attr('data-id')] = status; 137 }); 138 139 if(Object.keys(conf).length > 0) { 140 $.ajax({
141 url: "//gall.dcinside.com/ajax/alarm_ajax/conf_update?jsoncallback=?", 142 type : "GET", 143 cache: false, 144 async: false, 145 dataType: 'json', 146 data : (function() { 147 var d = { ci_t : csrf_token, conf : conf }; 148 if(typeof rtb_get === 'function' && typeof RTB_K_CELL !== 'undefined') { 149 var rtb_cell = rtb_get(RTB_K_CELL); 150 if(rtb_cell) { 151 d.rtb_cell = rtb_cell; 152 d.rtb_gt = (typeof _GALLERY_TYPE_ !== 'undefined' && _GALLERY_TYPE_) ? _GALLERY_TYPE_ : ''; 153 } 154 } 155 return d; 156 })(), 157 success: function(res) { 158 if(res === '0000') { 159 if(typeof rtb_ga === 'function' && rtb_conf_prev !== null && typeof conf.rtbest !== 'undefined' && conf.rtbest !== rtb_conf_prev) { 160 rtb_ga(conf.rtbest ? 'rtb_alarm_on' : 'rtb_alarm_off'); 161 rtb_conf_prev = conf.rtbest; 162 } 163 alert('ì ì©ëììµëë¤.'); 164 alarmConfClose(); 165 } 166 else { 167 alert('ì¼ìì ì¸ ì¤ë¥ë¡ ì ì¥ëì§ ìììµëë¤.'); 168 } 169 } 170 }); 171 } 172}; 173 174// ì°ì¸¡ ë¡ê·¸ì¸ë°ì¤ ë´ ë ì´ì´ íì ì ì²´ ë«ê¸° (íì´í ë«íì¼ë¡ ë³ê²½ í¬í¨) 175var login_box_layer_close = function() { 176 if($('.login_box .pop_wrap, .login_wrap .pop_wrap').length > 0){ 177 $('.login_box .pop_wrap, .login_wrap .pop_wrap').hide(); 178 $('#my_favorite').hide(); 179 $('#alarmList').hide(); 180 $('.login_box .icon_favorites').addClass('hide'); 181 $('.login_box .icon_admin').addClass('hide'); 182 }else{ 183 $('#top .dchead .pop_wrap').hide(); 184 } 185} 186 187//ì¤ë² ë°°ì§ ì¤ì ì ì¥ 188var bestconConfToggle = function(elm) { 189 190 var confirm_msg = ($(elm).hasClass('on'))?'ì¤ë² ê°¤ë¬ì½ì ì¬ì© ì¤ì§íìê² ìµëê¹?':'ì¤ë² ê°¤ë¬ì½ì ì¬ì©íìê² ìµëê¹?'; 191 192 if(!confirm(confirm_msg)) { 193 return false; 194 } 195 var conf = new Object; 196 var csrf_token = get_cookie('ci_c'); 197 var status = 0; 198 199 $('#bestConConf .setting_onoff > button').each(function() { 200 status = $(this).hasClass('on') ? 0 : 1; 201 202 conf[$(this).attr('data-id')] = status; 203 }); 204 205 206 207 if(Object.keys(conf).length > 0) { 208 $.ajax({
209 url: "//gall.dcinside.com/ajax/gallercon_ajax/conf_update?jsoncallback=?", 210 type : "GET", 211 cache: false, 212 async: false, 213 dataType: 'json', 214 data : { 215 ci_t : csrf_token, 216 conf : conf 217 }, 218 success: function(res) { 219 if(res === '0000') { 220 var alet_msg = (!status)?'ì¤ë² ê°¤ë¬ì½ì´ 미ì ì©ëììµëë¤.':'ì¤ë² ê°¤ë¬ì½ì´ ì ì©ëììµëë¤.'; 221 if(!status) { 222 $(elm).removeClass('on'); 223 $('.blind', elm).text('off'); 224 } else { 225 $(elm).addClass('on'); 226 $('.blind', elm).text('on'); 227 } 228 229 alert(alet_msg); 230 231 } 232 else { 233 if(res === '0001') { 234 alert('í루 ë³ê²½ íìê° ì´ê³¼ëììµëë¤.'); 235 }else { 236 alert('ì¼ìì ì¸ ì¤ë¥ë¡ ì ì¥ëì§ ìììµëë¤.'); 237 } 238 } 239 } 240 }); 241 } 242} 243 244 245//ì¤ë² ë°°ì§ ì¤ì ë ì´ì´ ì´ê¸°/ë«ê¸° 246var bestconConf = function() { 247 if($('#bestConMsg').css('display') != 'none') { 248 bestconMsgClose(); 249 } 250 if($('#bestConConf').css('display') == 'none') { 251 login_box_layer_close(); 252 $('#bestConConf').show(); 253 } 254 else { 255 bestconConfClose(); 256 } 257}; 258 259//ì¤ë² ë°°ì§ ì¤ì ë ì´ì´ ë«ê¸° 260var bestconConfClose = function(cookie) { 261 if(cookie) set_cookie('bestcon_msg', "Y", 168, "dcinside.com"); 262 $('#bestConConf').hide(); 263} 264 265var bestconMsgClose = function() { 266 set_cookie('bestcon_msg', "Y", 168, "dcinside.com"); 267 $('#bestConMsg').hide(); 268} 269// [ì¤ë² ì림] ì¬ê¸°ë¶í° 270$(function() { 271 var $box = $('#alarmConf .rtbest_box'); 272 if($box.length < 1 || $box.attr('data-ab-end') === '1') { 273 return; 274 } 275 276 try { 277 if(localStorage.getItem('rtb_cell') === 'Z') { 278 $box.remove(); 279 } 280 } catch(e) {} 281}); 282 283// [ì¤ë² ì림] ì¬ê¸°ê¹ì§
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.