PageSourceSearch

https://busan.com/nas/wcms/public/pc/js/busan.js?ver=2&t=1790853858

js busan.com collected 2026-10-01 11:25:07 UTC 10,385 bytes, 299 lines download raw bytes

1$(document).ready(function(){
2    //기사본문 프린트
3    $("#wcms_print").click(function() {
4        var news_code   = $("#wcms_print").attr("news");
5        window.open("/print/index.php?code="+news_code,"_blank","left=200,top=50,height=900,width=1000,scrollbars=yes");
6    });
7
8    //기사본문 스크랩
9    $(".btn_tool.scrap").click(function() {
10        $(".pop_scrap").css("display", "block");
11        $(".pop_scrap #scrapLinkVal").text($(location).attr('href'));
12    });
13    $(".pop_scrap .close").click(function() {
14        $(".pop_scrap").css("display", "none");
15    });
16
17    //기사본문 메일보내기
18    $(".btn_tool.mail").click(function() {
19        $(".pop_mail").css("display", "block");
20    });
21    $(".pop_mail .close").click(function() {
22        $(".pop_mail").css("display", "none");
23    });
24    //기사본문 내용 area
25    $('.txtarea').each(function(){
26        this.contentEditable = true;
27    });
28    // 검색페이지 기사 enter 검색
29    $("#wcms_search_string").keydown(function(event){
30        if( event.keyCode == 13 ){
31            $('#wcms_search_btn').trigger('click');
32        }
33    });
34    /*$("#wcms_header_search").keydown(function(event){
35        if( event.keyCode == 13 ){
36            headerSearch();
37        }
38    });*/
39});
40function fontsize(mod) {
41    var size = $(".article_view .article_content p").css("font-size");
42    size = parseInt(size, 10);
43    console.log(size);
44    if(mod == "up" && size <= 22) {
45        size = size + 2;
46        $(".article_view .article_content p").css("font-size", size + "px");
47    } else if(mod == "down" && size >= 12) {
48        size = size - 2;
49        $(".article_view .article_content p").css("font-size", size + "px");
50    }
51}
52function setCookie(cookie, exp, type){
53    var date = new Date();
54    date.setTime(date.getTime() + exp*24*60*60*1000);
55    document.cookie = 'popup_' + cookie + '=' + 'popup_' + cookie + ';expires=' + date.toUTCString() + ';path=/';
56    if( type == 'P'){
57        window.close();
58    }else if( type == 'L'){
59        $("#ad_popup"+cookie).hide();
60    }
61}
62
63function frontPopup(idx){
64    $("#ad_popup"+idx).hide();
65}
66
67function logout(){
68    delCookie('UserID');
69    delCookie('UserName');
70    location.reload();
71}
72
73function delCookie(name){
74
75    $.ajax({
76        url: 'http://here.busan.com/bbs/logout.php',
77        success:function(result){
78            location.reload();
79        }
80    });
81}
82
83
84function comma(x) {
85    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
86}
87
88function headerSearch(){
89    var wcms_header_search = $.trim($("#wcms_header_search").val());
90    var special_string     =  /[\/?.,|*~`!^\-_+<>@\#$%&\\\=\'\"]/gi;
91    wcms_header_search     = wcms_header_search.replace(special_string, " ");
92    if( wcms_header_search == "" ){
93        alert("검색어를 입력해 주십시오.");
94        return;
95    }else{
96        location.href="/search/index.php?search_string="+decodeURIComponent(wcms_header_search);
97    }
98}
99
100// 메일 수정 해야됨
101function sendEmail(){
102    var to_name         = $("#to_send_name").val();
103    var to_email        = $("#to_send_email").val();
104    var from_name       = $("#from_send_name").val();
105    var from_email      = $("#from_send_email").val();
106    var from_content    = $("#from_send_content").html();
107    var email_title     = $("#email_title").text();
108
109    if( to_name == "" ){
110        alert('받는 분 이름을 작성해주십시오.');
111        return;
112    }
113    if( to_email == "" ){
114        alert('받는 분 이메일을 작성해주십시오.');
115        return;
116    }
117    if( from_name == "" ){
118        alert('보내는 분 이름을 작성해주십시오.');
119        return;
120    }
121    if( from_email == "" ){
122        alert('보내는 분 이메일을 작성해주십시오.');
123        return;
124    }
125    if( from_content == "" ){
126        alert('전하고 싶은 말을 작성해주십시오.');
127        return;
128    }
129    $.ajax({
130        type:'POST',
131        dataType:'JSON',
132        data:{'to_name':to_name,'to_email':to_email,'from_name':from_name,'from_email':from_email,'from_content':from_content,'email_title':email_title},
133        url: '/commonFunc/sendEmail.php',
134        success:function(result){
135            console.log(result);
136            console.log(result.status);
137            console.log(result.mail);
138            if( result.status == "success" ){
139                console.log(result.mail);
140                $("#from_send_name").val("");
141                $("#from_send_email").val("");
142                $("#from_send_content").html("");
143                $(".pop_mail").css("display", "none");
144            }else if ( result.status == 'mail_error'){
145                alert('메일주소를 다시 확인하여 주십시오.');
146                return;
147            }
148        }
149    });
150
151}
152
153// sns 공유
154function cosmosfarm_share_is_mobile(){
155    var mobile = new Array('iPhone', 'iPad', 'iPod', 'BlackBerry', 'Android', 'Windows CE', 'LG', 'MOT', 'SAMSUNG', 'SonyEricsson', 'Opera Mini', 'IEMobile');
156    for(var word in mobile){
157        if(navigator.userAgent.match(mobile[word]) != null) return true;
158    }
159    return false;
160}
161function cosmosfarm_share_naver(url, text){
162    var w = 720;
163    var h = 720;
164    var popup = window.open("http://share.naver.com/web/shareView.nhn?url="+encodeURIComponent(url)+"&title="+encodeURIComponent(text), 'cosmosfarm_share', 'width='+w+',height='+h+',left='+(screen.availWidth-w)*0.5+',top='+(screen.availHeight-h)*0.5);
165    return false;
166}
167function cosmosfarm_share_facebook(url){
168    var w = 720;
169    var h = 350;
170    jQuery.post('https://graph.facebook.com', {id:encodeURI(url),scrape:true});
171    window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(url), 'cosmosfarm_share', 'width='+w+',height='+h+',left='+(screen.availWidth-w)*0.5+',top='+(screen.availHeight-h)*0.5);
172    return false;
173}
174function cosmosfarm_share_twitter(url, text){
175    var w = 720;
176    var h = 350;
177    window.open('https://twitter.com/intent/tweet?text='+encodeURIComponent(text)+'&url='+encodeURIComponent(url), 'cosmosfarm_share', 'width='+w+',height='+h+',left='+(screen.availWidth-w)*0.5+',top='+(screen.availHeight-h)*0.5);
178    return false;
179}
180function cosmosfarm_share_band(url, text){
181    var w = 410;
182    var h = 540;
183    window.open('http://www.band.us/plugin/share?body='+encodeURIComponent(text)+encodeURIComponent("\n")+encodeURIComponent(url)+'&route='+encodeURIComponent(url), 'cosmosfarm_share', 'width='+w+',height='+h+',left='+(screen.availWidth-w)*0.5+',top='+(screen.availHeight-h)*0.5);
184    return false;
185}
186function cosmosfarm_share_kakaostory(url, text){
187    Kakao.Story.share({
188        url: encodeURI(url),
189        text: text
190    });
191    return false;
192}
193function cosmosfarm_share_kakaotalk(url, text){
194    if(cosmosfarm_share_is_mobile()){
195        if(jQuery('meta[property="og:image"]').last().attr('content')){
196            Kakao.Link.sendTalkLink({
197                label: text,
198                image:{
199                    src: encodeURI(jQuery('meta[property="og:image"]').last().attr('content')),
200                    width: jQuery('meta[property="og:image:width"]').last().attr('content')?jQuery('meta[property="og:image:width"]').last().attr('content'):'100',
201                    height: jQuery('meta[property="og:image:height"]').last().attr('content')?jQuery('meta[property="og:image:height"]').last().attr('content'):'100'
202                },
203                webLink:{
204                    text: '전체보기',
205                    url: encodeURI(url)
206                }
207            });
208        }
209        else{
210            Kakao.Link.sendTalkLink({
211                label: text,
212                webLink:{
213                    text: '전체보기',
214                    url: encodeURI(url)
215                }
216            });
217        }
218    }
219    else{
220        alert('카카오톡이 설치된 모바일에서만 가능합니다.');
221    }
222    return false;
223}
224function cosmosfarm_share_google(url){
225    var w = 600;
226    var h = 600;
227    window.open('https://plus.google.com/share?url='+encodeURIComponent(url), 'cosmosfarm_share', 'width='+w+',height='+h+',left='+(screen.availWidth-w)*0.5+',top='+(screen.availHeight-h)*0.5);
228    return false;
229}
230function cosmosfarm_share_line(url, text){
231    if(cosmosfarm_share_is_mobile()){
232        var w = 410;
233        var h = 540;
234        window.open('http://line.me/R/msg/text/?'+encodeURIComponent(text)+encodeURIComponent("\n")+encodeURIComponent(url), 'cosmosfarm_share', 'width='+w+',height='+h+',left='+(screen.availWidth-w)*0.5+',top='+(screen.availHeight-h)*0.5);
235    }
236    else{
237        alert('라인이 설치된 모바일에서만 가능합니다.');
238    }
239    return false;
240}
241function cosmosfarm_share(sns, url, title){
242    switch(sns){
243        case 'naver': cosmosfarm_share_naver(url, title); break;
244        case 'facebook': cosmosfarm_share_facebook(url); break;
245        case 'twitter': cosmosfarm_share_twitter(url, title); break;
246        case 'band': cosmosfarm_share_band(url, title); break;
247        case 'kakaostory': cosmosfarm_share_kakaostory(url, title); break;
248        case 'kakaotalk': cosmosfarm_share_kakaotalk(url, title); break;
249        case 'google': cosmosfarm_share_google(url); break;
250        case 'line': cosmosfarm_share_line(url, title); break;
251    }
252    return false;
253}
254
255function changeYoungman(){
256
257    var change_youngman = $("#change_youngman option:selected").val();
258
259    window.open(change_youngman);
260}
261function changeGuchung(){
262
263    var change_guchung = $("#change_guchung option:selected").val();
264
265    window.open(change_guchung);
266}
267function changeUniversity(){
268
269    var change_university = $("#change_university option:selected").val();
270
271    window.open(change_university);
272}
273function changeCollege(){
274
275    var change_college = $("#change_college option:selected").val();
276
277    window.open(change_college);
278}
279function changeAgency(){
280
281    var change_agency = $("#change_agency option:selected").val();
282
283    window.open(change_agency);
284}
285
286function copyToClipboard(val) {
287    var t = document.createElement("textarea");
288    document.body.appendChild(t);
289    t.value = val;
290    t.select();
291    document.execCommand('copy');
292    document.body.removeChild(t);
293}
294function share_clipboard(){
295    var share_url = $(location).attr('href');
296    copyToClipboard(share_url);
297    alert('복사 되었습니다.');
298    $(".pop_scrap").css("display", "none");
299}

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.