js, css 캐시 문제로 printJS, printCSS 함수를 이용하도록 변경
This commit is contained in:
@@ -10,13 +10,13 @@ require(__dir__.'/../vendor/autoload.php');
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>설치</title>
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../e_lib/bootstrap.bundle.min.js"></script>
|
||||
<script src="../e_lib/jquery.validate.min.js"></script>
|
||||
<script src="../e_lib/sha512.min.js"></script>
|
||||
<script src="../js/install.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="../e_lib/bootstrap.min.css">
|
||||
<link type="text/css" rel="stylesheet" href="../css/install.css">
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery.validate.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/sha512.min.js')?>
|
||||
<?=WebUtil::printJS('../js/install.js')?>
|
||||
<?=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
|
||||
<?=WebUtil::printCSS('../css/install.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
+5
-5
@@ -6,14 +6,14 @@ include "func.php";
|
||||
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
if($session->userGrade < 4) {
|
||||
?><!DOCTYPE html>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>관리메뉴</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
관리자가 아닙니다.<br>
|
||||
@@ -40,8 +40,8 @@ $plock = MYDB_fetch_array($result);
|
||||
<head>
|
||||
<title>삼국지 모의전투 HiDCHe</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<form action=_119_b.php method=post>
|
||||
|
||||
+9
-10
@@ -7,22 +7,21 @@ include "func.php";
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
|
||||
if($session->userGrade < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>관리메뉴</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
echo banner();
|
||||
echo "
|
||||
<?=banner()?>
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
</html>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -36,8 +35,8 @@ $admin = getAdmin();
|
||||
<head>
|
||||
<title>게임관리</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<table align=center width=1000 class="tb_layout bg0">
|
||||
|
||||
+9
-10
@@ -7,22 +7,21 @@ include "func.php";
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
|
||||
if($session->userGrade < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>관리메뉴</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
echo banner();
|
||||
echo "
|
||||
<?=banner()?>
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
</html>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -38,8 +37,8 @@ $admin = MYDB_fetch_array($result);
|
||||
<head>
|
||||
<title>회원관리</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<table align=center width=1000 class='tb_layout bg0'>
|
||||
|
||||
+9
-10
@@ -7,22 +7,21 @@ include "func.php";
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
|
||||
if($session->userGrade < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>관리메뉴</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
echo banner();
|
||||
echo "
|
||||
<?=banner()?>
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
</html>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -38,8 +37,8 @@ $admin = MYDB_fetch_array($result);
|
||||
<head>
|
||||
<title>멀티관리</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<table align=center width=1000 class='tb_layout bg0'>
|
||||
|
||||
+9
-10
@@ -20,22 +20,21 @@ extractMissingPostToGlobals();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
|
||||
if($session->userGrade < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>관리메뉴</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
echo banner();
|
||||
echo "
|
||||
<?=banner()?>
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
</html>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -56,8 +55,8 @@ $admin = MYDB_fetch_array($result);
|
||||
<head>
|
||||
<title>일제정보</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<table align=center width=1000 class='tb_layout bg0'>
|
||||
|
||||
+9
-10
@@ -14,22 +14,21 @@ extractMissingPostToGlobals();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
|
||||
if($session->userGrade < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>관리메뉴</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
echo banner();
|
||||
echo "
|
||||
<?=banner()?>
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
</html>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -44,8 +43,8 @@ $sel[$type] = "selected";
|
||||
<head>
|
||||
<title>접속정보</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<table align=center width=1000 class='tb_layout bg0'>
|
||||
|
||||
+9
-10
@@ -18,22 +18,21 @@ extractMissingPostToGlobals();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
|
||||
if($session->userGrade < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>관리메뉴</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
echo banner();
|
||||
echo "
|
||||
<?=banner()?>
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
</html>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -51,8 +50,8 @@ $sel[$type] = "selected";
|
||||
<head>
|
||||
<title>로그정보</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<table align=center width=1000 class='tb_layout bg0'>
|
||||
|
||||
+9
-10
@@ -14,22 +14,21 @@ extractMissingPostToGlobals();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
|
||||
if ($session->userGrade < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>관리메뉴</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
echo banner();
|
||||
echo "
|
||||
<?=banner()?>
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
</html>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -47,8 +46,8 @@ $sel[$type] = "selected";
|
||||
<head>
|
||||
<title>외교정보</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<table align=center width=1000 class='tb_layout bg0'>
|
||||
|
||||
+2
-2
@@ -1140,8 +1140,8 @@ switch($dex240) {
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title>전투시뮬레이션</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<style type="text/css">
|
||||
select { background-color:black;color:white; }
|
||||
input { background-color:black;color:white; }
|
||||
|
||||
@@ -37,8 +37,8 @@ if ($con >= 2) {
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 명장일람</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ increaseRefresh("왕조일람", 2);
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 왕조일람</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ increaseRefresh("왕조일람", 2);
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 왕조일람</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+4
-3
@@ -42,9 +42,10 @@ if ($type <= 0 || $type > 15) {
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 장수일람</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<script type="text/javascript" src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ increaseRefresh("명예의전당", 2);
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 명예의 전당</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+8
-8
@@ -78,15 +78,15 @@ if ($month <= 0) {
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 연감</title>
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../d_shared/common_path.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/base_map.js"></script>
|
||||
<script src="js/map.js"></script>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('js/common.js')?>
|
||||
<?=WebUtil::printJS('js/base_map.js')?>
|
||||
<?=WebUtil::printJS('js/map.js')?>
|
||||
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<link href="css/map.css" rel="stylesheet">
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<?=WebUtil::printCSS('css/map.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ if($con >= 2) { printLimitMsg($me['turntime']); exit(); }
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 세력일람</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+2
-2
@@ -27,8 +27,8 @@ $sel[$type] = "selected";
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 빙의일람</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+9
-9
@@ -30,11 +30,11 @@ if($con >= 2) { printLimitMsg($me['turntime']); exit(); }
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title><?=UniqueConst::$serverName?>: 세력도</title>
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../d_shared/common_path.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/base_map.js"></script>
|
||||
<script src="js/map.js"></script>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('js/common.js')?>
|
||||
<?=WebUtil::printJS('js/base_map.js')?>
|
||||
<?=WebUtil::printJS('js/map.js')?>
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
@@ -45,10 +45,10 @@ $(function(){
|
||||
|
||||
});
|
||||
</script>
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="css/normalize.css" rel="stylesheet">
|
||||
<link href="css/common.css?180512" rel="stylesheet">
|
||||
<link href="css/map.css" rel="stylesheet">
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/normalize.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<?=WebUtil::printCSS('css/map.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+2
-2
@@ -52,8 +52,8 @@ if ($game['maxonline'] < $curonline) {
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 트래픽정보</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<style>
|
||||
.big_bar{
|
||||
float:left;
|
||||
|
||||
+2
-2
@@ -30,8 +30,8 @@ if ($vote[0] == "") {
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 설문조사</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<style>
|
||||
.little_bar{
|
||||
float:left;
|
||||
|
||||
+2
-3
@@ -60,9 +60,8 @@ if ($msg2 == "") {
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 거래장</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<table align=center width=1000 class='tb_layout bg0'>
|
||||
|
||||
@@ -77,8 +77,8 @@ $sel[$type] = "selected";
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 감찰부</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+2
-2
@@ -54,8 +54,8 @@ if($str3){
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 베팅장</title>
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="css/common.css?180512" rel="stylesheet">
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -27,8 +27,8 @@ if($me['level'] < 5) {
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 기밀실</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -84,8 +84,8 @@ for($i= $lv - 1; $i>=5; $i--){
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 사령부</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<script type="text/javascript">
|
||||
function turn(type) {
|
||||
if(type == 0) location.replace('turn_push_core.php');
|
||||
|
||||
@@ -34,8 +34,8 @@ $templates = new \League\Plates\Engine('templates');
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 도시정보</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="css/common.css?180512" rel="stylesheet">
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<style>
|
||||
#general_list tr td{
|
||||
text-align:center;
|
||||
|
||||
+2
-2
@@ -49,8 +49,8 @@ if ($me['level'] >= 5) {
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 내무부</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+9
-9
@@ -79,11 +79,11 @@ foreach ($db->queryAllLists('SELECT city, `name`, conflict FROM city WHERE confl
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title><?=UniqueConst::$serverName?>: 중원 정보</title>
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../d_shared/common_path.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/base_map.js"></script>
|
||||
<script src="js/map.js"></script>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('js/common.js')?>
|
||||
<?=WebUtil::printJS('js/base_map.js')?>
|
||||
<?=WebUtil::printJS('js/map.js')?>
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
@@ -94,10 +94,10 @@ $(function(){
|
||||
|
||||
});
|
||||
</script>
|
||||
<link href="css/normalize.css" rel="stylesheet">
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="css/common.css?180512" rel="stylesheet">
|
||||
<link href="css/map.css" rel="stylesheet">
|
||||
<?=WebUtil::printCSS('css/normalize.css')?>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<?=WebUtil::printCSS('css/map.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+2
-2
@@ -55,8 +55,8 @@ $sel[$type] = "selected";
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 암행부</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ if($meLevel == 0) {
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 인사부</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<script type="text/javascript">
|
||||
function out() {
|
||||
return confirm('정말 추방하시겠습니까?');
|
||||
|
||||
@@ -38,8 +38,8 @@ $sel = [$type => "selected"];
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 세력도시</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+2
-2
@@ -38,8 +38,8 @@ $sel = [$type => "selected"];
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 세력장수</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@ if($me['level'] == 0) {
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 세력정보</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+2
-2
@@ -78,8 +78,8 @@ if (($btn == "설정저장" || $detachNPC) && $me['myset'] > 0) {
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 내정보</title>
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link rel=stylesheet href="css/common.css?180512">
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ $me = MYDB_fetch_array($result);
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 회의실</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ increaseRefresh("국법", 1);
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 국법</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ case 3: $tnmt_type = "<font color=cyan>설전</font>"; $tp = "itl"; $tp2 = "
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 토너먼트</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
+2
-3
@@ -26,9 +26,8 @@ $troopcount = MYDB_num_rows($result);
|
||||
<head>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<title><?=UniqueConst::$serverName?>: 부대편성</title>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
+2
-2
@@ -15,8 +15,8 @@ $connect=$db->get();
|
||||
<head>
|
||||
<title>커맨드리스트</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<script type="text/javascript">
|
||||
<?php
|
||||
if(!$session->isLoggedIn()){
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ function printLimitMsg($turntime) {
|
||||
<head>
|
||||
<title>접속제한</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<font size=4><b>
|
||||
|
||||
+14
-14
@@ -83,14 +83,14 @@ $color = "cyan";
|
||||
<title><?=UniqueConst::$serverName?>: 메인</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../e_lib/jquery.redirect.js"></script>
|
||||
<script src="../d_shared/common_path.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/base_map.js"></script>
|
||||
<script src="js/map.js"></script>
|
||||
<script src="js/msg.js"></script>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery.redirect.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('js/common.js')?>
|
||||
<?=WebUtil::printJS('js/main.js')?>
|
||||
<?=WebUtil::printJS('js/base_map.js')?>
|
||||
<?=WebUtil::printJS('js/map.js')?>
|
||||
<?=WebUtil::printJS('js/msg.js')?>
|
||||
<script>
|
||||
$(function(){
|
||||
reloadWorldMap({
|
||||
@@ -102,12 +102,12 @@ $(function(){
|
||||
}, 10000);
|
||||
});
|
||||
</script>
|
||||
<link href="css/normalize.css" rel="stylesheet">
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="css/common.css?180512" rel="stylesheet">
|
||||
<link href="css/main.css?180511" rel="stylesheet">
|
||||
<link href="css/map.css" rel="stylesheet">
|
||||
<link href="css/msg.css?180511" rel="stylesheet">
|
||||
<?=WebUtil::printCSS('css/normalize.css')?>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<?=WebUtil::printCSS('css/main.css')?>
|
||||
<?=WebUtil::printCSS('css/map.css')?>
|
||||
<?=WebUtil::printCSS('css/msg.css')?>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
+8
-8
@@ -20,14 +20,14 @@ if($session->userGrade < 5){
|
||||
<title>설치</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../e_lib/bootstrap.bundle.min.js"></script>
|
||||
<script src="../e_lib/jquery.validate.min.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/install.js"></script>
|
||||
<link rel="stylesheet" href="css/normalize.css" >
|
||||
<link rel="stylesheet" href="../e_lib/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="css/install.css" >
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery.validate.min.js')?>
|
||||
<?=WebUtil::printJS('js/common.js')?>
|
||||
<?=WebUtil::printJS('js/install.js')?>
|
||||
<?=WebUtil::printCSS('css/normalize.css')?>
|
||||
<?=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
|
||||
<?=WebUtil::printCSS('css/install.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" style="min-width:720px;">
|
||||
|
||||
+8
-8
@@ -20,14 +20,14 @@ if($session->userGrade == 5){
|
||||
<title>설치</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../e_lib/bootstrap.bundle.min.js"></script>
|
||||
<script src="../e_lib/jquery.validate.min.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/install_db.js"></script>
|
||||
<link rel="stylesheet" href="css/normalize.css" >
|
||||
<link rel="stylesheet" href="../e_lib/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="css/install.css" >
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery.validate.min.js')?>
|
||||
<?=WebUtil::printJS('js/common.js')?>
|
||||
<?=WebUtil::printJS('js/install.js')?>
|
||||
<?=WebUtil::printCSS('css/normalize.css')?>
|
||||
<?=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
|
||||
<?=WebUtil::printCSS('css/install.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" style="min-width:720px;">
|
||||
|
||||
+5
-4
@@ -31,10 +31,11 @@ $connect=$db->get();
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: 장수생성</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link rel='stylesheet' href="css/common.css?180512">
|
||||
<script type="text/javascript" src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript" src="js/join.js"></script>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('js/join.js')?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
+6
-2
@@ -64,9 +64,10 @@ function extractMissingPostToGlobals()
|
||||
{
|
||||
$result = [];
|
||||
if (isset($_POST) && count($_POST) > 0) {
|
||||
|
||||
|
||||
foreach($_POST as $key=>$val){
|
||||
if(is_numeric($key)){
|
||||
continue;
|
||||
}
|
||||
if(isset($GLOBALS[$key])){
|
||||
continue;
|
||||
}
|
||||
@@ -77,6 +78,9 @@ function extractMissingPostToGlobals()
|
||||
|
||||
if (isset($_GET) && count($_GET) > 0) {
|
||||
foreach($_GET as $key=>$val){
|
||||
if(is_numeric($key)){
|
||||
continue;
|
||||
}
|
||||
if(isset($GLOBALS[$key])){
|
||||
continue;
|
||||
}
|
||||
|
||||
+14
-16
@@ -116,18 +116,18 @@ switch($commandtype) {
|
||||
}
|
||||
|
||||
function starter($name, $type=0) {
|
||||
echo '
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>'.$name.'</title>
|
||||
<title><?=$name?></title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../d_shared/common_path.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/base_map.js"></script>
|
||||
<script src="js/map.js"></script>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('js/common.js')?>
|
||||
<?=WebUtil::printJS('js/base_map.js')?>
|
||||
<?=WebUtil::printJS('js/map.js')?>
|
||||
<script>
|
||||
$(function(){
|
||||
var $target = $("form[name=form1] select[name=double]");
|
||||
@@ -143,19 +143,17 @@ $(function(){
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<link href="css/normalize.css" rel="stylesheet">
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="css/common.css?180512" rel="stylesheet">
|
||||
<link href="css/main.css" rel="stylesheet">
|
||||
<link href="css/map.css" rel="stylesheet">
|
||||
';
|
||||
echo '
|
||||
<?=WebUtil::printCSS('css/normalize.css')?>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<?=WebUtil::printCSS('css/main.css')?>
|
||||
<?=WebUtil::printCSS('css/map.css')?>
|
||||
</head>
|
||||
<body class="img_back">
|
||||
<table class="tb_layout bg0" style="width:1000px;margin:auto;">
|
||||
<tr><td class="bg1" align="center">'.$name.'</td></tr>
|
||||
<tr><td class="bg1" align="center"><?=$name?></td></tr>
|
||||
<tr><td>
|
||||
';
|
||||
<?php
|
||||
if($type == 1) echo CoreBackButton();
|
||||
else echo backButton();
|
||||
}
|
||||
|
||||
+10
-9
@@ -24,15 +24,16 @@ $nations = $db->queryAllLists('SELECT `name`, scoutmsg, color FROM nation');
|
||||
<head>
|
||||
<title><?=UniqueConst::$serverName?>: NPC빙의</title>
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel='stylesheet' href='css/normalize.css?180505_2' type='text/css'>
|
||||
<link rel='stylesheet' href='../d_shared/common.css?180505_2' type='text/css'>
|
||||
<link rel='stylesheet' href='../css/config.css?180505_2' type='text/css'>
|
||||
<link rel='stylesheet' href='css/common.css?180512' type='text/css'>
|
||||
<link rel='stylesheet' href='css/select_npc.css?180505_2' type='text/css'>
|
||||
<script type="text/javascript" src="../d_shared/common_path.js"></script>
|
||||
<script type="text/javascript" src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript" src="../js/common.js?180505_2"></script>
|
||||
<script src="js/select_npc.js?180505_4"></script>
|
||||
<?=WebUtil::printCSS('css/normalize.css')?>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('../css/config.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<?=WebUtil::printCSS('css/select_npc.css')?>
|
||||
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../js/common.js')?>
|
||||
<?=WebUtil::printJS('js/select_npc.js')?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
require(__dir__.'/../vendor/autoload.php');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
@@ -6,17 +10,16 @@
|
||||
<title>유저 관리</title>
|
||||
|
||||
<!-- 스타일 -->
|
||||
<link type="text/css" rel="stylesheet" href="../e_lib/bootstrap.min.css">
|
||||
<link type="text/css" rel="stylesheet" href='../d_shared/common.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/admin_member.css'>
|
||||
<?=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('../css/admin_member.cs')?>
|
||||
|
||||
<script type="text/javascript" src='../e_lib/jquery-3.2.1.min.js'></script>
|
||||
<script type="text/javascript" src="../e_lib/bootstrap.bundle.min.js"></script>
|
||||
<script src='../d_shared/common_path.js'></script>
|
||||
<script type="text/javascript" src='../js/common.js'></script>
|
||||
<script type="text/javascript" src='../js/func.js'></script>
|
||||
|
||||
<script type="text/javascript" src='../js/admin_member.js'></script>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
|
||||
<?=WebUtil::printJS('../js/common.js')?>
|
||||
<?=WebUtil::printJS('../js/func.js')?>
|
||||
<?=WebUtil::printJS('../js/admin_member.js')?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
+14
-14
@@ -20,24 +20,24 @@ $userGrade = $session->userGrade;
|
||||
<title>서버목록</title>
|
||||
|
||||
<!-- 스타일 -->
|
||||
<link type="text/css" rel="stylesheet" href="../e_lib/bootstrap.min.css">
|
||||
<link type="text/css" rel="stylesheet" href='../d_shared/common.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/config.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/entrance.css'>
|
||||
<?=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('../css/config.css')?>
|
||||
<?=WebUtil::printCSS('../css/entrance.css')?>
|
||||
|
||||
<!-- 액션 -->
|
||||
<script type="text/javascript" src='../js/common.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/jquery-3.2.1.min.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/bootstrap.bundle.min.js'></script>
|
||||
<script type="text/javascript" src='../js/func.js'></script>
|
||||
<script type="text/javascript" src='../js/entrance.js'></script>
|
||||
<script src="../d_shared/menu.js"></script>
|
||||
<script src="../js/title.js"></script>
|
||||
<?=WebUtil::printJS('../js/common.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
|
||||
<?=WebUtil::printJS('../js/func.js')?>
|
||||
<?=WebUtil::printJS('../js/entrance.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/menu.js')?>
|
||||
<?=WebUtil::printJS('../js/title.js')?>
|
||||
|
||||
<?php if ($userGrade >= 5): ?>
|
||||
<!-- 운영자 -->
|
||||
<link type="text/css" rel="stylesheet" href='../css/admin_server.css'>
|
||||
<script type="text/javascript" src='../js/admin_server.js?180512'></script>
|
||||
<?=WebUtil::printCSS('../css/admin_server.css')?>
|
||||
<?=WebUtil::printJS('../js/admin_server.js')?>
|
||||
<?php endif; ?>
|
||||
|
||||
</head>
|
||||
@@ -103,7 +103,7 @@ if ($userGrade >= 5) {
|
||||
<div id="user_info">
|
||||
<div class="bg2 section_title with_border">계 정 관 리</div>
|
||||
<div class="center_ordered_items with_border bg0">
|
||||
<a href="user_info.html"><button id="btn_user_manage" class="with_skin">비밀번호 & 전콘 & 탈퇴</button></a>
|
||||
<a href="user_info.php"><button id="btn_user_manage" class="with_skin">비밀번호 & 전콘 & 탈퇴</button></a>
|
||||
<button id="btn_logout" class="with_skin">로 그 아 웃</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="admin_userlist">
|
||||
<div class="bg2 section_title with_border">회 원 관 리</div>
|
||||
<div class="center_ordered_items with_border bg0">
|
||||
<a href="admin_userlist.html"><button class="with_skin" type="button">회원 관리</button></a>
|
||||
<a href="admin_userlist.php"><button class="with_skin" type="button">회원 관리</button></a>
|
||||
</div>
|
||||
<div class="center_ordered_items with_border bg0">
|
||||
<textarea cols="80" rows="3" id="notice_edit" name="notice"><?=$notice?></textarea>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
require(__dir__.'/../vendor/autoload.php');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
@@ -6,21 +10,21 @@
|
||||
<title>계정 관리</title>
|
||||
|
||||
<!-- 스타일 -->
|
||||
<link type="text/css" rel="stylesheet" href="../e_lib/bootstrap.min.css">
|
||||
<link type="text/css" rel="stylesheet" href='../d_shared/common.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/config.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/user_info.css'>
|
||||
<?=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('../css/config.css')?>
|
||||
<?=WebUtil::printCSS('../css/user_info.css')?>
|
||||
|
||||
<!-- 액션 -->
|
||||
<script src='../d_shared/common_path.js'></script>
|
||||
<script type="text/javascript" src='../js/common.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/jquery-3.2.1.min.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/bootstrap.bundle.min.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/sha512.min.js'></script>
|
||||
<script type="text/javascript" src='../js/func.js'></script>
|
||||
<script type="text/javascript" src='../js/user_info.js'></script>
|
||||
<script src="../d_shared/menu.js"></script>
|
||||
<script src="../js/title.js"></script>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('../js/common.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/sha512.min.js')?>
|
||||
<?=WebUtil::printJS('../js/func.js')?>
|
||||
<?=WebUtil::printJS('../js/user_info.js')?>
|
||||
<?=WebUtil::printJS('../d_shared/menu.js')?>
|
||||
<?=WebUtil::printJS('../js/title.js')?>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
+2
-2
@@ -13,8 +13,8 @@ $category = Util::getReq('category', 'int', 0);
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>튜토리얼</title>
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="css/common.css?180512" rel="stylesheet">
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<style type="text/css">
|
||||
|
||||
.intro {
|
||||
|
||||
@@ -12,8 +12,8 @@ if($sel == 0) $sel = 1;
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>스크린샷</title>
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="css/common.css?180512" rel="stylesheet">
|
||||
<?=WebUtil::printCSS('../d_shared/common.css')?>
|
||||
<?=WebUtil::printCSS('css/common.css')?>
|
||||
<style type="text/css">
|
||||
|
||||
.leftFloat {
|
||||
|
||||
@@ -25,16 +25,16 @@ if ($session->isLoggedIn()) {
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>삼국지 모의전투 HiDCHe</title>
|
||||
<script src="e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="e_lib/bootstrap.bundle.min.js"></script>
|
||||
<script src="e_lib/jquery.validate.min.js"></script>
|
||||
<script src="e_lib/sha512.min.js"></script>
|
||||
<script src="d_shared/menu.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/login.js"></script>
|
||||
<script src="js/title.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="e_lib/bootstrap.min.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/login.css">
|
||||
<?=WebUtil::printJS('e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('e_lib/bootstrap.bundle.min.js')?>
|
||||
<?=WebUtil::printJS('e_lib/jquery.validate.min.js')?>
|
||||
<?=WebUtil::printJS('e_lib/sha512.min.js')?>
|
||||
<?=WebUtil::printJS('d_shared/menu.js')?>
|
||||
<?=WebUtil::printJS('js/common.js')?>
|
||||
<?=WebUtil::printJS('js/login.js')?>
|
||||
<?=WebUtil::printJS('js/title.js')?>
|
||||
<?=WebUtil::printCSS('e_lib/bootstrap.min.css')?>
|
||||
<?=WebUtil::printCSS('css/login.css')?>
|
||||
<script>
|
||||
|
||||
var oauthMode = null;
|
||||
|
||||
@@ -12,7 +12,7 @@ use \kakao\KakaoKey as KakaoKey;
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>카카오 로그인하기</title>
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<script>
|
||||
|
||||
var oauthMode = null;
|
||||
|
||||
@@ -27,13 +27,13 @@ if($canJoin != 'Y'){
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>회원가입</title>
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../e_lib/bootstrap.bundle.min.js"></script>
|
||||
<script src="../e_lib/jquery.validate.min.js"></script>
|
||||
<script src="../e_lib/sha512.min.js"></script>
|
||||
<script src="../js/join.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="../e_lib/bootstrap.min.css">
|
||||
<link type="text/css" rel="stylesheet" href="../css/login.css">
|
||||
<?=WebUtil::printJS('../e_lib/jquery-3.2.1.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery.validate.min.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/sha512.min.js')?>
|
||||
<?=WebUtil::printJS('../js/join.js')?>
|
||||
<?=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
|
||||
<?=WebUtil::printCSS('../css/login.css')?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
@@ -88,4 +88,41 @@ class WebUtil
|
||||
|
||||
return $decoded;
|
||||
}
|
||||
|
||||
public function printJS(string $path){
|
||||
//async, defer 옵션 고려
|
||||
$upath = \phpUri::parse($path);
|
||||
$path = $upath->join();
|
||||
if(!$upath->scheme && file_exists($upath->path)){
|
||||
$mtime = filemtime($upath->path);
|
||||
if($upath->query){
|
||||
$tail = '&'.$mtime;
|
||||
}
|
||||
else{
|
||||
$tail = '?'.$mtime;
|
||||
}
|
||||
}
|
||||
else{
|
||||
$tail = '';
|
||||
}
|
||||
return "<script src='{$path}{$tail}'></script>\n";
|
||||
}
|
||||
|
||||
public function printCSS(string $path){
|
||||
$upath = \phpUri::parse($path);
|
||||
$path = $upath->join();
|
||||
if(!$upath->scheme && file_exists($upath->path)){
|
||||
$mtime = filemtime($upath->path);
|
||||
if($upath->query){
|
||||
$tail = '&'.$mtime;
|
||||
}
|
||||
else{
|
||||
$tail = '?'.$mtime;
|
||||
}
|
||||
}
|
||||
else{
|
||||
$tail = '';
|
||||
}
|
||||
return "<link rel='stylesheet' type='text/css' href='{$path}{$tail}' />\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
function convertDictById(arr){
|
||||
var result = {};
|
||||
arr.forEach(function(v, i){
|
||||
result[v.id] = v;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
function convertSet(arr){
|
||||
var result = {};
|
||||
arr.forEach(function(v){
|
||||
result[v] = v;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
function convColorValue(color){
|
||||
if(color.charAt(0) == '#'){
|
||||
color = color.substr(1);
|
||||
}
|
||||
color = color.toUpperCase();
|
||||
|
||||
var colorBase = convertSet([
|
||||
'000080', '0000FF', '008000', '008080', '00BFFF', '00FF00', '00FFFF', '20B2AA',
|
||||
'2E8B57', '483D8B', '6495ED', '7B68EE', '7CFC00', '7FFFD4', '800000', '800080',
|
||||
'808000', '87CEEB', 'A0522D', 'A9A9A9', 'AFEEEE', 'BA55D3', 'E0FFFF', 'F5F5DC',
|
||||
'FF0000', 'FF00FF', 'FF6347', 'FFA500', 'FFC0CB', 'FFD700', 'FFDAB9', 'FFFF00',
|
||||
'FFFFFF'
|
||||
]);
|
||||
|
||||
if(!colorBase.hasOwnProperty(color)){
|
||||
return '000000';
|
||||
}
|
||||
|
||||
return color;
|
||||
|
||||
}
|
||||
|
||||
function getCityPosition(){
|
||||
return {
|
||||
1: ["업", 345, 130],
|
||||
2: ["허창", 330, 215],
|
||||
3: ["낙양", 275, 180],
|
||||
4: ["장안", 145, 165],
|
||||
5: ["성도", 25, 290],
|
||||
6: ["양양", 255, 290],
|
||||
7: ["건업", 505, 305],
|
||||
8: ["북평", 465, 65],
|
||||
9: ["남피", 395, 95],
|
||||
10: ["완", 270, 235],
|
||||
11: ["수춘", 395, 270],
|
||||
12: ["서주", 440, 250],
|
||||
13: ["강릉", 245, 335],
|
||||
14: ["장사", 255, 375],
|
||||
15: ["시상", 360, 360],
|
||||
16: ["위례", 620, 145],
|
||||
17: ["계", 365, 35],
|
||||
18: ["복양", 410, 170],
|
||||
19: ["진류", 365, 185],
|
||||
20: ["여남", 330, 260],
|
||||
21: ["하비", 480, 235],
|
||||
22: ["서량", 25, 50],
|
||||
23: ["하내", 230, 150],
|
||||
24: ["한중", 135, 205],
|
||||
25: ["상용", 185, 225],
|
||||
26: ["덕양", 85, 275],
|
||||
27: ["강주", 70, 310],
|
||||
28: ["건녕", 80, 400],
|
||||
29: ["남해", 245, 480],
|
||||
30: ["계양", 230, 400],
|
||||
31: ["오", 510, 345],
|
||||
32: ["평양", 590, 100],
|
||||
33: ["사비", 605, 205],
|
||||
34: ["계림", 655, 200],
|
||||
35: ["진양", 295, 60],
|
||||
36: ["평원", 440, 115],
|
||||
37: ["북해", 470, 155],
|
||||
38: ["초", 365, 230],
|
||||
39: ["패", 430, 220],
|
||||
40: ["천수", 70, 105],
|
||||
41: ["안정", 95, 145],
|
||||
42: ["홍농", 210, 175],
|
||||
43: ["하변", 45, 190],
|
||||
44: ["자동", 75, 245],
|
||||
45: ["영안", 115, 295],
|
||||
46: ["귀양", 90, 360],
|
||||
47: ["주시", 30, 345],
|
||||
48: ["운남", 30, 415],
|
||||
49: ["남영", 135, 405],
|
||||
50: ["교지", 130, 480],
|
||||
51: ["신야", 250, 260],
|
||||
52: ["강하", 315, 295],
|
||||
53: ["무릉", 195, 355],
|
||||
54: ["영릉", 190, 395],
|
||||
55: ["상동", 210, 435],
|
||||
56: ["여강", 380, 315],
|
||||
57: ["회계", 480, 395],
|
||||
58: ["고창", 350, 405],
|
||||
59: ["대", 450, 480],
|
||||
60: ["안평", 530, 80],
|
||||
61: ["졸본", 570, 65],
|
||||
62: ["이도", 680, 260],
|
||||
63: ["강", 95, 35],
|
||||
64: ["저", 25, 120],
|
||||
65: ["흉노", 180, 95],
|
||||
66: ["남만", 80, 455],
|
||||
67: ["산월", 425, 430],
|
||||
68: ["오환", 610, 20],
|
||||
69: ["왜", 680, 320],
|
||||
70: ["호관", 285, 140],
|
||||
71: ["호로", 285, 205],
|
||||
72: ["사곡", 240, 175],
|
||||
73: ["함곡", 180, 175],
|
||||
74: ["사수", 310, 185],
|
||||
75: ["양평", 90, 220],
|
||||
76: ["가맹", 45, 225],
|
||||
77: ["역경", 410, 65],
|
||||
78: ["계교", 405, 135],
|
||||
79: ["동황", 515, 145],
|
||||
80: ["관도", 340, 165],
|
||||
81: ["정도", 400, 210],
|
||||
82: ["합비", 435, 285],
|
||||
83: ["광릉", 490, 275],
|
||||
84: ["적도", 130, 75],
|
||||
85: ["가정", 40, 160],
|
||||
86: ["기산", 110, 180],
|
||||
87: ["면죽", 35, 255],
|
||||
88: ["이릉", 215, 295],
|
||||
89: ["장판", 280, 315],
|
||||
90: ["백랑", 530, 30],
|
||||
91: ["적벽", 330, 325],
|
||||
92: ["파양", 430, 350],
|
||||
93: ["탐라", 605, 260],
|
||||
94: ["유구", 625, 435],
|
||||
};
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -1,2 +0,0 @@
|
||||
goCity.php, cityId is <?=$_GET['id']?>
|
||||
|
||||
-418
@@ -1,418 +0,0 @@
|
||||
.world_map{
|
||||
background:black;
|
||||
font-size:13px;
|
||||
color:white;
|
||||
}
|
||||
|
||||
.map_title{
|
||||
width:700px;
|
||||
height:20px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.map_title_text{
|
||||
margin:auto;
|
||||
text-align:center;
|
||||
width:160px;
|
||||
display:block;
|
||||
line-height:20px;
|
||||
font-size:13px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.map_body{
|
||||
width:700px;
|
||||
height:500px;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.world_map .city_tooltip{
|
||||
position: absolute;
|
||||
z-index:6;
|
||||
display:none;
|
||||
width:120px;
|
||||
border: 0.02em gray solid;
|
||||
}
|
||||
.world_map .city_name{
|
||||
background-color: rgb(30, 164, 255);
|
||||
z-index: 6;
|
||||
line-height:15px;
|
||||
height:15px;
|
||||
|
||||
}
|
||||
.world_map .nation_name{
|
||||
background-color: rgb(30, 164, 255);
|
||||
z-index: 6;
|
||||
line-height:15px;
|
||||
height:15px;
|
||||
border-top: 0.02em gray solid;
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
.world_map .map_flag{
|
||||
width:12px;
|
||||
height:12px;
|
||||
}
|
||||
|
||||
.world_map.map_detail .my_city{
|
||||
border:solid 1px red;
|
||||
outline:dotted 4px red;
|
||||
}
|
||||
|
||||
|
||||
.world_map.map_detail .city_filler{
|
||||
position:absolute;
|
||||
width:100%;
|
||||
height:100%;
|
||||
left:-1px;
|
||||
top:-1px;
|
||||
background:transparent;
|
||||
}
|
||||
|
||||
|
||||
.city_base{
|
||||
position:absolute;
|
||||
width:40px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.city_base .city_bg{
|
||||
z-index:1;
|
||||
position:absolute;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.city_base div{
|
||||
z-index:2;
|
||||
}
|
||||
|
||||
/*
|
||||
.map_detail .city_base.city_level_{0} .city_bg{
|
||||
//$img = loadImg('cast_{0}.gif');
|
||||
//$parent = cssSelect('.city_base');
|
||||
width: $img.width;
|
||||
height: $img.height;
|
||||
left: ($parent.width - $img.width)/2;
|
||||
top: ($parent.height - $img.height)/2;
|
||||
}
|
||||
*/
|
||||
|
||||
.map_detail .city_base.city_level_1 .city_bg{
|
||||
/*수*/
|
||||
width:48px;
|
||||
height:45px;
|
||||
background-size:48px 45px;
|
||||
left:-4px;
|
||||
top:-7.5px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_2 .city_bg{
|
||||
/*진*/
|
||||
width:60px;
|
||||
height:42px;
|
||||
background-size:60px 42px;
|
||||
left:-10px;
|
||||
top:-6px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_3 .city_bg{
|
||||
/*관*/
|
||||
width:42px;
|
||||
height:42px;
|
||||
background-size:42px 42px;
|
||||
left:-1px;
|
||||
top:-6px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_4 .city_bg{
|
||||
/*이*/
|
||||
width:60px;
|
||||
height:45px;
|
||||
background-size:60px 45px;
|
||||
left:-10px;
|
||||
top:-7.5px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_5 .city_bg{
|
||||
/*소*/
|
||||
width:72px;
|
||||
height:48px;
|
||||
background-size:72px 48px;
|
||||
left:-16px;
|
||||
top:-9px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_6 .city_bg{
|
||||
/*중*/
|
||||
width:78px;
|
||||
height:54px;
|
||||
background-size:78px 54px;
|
||||
left:-19px;
|
||||
top:-12px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_7 .city_bg{
|
||||
/*대*/
|
||||
width:84px;
|
||||
height:60px;
|
||||
background-size:84px 60px;
|
||||
left:-22px;
|
||||
top:-15px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_8 .city_bg{
|
||||
/*특*/
|
||||
width:96px;
|
||||
height:72px;
|
||||
background-size:96px 72px;
|
||||
left:-28px;
|
||||
top:-21px;
|
||||
}
|
||||
|
||||
.city_img{
|
||||
position:absolute;
|
||||
}
|
||||
|
||||
/*
|
||||
.map_detail .city_base.city_level_{0} .city_img{
|
||||
//$img = loadImg('cast_{0}.gif');
|
||||
//$parent = cssSelect('.city_base');
|
||||
width: $img.width;
|
||||
height: $img.height;
|
||||
left: ($parent.width - $img.width)/2;
|
||||
top: ($parent.height - $img.height)/2;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
.map_detail .city_base.city_level_1 .city_img{
|
||||
width:16px;
|
||||
height:15px;
|
||||
left:12px;
|
||||
top:7.5px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_2 .city_img{
|
||||
width:20px;
|
||||
height:14px;
|
||||
left:10px;
|
||||
top:8px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_3 .city_img{
|
||||
width:14px;
|
||||
height:14px;
|
||||
left:13px;
|
||||
top:8px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_4 .city_img{
|
||||
width:20px;
|
||||
height:15px;
|
||||
left:10px;
|
||||
top:7.5px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_5 .city_img{
|
||||
width:24px;
|
||||
height:16px;
|
||||
left:8px;
|
||||
top:7px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_6 .city_img{
|
||||
width:26px;
|
||||
height:18px;
|
||||
left:7px;
|
||||
top:6px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_7 .city_img{
|
||||
width:28px;
|
||||
height:20px;
|
||||
left:6px;
|
||||
top:5px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_8 .city_img{
|
||||
width:32px;
|
||||
height:24px;
|
||||
left:4px;
|
||||
top:3px;
|
||||
}
|
||||
|
||||
.map_detail .city_base .city_state{
|
||||
position: absolute;
|
||||
top:5px; /*TODO:도시 레벨 별로 다르게 위치 설정해볼 것*/
|
||||
left:0;
|
||||
}
|
||||
|
||||
.map_detail .city_base .city_flag{
|
||||
position: absolute;
|
||||
width:12px;
|
||||
height:12px;
|
||||
}
|
||||
|
||||
.map_detail .city_base .city_flag > img{
|
||||
width:12px;
|
||||
height:12px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_1 .city_flag{
|
||||
right:-8px;
|
||||
top:-4px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_2 .city_flag{
|
||||
right:-8px;
|
||||
top:-4px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_3 .city_flag{
|
||||
right:-8px;
|
||||
top:-4px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_4 .city_flag{
|
||||
right:-6px;
|
||||
top:-3px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_5 .city_flag{
|
||||
right:-6px;
|
||||
top:-4px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_6 .city_flag{
|
||||
right:-6px;
|
||||
top:-4px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_7 .city_flag{
|
||||
right:-6px;
|
||||
top:-4px;
|
||||
}
|
||||
|
||||
.map_detail .city_base.city_level_8 .city_flag{
|
||||
right:-6px;
|
||||
top:-3px;
|
||||
}
|
||||
|
||||
.map_detail .city_base .city_flag .city_capital{
|
||||
position: absolute;
|
||||
width:10px;
|
||||
height:10px;
|
||||
top:0;
|
||||
right:-1px;
|
||||
}
|
||||
|
||||
.map_detail .city_base .city_flag .city_capital > img{
|
||||
width:10px;
|
||||
height:10px;
|
||||
}
|
||||
|
||||
/* Basic */
|
||||
|
||||
.world_map.map_basic .city_filler{
|
||||
position:absolute;
|
||||
width:100%;
|
||||
height:100%;
|
||||
left:0;
|
||||
top:0;
|
||||
background:transparent;
|
||||
}
|
||||
|
||||
.world_map.map_basic .my_city{
|
||||
outline:dotted 4px red;
|
||||
}
|
||||
|
||||
.map_basic .city_base .city_img{
|
||||
background-color:white;
|
||||
}
|
||||
|
||||
.map_basic .city_base.city_level_1 .city_img{
|
||||
width:12px;
|
||||
height:12px;
|
||||
left:14px;
|
||||
top:9px;
|
||||
}
|
||||
|
||||
.map_basic .city_base.city_level_2 .city_img{
|
||||
width:12px;
|
||||
height:12px;
|
||||
left:14px;
|
||||
top:9px;
|
||||
}
|
||||
|
||||
.map_basic .city_base.city_level_3 .city_img{
|
||||
width:14px;
|
||||
height:14px;
|
||||
left:13px;
|
||||
top:8px;
|
||||
}
|
||||
|
||||
.map_basic .city_base.city_level_4 .city_img{
|
||||
width:16px;
|
||||
height:14px;
|
||||
left:12px;
|
||||
top:8px;
|
||||
}
|
||||
|
||||
.map_basic .city_base.city_level_5 .city_img{
|
||||
width:18px;
|
||||
height:16px;
|
||||
left:11px;
|
||||
top:7px;
|
||||
}
|
||||
|
||||
.map_basic .city_base.city_level_6 .city_img{
|
||||
width:20px;
|
||||
height:16px;
|
||||
left:10px;
|
||||
top:7px;
|
||||
}
|
||||
|
||||
.map_basic .city_base.city_level_7 .city_img{
|
||||
width:22px;
|
||||
height:18px;
|
||||
left:9px;
|
||||
top:6px;
|
||||
}
|
||||
|
||||
.map_basic .city_base.city_level_8 .city_img{
|
||||
width:24px;
|
||||
height:18px;
|
||||
left:8px;
|
||||
top:6px;
|
||||
}
|
||||
|
||||
|
||||
.map_basic .city_base .city_capital{
|
||||
position: absolute;
|
||||
width:5px;
|
||||
height:5px;
|
||||
top:-2px;
|
||||
right:-2px;
|
||||
background-color:yellow;
|
||||
}
|
||||
|
||||
.map_basic .city_base .city_state{
|
||||
position: absolute;
|
||||
width:10px;
|
||||
height:10px;
|
||||
top:-2px;
|
||||
left:-4px;
|
||||
background-color:white;
|
||||
}
|
||||
|
||||
.map_basic .city_base .city_state.city_state_war{
|
||||
background-color:red;
|
||||
}
|
||||
|
||||
.map_basic .city_base .city_state.city_state_bad{
|
||||
background-color:orange;
|
||||
}
|
||||
|
||||
.map_basic .city_base .city_state.city_state_good{
|
||||
background-color:blue;
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>JSON 지도</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../d_shared/common_path.js"></script>
|
||||
<script src="common.js"></script>
|
||||
<script src="base_map.js"></script>
|
||||
<script src="map.js"></script>
|
||||
<link href="../hwe/css/normalize.css" rel="stylesheet">
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="../hwe/css/common.css?180512" rel="stylesheet">
|
||||
<link href="map.css" rel="stylesheet">
|
||||
|
||||
<script>
|
||||
function getQueryVariable(variable) {
|
||||
var query = window.location.search.substring(1);
|
||||
var vars = query.split('&');
|
||||
for (var i = 0; i < vars.length; i++) {
|
||||
var pair = vars[i].split('=');
|
||||
if (decodeURIComponent(pair[0]) == variable) {
|
||||
return decodeURIComponent(pair[1]);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
var isDetailMap = getQueryVariable('detail');
|
||||
var clickableAll = false;
|
||||
|
||||
if(isDetailMap === null){
|
||||
isDetailMap = true;
|
||||
}
|
||||
else{
|
||||
isDetailMap = (isDetailMap != '0');
|
||||
}
|
||||
|
||||
$(function(){
|
||||
|
||||
function tmp(a){
|
||||
console.log(a.text);
|
||||
//return false;
|
||||
}
|
||||
reloadWorldMap(isDetailMap, clickableAll, tmp, 'goCity.php?id={0}');
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body style="background-color:black;">
|
||||
<div class="world_map">
|
||||
<div class="map_title">
|
||||
<span class="map_title_text">
|
||||
</span>
|
||||
</div>
|
||||
<div class="map_body">
|
||||
<div class="city_tooltip">
|
||||
<div class="city_name">
|
||||
|
||||
</div>
|
||||
<div class="nation_name">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
-462
@@ -1,462 +0,0 @@
|
||||
|
||||
String.prototype.format = function() {
|
||||
var args = arguments;
|
||||
return this.replace(/{(\d+)}/g, function(match, number) {
|
||||
return (typeof args[number] != 'undefined') ? args[number] : match;
|
||||
});
|
||||
};
|
||||
|
||||
function reloadWorldMap(isDetailMap, clickableAll, selectCallback, hrefTemplate){
|
||||
|
||||
if(!hrefTemplate){
|
||||
hrefTemplate = '#';
|
||||
}
|
||||
|
||||
var cityPosition = getCityPosition();
|
||||
|
||||
//OBJ : startYear, year, month, cityList, nationList, spyList, shownByGeneralList, myCity
|
||||
var $world_map = $('.world_map');
|
||||
|
||||
function setMapBackground(obj){
|
||||
var startYear = obj.startYear;
|
||||
var year = obj.year;
|
||||
var month = obj.month;
|
||||
|
||||
if(isDetailMap){
|
||||
$world_map.addClass('map_detail').removeClass('map_basic');
|
||||
}
|
||||
else{
|
||||
$world_map.addClass('map_basic').removeClass('map_detail');
|
||||
}
|
||||
|
||||
var $map_title = $('.map_title_text');
|
||||
if(year < startYear + 1){
|
||||
$map_title.css('color', 'magenta');
|
||||
}
|
||||
else if(year < startYear + 2){
|
||||
$map_title.css('color', 'orange');
|
||||
}
|
||||
else if(year < startYear + 3){
|
||||
$map_title.css('color', 'yellow');
|
||||
}
|
||||
|
||||
|
||||
$world_map.removeClass('map_string map_summer map_fall map_winter');
|
||||
if(month <= 3){
|
||||
$world_map.addClass('map_spring');
|
||||
}
|
||||
else if(month <= 6){
|
||||
$world_map.addClass('map_summer');
|
||||
}
|
||||
else if(month <= 6){
|
||||
$world_map.addClass('map_fall');
|
||||
}
|
||||
else{
|
||||
$world_map.addClass('map_winter');
|
||||
}
|
||||
|
||||
$map_title.html('{0}年 {1}月'.format(year, month));
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
function convertCityObjs(obj){
|
||||
//원본 Obj는 굉장히 간소하게 온다, Object 형태로 변환해서 사용한다.
|
||||
|
||||
function toCityObj(arr){
|
||||
return {
|
||||
"id":arr[0],
|
||||
"level":arr[1],
|
||||
"state":arr[2],
|
||||
"nationId":(arr[3]>0)?arr[3]:null,
|
||||
"region":arr[4],
|
||||
"supply":(arr[5]!=0)
|
||||
};
|
||||
}
|
||||
|
||||
function toNationObj(arr){
|
||||
return {
|
||||
"id":arr[0],
|
||||
"name":arr[1],
|
||||
"color":arr[2],
|
||||
"capital":arr[3]
|
||||
};
|
||||
}
|
||||
|
||||
function convertSpyList(arr){
|
||||
var result = [];
|
||||
arr.forEach(function(v){
|
||||
var cityId = (v / 10) | 0;
|
||||
var spy = v % 10;
|
||||
result[cityId] = spy;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
var cityList = obj.cityList.map(toCityObj);
|
||||
var nationList = obj.nationList.map(toNationObj);
|
||||
nationList = convertDictById(nationList); //array of object -> dict
|
||||
|
||||
var spyList = convertSpyList(obj.spyList);//Array -> Dict
|
||||
var shownByGeneralList = convertSet(obj.shownByGeneralList);//Array -> Set
|
||||
|
||||
var myCity = obj.myCity;
|
||||
var myNation = obj.myNation;
|
||||
|
||||
function formatCityInfo(city) {
|
||||
var region_str = '';
|
||||
var level_str = '';
|
||||
switch(city.region) {
|
||||
case 1: region_str = "【하북|"; break;
|
||||
case 2: region_str = "【중원|"; break;
|
||||
case 3: region_str = "【서북|"; break;
|
||||
case 4: region_str = "【서촉|"; break;
|
||||
case 5: region_str = "【남중|"; break;
|
||||
case 6: region_str = "【 초|"; break;
|
||||
case 7: region_str = "【오월|"; break;
|
||||
case 8: region_str = "【동이|"; break;
|
||||
}
|
||||
|
||||
switch(city.level) {
|
||||
case 1: level_str = "수】"; break;
|
||||
case 2: level_str = "진】"; break;
|
||||
case 3: level_str = "관】"; break;
|
||||
case 4: level_str = "이】"; break;
|
||||
case 5: level_str = "소】"; break;
|
||||
case 6: level_str = "중】"; break;
|
||||
case 7: level_str = "대】"; break;
|
||||
case 8: level_str = "특】"; break;
|
||||
}
|
||||
|
||||
city.text = region_str + level_str + city.name;
|
||||
city.region_str = region_str;
|
||||
city.level_str = level_str;
|
||||
|
||||
return city;
|
||||
}
|
||||
|
||||
function mergePositionInfo(city){
|
||||
var id = city.id;
|
||||
if(!(id in cityPosition)){
|
||||
return city;
|
||||
}
|
||||
var xy_val = cityPosition[id];
|
||||
city.name = xy_val[0];
|
||||
city.x = xy_val[1];
|
||||
city.y = xy_val[2];
|
||||
return city;
|
||||
}
|
||||
|
||||
function mergeNationInfo(city){
|
||||
//nationId 값으로 isCapital, color, nation을 통합
|
||||
|
||||
var nationId = city.nationId;
|
||||
if(nationId === null || !(nationId in nationList)){
|
||||
city.nationId = null;
|
||||
city.nation = null;
|
||||
city.color = null;
|
||||
city.isCapital = false;
|
||||
return city;
|
||||
}
|
||||
|
||||
var nationObj = nationList[nationId];
|
||||
city.nation = nationObj.name;
|
||||
city.color = nationObj.color;
|
||||
city.isCapital = (nationObj.capital == city.id);
|
||||
|
||||
return city;
|
||||
}
|
||||
|
||||
function mergeClickable(city){
|
||||
//clickable = (remainSpy << 3) | (ourCity << 2) | (shownByGeneral << 1) | clickableAll
|
||||
var id = city.id;
|
||||
var nationId = city.nationId;
|
||||
var clickable = 0;
|
||||
if(id in spyList){
|
||||
clickable |= spyList[id] << 3;
|
||||
}
|
||||
if(nationId == myNation){
|
||||
clickable |= 4;
|
||||
}
|
||||
if(shownByGeneralList.hasOwnProperty(id)){
|
||||
clickable |= 2;
|
||||
}
|
||||
if(clickableAll){
|
||||
clickable |= 1;
|
||||
}
|
||||
|
||||
|
||||
city.clickable = clickable;
|
||||
return city;
|
||||
}
|
||||
|
||||
cityList = cityList
|
||||
.map(mergePositionInfo)
|
||||
.map(mergeNationInfo)
|
||||
.map(mergeClickable)
|
||||
.map(formatCityInfo);
|
||||
|
||||
return {
|
||||
'cityList' : cityList,
|
||||
'myCity' : myCity
|
||||
};
|
||||
}
|
||||
|
||||
function drawDetailWorldMap(obj){
|
||||
|
||||
var $map_body = $('.world_map .map_body');
|
||||
|
||||
var cityList = obj.cityList;
|
||||
var myCity = obj.myCity;
|
||||
|
||||
cityList.forEach(function(city){
|
||||
var id = city.id;
|
||||
$('.city_base_{0}'.format(id)).detach();
|
||||
//이전 도시는 지운다.
|
||||
|
||||
var $cityObj = $('<div class="city_base city_base_{0}"></div>'.format(id));
|
||||
$cityObj.addClass('city_level_{0}'.format(city.level));
|
||||
$cityObj.data('obj', city).css({'left':city.x-20,'top':city.y-15});
|
||||
|
||||
if('color' in city && city.color !== null){
|
||||
var $bgObj = $('<div class="city_bg"></div>');
|
||||
$cityObj.append($bgObj);
|
||||
$bgObj.css({'background-image':'url({0}/b{1}.png)'.format(pathConfig.gameImage, convColorValue(city.color))});
|
||||
}
|
||||
|
||||
var $linkObj = $('<a class="city_link"></a>');
|
||||
$linkObj.data({'text':city.text,'nation':city.nation,'id':city.id});
|
||||
$cityObj.append($linkObj);
|
||||
|
||||
var $imgObj = $('<div class="city_img"><img src="{0}/cast_{1}.gif"><div class="city_filler"></div></div>'.format(pathConfig.gameImage, city.level));
|
||||
$linkObj.append($imgObj);
|
||||
|
||||
|
||||
|
||||
if(city.state > 0){
|
||||
var $stateObj = $('<div class="city_state"><img src="{0}/event{1}.gif"></div>'.format(pathConfig.gameImage, city.state));
|
||||
$linkObj.append($stateObj);
|
||||
}
|
||||
|
||||
if(city.nationId && city.nationId > 0){
|
||||
var flagType = city.supply?'f':'d';
|
||||
var $flagObj = $('<div class="city_flag"><img src="{0}/{1}{2}.gif"></div>'.format(pathConfig.gameImage, flagType, convColorValue(city.color)));
|
||||
if(city.isCapital){
|
||||
var $capitalObj = $('<div class="city_capital"><img src="{0}/event51.gif"></div>'.format(pathConfig.gameImage));
|
||||
$flagObj.append($capitalObj);
|
||||
}
|
||||
$imgObj.append($flagObj);
|
||||
}
|
||||
|
||||
|
||||
$map_body.append($cityObj);
|
||||
|
||||
|
||||
});
|
||||
|
||||
$world_map.find('.city_base_{0} .city_filler'.format(myCity)).addClass('my_city');
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
function drawBasicWorldMap(obj){
|
||||
|
||||
var $map_body = $('.world_map .map_body');
|
||||
|
||||
var cityList = obj.cityList;
|
||||
var myCity = obj.myCity;
|
||||
|
||||
cityList.forEach(function(city){
|
||||
var id = city.id;
|
||||
$('.city_base_{0}'.format(id)).detach();
|
||||
//이전 도시는 지운다.
|
||||
|
||||
var $cityObj = $('<div class="city_base city_base_{0}"></div>'.format(id));
|
||||
$cityObj.addClass('city_level_{0}'.format(city.level));
|
||||
$cityObj.data('obj', city).css({'left':city.x-20,'top':city.y-15});
|
||||
|
||||
var $linkObj = $('<a class="city_link"></a>');
|
||||
$linkObj.data({'text':city.text,'nation':city.nation,'id':city.id});
|
||||
$cityObj.append($linkObj);
|
||||
|
||||
var $imgObj = $('<div class="city_img"><div class="city_filler"></div></div>');
|
||||
if('color' in city && city.color !== null){
|
||||
$imgObj.css({'background-color':city.color});
|
||||
}
|
||||
$linkObj.append($imgObj);
|
||||
|
||||
if(city.state > 0){
|
||||
var state_text = 'wrong';
|
||||
if(city.state < 10){
|
||||
state_text = 'good';
|
||||
}
|
||||
else if(city.state < 40){
|
||||
state_text = 'bad';
|
||||
}
|
||||
else if(city.state < 50){
|
||||
state_text = 'war';
|
||||
}
|
||||
|
||||
var $stateObj = $('<div class="city_state city_state_{0}"></div>'.format(state_text));
|
||||
$imgObj.append($stateObj);
|
||||
}
|
||||
|
||||
//단순 표기에서는 깃발 여부가 없음
|
||||
if(city.isCapital){
|
||||
var $capitalObj = $('<div class="city_capital"></div>');
|
||||
$imgObj.append($capitalObj);
|
||||
}
|
||||
|
||||
|
||||
$map_body.append($cityObj);
|
||||
});
|
||||
|
||||
$world_map.find('.city_base_{0} .city_filler'.format(myCity)).addClass('my_city');
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
function setMouseWork(obj){
|
||||
var $tooltip = $('.world_map .city_tooltip');
|
||||
var $tooltip_city = $tooltip.find('.city_name');
|
||||
var $tooltip_nation = $tooltip.find('.nation_name');
|
||||
|
||||
var $objs = $('.world_map .city_link');
|
||||
|
||||
var $map_body = $('.world_map .map_body');
|
||||
|
||||
//터치스크린 탭
|
||||
|
||||
$objs.on('touchstart', function(e){
|
||||
var $this = $(this);
|
||||
|
||||
var touchMode = $this.data('touchMode');
|
||||
if($tooltip_city.data('target') != $this.data('id')){
|
||||
$this.data('touchMode', 1);
|
||||
}
|
||||
else if(touchMode === undefined){
|
||||
$this.data('touchMode', 1);
|
||||
}
|
||||
else{
|
||||
$this.data('touchMode', touchMode + 1);
|
||||
}
|
||||
$map_body.data('touchMode', 1);
|
||||
|
||||
$tooltip_city.data('target', $this.data('id'));
|
||||
|
||||
|
||||
});
|
||||
|
||||
$objs.on('touchend', function(e){
|
||||
var $this = $(this);
|
||||
var position = $this.parent().position();
|
||||
$tooltip_city.html($this.data('text'));
|
||||
$tooltip_nation.html($this.data('nation'));
|
||||
$tooltip.css({'top': position.top + 25, 'left': position.left + 35}).show();
|
||||
|
||||
var touchMode = $this.data('touchMode');
|
||||
if(touchMode <= 1){
|
||||
return false;
|
||||
}
|
||||
|
||||
//xxx: touchend 다음 click 이벤트가 갈 수도 있고, 안 갈 수도 있다.
|
||||
$this.data('touchMode', 0);
|
||||
});
|
||||
|
||||
$map_body.on('touchend',function(e){
|
||||
|
||||
//위의 touchend bind에 해당하지 않는 경우 -> 빈 지도 터치
|
||||
$tooltip.hide();
|
||||
});
|
||||
|
||||
//Mouse over 모드 작동
|
||||
|
||||
$map_body.on('mousemove', function(e){
|
||||
if($(this).data('touchMode')){
|
||||
return true;
|
||||
}
|
||||
|
||||
var parentOffset = $map_body.offset();
|
||||
var relX = e.pageX - parentOffset.left;
|
||||
var relY = e.pageY - parentOffset.top;
|
||||
|
||||
$tooltip.css({'top': relY + 10, 'left': relX + 10});
|
||||
});
|
||||
|
||||
$objs.on('mouseenter', function(e){
|
||||
if($map_body.data('touchMode')){
|
||||
return true;
|
||||
}
|
||||
|
||||
var $this = $(this);
|
||||
|
||||
$tooltip_city.data('target', $this.data('id'));
|
||||
$tooltip_city.html($this.data('text'));
|
||||
$tooltip_nation.html($this.data('nation'));
|
||||
|
||||
$tooltip.show();
|
||||
});
|
||||
|
||||
$objs.on('mouseleave', function(event){
|
||||
$tooltip.hide();
|
||||
});
|
||||
|
||||
$objs.on('click', function(e){
|
||||
//xxx: touchend 다음 click 이벤트가 갈 수도 있고, 안 갈 수도 있다.
|
||||
var touchMode = $(this).data('touchMode');
|
||||
if(touchMode === undefined){
|
||||
return;
|
||||
}
|
||||
|
||||
if(touchMode === 1){
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
function setCityClickable(obj){
|
||||
|
||||
obj.cityList.forEach(function(city){
|
||||
var $cityLink = $world_map.find('.city_base_{0} .city_link'.format(city.id));
|
||||
|
||||
if('clickable' in city && city.clickable > 0){
|
||||
$cityLink.attr('href',hrefTemplate.format(city.id));
|
||||
}
|
||||
|
||||
if(selectCallback){
|
||||
$cityLink.click(function(){
|
||||
return selectCallback(city);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
function saveCityInfo(obj){
|
||||
$world_map.data('cityInfo', obj);
|
||||
return obj;
|
||||
}
|
||||
|
||||
if(isDetailMap){
|
||||
$world_map.addClass('map_detail');
|
||||
}
|
||||
else{
|
||||
$world_map.removeClass('map_datail');
|
||||
}
|
||||
|
||||
//deferred mode of jQuery. != promise-then.
|
||||
$.getJSON( 'result.json', {})
|
||||
.then(setMapBackground)
|
||||
.then(convertCityObjs)
|
||||
.then(isDetailMap?drawDetailWorldMap:drawBasicWorldMap)
|
||||
.then(setMouseWork)
|
||||
.then(setCityClickable)
|
||||
.then(saveCityInfo);
|
||||
}
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
|
||||
{
|
||||
"startYear":215,
|
||||
"year":217,
|
||||
"month":10,
|
||||
"cityList":[
|
||||
[1, 8, 41, 1, 1, 1],
|
||||
[2, 8, 0, 2, 2, 0],
|
||||
[3, 8, 42, 3, 2, 1],
|
||||
[4, 8, 0, 0, 3, 1],
|
||||
[5, 8, 0, 0, 4, 1],
|
||||
[6, 8, 0, 0, 6, 1],
|
||||
[7, 8, 0, 0, 7, 1],
|
||||
[8, 7, 0, 2, 1, 1],
|
||||
[9, 7, 0, 3, 1, 1],
|
||||
[10, 7, 0, 0, 2, 1],
|
||||
[11, 7, 0, 0, 2, 1],
|
||||
[12, 7, 0, 0, 2, 1],
|
||||
[13, 7, 43, 1, 6, 1],
|
||||
[14, 7, 0, 1, 6, 0],
|
||||
[15, 7, 0, 1, 7, 1],
|
||||
[16, 7, 0, 1, 8, 1],
|
||||
[17, 6, 0, 0, 1, 1],
|
||||
[18, 6, 0, 0, 2, 1],
|
||||
[19, 6, 0, 1, 2, 1],
|
||||
[20, 6, 0, 2, 2, 0],
|
||||
[21, 6, 0, 3, 2, 1],
|
||||
[22, 6, 41, 0, 3, 1],
|
||||
[23, 6, 42, 0, 3, 1],
|
||||
[24, 6, 0, 0, 4, 1],
|
||||
[25, 6, 0, 0, 4, 1],
|
||||
[26, 6, 0, 0, 4, 1],
|
||||
[27, 6, 0, 0, 4, 1],
|
||||
[28, 6, 0, 0, 5, 1],
|
||||
[29, 6, 0, 0, 5, 1],
|
||||
[30, 6, 0, 0, 6, 1],
|
||||
[31, 6, 0, 0, 7, 1],
|
||||
[32, 6, 0, 0, 8, 1],
|
||||
[33, 6, 0, 0, 8, 1],
|
||||
[34, 6, 0, 0, 8, 1],
|
||||
[35, 5, 0, 0, 1, 1],
|
||||
[36, 5, 0, 0, 1, 1],
|
||||
[37, 5, 0, 1, 1, 1],
|
||||
[38, 5, 0, 2, 2, 1],
|
||||
[39, 5, 8, 3, 2, 1],
|
||||
[40, 5, 34, 0, 3, 1],
|
||||
[41, 5, 0, 0, 3, 1],
|
||||
[42, 5, 0, 0, 3, 1],
|
||||
[43, 5, 0, 0, 4, 1],
|
||||
[44, 5, 0, 0, 4, 1],
|
||||
[45, 5, 0, 0, 4, 1],
|
||||
[46, 5, 0, 0, 5, 1],
|
||||
[47, 5, 0, 0, 5, 1],
|
||||
[48, 5, 0, 0, 5, 1],
|
||||
[49, 5, 0, 0, 5, 1],
|
||||
[50, 5, 0, 0, 5, 1],
|
||||
[51, 5, 0, 0, 6, 1],
|
||||
[52, 5, 0, 0, 6, 1],
|
||||
[53, 5, 0, 0, 6, 1],
|
||||
[54, 5, 8, 0, 6, 1],
|
||||
[55, 5, 34, 0, 6, 1],
|
||||
[56, 5, 0, 0, 7, 1],
|
||||
[57, 5, 0, 0, 7, 1],
|
||||
[58, 5, 0, 0, 7, 1],
|
||||
[59, 5, 0, 0, 7, 1],
|
||||
[60, 5, 0, 0, 8, 1],
|
||||
[61, 5, 0, 0, 8, 1],
|
||||
[62, 5, 0, 0, 8, 1],
|
||||
[63, 4, 8, 0, 3, 1],
|
||||
[64, 4, 34, 0, 3, 1],
|
||||
[65, 4, 0, 1, 3, 0],
|
||||
[66, 4, 0, 2, 5, 1],
|
||||
[67, 4, 0, 3, 7, 1],
|
||||
[68, 4, 0, 0, 8, 1],
|
||||
[69, 4, 0, 0, 8, 1],
|
||||
[70, 3, 8, 0, 1, 1],
|
||||
[71, 3, 34, 1, 2, 1],
|
||||
[72, 3, 0, 2, 3, 1],
|
||||
[73, 3, 0, 3, 3, 1],
|
||||
[74, 3, 0, 0, 2, 1],
|
||||
[75, 3, 0, 0, 4, 1],
|
||||
[76, 3, 0, 0, 4, 1],
|
||||
[77, 2, 0, 0, 1, 1],
|
||||
[78, 2, 0, 0, 1, 1],
|
||||
[79, 2, 0, 0, 1, 1],
|
||||
[80, 2, 0, 2, 2, 1],
|
||||
[81, 2, 0, 2, 2, 0],
|
||||
[82, 2, 0, 2, 2, 1],
|
||||
[83, 2, 0, 2, 2, 1],
|
||||
[84, 2, 0, 0, 3, 1],
|
||||
[85, 2, 0, 0, 3, 1],
|
||||
[86, 2, 0, 3, 4, 1],
|
||||
[87, 3, 0, 3, 4, 1],
|
||||
[88, 2, 8, 3, 6, 1],
|
||||
[89, 2, 34, 3, 6, 1],
|
||||
[90, 2, 0, 0, 8, 1],
|
||||
[91, 1, 0, 0, 7, 1],
|
||||
[92, 1, 8, 1, 7, 1],
|
||||
[93, 1, 34, 2, 8, 1],
|
||||
[94, 1, 0, 3, 8, 1]
|
||||
],
|
||||
"nationList":[
|
||||
[1,"위","#0000ff",13],
|
||||
[2,"촉","#00ff00",72],
|
||||
[3,"오","#ff0000",89]
|
||||
],
|
||||
"spyList":[133, 892],
|
||||
"shownByGeneralList":[3, 65,33,73],
|
||||
"myCity":3,
|
||||
"myNation":2
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
require('../hwe/lib.php');
|
||||
|
||||
|
||||
$jsonPost = WebUtil::parseJsonPost();
|
||||
|
||||
Json::die([
|
||||
'result'=>true,
|
||||
'reason'=>'success',
|
||||
'msgID'=>1997
|
||||
]);
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"myNationID":1,
|
||||
"generalID":11,
|
||||
"isChief":true
|
||||
}
|
||||
@@ -1,421 +0,0 @@
|
||||
{
|
||||
"result":true,
|
||||
"server":"d1af658a-f094-4303-9496-9a27a8180b0b",
|
||||
"sequence":1122,
|
||||
"national":[
|
||||
{
|
||||
"id":1009,
|
||||
"time":"2018-02-10 22:05:09",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"icon":"pic_781.jpg",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"에붸붸붸9"
|
||||
},{
|
||||
"id":1008,
|
||||
"time":"2018-02-10 22:05:08",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":12,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"에붸붸붸8"
|
||||
},{
|
||||
"id":1007,
|
||||
"time":"2018-02-10 22:05:07",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":12,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"에붸붸붸7"
|
||||
},{
|
||||
"id":1006,
|
||||
"time":"2018-02-10 22:05:06",
|
||||
"isSender":true,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9000,
|
||||
"nation_id":0
|
||||
},
|
||||
"text":"국가->재야"
|
||||
},{
|
||||
"id":1005,
|
||||
"time":"2018-02-10 22:05:05",
|
||||
"isSender":true,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9002,
|
||||
"nation_id":2,
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000"
|
||||
},
|
||||
"text":"아국->타국"
|
||||
},{
|
||||
"id":1004,
|
||||
"time":"2018-02-10 22:05:04",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"타국->아국"
|
||||
},{
|
||||
"id":1003,
|
||||
"time":"2018-02-10 22:05:03",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":12,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"에붸붸붸3"
|
||||
},{
|
||||
"id":1002,
|
||||
"time":"2018-02-10 22:05:02",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":12,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"에붸붸붸2"
|
||||
},{
|
||||
"id":1001,
|
||||
"time":"2018-02-10 22:05:01",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":12,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"에붸붸붸1"
|
||||
},
|
||||
{
|
||||
"id":1000,
|
||||
"time":"2018-02-10 22:04:00",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"에붸붸붸0"
|
||||
}
|
||||
],
|
||||
"public":[
|
||||
{
|
||||
"id":1103,
|
||||
"time":"2018-02-10 22:05:02",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":41,
|
||||
"nation_id":3,
|
||||
"name":"Hide_Dz1",
|
||||
"nation":"연구소3",
|
||||
"color":"#000080"
|
||||
},
|
||||
"dest":{
|
||||
"id":9999
|
||||
},
|
||||
"text":"전메놀이3, 특수"
|
||||
},
|
||||
{
|
||||
"id":1102,
|
||||
"time":"2018-02-10 22:05:01",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":31,
|
||||
"nation_id":0,
|
||||
"name":"Hide_Dy"
|
||||
},
|
||||
"dest":{
|
||||
"id":9999
|
||||
},
|
||||
"text":"전메놀이2, 재야"
|
||||
},{
|
||||
"id":1011,
|
||||
"time":"2018-02-10 22:05:01",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000",
|
||||
"icon":"pic_781.jpg"
|
||||
},
|
||||
"dest":{
|
||||
"id":9999
|
||||
},
|
||||
"text":"최대한많은길이의텍스트를전메에넣어보려고시도하는중입니다글자수기준이니띄어쓰기나숫자알파벳이없도록해야꽉꽉밀어넣을수있습니다어디까지들어가려나얼마나더적어야하는거지잘모르겠다의외로칸이꽤길구나메시지"
|
||||
},{
|
||||
"id":1100,
|
||||
"time":"2018-02-10 22:05:00",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9999
|
||||
},
|
||||
"text":"전메놀이0"
|
||||
}
|
||||
],
|
||||
"private":[
|
||||
{
|
||||
"id":1206,
|
||||
"time":"2018-02-10 22:04:04",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000"
|
||||
},
|
||||
"dest":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"연구소2로 망명 권유 서신2",
|
||||
"option":{
|
||||
"action":"scout"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":1205,
|
||||
"time":"2018-02-10 22:04:04",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000"
|
||||
},
|
||||
"dest":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"연구소2로 망명 권유 서신",
|
||||
"option":{
|
||||
"action":"scout"
|
||||
}
|
||||
},{
|
||||
"id":1204,
|
||||
"time":"2018-02-10 22:04:04",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":31,
|
||||
"nation_id":0,
|
||||
"name":"Hide_Dy"
|
||||
},
|
||||
"dest":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"재야로부터 갠메(수신)"
|
||||
},{
|
||||
"id":1203,
|
||||
"time":"2018-02-10 22:04:03",
|
||||
"isSender":true,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000"
|
||||
},
|
||||
"text":"타국 갠메(송신)"
|
||||
},{
|
||||
"id":1202,
|
||||
"time":"2018-02-10 22:04:02",
|
||||
"isSender":true,
|
||||
"src":{
|
||||
"id":12,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"아국 갠메(수신)"
|
||||
},{
|
||||
"id":1201,
|
||||
"time":"2018-02-10 22:04:01",
|
||||
"isSender":true,
|
||||
"src":{
|
||||
"id":12,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"아국 갠메(수신)"
|
||||
},{
|
||||
"id":1200,
|
||||
"time":"2018-02-10 22:04:00",
|
||||
"isSender":true,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":12,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D2",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"아국 갠메"
|
||||
}
|
||||
],
|
||||
"diplomacy":[
|
||||
{
|
||||
"id":1300,
|
||||
"time":"2018-02-10 22:05:04",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000",
|
||||
"icon":"pic_1.jpg"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"타국->아국",
|
||||
"option":{
|
||||
"result":false,
|
||||
"until":[210, 9],
|
||||
"action":"noAggression",
|
||||
"allyYear":20,
|
||||
"allyText":"메롱"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
require('../hwe/lib.php');
|
||||
|
||||
/*
|
||||
원래대로라면 json을 돌려주는게 맞지만
|
||||
refresh를 반영해야하므로 php로 중계해서 반환함!
|
||||
*/
|
||||
|
||||
function relayJson($filepath, $noCache = true, $die = true){
|
||||
//NOTE: $filepath 경로 주의
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
if($noCache){
|
||||
header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', FALSE);
|
||||
header('Pragma: no-cache');
|
||||
}
|
||||
|
||||
$json = Json::decode(file_get_contents($filepath));
|
||||
echo Json::encode($json);
|
||||
|
||||
if($die){
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
$jsonPost = WebUtil::parseJsonPost();
|
||||
|
||||
$reqSequence = Util::toInt(Util::array_get($jsonPost['sequence'], 0), true);
|
||||
|
||||
if($reqSequence === null){
|
||||
$reqSequence = 0;
|
||||
}
|
||||
|
||||
//서버가 돌아가는게 아니니까 흉내만 내자.
|
||||
switch($reqSequence){
|
||||
case 0:
|
||||
relayJson('fresh_result.json');
|
||||
break;
|
||||
case 1122:
|
||||
relayJson('update_private_result.json');
|
||||
break;
|
||||
case 1366:
|
||||
relayJson('update_national_result.json');
|
||||
break;
|
||||
case 1811:
|
||||
relayJson('update_public_result.json');
|
||||
break;
|
||||
}
|
||||
|
||||
//???
|
||||
relayJson('fresh_result.json');
|
||||
-127
@@ -1,127 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
/*임시용 */
|
||||
|
||||
#container{
|
||||
width:1000px;
|
||||
margin:auto;
|
||||
font-size:13px;
|
||||
}
|
||||
/*임시용 끝*/
|
||||
|
||||
#message_board section{
|
||||
width:498px;
|
||||
}
|
||||
|
||||
.msg_plate{
|
||||
width:100%;
|
||||
border:solid 1px;
|
||||
height:64px;
|
||||
font-size:12px;
|
||||
word-break:break-all;
|
||||
color:white;
|
||||
}
|
||||
|
||||
.msg_plate_private{
|
||||
background-color:#5d1e1a;
|
||||
}
|
||||
|
||||
.msg_plate_public{
|
||||
background-color:#141c65;
|
||||
|
||||
}
|
||||
|
||||
.msg_plate_national, .msg_plate_diplomacy{
|
||||
background-color:#00582c;
|
||||
|
||||
}
|
||||
|
||||
.msg_icon{
|
||||
float:left;
|
||||
width:64px;
|
||||
height:64px;
|
||||
border-right:solid 1px;
|
||||
}
|
||||
|
||||
.msg_time{
|
||||
font-size:0.75em;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
.msg_header{
|
||||
font-weight: bold;
|
||||
margin-bottom:3px;
|
||||
color:white;
|
||||
}
|
||||
|
||||
#msg_input{
|
||||
color:white;
|
||||
background-color:black;
|
||||
font-size:12px;
|
||||
width:720px;
|
||||
height:15px;
|
||||
}
|
||||
|
||||
#mailbox_list{
|
||||
color:white;
|
||||
background-color:black;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
.board_header{
|
||||
color:white;
|
||||
border:solid 1px;
|
||||
}
|
||||
|
||||
.board_side{
|
||||
width:50%;
|
||||
float:left;
|
||||
border-left:solid 1px;
|
||||
border-right:solid 1px;
|
||||
}
|
||||
|
||||
.msg_body{
|
||||
padding-left:64px;
|
||||
}
|
||||
|
||||
.msg_target{
|
||||
margin:2px 2px 0 2px;
|
||||
padding:2px 3px;
|
||||
display:inline-block;
|
||||
box-shadow: 2px 2px black;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/*
|
||||
.public_message .msg_target{
|
||||
box-shadow: 2px 2px darkslategrey;
|
||||
}
|
||||
*/
|
||||
|
||||
.msg_target.msg_bright{
|
||||
color:black;
|
||||
}
|
||||
|
||||
.msg_target.msg_dark{
|
||||
color:white;
|
||||
}
|
||||
|
||||
.msg_from_to{
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
.msg_content{
|
||||
margin-left:10px;
|
||||
margin-right:5px;
|
||||
}
|
||||
|
||||
.msg_prompt{
|
||||
text-align:right;
|
||||
margin-top:5px;
|
||||
margin-right:5px;
|
||||
}
|
||||
|
||||
#mailbox_list option{
|
||||
color:white;
|
||||
background-color:black;
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>JSON 메시지</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<script src="../e_lib/jquery-3.2.1.min.js"></script>
|
||||
<script src="../d_shared/common_path.js"></script>
|
||||
<script src="../hwe/js/common.js"></script>
|
||||
<script src="msg.js"></script>
|
||||
<link href="../hwe/css/normalize.css" rel="stylesheet">
|
||||
<link href="../d_shared/common.css" rel="stylesheet">
|
||||
<link href="../hwe/css/common.css?180512" rel="stylesheet">
|
||||
<link href="msg.css" rel="stylesheet">
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body style="background-color: black;">
|
||||
<div id="container">
|
||||
<div class="message_input_form bg0">
|
||||
<select id="mailbox_list" size="1">
|
||||
|
||||
<select name="genlist" size="1" style="color:white;background-color:black;font-size:13">
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
<input type="textarea" id="msg_input" maxlength="99">
|
||||
<button id="msg_submit">서신전달&갱신</button>
|
||||
</div>
|
||||
<div id="message_board">
|
||||
<div class="board_side">
|
||||
<div class="board_header bg0">전체 메시지(최고99자)</div>
|
||||
<section class="public_message">
|
||||
|
||||
</section>
|
||||
<div class="board_header bg0">개인 메시지(최고99자)</div>
|
||||
<section class="private_message">
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<div class="board_side">
|
||||
<section class="diplomacy_message">
|
||||
|
||||
</section>
|
||||
<div class="board_header bg0">국가 메시지(최고99자)</div>
|
||||
<section class="national_message">
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
-394
@@ -1,394 +0,0 @@
|
||||
|
||||
|
||||
function hexToRgb(hex) {
|
||||
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
||||
return result ? {
|
||||
r: parseInt(result[1], 16),
|
||||
g: parseInt(result[2], 16),
|
||||
b: parseInt(result[3], 16)
|
||||
} : null;
|
||||
}
|
||||
|
||||
|
||||
function isBrightColor(color){
|
||||
color = hexToRgb(color);
|
||||
if ((color.r*0.299 + color.g*0.587 + color.b*0.114) > 186){
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var messageTemplate = '';
|
||||
var myGeneralID=null;
|
||||
var isChief = false;
|
||||
var sequence =null;
|
||||
var myNation = null;
|
||||
var lastMsg = null;
|
||||
|
||||
var generalList = {};
|
||||
|
||||
function responseMessage(msgID, response){
|
||||
$.ajax({
|
||||
url: 'prompt_dummy.php',
|
||||
type: 'post',
|
||||
dataType:'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify({
|
||||
msgID:msgID,
|
||||
response:response
|
||||
})
|
||||
}).then(refreshMsg);
|
||||
}
|
||||
|
||||
function refreshMsg(){
|
||||
return redrawMsg(fetchMsg());
|
||||
}
|
||||
|
||||
function fetchMsg(){
|
||||
return $.ajax({
|
||||
url: 'json_result.php',
|
||||
type: 'post',
|
||||
dataType:'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify({
|
||||
sequence:sequence
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
function redrawMsg(deferred){
|
||||
function registerSequence(obj){
|
||||
if(!obj.result){
|
||||
deferred.reject();
|
||||
return;
|
||||
}
|
||||
sequence = obj.sequence;
|
||||
return obj;
|
||||
}
|
||||
|
||||
function refineMessageObjs(obj){
|
||||
var msgList = [obj.public, obj.private, obj.diplomacy, obj.national];
|
||||
$.each(msgList, function(){
|
||||
if(!this){
|
||||
return true;
|
||||
}
|
||||
|
||||
$.each(this, function(){
|
||||
var msg = this;
|
||||
if(!msg.src.nation){
|
||||
msg.src.nation = '재야';
|
||||
msg.src.color = '#000000';
|
||||
}
|
||||
|
||||
if(!msg.dest.nation){
|
||||
msg.dest.nation = '재야';
|
||||
msg.dest.color = '#000000';
|
||||
}
|
||||
|
||||
msg.src.colorType = isBrightColor(msg.src.color)?'bright':'dark';
|
||||
msg.dest.colorType = isBrightColor(msg.dest.color)?'bright':'dark';
|
||||
});
|
||||
});
|
||||
return obj;
|
||||
}
|
||||
|
||||
function printTemplate(obj){
|
||||
var printList = [
|
||||
[obj.public, $('#message_board .public_message'), 'public'],
|
||||
[obj.private, $('#message_board .private_message'), 'private'],
|
||||
[obj.diplomacy, $('#message_board .diplomacy_message'), 'diplomacy'],
|
||||
[obj.national, $('#message_board .national_message'), 'national'],
|
||||
];
|
||||
|
||||
$.each(printList, function(){
|
||||
var msgSource = this[0];
|
||||
var $msgBoard = this[1];
|
||||
var msgType = this[2];
|
||||
|
||||
if(!msgSource || $msgBoard.length == 0){
|
||||
console.log('No Items', msgSource, $msgBoard);
|
||||
return true;
|
||||
}
|
||||
|
||||
if(msgType == 'diplomacy'){
|
||||
//외교는 항상 새로 그린다
|
||||
$msgBoard.empty();
|
||||
}
|
||||
|
||||
|
||||
var needRefreshLastContact = (msgType == 'private');
|
||||
|
||||
//list의 맨 앞이 가장 최신 메시지임.
|
||||
var $msgs = msgSource.map(function(msg){
|
||||
|
||||
var contactTarget = (msg.src.id != myGeneralID) ? msg.src.id : msg.dest.id;
|
||||
if(needRefreshLastContact && contactTarget != myGeneralID)
|
||||
{
|
||||
needRefreshLastContact = false;
|
||||
$('#last_contact').val(contactTarget).html(generalList[contactTarget].textName).show();
|
||||
}
|
||||
|
||||
msg.msgType = msgType;
|
||||
msg.defaultIcon = pathConfig.sharedIcon+'/default.jpg';
|
||||
var msgHtml = TemplateEngine(messageTemplate, msg);
|
||||
|
||||
|
||||
//만약 이전 메시지와 같은 id가 온 경우 덮어씌운다.
|
||||
//NOTE:현 프로세스 상에서는 같은 id가 와선 안된다.
|
||||
var $existMsg = $('#msg_{0}'.format(msg.id));
|
||||
var $msg = $(msgHtml);
|
||||
if($existMsg.length){
|
||||
console.log('메시지 충돌', $msg, $existMsg);
|
||||
$existMsg.html($msg.html());
|
||||
$msg = $existMsg;
|
||||
}
|
||||
|
||||
if(msg.option && msg.option.parent){
|
||||
//parent는 삭제.
|
||||
$('#msg_{0}'.format(msg.option.parent)).detach();
|
||||
}
|
||||
|
||||
$msg.find('button.prompt_yes').click(function(){
|
||||
if(!confirm("수락하시겠습니까?")){
|
||||
return false;
|
||||
}
|
||||
responseMessage(msg.id, true);
|
||||
|
||||
});
|
||||
|
||||
$msg.find('button.prompt_no').click(function(){
|
||||
if(!confirm("거절하시겠습니까?")){
|
||||
return false;
|
||||
}
|
||||
responseMessage(msg.id, false);
|
||||
});
|
||||
|
||||
if($existMsg.length){
|
||||
return null;
|
||||
}
|
||||
else{
|
||||
return $msg;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$msgBoard.prepend($msgs);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
deferred
|
||||
.then(registerSequence)
|
||||
.then(refineMessageObjs)
|
||||
.then(printTemplate);
|
||||
}
|
||||
|
||||
function refreshMailboxList(obj){
|
||||
//$.ajax는 data, textStatus, jqXHR를 가진다
|
||||
//when으로 묶었으므로 data를 풀어야함.
|
||||
obj = obj[0];
|
||||
|
||||
|
||||
var $mailboxList = $('#mailbox_list');
|
||||
|
||||
$mailboxList.change(function(){
|
||||
console.log($(this).val());
|
||||
})
|
||||
|
||||
var oldSelected = $mailboxList.val();
|
||||
|
||||
$mailboxList.empty();
|
||||
|
||||
var $lastContact = $('#last_contact');
|
||||
var lastContact = null;
|
||||
if($lastContact.length > 0 && $lastContact.val()>=0){
|
||||
lastContact = {
|
||||
id:$lastContact.val(),
|
||||
textName:$lastContact.html()
|
||||
};
|
||||
$lastContact = null;
|
||||
}
|
||||
|
||||
generalList = {};
|
||||
|
||||
//TODO:수뇌인 경우 각국에 대해 외교 국메를 넣을 수 있어야함.
|
||||
|
||||
$.each(obj.nation, function(){
|
||||
var nation = this;
|
||||
//console.log(nation);
|
||||
var $optgroup = $('<optgroup label="{0}"></optgroup>'.format(nation.nation));
|
||||
$optgroup.css('background-color', nation.color);
|
||||
|
||||
if(myNation.mailbox == nation.mailbox){
|
||||
myNation.color = nation.color;
|
||||
}
|
||||
|
||||
if(isBrightColor(nation.color)){
|
||||
$optgroup.css('color', 'black');
|
||||
}
|
||||
else{
|
||||
$optgroup.css('color', 'white');
|
||||
}
|
||||
|
||||
$.each(nation.general, function(){
|
||||
var generalID = this[0];
|
||||
var generalName = this[1];
|
||||
var isRuler = this.length>2;
|
||||
|
||||
|
||||
|
||||
if(generalID == myGeneralID){
|
||||
return true;
|
||||
}
|
||||
|
||||
var textName = generalName;
|
||||
if(isRuler){
|
||||
textName = '*{0}*'.format(textName);
|
||||
}
|
||||
|
||||
generalList[generalID] = {
|
||||
id:generalID,
|
||||
name:generalName,
|
||||
textName:textName,
|
||||
isRuler:isRuler,
|
||||
nation:nation.nationID,
|
||||
color:nation.color
|
||||
};
|
||||
|
||||
var $item = $('<option value="{0}">{1}</option>'.format(generalID, textName));
|
||||
$optgroup.append($item);
|
||||
});
|
||||
|
||||
$mailboxList.append($optgroup);
|
||||
});
|
||||
|
||||
var $favorite = $('<optgroup label="즐겨찾기"></optgroup>');
|
||||
|
||||
//아국메시지, 전체메시지
|
||||
var $ourCountry = $('<option value="{0}">【 아국 메세지 】</option>'.format(myNation.mailbox))
|
||||
.css({'background-color':myNation.color, 'color':isBrightColor(myNation.color)?'black':'white'});
|
||||
var $toPublic = $('<option value="9999">【 전체 메세지 】</option>');
|
||||
$favorite.append($ourCountry);
|
||||
$favorite.append($toPublic);
|
||||
|
||||
$lastContact = $('<option id="last_contact" value="-1"></option>').hide();
|
||||
if(lastContact){
|
||||
$lastContact.show().val(lastContact.id).html(lastContact.textName);
|
||||
}
|
||||
$favorite.append($lastContact);
|
||||
//TODO:운영자를 추가하는 코드도 넣을 것.
|
||||
|
||||
$mailboxList.prepend($favorite);
|
||||
|
||||
if(!oldSelected){
|
||||
$mailboxList.val(myNation.mailbox);
|
||||
}
|
||||
else{
|
||||
$mailboxList.val(oldSelected);
|
||||
}
|
||||
}
|
||||
|
||||
function registerGlobal(basicInfo){
|
||||
|
||||
myNation = {
|
||||
'id':basicInfo.myNationID,
|
||||
'mailbox':basicInfo.myNationID+9000,
|
||||
'color':'#000000',
|
||||
'nation':'재야'
|
||||
};
|
||||
lastMsg = {
|
||||
id : basicInfo.lastContact
|
||||
};
|
||||
myGeneralID = basicInfo.generalID;
|
||||
isChief = basicInfo.isChief;
|
||||
}
|
||||
|
||||
function activateMessageForm(){
|
||||
var $msgInput = $('#msg_input');
|
||||
var $msgSubmit = $('#msg_submit');
|
||||
var $mailboxList = $('#mailbox_list');
|
||||
|
||||
$msgInput.keypress(function (e) {
|
||||
var code = (e.keyCode ? e.keyCode : e.which);
|
||||
if (code == 13) {
|
||||
$msgSubmit.trigger('click');
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
$msgSubmit.click(function(){
|
||||
|
||||
var text = $.trim($msgInput.val());
|
||||
$msgInput.val('').focus();
|
||||
|
||||
var targetMailbox = $mailboxList.val();
|
||||
console.log(targetMailbox, text);
|
||||
|
||||
var deferred;
|
||||
|
||||
if(text){
|
||||
deferred = $.ajax({
|
||||
url:'add_msg_dummy.php',
|
||||
type: 'post',
|
||||
dataType:'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify({
|
||||
mailbox:targetMailbox,
|
||||
text:text
|
||||
})
|
||||
});
|
||||
}
|
||||
else{
|
||||
deferred = $.Deferred();
|
||||
deferred.resolve({
|
||||
result:true,
|
||||
reason:'no_text'
|
||||
});
|
||||
}
|
||||
|
||||
deferred.then(refreshMsg);
|
||||
});
|
||||
}
|
||||
|
||||
jQuery(function($){
|
||||
|
||||
//tmp_template.html은 추후 msg.js에 통합될 수 있음
|
||||
var getTemplate = $.get('tmp_template.html',function(obj){
|
||||
messageTemplate = obj;
|
||||
});
|
||||
|
||||
//basic_info.json은 세션값에 따라 동적으로 바뀌는 데이터임.
|
||||
var basicInfo = $.ajax({
|
||||
url:'basic_info.json',
|
||||
type: 'post',
|
||||
dataType:'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify({
|
||||
|
||||
})
|
||||
}).then(registerGlobal);
|
||||
|
||||
//sender_list.json 은 서버측에선 캐시 가능한 데이터임.
|
||||
var senderList = $.ajax({
|
||||
url: 'sender_list.json',
|
||||
type: 'post',
|
||||
dataType:'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify({
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
var MessageList = fetchMsg();
|
||||
|
||||
senderList = $.when(senderList, basicInfo)
|
||||
.then(refreshMailboxList)
|
||||
.then(activateMessageForm);
|
||||
|
||||
$.when(MessageList, getTemplate, basicInfo, senderList)
|
||||
.then(function(){
|
||||
redrawMsg(MessageList);
|
||||
});
|
||||
});
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.8 KiB |
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
require('../hwe/lib.php');
|
||||
|
||||
|
||||
$jsonPost = WebUtil::parseJsonPost();
|
||||
|
||||
Json::die([
|
||||
'result'=>true,
|
||||
'reason'=>'success'
|
||||
]);
|
||||
@@ -1,34 +0,0 @@
|
||||
{
|
||||
"nation":[
|
||||
{
|
||||
"nationID":0,
|
||||
"mailbox":9000,
|
||||
"nation":"재야",
|
||||
"color":"#000000",
|
||||
"general":[
|
||||
[31, "Hide_Dy"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"nationID":1,
|
||||
"mailbox":9001,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700",
|
||||
"general":[
|
||||
[11,"HideD", 1],
|
||||
[12,"HideD2"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"nationID":2,
|
||||
"mailbox":9002,
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000",
|
||||
"general":[
|
||||
[21,"Hide_Dx2", 1],
|
||||
[22,"Hide_Dx3"]
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
<div
|
||||
class="msg_plate msg_plate_<%msgType%>"
|
||||
id="msg_<%id%>"
|
||||
data-id="<%id%>"
|
||||
>
|
||||
<div class="msg_icon">
|
||||
<%if(src.icon) { %>
|
||||
<img width='64' height='64' src="<%encodeURI(src.icon)%>">
|
||||
<%} else {%>
|
||||
<img width='64' height='64' src="<%encodeURI(defaultIcon)%>">
|
||||
<%}%>
|
||||
</div>
|
||||
<div class="msg_body">
|
||||
<div class="msg_header">
|
||||
<%if(msgType == 'private') {%>
|
||||
<span class="msg_target msg_<%src.colorType%>" style="background-color:<%src.color%>;"><%e(src.name)%>:<%e(src.nation)%></span
|
||||
><span class="msg_from_to">▶</span
|
||||
><span class="msg_target msg_<%dest.colorType%>" style="background-color:<%dest.color%>;"><%e(dest.name)%>:<%e(dest.nation)%></span>
|
||||
<%} else if(msgType == 'national' && src.nation_id == dest.nation_id){%>
|
||||
<span class="msg_target msg_<%src.colorType%>" style="background-color:<%src.color%>;"><%e(src.name)%>:<%e(src.nation)%></span>
|
||||
<%} else if(msgType == 'national' || msgType == 'diplomacy'){%>
|
||||
<span class="msg_target msg_<%src.colorType%>" style="background-color:<%src.color%>;"><%e(src.name)%>:<%e(src.nation)%></span
|
||||
><span class="msg_from_to">▶</span
|
||||
><span class="msg_target msg_<%dest.colorType%>" style="background-color:<%dest.color%>;"><%e(dest.nation)%></span>
|
||||
<%} else {%>
|
||||
<span class="msg_target msg_<%src.colorType%>" style="background-color:<%src.color%>;"><%e(src.name)%>:<%e(src.nation)%></span>
|
||||
<%} %>
|
||||
<span class="msg_time"><<%e(time)%>></span>
|
||||
</div>
|
||||
|
||||
<div class="msg_content"><%e(text)%></div>
|
||||
<%if(this.option && this.option.action) {%>
|
||||
<div class="msg_prompt">
|
||||
<button class="prompt_yes btn_prompt">수락</button> <button class="prompt_no btn_prompt">거절</button>
|
||||
</div>
|
||||
<%} %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,60 +0,0 @@
|
||||
{
|
||||
"result":true,
|
||||
"server":"d1af658a-f094-4303-9496-9a27a8180b0b",
|
||||
"sequence":1811,
|
||||
"national":[
|
||||
{
|
||||
"id":1211,
|
||||
"time":"2018-02-10 22:05:10",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"icon":"pic_781.jpg",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"외교를 거절해버렸당",
|
||||
"opt":{
|
||||
"parent":1209
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"id":1210,
|
||||
"time":"2018-02-10 22:05:09",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"icon":"pic_781.jpg",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"새롭게 추가된 나의 텍스트!"
|
||||
}
|
||||
],
|
||||
"public":[
|
||||
|
||||
],
|
||||
"private":[
|
||||
|
||||
],
|
||||
"diplomacy":[
|
||||
|
||||
]
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
{
|
||||
"result":true,
|
||||
"server":"d1af658a-f094-4303-9496-9a27a8180b0b",
|
||||
"sequence":1366,
|
||||
"national":[
|
||||
|
||||
],
|
||||
"public":[
|
||||
|
||||
],
|
||||
"private":[
|
||||
{
|
||||
"id":1208,
|
||||
"time":"2018-02-10 22:06:00",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000"
|
||||
},
|
||||
"dest":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"연구소2로 망명 권유 서신을 거절",
|
||||
"option":{
|
||||
"parent":1205
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":1207,
|
||||
"time":"2018-02-10 22:04:04",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000"
|
||||
},
|
||||
"dest":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"추가해라 더 많은 갠메!"
|
||||
}
|
||||
],
|
||||
"diplomacy":[
|
||||
{
|
||||
"id":1300,
|
||||
"time":"2018-02-10 22:05:04",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":21,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx2",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000",
|
||||
"icon":"pic_1.jpg"
|
||||
},
|
||||
"dest":{
|
||||
"id":9001,
|
||||
"nation_id":1,
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"타국->아국",
|
||||
"option":{
|
||||
"used":false,
|
||||
"result":false,
|
||||
"until":[210, 9],
|
||||
"action":"noAggression",
|
||||
"allyYear":20,
|
||||
"allyText":"메롱"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
{
|
||||
"result":true,
|
||||
"server":"d1af658a-f094-4303-9496-9a27a8180b0b",
|
||||
"sequence":1997,
|
||||
"national":[
|
||||
|
||||
],
|
||||
"public":[
|
||||
{
|
||||
"id":1106,
|
||||
"time":"2018-02-10 22:05:02",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":41,
|
||||
"nation_id":3,
|
||||
"name":"Hide_Dz1",
|
||||
"nation":"연구소3",
|
||||
"color":"#000080"
|
||||
},
|
||||
"dest":{
|
||||
"id":9999
|
||||
},
|
||||
"text":"나는 전메를 입력했당"
|
||||
}
|
||||
],
|
||||
"private":[
|
||||
{
|
||||
"id":1212,
|
||||
"time":"2018-02-10 22:04:04",
|
||||
"isSender":false,
|
||||
"src":{
|
||||
"id":22,
|
||||
"nation_id":2,
|
||||
"name":"Hide_Dx3",
|
||||
"nation":"연구소2",
|
||||
"color":"#ff0000"
|
||||
},
|
||||
"dest":{
|
||||
"id":11,
|
||||
"nation_id":1,
|
||||
"name":"Hide_D",
|
||||
"nation":"연구소",
|
||||
"color":"#ffd700"
|
||||
},
|
||||
"text":"추가해라 더 많은 갠메!"
|
||||
}
|
||||
],
|
||||
"diplomacy":[
|
||||
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user