Skip to content

Commit 257e04f

Browse files
committed
Merge branch 'release/5.0.2'
2 parents 008889e + 0dbd9ea commit 257e04f

File tree

10 files changed

+123
-103
lines changed

10 files changed

+123
-103
lines changed

css/common.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ td.D11 font {position:relative;margin-right:5px;}
130130
td.D11 img {vertical-align:middle;}
131131
font[color="666666"] {position:relative;}
132132
/* user information */
133-
div[id^="nik_"] {top:0;width:60px !important;background:#fff;margin:20px 0 0 !important;padding:5px 8px;font:normal 11px Dotum, '돋움', sans-serif;letter-spacing:-1px;color:#666;border-width:1px !important;box-shadow:1px 1px 1px rgba(0,0,0,.1);border-radius:3px;}
133+
div[id^="nik_"] {top:0;left:0;width:60px !important;background:#fff;margin:20px 0 0 !important;padding:5px 8px;font:normal 11px Dotum, '돋움', sans-serif;letter-spacing:-1px;color:#666;border-width:1px !important;box-shadow:1px 1px 1px rgba(0,0,0,.1);border-radius:3px;}
134134
div[id^="nik_"] ul {margin:0;padding:0;}
135135
div[id^="nik_"] li {list-style:none;padding:2px 0 !important;cursor:pointer;}
136136
div[id^="nik_"] li:hover {color:#111;}

css/main.css

+7-8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/* headline --------------------- */
99
.heardline {box-sizing:border-box;width:100% !important;height:auto !important;margin-bottom:10px;overflow:hidden;border-color:#cdcdcd;}
1010
.heardline .tit_photo .txt {border:0 !important;}
11+
.heardline .tit_photo .txt span {display:-webkit-box !important;height:auto !important;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;}
1112
.heardline ul {padding-left:416px !important;}
1213
.heardline ul li {width:100% !important;}
1314
.heardline ul li:last-child {margin-bottom:0 !important;}
@@ -16,11 +17,11 @@
1617
.heardline ul li .txt {display:block !important;width:auto !important;padding:3px 0 0 103px !important;vertical-align:middle;}
1718

1819
.heardline ul li .txt strong {display:block !important;}
19-
.heardline ul li .txt strong a {white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#555;}
20+
.heardline ul li .txt strong a {display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#555;}
2021
.heardline ul li .txt .s_font {display: -webkit-box;width:auto !important;white-space:normal !important;text-overflow:clip !important;-webkit-line-clamp:3;word-wrap:break-word;-webkit-box-orient: vertical;color:#888;}
2122

2223
/* article box --------------------- */
23-
.article_box {position:relative;height:306px;box-sizing:border-box;width:560px !important;float:right;border-width:1px !important;margin-bottom:10px;}
24+
.article_box {position:relative;height:328px;box-sizing:border-box;width:560px !important;float:right;border-width:1px !important;margin-bottom:10px;}
2425
.article_box .highlight_poll {box-sizing:border-box;float:none !important;width:auto !important;border:none !important;background:transparent !important;}
2526
.article_box .highlight_poll h3 {padding:12px 0 8px 16px !important;}
2627
.article_box .highlight_poll .video {margin-bottom:10px;padding:0 15px;}
@@ -35,11 +36,10 @@
3536
.article_box .highlight_poll iframe {display:none;}
3637
.article_box .news_cont {box-sizing:border-box;position:relative;width:auto !important;padding: 0 0 0 10px !important;}
3738
/* news list */
38-
.article_box .news_cont .news_list {position:absolute !important;width:310px !important;height:155px !important;top:150px;border-bottom:none !important;}
39+
.article_box .news_cont .news_list {position:absolute !important;width:310px !important;height:155px !important;top:156px;border-bottom:none !important;}
3940
.article_box .news_cont .news_list h3 {padding:12px 0 6px !important;border-bottom:1px solid #e3e3e3;margin-bottom:8px;}
4041
.article_box .news_cont .news_list .view {top:13px !important;right:0;font-family:Dotum, '돋움', sans-serif;}
4142
.article_box .news_cont .news_list ul li {margin-bottom:3px !important;background:none !important;padding-left:0 !important;}
42-
.article_box .news_cont .news_list ul li:nth-child(n+6) {display:none;}
4343
.article_box .news_cont .news_list ul li a {display:inline !important;width:auto !important;}
4444
.article_box .news_cont .news_list ul li:first-child a {font-weight:bold !important;}
4545
.article_box .news_cont .news_list .id,
@@ -50,9 +50,8 @@
5050
.article_box .news_cont .notice ul li {background:none !important;margin-bottom:4px !important;padding-left:0 !important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
5151
.article_box .news_cont .notice ul li a, .article_box .news_cont .notice ul li a b {font-weight:normal !important;}
5252
.article_box .news_cont .notice ul li:first-child a, .article_box .news_cont .notice ul li:first-child a b {font-weight:bold !important;}
53-
.article_box .news_cont .notice ul li:nth-child(n+6) {display:none;}
5453
/* sidebar --------------------- */
55-
#main_content .right_cont {box-sizing:border-box;width:230px !important;height:306px;position:absolute;top:330px;right:0;border-left:1px solid #e3e3e3;border-right:1px solid #e3e3e3;}
54+
#main_content .right_cont {box-sizing:border-box;width:230px !important;height:328px;position:absolute;top:330px;right:0;border-left:1px solid #e3e3e3;border-right:1px solid #e3e3e3;}
5655
/* login box */
5756
.login_box {width:100% !important;height:auto !important;background:none !important;margin-bottom:15px;padding:0 !important;border:none !important;}
5857
.login_box h3 {background:none !important;padding:13px 0 7px 10px !important;}
@@ -79,7 +78,7 @@
7978
#score_tab li.tab2 a {top:0;right:0;}
8079
#score_tab li a.selected {z-index:2;background:#fff;border-bottom:none;color:#4a4a4a;font-weight:bold;}
8180
#score_tab li a:hover {text-decoration:none;}
82-
#score_rank {height:268px;padding-top:5px;border:1px solid #ddd;border-top:none;}
81+
#score_rank {height:290px;padding-top:5px;border:1px solid #ddd;border-top:none;}
8382
#score_rank table, #score_result table {width:100% !important;font:11px Dotum, '돋움', sans-serif;cursor:default;}
8483
#score_rank table td, #score_result td {color:#666;}
8584
#score_rank td[width="15"] {width:8px !important;}
@@ -98,7 +97,7 @@
9897
#score_rank table[width="100%"] tr[height='4'] {display:none;}
9998
#score_rank table[width="100%"] tr.redText td {color:#e60e1f;}
10099
#score_rank table[width="100%"] td[width="20"] {width:26px !important;}
101-
#score_result {height:268px;padding-top:5px;border:1px solid #ddd;border-top:none;}
100+
#score_result {height:290px;padding-top:5px;border:1px solid #ddd;border-top:none;}
102101
#score_result td[width="15"] {width:10px !important;}
103102
#score_result td[width="9"] {width:10px !important;}
104103
#score_result .resultBoard table[width="100%"] {border-bottom:1px solid #ddd;}

css/mbs.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ form[name="writeForm"] td[width="56"] a[href^="javascript:startRequest"] {displa
160160
.blockTitle:before {display:none !important;}
161161

162162
/* team */
163-
#team_show .G12read {padding-left:54px;}
163+
.team_show .G12read {padding-left:54px;}
164164
.G12read .teamIcon {position:absolute;display:inline-block;margin:1px 0 0 -54px;width:48px;height:17px;overflow:hidden;background:url('chrome-extension://__MSG_@@extension_id__/images/team.png') no-repeat;cursor:pointer;}
165165
.G12read .teamIcon:hover {opacity:.8;}
166166
.teamIcon[data-team="nexen"] {background-position:0 -17px !important;}
@@ -171,6 +171,7 @@ form[name="writeForm"] td[width="56"] a[href^="javascript:startRequest"] {displa
171171
.teamIcon[data-team="lg"] {background-position:0 -102px !important;}
172172
.teamIcon[data-team="hanwha"] {background-position:0 -119px !important;}
173173
.teamIcon[data-team="nc"] {background-position:0 -136px !important;}
174+
.teamIcon[data-team="kt"] {background-position:0 -153px !important;}
174175

175176
/* extra */
176177
.warnBtn {position:relative;top:-20px;display:inline-block;background:#fff;padding:6px 10px 5px;color:#555;font:12px 'Gulim';cursor:pointer;border-width:1px;border-style:solid;border-color:#e7e7e7 #c3c3c3 #bfbfbf #d8d8d8;box-shadow:1px 1px 1px rgba(0,0,0,.1);border-radius:5px;}

images/team.png

2.31 KB
Loading

javascripts/common.js

+19-22
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,24 @@ chrome.extension.sendMessage({action:'width'}, function(response) {
1616
}
1717
});
1818

19-
(function($, doc) {
20-
//user toolbox remove
21-
doc.onclick = function(){
22-
var userMenu = doc.querySelectorAll('div[id^="nik_"]');
23-
for (var i = 0, userMenuLen = userMenu.length; i < userMenuLen; i++){
24-
userMenu[i].style.display = 'none';
25-
}
26-
};
19+
//user toolbox remove
20+
doc.addEventListener('click', function(){
21+
var userMenu = doc.querySelectorAll('div[id^="nik_"]');
22+
for (var i = 0, userMenuLen = userMenu.length; i < userMenuLen; i++){
23+
userMenu[i].style.display = 'none';
24+
}
25+
}, false);
2726

28-
$(doc).ready(function() {
29-
// Remove AD-Wrapper
30-
var adContainer = doc.querySelectorAll('.ad_left_w,.ad_left_w2,.ad_right_w');
31-
for (var i = 0, adContainerLen = adContainer.length; i < adContainerLen; i++){
32-
adContainer[i].innerHTML = '';
33-
}
27+
doc.addEventListener('DOMContentLoaded', function(){
28+
// Remove AD-Wrapper
29+
var adContainer = doc.querySelectorAll('.ad_left_w,.ad_left_w2,.ad_right_w');
30+
for (var i = 0, adContainerLen = adContainer.length; i < adContainerLen; i++){
31+
adContainer[i].innerHTML = '';
32+
}
3433

35-
// Remove Ad-Frame
36-
var adFrame = doc.querySelectorAll('iframe[src*="donga.com"], #ADhead1');
37-
for (var i = 0, adFrameLen = adFrame.length; i < adFrameLen; i++){
38-
var t = adFrame[i];
39-
t.parentNode.removeChild(t);
40-
}
41-
});
42-
})(jQuery, document);
34+
// Remove Ad-Frame
35+
var adFrame = doc.querySelectorAll('iframe[src*="donga.com"], #ADhead1');
36+
for (var i = 0, adFrameLen = adFrame.length; i < adFrameLen; i++){
37+
adFrame[i].remove();
38+
}
39+
}, false);

javascripts/common_idle.js

+17-9
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
(function($, win, doc) {
22
function getCookie(name) {
3-
var nameOfCookie = name + "=";
3+
var nameOfCookie = name + '=';
44
var x = 0;
55

6-
while ( x <= doc.cookie.length ) {
6+
while (x <= doc.cookie.length) {
77
var y = (x+nameOfCookie.length);
8-
if ( doc.cookie.substring( x, y ) == nameOfCookie ) {
9-
if ( (endOfCookie=doc.cookie.indexOf( ";", y )) == -1 )
8+
if (doc.cookie.substring(x, y) == nameOfCookie) {
9+
if ((endOfCookie=doc.cookie.indexOf(';', y)) == -1) {
1010
endOfCookie = doc.cookie.length;
11-
return unescape( doc.cookie.substring( y, endOfCookie ) );
11+
}
12+
13+
return unescape(doc.cookie.substring(y, endOfCookie));
14+
}
15+
16+
x = doc.cookie.indexOf(' ', x) + 1;
17+
18+
if (x == 0) {
19+
break;
1220
}
13-
x = doc.cookie.indexOf( " ", x ) + 1;
14-
if ( x == 0 ) break;
1521
}
16-
return "";
22+
23+
return '';
1724
}
1825

1926
if (win.location.pathname !== '/mbs/commentV.php') {
2027
var loginArea = doc.getElementById('loginArea');
2128
var loginStatus = loginArea.firstElementChild.textContent;
29+
2230
if (loginStatus === '로그아웃'){
2331
var userId = getCookie('dongauserid');
2432
$.ajax({
@@ -27,7 +35,7 @@
2735
dataType: 'html',
2836
cache: false,
2937
success: function(response) {
30-
if (!(response.indexOf('정상적인 접근이 아닙니다') >= 0)){
38+
if (!(response.indexOf('정상적인 접근이 아닙니다') >= 0)) {
3139
var responseWrapper = $('<div />').append(response.replace(/<script(.|\s)*?\/script>/g, ''));
3240
from = responseWrapper.find('tr:first-child td[height="25"] strong').text();
3341
text = responseWrapper.find('textarea').text();

0 commit comments

Comments
 (0)