Commit 6cf9efba by Kang Donghun

Merge branch 'feature/1.0_check_web_dev' into feature/1.0_check_web_dev_kdh_2

# Conflicts:
#	abweb/common/js/constant.js
#	abweb/html/accountSetting.html
#	abweb/html/dashboard.html
#	abweb/html/index.html
#	abweb/html/pdfPrint.html
#	abweb/html/pickup.html
#	abweb/html/pushMessageDetail.html
#	abweb/html/pushMessageList.html
#	abweb/html/reportList.html
#	abweb/html/sendMessage.html
#	abweb/js/reportList/reportList.js
parents 5176e72b 6e790414
@charset "UTF-8";
footer img {
width: 30px;
}
html,
body {
height: 100%;
background-color: #EBF4FB;
}
body {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
}
.form-login {
width: 100%;
max-width: 420px;
padding: 25px 30px;
margin: auto;
}
\ No newline at end of file
@charset "UTF-8";
.tb-wrap {
border-radius: 4px;
border: 3px solid #EBF4FB;
}
.ad-area{
top: 0;
right: 20px;
}
canvas {
width: 80%;
height: 200px;
}
.tb-item {
counter-increment: item;
margin-bottom: 10px;
}
.tb-item:not(:last-child) {
padding-bottom: 20px;
border-bottom: 3px solid #EBF4FB;
}
.tb-item .num:after,
.tb-item label:after {
content: counters(item,"");
}
/* 工程一覧 */
#process-list h1{
font-size: 20px;
}
#process-list .ar-box{
min-height: 50px;
font-weight: normal;
}
#process-list .sp-down img{
width: 35px;
}
/* フォーム開閉ボタン */
.ac-tb-form{
display: block;
padding: 5px 0 5px 35px;
text-align: center;
color: #0053f0!important;
font-weight: 600;
text-decoration: none!important;
border-radius: 5px;
font-size: 14px;
}
.ac-tb-form:after {
content: "";
position: absolute;
left: 15px;
transition: all .2s ease-in-out;
display: block;
width: 8px;
height: 8px;
border-top: 2px solid #0053f0;
border-right: 2px solid #0053f0;
transform: rotate(-45deg);
top: 45%;
}
.ac-tb-form.hide:after {
transform: rotate(135deg);
top: 32%;
}
.tb-item.visually-hidden {
transition: 0.5s;
}
.visually-hidden {
position: fixed !important;
top: 0px !important;
left: 0px !important;
width: 0px !important;
height: 0px !important;
opacity: 0 !important;
overflow: hidden !important;
border: none !important;
margin: 0 !important;
padding: 0 !important;
display: block !important;
visibility: visible !important;
}
.num {
font-weight: 600;
}
i.fa-minus, i.fa-plus {
color: #212529;
}
.fa-plus:active{
transform: rotate(180deg);
transition: .5s;
}
#top nav.search {
margin-bottom: 1rem;
}
.form-group {
margin-bottom: 0;
}
/* アイコン */
.icon{
width: 22px;
max-height: 22px;
}
.duration-area {
padding-left: 0;
}
/* pdf出力ボタン */
.pdf-output-btn .icon{
width: 22px;
height: 22px;
background: url("../img/icon_pdf_blue.svg") no-repeat;
}
.pdf-output-btn:hover .icon{
background: url("../img/icon_pdf.svg") no-repeat;
}
/* 表の開閉 */
.fold-area {
height: 30px;
position: relative;
margin: 0 10px;
}
.fold-area.hide{
display: none;
}
.fold-area span:nth-child(1) {
width: calc( 100% - 20px );
height: 3px;
background-color: #ebf4fb;
position: absolute;
top: 0;
right: 0;
}
.fold-area span:nth-child(2) {
width: 95%;
height: 3px;
background-color: #ebf4fb;
position: absolute;
top: 10px;
right: 0;
}
.fold-area span:nth-child(2) {
width: calc( 100% - 10px );
height: 3px;
background-color: #ebf4fb;
position: absolute;
top: 10px;
right: 0;
}
.fold-area span:nth-child(2):before {
content: '';
width: 3px;
height: 10px;
border-left: 3px solid #ebf4fb;
position: absolute;
top: -10px;
}
.fold-area span:nth-child(3) {
width: 100%;
height: 3px;
background-color: #ebf4fb;
position: absolute;
top: 20px;
right: 0;
}
.fold-area span:nth-child(3):before {
content: '';
width: 3px;
height: 10px;
border-left: 3px solid #ebf4fb;
position: absolute;
top: -10px;
}
@media (min-width: 768px) {
.del-btn,.sv-btn,.sb-btn{
min-width: 150px;
}
}
/* タブ */
.side-navi ul li a {
color: #212529;
}
.side-navi ul li.active.done a{
color: #212529;
}
.side-navi ul li.doing a {
color: #0053f0;
}
.side-navi ul li.yet a{
color: #ccc;
}
/* 作業未更新 */
#top tr.update {
background: #fffaf7;
}
#top tr.update a:before {
content: '\f2f9';
font-family: "Font Awesome 5 Free";
color: #0053f0;
font-weight: 600;
margin-right: 5px;
}
@media(max-width: 991.98px){
.side-navi ul li.active {
background: #ebf4fb!important;
z-index: 9999;
margin-bottom: -1px;
border-bottom: 1px solid #ebf4fb;
}
.side-navi ul li.active a{
color: #0053f0;
}
.p-form {
border-top: 1px solid #dadee3;
margin-top: -1px;
}
.side-navi ul li.done {
background: #C4C4C4;
}
.side-navi ul li.done a{
color: #fff;
}
.side-navi ul li.active.yet a{
color: #212529;
}
}
@media screen and (max-width:768px){
#top tr.update a:before {
font-size: 13px;
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
@font-face{
font-family:"Font Awesome 5 Brands";
font-style:normal;
font-weight:400;
font-display:block;
src:url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot);
src:url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot)
format("embedded-opentype"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2)
format("woff2"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff)
format("woff"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf)
format("truetype"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.svg#fontawesome)
format("svg")}.fab{font-family:"Font Awesome 5 Brands"}
@font-face{
font-family:"Font Awesome 5 Free";
font-style:normal;
font-weight:400;
font-display:block;
src:url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot);
src:url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot)
format("embedded-opentype"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2)
format("woff2"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff)
format("woff"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf)
format("truetype"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.svg#fontawesome)
format("svg")}.fab,.far{font-weight:400}
@font-face{
font-family:"Font Awesome 5 Free";
font-style:normal;
font-weight:900;
font-display:block;
src:url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot);
src:url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot)
format("embedded-opentype"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2)
format("woff2"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff)
format("woff"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf)
format("truetype"),url(../fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg#fontawesome)
format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900}
\ No newline at end of file
@charset "UTF-8";
header .navbar-brand img{
height: 35px!important;
}
header .nav-link img {
height: 28px!important;
}
@media (max-width: 575px) {
header .nav-link img {
height: 24px!important;
}
}
header nav a,header nav a:hover{
color: #69707A;
}
header li.active.nav-link a{
color: var(--primary);
}
header li.active.nav-link img {
filter: brightness(0) saturate(100%) invert(17%) sepia(94%) saturate(4792%) hue-rotate(219deg) brightness(98%) contrast(100%);
}
html,
body {
height: 100%;
background-color: #EBF4FB;
}
body {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
}
.form-login {
width: 100%;
max-width: 420px;
padding: 25px 30px;
margin: auto;
}
\ No newline at end of file
@charset "UTF-8";
/* no image */
.not-found-img{
max-width: 100px;
}
/* dashboard */
ul.dashboard-menu li:hover{
background-color: #f8f9fa;
}
ul.dashboard-menu li img{
width: 50px;
}
@media screen and (max-width: 575px) {
ul.dashboard-menu li img{
width: 40px;
}
}
/* dashboard setting */
.setting-table-wrap table {
width: 100%;
}
.setting-table-wrap th {
padding: 0.8rem;
}
.setting-table-wrap td {
width: 80px;
padding: 0.8rem;
}
/* message list */
ul.message-list li.unread{
font-weight: bold;
}
ul.message-list li.read{
background-color: #f8f9fa;
}
/* task list */
.task-list li a > div:nth-of-type(2){
min-height: 45px;
}
.view-block {
display: grid;
grid-template-columns: repeat(3,1fr);
column-gap: 10px;
}
@media screen and (max-width: 767px) {
.view-block {
grid-template-columns: repeat(2,1fr);
}
}
@charset "UTF-8";
.tb-wrap {
border-radius: 4px;
border: 3px solid #EBF4FB;
}
.ad-area{
top: 0;
right: 20px;
}
canvas {
width: 80%;
height: 200px;
}
.tb-item {
counter-increment: item;
margin-bottom: 10px;
}
.tb-item:not(:last-child) {
padding-bottom: 20px;
border-bottom: 3px solid #EBF4FB;
}
.tb-item .num:after,
.tb-item label:after {
content: counters(item,"");
}
/* 工程一覧 */
#process-list h1{
font-size: 20px;
}
#process-list .ar-box{
min-height: 50px;
font-weight: normal;
}
#process-list .sp-down img{
width: 35px;
}
/* フォーム開閉ボタン */
.ac-tb-form{
display: block;
padding: 5px 0 5px 35px;
text-align: center;
color: #0053f0!important;
font-weight: 600;
text-decoration: none!important;
border-radius: 5px;
font-size: 14px;
}
.ac-tb-form:after {
content: "";
position: absolute;
left: 15px;
transition: all .2s ease-in-out;
display: block;
width: 8px;
height: 8px;
border-top: 2px solid #0053f0;
border-right: 2px solid #0053f0;
transform: rotate(-45deg);
top: 45%;
}
.ac-tb-form.hide:after {
transform: rotate(135deg);
top: 32%;
}
.tb-item.visually-hidden {
transition: 0.5s;
}
.visually-hidden {
position: fixed !important;
top: 0px !important;
left: 0px !important;
width: 0px !important;
height: 0px !important;
opacity: 0 !important;
overflow: hidden !important;
border: none !important;
margin: 0 !important;
padding: 0 !important;
display: block !important;
visibility: visible !important;
}
.num {
font-weight: 600;
}
i.fa-minus, i.fa-plus {
color: #212529;
}
.fa-plus:active{
transform: rotate(180deg);
transition: .5s;
}
#top nav.search {
margin-bottom: 1rem;
}
.form-group {
margin-bottom: 0;
}
/* アイコン */
.icon{
width: 22px;
max-height: 22px;
}
.duration-area {
padding-left: 0;
}
/* pdf出力ボタン */
.pdf-output-btn .icon{
width: 22px;
height: 22px;
background: url("../img/icon_pdf_blue.svg") no-repeat;
}
.pdf-output-btn:hover .icon{
background: url("../img/icon_pdf.svg") no-repeat;
}
/* 表の開閉 */
.fold-area {
height: 30px;
position: relative;
margin: 0 10px;
}
.fold-area.hide{
display: none;
}
.fold-area span:nth-child(1) {
width: calc( 100% - 20px );
height: 3px;
background-color: #ebf4fb;
position: absolute;
top: 0;
right: 0;
}
.fold-area span:nth-child(2) {
width: 95%;
height: 3px;
background-color: #ebf4fb;
position: absolute;
top: 10px;
right: 0;
}
.fold-area span:nth-child(2) {
width: calc( 100% - 10px );
height: 3px;
background-color: #ebf4fb;
position: absolute;
top: 10px;
right: 0;
}
.fold-area span:nth-child(2):before {
content: '';
width: 3px;
height: 10px;
border-left: 3px solid #ebf4fb;
position: absolute;
top: -10px;
}
.fold-area span:nth-child(3) {
width: 100%;
height: 3px;
background-color: #ebf4fb;
position: absolute;
top: 20px;
right: 0;
}
.fold-area span:nth-child(3):before {
content: '';
width: 3px;
height: 10px;
border-left: 3px solid #ebf4fb;
position: absolute;
top: -10px;
}
@media (min-width: 768px) {
.del-btn,.sv-btn,.sb-btn{
min-width: 150px;
}
}
/* タブ */
.side-navi ul li a {
color: #212529;
}
.side-navi ul li.active.done a{
color: #212529;
}
.side-navi ul li.doing a {
color: #0053f0;
}
.side-navi ul li.yet a{
color: #ccc;
}
/* 作業未更新 */
#top tr.update {
background: #fffaf7;
}
#top tr.update a:before {
content: '\f2f9';
font-family: "Font Awesome 5 Free";
color: #0053f0;
font-weight: 600;
margin-right: 5px;
}
@media(max-width: 991.98px){
.side-navi ul li.active {
background: #ebf4fb!important;
z-index: 9999;
margin-bottom: -1px;
border-bottom: 1px solid #ebf4fb;
}
.side-navi ul li.active a{
color: #0053f0;
}
.p-form {
border-top: 1px solid #dadee3;
margin-top: -1px;
}
.side-navi ul li.done {
background: #C4C4C4;
}
.side-navi ul li.done a{
color: #fff;
}
.side-navi ul li.active.yet a{
color: #212529;
}
}
@media screen and (max-width:768px){
#top tr.update a:before {
font-size: 13px;
}
}
\ No newline at end of file
@charset "utf-8";
/* Latest Update
2012.11.5 write */
body{
margin: 0;
padding: 0;
}
.wrapper {
}
form, ul{ margin:0; padding:0;}
li{ list-style-type:none;}
img{ display:block; border:none;}
#main-ws{
width: 960px;
padding-top: 20px;
overflow: hidden;
margin-top: 0;
margin-right: auto;
margin-left: auto;
}
p.go_top{
clear:both;
height:115px;
width:90px;
position: fixed;
bottom: -45px;
right: 20px;
}
.focus{ }
#user_change footer .border .cnt_footer img { display: inline;}
/*2013*/
.PageTop {
float: right;
width: 100px;
}
/*CLEARFIX*/
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix { display: inline-block; }
/*\*/
* html .clearfix { height: 1%; }
.clearfix { display: block; }
/**/
.clearboth { clear: both;}
br.clear { clear: both; margin: 0; padding: 0; font-size: 0; line-height: 0; }
.floatL { float: left;}
.floatR { float: right;}
@charset "utf-8";
/* Latest Update
2012.11.5 write */
body{
background: #f4f4f4;
font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "MS Pゴシック", "MS P Gothic", "Osaka", Verdana, Arial, Helvetica, sans-serif;
}
.wrapper {
background-color: #EDF2F2;
}
form, ul{ }
li{ }
img{ }
#main-ws{
}
p.go_top{
}
.focus{ color: #969696;}
#user_change footer .border .cnt_footer img { }
/*2013*/
.PageTop {
}
/*CLEARFIX*/
.clearfix:after { }
.clearfix { }
/*\*/
* html .clearfix { }
.clearfix { }
/**/
.clearboth {}
br.clear { }
.floatL { }
.floatR { }
#avw-auth-error
{
color: #fff;
background: #ccc;
}
@charset "utf-8";
/*
* {
font-family: "メイリオ", "MS Pゴシック", "ヒラギノ角ゴ Pro W3", "Osaka", "sans-serif";
font-size: 12pt;
-webkit-font-smoothing: antialiased;
}
*/
/**
* システムエラーメッセージスタイル
*/
.toast-container {
z-index: 90001;
}
.toast-item {
border-radius: 10px;
}
.toast-position-middle-center {
margin-left: -250px;
width: 500px;
}
@charset "utf-8";
/* footer */
#ws-body footer{
display: block;
height: 58px;
line-height: 60px;
padding-top: 1px;
margin: 0 auto;
width: 100%;
}
.cnt_footer{
text-align: center;
margin: 0 auto;
width: 960px;
}
/* footer */
#ws-body footer{
background-color: #EDF2F2;
}
.cnt_footer{
color: #000;
font-size: 10px;
border-top: solid 1px #CCC;
}
@charset "utf-8";
.header_ws{
height: 100px;
width: 100%;
display: block;
}
.cnt_header{
width: 960px;
height: 100px;
position: relative;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
.cnt_header .logo{
width: 87px;
height: 80px;
display: block;
margin-top: 10px;
float: left;
margin-left: 10px;
}
.cnt_header .menu_language{
float: right;
/* width: 520px;*/
width: 820px;
}
.cnt_header .menu_language ul{
padding: 0;
text-align: right;
display: inline-block;
line-height: 25px;
margin-top: 15px;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
position:relative;
}
.cnt_header .menu_language ul li{
list-style-type: none;
display: inline;
padding-left: 15px;
margin-left: 9px;
}
.cnt_header .menu_language ul li input{
line-height: 15px;
height: 20px;
padding-left: 25px;
width: 175px;
vertical-align: text-bottom;
}
.cnt_header .menu_language ul li a{
}
.cnt_header .menu_language ul li a:hover{
}
.cnt_header .menu_language ul li.jp{
margin-left:11px;
}
.cnt_header .menu_language ul li.eng{
}
.cnt_header .menu_language ul li.kor{
margin-left:6px;
}
.button{ float:right; margin-top:20px; margin-right:2px;}
.cnt_header .box_open{
width:180px;
height:120px;
position:absolute;
border:1px solid #999999;
right:0;
top:38px;
display:none;
z-index:9999;
}
.cnt_header .box_open .t_top{
height:19px;
margin:0;
line-height:19px;
padding-left:5px;
}
.cnt_header .box_open ul{ margin:0; padding:3px 0 0 4px;}
.cnt_header .box_open ul li{
list-style-type:none;
margin-bottom:4px;
height:19px;
line-height:18px;
}
.cnt_header .box_open ul li input{ vertical-align:middle;}
.cnt_header .box_open ul li label{ line-height:16px;}
.cnt_header .box_open .btn_search{
width:100px;
height:30px;
display:block;
margin:12px auto 0 auto;
}
.cnt_header .menu_language ul .pushMessage {
text-align: center;
line-height: 25px;
display: inline-block;
padding:0;
}
.cnt_header .menu_language ul .pushMessage span
{
float:left;
display:block;
height:25px;
}
.cnt_header .menu_language ul .pushMessage .icon
{
width:26px;
}
.cnt_header .menu_language ul .pushMessage .arrow
{
width:6px;
margin-right:5px;
}
.cnt_header .menu_language ul.pushMessage a:hover { }
.header_ws .cnt_header .menu_language ul li a img { display: inline; }
.header_ws .cnt_header .menu_language ul .language {
padding: 0;
margin-left: 0px;
}
.header_ws .cnt_header .menu_language .button .menuIcon img { display: inline; }
.header_ws .cnt_header .menu_language ul li a#jQueryPush{
}
.header_ws .cnt_header .menu_language .button {
width: 520px;
/*width: 590px;*/
position: relative;
}
.header_ws .cnt_header .menu_language #header-searchbox {
width: 200px;
position: absolute;
top: 25px;
z-index: 9999;
text-align: left;
right: 0px;
padding-top:5px;
}
.header_ws .cnt_header .menu_language #header-searchbox span
{
cursor:pointer;
}
.header_ws .cnt_header .menu_language #header-searchbox a#searchbox-search {
height: 20px;
line-height:20px;
/*width: 25px;*/
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
padding: 1px 20px;
text-decoration: none;
/*margin: 0 10px 10px 125px;*/
float:right;
display: inline-block;
margin:0 5px 5px 0;
}
.header_ws .cnt_header .menu_language #header-searchbox a#searchbox-search:hover {
}
a#searchbox-search:active{
position:relative;
top:1px;
}
/* for pushmessage */
.notification-pushmessage
{
position:fixed;
height:40px;
line-height:40px;
text-align:center;
top:0;
left:0;
right:0;
z-index:10000;
}
.tops ul.sort li.current a.descending_sort{
text-decoration: underline;
padding-right: 15px;
margin-right:5px;
}
.tops ul.sort li.current a.ascending_sort{
text-decoration:underline;
padding-right: 15px;
margin-right:5px;
}
.tops ul.sort li b{
}
.tops ul.sort {
margin: 0;
display:inline-block;
padding: 6px;
}
.tops ul.sort li{
display:inline;
}
.tops ul.sort li a{
padding-left:5px;
padding-right:7px;
}
.tops ul.sort li a:hover{ }
.tops ul.sort li a.active_tops{ }
.tops ul.sort li.sort a:hover{ text-decoration:underline;}
.tops ul.sort li b{
}
.toast-item-loading
{
text-align:center;
height:40px;
}
.header_ws{
background-image: url(../../img/common/header_border.jpg) ,url(../../img/common/header_bg.jpg);
background-repeat: repeat-x, repeat;
background-position: bottom, top;
}
.cnt_header{
}
.cnt_header .logo{
background-image: url(../../img/common/logo.png);
background-repeat: no-repeat;
}
.cnt_header .menu_language{
font-size: 12px;
color: #333333;
}
.cnt_header .menu_language ul{
}
.cnt_header .menu_language ul li{
}
.cnt_header .menu_language ul li input{
border: 1px solid #999999;
border-radius: 3px;
font-size: 12px;
background: url(../../img/common/icon_serch.png) 3px 2px no-repeat;
behavior: url("/PIE.htc");
}
.cnt_header .menu_language ul li a{
color:#000;
text-decoration:none;
}
.cnt_header .menu_language ul li a:hover{
text-decoration:underline;
}
.cnt_header .menu_language ul li.jp{
background: url(../../img/common/flg_jpn.png) no-repeat left center;
}
.cnt_header .menu_language ul li.eng{
background: url(../../img/common/flg_usa.png) no-repeat left center;
}
.cnt_header .menu_language ul li.kor{
background: url(../../img/common/flg_kor.png) no-repeat left center;
}
.button{ }
.cnt_header .box_open{
background:#fff;
}
.cnt_header .box_open .t_top{
color:#cccccc;
font-size:10px;
border-bottom:1px solid #999999;
}
.cnt_header .box_open ul{ }
.cnt_header .box_open ul li{
color:#333333;
font-size:12px;
}
.cnt_header .box_open ul li input{ }
.cnt_header .box_open ul li label{ }
.cnt_header .box_open .btn_search{
background:url(../../img/common/btn_search.png) no-repeat;
}
.cnt_header .menu_language ul .pushMessage {
/*background-image: url(../../img/common/icon_newmessage.png), url(../../img/common/icon_triangle.png), url(../../img/common/box_pushmessage.jpg);
background-repeat: no-repeat, no-repeat, repeat-x;
background-position: 5px center, right 5px center, bottom;
border: solid 1px #CCCCCC;*/
background: url(../../img/common/box_pushmessage.jpg) repeat-x;
border: solid 1px #CCCCCC;
}
.cnt_header .menu_language ul .pushMessage span
{
float:left;
display:block;
height:25px;
}
.cnt_header .menu_language ul .pushMessage .icon
{
background: url(../../img/common/icon_newmessage.png) no-repeat center;
width:26px;
}
.cnt_header .menu_language ul .pushMessage .arrow
{
background: url(../../img/common/icon_triangle.png) no-repeat center;
width:6px;
margin-right:5px;
}
.cnt_header .menu_language ul.pushMessage a:hover { text-decoration: none; }
.header_ws .cnt_header .menu_language ul li a img { display: inline; }
.header_ws .cnt_header .menu_language ul .language {
padding: 0;
margin-left: 0px;
}
.header_ws .cnt_header .menu_language .button .menuIcon img { display: inline; }
.header_ws .cnt_header .menu_language ul li a#jQueryPush{
text-decoration: none !important;
color:#333;
}
.header_ws .cnt_header .menu_language .button {
}
.header_ws .cnt_header .menu_language #header-searchbox {
background-color: #FFFFFF;
border: 1px solid #CCCCCC;
}
.header_ws .cnt_header .menu_language #header-searchbox span
{
}
.header_ws .cnt_header .menu_language #header-searchbox a#searchbox-search {
-moz-box-shadow: inset 0px 1px 0px 0px #86ACC7;
-webkit-box-shadow: inset 0px 1px 0px 0px #86ACC7;
box-shadow: inset 0px 1px 0px 0px #86ACC7;
background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #36638B), color-stop(1, #23486F) );
background: -moz-linear-gradient( center top, #36638B 5%, #23486F 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#36638B', endColorstr='#23486F');
background-color: #23486F;
border: 1px solid #0C274D;
color: #ffffff;
}
.header_ws .cnt_header .menu_language #header-searchbox a#searchbox-search:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #23486F), color-stop(1, #36638B) );
background:-moz-linear-gradient( center top, #23486F 5%, #36638B 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#23486F', endColorstr='#36638B');
background-color:#36638B;
}
a#searchbox-search:active{
}
.tops ul.sort {
border: 1px solid #B3B3B3;
border-radius: 4px;
}
.tops ul.sort li{
}
.tops ul.sort li a{
font-size: 12px;
color: #333333;
text-decoration: none;
}
.tops ul.sort li.sort a:hover{ text-decoration:underline;}
.tops ul.sort li.current a.descending_sort{
color: #2d83da;
background: url(../../img/common/icon_triangle_d.png) no-repeat right 5px;
}
.tops ul.sort li.current a.ascending_sort{
color:#2d83da;
background:url(../../img/common/icon_triangle_u.png) no-repeat right 5px;
}
.tops ul.sort li b{
font-weight: normal;
font-size: 12px;
}
.tops ul.sort li b{
font-weight: normal;
font-size: 12px;
}
/* for pushmessage */
.notification-pushmessage
{
background-color:#bde;
opacity:0.8;
border:solid 1px #333;
color:#000;
border:solid 1px #000;
font-weight:bold;
font-size:13px;
}
.toast-item-loading
{
text-align:center;
height:40px;
background:url(../../img/data_loading.gif) no-repeat center;
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><svg id="_レイヤー_2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 119.14 125"><defs><style>.cls-1{fill:#a5d6a7;}</style></defs><g id="_レイヤー_1-2"><g><path class="cls-1" d="M48.17,121.12H9.29c-2.48,0-4.65-.93-6.5-2.79-1.86-1.86-2.79-4.03-2.79-6.5V21.68c0-2.48,.8-4.65,2.4-6.5,1.6-1.86,2.97-2.79,4.1-2.79h31.29c.72-3.61,2.5-6.58,5.34-8.91C45.97,1.16,49.25,0,52.97,0c3.72,0,7,1.16,9.83,3.48,2.84,2.32,4.62,5.29,5.34,8.91h31.29c2.48,0,4.65,.93,6.5,2.79,1.86,1.86,2.79,4.03,2.79,6.5v31.44h-9.29V21.68h-16.42v10.84c0,2.58-.9,4.78-2.71,6.58-1.81,1.81-4,2.71-6.58,2.71H35c-2.58,0-4.78-.9-6.58-2.71-1.81-1.81-2.71-4-2.71-6.58v-10.84H9.29V111.82H48.17v9.29Zm-13.4-55.34l16.51-16.51c.45-.45,.98-.67,1.59-.64,.61,.03,1.14,.27,1.59,.72s.68,1,.68,1.63-.23,1.17-.68,1.63l-18.1,18.1c-.45,.45-.98,.68-1.59,.68s-1.14-.23-1.59-.68l-8.94-8.94c-.45-.45-.67-1-.64-1.63,.03-.63,.27-1.17,.72-1.63,.45-.45,1-.68,1.63-.68,.63,0,1.17,.23,1.63,.68l7.2,7.27Zm0,26l16.51-16.51c.45-.45,.98-.67,1.59-.64,.61,.03,1.14,.27,1.59,.72s.68,1,.68,1.63-.23,1.17-.68,1.63l-18.1,18.1c-.45,.45-.98,.68-1.59,.68s-1.14-.23-1.59-.68l-8.94-8.94c-.45-.45-.67-1-.64-1.63,.03-.63,.27-1.17,.72-1.63,.45-.45,1-.68,1.63-.68,.63,0,1.17,.23,1.63,.68l7.2,7.27ZM55.76,21.06c1.76,0,3.23-.59,4.41-1.78,1.19-1.19,1.78-2.66,1.78-4.41s-.59-3.23-1.78-4.41c-1.19-1.19-2.66-1.78-4.41-1.78s-3.23,.59-4.41,1.78c-1.19,1.19-1.78,2.66-1.78,4.41s.59,3.23,1.78,4.41c1.19,1.19,2.66,1.78,4.41,1.78Z"/><g><path class="cls-1" d="M113.09,82.66l-11.61-11.61,4.74-4.74c.87-.87,2.02-1.31,3.43-1.31s2.56,.44,3.43,1.31l4.74,4.74c.87,.87,1.31,2.02,1.31,3.43s-.44,2.56-1.31,3.43l-4.74,4.74Z"/><path class="cls-1" d="M59.14,122.55v-7.19c0-.65,.11-1.25,.33-1.8,.22-.54,.6-1.09,1.14-1.63l33.84-33.84,11.61,11.61-33.84,33.84c-.54,.54-1.09,.93-1.63,1.14-.54,.22-1.14,.33-1.8,.33h-7.19c-.65,0-1.23-.25-1.72-.74-.49-.49-.74-1.06-.74-1.72Z"/></g></g></g></svg>
\ No newline at end of file
......@@ -7,1184 +7,1184 @@
* 4.url
* 5.cms communication
* 6.check if user is logged in
* 7.jquery event
*
* @since cms:1.4.3.2&1.4.3.3 web:1.0
*/
var COMMON = {};
COMMON.hasErrorKey = 'AVW_HASERR';
COMMON.lang;
/**
* get lang code in local storage
* web gets lang form local storage
* but app gets lnag from session storage
*/
COMMON.setLangCodeWeb = function () {
let lang = COMMON.getLangWeb();
if (lang.split('-')[0] == CONSTANT.LANG.English) {
lang = CONSTANT.LANG.ENGLISH;
} else if (lang.split('-')[0] == CONSTANT.LANG.KOREA) {
lang = CONSTANT.LANG.KOREA;
} else {
lang = CONSTANT.LANG.JAPAN;
}
COMMON.lang = lang;
};
/**
* get lang in local storage
*
* @returns String pageLang
*/
COMMON.getLangWeb = function () {
if (!COMMON.lang) {
let pageLang;
if (localStorage[CONSTANT.LANG.SAVE_NAME]) {
pageLang = localStorage[CONSTANT.LANG.SAVE_NAME];
} else {
pageLang = (window.navigator.languages && window.navigator.languages[0]) || window.navigator.language || window.navigator.userLanguage || window.navigator.browserLanguage;
localStorage[CONSTANT.LANG.SAVE_NAME] = pageLang;
}
return pageLang;
} else {
return COMMON.lang;
}
return pageLang;
};
/**
* change lang of html
*/
COMMON.updateLang = function () {
$('.multi-lang').each(function () {
const key = $(this).attr('data-msg');
if (key) {
if ($(this).prop('tagName').toLowerCase() == 'input' && ($(this).attr('type') == 'text' || $(this).attr('type') == 'search')) {
const attr = $(this).attr('placeholder');
if (typeof attr !== 'undefined' && attr !== false) {
$(this).attr('placeholder', COMMON.getMsg(key));
} else {
$(this).val(COMMON.getMsg(key));
}
} else {
$(this).html(COMMON.getMsg(key));
}
}
});
};
/**
* get any lang msg from COMMON.msgMap
*
* @param String key
* @returns String msg
*/
COMMON.getMsg = function (key) {
const msg = CONSTANT.MSG_MAP[key];
if (!msg) {
return '';
}
return msg[COMMON.lang];
};
/* page transition without outputting a warning message */
COMMON.avwScreenMove = function (url) {
COMMON.showLoading();
window.onbeforeunload = null;
window.location = url;
};
/**
* show loading dialog
* show msg by key
*
* @param {String} key
*/
COMMON.showLoading = function () {
$.LoadingOverlay('show', {
image: '../common/img/loading.gif',
});
};
/**
* close loading
*/
COMMON.closeLoading = function () {
$.LoadingOverlay('hide');
};
/**
* show alert
*
* @param {String} msgCode
*/
COMMON.displayAlert = function (msgCode, title) {
$('#alertMsg').html(I18N.i18nText(msgCode));
$('.alert-overlay').removeClass('d-none');
$('.alert-area').removeClass('d-none');
const positionY = $(document).scrollTop() + screen.height / 8;
const height = screen.height / 4;
$('.alert-overlay').css('height', screen.height);
$('.alert-area').css('top', positionY);
$('.alert-area').css('min-height', height);
$('body').css('overflow', 'hidden');
};
/**
* close alert
*/
COMMON.alertClose = function () {
$('.alert-overlay').addClass('d-none');
$('.alert-area').addClass('d-none');
$('body').css('overflow', 'visible');
};
/**
* go Url page With Current Params
*
* ios will remove all web types data when reopen webview
* need add common parameters: app, lang, debug, mobile_flg, isChat, ...
*
* @param {String} url
* @param {Object} params
*/
COMMON.goUrlWithCurrentParams = function (url, params) {
if (!params) {
location.href = CONSTANT.URL.WEB.BASE + url;
}
const mixParams = Object.assign(COMMON.getUrlParameter(), params);
if (url.includes('?')) {
location.href = url + '&' + new URLSearchParams(mixParams);
} else {
location.href = url + '?' + new URLSearchParams(mixParams);
}
};
/**
* get url parameter
*
*/
COMMON.getUrlParameter = function () {
var ret = {};
if (location.search) {
var param = {};
location.search
.substring(1)
.split('&')
.forEach(function (val) {
var kv = val.split('=');
param[kv[0]] = kv[1];
});
ret = param;
}
console.log({ ret: ret });
return ret;
};
/**
* get sid in local Storage
*
* @returns sid
*/
COMMON.getSid = function () {
return ClientData.userInfo_sid();
};
/**
* cms communication
*
* @param {String} url
* @param {Json} param
* @param {boolean} async
* @param {Object} callback
* @param {Object} errorCallback
*/
COMMON.cmsAjax = function (url, param, async = true, callback, errorCallback, type) {
var sysSettings = new COMMON.sysSetting();
if (url) {
$.ajax({
type: 'post',
url: url,
data: param,
dataType: type ? type : 'json',
cache: false,
async: async,
crossDomain: true,
beforeSend: function (xhr) {
xhr.setRequestHeader('X-AGT-AppId', sysSettings.appName);
xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion);
},
success: function (result) {
if (type == 'text') {
if (callback) callback(result);
return;
}
if (result.httpStatus == '200') {
if (callback) callback(result);
} else if (errorCallback) {
errorCallback(result);
} else if (result.httpStatus == '401') {
COMMON.goUrlWithCurrentParams(CONSTANT.PAGE_NAME.LOGIN);
} else if (result.httpStatus == '403') {
COMMON.closeLoading();
COMMON.displayAlert('errorOccurred');
} else {
COMMON.closeLoading();
COMMON.displayAlert(result.message);
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
if (errorCallback) {
errorCallback(XMLHttpRequest, textStatus, errorThrown);
} else {
COMMON.closeLoading();
COMMON.displayAlert('errorCommunicationFailed');
}
},
});
} else {
if (errorCallback) {
errorCallback();
} else {
COMMON.closeLoading();
COMMON.displayAlert('errorOccurred');
}
}
};
/**
* Communicate with cms and post
*
* @param {String} url
* @param {Object} params
* @param {String} method
*/
COMMON.postCommunication = function (url, params, method = 'post') {
const form = document.createElement('form');
form.method = method;
form.action = url;
for (const key in params) {
if (params.hasOwnProperty(key)) {
const hiddenField = document.createElement('input');
hiddenField.type = 'hidden';
hiddenField.name = key;
hiddenField.value = params[key];
form.appendChild(hiddenField);
}
}
document.body.appendChild(form);
form.submit();
};
/**
* Check if user is logged in
*
* @param {boolean} async
*/
COMMON.checkAuth = function (async = true) {
let params = {};
params.sid = COMMON.getSid;
const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.AUTH_SESSION;
COMMON.cmsAjax(url, params, async, null, function () {
COMMON.goUrlWithCurrentParams(CONSTANT.PAGE_NAME.LOGIN);
});
};
var ClientData = {
// Local :ユーザ情報(userInfo)_アカウントパス:String
userInfo_accountPath: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_accountPath, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_accountPath);
}
},
// Local :ユーザ情報(userInfo)_ログインID:String
userInfo_loginId: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_loginId, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_loginId);
}
},
// Local :ユーザ情報(userInfo)_アカウント情報記憶フラグ:Char(Y:可能, N:不可)
userInfo_rememberLogin: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_rememberLogin, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_rememberLogin);
}
},
// Session :ユーザ情報(userInfo)_ログインID:String
userInfo_loginId_session: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.userInfo_loginId, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.userInfo_loginId);
}
},
// Session :ユーザ情報(userInfo)_アカウントパス:String
userInfo_accountPath_session: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.userInfo_accountPath, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.userInfo_accountPath);
}
},
// Session
userInfo_userName: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.userInfo_userName, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.userInfo_userName);
}
},
// Local :ユーザ情報(userInfo)_最終ログイン日時:Datetime
userInfo_lastLoginTime: function (data) {
if (arguments.length > 0) {
COMMON.operateData(arguments, CONSTANT.KEYS.userInfo_lastLoginTime, undefined);
} else {
return COMMON.operateData(arguments, CONSTANT.KEYS.userInfo_lastLoginTime, undefined);
}
},
// Session:ユーザ情報(userInfo)_セッションID:String
userInfo_sid: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.userInfo_sid, data);
// COMMON.userSetting().set(CONSTANT.KEYS.userInfo_sid, data);
} else {
// return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_sid);
if (COMMON.userSession()) {
return SessionStorageUtils.get(CONSTANT.KEYS.userInfo_sid);
}
return null;
}
},
// Local: ユーザ情報(userInfo)_セッションID:String
userInfo_sid_local: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_sid_local, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_sid_local);
}
},
// Local: セッションIDのバックアップ
userInfo_sid_local_bak: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_sid_bak, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_sid_bak);
}
},
// Session :通知情報(pushInfo)_新着件数:Interger
pushInfo_newMsgNumber: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.pushInfo_newMsgNumber, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.pushInfo_newMsgNumber);
}
},
conf_apiUrl: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_apiUrl, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_apiUrl);
}
},
conf_apiLoginUrl: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_apiLoginUrl, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_apiLoginUrl);
}
},
conf_checkApiUrl: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_checkApiUrl, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_checkApiUrl);
}
},
conf_apiResourceDlUrl: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_apiResourceDlUrl, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_apiResourceDlUrl);
}
},
// Local :ユーザ情報(userInfo)_パスワードスキップ日時:Datetime
userInfo_pwdSkipDt: function (data) {
if (arguments.length > 0) {
COMMON.operateData(arguments, CONSTANT.KEYS.userInfo_pwdSkipDt, undefined);
} else {
return COMMON.operateData(arguments, CONSTANT.KEYS.userInfo_pwdSkipDt, undefined);
}
},
// Session :事業者オプション(serviceOpt)_ABookCheck:Char(Y:有効, N:無効)
serviceOpt_abook_check: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_abook_check, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_abook_check);
}
},
// Session : Tenant Service_Option(serviceOpt)_ChatFunction:Char(Y:Use, N:Unused)
serviceOpt_chat_function: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_abook_check, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_abook_check);
}
},
// Session :事業者オプション(serviceOpt)_初回ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制)
serviceOpt_force_pw_change_on_login: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_force_pw_change_on_login, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_force_pw_change_on_login);
}
},
// Session :事業者オプション(serviceOpt)_定期ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制)
serviceOpt_force_pw_change_periodically: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_force_pw_change_periodically, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_force_pw_change_periodically);
}
},
// Session :事業者オプション(serviceOpt)_任意のプッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_usable_push_message: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_usable_push_message, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_usable_push_message);
}
},
// Local
JumpQueue: function (data) {
if (arguments.length > 0) {
COMMON.operateData(arguments, CONSTANT.KEYS.JumpQueue, []);
} else {
return COMMON.operateData(arguments, CONSTANT.KEYS.JumpQueue, []);
}
},
// Local
IsJumpBack: function (data) {
if (arguments.length > 0) {
COMMON.operateData(arguments, CONSTANT.KEYS.IsJumpBack, undefined);
} else {
return COMMON.operateData(arguments, CONSTANT.KEYS.IsJumpBack, undefined);
}
},
};
/*
* Variables
*/
COMMON.userSessionObj = null;
COMMON.userSettingObj = null;
COMMON.sysSettingObj = null;
/*
* User Settings Class Definition
*/
var UserSetting = function () {
this.US_KEY = 'AVWUS';
this.userSetting = this.load();
};
/* get user setting from localStorage */
UserSetting.prototype.load = function () {
var storage = window.localStorage;
var value = null;
var js = null;
if (storage) {
var value = storage.getItem(this.US_KEY);
if (!value) {
value = '{}'; // 空JSON文字列
}
js = JSON.parse(value);
}
return js;
};
/* store user setting */
UserSetting.prototype.set = function (key, value) {
//if(!this.userSetting) {
this.userSetting = this.load();
//}
var values = this.userSetting;
if (!values) {
values = { key: value };
} else {
values[key] = value;
}
var storage = window.localStorage;
if (storage) {
var jsonStr = JSON.stringify(values);
storage.setItem(this.US_KEY, jsonStr);
}
this.userSetting = values;
};
/* grab user setting */
UserSetting.prototype.get = function (key) {
//if(!this.userSetting) {
this.userSetting = this.load();
//}
var values = this.userSetting;
if (values) {
return values[key];
}
return null;
};
/* show user setting object list */
UserSetting.prototype.show = function (elmid) {
var storage = window.localStorage;
var tags = '<p>';
if (storage) {
var value = storage.getItem(this.US_KEY);
if (value) {
var js = JSON.parse(value);
$.each(js, function (k, v) {
tags = tags + '<b>' + k + '</b>:' + v + '<br />';
});
}
tags = tags + '</p>';
$(elmid).html(tags);
}
};
/* ユーザ設定のキーリストを取得 */
UserSetting.prototype.keys = function () {
var storage = window.localStorage;
var keyList = [];
if (storage) {
var value = storage.getItem(this.US_KEY);
if (value) {
var js = JSON.parse(value);
var i = 0;
$.each(js, function (k, v) {
keyList[i++] = k;
});
}
return keyList;
}
return null;
};
/* ユーザ設定を削除 */
UserSetting.prototype.remove = function (key) {
var storage = window.localStorage;
if (storage) {
var value = storage.getItem(this.US_KEY);
if (value) {
var js = JSON.parse(value);
if (js) {
delete js[key];
storage.setItem(this.US_KEY, JSON.stringify(js));
}
}
}
};
/* ユーザ設定をすべて削除 */
UserSetting.prototype.removeAll = function () {
var storage = window.localStorage;
if (storage) {
storage.remove(this.US_KEY);
}
};
/*
* User Session Class Definition
*/
var UserSession = function () {
this.available = false;
};
/* Initialize User Session */
UserSession.prototype.init = function (option) {
this.available = false;
if (option == 'restore') {
var value = null;
try {
value = this._get('init');
} catch (e) {
value = null;
} finally {
if (value) {
this.available = true;
}
}
} else {
this.set('init', new Date().toLocaleString());
this.available = true;
}
};
/* store key, value item to user session */
UserSession.prototype.set = function (key, value) {
var storage = window.sessionStorage;
if (storage) {
if (this.available == false) {
if (key == 'init') {
storage.setItem('AVWS_' + key, value);
} else {
throw new Error('Session destoryed.');
}
} else {
storage.setItem('AVWS_' + key, value);
}
}
};
/* get session item value */
UserSession.prototype.get = function (key) {
var value = null;
if (this.available) {
value = this._get(key);
} else {
throw new Error('Session Destroyed.');
}
return value;
};
/* get item value from session storage */
UserSession.prototype._get = function (key) {
var storage = window.sessionStorage;
var value = null;
if (storage) {
value = storage.getItem('AVWS_' + key);
}
return value;
};
/* destroy user session */
UserSession.prototype.destroy = function () {
var storage = window.sessionStorage;
if (storage) {
storage.clear();
this.available = false;
}
};
/* show user session object list */
UserSession.prototype.show = function (elmid) {
var storage = window.sessionStorage;
var tags = '<p>';
if (storage) {
for (var i = 0; i < storage.length; i++) {
var key = storage.key(i);
var value = storage.getItem(key);
tags = tags + '<b>' + key + '</b>:' + value + '<br />';
}
tags = tags + '</p>';
$(elmid).html(tags);
}
};
/* Initialize system */
$(function () {
// システム設定ファイルの配置先パスの決定
var location = window.location.toString().toLowerCase();
var sysFile = '';
if (location.indexOf('/abweb') < 0) {
sysFile = '../abweb/common/json/sys/conf.json';
} else {
sysFile = '../common/json/sys/conf.json';
}
// システム設定ファイルを読み込む
$.ajax({
url: sysFile,
async: false,
cache: false,
dataType: 'json',
success: function (data) {
COMMON.sysSettingObj = data;
},
error: function (xmlHttpRequest, txtStatus, errorThrown) {
var error = 'Could not load the system configuration file. Please check it.';
error += '\n' + xmlHttpRequest.status + ' ' + txtStatus + ' ' + errorThrown + ' : ' + sysFile;
alert(error);
},
});
// ロード時に一旦エラー状態をクリアしておく
COMMON.clearError();
//#31919 【調査】商談支援システム GoogleChromeでビッチイン・アウトが効かない
navigator.pointerEnabled = navigator.maxTouchPoints > 0; // Edge 17 touch support workaround
document.documentElement.ontouchstart = navigator.maxTouchPoints > 0 ? function () {} : undefined; // Chrome 70 touch support workaround
});
// Hide the locking layout
COMMON.unlockLayout = function () {
$('#avw-sys-modal').hide();
};
// Show the locking layout
COMMON.lockLayout = function () {
if (document.getElementById('avw-sys-modal')) {
$('#avw-sys-modal').show();
} else {
var tags = '<div id="avw-sys-modal"></div>';
$('body').prepend(tags);
$('#avw-sys-modal').css({
opacity: 0.7,
position: 'fixed',
top: '0',
left: '0',
width: $(window).width(),
height: $(window).height(),
background: '#999',
'z-index': 100,
});
// resize error page
$(window).resize(function () {
$('#avw-sys-modal').css({
width: $(window).width(),
height: $(window).height(),
});
});
}
};
/* エラー状態をクリア */
COMMON.clearError = function () {
var session = window.sessionStorage;
if (session) {
session.setItem(COMMON.hasErrorKey, false);
}
};
/* エラー状態を取得 */
COMMON.hasError = function () {
var session = window.sessionStorage;
var isError = false;
if (session) {
isError = session.getItem(COMMON.hasErrorKey);
}
return isError == 'true';
};
/* エラー状態にセット */
COMMON.setErrorState = function () {
var session = window.sessionStorage;
if (session) {
session.setItem(COMMON.hasErrorKey, true);
}
};
///* get user environment object */
//function avwUserEnv() {
// if(COMMON.avwUserEnvObj == null) {
// COMMON.avwUserEnvObj = new UserEnvironment();
// }
// return COMMON.avwUserEnvObj;
//};
/* get user session object */
COMMON.userSession = function () {
if (!COMMON.userSessionObj) {
var obj = new UserSession();
obj.init('restore');
if (obj.available) {
COMMON.userSessionObj = obj;
return COMMON.userSessionObj;
} else {
return null;
}
}
return COMMON.userSessionObj;
};
/* create user session object */
COMMON.createUserSession = function () {
if (COMMON.userSessionObj) {
COMMON.userSessionObj.destroy();
} else {
COMMON.userSessionObj = new UserSession();
COMMON.userSessionObj.init();
}
return COMMON.userSessionObj;
};
/* get user setting object */
COMMON.userSetting = function () {
if (COMMON.userSettingObj == null) {
COMMON.userSettingObj = new UserSetting();
}
return COMMON.userSettingObj;
};
/* get system setting object */
COMMON.sysSetting = function () {
return COMMON.sysSettingObj;
};
/*
* Operations for session storage [start]
*/
var SessionStorageUtils = {
login: function () {
if (COMMON.userSession()) {
// Skip this case
} else {
COMMON.avwCreateUserSession();
}
},
get: function (strKey) {
return COMMON.userSession().get(strKey);
},
set: function (strKey, objValue) {
COMMON.userSession().set(strKey, objValue);
},
clear: function () {
if (COMMON.userSession()) {
COMMON.userSession().destroy();
}
},
remove: function (strKey) {
COMMON.userSession().set(strKey, null);
},
};
/*
* Operations for local storage
*/
var LocalStorageUtils = {
getUniqueId: function () {
var uniqueId = '';
if (COMMON.userSetting().get(CONSTANT.KEYS.userInfo_accountPath)) {
uniqueId += COMMON.userSetting().get(CONSTANT.KEYS.userInfo_accountPath);
}
if (COMMON.userSetting().get(CONSTANT.KEYS.userInfo_loginId)) {
uniqueId += '.' + COMMON.userSetting().get(CONSTANT.KEYS.userInfo_loginId);
}
if (uniqueId != '') {
uniqueId += '.';
}
return uniqueId;
},
get: function (strKey) {
var key = this.getUniqueId() + strKey;
return COMMON.userSetting().get(key);
},
set: function (strKey, objValue) {
var key = this.getUniqueId() + strKey;
COMMON.userSetting().set(key, objValue);
},
remove: function (strKey) {
var key = this.getUniqueId() + strKey;
COMMON.userSetting().remove(key);
SessionStorageUtils.remove(strKey);
},
clear: function () {
var localStorageKeys = COMMON.userSetting().keys();
for (var nIndex = 0; nIndex < localStorageKeys.length; nIndex++) {
var strKey = localStorageKeys[nIndex];
if ((strKey + '').contains(this.getUniqueId())) {
COMMON.userSetting().remove(strKey);
}
}
},
existKey: function (strKey) {
var keys = COMMON.userSetting().keys();
var findKey = this.getUniqueId() + strKey;
var isExisted = false;
if (keys != null && keys != undefined) {
for (var nIndex = 0; nIndex < keys.length; nIndex++) {
if (keys[nIndex] == findKey) {
isExisted = true;
break;
}
}
}
return isExisted;
},
};
/* String.format function def. */
COMMON.format = function (fmt) {
for (var i = 1; i < arguments.length; i++) {
var reg = new RegExp('\\{' + (i - 1) + '\\}', 'g');
fmt = fmt.replace(reg, arguments[i]);
}
return fmt;
};
// Get param url
COMMON.getUrlParam = function (name, url) {
if (!url) {
url = window.location.href;
}
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
var regexS = '[\\?&]' + name + '=([^&#]*)';
var regex = new RegExp(regexS);
var results = regex.exec(url);
if (results == null) {
return '';
} else {
// alert("results[0]:" + results[0]);
// alert("results[1]:" + results[1]);
return results[1];
}
};
COMMON.ToogleLogoutNortice = function () {
window.onbeforeunload = function (event) {
var message = I18N.i18nText('sysInfoWithoutLogout');
var e = event || window.event;
if (e) {
e.returnValue = message;
}
return message;
};
};
/*
* Get data from localstorage and sessionstorage synchronization If has any
* param (args.length > 0) -> setter If has not param (args.length = 0) ->
* getter . Get from session: + if it existed and key existed in localstorage ->
* return result + else: set value from local to sessionstorage -> return value
* of sessionstorage if value is not empty, otherwise, return default result.
*
*/
COMMON.operateData = function (args, strKey, returnDefaultData) {
if (args.length > 0) {
var data = args[0];
LocalStorageUtils.set(strKey, data);
SessionStorageUtils.set(strKey, JSON.stringify(data));
} else {
if (
SessionStorageUtils.get(strKey) != 'undefined' &&
SessionStorageUtils.get(strKey) != undefined &&
SessionStorageUtils.get(strKey) != '' &&
SessionStorageUtils.get(strKey) != null &&
SessionStorageUtils.get(strKey) != 'null'
) {
if (LocalStorageUtils.existKey(strKey) == true) {
return JSON.parse(SessionStorageUtils.get(strKey));
} else {
return returnDefaultData;
}
} else {
if (LocalStorageUtils.existKey(strKey) == true) {
SessionStorageUtils.set(strKey, JSON.stringify(LocalStorageUtils.get(strKey)));
return JSON.parse(SessionStorageUtils.get(strKey));
}
return returnDefaultData;
}
}
};
/**
* UTC current Time (millisecond)
*
* @returns UTC time
*/
COMMON.currentTime = function () {
return Date.now();
};
/*
* Operations for session storage [ end ]
*/
// =============================================================================================
// Utils for string, date, number [start]
// =============================================================================================
/*
* Convert date to JP format date time [start]
*/
/*
* YYYY/MM/DD HH:MM:SS
*/
Date.prototype.jpDateTimeString = function () {
var strResult = '';
var strYear = this.getFullYear() + '';
var strMonth = this.getMonth() + 1 + '';
var strDayInMonth = this.getDate() + '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
strResult += strYear.padLeft('0', 4) + '/' + strMonth.padLeft('0', 2) + '/' + strDayInMonth.padLeft('0', 2);
strResult += ' ' + strHour.padLeft('0', 2) + ':' + strMinute.padLeft('0', 2) + ':' + strSecond.padLeft('0', 2);
return strResult;
};
/*
* YYYY-MM-DD HH:MM:SS
*/
Date.prototype.jpDateTimeString1 = function () {
var strResult = '';
var strYear = this.getFullYear() + '';
var strMonth = this.getMonth() + 1 + '';
var strDayInMonth = this.getDate() + '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
strResult += strYear.padLeft('0', 4) + '-' + strMonth.padLeft('0', 2) + '-' + strDayInMonth.padLeft('0', 2);
strResult += ' ' + strHour.padLeft('0', 2) + ':' + strMinute.padLeft('0', 2) + ':' + strSecond.padLeft('0', 2);
return strResult;
};
/*
* yyyy/MM/dd
*/
Date.prototype.jpDateString = function () {
var strResult = '';
var strYear = this.getFullYear() + '';
var strMonth = this.getMonth() + 1 + '';
var strDayInMonth = this.getDate() + '';
strResult += strYear.padLeft('0', 4) + '/' + strMonth.padLeft('0', 2) + '/' + strDayInMonth.padLeft('0', 2);
return strResult;
};
/*
* HH:mm:ss
*/
Date.prototype.jpTimeString = function () {
var strResult = '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
strResult += ' ' + strHour.padLeft('0', 2) + ':' + strMinute.padLeft('0', 2) + ':' + strSecond.padLeft('0', 2);
return strResult;
};
/*
* HH:mm
*/
Date.prototype.jpShortTimeString = function () {
var strResult = '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
strResult += ' ' + strHour.padLeft('0', 2) + ':' + strMinute.padLeft('0', 2);
return strResult;
};
/*
* yyyyMMddHHmmss
*/
Date.prototype.toIdString = function () {
var strResult = '';
var strYear = this.getFullYear() + '';
var strMonth = this.getMonth() + 1 + '';
var strDayInMonth = this.getDate() + '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
var strMilisecond = this.getMilliseconds() + '';
strResult += strYear.padLeft('0', 4) + strMonth.padLeft('0', 2) + strDayInMonth.padLeft('0', 2);
strResult += strHour.padLeft('0', 2) + strMinute.padLeft('0', 2) + strSecond.padLeft('0', 2) + strMilisecond.padLeft('0', 3);
return strResult;
};
// Subtract date to get days
Date.prototype.subtractByDays = function (targetDate) {
var milis = Math.abs(this - targetDate);
var days = Math.floor(milis / (60 * 60 * 24 * 1000));
return days;
};
Date.prototype.addSeconds = function (plusSeconds) {
var newDate = new Date(this.getTime() + plusSeconds * 1000);
return newDate;
};
// Subtract date to get days
Date.prototype.subtractBySeconds = function (targetDate) {
var milis = Math.abs(this - targetDate);
var days = Math.floor(milis / 1000);
return days;
};
/*
* Convert date to JP format date time [ end ]
*/
// trimming space from both side of the string
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g, '');
};
// trimming space from left side of the string
String.prototype.trimLeft = function () {
return this.replace(/^\s+/, '');
};
// trimming space from right side of the string
String.prototype.trimRight = function () {
return this.replace(/\s+$/, '');
};
// String: pads left
String.prototype.padLeft = function (padString, length) {
var str = this;
while (str.length < length) str = padString + str;
return str;
};
// String: pads right
String.prototype.padRight = function (padString, length) {
var str = this;
while (str.length < length) str = str + padString;
return str;
};
// Check contain string
String.prototype.contains = function (string) {
if (this.indexOf(string) != -1) {
return true;
}
return false;
};
// Number: pads left
Number.prototype.padLeft = function (padString, length) {
var str = this + '';
return str.padLeft(padString, length);
};
// Number: pads right
Number.prototype.padRight = function (padString, length) {
var str = this + '';
return str.padRight(padString, length);
};
// Clear data of array
Array.prototype.clear = function () {
this.splice(0, this.length);
};
// Function to set position of object to center
jQuery.fn.center = function () {
this.css('position', 'fixed');
this.css('top', ($(window).height() - this.height()) / 2 + 'px');
this.css('left', ($(window).width() - this.width()) / 2 + 'px');
return this;
};
\ No newline at end of file
var COMMON = {};
COMMON.hasErrorKey = 'AVW_HASERR';
COMMON.lang;
/**
* get lang code in local storage
* web gets lang form local storage
* but app gets lnag from session storage
*/
COMMON.setLangCodeWeb = function () {
let lang = COMMON.getLangWeb();
if (lang.split('-')[0] == CONSTANT.LANG.English) {
lang = CONSTANT.LANG.ENGLISH;
} else if (lang.split('-')[0] == CONSTANT.LANG.KOREA) {
lang = CONSTANT.LANG.KOREA;
} else {
lang = CONSTANT.LANG.JAPAN;
}
COMMON.lang = lang;
};
/**
* get lang in local storage
*
* @returns String pageLang
*/
COMMON.getLangWeb = function () {
if (!COMMON.lang) {
let pageLang;
if (localStorage[CONSTANT.LANG.SAVE_NAME]) {
pageLang = localStorage[CONSTANT.LANG.SAVE_NAME];
} else {
pageLang = (window.navigator.languages && window.navigator.languages[0]) || window.navigator.language || window.navigator.userLanguage || window.navigator.browserLanguage;
localStorage[CONSTANT.LANG.SAVE_NAME] = pageLang;
}
return pageLang;
} else {
return COMMON.lang;
}
return pageLang;
};
/**
* change lang of html
*/
COMMON.updateLang = function () {
$('.multi-lang').each(function () {
const key = $(this).attr('data-msg');
if (key) {
if ($(this).prop('tagName').toLowerCase() == 'input' && ($(this).attr('type') == 'text' || $(this).attr('type') == 'search')) {
const attr = $(this).attr('placeholder');
if (typeof attr !== 'undefined' && attr !== false) {
$(this).attr('placeholder', COMMON.getMsg(key));
} else {
$(this).val(COMMON.getMsg(key));
}
} else {
$(this).html(COMMON.getMsg(key));
}
}
});
};
/**
* get any lang msg from COMMON.msgMap
*
* @param String key
* @returns String msg
*/
COMMON.getMsg = function (key) {
const msg = CONSTANT.MSG_MAP[key];
if (!msg) {
return '';
}
return msg[COMMON.lang];
};
/* page transition without outputting a warning message */
COMMON.avwScreenMove = function (url) {
COMMON.showLoading();
window.onbeforeunload = null;
window.location = url;
};
/**
* show loading dialog
* show msg by key
*
* @param {String} key
*/
COMMON.showLoading = function () {
$.LoadingOverlay('show', {
image: '../common/img/loading.gif',
});
};
/**
* close loading
*/
COMMON.closeLoading = function () {
$.LoadingOverlay('hide');
};
/**
* show alert
*
* @param {String} msgCode
*/
COMMON.displayAlert = function (msgCode, title) {
$('#alertMsg').html(I18N.i18nText(msgCode));
$('.alert-overlay').removeClass('d-none');
$('.alert-area').removeClass('d-none');
const positionY = $(document).scrollTop() + screen.height / 8;
const height = screen.height / 4;
$('.alert-overlay').css('height', screen.height);
$('.alert-area').css('top', positionY);
$('.alert-area').css('min-height', height);
$('body').css('overflow', 'hidden');
};
/**
* close alert
*/
COMMON.alertClose = function () {
$('.alert-overlay').addClass('d-none');
$('.alert-area').addClass('d-none');
$('body').css('overflow', 'visible');
};
/**
* go Url page With Current Params
*
* ios will remove all web types data when reopen webview
* need add common parameters: app, lang, debug, mobile_flg, isChat, ...
*
* @param {String} url
* @param {Object} params
*/
COMMON.goUrlWithCurrentParams = function (url, params) {
if (!params) {
location.href = CONSTANT.URL.WEB.BASE + url;
}
const mixParams = Object.assign(COMMON.getUrlParameter(), params);
if (url.includes('?')) {
location.href = url + '&' + new URLSearchParams(mixParams);
} else {
location.href = url + '?' + new URLSearchParams(mixParams);
}
};
/**
* get url parameter
*
*/
COMMON.getUrlParameter = function () {
var ret = {};
if (location.search) {
var param = {};
location.search
.substring(1)
.split('&')
.forEach(function (val) {
var kv = val.split('=');
param[kv[0]] = kv[1];
});
ret = param;
}
console.log({ ret: ret });
return ret;
};
/**
* get sid in local Storage
*
* @returns sid
*/
COMMON.getSid = function () {
return ClientData.userInfo_sid();
};
/**
* cms communication
*
* @param {String} url
* @param {Json} param
* @param {boolean} async
* @param {Object} callback
* @param {Object} errorCallback
*/
COMMON.cmsAjax = function (url, param, async = true, callback, errorCallback, type) {
var sysSettings = new COMMON.sysSetting();
if (url) {
$.ajax({
type: 'post',
url: url,
data: param,
dataType: type ? type : 'json',
cache: false,
async: async,
crossDomain: true,
beforeSend: function (xhr) {
xhr.setRequestHeader('X-AGT-AppId', sysSettings.appName);
xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion);
},
success: function (result) {
if (type == 'text') {
if (callback) callback(result);
return;
}
if (result.httpStatus == '200') {
if (callback) callback(result);
} else if (errorCallback) {
errorCallback(result);
} else if (result.httpStatus == '401') {
COMMON.goUrlWithCurrentParams(CONSTANT.PAGE_NAME.LOGIN);
} else if (result.httpStatus == '403') {
COMMON.closeLoading();
COMMON.displayAlert('errorOccurred');
} else {
COMMON.closeLoading();
COMMON.displayAlert(result.message);
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
if (errorCallback) {
errorCallback(XMLHttpRequest, textStatus, errorThrown);
} else {
COMMON.closeLoading();
COMMON.displayAlert('errorCommunicationFailed');
}
},
});
} else {
if (errorCallback) {
errorCallback();
} else {
COMMON.closeLoading();
COMMON.displayAlert('errorOccurred');
}
}
};
/**
* Communicate with cms and post
*
* @param {String} url
* @param {Object} params
* @param {String} method
*/
COMMON.postCommunication = function (url, params, method = 'post') {
const form = document.createElement('form');
form.method = method;
form.action = url;
for (const key in params) {
if (params.hasOwnProperty(key)) {
const hiddenField = document.createElement('input');
hiddenField.type = 'hidden';
hiddenField.name = key;
hiddenField.value = params[key];
form.appendChild(hiddenField);
}
}
document.body.appendChild(form);
form.submit();
};
/**
* Check if user is logged in
*
* @param {boolean} async
*/
COMMON.checkAuth = function (async = true) {
let params = {};
params.sid = COMMON.getSid;
const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.AUTH_SESSION;
COMMON.cmsAjax(url, params, async, null, function () {
COMMON.goUrlWithCurrentParams(CONSTANT.PAGE_NAME.LOGIN);
});
};
var ClientData = {
// Local :ユーザ情報(userInfo)_アカウントパス:String
userInfo_accountPath: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_accountPath, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_accountPath);
}
},
// Local :ユーザ情報(userInfo)_ログインID:String
userInfo_loginId: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_loginId, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_loginId);
}
},
// Local :ユーザ情報(userInfo)_アカウント情報記憶フラグ:Char(Y:可能, N:不可)
userInfo_rememberLogin: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_rememberLogin, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_rememberLogin);
}
},
// Session :ユーザ情報(userInfo)_ログインID:String
userInfo_loginId_session: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.userInfo_loginId, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.userInfo_loginId);
}
},
// Session :ユーザ情報(userInfo)_アカウントパス:String
userInfo_accountPath_session: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.userInfo_accountPath, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.userInfo_accountPath);
}
},
// Session
userInfo_userName: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.userInfo_userName, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.userInfo_userName);
}
},
// Local :ユーザ情報(userInfo)_最終ログイン日時:Datetime
userInfo_lastLoginTime: function (data) {
if (arguments.length > 0) {
COMMON.operateData(arguments, CONSTANT.KEYS.userInfo_lastLoginTime, undefined);
} else {
return COMMON.operateData(arguments, CONSTANT.KEYS.userInfo_lastLoginTime, undefined);
}
},
// Session:ユーザ情報(userInfo)_セッションID:String
userInfo_sid: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.userInfo_sid, data);
// COMMON.userSetting().set(CONSTANT.KEYS.userInfo_sid, data);
} else {
// return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_sid);
if (COMMON.userSession()) {
return SessionStorageUtils.get(CONSTANT.KEYS.userInfo_sid);
}
return null;
}
},
// Local: ユーザ情報(userInfo)_セッションID:String
userInfo_sid_local: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_sid_local, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_sid_local);
}
},
// Local: セッションIDのバックアップ
userInfo_sid_local_bak: function (data) {
if (arguments.length > 0) {
COMMON.userSetting().set(CONSTANT.KEYS.userInfo_sid_bak, data);
} else {
return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_sid_bak);
}
},
// Session :通知情報(pushInfo)_新着件数:Interger
pushInfo_newMsgNumber: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.pushInfo_newMsgNumber, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.pushInfo_newMsgNumber);
}
},
conf_apiUrl: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_apiUrl, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_apiUrl);
}
},
conf_apiLoginUrl: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_apiLoginUrl, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_apiLoginUrl);
}
},
conf_checkApiUrl: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_checkApiUrl, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_checkApiUrl);
}
},
conf_apiResourceDlUrl: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_apiResourceDlUrl, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_apiResourceDlUrl);
}
},
// Local :ユーザ情報(userInfo)_パスワードスキップ日時:Datetime
userInfo_pwdSkipDt: function (data) {
if (arguments.length > 0) {
COMMON.operateData(arguments, CONSTANT.KEYS.userInfo_pwdSkipDt, undefined);
} else {
return COMMON.operateData(arguments, CONSTANT.KEYS.userInfo_pwdSkipDt, undefined);
}
},
// Session :事業者オプション(serviceOpt)_ABookCheck:Char(Y:有効, N:無効)
serviceOpt_abook_check: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_abook_check, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_abook_check);
}
},
// Session : Tenant Service_Option(serviceOpt)_ChatFunction:Char(Y:Use, N:Unused)
serviceOpt_chat_function: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_abook_check, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_abook_check);
}
},
// Session :事業者オプション(serviceOpt)_初回ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制)
serviceOpt_force_pw_change_on_login: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_force_pw_change_on_login, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_force_pw_change_on_login);
}
},
// Session :事業者オプション(serviceOpt)_定期ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制)
serviceOpt_force_pw_change_periodically: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_force_pw_change_periodically, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_force_pw_change_periodically);
}
},
// Session :事業者オプション(serviceOpt)_任意のプッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_usable_push_message: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.serviceOpt_usable_push_message, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.serviceOpt_usable_push_message);
}
},
// Local
JumpQueue: function (data) {
if (arguments.length > 0) {
COMMON.operateData(arguments, CONSTANT.KEYS.JumpQueue, []);
} else {
return COMMON.operateData(arguments, CONSTANT.KEYS.JumpQueue, []);
}
},
// Local
IsJumpBack: function (data) {
if (arguments.length > 0) {
COMMON.operateData(arguments, CONSTANT.KEYS.IsJumpBack, undefined);
} else {
return COMMON.operateData(arguments, CONSTANT.KEYS.IsJumpBack, undefined);
}
},
};
/*
* Variables
*/
COMMON.userSessionObj = null;
COMMON.userSettingObj = null;
COMMON.sysSettingObj = null;
/*
* User Settings Class Definition
*/
var UserSetting = function () {
this.US_KEY = 'AVWUS';
this.userSetting = this.load();
};
/* get user setting from localStorage */
UserSetting.prototype.load = function () {
var storage = window.localStorage;
var value = null;
var js = null;
if (storage) {
var value = storage.getItem(this.US_KEY);
if (!value) {
value = '{}'; // 空JSON文字列
}
js = JSON.parse(value);
}
return js;
};
/* store user setting */
UserSetting.prototype.set = function (key, value) {
//if(!this.userSetting) {
this.userSetting = this.load();
//}
var values = this.userSetting;
if (!values) {
values = { key: value };
} else {
values[key] = value;
}
var storage = window.localStorage;
if (storage) {
var jsonStr = JSON.stringify(values);
storage.setItem(this.US_KEY, jsonStr);
}
this.userSetting = values;
};
/* grab user setting */
UserSetting.prototype.get = function (key) {
//if(!this.userSetting) {
this.userSetting = this.load();
//}
var values = this.userSetting;
if (values) {
return values[key];
}
return null;
};
/* show user setting object list */
UserSetting.prototype.show = function (elmid) {
var storage = window.localStorage;
var tags = '<p>';
if (storage) {
var value = storage.getItem(this.US_KEY);
if (value) {
var js = JSON.parse(value);
$.each(js, function (k, v) {
tags = tags + '<b>' + k + '</b>:' + v + '<br />';
});
}
tags = tags + '</p>';
$(elmid).html(tags);
}
};
/* ユーザ設定のキーリストを取得 */
UserSetting.prototype.keys = function () {
var storage = window.localStorage;
var keyList = [];
if (storage) {
var value = storage.getItem(this.US_KEY);
if (value) {
var js = JSON.parse(value);
var i = 0;
$.each(js, function (k, v) {
keyList[i++] = k;
});
}
return keyList;
}
return null;
};
/* ユーザ設定を削除 */
UserSetting.prototype.remove = function (key) {
var storage = window.localStorage;
if (storage) {
var value = storage.getItem(this.US_KEY);
if (value) {
var js = JSON.parse(value);
if (js) {
delete js[key];
storage.setItem(this.US_KEY, JSON.stringify(js));
}
}
}
};
/* ユーザ設定をすべて削除 */
UserSetting.prototype.removeAll = function () {
var storage = window.localStorage;
if (storage) {
storage.remove(this.US_KEY);
}
};
/*
* User Session Class Definition
*/
var UserSession = function () {
this.available = false;
};
/* Initialize User Session */
UserSession.prototype.init = function (option) {
this.available = false;
if (option == 'restore') {
var value = null;
try {
value = this._get('init');
} catch (e) {
value = null;
} finally {
if (value) {
this.available = true;
}
}
} else {
this.set('init', new Date().toLocaleString());
this.available = true;
}
};
/* store key, value item to user session */
UserSession.prototype.set = function (key, value) {
var storage = window.sessionStorage;
if (storage) {
if (this.available == false) {
if (key == 'init') {
storage.setItem('AVWS_' + key, value);
} else {
throw new Error('Session destoryed.');
}
} else {
storage.setItem('AVWS_' + key, value);
}
}
};
/* get session item value */
UserSession.prototype.get = function (key) {
var value = null;
if (this.available) {
value = this._get(key);
} else {
throw new Error('Session Destroyed.');
}
return value;
};
/* get item value from session storage */
UserSession.prototype._get = function (key) {
var storage = window.sessionStorage;
var value = null;
if (storage) {
value = storage.getItem('AVWS_' + key);
}
return value;
};
/* destroy user session */
UserSession.prototype.destroy = function () {
var storage = window.sessionStorage;
if (storage) {
storage.clear();
this.available = false;
}
};
/* show user session object list */
UserSession.prototype.show = function (elmid) {
var storage = window.sessionStorage;
var tags = '<p>';
if (storage) {
for (var i = 0; i < storage.length; i++) {
var key = storage.key(i);
var value = storage.getItem(key);
tags = tags + '<b>' + key + '</b>:' + value + '<br />';
}
tags = tags + '</p>';
$(elmid).html(tags);
}
};
/* Initialize system */
$(function () {
// システム設定ファイルの配置先パスの決定
var location = window.location.toString().toLowerCase();
var sysFile = '';
if (location.indexOf('/abweb') < 0) {
sysFile = '../abweb/common/json/sys/conf.json';
} else {
sysFile = '../common/json/sys/conf.json';
}
// システム設定ファイルを読み込む
$.ajax({
url: sysFile,
async: false,
cache: false,
dataType: 'json',
success: function (data) {
COMMON.sysSettingObj = data;
},
error: function (xmlHttpRequest, txtStatus, errorThrown) {
var error = 'Could not load the system configuration file. Please check it.';
error += '\n' + xmlHttpRequest.status + ' ' + txtStatus + ' ' + errorThrown + ' : ' + sysFile;
alert(error);
},
});
// ロード時に一旦エラー状態をクリアしておく
COMMON.clearError();
//#31919 【調査】商談支援システム GoogleChromeでビッチイン・アウトが効かない
navigator.pointerEnabled = navigator.maxTouchPoints > 0; // Edge 17 touch support workaround
document.documentElement.ontouchstart = navigator.maxTouchPoints > 0 ? function () {} : undefined; // Chrome 70 touch support workaround
});
// Hide the locking layout
COMMON.unlockLayout = function () {
$('#avw-sys-modal').hide();
};
// Show the locking layout
COMMON.lockLayout = function () {
if (document.getElementById('avw-sys-modal')) {
$('#avw-sys-modal').show();
} else {
var tags = '<div id="avw-sys-modal"></div>';
$('body').prepend(tags);
$('#avw-sys-modal').css({
opacity: 0.7,
position: 'fixed',
top: '0',
left: '0',
width: $(window).width(),
height: $(window).height(),
background: '#999',
'z-index': 100,
});
// resize error page
$(window).resize(function () {
$('#avw-sys-modal').css({
width: $(window).width(),
height: $(window).height(),
});
});
}
};
/* エラー状態をクリア */
COMMON.clearError = function () {
var session = window.sessionStorage;
if (session) {
session.setItem(COMMON.hasErrorKey, false);
}
};
/* エラー状態を取得 */
COMMON.hasError = function () {
var session = window.sessionStorage;
var isError = false;
if (session) {
isError = session.getItem(COMMON.hasErrorKey);
}
return isError == 'true';
};
/* エラー状態にセット */
COMMON.setErrorState = function () {
var session = window.sessionStorage;
if (session) {
session.setItem(COMMON.hasErrorKey, true);
}
};
///* get user environment object */
//function avwUserEnv() {
// if(COMMON.avwUserEnvObj == null) {
// COMMON.avwUserEnvObj = new UserEnvironment();
// }
// return COMMON.avwUserEnvObj;
//};
/* get user session object */
COMMON.userSession = function () {
if (!COMMON.userSessionObj) {
var obj = new UserSession();
obj.init('restore');
if (obj.available) {
COMMON.userSessionObj = obj;
return COMMON.userSessionObj;
} else {
return null;
}
}
return COMMON.userSessionObj;
};
/* create user session object */
COMMON.createUserSession = function () {
if (COMMON.userSessionObj) {
COMMON.userSessionObj.destroy();
} else {
COMMON.userSessionObj = new UserSession();
COMMON.userSessionObj.init();
}
return COMMON.userSessionObj;
};
/* get user setting object */
COMMON.userSetting = function () {
if (COMMON.userSettingObj == null) {
COMMON.userSettingObj = new UserSetting();
}
return COMMON.userSettingObj;
};
/* get system setting object */
COMMON.sysSetting = function () {
return COMMON.sysSettingObj;
};
/*
* Operations for session storage [start]
*/
var SessionStorageUtils = {
login: function () {
if (COMMON.userSession()) {
// Skip this case
} else {
COMMON.avwCreateUserSession();
}
},
get: function (strKey) {
return COMMON.userSession().get(strKey);
},
set: function (strKey, objValue) {
COMMON.userSession().set(strKey, objValue);
},
clear: function () {
if (COMMON.userSession()) {
COMMON.userSession().destroy();
}
},
remove: function (strKey) {
COMMON.userSession().set(strKey, null);
},
};
/*
* Operations for local storage
*/
var LocalStorageUtils = {
getUniqueId: function () {
var uniqueId = '';
if (COMMON.userSetting().get(CONSTANT.KEYS.userInfo_accountPath)) {
uniqueId += COMMON.userSetting().get(CONSTANT.KEYS.userInfo_accountPath);
}
if (COMMON.userSetting().get(CONSTANT.KEYS.userInfo_loginId)) {
uniqueId += '.' + COMMON.userSetting().get(CONSTANT.KEYS.userInfo_loginId);
}
if (uniqueId != '') {
uniqueId += '.';
}
return uniqueId;
},
get: function (strKey) {
var key = this.getUniqueId() + strKey;
return COMMON.userSetting().get(key);
},
set: function (strKey, objValue) {
var key = this.getUniqueId() + strKey;
COMMON.userSetting().set(key, objValue);
},
remove: function (strKey) {
var key = this.getUniqueId() + strKey;
COMMON.userSetting().remove(key);
SessionStorageUtils.remove(strKey);
},
clear: function () {
var localStorageKeys = COMMON.userSetting().keys();
for (var nIndex = 0; nIndex < localStorageKeys.length; nIndex++) {
var strKey = localStorageKeys[nIndex];
if ((strKey + '').contains(this.getUniqueId())) {
COMMON.userSetting().remove(strKey);
}
}
},
existKey: function (strKey) {
var keys = COMMON.userSetting().keys();
var findKey = this.getUniqueId() + strKey;
var isExisted = false;
if (keys != null && keys != undefined) {
for (var nIndex = 0; nIndex < keys.length; nIndex++) {
if (keys[nIndex] == findKey) {
isExisted = true;
break;
}
}
}
return isExisted;
},
};
/* String.format function def. */
COMMON.format = function (fmt) {
for (var i = 1; i < arguments.length; i++) {
var reg = new RegExp('\\{' + (i - 1) + '\\}', 'g');
fmt = fmt.replace(reg, arguments[i]);
}
return fmt;
};
// Get param url
COMMON.getUrlParam = function (name, url) {
if (!url) {
url = window.location.href;
}
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
var regexS = '[\\?&]' + name + '=([^&#]*)';
var regex = new RegExp(regexS);
var results = regex.exec(url);
if (results == null) {
return '';
} else {
// alert("results[0]:" + results[0]);
// alert("results[1]:" + results[1]);
return results[1];
}
};
COMMON.ToogleLogoutNortice = function () {
window.onbeforeunload = function (event) {
var message = I18N.i18nText('sysInfoWithoutLogout');
var e = event || window.event;
if (e) {
e.returnValue = message;
}
return message;
};
};
/*
* Get data from localstorage and sessionstorage synchronization If has any
* param (args.length > 0) -> setter If has not param (args.length = 0) ->
* getter . Get from session: + if it existed and key existed in localstorage ->
* return result + else: set value from local to sessionstorage -> return value
* of sessionstorage if value is not empty, otherwise, return default result.
*
*/
COMMON.operateData = function (args, strKey, returnDefaultData) {
if (args.length > 0) {
var data = args[0];
LocalStorageUtils.set(strKey, data);
SessionStorageUtils.set(strKey, JSON.stringify(data));
} else {
if (
SessionStorageUtils.get(strKey) != 'undefined' &&
SessionStorageUtils.get(strKey) != undefined &&
SessionStorageUtils.get(strKey) != '' &&
SessionStorageUtils.get(strKey) != null &&
SessionStorageUtils.get(strKey) != 'null'
) {
if (LocalStorageUtils.existKey(strKey) == true) {
return JSON.parse(SessionStorageUtils.get(strKey));
} else {
return returnDefaultData;
}
} else {
if (LocalStorageUtils.existKey(strKey) == true) {
SessionStorageUtils.set(strKey, JSON.stringify(LocalStorageUtils.get(strKey)));
return JSON.parse(SessionStorageUtils.get(strKey));
}
return returnDefaultData;
}
}
};
/**
* UTC current Time (millisecond)
*
* @returns UTC time
*/
COMMON.currentTime = function () {
return Date.now();
};
/*
* Operations for session storage [ end ]
*/
// =============================================================================================
// Utils for string, date, number [start]
// =============================================================================================
/*
* Convert date to JP format date time [start]
*/
/*
* YYYY/MM/DD HH:MM:SS
*/
Date.prototype.jpDateTimeString = function () {
var strResult = '';
var strYear = this.getFullYear() + '';
var strMonth = this.getMonth() + 1 + '';
var strDayInMonth = this.getDate() + '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
strResult += strYear.padLeft('0', 4) + '/' + strMonth.padLeft('0', 2) + '/' + strDayInMonth.padLeft('0', 2);
strResult += ' ' + strHour.padLeft('0', 2) + ':' + strMinute.padLeft('0', 2) + ':' + strSecond.padLeft('0', 2);
return strResult;
};
/*
* YYYY-MM-DD HH:MM:SS
*/
Date.prototype.jpDateTimeString1 = function () {
var strResult = '';
var strYear = this.getFullYear() + '';
var strMonth = this.getMonth() + 1 + '';
var strDayInMonth = this.getDate() + '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
strResult += strYear.padLeft('0', 4) + '-' + strMonth.padLeft('0', 2) + '-' + strDayInMonth.padLeft('0', 2);
strResult += ' ' + strHour.padLeft('0', 2) + ':' + strMinute.padLeft('0', 2) + ':' + strSecond.padLeft('0', 2);
return strResult;
};
/*
* yyyy/MM/dd
*/
Date.prototype.jpDateString = function () {
var strResult = '';
var strYear = this.getFullYear() + '';
var strMonth = this.getMonth() + 1 + '';
var strDayInMonth = this.getDate() + '';
strResult += strYear.padLeft('0', 4) + '/' + strMonth.padLeft('0', 2) + '/' + strDayInMonth.padLeft('0', 2);
return strResult;
};
/*
* HH:mm:ss
*/
Date.prototype.jpTimeString = function () {
var strResult = '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
strResult += ' ' + strHour.padLeft('0', 2) + ':' + strMinute.padLeft('0', 2) + ':' + strSecond.padLeft('0', 2);
return strResult;
};
/*
* HH:mm
*/
Date.prototype.jpShortTimeString = function () {
var strResult = '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
strResult += ' ' + strHour.padLeft('0', 2) + ':' + strMinute.padLeft('0', 2);
return strResult;
};
/*
* yyyyMMddHHmmss
*/
Date.prototype.toIdString = function () {
var strResult = '';
var strYear = this.getFullYear() + '';
var strMonth = this.getMonth() + 1 + '';
var strDayInMonth = this.getDate() + '';
var strHour = this.getHours() + '';
var strMinute = this.getMinutes() + '';
var strSecond = this.getSeconds() + '';
var strMilisecond = this.getMilliseconds() + '';
strResult += strYear.padLeft('0', 4) + strMonth.padLeft('0', 2) + strDayInMonth.padLeft('0', 2);
strResult += strHour.padLeft('0', 2) + strMinute.padLeft('0', 2) + strSecond.padLeft('0', 2) + strMilisecond.padLeft('0', 3);
return strResult;
};
// Subtract date to get days
Date.prototype.subtractByDays = function (targetDate) {
var milis = Math.abs(this - targetDate);
var days = Math.floor(milis / (60 * 60 * 24 * 1000));
return days;
};
Date.prototype.addSeconds = function (plusSeconds) {
var newDate = new Date(this.getTime() + plusSeconds * 1000);
return newDate;
};
// Subtract date to get days
Date.prototype.subtractBySeconds = function (targetDate) {
var milis = Math.abs(this - targetDate);
var days = Math.floor(milis / 1000);
return days;
};
/*
* Convert date to JP format date time [ end ]
*/
// trimming space from both side of the string
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g, '');
};
// trimming space from left side of the string
String.prototype.trimLeft = function () {
return this.replace(/^\s+/, '');
};
// trimming space from right side of the string
String.prototype.trimRight = function () {
return this.replace(/\s+$/, '');
};
// String: pads left
String.prototype.padLeft = function (padString, length) {
var str = this;
while (str.length < length) str = padString + str;
return str;
};
// String: pads right
String.prototype.padRight = function (padString, length) {
var str = this;
while (str.length < length) str = str + padString;
return str;
};
// Check contain string
String.prototype.contains = function (string) {
if (this.indexOf(string) != -1) {
return true;
}
return false;
};
// Number: pads left
Number.prototype.padLeft = function (padString, length) {
var str = this + '';
return str.padLeft(padString, length);
};
// Number: pads right
Number.prototype.padRight = function (padString, length) {
var str = this + '';
return str.padRight(padString, length);
};
// Clear data of array
Array.prototype.clear = function () {
this.splice(0, this.length);
};
// Function to set position of object to center
jQuery.fn.center = function () {
this.css('position', 'fixed');
this.css('top', ($(window).height() - this.height()) / 2 + 'px');
this.css('left', ($(window).width() - this.width()) / 2 + 'px');
return this;
};
......@@ -19,7 +19,6 @@ CONSTANT.SORT_TYPE = {
CONSTANT.PAGE_NAME = {
DASHBOARD: 'dashboard',
OPERATION_LIST: 'operationList',
FOOTER: 'mainFooter.html',
DEFAULT: 'index.html',
LOGIN: './login.html',
};
......@@ -66,8 +65,11 @@ CONSTANT.URL = {
PUSH_MESSAGE_DETAIL: 'pushMessageDetail/',
PUSH_MESSAGE_LIST: 'pushMessageList/',
SEND_PUSH_MESSAGE: 'sendPushMessage/',
<<<<<<< HEAD
IS_QUICK_REPORT: 'getOperationData/isQuickReport',
=======
>>>>>>> feature/1.0_check_web_dev
},
HTML: {
BASE: 'html/',
......
$(function(){
hide_del_btn();
$(function () {
hide_del_btn();
});
// 追加ボタン押下
$('.add').on('click',function(){
var base = $(this).parent().parent().parent('.tb-item');
base.find('.del').show();
// 入力フォームをクローン
base.clone(true).insertAfter(base);
// 追加した要素にスクロール
$("html,body").animate({scrollTop:base.next().offset().top});
// 入力フォームアコーディオン表示
base.parent().parent('.tb').find('.ac-tb-form').show();
/** Handle press the Add button */
$('.add').on('click', function () {
var base = $(this).parent().parent().parent('.tb-item');
base.find('.del').show();
// clone input form
base.clone(true).insertAfter(base);
// Scroll to added element
$('html,body').animate({ scrollTop: base.next().offset().top });
// Input form accordion display
base.parent().parent('.tb').find('.ac-tb-form').show();
});
/** Handle press the Delete button */
$('.del').on('click', function () {
var base = $(this).parent().parent().parent('.tb-item');
var tbwrap = base.parent('.tb-wrap');
var tb = tbwrap.parent('.tb');
// Delete area
base.remove();
// Hidden delete button
hide_del_btn();
// Form area display switch
tbWrapClear(tbwrap);
// 削除ボタン押下
$('.del').on('click',function(){
var base = $(this).parent().parent().parent('.tb-item');
var tbwrap = base.parent('.tb-wrap');
var tb = tbwrap.parent('.tb');
// エリアの削除
base.remove();
// ボタンの表示非表示切り替え
hide_del_btn();
// フォームエリア表示切り替え
tbWrapClear(tbwrap);
// 折りたたみアイコン非表示
if(tb.find('.ac-tb-form').is(':hidden')){
tb.find('.fold-area').addClass('hide');
}
// Hide collapse icon
if (tb.find('.ac-tb-form').is(':hidden')) {
tb.find('.fold-area').addClass('hide');
}
});
// 閉じるボタン押下
$('.close-window').on('click',function(){
window.close();
/** handle Press the close button */
$('.close-window').on('click', function () {
window.close();
});
// 表領域のフォームが一つの時、削除ボタンを非表示
function hide_del_btn(){
$('.tb-wrap').each(function(i, elem){
var len = $(elem).find('.tb-item').length;
//表の項目が一つの場合
if(len <= 1){
$(elem).find('.del').hide();
$(this).children('.tb-item').removeClass('visually-hidden');
// 入力フォームアコーディオン非表示
$(this).parent().find('.ac-tb-form').hide();
}
/** Hide delete button when there is only one tablespace form */
function hide_del_btn() {
$('.tb-wrap').each(function (i, elem) {
var len = $(elem).find('.tb-item').length;
// When there is one item in the table
if (len <= 1) {
$(elem).find('.del').hide();
$(this).children('.tb-item').removeClass('visually-hidden');
// Input form accordion hidden
$(this).parent().find('.ac-tb-form').hide();
}
});
}
// アコーディオンを閉めている際にフォームを削除した場合
// 子要素がすべて非表示の場合、親要素を非表示とする
function tbWrapClear(tbwrap){
if(tbwrap.children(':not(.visually-hidden)').length == 0){
tbwrap.addClass("visually-hidden");
}
else {
tbwrap.removeClass("visually-hidden");
}
/** Handle when deleting while closing the accordion */
function tbWrapClear(tbwrap) {
// If you delete the form while closing the accordion
// Hide parent element if all child elements are hidden
if (tbwrap.children(':not(.visually-hidden)').length == 0) {
tbwrap.addClass('visually-hidden');
} else {
tbwrap.removeClass('visually-hidden');
}
}
// 入力フォームアコーディオン
$('.ac-tb-form').on('click',function(){
var tb = $(this).parent().parent().parent('.tb');
var elems = tb.find('.tb-wrap').find('.tb-item');
var tbwrap = tb.find('.tb-wrap');
if(!$(this).hasClass('hide')){
elems.each(function(i) {
i = i + 1;
if( i != elems.size()){
$(this).addClass('visually-hidden');
}
});
$(this).text('開く');
// フォームエリア表示切り替え
tbWrapClear(tbwrap);
// 折りたたみアイコン表示
tb.find('.fold-area').removeClass('hide');
}else{
elems.removeClass('visually-hidden');
$(this).text('閉じる');
// フォームエリア表示切り替え
tbWrapClear(tbwrap);
// 折りたたみアイコン非表示
tb.find('.fold-area').addClass('hide');
}
// 開閉
$(this).toggleClass("hide");
/** input form accordion */
$('.ac-tb-form').on('click', function () {
var tb = $(this).parent().parent().parent('.tb');
var elems = tb.find('.tb-wrap').find('.tb-item');
var tbwrap = tb.find('.tb-wrap');
if (!$(this).hasClass('hide')) {
elems.each(function (i) {
i = i + 1;
if (i != elems.size()) {
$(this).addClass('visually-hidden');
}
});
$(this).text('開く');
// Form area display switch
tbWrapClear(tbwrap);
// Collapse icon view
tb.find('.fold-area').removeClass('hide');
} else {
elems.removeClass('visually-hidden');
$(this).text('閉じる');
// Form area display switch
tbWrapClear(tbwrap);
// Hide collapse icon
tb.find('.fold-area').addClass('hide');
}
// opening and closing
$(this).toggleClass('hide');
});
// トグル切り替え
$(".toggle").on("click", function() {
$(this).toggleClass("checked");
if(!$('input[name="check"]').prop("checked")) {
$(".toggle input").prop("checked", true);
} else {
$(".toggle input").prop("checked", false);
}
/** toggle switch */
$('.toggle').on('click', function () {
$(this).toggleClass('checked');
if (!$('input[name="check"]').prop('checked')) {
$('.toggle input').prop('checked', true);
} else {
$('.toggle input').prop('checked', false);
}
});
// メニュー表示
$('.c-dropdown-trigger').on("click",function(){
$('[data-target="' + $(this).attr('id') + '"]').toggleClass('show');
$('.mask').removeClass('hide');
/** Menu display */
$('.c-dropdown-trigger').on('click', function () {
$('[data-target="' + $(this).attr('id') + '"]').toggleClass('show');
$('.mask').removeClass('hide');
});
// メニューを閉じる
$('.mask').on("click",function(){
$('.mask').addClass('hide');
$('.c-dropdown-menu').removeClass('show');
/** Close menu */
$('.mask').on('click', function () {
$('.mask').addClass('hide');
$('.c-dropdown-menu').removeClass('show');
});
// カードリスト選択
$('.select-card-list .card .select-label').on("click",function(){
$(this).closest('.select-card-list').find('.card').removeClass('selected');
$(this).closest('.card').addClass('selected');
/** Select card list */
$('.select-card-list .card .select-label').on('click', function () {
$(this).closest('.select-card-list').find('.card').removeClass('selected');
$(this).closest('.card').addClass('selected');
});
// リスト表示切替(リスト表示)
$('.view-menu .view-list-btn').on("click",function(){
$('.view-block-btn').removeClass('active');
$('.view-list-btn').addClass('active');
$('.view-content').removeClass('view-block');
$('.view-content').addClass('view-list');
/** List display switching (list display) */
$('.view-menu .view-list-btn').on('click', function () {
$('.view-block-btn').removeClass('active');
$('.view-list-btn').addClass('active');
$('.view-content').removeClass('view-block');
$('.view-content').addClass('view-list');
});
// リスト表示切替(グリッド表示)
$('.view-menu .view-block-btn').on("click",function(){
$('.view-list-btn').removeClass('active');
$('.view-block-btn').addClass('active');
$('.view-content').removeClass('view-list');
$('.view-content').addClass('view-block');
/** List display switching (grid display) */
$('.view-menu .view-block-btn').on('click', function () {
$('.view-list-btn').removeClass('active');
$('.view-block-btn').addClass('active');
$('.view-content').removeClass('view-list');
$('.view-content').addClass('view-block');
});
// ローディング
$(function(){
function e() {
setTimeout(function(){
$.LoadingOverlay("hide");
}, 2000);
}
$(".search-form-btn").on('click', function(){
$.LoadingOverlay("show", {
image : "img/loading.gif"
/** loading */
$(function () {
function e() {
setTimeout(function () {
$.LoadingOverlay('hide');
}, 2000);
}
$('.search-form-btn').on('click', function () {
$.LoadingOverlay('show', {
image: 'img/loading.gif',
});
e();
});
e();
});
});
This source diff could not be displayed because it is too large. You can view the blob instead.
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
//グローバルの名前空間用のオブジェクトを用意する
var THICKBOX = {};
THICKBOX.tb_pathToImage = "";// "/common/images/loadingAnimation.gif";
THICKBOX.tmpPage;
THICKBOX.linkPage;
THICKBOX.TB_WIDTH;
THICKBOX.TB_HEIGHT;
// ページ上部からの位置
THICKBOX.pageTop = 10;
/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
//on page load call tb_init
$(document).ready(function(){
if (window == window.parent){
THICKBOX.tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
imgLoader = new Image();// preload image
imgLoader.src = THICKBOX.tb_pathToImage;
}else {
//2009/09/28 add h.kobayashi
$(".thickbox_link").click(function () {
var doc = window.document;
if(window != window.parent){
doc = parent.document;
}
if ($("#TB_iframeContent",doc).size() > 0){
THICKBOX.showLoading();
$('#TB_window',doc).hide();
}
return true;
});
//2009/09/28 add h.kobayashi
$("#tmpDesign > p > img:eq(0)").ready(function(){
var url = this.href || this.alt;
var caption = this.title || this.name || null;
var doc = window.document;
if(window != window.parent){
doc = parent.document;
}
if ($("#TB_iframeContent",doc).size() > 0){
var tmpImage = $("#tmpDesign > p > img:eq(0)");
var preImg = new Image();
preImg.src = tmpImage.attr("src");
preImg.onload = THICKBOX._imageLoaded;
if (preImg.width > preImg.height){
THICKBOX.TB_WIDTH = 820;
THICKBOX.TB_HEIGHT = 725;
}else{
THICKBOX.TB_WIDTH = 820;
THICKBOX.TB_HEIGHT = 725;
}
THICKBOX.TB_WIDTH = THICKBOX.TB_WIDTH + 15;
THICKBOX.TB_HEIGHT = THICKBOX.TB_HEIGHT + 30;
var ajaxContentW = THICKBOX.TB_WIDTH - 29;
var ajaxContentH = THICKBOX.TB_HEIGHT - 80;
$("#TB_title",doc).width(ajaxContentW);
//$("#TB_ajaxWindowTitle",doc).text(caption);
$('#TB_window',doc).width(ajaxContentW);
$('#TB_window',doc).height(ajaxContentH + 30);
$("#TB_iframeContent",doc).width(ajaxContentW);
$("#TB_iframeContent",doc).height(ajaxContentH);
var doctop = 0;
doctop = doc.documentElement.scrollTop;
// 画面中央に位置を調整
if (jQuery.browser.msie && jQuery.browser.version < 7) {
offsetTop = (doc.documentElement.clientHeight - THICKBOX.TB_HEIGHT)/2;
}else{
offsetTop = ($("body",doc).height() - THICKBOX.TB_HEIGHT)/2;
}
if ($(document).scrollTop() + offsetTop >= 0){
$("#TB_window",doc).css("top",doctop + offsetTop + "px");
}else{
$("#TB_window",doc).css("top",doctop + "px");
}
docwidth = $("body",doc).width();
marginsize = ((docwidth - THICKBOX.TB_WIDTH)/2);
$("#TB_window",doc).css("left","0px");
$("#TB_window",doc).css("margin-left",marginsize + "px");
$("#TB_window",doc).css("margin-right",marginsize + "px");
$('#TB_load',doc).hide();
}
//$('#TB_window',doc).css("left",$('#TB_window',doc).position().left + "px");
});
}
});
//2009.09.28 add kobayashi
THICKBOX._imageLoaded = function(){
var url = this.href || this.alt;
var caption = this.title || this.name || null;
var doc = window.document;
if(Boolean(parent)){
doc = parent.document;
}
if (this.width > this.height){
THICKBOX.TB_WIDTH = 800;
THICKBOX.TB_HEIGHT = 570;
}else{
THICKBOX.TB_WIDTH = 620;
THICKBOX.TB_HEIGHT = 650;
}
THICKBOX.TB_WIDTH = THICKBOX.TB_WIDTH + 15;
THICKBOX.TB_HEIGHT = THICKBOX.TB_HEIGHT + 30;
var ajaxContentW = THICKBOX.TB_WIDTH - 29;
var ajaxContentH = THICKBOX.TB_HEIGHT - 80;
$("#TB_title",doc).width(ajaxContentW);
//$("#TB_ajaxWindowTitle",doc).text(caption);
$('#TB_window',doc).width(ajaxContentW);
$('#TB_window',doc).height(ajaxContentH + 30);
$("#TB_iframeContent",doc).width(ajaxContentW);
$("#TB_iframeContent",doc).height(ajaxContentH);
var doctop = 0;
doctop = doc.documentElement.scrollTop;
// 画面中央に位置を調整
if (jQuery.browser.msie && jQuery.browser.version < 7) {
offsetTop = (doc.documentElement.clientHeight - THICKBOX.TB_HEIGHT)/2;
}else{
offsetTop = ($("body",doc).height() - THICKBOX.TB_HEIGHT)/2;
}
if ($(document).scrollTop() + offsetTop >= 0){
$("#TB_window",doc).css("top",doctop + offsetTop + "px");
}else{
$("#TB_window",doc).css("top",doctop + "px");
}
docwidth = $("body",doc).width();
marginsize = ((docwidth - THICKBOX.TB_WIDTH)/2);
$("#TB_window",doc).css("left","0px");
$("#TB_window",doc).css("margin-left",marginsize + "px");
$("#TB_window",doc).css("margin-right",marginsize + "px");
$('#TB_load',doc).hide();
$('#TB_window',doc).show();
//$("#TB_iframeContent",doc).attr("src",THICKBOX.linkPage);
};
//add thickbox to href & area elements that have a class of .thickbox
THICKBOX.tb_init = function(domChunk){
$(domChunk).click(function(){
var t = this.title || this.name || null;
var a = this.href || this.alt;
var g = this.rel || false;
THICKBOX.tb_show(t,a,g);
this.blur();
return false;
});
};
THICKBOX.tb_show = function(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
try {
if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
$("body","html").css({height: "100%", width: "100%"});
//$("html").css("overflow","hidden");
if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(THICKBOX.tb_remove);
}
$("#TB_HideSelect").css("overflow","hidden");
}else{//all others
if(document.getElementById("TB_overlay") === null){
$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(THICKBOX.tb_remove);
}
}
if(THICKBOX.tb_detectMacXFF()){
$("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
}else{
$("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
}
if(caption===null){caption="";}
if ($('#TB_load').size() == 0){
$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
}
THICKBOX.showLoading();
var baseURL;
if(url.indexOf("?")!==-1){ //ff there is a query string involved
baseURL = url.substr(0, url.indexOf("?"));
}else{
baseURL = url;
}
var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
var urlType = baseURL.toLowerCase().match(urlString);
var image_height = 0;
if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
TB_PrevCaption = "";
TB_PrevURL = "";
TB_PrevHTML = "";
TB_NextCaption = "";
TB_NextURL = "";
TB_NextHTML = "";
TB_imageCount = "";
TB_FoundURL = false;
if(imageGroup){
TB_TempArray = $("a[@rel="+imageGroup+"]").get();
for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
if (!(TB_TempArray[TB_Counter].href == url)) {
if (TB_FoundURL) {
TB_NextCaption = TB_TempArray[TB_Counter].title;
TB_NextURL = TB_TempArray[TB_Counter].href;
TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
} else {
TB_PrevCaption = TB_TempArray[TB_Counter].title;
TB_PrevURL = TB_TempArray[TB_Counter].href;
TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
}
} else {
TB_FoundURL = true;
TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);
}
}
}
imgPreloader = new Image();
imgPreloader.onload = function(){
imgPreloader.onload = null;
// Resizing large images - orginal by Christian Montoya edited by me.
var pagesize = THICKBOX.tb_getPageSize();
var x = pagesize[0] - 150;
var y = pagesize[1] - 150;
var imageWidth = imgPreloader.width;
var imageHeight = imgPreloader.height;
if (imageWidth > x) {
imageHeight = imageHeight * (x / imageWidth);
imageWidth = x;
if (imageHeight > y) {
imageWidth = imageWidth * (y / imageHeight);
imageHeight = y;
}
} else if (imageHeight > y) {
imageWidth = imageWidth * (y / imageHeight);
imageHeight = y;
if (imageWidth > x) {
imageHeight = imageHeight * (x / imageWidth);
imageWidth = x;
}
}
// End Resizing
THICKBOX.TB_WIDTH = imageWidth + 30;
THICKBOX.TB_HEIGHT = imageHeight + 60;
image_height = THICKBOX.TB_HEIGHT;
$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow' style='padding:10px 5px;'><a href='#' id='TB_closeWindowButton' title='閉じる'><img src='../common/images/bt_close.gif' alt='閉じる' width='31' height='31' /></a></div>");
$("#TB_closeWindowButton").click(THICKBOX.tb_remove);
if (!(TB_PrevHTML === "")) {
function goPrev(){
if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");
THICKBOX.tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
return false;
}
$("#TB_prev").click(goPrev);
}
if (!(TB_NextHTML === "")) {
function goNext(){
$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");
THICKBOX.tb_show(TB_NextCaption, TB_NextURL, imageGroup);
return false;
}
$("#TB_next").click(goNext);
}
document.onkeydown = function(e){
if (e == null) { // ie
keycode = event.keyCode;
} else { // mozilla
keycode = e.which;
}
if(keycode == 27){ // close
THICKBOX.tb_remove();
} else if(keycode == 190){ // display previous image
if(!(TB_NextHTML == "")){
document.onkeydown = "";
goNext();
}
} else if(keycode == 188){ // display next image
if(!(TB_PrevHTML == "")){
document.onkeydown = "";
goPrev();
}
}
};
THICKBOX.tb_position();
//$("#TB_load").remove();
$("#TB_load").hide();
$("#TB_ImageOff").click(THICKBOX.tb_remove);
$("#TB_window").css({display:"block"}); //for safari using css instead of show
};
imgPreloader.src = url;
image_height = 500;
}else{//code to show html
var queryString = url.replace(/^[^\?]+\??/,'');
var params = THICKBOX.tb_parseQuery( queryString );
THICKBOX.TB_WIDTH = (params['width']*1) + 15 || 630; //defaults to 630 if no paramaters were added to URL
THICKBOX.TB_HEIGHT = (params['height']*1) + 30 || 440; //defaults to 440 if no paramaters were added to URL
ajaxContentW = THICKBOX.TB_WIDTH - 29;
ajaxContentH = THICKBOX.TB_HEIGHT - 80;
if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window
urlNoQuery = url.split('TB_');
$("#TB_iframeContent").remove();
if(params['modal'] != "true"){//iframe no modal
$("#TB_window").css({visibility:"hidden",display:"block"});
$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='閉じる'><img src='../common/images/bt_close.gif' alt='閉じる' width='31' height='31' /></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='THICKBOX.tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");
}else{//iframe modal
$("#TB_overlay").unbind();
$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='THICKBOX.tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>");
}
}else{// not an iframe, ajax
if($("#TB_window").css("display") != "block"){
if(params['modal'] != "true"){//ajax no modal
$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img src='../common/images/bt_close.gif' alt='閉じる' width='31' height='31' /></a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
}else{//ajax modal
$("#TB_overlay").unbind();
$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
}
}else{//this means the window is already up, we are just loading new content via ajax
$("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
$("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
$("#TB_ajaxContent")[0].scrollTop = 0;
$("#TB_ajaxWindowTitle").html(caption);
}
}
$("#TB_closeWindowButton").click(THICKBOX.tb_remove);
if(url.indexOf('TB_inline') != -1){
$("#TB_ajaxContent").append($('#' + params['inlineId']).children());
$("#TB_window").unload(function () {
$('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
});
THICKBOX.tb_position();
//$("#TB_load").remove();
$("#TB_load").hide();
$("#TB_window").css({display:"block"});
}else if(url.indexOf('TB_iframe') != -1){
THICKBOX.tb_position();
if($.browser.safari){//safari needs help because it will not fire iframe onload
//$("#TB_load").remove();
$("#TB_load").hide();
$("#TB_window").css({display:"block"});
}
}else{
$("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
THICKBOX.tb_position();
//$("#TB_load").remove();
$("#TB_load").hide();
THICKBOX.tb_init("#TB_ajaxContent a.thickbox");
$("#TB_window").css({display:"block"});
});
}
image_height = THICKBOX.TB_HEIGHT;
}
// customize 2009/0914
$("#TB_overlay").height($(document).height());
// 画面中央に位置を調整
//var offsetTop = ($(window).height() - THICKBOX.TB_HEIGHT)/2;
//if ($(document).scrollTop() + offsetTop >= 0){
// $("#TB_window").css("top",$(document).scrollTop() + offsetTop + "px");
//}else{
// $("#TB_window").css("top",$(document).scrollTop() + "px");
//}
var doctop = 0;
if (jQuery.browser.msie) {
doctop = document.documentElement.scrollTop;
}else{
doctop = document.documentElement.scrollTop || window.pageYOffset;
}
// 画面中央に位置を調整
/*if (jQuery.browser.msie && jQuery.browser.version < 7) {
offsetTop = (document.documentElement.clientHeight - image_height)/2;
//offsetTop = (document.documentElement.clientHeight)/2;
}else{
offsetTop = ($("body").height() - image_height)/2;
//offsetTop = ($("body").height())/2;
}*/
offsetTop = pageTop;
if ($(document).scrollTop() + offsetTop >= 0){
$("#TB_window").css("top",doctop + offsetTop + "px");
}else{
$("#TB_window").css("top",doctop + "px");
}
//$("#TB_window").css("top",pageTop + "px")
if(!params['modal']){
document.onkeyup = function(e){
if (e == null) { // ie
keycode = event.keyCode;
} else { // mozilla
keycode = e.which;
}
if(keycode == 27){ // close
THICKBOX.tb_remove();
}
};
}
} catch(e) {
//nothing here
}
};
//helper functions below
THICKBOX.tb_showIframe = function(){
//$("#TB_load").remove();
$("#TB_load").hide();
$("#TB_window").css({visibility:"visible",display:"block"});
};
THICKBOX.tb_remove = function() {
$("#TB_imageOff").unbind("click");
$("#TB_closeWindowButton").unbind("click");
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
$("#TB_load").hide();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
$("body","html").css({height: "auto", width: "auto"});
$("html").css("overflow","");
}
document.onkeydown = "";
document.onkeyup = "";
return false;
};
THICKBOX.tb_position = function() {
$("#TB_window").css({marginLeft: '-' + parseInt((THICKBOX.TB_WIDTH / 2),10) + 'px', width: THICKBOX.TB_WIDTH + 'px'});
//if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
// $("#TB_window").css({marginTop: '-' + parseInt((THICKBOX.TB_HEIGHT / 2),10) + 'px'});
//}
};
THICKBOX.tb_parseQuery = function( query ) {
var Params = {};
if ( ! query ) {return Params;}// return empty object
var Pairs = query.split(/[;&]/);
for ( var i = 0; i < Pairs.length; i++ ) {
var KeyVal = Pairs[i].split('=');
if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
var key = unescape( KeyVal[0] );
var val = unescape( KeyVal[1] );
val = val.replace(/\+/g, ' ');
Params[key] = val;
}
return Params;
};
THICKBOX.tb_getPageSize = function(){
var de = document.documentElement;
var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
arrayPageSize = [w,h];
return arrayPageSize;
};
THICKBOX.tb_detectMacXFF = function() {
var userAgent = navigator.userAgent.toLowerCase();
if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
return true;
}
};
THICKBOX.showLoading = function(){
var doc = window.document;
if(window != window.parent){
doc = parent.document;
}
var doctop = 0;
doctop = doc.documentElement.scrollTop || window.pageYOffset;;
var offsetTop = 0;
// 画面中央に位置を調整
/*if (jQuery.browser.msie && jQuery.browser.version < 7) {
offsetTop = doc.documentElement.clientHeight/2;
}else{
offsetTop = $("body",doc).height()/2;
}*/
offsetTop = THICKBOX.TB_HEIGHT/2;
//offsetTop = pageTop;
$("#TB_load",doc).css("top",offsetTop + doctop + "px");
//$("#TB_load").css("top", + offsetTop + pageTop + "px")
$("#TB_load",doc).show();
};
......@@ -3,25 +3,26 @@
<head>
<meta charset="utf-8">
<title class="lang" lang="account_setting"></title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title class="lang" lang="account_setting"></title>
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/constant.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/validation.js"></script>
<script type="text/javascript" src="../common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/header/header.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/validation.js"></script>
<script type="text/javascript" src="../js/setting/settings.js?__UPDATEID__"></script>
</head>
......@@ -97,8 +98,8 @@
<!-- confirm -->
<div id="includedConfirmModal"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript" src="../common/js/web/app.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/app.js?__UPDATEID__"></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
</body>
</html>
......@@ -3,30 +3,32 @@
<head>
<meta charset="utf-8">
<title class="lang" lang="dashboard"></title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title class="lang" lang="dashboard"></title>
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script src="../common/js/constant.js?__UPDATEID__"></script>
<script src="../common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/app.js?__UPDATEID__"></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<script type="text/javascript" src="../js/header/header.js"></script>
<script type="text/javascript" src="../js/dashboardSetting/dashboardSetting.js"></script>
<script type="text/javascript" src="../js/template/template.js"></script>
<script type="text/javascript" src="../js/dashboard/dashboard.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
......@@ -36,11 +38,11 @@
</head>
<body>
<!-- header -->
<div id="includedHeader"></div>
<!-- dashboard -->
<main>
<div class="container-wrap">
<!-- header -->
<div id="includedHeader"></div>
<div id="includedMainTitle"></div>
<!-- sub title -->
......@@ -65,7 +67,5 @@
<!-- confirm -->
<div id="includedConfirmModal"></div>
<script type="text/javascript" src="../common/js/web/app.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/common.js?__UPDATEID__"></script>
</body>
</html>
\ No newline at end of file
......@@ -3,47 +3,44 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/newdash/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/newdash/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/newdash/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/newdash/fontawesome_relative_path.css">
<title class="lang" lang="workList"></title>
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script src="../common/js/web/i18n.js?__UPDATEID__"></script>
<!-- <script src="../common/js/web/common.js?__UPDATEID__"></script>
<script src="../common/js/web/avweb.js?__UPDATEID__"></script> -->
<script src="../common/js/i18n.js?__UPDATEID__"></script>
<script src="../common/js/constant.js?__UPDATEID__"></script>
<script src="../common/js/common.js?__UPDATEID__"></script>
<script src="../common/js/header.js?__UPDATEID__"></script>
<script src="../common/js/app.js?__UPDATEID__" defer></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<script src="../js/operationList/operationList.js?__UPDATEID__"></script>
<script src="../js/dashboardSetting/dashboardSetting.js?__UPDATEID__"></script>
<script src="../js/dashboard/dashboard.js?__UPDATEID__"></script>
<script src="../common/js/header.js?__UPDATEID__"></script>
<script src="../js/template/template.js?__UPDATEID__"></script>
<script src="../js/topPage/topPage.js?__UPDATEID__"></script>
<script src="../common/js/web/app.js?__UPDATEID__" defer></script>
<script src="../js/reportForm/reportForm.js?__UPDATEID__" defer></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
</head>
<body>
<!-- header -->
<div id="includedHeader"></div>
<div id="includedMainTitle"></div>
<!-- task list -->
<main>
<div class="container">
<div class="container-wrap">
<div id="includedMainTitle"></div>
<!-- search condition -->
<nav aria-label="search" class="search search-condition">
<div class="d-flex align-items-center">
......@@ -112,7 +109,7 @@
<!-- view menu -->
<nav aria-label="view" class="view-menu mt-2">
<div class="d-flex justify-content-between align-items-center">
<div class="fs-9"><span id="operationCount">0</span><span class="lang" lang="display"></span></div>
<div class="fs-9"><span id="operationCount"></span><span class="lang" lang="display"></span></div>
<div class="view">
<a href="#" class="text-decoration-none view-btn view-list-btn">
<img src="../common/img/icon_view_list.svg" type="image" alt="" class="list-block-icon mx-1 lang" lang="listDisplay" data-toggle="tooltip" data-placement="bottom" title="">
......@@ -149,8 +146,5 @@
<p id="checkLoadingMessage"></p>
<div id="checkLoadingImage"><img src='######' /></div>
</div>
<script type="text/javascript" src="../common/js/newdash/common.js?__UPDATEID__"></script>
</body>
</html>
......@@ -8,29 +8,29 @@
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title class="lang" lang="dspLogin"></title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title class="lang" lang="dspLogin"></title>
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<link rel="stylesheet" type="text/css" href="../css/login/login.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/constant.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/validation.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/login/login.js?__UPDATEID__"></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<script type="text/javascript" src="../common/js/validation.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/login/login.js?__UPDATEID__"></script>
<script type="text/javascript">
......
<footer class="fixed-bottom bg-light">
<nav class="d-flex justify-content-around">
<!--ダッシュボード-->
<a id="dashboardBottomNav" class="d-block w-100 text-center py-2 text-decoration-none text-secondary bottom-nav" href="dashboard.html">
<img src="../img/dashboard/icon_dashboard_inactive.svg" data-inactive-src="../img/dashboard/icon_dashboard_inactive.svg" data-src="../img/dashboard/icon_dashboard.svg" alt="buttonDashboard" class="p-1">
<div class="fs-7 multi-lang" data-msg="buttonDashboard"></div>
</a>
<!--作業一覧-->
<a id="operationListBottomNav" class="d-block w-100 text-center py-2 text-decoration-none text-primary bottom-nav" href="javascript:FOOTER.goOperationList();">
<i class="fas fa-tasks fs-14 p-1"></i>
<div class="fs-7 multi-lang" data-msg="buttonOperationList"></div>
</a>
<!--設定-->
<a class="d-block w-100 text-center py-2 text-decoration-none text-secondary" href="javascript:CHK_L.sendAppCommand('goSetting');">
<i class="fas fa-cog fs-14 p-1"></i>
<div class="fs-7 multi-lang" data-msg="buttonSetting"></div>
</a>
</nav>
</footer>
\ No newline at end of file
......@@ -3,28 +3,29 @@
<head>
<meta charset="utf-8">
<title class="lang" lang="pdfPrint"></title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title class="lang" lang="pdfPrint"></title>
<!-- favicons -->
<link href="../img/favicon.ico" rel="icon">
<link href="../img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script src="../common/js/constant.js?__UPDATEID__"></script>
<script src="../common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/header/header.js?__UPDATEID__"></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<script type="text/javascript" src="../js/pdfPrint/pdfPrint.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/app.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/app.js?__UPDATEID__"></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
......@@ -59,7 +60,9 @@
<!-- confirm -->
<div id="includedConfirmModal"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -3,27 +3,29 @@
<head>
<meta charset="utf-8">
<title>ピックアップ</title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title lang="pickup"></title>
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script src="../common/js/constant.js?__UPDATEID__"></script>
<script src="../common/js/common.js?__UPDATEID__"></script>
<script src="../common/js/header.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/template/template.js"></script>
<script type="text/javascript" src="../common/js/app.js?__UPDATEID__" defer></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<!-- main js -->
<script type="text/javascript" src="../js/operationList/operationList.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/dashboardSetting/dashboardSetting.js"></script>
......@@ -31,10 +33,8 @@
<script type="text/javascript" src="../js/header/header.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/template/template.js"></script>
<script type="text/javascript" src="/abweb/js/topPage/topPage.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/app.js?__UPDATEID__" defer></script>
<script type="text/javascript" src="../js/topPage/topPage.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/pickup/pickup.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
......@@ -44,11 +44,11 @@
</head>
<body >
<div id="includedHeader"></div>
<!-- pickup -->
<main>
<div class="container-wrap">
<!-- header -->
<div id="includedHeader"></div>
<div id="includedMainTitle"></div>
<!-- tab -->
......@@ -140,8 +140,6 @@
<!-- confirm -->
<div id="includedConfirmModal"></div>
<script type="text/javascript" src="../common/js/web/app.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/common.js?__UPDATEID__"></script>
</body>
</html>
\ No newline at end of file
......@@ -3,29 +3,28 @@
<head>
<meta charset="utf-8">
<title class="lang" lang="messageDetail"></title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title class="lang" lang="messageDetail"></title>
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/app.js"></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/app.js"></script>
<script type="text/javascript" src="../common/js/web/common.js"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script src="../common/js/constant.js?__UPDATEID__"></script>
<script src="../common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/header/header.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/template/template.js"></script>
<script type="text/javascript" src="../js/pushMessageDetail/pushMessageDetail.js"></script>
<script type="text/javascript">
......@@ -39,10 +38,10 @@
<!-- header -->
<div id="includedHeader"></div>
<div id="includedMainTitle"></div>
<!-- message detail -->
<main>
<div class="container-wrap">
<div id="includedMainTitle"></div>
<div class="row">
<div class="col-12">
<div class="card p-4">
......
......@@ -3,29 +3,28 @@
<head>
<meta charset="utf-8">
<title class="lang" lang="messageListTitle"></title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title class="lang" lang="messageListTitle"></title>
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/app.js"></script>
<script type="text/javascript" src="../common/js/web/common.js"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/header/header.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/template/template.js"></script>
<script src="../common/js/constant.js?__UPDATEID__"></script>
<script src="../common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/app.js"></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/header/header.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/template/template.js"></script>
<script type="text/javascript" src="../js/pushMessageList/pushMessageList.js"></script>
<script type="text/javascript">
......@@ -38,11 +37,11 @@
<body>
<div id="includedHeader"></div>
<!-- message list -->
<main>
<div class="container-wrap">
<!-- header -->
<div id="includedHeader"></div>
<div id="includedMainTitle"></div>
<!-- message -->
<ul class="card-list message-list p-0" id="messageList">
......@@ -55,6 +54,5 @@
</ul>
</div>
</main>
</body>
</html>
\ No newline at end of file
......@@ -3,26 +3,26 @@
<head>
<meta charset="utf-8">
<title class="lang" lang="reportForm"></title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title class="lang" lang="reportForm"></title>
<!-- favicons -->
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/constant.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/header/header.js?__UPDATEID__"></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
</head>
<body onload="RF.init();">
......@@ -60,7 +60,7 @@
<!-- confirm -->
<div id="includedConfirmModal"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript" src="../common/js/newdash/app.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/newdash/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/app.js?__UPDATEID__"></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
</body>
</html>
\ No newline at end of file
......@@ -9,23 +9,23 @@
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/constant.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/header/header.js?__UPDATEID__"></script>
<script type="text/javascript" src="../js/template/template.js"></script>
<script type="text/javascript" src="../js/reportList/reportList.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/app.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/app.js?__UPDATEID__"></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
<script src="https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
......@@ -46,6 +46,7 @@
<!-- confirm -->
<div id="includedConfirmModal"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</body>
......
......@@ -9,17 +9,15 @@
<link href="../common/img/favicon.ico" rel="icon">
<link href="../common/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- main css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/style.css">
<link rel="stylesheet" type="text/css" href="../common/css/app.css">
<link rel="stylesheet" type="text/css" href="../common/css/header.css">
<link rel="stylesheet" type="text/css" href="../common/css/style.css">
<!-- vender css -->
<link rel="stylesheet" type="text/css" href="../common/css/appCommon/fontawesome_relative_path.css">
<link rel="stylesheet" type="text/css" href="../common/css/fontawesome_relative_path.css">
<script type="text/javascript" src="../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/jquery/jquery-ui.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/web/app.js"></script>
<script type="text/javascript" src="../common/js/web/common.js"></script>
<script type="text/javascript" src="../common/js/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="../common/js/validation.js?__UPDATEID__"></script>
<script src="../common/js/constant.js?__UPDATEID__"></script>
......@@ -39,12 +37,11 @@
<body>
<div id="includedHeader"></div>
<!-- send message -->
<main>
<div class="container-wrap">
<!-- header -->
<div id="includedHeader"></div>
<div id="includedMainTitle"></div>
<!-- content -->
<div class="py-2">
......@@ -92,7 +89,8 @@
<!-- select template modal -->
<div id="includeTemplateModal"></div>
<script type="text/javascript" src="../common/js/app.js"></script>
<script src="../common/js/event.js?__UPDATEID__"></script>
</body>
</html>
\ No newline at end of file
......@@ -5,21 +5,21 @@
* @since cms:1.4.3.2&1.4.3.3 web:1.0
*/
var OL = {};
var OL = {};
OL.operationList; //Operation json data
OL.operationGroupMaster; //category(operationGroupMaster) json data
OL.isOperationGroupMaster = 0; //0: category(operationGroupMaster) not exist 1: category(operationGroupMaster) exist
OL.operationList; //Operation json data
OL.operationGroupMaster; //category(operationGroupMaster) json data
OL.isOperationGroupMaster = 0; //0: category(operationGroupMaster) not exist 1: category(operationGroupMaster) exist
OL.sortIndex;
OL.operationGroupMasterId;
OL.REPORT_TYPE = {
REPORTONLY: 0, //report only
INSPECT: 1, //rountine
WITHREPLY: 2, // report answer
WORKFLOW: 3 // continuous
}
REPORTONLY: 0, //report only
INSPECT: 1, //rountine
WITHREPLY: 2, // report answer
WORKFLOW: 3, // continuous
};
/**
* process on page load.
......@@ -30,9 +30,9 @@ OL.REPORT_TYPE = {
OL.init = function () {
console.log('OperationList start');
TEMPLATE.loadHearder("#includedHeader");
TEMPLATE.loadHearder('#includedHeader');
TEMPLATE.loadMainNavsTitle('#includedMainTitle', 'workList', null, null);
TEMPLATE.loadConfirmModal("#includedConfirmModal");
TEMPLATE.loadConfirmModal('#includedConfirmModal');
//get all data of operation list scene
OL.getAllDataWeb(sessionStorage.OL_searchKeyWord, sessionStorage.OL_sortIndex, sessionStorage.OL_searchStartDate, sessionStorage.OL_searchEndDate, sessionStorage.OL_operationGroupMasterId);
......@@ -41,7 +41,7 @@ OL.init = function () {
OL.createOperationList(OL.operationList);
//show category(operationGroupMaster)
$("#includedCategoryModal").load("../common/category-modal.html", function() {
$('#includedCategoryModal').load('../common/category-modal.html', function () {
OL.createCategory();
I18N.initi18n();
});
......@@ -152,48 +152,41 @@ OL.createOperationList = function (operationList) {
$('#operationCount').text(operationList.length);
//create & show
for (let i = 0; i < operationList.length; i++) {
let classIcon ;
switch (operationList[i].reportType)
{
let classIcon;
switch (operationList[i].reportType) {
case OL.REPORT_TYPE.REPORTONLY:
classIcon = "report";
classIcon = 'report';
break;
case OL.REPORT_TYPE.INSPECT:
classIcon = "inspection";
classIcon = 'inspection';
break;
case OL.REPORT_TYPE.WITHREPLY:
classIcon = "questionary";
classIcon = 'questionary';
break;
case OL.REPORT_TYPE.WORKFLOW:
classIcon = "proccess";
classIcon = 'proccess';
break;
}
let messageli = $("<li class='card mb-2' name = 'operationId_" + operationList[i].operationId + "' ></li>");
let ahrefRequiredFlg = $("<a href=\"javascript:OL.sendOperation('"
+ operationList[i].operationId
+ "', '"
+ operationList[i].operationType
+ "', '"
+ operationList[i].reportType
+ "', '"
+ operationList[i].enableAddReport
+ "');\" class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'></a>");
let divIcon = $("<div class='position-absolute translate-middle top-50 left-0 ml-3'>"
+ "<div class='type-icon'>"
+ "<span class='" + classIcon + "'></span>"
+ "</div></div>")
let divDate = "<div class='fs-8 text-secondary text-truncate'>"
+ OL.setOperationDate(operationList[i].operationStartDate)
+ ' ~ '
+ OL.setOperationDate(operationList[i].operationEndDate)
+ "</div>";
let divText = $("<div class='pl-5 h-100 d-flex align-items-center'>"
+ "<div class='w-100'>"
+ "<div class='fs-12 text-truncate'>" + operationList[i].operationName + "</div>"
+ divDate
+ "</div></div>");
let ahrefRequiredFlg = $(
'<a href="javascript:OL.sendOperation(\'' +
operationList[i].operationId +
"', '" +
operationList[i].operationType +
"', '" +
operationList[i].reportType +
"', '" +
operationList[i].enableAddReport +
"');\" class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'></a>",
);
let divIcon = $("<div class='position-absolute translate-middle top-50 left-0 ml-3'>" + "<div class='type-icon'>" + "<span class='" + classIcon + "'></span>" + '</div></div>');
let divDate =
"<div class='fs-8 text-secondary text-truncate'>" + OL.setOperationDate(operationList[i].operationStartDate) + ' ~ ' + OL.setOperationDate(operationList[i].operationEndDate) + '</div>';
let divText = $(
"<div class='pl-5 h-100 d-flex align-items-center'>" + "<div class='w-100'>" + "<div class='fs-12 text-truncate'>" + operationList[i].operationName + '</div>' + divDate + '</div></div>',
);
ahrefRequiredFlg.append(divIcon);
ahrefRequiredFlg.append(divText);
messageli.append(ahrefRequiredFlg);
......@@ -278,11 +271,7 @@ OL.createBreadcrumbList = function () {
'</a></li>',
);
} else {
$('#groupMasterPath').append(
'<li class="breadcrumb-item active" aria-current="page"><span>' +
operationGroupMaster.operationGroupMasterName +
'</span></li>',
);
$('#groupMasterPath').append('<li class="breadcrumb-item active" aria-current="page"><span>' + operationGroupMaster.operationGroupMasterName + '</span></li>');
}
});
}
......@@ -326,9 +315,9 @@ OL.createCategoryList = function () {
if (typeof OL.operationGroupMasterId === 'undefined' || OL.operationGroupMasterId == 0) {
allChecked = ' checked';
}
const allCategory = $('<ul><li><label><input type="radio" name="category" value="0"' +
allChecked +
'><span class="lang" lang="categoryAll">' + I18N.i18nText('categoryAll') + '</span></label></li></ul>');
const allCategory = $(
'<ul><li><label><input type="radio" name="category" value="0"' + allChecked + '><span class="lang" lang="categoryAll">' + I18N.i18nText('categoryAll') + '</span></label></li></ul>',
);
categoryListElement.append(allCategory);
//create category(operationGroupMaster) structure
for (let i = 0; i < OL.operationGroupMaster.length; i++) {
......@@ -384,7 +373,7 @@ OL.createCategoryList = function () {
/**
* Handle onclick category selection button
*/
OL.onClickCategorySelection = function() {
OL.onClickCategorySelection = function () {
const operationGroupMasterId = $('input[name="category"]:checked').val();
$('#category-modal .close').click();
OL.changeOperationGroupMaster(operationGroupMasterId);
......@@ -399,8 +388,7 @@ OL.changeSortType = function (sortType) {
$('.sort-type').removeClass('active');
$(sortType).addClass('active');
OL.sortIndex = $(sortType).attr('data-sort');
const sortStr = sortType.dataset.sort;
const sortNumber = parseFloat(sortStr);
const sortNumber = parseFloat(OL.sortIndex);
OL.sortOperationList(sortNumber);
OL.createOperationList(OL.operationList);
};
......@@ -499,8 +487,7 @@ OL.changeOperationGroupMaster = function (operationGroupMasterId) {
/**
* open the category(OperationGroupMaster)
*/
OL.openCategory = function () {
};
OL.openCategory = function () {};
/**
* reset search
......@@ -564,4 +551,3 @@ OL.createUrlOfOperation = function (enableAddReport, reportType) {
return baseUrl + CONSTANT.URL.CMS.HTML.LIST_REPORT_FORM;
}
};
......@@ -17,11 +17,11 @@ PP.init = function () {
};
PP.loadCommon = function () {
$('#includedHeader').load('../html/common/header.html', function () {
$('#includedHeader').load('../common/html/header.html', function () {
I18N.initi18n();
HEADER.init();
});
$('#includedConfirmModal').load('../html/common/confirmModal.html', function () {
$('#includedConfirmModal').load('../common/html/confirmModal.html', function () {
I18N.initi18n();
});
};
......
......@@ -15,7 +15,7 @@ RF.init = function () {
};
RF.loadCommon = function () {
$('#includedHeader').load('../html/common/header.html', function () {
$('#includedHeader').load('../common/html/header.html', function () {
I18N.initi18n();
HEADER.init();
});
......
......@@ -133,11 +133,11 @@ SETTINGS.getNewPasswordRe = function () {
// Initalize screen
SETTINGS.initScreen = function () {
$('#includedHeader').load('../html/common/header.html', function () {
$('#includedHeader').load('../common/html/header.html', function () {
I18N.initi18n();
HEADER.init();
});
$('#includedConfirmModal').load('../html/common/confirmModal.html', function () {
$('#includedConfirmModal').load('../common/html/confirmModal.html', function () {
I18N.initi18n();
});
// Login ID
......
......@@ -6,7 +6,7 @@ var TEMPLATE = {};
/** template load header */
TEMPLATE.loadHearder = function (elmentId) {
$(elmentId).load('../html/common/header.html', function () {
$(elmentId).load('../common/html/header.html', function () {
$('#iconHomeDashboard').removeClass('active');
$('#iconHomeWorkList').removeClass('active');
if (sessionStorage.activeHomePage == CONSTANT.PAGE_NAME.OPERATION_LIST) {
......@@ -33,7 +33,7 @@ TEMPLATE.loadDashboardSetting = function (elmentId, changeCallback) {
/** Template load confirm model */
TEMPLATE.loadConfirmModal = function (elmentId) {
$(elmentId).load('../html/common/confirmModal.html', function () {
$(elmentId).load('../common/html/confirmModal.html', function () {
I18N.initi18n();
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment