읽는 재미의 발견

새로워진 한국일보로그인/회원가입

  • 관심과 취향에 맞게 내맘대로 메인 뉴스 설정
  • 구독한 콘텐츠는 마이페이지에서 한번에 모아보기
  • 속보, 단독은 물론 관심기사와 활동내역까지 알림
자세히보기

' + redisJson[i].article_contents.replace(new RegExp("\\["+ $PUSH_TYPE[redisJson[i].article_type].name +"\\]" , "g"), "") + ''; } else { html += '

' + redisJson[i].article_contents + ''; } if(redisJson[i].article_image !== '' || redisJson[i].article_image !== null){ html += '

'; html += ' '; html += ' '; } html += ' '; html += ' '; html += '
'; html += '
"대북 작전? 사령관 지시 이상해 실탄 분배 안 해"... 계엄군 현장 지휘관의 증언
알림
알림
  • 알림이 없습니다
\n' + ' '); } } // 최근 검색어가 없으면 } else { // 전체 삭제 버튼 비활성화 $('button[data-el="search-record-delete-all-btn-in-gnb"]').attr('disabled', true); $('dl[data-el="search-record-list-in-gnb"]').append('
최근 입력한 검색어가 없습니다.
'); // 컨테이너 css class toggle $('div[data-el="search-toggle-recent-word"]').addClass('no-result'); } } function onClickSearchRecord(searchText) { location.href = _searchHost + '/Search?searchText=' + encodeURIComponent(searchText); } function onClickDeleteSearchRecord(index, event) { var searchRecordCookie = Cookies.get('search-record'); var searchRecord = searchRecordCookie.split(',').reverse(); // Prevent Submit Form Tag event.preventDefault(); event.stopImmediatePropagation(); // 해당 인덱스 삭제 searchRecord.splice(Number(index), 1); if (searchRecord.reverse().join(',') !== '') { // Cookies.set('search-record', searchRecord.join(','), {path: '/', expires: 60 * 60 * 24 * 265}); fn_setCookie('search-record', searchRecord.join(','), {path: '/', expires: 60 * 60 * 24 * 265}); } else { Cookies.remove('search-record'); } setSearchRecord(); } /** * 검색어 전체 삭제 listener */ function setSearchRecordDeleteAllListener() { $('button[data-el="search-record-delete-all-btn-in-gnb"]').on('click', function () { Cookies.remove('search-record'); setSearchRecord(); }) } /** * 검색어 저장 on off 버튼 listener */ function setSaveSearchRecordOnOffBtnListener() { $('button[data-el="search-record-save-off-btn-in-record-in-gnb"]').on('click', function () { var flag = Cookies.get('save-search-record-flag'); if (flag === 'true' || flag === undefined) { // Cookies.set('save-search-record-flag', 'false', {path: '/', expires: 60 * 60 * 24 * 265}); fn_setCookie('save-search-record-flag', 'false', {path: '/', expires: 60 * 60 * 24 * 265}); $('button[data-el="search-record-save-off-btn-in-record-in-gnb"]').html('검색어 저장 켜기'); $('button[data-el="search-record-save-off-btn-in-auto-in-gnb"]').html('검색어 저장 켜기'); } else { // Cookies.set('save-search-record-flag', 'true', {path: '/', expires: 60 * 60 * 24 * 265}); fn_setCookie('save-search-record-flag', 'true', {path: '/', expires: 60 * 60 * 24 * 265}); $('button[data-el="search-record-save-off-btn-in-record-in-gnb"]').html('검색어 저장 끄기'); $('button[data-el="search-record-save-off-btn-in-auto-in-gnb"]').html('검색어 저장 끄기'); } }); $('button[data-el="search-record-save-off-btn-in-auto-in-gnb"]').on('click', function () { var flag = Cookies.get('save-search-record-flag'); if (flag === 'true' || flag === undefined) { // Cookies.set('save-search-record-flag', 'false', {path: '/', expires: 60 * 60 * 24 * 265}); fn_setCookie('save-search-record-flag', 'false', {path: '/', expires: 60 * 60 * 24 * 265}); $('button[data-el="search-record-save-off-btn-in-record-in-gnb"]').html('검색어 저장 켜기'); $('button[data-el="search-record-save-off-btn-in-auto-in-gnb"]').html('검색어 저장 켜기'); } else { // Cookies.set('save-search-record-flag', 'true', {path: '/', expires: 60 * 60 * 24 * 265}); fn_setCookie('save-search-record-flag', 'true', {path: '/', expires: 60 * 60 * 24 * 265}); $('button[data-el="search-record-save-off-btn-in-record-in-gnb"]').html('검색어 저장 끄기'); $('button[data-el="search-record-save-off-btn-in-auto-in-gnb"]').html('검색어 저장 끄기'); } }) } /** * 검색어 input 리스너 세팅 */ function setSearchInputListener() { $('button[data-el="search-input-in-gnb-btn"]').off('click.search-input-in-gnb-btn').on('click.search-input-in-gnb-btn', function(){ var searchText = $(this).parent().find('input[data-el="search-input-in-gnb"]').val(); saveSearchRecord(searchText); location.href = _searchHost + "/Search?searchText=" + encodeURIComponent(searchText); }) $('input[data-el="search-input-in-gnb"]').on('keyup', function (key) { //키가 13이면 실행 (엔터는 13) var searchText = $(this).val(); if (key.keyCode == 13 && searchText !== '') { saveSearchRecord(searchText); location.href = _searchHost + "/Search?searchText=" + encodeURIComponent(searchText); } // 상단 검색에서 자동완성 막기. // if( this.dataset.auto !== 'disabled' ){ // var param = { // "query": { // "bool": { // "should": [{ // "term": { // "PHRASE_Ngram": Hangul.disassemble(key.target.value).join('') // } // }], // "minimum_should_match": 1 // } // } // }; // var relatedSearchKeywordList = ''; // $.ajax({ // url: "/Search-auto-complete", // method: "POST", // contentType: 'application/json', // data: JSON.stringify(param), // success: function (response) { // var $autoCompleteList = $('dl[data-el="auto-complete-list-in-gnb"]'); // $autoCompleteList.html(''); // $autoCompleteList.html('
자동 완성
'); // for (var i = 0; i < response.length; i++) { // $autoCompleteList.append('
\n' + // ' ' + response[i]._id + '\n' + // '
'); // if (i === 0) { // relatedSearchKeywordList = response[i]._id; // } else { // relatedSearchKeywordList += ',' + response[i]._id; // } // } // Cookies.set('relatedSearchKeyword', relatedSearchKeywordList); // }, // fail: function (err) { // // console.log('댓글 등록 -> 댓글 등록 에러'); // } // }); // } }); } /** * 최근 검색 기록 추가 */ function saveSearchRecord(searchText) { // 빈 값 검색 기록에 검색하면 넣지 않고 검색만 한다. if ($.trim(searchText) === '') { return; } var searchSaveFlag = Cookies.get('save-search-record-flag'); // 검색어 저장이 true 이면 if (searchSaveFlag === 'true' || searchSaveFlag === undefined) { var now = new Date(); var ymd = now.getFullYear() + "." + ('0' + (now.getMonth() + 1)).slice(-2) + "." + now.getDate(); var searchRecord = Cookies.get('search-record'); // 빈 값이 아니면 if (searchRecord !== undefined) { var searchRecordList = searchRecord.split(','); if (searchRecordList.length === 10) { searchRecordList.reverse(); searchRecordList.pop(); searchRecordList.reverse(); searchRecord = searchRecordList.join(','); } searchRecord += ',' + searchText + "_splitter" + ymd; } else { searchRecord = searchText + "_splitter" + ymd; } // Cookies.set('search-record', searchRecord, {path: '/', expires: 60 * 60 * 24 * 265}); fn_setCookie('search-record', searchRecord, {path: '/', expires: 60 * 60 * 24 * 265}); setSearchRecord(); } } /** * 인기 검색어 조회 * 2021-04-08 인기검색어 노출 제거.(네이버 실시간 검색 종료) */ function setPopularKeyword() { $.ajax({ url: "/Search-popular-keyword", method: "GET", success: function (response) { // console.log('인기 검색어 조회 성공'); // console.log(response); var popularKeywordList = response; var metaKeywordList = []; // 기사 개수 var popularArticleCount = 20; // 기사 개수에 따른 분기점 var popularKeywordCount = 4; if (popularKeywordList.length > 0) { $('p[data-el="keyword-created-dt"]').html(getFormattedDate(popularKeywordList[0].createdDt, 'yyyy.mm.dd hh:mm') + ' 기준') for (var i = 0; i < popularArticleCount; i++) { var item = popularKeywordList[i]; var articleShoulder = item.articleShoulder !== undefined ? item.articleShoulder.shoulderContents : ''; if (i % popularKeywordCount === 0 && i < popularArticleCount) { // 메타에 넣을 배열 준비 metaKeywordList.push(item.topic); $('#keyword-' + (i / popularKeywordCount)).html('' + parseInt((i / popularKeywordCount) + 1) + '' + item.topic + '') $('#rank-list').append('
  • ' + parseInt((i / popularKeywordCount) + 1) + '. ' + item.topic + '
  • '); $('#hot-keyword-main-' + i).html('
    \n' + '
    \n' + ' ' + articleShoulder + '\n' + '

    ' + getArticleCutName(item) + item.articleTitle + '

    \n' + ' ' + getFormattedDate(item.articleDeployDt, 'yyyy.mm.dd hh:mm') + '\n' + '
    \n' + '
    \n' + ' \n' + ' \n' + ' \n' + '
    \n' + '
    \n' + '

    \n' + ' ' + item.articleFrontPanContents + '\n' + '

    ') } else if (i % popularKeywordCount !== 0) { $('#hot-keyword-sub-' + parseInt(i / popularKeywordCount)).append('
  • ' + getArticleCutName(item) + item.articleTitle + '
  • ') } } setTimeout(function() { $('#rank-list').addClass('is-play'); }, 500); $('meta[name="news_keywords"]').attr('content', metaKeywordList.join(",")); $('.btn-open-search').click(function() { if (location.href.indexOf('/Search') > -1) { location.replace(_searchHost+'/Search?searchText=' + popularKeywordList[0].topic) } else { location.replace(_searchHost+'/Search'); } }); } }, fail: function (err) { // console.log('댓글 등록 -> 댓글 등록 에러'); } }); }

    단독 "대북 작전? 사령관 지시 이상해 실탄 분배 안 해"... 계엄군 현장 지휘관의 증언

    입력
    2024.12.06 11:01
    수정
    2024.12.06 11:31
    6면
    0 0

    "2일 곽종근 특전사령관 지시로 준비 태세"
    "임무는 국회 내 사람들 빠져나가게 하라"

    윤석열 대통령의 비상계엄 해제 요구 결의안이 국회 본회의에서 통과된 4일 새벽 무장 계엄군이 국회를 나서고 있다. 여야는 이날 본회의에서 재석 190명 중 찬성 190명으로 비상계엄 해제 요구 결의안을 가결 처리했다. 이에 따라 계엄령 선포는 무효가 됐다고 국회의장실은 설명했다. 뉴스1

    윤석열 대통령의 비상계엄 해제 요구 결의안이 국회 본회의에서 통과된 4일 새벽 무장 계엄군이 국회를 나서고 있다. 여야는 이날 본회의에서 재석 190명 중 찬성 190명으로 비상계엄 해제 요구 결의안을 가결 처리했다. 이에 따라 계엄령 선포는 무효가 됐다고 국회의장실은 설명했다. 뉴스1


    "특전사령관의 지시가 이상했다. 그래서 실탄을 불출하지 않고 현장 지휘관이 갖고 있었다."

    '); document.write('
    '); document.write('
    '); }else{ for (var i = 0; i < loopTotal; i++) { // 문화 카테고리 오른쪽 배너 고정 if (vSectionCd == "CULTURE" && i == 1) { document.write('
    '); document.write('
    '); continue; } document.write('
    '); if(id.indexOf('pc_news_endpage_low') == 0){ document.write('
    '); } } $( document ).ready(function() { // 스크립트 삭제(태그 개수에 따라 위치가 잡히기 때문에 필요 없는 태그 삭제) $('.end-ad-container[data-ad="articleDivide"] script').remove(); });

    윤석열 대통령의 비상계엄 선포와 동시에 3일 밤 완전무장 상태로 국회에 난입한 계엄군을 이끈 여단장, 특임단장 등 현장 지휘관들마저도 '대북 임무'인 것으로 알고 작전에 투입됐다. 올 초 김용현 전 국방부 장관의 '한남동 공관 멤버' 중 한 명으로 거론되는 곽종근 육군 특수전사령관은 2일 "북한 임무를 수행할 수 있으니 대기하고 있으라"고 예하 부대에 말했다고 한다. 다만 현장에서 이상함을 느낀 지휘관들은 실탄을 부대원들에게 불출하지 않았다. 이들의 판단이 더 큰 화를 면한 셈이다.

    6일 특전사 내부 소식에 정통한 소식통에 따르면 현장에 출동한 일부 부대는 윤 대통령이 비상계엄 선포를 위한 긴급 담화를 시작한 3일 오후 10시 30분을 기해 임무를 받았다. 출동 당시 곽 사령관으로부터의 지시는 "국회로 가서 국회 안에 있는 사람을 바깥으로 다 빠져나가게 하라는 것." 실탄은 대대장과 지역대장 선에서 갖고 있으라는 지시도 더해졌다.

    사전 조짐은 있었다. 비상계엄 선포 전날인 2일 월요일, 인천 국제평화지원단에서 남수단 파병부대인 '한빛부대 19진' 파병환송식이 열렸다. 이곳에서 곽 사령관은 일부 예하 부대 지휘관들에게 "북한의 상황이 심상치 않으니 대기하고 있으라"고 했다고 한다. 그랬기에 3일 비상계엄 당시 병력 투입 장소가 '국회'라는 것을 듣고 일부 현장 지휘관들은 낌새가 이상하다는 것을 감지했다.

    허영 더불어민주당 의원이 5일 오후 서울 여의도 국회에서 열린 국방위원회 전체회의 비상계엄 선포 경과 및 병력 동원 관련 현안질의에서 계엄사령관을 맡았던 박안수 육군참모총장을 향해 국회 진입 당시 실탄 소지 여부를 묻고 있다. 뉴스1

    허영 더불어민주당 의원이 5일 오후 서울 여의도 국회에서 열린 국방위원회 전체회의 비상계엄 선포 경과 및 병력 동원 관련 현안질의에서 계엄사령관을 맡았던 박안수 육군참모총장을 향해 국회 진입 당시 실탄 소지 여부를 묻고 있다. 뉴스1

    '); document.write('
    '); document.write('
    '); }else{ for (var i = 0; i < loopTotal; i++) { // 문화 카테고리 오른쪽 배너 고정 if (vSectionCd == "CULTURE" && i == 1) { document.write('
    '); document.write('
    '); continue; } document.write('
    '); if(id.indexOf('pc_news_endpage_low') == 0){ document.write('
    '); } } $( document ).ready(function() { // 스크립트 삭제(태그 개수에 따라 위치가 잡히기 때문에 필요 없는 태그 삭제) $('.end-ad-container[data-ad="articleDivide"] script').remove(); });

    반신반의하며 국회에 도착한 특전사들을 맞은 것은 시민들과 국회 보좌진들이었다. 이에 한 지휘관은 현장을 보고 파악한 뒤 실탄은 물론이고 공포탄도 불출하지 말라고 지시한 뒤, 자신이 소지했다. 또 상황 파악을 위해 선발대 30명을 먼저 보내 동태를 살폈다. 혹시 모를 충돌에 대비해 "민간인들과는 절대로 접촉하지 말고 거리를 유지하라"는 지시도 내렸다. 이후 후발대는 국회에 진입하지 않고 대기하다가 계엄령 해제 이후 철수 명령이 떨어져 복귀를 했다는 게 현장 지휘관의 증언이다.

    전날 국방위에서 야당 의원들은 국회 경내 진입한 계엄군에 실탄과 기관단총이 지급됐고 현장에 저격수도 배치됐었다는 제보를 받았다고 따져물었다. 김선호 국방차관은 이 자리에서 "특전사령관으로부터 실탄 지급은 없었다고 들었다"고 말했다.

    군내 최정예 훈련을 받은 특전사에서 한순간 '계엄군'이 되어버린 군은 물론, 대대장·여단장급 지휘관들도 크게 동요하고 있다. 5일 열린 국회 국방위 긴급현안질의 등에 출석하려 했지만, 전날 "김 장관이 출석해서 다 이야기할 테니 대기하라"는 명령이 떨어졌다고도 한다. 이후 전말이 소상히 밝혀질 줄 알았지만, 김 전 장관은 회의 직전에 면직되는 꼼수로 국회 출석을 피했다. 군 내부에서는 "1980년 광주 오명을 씻기 위해 군이 얼마나 노력해왔는데 선배들이 어찌 이럴 수가 있느냐"고 분통을 터뜨리며, 전역을 입에 올리는 이들도 나온다고 한다.




    이혜미 기자

    기사 URL이 복사되었습니다.

    세상을 보는 균형, 한국일보Copyright ⓒ Hankookilbo 신문 구독신청
    '); li.attr('class', "mst_" + item.articleId + "_" + i); li.find('a').attr('href', getArticleUrl(item) + '?type=AB1&rPrev=' + 'A2024120609160005933').attr('target', '_self').attr('title', escapeHtml(item.articleTitle)); li.find('div.title').text(item.articleTitle); li.find('div.img-box > img').attr('src', item.filePath); $('#related-article-list').append(li); } } else { $('.more-news').attr('style', 'display:none;'); } }, error: function (req, stat, err) { console.log(err); } }); } // 관련기사 목록 가져오기 function getRelatedList(){ if (isDisableTarget('moreNews')) { return; } // 관련기사 / 추천기사 AB 테스트 $.ajax({ url: url, method: "GET", contentType: 'application/json', success: function(data) { let relatedData = []; let recommendData = []; for (let i = 0; i < data.length; i++) { const item = data[i]; if (item.type === 'related') { relatedData.push(item); } else if (item.type === 'recommend') { recommendData.push(item); } } var contentCategory = $('meta[name="content_category"]').attr('content'); var sections = ['스포츠', '문화', '연예']; var targetData = null; var maxDataLength = 0; var targetTitle = ''; var isDisplayNone = false; var classTag = ''; // 추천기사 서버 인 경우 if (getRandTrueFalse()) { // 스포츠, 문화, 연예 && 관련기사 없는 경우 if (sections.includes(contentCategory) && relatedData.length === 0) { // 추천기사가 없는 경우 if (recommendData.length === 0) { switch (contentCategory) { case '스포츠': case '문화': case '연예': incMostViewedArticles2(contentCategory); break; default: isDisplayNone = true; break; } } else { // 추천기사가 노출 maxDataLength = recommendData.length; targetData = recommendData; targetTitle = '이 기사와 관련된 추천기사'; classTag = 'rec_'; } } else { // 1. 관련기사가 1건이상인 경우에만 // 2. 추천기사가 관련기사보다 많은 경우에만 if (1 <= relatedData.length && relatedData.length <= recommendData.length) { maxDataLength = relatedData.length; targetData = recommendData targetTitle = '이 기사와 관련된 추천기사'; classTag = 'rec_'; } else { // 관련기사 노출 maxDataLength = relatedData.length; targetData = relatedData; targetTitle = '이 기사와 관련된 기사'; classTag = 'rel_'; if (relatedData.length === 0) { isDisplayNone = true; } } } } // 관련기사 서버인 경우 else { if (sections.includes(contentCategory) && relatedData.length === 0) { // 관련기사가 있으면 노출 없으면 섹션별 많이 본 뉴스 /*: https://hankookilbo.atlassian.net/browse/DEV1-471 [스포츠, 문화, 연예] 섹션일때 추천 기사가 없으면 가장 많이 본 기사를 보여준다 */ switch (contentCategory) { case '스포츠': case '문화': case '연예': incMostViewedArticles2(contentCategory); break; default: isDisplayNone = true; break; } } else { // 관련기사 노출 maxDataLength = relatedData.length; targetData = relatedData; targetTitle = '이 기사와 관련된 기사'; classTag = 'rel_'; if (relatedData.length === 0) { isDisplayNone = true; } } } if (isDisplayNone) { $('.more-news').attr('style', 'display:none;'); } if (targetData !== null) { $('.more-news-related > h3').text(targetTitle); for (let i = 0; i < maxDataLength; i++) { const item = targetData[i]; const li = $('
  • '); li.attr('class', classTag + item.articleId + "_" + i); li.find('a').attr('href', getArticleUrl(item) + '?type=AB1&rPrev=' + 'A2024120609160005933').attr('target', '_' + item.articleLinkTargetType).attr('title', escapeHtml(item.articleTitle)); li.find('div.title').text(getArticleCutName(item) + item.articleTitle); if (item.repAttach != null) { li.find('div.img-box > img').attr('src', item.repAttach.filePath); } if (isMovieSectionYN === 'Y') { $('#related-article-list-video').append(li); } else { $('#related-article-list').append(li); } } } // console.log('========== 관련된 기사 조회 성공 =========='); // checkRelatedList(data, isMovieSectionYN); }, error: function (req, stat, err) { } }); // } // 관련기사 목록 갯수 확인 function checkRelatedList(data, isMovieSectionYN){ drawRelatedList(data, isMovieSectionYN); } // 관련기사 그리기 function drawRelatedList(data, isMovieSectionYN){ console.log("isMovieSectionYN: " + isMovieSectionYN); for (var i = 0; i < data.length; i++) { var item = data[i]; var li =$('
  • '); li.attr('class', "rec_" + item.articleId + "_" + i); li.find('a').attr('href', getArticleUrl(item) + '?type=AB1&rPrev=' + 'A2024120609160005933').attr('target', '_' + item.articleLinkTargetType); li.find('div.title').text(getArticleCutName(item) + item.articleTitle); if (item.repAttach != null) { li.find('div.img-box > img').attr('src', item.repAttach.filePath); } if (isMovieSectionYN == 'Y') { $('#related-article-list-video').append(li); } else { $('#related-article-list').append(li); } } } // 관련기사 호출 getRelatedList(); /** * 기사 구독 버튼 클릭 */ function onClickSubscribeArticleBtn(location) { subscribeLocation = location; // 로그인 확인 if (Cookies.get('accessToken') === undefined) { $('#sign-in-request-alert').openPopup(); return; } if ($(event.target).hasClass('on')) { $('#delete-subscription-popup').openPopup(); return; } subscribeTypeCheck(); } /** * 구독 분기 함수 */ function subscribeTypeCheck(){ //if(subscribeLocation == 'JPAGE' || subscribeLocation == 'TAG'){ if(subscribeLocation == 'JPAGE' || subscribeLocation == 'HASHTAG'){ subscribeArticleNew(subscribeLocation); }else{ subscribeArticle(); } } /** * 기사 구독 */ function subscribeArticle() { var usersSubscriptionPart = ''; var usersSubscriptionValue = 'L2024120322410002520'; var seriesType = ''; var subContentType = ""; switch (usersSubscriptionPart){ case 'SeriesColumn': seriesType = 'NEWS_SERIES'; subContentType = '칼럼'; break; case 'Planning': seriesType = 'NEWS_PLANNING'; subContentType = '연재'; break; case 'Series': seriesType = 'NEWS_PLANNING'; subContentType = '연재'; break; case 'NameColumn': seriesType = 'NEWS_SERIES'; subContentType = '칼럼'; break; } $.ajax({ url: '/my/subscription', method: "POST", contentType: 'application/json', data: JSON.stringify({ usersSubscriptionPart: seriesType, usersSubscriptionValue: usersSubscriptionValue }) }).success(function (response) { var successYn = response; if (successYn) { if (successYn === 'Y') { fn_setGoogleAnalyticsUserDetailsUpdate(""); var sub_content = '헌재, 대통령 윤석열 파면'; if ("btn-subsc" == $('.btn-subsc').attr('class')) { //구독 중 fn_googleAnalyticsSubscribe(sub_content, subContentType); } else { //구독 취소 fn_googleAnalyticsUnsubscribe(sub_content, subContentType); } $('.btn-subsc').toggleClass('on'); } else if(successYn === 'F'){ $('#subscribe-valid-popup').openPopup(); $('.btn-subsc').remove(); } else { $('.btn-subsc').removeClass('on'); } } else { // console.log('기사 구독 -> 실패') } }).fail(function (error) { // }); } /** * 기자 구독 */ function subscribeArticleNew(location) { // 기사 구독 api를 쏜다 -> 중복체크는 controller에서 한다. if(location == 'JPAGE'){ $.ajax({ url: '/my/subscription', method: "POST", contentType: 'application/json', data: JSON.stringify({ usersSubscriptionPart: location, usersSubscriptionValue: '403b00b6-96b2-4edb-9bac-314c31efd8e2' }) }).success(function (response) { var successYn = response; if (successYn == 'Y') { // css를 바꾼다 // console.log('기사 구독 -> 성공'); fn_setGoogleAnalyticsUserDetailsUpdate(""); $('.subsc-btn.jpage').toggleClass('on'); if ($('.subsc-btn.jpage').hasClass('on')) { $('.subsc-btn.jpage').siblings('.add-pop').show(); //구독 중 fn_googleAnalyticsSubscribe('이혜미', '기자'); } else { $('.subsc-btn.jpage').siblings('.cancel-pop').show(); //구독 취소 fn_googleAnalyticsUnsubscribe('이혜미', '기자'); } } else if(successYn === 'F') { $('#subscribe-valid-popup').openPopup(); $('.subsc-btn.jpage').remove(); } else { // console.log('기사 구독 -> 실패') } }).fail(function (error) { // }); // }else if(location == 'TAG'){ }else if(location == 'HASHTAG'){ $.ajax({ url: '/my/subscription', method: "POST", contentType: 'application/json', data: JSON.stringify({ usersSubscriptionPart: location, usersSubscriptionValue: '' }) }).success(function (response) { var successYn = response; if (successYn === 'Y') { // css를 바꾼다 // console.log('기사 구독 -> 성공'); $('.subsc-btn.tag').toggleClass('on'); if ($('.subsc-btn.tag').hasClass('on')) { $('.subsc-btn.tag').siblings('.add-pop').show(); } else { $('.subsc-btn.tag').siblings('.cancel-pop').show(); } } else if(successYn === 'F') { $('#subscribe-valid-popup').openPopup(); $('.subsc-btn.tag').remove(); } else { // console.log('기사 구독 -> 실패') } }).fail(function (error) { // }); } } /** * 기사 저장 버튼 클릭 */ function onClickSaveArticleBtn(location) { // 로그인 확인 if (Cookies.get('accessToken') === undefined) { $('#sign-in-request-alert').openPopup(); return; } // 기사 저장 api를 쏜다 -> 중복체크는 controller에서 한다. $.ajax({ url: '/article/activity', method: 'POST', contentType: 'application/json', data: JSON.stringify({ articleId: 'A2024120609160005933', activityType: 'Save' }), success: function (response) { // console.log('기사 저장 -> 성공'); var flag = response; if (flag) { // 기사 저장 css 토글 $('.btn-bookmark').toggleClass('on'); $('.icon-toolbox-bookmark').toggleClass('on'); // on이면 추가 popup off면 제거 popup if ($('.btn-bookmark').hasClass('on')) { setGoogleAnalyticsArticleSave(); if (location === 'top') { $('#top-save-article-popup').show(); } else { $('#bottom-save-article-popup').show(); } } else { if (location === 'top') { $('#top-delete-article-popup').show(); } else { $('#bottom-delete-article-popup').show(); } } // css를 바꾼다 } else { // console.log('기사 저장 -> 실패') } toggleAnimation('bottom-save-article-btn'); }, fail: function () { // console.log('기사 저장 -> 에러') } }) } function setGoogleAnalyticsArticleSave() { var headline = $('meta[name="headline"]').attr('content'); var content_category = $('meta[name="content_category"]').attr('content'); var content_subcategory = $('meta[name="content_subcategory"]').attr('content'); var article_type = $('meta[name="article_type"]' ).attr('content'); var article_length = $('meta[name="article_length"]' ).attr('content'); if (Cookies.get('accessToken') !== undefined) { window.dataLayer = window.dataLayer || []; $.ajax({ url: '/google-analytics/user-details-decrypt', type: 'GET', contentType: 'application/json', success: function (data) { dataLayer.push({ 'event': 'save', 'user_id': data.user_id, 'gender': data.gender, 'yob': data.yob, 'headline': headline, 'content_category': content_category, 'content_subcategory': content_subcategory, 'article_type': article_type, 'article_length': article_length, }); }, error: function () { } }); } } /** * 팝업 리스너들.. 외부 클릭시 숨긴다. */ var bottomSaveArticlePopup = $('#bottom-save-article-popup'); var bottomDeleteArticlePopup = $('#bottom-delete-article-popup'); var bottomSubscriptionSavePopup = $('#bottom-subscription-save-popup'); var bottomSubscriptionDeletePopup = $('#bottom-subscription-delete-popup'); $(document).mouseup(function (e) { // if the target of the click isn't the container nor a descendant of the container if (!bottomSaveArticlePopup.is(e.target) && bottomSaveArticlePopup.has(e.target).length === 0) { bottomSaveArticlePopup.hide(); bottomDeleteArticlePopup.hide(); bottomSubscriptionSavePopup.hide(); bottomSubscriptionDeletePopup.hide(); } }); // 본문 중간 광고 하단 공백 제거. $(document).ready(function(){ $('.editor-p').each(function(i, dom){ $.each(dom.childNodes, function(j, node){ if(node.nodeType === 1 && String(node.tagName).toUpperCase() === 'BR' && (dom.dataset.breakType === undefined || dom.dataset.breakType !== 'text') ){ dom.dataset.breakType = 'break'; }else{ dom.dataset.breakType = 'text'; } }) if(dom.dataset.breakType === 'break' && $(dom).prev().hasClass('end-ad-container')){ $(dom).remove(); } }) $("button[name='hashtags']").on("click", function () { var tag = this.id var tagId = this.value var url ="/tag/info/"+tagId+'/'+tag+'?page=1'; location.href = url; }); }) \n' + '

    ' + article.articleTitle + '

    \n' + ' \n' + ' ' } $('ul[data-el="topIssueArticlesList"]').empty().html(html) }).fail(function (err) { // console.log('라이브이슈 - 최근기사 조회-> 에러'); $('div[data-el="topIssueArticles"]').hide(); }); } getTopIssues(); })(window, document);
    ' item.find('a').append(html); item.find('a').attr('href', article.articleUrl + '?type=AB6'); item.find('a').attr('title', escapeHtml(article.articleTitle)); item.find('a').attr('target', '_' + article.articleLinkTargetType); $target.append(item); } } else { $("#topViewArticlesTitle").css("display", "none"); $("#topViewArticlesContainer").css("display", "none"); } $target = $('#topViewArticlesSubContainer'); if ($target) { $target.data('data', data); $li = $target.find('li'); $target.empty(); } articles = data.sectionArticles; if (articles.length > 0) { for (var i = 0; i < articles.length; i++) { var article = articles[i]; var item = $li.clone(); var articleFilePath = article.filePath; var idx = (article.filePath).lastIndexOf('.'); if(idx > 0) { var ext = (article.filePath).substring(idx); articleFilePath = (article.filePath).replace(ext, '_s' + ext); } if ((article.articleTitle.indexOf('[백운산 오늘의 운세]') == 0) && (article.filePath == '/images/Default-Image.png')) { articleFilePath = '/images/fortune/fortune384.jpg'; } var html = '

    ' + '' + (i + 1) + '' + '' + article.articleTitle + '' + '

    \n' + '
    \n' + '\n' + '
    ' item.find('a').append(html); item.find('a').attr('title', escapeHtml(article.articleTitle)); item.find('a').attr('href', article.articleUrl + '?type=AB7'); item.find('a').attr('target', '_' + article.articleLinkTargetType); $target.append(item); } } else { $("#topViewArticlesSubContainer").css("display", "none"); $("#topViewArticlesSubContainer").prev().css("display", "none"); } }, error: function (req, stat, err) { // console.log(err); } }); // ajax }

    LIVE ISSUE

    기사 URL이 복사되었습니다.

    댓글0

    0 / 250
    중복 선택 불가 안내

    이미 공감 표현을 선택하신
    기사입니다. 변경을 원하시면 취소
    후 다시 선택해주세요.