PageSourceSearch

https://www.careet.net/Content/scripts/common.careet.js?v=9/25/2026%208:39:38%20AM

js careet.net collected 2026-09-24 23:40:04 UTC 7,404 bytes, 218 lines download raw bytes

1function BookMark(event, id) {
2
3    event.preventDefault();
4    var obj = event.target;
5
6    $.post("/Content/ArticleClipCntUpd", {
7        id: id
8    }, function (data) {
9        if (data.success == true) {
10            if (data.status != 0) {
11                $(obj).addClass('s-bookmark');
12                $(obj).closest('.trend-delivery__item').addClass('s-bookmark');
13                $(obj).closest('.curation-cate-item').addClass('s-bookmark');
14            }
15            else {
16                $(obj).removeClass('s-bookmark');
17                $(obj).closest('.trend-delivery__item').removeClass('s-bookmark');
18                $(obj).closest('.curation-cate-item').removeClass('s-bookmark');
19            }
20
21            
22            alert(data.status == 0 ? "콘텐츠 저장을 취소했어요." : "콘텐츠를 저장했어요.");
23        }
24        else {
25            if (data.errorCode != null && data.errorCode == "1") {
26                if (confirm("로그인 후 이용 가능한 기능이에요.")) {
27                    location.href = "/User/Login";
28                }
29            }
30            else {
31                alert("오류가 발생하였습니다.\n 잠시 후 다시 시도해 주시기 바랍니다.");
32            }
33        }
34    });
35
36    return false;
37}
38
39function Follow(event,main,sub) {
40
41    event.preventDefault();
42    var obj = event.target;
43   
44    $.post("/TrendKeyword/FollowUpd", {
45        main: main,
46        sub: sub
47    }, function (data) {
48        if (data.success == true) {
49            if(data.status != 0)
50            {
51                $(obj).addClass('s-follow');
52                document.getElementById('status').innerHTML = "팔로우 중";
53            }
54            else {
55                $(obj).removeClass('s-follow');
56                document.getElementById('status').innerHTML = "팔로우하기";
57            }
58          
59            alert(data.status == 0 ? "선택한 키워드를 팔로우 목록에서 삭제했어요. " : "선택한 키워드를 팔로우 목록에 추가했어요. ");
60        }
61        else {
62            if (data.errorCode != null && data.errorCode == "1") {
63                if (confirm("로그인 후 이용 가능한 기능이에요.")) {
64                    location.href = "/User/Login";
65                }
66            }
67            else {
68                alert("오류가 발생하였습니다.\n 잠시 후 다시 시도해 주시기 바랍니다.");
69            }
70        }
71    });
72
73}
74
75function Follow1(event, main, sub) {
76
77    event.preventDefault();
78    var obj = event.target;
79
80    $.post("/TrendKeyword/FollowUpd", {
81        main: main,
82        sub: sub
83    }, function (data) {
84        if (data.success == true) {
85            if (data.status != 0) {
86                $(obj).addClass('s-follow');
87               
88            }
89            else {
90                $(obj).removeClass('s-follow');
91               
92            }
93
94            alert(data.status == 0 ? "선택한 키워드를 팔로우 목록에서 삭제했어요. " : "선택한 키워드를 팔로우 목록에 추가했어요. ");
95        }
96        else {
97            if (data.errorCode == "1") {
98                if (confirm("로그인 후 이용 가능한 기능이에요​\n로그인 하시겠습니까?")) {
99                    location.href = "/User/Login";
100                }
101            }
102            else {
103                alert("오류가 발생하였습니다.\n 잠시 후 다시 시도해 주시기 바랍니다.");
104            }
105        }
106    });
107
108}
109function FollowDel(event, main, sub, cat) {
110
111    event.preventDefault();
112    var obj = event.target;
113
114    $.post("/TrendKeyword/FollowUpd", {
115        main: main,
116        sub: sub
117    }, function (data) {
118        if (data.success == true) {
119           
120            
121            alert(data.status == 0 ? "선택한 키워드를 팔로우 목록에서 삭제했어요. " : "선택한 키워드를 팔로우 목록에 추가했어요. ");
122
123            if (cat == 2) {
124                location.href = "/TrendKeyword/FollowList";
125            }
126            else {
127                location.href = "/TrendKeyword";
128            }
129           
130        }
131        else {
132            if (data.errorCode != null && data.errorCode == "1") {
133                if (confirm("로그인 후 이용 가능한 기능이에요.")) {
134                    location.href = "/User/Login";
135                }
136            }
137            else {
138                alert("오류가 발생하였습니다.\n 잠시 후 다시 시도해 주시기 바랍니다.");
139            }
140        }
141    });
142
143}
144
145function CodeCopy(obj) {
146    var hashtagName = $(obj).attr("data-id");
147    if (hashtagName) {
148        Clipboard && Clipboard.copy(obj, hashtagName);
149        alert("추천인 코드가 복사되었습니다.\n캐릿 멤버십을 최초 결제하는 친구에게 공유해보세요!");
150    } else {
151        window.open(this.defaultOptions.url);
152    }
153
154    this.ShareCntUpd('urlcopy');
155}
156
157
158
159//////////////////////////////
160///////Clipboard
161//////////////////////////////
162; (function (win, doc, callback) { 'use strict'; callback = callback || function () { }; function detach() { if (doc.addEventListener) { doc.removeEventListener('DOMContentLoaded', completed); } else { doc.detachEvent('onreadystatechange', completed); } } function completed() { if (doc.addEventListener || event.type === 'load' || doc.readyState === 'complete') { detach(); callback(window, window.jQuery); } } function init() { if (doc.addEventListener) { doc.addEventListener('DOMContentLoaded', completed); } else { doc.attachEvent('onreadystatechange', completed); } } init(); })(window, document, function (win, $) {
163
164    window.Clipboard = (function (window, document, navigator) {
165        var textArea,
166            copy,
167            prevScrollTop;
168
169        function isOS() {
170            return navigator.userAgent.match(/ipad|iphone/i);
171        }
172
173        function createTextArea(el, text) {
174            textArea = document.createElement('textArea');
175            textArea.style.width = "1px";
176            textArea.style.height = "1px";
177            textArea.value = text;
178
179            var agent = navigator.userAgent.toLowerCase();
180            el.parentNode.appendChild(textArea);
181        }
182
183        function selectText() {
184            var range,
185                selection;
186
187            if (isOS()) {
188                range = document.createRange();
189                range.selectNodeContents(textArea);
190                selection = window.getSelection();
191                selection.removeAllRanges();
192                selection.addRange(range);
193                textArea.focus();
194                textArea.setSelectionRange(0, 999999);
195            } else {
196                textArea.select();
197            }
198        }
199
200        function copyToClipboard(el) {
201            document.execCommand('copy');
202            $(textArea).closest('.event-desc').focus();
203            el.parentNode.removeChild(textArea);
204        }
205
206        copy = function (el, text) {
207            createTextArea(el, text);
208            selectText();
209            copyToClipboard(el);
210        };
211
212        return {
213            copy: copy
214        };
215    })(window, document, navigator);
216
217});
218

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.