PageSourceSearch

https://img.wowtv.co.kr/PcScript/NewsCenter/Main/Index.js

js wowtv.co.kr collected 2026-09-24 09:00:25 UTC 3,621 bytes, 147 lines download raw bytes

1
2var NewsMain = {
3
4    Search: function () {
5
6        var searchText = $("#totalSearchFormSise #searchTerm").val();
7
8        if (searchText.trim().length == 0) {
9
10            alert("검색어를 입력하세요.");
11        }
12        else {
13            $("#totalSearchFormSise").submit();
14        }      
15    },
16
17    ManySeeNews: function () {
18        $.ajax({
19            type: 'GET',
20            //url: "/NewsCenter/Main/ManySeeNews",
21            url: "/html/ManySeeNews.html",
22            data: {},
23            success: function (data, textStatus) {    
24                $("#divManySeeNews").html(data);
25            }
26        });
27
28        return false;
29    },
30
31    Opinion: function () {
32        $.ajax({
33            type: 'GET',
34            //url: "/NewsCenter/Main/Opinion",
35            url: "/html/Opinion.html",
36            data: {},
37            success: function (data) {
38                $("#UlOpinion").html(data);
39            }
40        });
41    },
42
43    WeekReporter: function () {
44        $.ajax({
45            type: 'GET',
46            //url: "/NewsCenter/Main/WeekReporter",
47            url: "/html/WeekReporter.html",
48            data: {},
49            success: function (data) {
50                $("#UlWeekReporter").html(data);
51            }
52        });
53    },
54    CardNews: function () {
55        $.ajax({
56            type: 'GET',
57            //url: "/NewsCenter/Main/CardNews",
58            url: "/html/CardNews.html",
59            data: {},
60            success: function (data) {
61                $("#divCardNews").html(data);
62            }
63        });
64    },
65    SectionNews: function () {
66        $.ajax({
67            type: 'GET',
68            //url: "/NewsCenter/Main/SectionNews",
69            url: "/html/SectionNews.html",
70            data: {},
71            success: function (data) {
72                $("#UlSectionNews").html(data);
73            }
74        });
75    },
76    HotNews: function () {
77        $.ajax({
78            type: 'GET',
79            //url: "/NewsCenter/Main/HotNews",
80            url: "/html/HotNews.html",
81            data: {},
82            success: function (data) {
83                $("#h2HotNews").after(data);
84            }
85        });
86    },
87    PhotoNews: function () {
88        //console.log('PhotoNews1');
89        $.ajax({
90            async: false,
91            type: 'GET',
92            //url: "/NewsCenter/Main/PhotoNews",
93            url: "/html/PhotoNews.html",
94            data: {},
95            success: function (data) {
96                if (data.trim().length == 0) {
97                    $(".box-img-slider").hide();
98                } else {
99                    $("#divPhotoNews").html(data);
100                    //bottom_slider();
101                    if ($("#divPhotoNews").find("li").length > 0) {
102                        PhotoNewsSlider('photoNewsSlider');
103                    }
104                }
105            }
106        });
107    }
108}
109
110$(document).ready(function () {
111
112    //상단 메뉴명 숨김
113    $(".contain-aside").hide();
114
115    //많이본 뉴스
116    NewsMain.ManySeeNews();
117
118    //오피니언
119    NewsMain.Opinion();
120
121    //금주의 기자
122    NewsMain.WeekReporter();
123
124    //카드 뉴스
125    NewsMain.CardNews();
126
127    //섹션 뉴스
128    NewsMain.SectionNews();
129
130    //핫한 뉴스
131    NewsMain.HotNews();
132
133    //이슈 갤러리
134    NewsMain.PhotoNews();
135
136    $('.btnGoNewsPhotoView').click(function () {
137        if ($(this).hasClass('onPhoto')) {
138            NewsCommon.GoNewsDetailView('photo', '', '', $(this).attr('id'));
139        } else {
140            $('.btnGoNewsPhotoView').removeClass('onPhoto');
141            $(this).addClass('onPhoto');
142        }
143    });
144
145});
146
147

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.