Showing
32 changed files
with
0 additions
and
1915 deletions
testcode/app.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var path = require('path'); | ||
3 | -var bodyParser = require('body-parser'); | ||
4 | -var indexRouter = require('./routes/index'); | ||
5 | -var ncRouter = require('./routes/nc'); | ||
6 | -var lgRouter = require('./routes/lg'); | ||
7 | -var doosanRouter = require('./routes/doosan'); | ||
8 | -var kiwoomRouter = require('./routes/kiwoom'); | ||
9 | -var kiaRouter = require('./routes/kia'); | ||
10 | -var lotteRouter = require('./routes/lotte'); | ||
11 | -var samsungRouter = require('./routes/samsung'); | ||
12 | -var ktRouter = require('./routes/kt'); | ||
13 | -var skRouter = require('./routes/sk'); | ||
14 | -var hanwhaRouter = require('./routes/hanwha'); | ||
15 | - | ||
16 | -//var request = require('request'); | ||
17 | -//var fs = require('fs'); | ||
18 | -//var ejs = require('ejs'); | ||
19 | - | ||
20 | -var app = express(); | ||
21 | -const PORT = 80; | ||
22 | - | ||
23 | -app.set('views', path.join(__dirname, 'views')); | ||
24 | -app.set('view engine', 'ejs'); | ||
25 | - | ||
26 | -app.use(express.static(path.join(__dirname, 'public'))); | ||
27 | -app.use(bodyParser.json()); | ||
28 | -app.use(bodyParser.urlencoded({ extended: false })); | ||
29 | - | ||
30 | -app.use('/', indexRouter); | ||
31 | -app.use('/nc', ncRouter); | ||
32 | -app.use('/lg', lgRouter); | ||
33 | -app.use('/doosan', doosanRouter); | ||
34 | -app.use('/kiwoom', kiwoomRouter); | ||
35 | -app.use('/kia', kiaRouter); | ||
36 | -app.use('/lotte', lotteRouter); | ||
37 | -app.use('/samsung', samsungRouter); | ||
38 | -app.use('/kt', ktRouter); | ||
39 | -app.use('/sk', skRouter); | ||
40 | -app.use('/hanwha', hanwhaRouter); | ||
41 | - | ||
42 | -app.listen(PORT, function(){ | ||
43 | - console.log('Code run in https://localhost:'+PORT+'\n'); | ||
44 | -}); |
testcode/crawling/chosun.js
deleted
100644 → 0
1 | -const axios = require("axios"); | ||
2 | -const cheerio = require("cheerio"); | ||
3 | - | ||
4 | -const url = "http://news.chosun.com/svc/list_in/list.html?catid=82" | ||
5 | - | ||
6 | -const getHtml = async () => { | ||
7 | - try { | ||
8 | - return await axios.get(url); | ||
9 | - } catch (error) { | ||
10 | - console.error(error); | ||
11 | - } | ||
12 | -}; | ||
13 | - | ||
14 | - | ||
15 | -const getChosun = async () => { | ||
16 | - | ||
17 | - return new Promise((resolve, reject) => { | ||
18 | - getHtml() | ||
19 | - .then(html => { | ||
20 | - let ulList = []; | ||
21 | - //console.log(html.data); | ||
22 | - const $ = cheerio.load(html.data); | ||
23 | - const $bodyList = $("div.list_body > div.list_content").children("dl.list_item"); | ||
24 | - | ||
25 | - $bodyList.each(function(i, elem) { | ||
26 | - ulList[i] = { | ||
27 | - url: $(this).find('dd.thumb > a').attr('href'), | ||
28 | - image_url: $(this).find('dd.thumb a > img').attr('src'), | ||
29 | - title: $(this).find('dt > a').text(), | ||
30 | - summary: $(this).find('dd.desc').text(),//.slice(1, -2), | ||
31 | - datetime: $(this).find('dd.date_author > span.date').text() | ||
32 | - }; | ||
33 | - //console.log(ulList[i]) // list object checking code | ||
34 | - }); | ||
35 | - | ||
36 | - const data = ulList.filter(n => n.title); | ||
37 | - return data; | ||
38 | - //return ulList; | ||
39 | - }).then(data => { | ||
40 | - resolve(data); | ||
41 | - }); | ||
42 | -}); | ||
43 | -}; | ||
44 | - | ||
45 | -module.exports = getChosun; |
testcode/crawling/isplus1.js
deleted
100644 → 0
1 | -const axios = require("axios"); // 웹 서버 요청 모듈 | ||
2 | -const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용 | ||
3 | - | ||
4 | -const url = "http://isplus.live.joins.com/news/list/list.asp?page=1" | ||
5 | - | ||
6 | -const getHtml = async () => { | ||
7 | - try { | ||
8 | - return await axios.get(url); | ||
9 | - } catch (error) { | ||
10 | - console.error(error); | ||
11 | - } | ||
12 | -}; | ||
13 | - | ||
14 | - | ||
15 | -const getIsplus1 = async () => { | ||
16 | - | ||
17 | - return new Promise((resolve, reject) => { | ||
18 | - getHtml() | ||
19 | - .then(html => { | ||
20 | - let ulList = []; | ||
21 | - //console.log(html.data); | ||
22 | - const $ = cheerio.load(html.data); | ||
23 | - const $bodyList = $("div.news_list > div.bd > ul").children("li"); | ||
24 | - | ||
25 | - $bodyList.each(function(i, elem) { | ||
26 | - ulList[i] = { | ||
27 | - url: $(this).find('dl > dd.photo > a').attr('href'), | ||
28 | - image_url: $(this).find('dl > dd.photo > a > img').attr('src'), | ||
29 | - title: $(this).find('dl > dt > a').text(), | ||
30 | - summary: $(this).find('dl > dd > a').text(), | ||
31 | - datetime: $(this).find('dl > dd > span.date').text() + " " + $(this).find('dl > dd > span.time').text() | ||
32 | - }; | ||
33 | - //console.log(ulList[i]) // list object checking code | ||
34 | - }); | ||
35 | - | ||
36 | - const data = ulList.filter(n => n.title); | ||
37 | - return data; | ||
38 | - //return ulList; | ||
39 | - }).then(data => { | ||
40 | - resolve(data); | ||
41 | - }); | ||
42 | -}); | ||
43 | -}; | ||
44 | - | ||
45 | -module.exports = getIsplus1; |
testcode/crawling/isplus2.js
deleted
100644 → 0
1 | -const axios = require("axios"); // 웹 서버 요청 모듈 | ||
2 | -const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용 | ||
3 | - | ||
4 | -const url = "http://isplus.live.joins.com/news/list/list.asp?page=2" | ||
5 | - | ||
6 | -const getHtml = async () => { | ||
7 | - try { | ||
8 | - return await axios.get(url); | ||
9 | - } catch (error) { | ||
10 | - console.error(error); | ||
11 | - } | ||
12 | -}; | ||
13 | - | ||
14 | - | ||
15 | -const getIsplus2 = async () => { | ||
16 | - | ||
17 | - return new Promise((resolve, reject) => { | ||
18 | - getHtml() | ||
19 | - .then(html => { | ||
20 | - let ulList = []; | ||
21 | - //console.log(html.data); | ||
22 | - const $ = cheerio.load(html.data); | ||
23 | - const $bodyList = $("div.news_list > div.bd > ul").children("li"); | ||
24 | - | ||
25 | - $bodyList.each(function(i, elem) { | ||
26 | - ulList[i] = { | ||
27 | - url: $(this).find('dl > dd.photo > a').attr('href'), | ||
28 | - image_url: $(this).find('dl > dd.photo > a > img').attr('src'), | ||
29 | - title: $(this).find('dl > dt > a').text(), | ||
30 | - summary: $(this).find('dl > dd > a').text(), | ||
31 | - datetime: $(this).find('dl > dd > span.date').text() + " " + $(this).find('dl > dd > span.time').text() | ||
32 | - }; | ||
33 | - //console.log(ulList[i]) // list object checking code | ||
34 | - }); | ||
35 | - | ||
36 | - const data = ulList.filter(n => n.title); | ||
37 | - return data; | ||
38 | - //return ulList; | ||
39 | - }).then(data => { | ||
40 | - resolve(data); | ||
41 | - }); | ||
42 | -}); | ||
43 | -}; | ||
44 | - | ||
45 | -module.exports = getIsplus2; |
testcode/crawling/isplus3.js
deleted
100644 → 0
1 | -const axios = require("axios"); // 웹 서버 요청 모듈 | ||
2 | -const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용 | ||
3 | - | ||
4 | -const url = "http://isplus.live.joins.com/news/list/list.asp?page=3" | ||
5 | - | ||
6 | -const getHtml = async () => { | ||
7 | - try { | ||
8 | - return await axios.get(url); | ||
9 | - } catch (error) { | ||
10 | - console.error(error); | ||
11 | - } | ||
12 | -}; | ||
13 | - | ||
14 | - | ||
15 | -const getIsplus3 = async () => { | ||
16 | - | ||
17 | - return new Promise((resolve, reject) => { | ||
18 | - getHtml() | ||
19 | - .then(html => { | ||
20 | - let ulList = []; | ||
21 | - //console.log(html.data); | ||
22 | - const $ = cheerio.load(html.data); | ||
23 | - const $bodyList = $("div.news_list > div.bd > ul").children("li"); | ||
24 | - | ||
25 | - $bodyList.each(function(i, elem) { | ||
26 | - ulList[i] = { | ||
27 | - url: $(this).find('dl > dd.photo > a').attr('href'), | ||
28 | - image_url: $(this).find('dl > dd.photo > a > img').attr('src'), | ||
29 | - title: $(this).find('dl > dt > a').text(), | ||
30 | - summary: $(this).find('dl > dd > a').text(), | ||
31 | - datetime: $(this).find('dl > dd > span.date').text() + " " + $(this).find('dl > dd > span.time').text() | ||
32 | - }; | ||
33 | - //console.log(ulList[i]) // list object checking code | ||
34 | - }); | ||
35 | - | ||
36 | - const data = ulList.filter(n => n.title); | ||
37 | - return data; | ||
38 | - //return ulList; | ||
39 | - }).then(data => { | ||
40 | - resolve(data); | ||
41 | - }); | ||
42 | -}); | ||
43 | -}; | ||
44 | - | ||
45 | -module.exports = getIsplus3; |
testcode/crawling/isplus4.js
deleted
100644 → 0
1 | -const axios = require("axios"); // 웹 서버 요청 모듈 | ||
2 | -const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용 | ||
3 | - | ||
4 | -const url = "http://isplus.live.joins.com/news/list/list.asp?page=4" | ||
5 | - | ||
6 | -const getHtml = async () => { | ||
7 | - try { | ||
8 | - return await axios.get(url); | ||
9 | - } catch (error) { | ||
10 | - console.error(error); | ||
11 | - } | ||
12 | -}; | ||
13 | - | ||
14 | - | ||
15 | -const getIsplus4 = async () => { | ||
16 | - | ||
17 | - return new Promise((resolve, reject) => { | ||
18 | - getHtml() | ||
19 | - .then(html => { | ||
20 | - let ulList = []; | ||
21 | - //console.log(html.data); | ||
22 | - const $ = cheerio.load(html.data); | ||
23 | - const $bodyList = $("div.news_list > div.bd > ul").children("li"); | ||
24 | - | ||
25 | - $bodyList.each(function(i, elem) { | ||
26 | - ulList[i] = { | ||
27 | - url: $(this).find('dl > dd.photo > a').attr('href'), | ||
28 | - image_url: $(this).find('dl > dd.photo > a > img').attr('src'), | ||
29 | - title: $(this).find('dl > dt > a').text(), | ||
30 | - summary: $(this).find('dl > dd > a').text(), | ||
31 | - datetime: $(this).find('dl > dd > span.date').text() + " " + $(this).find('dl > dd > span.time').text() | ||
32 | - }; | ||
33 | - //console.log(ulList[i]) // list object checking code | ||
34 | - }); | ||
35 | - | ||
36 | - const data = ulList.filter(n => n.title); | ||
37 | - return data; | ||
38 | - //return ulList; | ||
39 | - }).then(data => { | ||
40 | - resolve(data); | ||
41 | - }); | ||
42 | -}); | ||
43 | -}; | ||
44 | - | ||
45 | -module.exports = getIsplus4; |
testcode/crawling/xports.js
deleted
100644 → 0
1 | -const axios = require("axios"); // 웹 서버 요청 모듈 | ||
2 | -const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용 | ||
3 | - | ||
4 | -const url = "http://www.xportsnews.com/?ac=article_list&cate_indexno=12" | ||
5 | - | ||
6 | -const getHtml = async () => { | ||
7 | - try { | ||
8 | - return await axios.get(url); | ||
9 | - } catch (error) { | ||
10 | - console.error(error); | ||
11 | - } | ||
12 | -}; | ||
13 | - | ||
14 | - | ||
15 | -const getXports = async () => { | ||
16 | - | ||
17 | - return new Promise((resolve, reject) => { | ||
18 | - getHtml() | ||
19 | - .then(html => { | ||
20 | - let ulList = []; | ||
21 | - //console.log(html.data); | ||
22 | - const $ = cheerio.load(html.data); | ||
23 | - const $bodyList = $("ul.list_news > li");//.children(""); | ||
24 | - | ||
25 | - $bodyList.each(function(i, elem) { | ||
26 | - ulList[i] = { | ||
27 | - url: 'http://www.xportsnews.com' + $(this).find('div.thumb > a').attr('href'), | ||
28 | - image_url: $(this).find('div.thumb > a > img').attr('src'), | ||
29 | - title: $(this).find('dl.dlist > dt > a').text(), | ||
30 | - summary: $(this).find('dd').text(), | ||
31 | - datetime: $(this).find('dd > span.data').text() | ||
32 | - }; | ||
33 | - //console.log(ulList[i]) // list object checking code | ||
34 | - }); | ||
35 | - | ||
36 | - const data = ulList.filter(n => n.title); | ||
37 | - return data; | ||
38 | - //return ulList; | ||
39 | - }).then(data => { | ||
40 | - resolve(data); | ||
41 | - }); | ||
42 | -}); | ||
43 | -}; | ||
44 | - | ||
45 | -module.exports = getXports; |
testcode/crawling/yna.js
deleted
100644 → 0
1 | -const axios = require("axios"); | ||
2 | -const cheerio = require("cheerio"); | ||
3 | - | ||
4 | -const url = "https://www.yna.co.kr/sports/baseball" | ||
5 | - | ||
6 | -const getHtml = async () => { | ||
7 | - try { | ||
8 | - return await axios.get(url); | ||
9 | - } catch (error) { | ||
10 | - console.error(error); | ||
11 | - } | ||
12 | -}; | ||
13 | - | ||
14 | - | ||
15 | -const getYna = async () => { | ||
16 | - | ||
17 | - return new Promise((resolve, reject) => { | ||
18 | - getHtml() | ||
19 | - .then(html => { | ||
20 | - let ulList = []; | ||
21 | - //console.log(html.data); | ||
22 | - const $ = cheerio.load(html.data); | ||
23 | - const $bodyList = $("div.list-type038 ul.list li").children("div.item-box01"); | ||
24 | - | ||
25 | - $bodyList.each(function(i, elem) { | ||
26 | - ulList[i] = { | ||
27 | - datetime: $(this).find('span.txt-time').text(), | ||
28 | - image_url: $(this).find('figure.img-con a img').attr('src'), | ||
29 | - url: $(this).find('div.news-con a').attr('href'), | ||
30 | - title: $(this).find('div.news-con strong').text(), | ||
31 | - summary: $(this).find('div.news-con p').text() | ||
32 | - }; | ||
33 | - //console.log(ulList[i]) // list object checking code | ||
34 | - }); | ||
35 | - | ||
36 | - const data = ulList.filter(n => n.title); | ||
37 | - return data; | ||
38 | - //return ulList; | ||
39 | - }).then(data => { | ||
40 | - resolve(data); | ||
41 | - }); | ||
42 | -}); | ||
43 | -}; | ||
44 | - | ||
45 | -module.exports = getYna; |
testcode/crawling/zum.js
deleted
100644 → 0
1 | -const axios = require("axios"); | ||
2 | -const cheerio = require("cheerio"); | ||
3 | - | ||
4 | -const url = "https://news.zum.com/issuelist/58654445" | ||
5 | - | ||
6 | -const getHtml = async () => { | ||
7 | - try { | ||
8 | - return await axios.get(url); | ||
9 | - } catch (error) { | ||
10 | - console.error(error); | ||
11 | - } | ||
12 | -}; | ||
13 | - | ||
14 | - | ||
15 | -const getZum = async () => { | ||
16 | - | ||
17 | - return new Promise((resolve, reject) => { | ||
18 | - getHtml() | ||
19 | - .then(html => { | ||
20 | - let ulList = []; | ||
21 | - //console.log(html.data); | ||
22 | - const $ = cheerio.load(html.data); | ||
23 | - const $bodyList = $("div.major_news > ul").children("ul.no_reply > li.large"); | ||
24 | - | ||
25 | - $bodyList.each(function(i, elem) { | ||
26 | - ulList[i] = { | ||
27 | - url: '//news.zum.com' + $(this).find('div.img > a').attr('href'), | ||
28 | - image_url: $(this).find('div.img > a > img').attr('src'), | ||
29 | - title: $(this).find('div.txt > div.title > a').text(), | ||
30 | - summary: $(this).find('div.txt > div.content > a').text(),//.slice(0, -29) | ||
31 | - datetime: $(this).find('div.txt > div.content > span.etc').text() | ||
32 | - }; | ||
33 | - //console.log(ulList[i]) // list object checking code | ||
34 | - }); | ||
35 | - | ||
36 | - const data = ulList.filter(n => n.title); | ||
37 | - return data; | ||
38 | - //return ulList; | ||
39 | - }).then(data => { | ||
40 | - resolve(data); | ||
41 | - }); | ||
42 | -}); | ||
43 | -}; | ||
44 | - | ||
45 | -module.exports = getZum; |
1 | -/* =============== ##공통 (common) ======================== */ | ||
2 | -html,body{height:auto;} | ||
3 | -body{font-weight:normal;font-family:'맑은 고딕','Malgun Gothic',AppleSDGothicNeo-Regular,Arial,Helvetica,sans-serif;letter-spacing:-1px;} | ||
4 | -h1,h2,h3,h4,h5,h6{font-weight:normal;font-family:'맑은 고딕','Malgun Gothic',AppleSDGothicNeo-Regular,Arial,Helvetica,sans-serif;} | ||
5 | -p,li,dt,dd,span,strong,em,b,input,button,select,textarea,label,a{font-weight:normal;font-family:'맑은 고딕','Malgun Gothic',AppleSDGothicNeo-Regular,Arial,Helvetica,sans-serif;} | ||
6 | -a{display:inline-block;vertical-align:top;} | ||
7 | - | ||
8 | -h1,h2,h3,h4,h5,h6{margin:200;padding:200;font:inherit;font-weight:bold;} | ||
9 | -img{display:inline-block;border:0 none;vertical-align:top;} | ||
10 | -cite,code,dfn,del,em,ins,label,q,span,strong,b,i,time,mark,font,kbd,q,s,samp,small,strike,sub,sup,tt,var,u,center{display:inline-block;margin:0;padding:0;vertical-align:top;font:inherit;} | ||
11 | -address,cite,em,dfn{font:inherit;} | ||
12 | -b,i,strong,optgroup{font:inherit;font-weight:bold;} | ||
13 | -div,article,aside,main,menu,details,figure,figcaption,hgroup,footer,header,nav,section,object,summary,iframe{display:block;margin:0;padding:0;font:inherit;} | ||
14 | - | ||
15 | - | ||
16 | -/* =============== ##레이아웃 (layout) ======================== */ | ||
17 | - | ||
18 | -body:not(.body-popup-win){min-width:1130px;} | ||
19 | -body.page-main, | ||
20 | -body.body-wide1300{min-width:1320px;} | ||
21 | -html,body{width:100%;height:100%;margin:0;padding:0;} | ||
22 | -body{font-weight:normal;font-size:1em;line-height:1.5em;font-family:sans-serif;color:#000;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;} | ||
23 | - | ||
24 | -/* list */ | ||
25 | -dl,dd,ol,ul,li{margin:0;padding:0;} | ||
26 | -li{list-style-type:none;} | ||
27 | - | ||
28 | -/* link */ | ||
29 | -a{font:inherit;color:inherit;text-decoration:none;cursor:pointer;} | ||
30 | -a{background-color:transparent;} | ||
31 | -a:link, | ||
32 | -a:visited, | ||
33 | -a:active, | ||
34 | -a:focus{color:inherit;} | ||
35 | - | ||
36 | -/* 공통 */ | ||
37 | -[class*='title-type']{position:relative;display:inline-block;box-sizing:border-box;vertical-align:bottom;} /* height:36px; */ | ||
38 | -[class*='title-type'] [class*='tit'], | ||
39 | -[class*='title-type'] [class*='txt']{vertical-align:bottom;} | ||
40 | -[class*='title-type'] [class*='tit']{position:relative;box-sizing:border-box;} | ||
41 | -[class*='title-type'] .tit{font-size:18px;line-height:22px;} | ||
42 | -[class*='title-type'].bold .tit{font-weight:bold;} | ||
43 | -[class*='title-type'] .txt{margin-left:6px;color:#666;font-size:10px;line-height:12px;letter-spacing:0;} | ||
44 | -[class*='title-type'] .tit+.txt{margin-left:20px;} | ||
45 | - | ||
46 | -/* =============== List type ======================== */ | ||
47 | -[class*='list-type']{font-size:0;line-height:1;} | ||
48 | -[class*='list-type'] [class*='item']{position:relative;} | ||
49 | -[class*='list-type'] [class*='item']:after{content:'';display:block;clear:both;} | ||
50 | -[class*='list-type'] .img-con .img{overflow:hidden;position:relative;} /* background-color:#ccc; */ | ||
51 | -[class*='list-type'] .img-con .img img{width:100%;height:auto;} | ||
52 | -[class*='list-type'] .img-con .label-box01{position:absolute;bottom:0;right:0;min-width:50px;height:35px;box-sizing:border-box;padding:8px 8px 7px;background-color:#fff;text-align:center;vertical-align:middle;} | ||
53 | - | ||
54 | -/* basic */ | ||
55 | -.hidden-obj{position:absolute;visibility:hidden;top:-9999px;left:-9999px;} | ||
56 | -.blind{overflow:hidden;visibility:hidden;position:absolute;top:0;left:0;width:0;height:0;padding:0;font-size:0;line-height:0;} | ||
57 | -.display-none{display:none;} | ||
58 | - | ||
59 | -/* title-type04 */ | ||
60 | -.title-type04[class*='arr'] .tit{padding-right:20px;} | ||
61 | -.title-type04 .tit{font-size:40px;line-height:40px;} | ||
62 | - | ||
63 | -.img-cover{overflow:hidden;} | ||
64 | - | ||
65 | -/* list-type038 */ | ||
66 | -.list-type038 .list{border-top:1px solid #e5e5e5;} | ||
67 | -.list-type038 [class*='item-box']{} | ||
68 | -.list-type038 .item-box01{display:table;width:100%;border-bottom:1px solid #e5e5e5;} | ||
69 | -.list-type038 .item-box01>.img-con, | ||
70 | -.list-type038 .item-box01>.news-con, | ||
71 | -.list-type038 .item-box01>[class*='info-box']{display:table-cell;padding:30px 0;vertical-align:top;} | ||
72 | -.list-type038 .img-con{width:180px;} | ||
73 | -.list-type038 .img-con .img{width:170px;height:110px;} | ||
74 | -.list-type038 .news-con{max-height:110px;} | ||
75 | -.list-type038 .tit-news{font-weight:bold;font-size:18px;line-height:24px;} | ||
76 | -.list-type038 .tit-wrap:hover .tit-news{text-decoration:underline;} | ||
77 | -.list-type038 .lead{overflow:hidden;max-height:48px;margin-top:12px;color:#666;font-size:14px;line-height:24px;} | ||
78 | -.list-type038 .lead:empty{display:none;} | ||
79 | -.list-type038 .info-box01{width:110px;} | ||
80 | -.list-type038 .info-box01 .txt-time{padding-top:4px;color:#666;font-size:12px;line-height:14px;letter-spacing:0;} | ||
81 | -.list-type038 .item-box01 .info-box02{width:156px;padding:0 20px 0 0;vertical-align:middle;text-align:right;} | ||
82 | - | ||
83 | -/* 공통여백 */ | ||
84 | -.container>[class*='content']+[class*='content']{margin-top:35px;} | ||
85 | -body:not(.page-main) .container>[class*='content']:last-child{padding-bottom:100px;} | ||
86 | -[class*='box-type']{margin-top:35px;} | ||
87 | -[class*='box-type'] [class*='paging-type01']{margin-top:35px;} | ||
88 | -[class*='tab-content'] [class*='box-type'], | ||
89 | -.title-page02+[class*='box-type'], | ||
90 | -.container>[class*='content']>[class*='box-type']:first-child, | ||
91 | -.section01>[class*='box-type']:first-child, | ||
92 | -.section02>[class*='box-type']:first-child{margin-top:0;} | ||
93 | - | ||
94 | -/* =============== Pager ======================== */ | ||
95 | -/* paging-type01 : 리스트 페이징 */ | ||
96 | -.paging-type01{font-size:0;text-align:center;} | ||
97 | -.paging-type01>a, | ||
98 | -.paging-type01 .num{display:inline-block;height:38px;margin:0 5px;vertical-align:top;} | ||
99 | -.paging-type01 .first, | ||
100 | -.paging-type01 .prev, | ||
101 | -.paging-type01 .next, | ||
102 | -.paging-type01 .last{position:relative;width:29px;height:38px} | ||
103 | -.paging-type01 .first span, | ||
104 | -.paging-type01 .prev span, | ||
105 | -.paging-type01 .next span, | ||
106 | -.paging-type01 .last span{overflow:hidden;position:absolute;top:50%;left:50%;width:11px;height:10px;font-size:1px;color:transparent;margin:-5px 0 0 -5px;background:url(../img/sprites_default01.png?v=20200610_1400) 0 0 no-repeat;} | ||
107 | -.paging-type01 .first span{} | ||
108 | -.paging-type01 .last span{} | ||
109 | -.paging-type01 .prev span{background-position-x:-50px;} | ||
110 | -.paging-type01 .next span{} | ||
111 | -.paging-type01 .num{width:38px;height:38px;font-size:14px;line-height:38px;color:#000;background-color:#ebebeb;} | ||
112 | -.paging-type01 .num.on{color:#fff;background-color:#213989;} | ||
113 | -.paging-type01 .num:not(.on):hover{text-decoration:underline;} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
testcode/routes/doosan.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let doosan = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['두산', '베어스', '김재환', '김태형', '알칸타라']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - doosan.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("doosan loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('doosan', { | ||
54 | - doosan : doosan | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/hanwha.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let hanwha = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['한화', '이긇스', '18연패', '김태균', '한용덕', '최원호', '대전']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - hanwha.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("hanwha loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('hanwha', { | ||
54 | - hanwha : hanwha | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/index.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -(async function() { | ||
23 | -try { | ||
24 | - isplus1 = await getIsplus1(); | ||
25 | - isplus2 = await getIsplus2(); | ||
26 | - isplus3 = await getIsplus3(); | ||
27 | - isplus4 = await getIsplus4(); | ||
28 | - xports = await getXports(); | ||
29 | - zum = await getZum(); | ||
30 | - chosun = await getChosun(); | ||
31 | - yna = await getYna(); | ||
32 | - | ||
33 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
34 | - console.log("index loaded"); | ||
35 | - | ||
36 | -} catch (e) { | ||
37 | - return console.log(e); | ||
38 | -} | ||
39 | -})(); | ||
40 | - | ||
41 | -router.get('/', function(req, res, next){ | ||
42 | - | ||
43 | - res.render('index', { | ||
44 | - newslist : newslist | ||
45 | - }); | ||
46 | -}); | ||
47 | - | ||
48 | -module.exports = router; |
testcode/routes/kia.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let kia = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['KIA', 'kia', '기아', '타이거즈', '최형우', '윌리엄스', '광주']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - kia.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("kia loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('kia', { | ||
54 | - kia : kia | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/kiwoom.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let kiwoom = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['키움', '히어로즈', '박병호', '손혁', '고척']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - kiwoom.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("kiwoom loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('kiwoom', { | ||
54 | - kiwoom : kiwoom | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/kt.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let kt = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['kt', 'KT', 'wiz', 'WIZ', '케이티', '위즈', '강백호', '이강철', '수원']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - kt.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("kt loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('kt', { | ||
54 | - kt : kt | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/lg.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let lg = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['LG', 'lg', '엘지', '트윈스', '라모스', '류중일']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - lg.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("lg loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('lg', { | ||
54 | - lg : lg | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/lotte.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let lotte = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['롯데', '자이언츠', '이대호', '허문회', '사직']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - lotte.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("lotte loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('lotte', { | ||
54 | - lotte : lotte | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/nc.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let nc = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['NC', 'nc', '엔씨', '다이노스', '알테어', '강진성', '깡', '이동욱', '창원']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - nc.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("nc loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('nc', { | ||
54 | - nc : nc | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/samsung.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let samsung = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['삼성', '라이온즈', '구자욱', '허삼영', '대구']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - samsung.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("samsung loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('samsung', { | ||
54 | - samsung : samsung | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/routes/sk.js
deleted
100644 → 0
1 | -var express = require('express'); | ||
2 | -var router = express.Router(); | ||
3 | - | ||
4 | -const getXports = require('../crawling/xports.js'); | ||
5 | -const getZum = require('../crawling/zum.js'); | ||
6 | -const getChosun = require('../crawling/chosun.js'); | ||
7 | -const getYna = require('../crawling/yna.js'); | ||
8 | -const getIsplus1 = require('../crawling/isplus1.js'); | ||
9 | -const getIsplus2 = require('../crawling/isplus2.js'); | ||
10 | -const getIsplus3 = require('../crawling/isplus3.js'); | ||
11 | -const getIsplus4 = require('../crawling/isplus4.js'); | ||
12 | - | ||
13 | -let isplus1; | ||
14 | -let isplus2; | ||
15 | -let isplus3; | ||
16 | -let isplus4; | ||
17 | -let xports; | ||
18 | -let zum; | ||
19 | -let chosun; | ||
20 | -let yna; | ||
21 | -let newslist; | ||
22 | -let sk = new Array(); | ||
23 | -(async function() { | ||
24 | -try { | ||
25 | - isplus1 = await getIsplus1(); | ||
26 | - isplus2 = await getIsplus2(); | ||
27 | - isplus3 = await getIsplus3(); | ||
28 | - isplus4 = await getIsplus4(); | ||
29 | - xports = await getXports(); | ||
30 | - zum = await getZum(); | ||
31 | - chosun = await getChosun(); | ||
32 | - yna = await getYna(); | ||
33 | - | ||
34 | - newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna); | ||
35 | - let searchlist = ['sk', 'SK', '와이번스', '로맥', '염경엽', '인천', '문학']; | ||
36 | - for(var i of newslist){ | ||
37 | - for (var j of searchlist){ | ||
38 | - if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){ | ||
39 | - sk.push(i); | ||
40 | - break; | ||
41 | - } | ||
42 | - } | ||
43 | - } | ||
44 | - console.log("sk loaded"); | ||
45 | - | ||
46 | -} catch (e) { | ||
47 | - return console.log(e); | ||
48 | -} | ||
49 | -})(); | ||
50 | - | ||
51 | -router.get('/', function(req, res, next){ | ||
52 | - | ||
53 | - res.render('sk', { | ||
54 | - sk : sk | ||
55 | - }); | ||
56 | -}); | ||
57 | - | ||
58 | -module.exports = router; |
testcode/views/doosan.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">DOOSAN 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <strong class = "num on">두산</strong> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of doosan) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/hanwha.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">HANWHA 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <strong class = "num on">한화</strong> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of hanwha) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/index.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">야구 기사 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <strong class = "num on">All</strong> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of newslist) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/kia.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">NC 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <strong class = "num on">KIA</strong> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of kia) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/kiwoom.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">KIWOOM 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <strong class = "num on">키움</strong> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of kiwoom) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/kt.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">KT 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <strong class = "num on">KT</strong> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of kt) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/lg.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">LG 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <strong class = "num on">LG</strong> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of lg) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/lotte.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">LOTTE 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <strong class = "num on">롯데</strong> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of lotte) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/nc.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">NC 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <strong class = "num on">NC</strong> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of nc) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/samsung.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">SAMSUNG 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <strong class = "num on">삼성</strong> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <a href="/sk" class="num">SK</a> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of samsung) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
testcode/views/sk.ejs
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html> | ||
3 | - | ||
4 | - <head> | ||
5 | - <meta charset="utf-8"> | ||
6 | - <link rel="stylesheet" href="/stylesheets/style.css" /> | ||
7 | - <title>YaguMoa[ossswoo.tk]</title> | ||
8 | - </head> | ||
9 | - | ||
10 | - <body class = "body-news-list page-sports body-static" data-nav="sports"> | ||
11 | - <div id = "container" class = "wrap-container"> | ||
12 | - <div class = "container"> | ||
13 | - <div class = 'content03 width1100 line01'> | ||
14 | - <div class = "section01"> | ||
15 | - <div class = 'title-page02'> | ||
16 | - <h1 class = "title-type04 bold"> | ||
17 | - <span class = "tit">야구 모아</span> | ||
18 | - </h1> | ||
19 | - </div> | ||
20 | - <section class = 'box-type box-latest01'> | ||
21 | - <strong class="hidden-obj">SK 목록</strong> | ||
22 | - <div class = "paging paging-type01"> | ||
23 | - <a href="/" class="num">All</a> | ||
24 | - <a href="/nc" class="num">NC</a> | ||
25 | - <a href="/lg" class="num">LG</a> | ||
26 | - <a href="/doosan" class="num">두산</a> | ||
27 | - <a href="/kiwoom" class="num">키움</a> | ||
28 | - <a href="/kia" class="num">KIA</a> | ||
29 | - <a href="/lotte" class="num">롯데</a> | ||
30 | - <a href="/samsung" class="num">삼성</a> | ||
31 | - <a href="/kt" class="num">KT</a> | ||
32 | - <strong class = "num on">SK</strong> | ||
33 | - <a href="/hanwha" class="num">한화</a> | ||
34 | - </div> | ||
35 | - <div class = "list-type038"> | ||
36 | - <ul class = "list"> | ||
37 | - <% for(var i of sk) { %> | ||
38 | - <li> | ||
39 | - <div class='item-box01'> | ||
40 | - <div class='info-box01'> | ||
41 | - <span class="blind">송고시간</span> | ||
42 | - <span class='txt-time'><%= i.datetime %></span> | ||
43 | - </div> | ||
44 | - <% if (i.image_url != undefined) { %> | ||
45 | - <figure class='img-con'> | ||
46 | - <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> > | ||
47 | - <img src = <%= i.image_url %>> | ||
48 | - </a> | ||
49 | - </figure> | ||
50 | - <% } %> | ||
51 | - <div class='news-con'> | ||
52 | - <a class = 'tit-wrap' href = <%= i.url %>> | ||
53 | - <strong class = 'tit-news'><%= i.title %></strong> | ||
54 | - </a> | ||
55 | - <p class = "lead"> | ||
56 | - <%= i.summary %> | ||
57 | - </p> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - </li> | ||
61 | - <% } %> | ||
62 | - </ul> | ||
63 | - </div> | ||
64 | - </section> | ||
65 | - </div> | ||
66 | - </div> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </body> | ||
70 | -</html> |
-
Please register or login to post a comment