From e78dc083e30fe430e067499d2e482e202e99e6af Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 31 Aug 2018 20:25:10 +0900 Subject: [PATCH] =?UTF-8?q?customCSS=20=EC=B6=94=EA=B0=80=20=EC=9E=A5?= =?UTF-8?q?=EC=88=98=20=EC=95=84=EC=9D=B4=EC=BD=98=EC=97=90=20generalIcon?= =?UTF-8?q?=20=ED=81=B4=EB=9E=98=EC=8A=A4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/a_emperior.php | 4 ++++ hwe/a_emperior2.php | 4 ++++ hwe/a_emperior_detail.php | 4 ++++ hwe/a_genList.php | 2 +- hwe/a_kingdomList.php | 7 +++++-- hwe/a_npcList.php | 7 +++---- hwe/a_traffic.php | 4 ++++ hwe/a_vote.php | 4 ++++ hwe/b_auction.php | 4 ++++ hwe/b_battleCenter.php | 4 ++++ hwe/b_betting.php | 4 ++++ hwe/b_chiefboard.php | 4 ++++ hwe/b_chiefcenter.php | 4 ++++ hwe/b_currentCity.php | 4 ++++ hwe/b_dipcenter.php | 2 +- hwe/b_myBossInfo.php | 8 ++++++-- hwe/b_myCityInfo.php | 3 +++ hwe/b_myGenInfo.php | 2 +- hwe/b_myKingdomInfo.php | 4 ++++ hwe/b_myPage.php | 3 +++ hwe/b_nationboard.php | 4 ++++ hwe/b_nationrule.php | 4 ++++ hwe/b_troop.php | 11 +++++++---- hwe/commandlist.php | 4 ++++ hwe/func.php | 4 ++-- hwe/js/common.js | 5 +++++ hwe/js/msg.js | 2 +- hwe/js/myPage.js | 34 ++++++++++++++++++++++++++++++++++ hwe/js/templates/message.html | 4 ++-- hwe/templates/hallOfFrame.php | 2 +- js/admin_member.js | 2 +- 31 files changed, 136 insertions(+), 22 deletions(-) create mode 100644 hwe/js/myPage.js diff --git a/hwe/a_emperior.php b/hwe/a_emperior.php index c4d26172..9d130ce7 100644 --- a/hwe/a_emperior.php +++ b/hwe/a_emperior.php @@ -16,6 +16,10 @@ increaseRefresh("왕조일람", 1); <?=UniqueConst::$serverName?>: 왕조일람 + + + + diff --git a/hwe/a_emperior2.php b/hwe/a_emperior2.php index 142e6dea..60b224db 100644 --- a/hwe/a_emperior2.php +++ b/hwe/a_emperior2.php @@ -21,6 +21,10 @@ increaseRefresh("왕조일람", 2); <?=UniqueConst::$serverName?>: 왕조일람 + + + + diff --git a/hwe/a_emperior_detail.php b/hwe/a_emperior_detail.php index 6636ef31..9e13e9cb 100644 --- a/hwe/a_emperior_detail.php +++ b/hwe/a_emperior_detail.php @@ -26,6 +26,10 @@ $serverID = $emperior['server_id']??($emperior['serverID']??null); <?=UniqueConst::$serverName?>: 왕조일람 + + + + diff --git a/hwe/a_genList.php b/hwe/a_genList.php index 200f7b11..27df5105 100644 --- a/hwe/a_genList.php +++ b/hwe/a_genList.php @@ -174,7 +174,7 @@ for ($j=0; $j < $gencount; $j++) { data-general-intel='{$general['intel']}' data-is-npc='".($general['npc']>=2?'true':'false')."' > - + $name {$general['age']}세 ".displayCharInfo($general['personal'])." diff --git a/hwe/a_kingdomList.php b/hwe/a_kingdomList.php index 72c24db8..7d146e73 100644 --- a/hwe/a_kingdomList.php +++ b/hwe/a_kingdomList.php @@ -28,10 +28,13 @@ if($con >= 2) { printLimitMsg($me['turntime']); exit(); } <?=UniqueConst::$serverName?>: 세력일람 + + + + + - - diff --git a/hwe/a_npcList.php b/hwe/a_npcList.php index b9d3645f..bed4edb6 100644 --- a/hwe/a_npcList.php +++ b/hwe/a_npcList.php @@ -29,13 +29,12 @@ $sel[$type] = "selected"; <?=UniqueConst::$serverName?>: 빙의일람 - - - - + + + diff --git a/hwe/a_traffic.php b/hwe/a_traffic.php index bad89339..8d418c8f 100644 --- a/hwe/a_traffic.php +++ b/hwe/a_traffic.php @@ -53,6 +53,10 @@ if ($admin['maxonline'] < $curonline) { + + + + ').appendTo($('head')); + } }); diff --git a/hwe/js/msg.js b/hwe/js/msg.js index 68731def..ca65c7a0 100644 --- a/hwe/js/msg.js +++ b/hwe/js/msg.js @@ -402,7 +402,7 @@ function activateMessageForm(){ jQuery(function($){ //tmp_template.html은 추후 msg.js에 통합될 수 있음 - var getTemplate = $.get('js/templates/message.html',function(obj){ + var getTemplate = $.get('js/templates/message.html?3',function(obj){ messageTemplate = obj; }); diff --git a/hwe/js/myPage.js b/hwe/js/myPage.js new file mode 100644 index 00000000..fa9da893 --- /dev/null +++ b/hwe/js/myPage.js @@ -0,0 +1,34 @@ +jQuery(function($){ + + + var initCustomCSSForm = function(){ + var lastTimeOut = null; + var $obj = $('#custom_css'); + var key = 'sam_customCSS'; + + var text = localStorage.getItem(key); + if(text){ + $obj.val(text); + console.log(text); + } + + if($obj.on('change keyup paste', function(){ + var newText = $obj.val(); + if(text == newText){ + return; + } + if(lastTimeOut){ + clearTimeout(lastTimeOut); + } + $obj.css('background-color', '#222222'); + lastTimeOut = setTimeout(function(){ + text = $obj.val(); + localStorage.setItem(key, text); + $obj.css('background-color', 'black'); + }, 500); + })); + + } + + initCustomCSSForm(); +}); \ No newline at end of file diff --git a/hwe/js/templates/message.html b/hwe/js/templates/message.html index 0f861753..58c7e386 100644 --- a/hwe/js/templates/message.html +++ b/hwe/js/templates/message.html @@ -5,9 +5,9 @@ >
<%if(src.icon){ %> - + <%} else {%> - + <%}%>
diff --git a/hwe/templates/hallOfFrame.php b/hwe/templates/hallOfFrame.php index 73cfdece..54426b14 100644 --- a/hwe/templates/hallOfFrame.php +++ b/hwe/templates/hallOfFrame.php @@ -5,7 +5,7 @@
-
+
diff --git a/js/admin_member.js b/js/admin_member.js index 0a21461e..7687441c 100644 --- a/js/admin_member.js +++ b/js/admin_member.js @@ -5,7 +5,7 @@ var userFrame = '\ <%emailFunc(email)%>
(<%authType%>)\ <%userGradeText%>

<%shortDate(blockUntil)%>

\ <%nickname%>\ - \ + \ <%slotGeneralList%>\ <%shortDate(joinDate)%>\ <%shortDate(loginDate)%>\