Commit 3debc584 by Masaru Abe

HTMLカスタムログ対応

parent 178f9281
...@@ -430,6 +430,8 @@ function LogEntity() { ...@@ -430,6 +430,8 @@ function LogEntity() {
this.pageLogArray = []; this.pageLogArray = [];
// 詳細ログ配列 // 詳細ログ配列
this.objectLogArray = []; this.objectLogArray = [];
// カスタムログ配列
this.customLogArray = [];
}; };
// Entity for PageLog // Entity for PageLog
function PageLogEntity() { function PageLogEntity() {
...@@ -455,6 +457,16 @@ function ObjectLogEntity() { ...@@ -455,6 +457,16 @@ function ObjectLogEntity() {
this.locationHeight = ""; this.locationHeight = "";
this.locationWidth = ""; this.locationWidth = "";
}; };
//Entity for CustomLog
function CustomLogEntity() {
this.contentid = "";
this.actionDate = new Date();
this.param1 = "";
this.param2 = "";
this.param3 = "";
this.param4 = "";
this.param5 = "";
};
/* /*
* Extract memo data from result of API and merge with local memo * Extract memo data from result of API and merge with local memo
...@@ -2479,6 +2491,26 @@ COMMON.SetObjectLogActionTime = function(strContentId, objectId, actionTime) { ...@@ -2479,6 +2491,26 @@ COMMON.SetObjectLogActionTime = function(strContentId, objectId, actionTime) {
}; };
//カスタムログを作成
COMMON.SetCustomLog = function(strContentId, customLog) {
// オーサリングプレビューなら無視
if (COMMON.isAuthoringPreview()) {
return;
}
var arrContentLogs = ClientData.ContentLogData();
for ( var nIndex = 0; nIndex < arrContentLogs.length; nIndex++) {
if (arrContentLogs[nIndex].contentid == strContentId) {
// ObjectLog追加
arrContentLogs[nIndex].customLogArray.push(customLog);
}
}
ClientData.ContentLogData(arrContentLogs);
};
/* /*
* Register reading log of content to server by calling api * Register reading log of content to server by calling api
*/ */
...@@ -2499,6 +2531,7 @@ COMMON.RegisterLog = function(is) { ...@@ -2499,6 +2531,7 @@ COMMON.RegisterLog = function(is) {
// ページログJSONデータの作成 // ページログJSONデータの作成
var pageLogJson = ""; var pageLogJson = "";
var objectLogJson = ""; var objectLogJson = "";
var customLogJson = "";
// biz/adモードで詳細ログY か getitsでgetits詳細ログY の場合 // biz/adモードで詳細ログY か getitsでgetits詳細ログY の場合
if ((ClientData.isGetitsMode() == false && ClientData.serviceOpt_usable_readinglog_object() == 'Y') if ((ClientData.isGetitsMode() == false && ClientData.serviceOpt_usable_readinglog_object() == 'Y')
...@@ -2608,6 +2641,67 @@ COMMON.RegisterLog = function(is) { ...@@ -2608,6 +2641,67 @@ COMMON.RegisterLog = function(is) {
} }
//カスタムログが有効な場合
if(ClientData.serviceOpt_html_custom_log() == 'Y'){
var customLogArray = arrContentLogs[nIndex].customLogArray;
// カスタムログオプションが有効ならログデータ作成
if (customLogArray != null && customLogArray.length > 0) {
var lines = [];
var actionDate;
// JSONデータ作成
for ( var nIndex2 = 0; nIndex2 < customLogArray.length; nIndex2++) {
actionDate = new Date(customLogArray[nIndex2].actionDate);
var line = [];
line.push(actionDate.jpDateTimeString1());
if (customLogArray[nIndex2].param1 != null) {
line.push(customLogArray[nIndex2].param1);
} else {
line.push("");
}
if (customLogArray[nIndex2].param2 != null) {
line.push(customLogArray[nIndex2].param2);
} else {
line.push("");
}
if (customLogArray[nIndex2].param3 != null) {
line.push(customLogArray[nIndex2].param3);
} else {
line.push("");
}
if (customLogArray[nIndex2].param4 != null) {
line.push(customLogArray[nIndex2].param4);
} else {
line.push("");
}
if (customLogArray[nIndex2].param5 != null) {
line.push(customLogArray[nIndex2].param5);
} else {
line.push("");
}
lines.push(line);
}
if (lines.length > 0) {
customLogJson = "{ header:[\"actionDate\",\"param1\",\"param2\",\"param3\",\"param4\",\"param5\"],";
customLogJson = customLogJson + "lines:";
customLogJson = customLogJson + JSON.stringify(lines);
customLogJson = customLogJson + "}";
}
}
}
var params = { var params = {
sid : ClientData.userInfo_sid(), sid : ClientData.userInfo_sid(),
contentId : arrContentLogs[nIndex].contentid, contentId : arrContentLogs[nIndex].contentid,
...@@ -2619,6 +2713,7 @@ COMMON.RegisterLog = function(is) { ...@@ -2619,6 +2713,7 @@ COMMON.RegisterLog = function(is) {
longitude : arrContentLogs[nIndex].longitude, longitude : arrContentLogs[nIndex].longitude,
pageLog : pageLogJson, pageLog : pageLogJson,
objectLog : objectLogJson, objectLog : objectLogJson,
customLog : customLogJson,
isStreaming : ClientData.isStreamingMode() isStreaming : ClientData.isStreamingMode()
}; };
// API送信結果判定 // API送信結果判定
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta name="viewport" content="">
<title></title>
<link rel="stylesheet" type="text/css" href="common/css/default.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="common/css/jquery-ui.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="common/css/jquery.toastmessage.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="common/css/default.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="common/css/screenLock.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="css/reset.css?__UPDATEID__" />
<!-- CSSビュー -->
<link rel="stylesheet" type="text/css" href="common/css/jquery.powertip.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="css/layout/viewer.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="css/layout/Anket.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="css/delete_shiori.css?__UPDATEID__" />
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="./common/js/jquery.ui.touch-punch.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?__UPDATEID__"></script>
<script type="text/javascript" src="./common/js/jquery.cookie.js?__UPDATEID__" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.js?__UPDATEID__" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.edit.js?__UPDATEID__" ></script>
<script type="text/javascript" src="./common/js/screenLock.js?__UPDATEID__"></script>
<script type="text/javascript" src="./common/js/avweb.js?__UPDATEID__"></script>
<script type="text/javascript" src="./common/js/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="./common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="./common/js/uuid.js?__UPDATEID__"></script>
<script type="text/javascript" src="./js/contentview_OpenUri.js?__UPDATEID__"></script>
<style>
html{
-ms-touch-action : none;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
CONTENTVIEW_OPENURI.ready();
});
</script>
</head>
<body id="contentview_openuri" oncontextmenu="return false;">
<div id="ws-body" class="wrapper_ws" >
<div id="main-ws">
</div>
</div>
<div id="viewer" style="display:none;" >
</div>
<iframe style="height:0px;width:0px;visibility:hidden" src="about:blank">
this frame prevents back forward cache
</iframe>
</body>
</html>
\ No newline at end of file
...@@ -11,9 +11,10 @@ CONTENTPREVIEW.ready = function(){ ...@@ -11,9 +11,10 @@ CONTENTPREVIEW.ready = function(){
var sid = COMMON.getUrlParam('sid',''); var sid = COMMON.getUrlParam('sid','');
var contentId = COMMON.getUrlParam('contentId',''); var contentId = COMMON.getUrlParam('contentId','');
var urlPath = COMMON.getUrlParam('urlpath','');
ClientData.userInfo_sid(sid); ClientData.userInfo_sid(sid);
ClientData.userInfo_sid_local(sid); ClientData.userInfo_sid_local(sid);
ClientData.userInfo_accountPath(COMMON.getUrlParam('urlpath','')); ClientData.userInfo_accountPath(urlPath);
ClientData.contentInfo_contentId(contentId); ClientData.contentInfo_contentId(contentId);
ClientData.conf_apiUrl( sysSettings.apiUrl ); ClientData.conf_apiUrl( sysSettings.apiUrl );
......
...@@ -2116,12 +2116,11 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2116,12 +2116,11 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
} }
else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){ else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){
//DHカスタム
var linkUrlTmp = resourceUrl; var linkUrlTmp = resourceUrl;
//DHカスタム //HTMLカスタムログオプション有り
if( ClientData.serviceOpt_daihatsu() == 'Y'){ if(ClientData.serviceOpt_html_custom_log() == 'Y'){
var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath()); var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath());
linkUrlTmp = linkUrlTmp + "?sid=" + CONTENTVIEW.getSessionId() + "&apiurl=" + apiUrl ; linkUrlTmp = linkUrlTmp + "?sid=" + CONTENTVIEW.getSessionId() + "&apiurl=" + apiUrl + "&cid=" + CONTENTVIEW_GENERAL.contentID;
} }
CONTENTVIEW.handleForContentTypeHTML(linkUrlTmp); CONTENTVIEW.handleForContentTypeHTML(linkUrlTmp);
} }
...@@ -5753,6 +5752,7 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5753,6 +5752,7 @@ CONTENTVIEW.ready = function(initContentId){
getType: 1, getType: 1,
isStreaming: ClientData.isStreamingMode() isStreaming: ClientData.isStreamingMode()
}; };
AVWEB.avwCmsApi(ClientData.userInfo_accountPath(), AVWEB.avwCmsApi(ClientData.userInfo_accountPath(),
"webGetContent", "webGetContent",
"GET", "GET",
...@@ -5941,4 +5941,51 @@ CONTENTVIEW.getSessionId = function(){ ...@@ -5941,4 +5941,51 @@ CONTENTVIEW.getSessionId = function(){
}; };
CONTENTVIEW.resvCustomLog = function(param1,param2,param3,param4,param5){
console.log("resvCustomLog:" + param1 + "-" + param2);
//カスタムログ作成
var customLog = new CustomLogEntity();
customLog.contentid = CONTENTVIEW_GENERAL.contentID;
if(param1 == null){
customLog.param1 = "";
} else {
customLog.param1 = param1;
}
if(param2 == null){
customLog.param2 = "";
} else {
customLog.param2 = param2;
}
if(param3 == null){
customLog.param3 = "";
} else {
customLog.param3 = param3;
}
if(param4 == null){
customLog.param4 = "";
} else {
customLog.param4 = param4;
}
if(param5 == null){
customLog.param5 = "";
} else {
customLog.param5 = param5;
}
COMMON.SetCustomLog(CONTENTVIEW_GENERAL.contentID, customLog);
};
window.addEventListener("message", receiveSize, false);
function receiveSize(e) {
//if (e.origin === "http://hogehoge.com") // for security: set this to the domain of the iframe - use e.uri if you need more specificity
// document.getElementById("bar").style.height = e.data + "px";
console.log("receiveSize:" + e.data);
};
...@@ -1788,12 +1788,16 @@ CONTENTVIEW_CREATEOBJECT.linkURL = function (mediaType, actionType, id, imageUrl ...@@ -1788,12 +1788,16 @@ CONTENTVIEW_CREATEOBJECT.linkURL = function (mediaType, actionType, id, imageUrl
//--- //---
var linkUrlTmp = linkUrl; var linkUrlTmp = linkUrl;
//DHカスタム //HTMLカスタムログオプション有り
if( ClientData.serviceOpt_daihatsu() == 'Y'){ if(ClientData.serviceOpt_html_custom_log() == 'Y'){
var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath()); var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath());
linkUrlTmp = linkUrlTmp + "?sid=" + CONTENTVIEW.getSessionId() + "&apiurl=" + apiUrl ; linkUrlTmp = linkUrlTmp + "?sid=" + CONTENTVIEW.getSessionId() + "&apiurl=" + apiUrl + "&cid=" + CONTENTVIEW_GENERAL.contentID;
} }
//モバイル&getitsなら強制的にWindowOpen
if (CONTENTVIEW_GENERAL.avwUserEnvObj.isMobile() && ClientData.isGetitsMode() ) {
browserType = 1;
}
if( browserType == 0 ){ if( browserType == 0 ){
CONTENTVIEW_CREATEOBJECT.showHtml(linkUrlTmp, objectId ); CONTENTVIEW_CREATEOBJECT.showHtml(linkUrlTmp, objectId );
CONTENTVIEW_GENERAL.showDialog(true); CONTENTVIEW_GENERAL.showDialog(true);
......
...@@ -324,10 +324,10 @@ CONTENTVIEW_GETDATA.getMediaType1 = function(iValueObj) { ...@@ -324,10 +324,10 @@ CONTENTVIEW_GETDATA.getMediaType1 = function(iValueObj) {
if(tempData.resourceId == resourceId){ if(tempData.resourceId == resourceId){
resourceUrl = tempData.resourceUrl; resourceUrl = tempData.resourceUrl;
//DHカスタム //HTMLカスタムログオプション有り
if( ClientData.serviceOpt_daihatsu() == 'Y'){ if(ClientData.serviceOpt_html_custom_log() == 'Y'){
var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath()); var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath());
resourceUrl = resourceUrl + "?sid=" + CONTENTVIEW.getSessionId() + "&apiurl=" + apiUrl ; resourceUrl = resourceUrl + "?sid=" + CONTENTVIEW.getSessionId() + "&apiurl=" + apiUrl + "&cid=" + CONTENTVIEW_GENERAL.contentID;
} }
break; break;
} }
...@@ -766,10 +766,10 @@ CONTENTVIEW_GETDATA.getMediaType9 = function(iValueObj) { ...@@ -766,10 +766,10 @@ CONTENTVIEW_GETDATA.getMediaType9 = function(iValueObj) {
if(tempData.resourceId == resourceId){ if(tempData.resourceId == resourceId){
resourceUrl = tempData.resourceUrl; resourceUrl = tempData.resourceUrl;
//DHカスタム //HTMLカスタムログオプション有り
if( ClientData.serviceOpt_daihatsu() == 'Y'){ if(ClientData.serviceOpt_html_custom_log() == 'Y'){
var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath()); var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath());
resourceUrl = resourceUrl + "?sid=" + CONTENTVIEW.getSessionId() + "&apiurl=" + apiUrl ; resourceUrl = resourceUrl + "?sid=" + CONTENTVIEW.getSessionId() + "&apiurl=" + apiUrl + "&cid=" + CONTENTVIEW_GENERAL.contentID;
} }
break; break;
} }
......
//名前空間用のオブジェクトを用意する
var CONTENTVIEW_OPENURI = {};
CONTENTVIEW_OPENURI.ready = function(){
//ビューア、共有表示パーツ読み込み
$("#viewer").load("./inc_contentview.html?__UPDATEID__", function (myData, myStatus, xhr){
//読み込み完了時の処理
I18N.i18nReplaceText();
});
setTimeout(function(){
CONTENTVIEW_OPENURI.showContentView();
}, 200);
};
CONTENTVIEW_OPENURI.showContentView = function(){
$("#ws-body").hide();
//$("#topcontrol").hide();
CONTENTVIEW_INITOBJECT.clearViewerComponent();
CONTENTVIEW.cssInit();
$("#viewer").show();
CONTENTVIEW.ready();
};
$("document").ready(function () {
//CONTENTVIEW_OPENURI.ready();
});
//グローバルの名前空間用のオブジェクトを用意する //グローバルの名前空間用のオブジェクトを用意する
var LOGIN = {}; var LOGIN = {};
//var requirePasswordChange; // var requirePasswordChange;
LOGIN.userinfo_sid; LOGIN.userinfo_sid;
LOGIN.userInfo_userName; LOGIN.userInfo_userName;
LOGIN.optionList = []; LOGIN.optionList = [];
...@@ -18,7 +17,7 @@ LOGIN.avwUserEnvObj = new UserEnvironment(); ...@@ -18,7 +17,7 @@ LOGIN.avwUserEnvObj = new UserEnvironment();
LOGIN.timeWaitSplashScreen = 2000;// wait splash screen 2 second LOGIN.timeWaitSplashScreen = 2000;// wait splash screen 2 second
//Load login Info // Load login Info
LOGIN.loadLoginInfo = function() { LOGIN.loadLoginInfo = function() {
$('#chkRemember').attr('checked', 'checked'); $('#chkRemember').attr('checked', 'checked');
if (ClientData.userInfo_accountPath() != null) { if (ClientData.userInfo_accountPath() != null) {
...@@ -30,14 +29,14 @@ LOGIN.loadLoginInfo = function() { ...@@ -30,14 +29,14 @@ LOGIN.loadLoginInfo = function() {
} }
}; };
//Initial Screen // Initial Screen
LOGIN.initialScreen = function() { LOGIN.initialScreen = function() {
if (ClientData.userInfo_rememberLogin()) { if (ClientData.userInfo_rememberLogin()) {
LOGIN.loadLoginInfo(); LOGIN.loadLoginInfo();
} }
}; };
//check Save Login Info // check Save Login Info
LOGIN.saveLoginInfo = function() { LOGIN.saveLoginInfo = function() {
var lang = I18N.getCurrentLanguage(); var lang = I18N.getCurrentLanguage();
...@@ -60,32 +59,29 @@ LOGIN.saveLoginInfo = function() { ...@@ -60,32 +59,29 @@ LOGIN.saveLoginInfo = function() {
ClientData.userInfo_loginId_session(loginId); ClientData.userInfo_loginId_session(loginId);
ClientData.userInfo_userName(LOGIN.userInfo_userName); ClientData.userInfo_userName(LOGIN.userInfo_userName);
if(chkRemember == 'checked') if (chkRemember == 'checked') {
{
ClientData.userInfo_rememberLogin(true); ClientData.userInfo_rememberLogin(true);
} } else {
else
{
ClientData.userInfo_rememberLogin(false); ClientData.userInfo_rememberLogin(false);
} }
ClientData.userInfo_lastLoginTime(date.jpDateTimeString()); ClientData.userInfo_lastLoginTime(date.jpDateTimeString());
ClientData.userInfo_sid_local(LOGIN.userinfo_sid); ClientData.userInfo_sid_local(LOGIN.userinfo_sid);
//バックアップにも保持 // バックアップにも保持
ClientData.userInfo_sid_local_bak(LOGIN.userinfo_sid); ClientData.userInfo_sid_local_bak(LOGIN.userinfo_sid);
LOGIN.saveServiceUserOption(); LOGIN.saveServiceUserOption();
//ページジャンプ設定をクリア // ページジャンプ設定をクリア
ClientData.JumpQueue([]); ClientData.JumpQueue([]);
ClientData.IsJumpBack(false); ClientData.IsJumpBack(false);
}; };
//Check validation // Check validation
LOGIN.checkValidation = function() { LOGIN.checkValidation = function() {
//暗号化モードならチェック無し // 暗号化モードならチェック無し
if(ClientData.serviceOpt_encryption() == 'Y') { if (ClientData.serviceOpt_encryption() == 'Y') {
return true; return true;
} }
...@@ -99,27 +95,24 @@ LOGIN.checkValidation = function() { ...@@ -99,27 +95,24 @@ LOGIN.checkValidation = function() {
msgError.attr('lang', 'msgLoginEmpty'); msgError.attr('lang', 'msgLoginEmpty');
msgError.show(); msgError.show();
return false; return false;
} } else if (!ValidationUtil.CheckRequiredForText(loginId)) {
else if (!ValidationUtil.CheckRequiredForText(loginId)) {
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(I18N.i18nText('msgLoginEmpty')); msgError.html(I18N.i18nText('msgLoginEmpty'));
msgError.attr('lang', 'msgLoginEmpty'); msgError.attr('lang', 'msgLoginEmpty');
msgError.show(); msgError.show();
return false; return false;
} } else if (!ValidationUtil.CheckRequiredForText(password)) {
else if (!ValidationUtil.CheckRequiredForText(password)) {
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(I18N.i18nText('msgLoginEmpty')); msgError.html(I18N.i18nText('msgLoginEmpty'));
msgError.attr('lang', 'msgLoginEmpty'); msgError.attr('lang', 'msgLoginEmpty');
msgError.show(); msgError.show();
return false; return false;
} } else {
else {
return true; return true;
} }
}; };
//Check Dialog validation // Check Dialog validation
LOGIN.checkDialogValidation = function() { LOGIN.checkDialogValidation = function() {
var currentPass = $('#txtCurrentPass').val(); var currentPass = $('#txtCurrentPass').val();
var newPass = $('#txtNewPass').val(); var newPass = $('#txtNewPass').val();
...@@ -132,30 +125,26 @@ LOGIN.checkDialogValidation = function() { ...@@ -132,30 +125,26 @@ LOGIN.checkDialogValidation = function() {
msgError.attr('lang', 'msgPwdEmpty'); msgError.attr('lang', 'msgPwdEmpty');
msgError.show(); msgError.show();
return false; return false;
} } else if (!ValidationUtil.CheckRequiredForText(newPass)) {
else if (!ValidationUtil.CheckRequiredForText(newPass)) {
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(I18N.i18nText('msgPwdEmpty')); msgError.html(I18N.i18nText('msgPwdEmpty'));
msgError.attr('lang', 'msgPwdEmpty'); msgError.attr('lang', 'msgPwdEmpty');
msgError.show(); msgError.show();
return false; return false;
} } else {
else if (newPass != confirmPass) {
{
if(newPass != confirmPass){
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(I18N.i18nText('msgPwdNotMatch')); msgError.html(I18N.i18nText('msgPwdNotMatch'));
msgError.attr('lang', 'msgPwdNotMatch'); msgError.attr('lang', 'msgPwdNotMatch');
msgError.show(); msgError.show();
return false; return false;
} } else {
else{
return true; return true;
} }
} }
}; };
//Login Process // Login Process
LOGIN.processLogin = function() { LOGIN.processLogin = function() {
var accountPath = ""; var accountPath = "";
var loginId = ""; var loginId = "";
...@@ -170,21 +159,21 @@ LOGIN.processLogin = function() { ...@@ -170,21 +159,21 @@ LOGIN.processLogin = function() {
var skipPwdDate; var skipPwdDate;
var params = { var params = {
previousSid: '', previousSid : '',
loginId: loginId, loginId : loginId,
password: password, password : password,
urlpath: accountPath urlpath : accountPath
}; };
//引数パラメータがあれば取得 // 引数パラメータがあれば取得
var paramContentID = COMMON.getUrlParam('cid', ''); var paramContentID = COMMON.getUrlParam('cid', '');
// Set sid for login, this will be checked authoring 2 sessions // Set sid for login, this will be checked authoring 2 sessions
if (ClientData.userInfo_sid_local()) { if (ClientData.userInfo_sid_local()) {
params.previousSid = ClientData.userInfo_sid_local(); params.previousSid = ClientData.userInfo_sid_local();
} else { } else {
//OpenUrlでコンテンツ開く場合 // OpenUrlでコンテンツ開く場合
if( paramContentID != '' ){ if (paramContentID != '') {
if (ClientData.userInfo_sid_local_bak()) { if (ClientData.userInfo_sid_local_bak()) {
params.previousSid = ClientData.userInfo_sid_local_bak(); params.previousSid = ClientData.userInfo_sid_local_bak();
} }
...@@ -192,9 +181,9 @@ LOGIN.processLogin = function() { ...@@ -192,9 +181,9 @@ LOGIN.processLogin = function() {
} }
// Get url to login // Get url to login
var apiLoginUrl = ClientData.conf_apiLoginUrl(); //sysSettings.apiLoginUrl; var apiLoginUrl = ClientData.conf_apiLoginUrl(); // sysSettings.apiLoginUrl;
AVWEB.avwCmsApiWithUrl(apiLoginUrl, null, 'webClientLogin', 'GET', params, function (data) { AVWEB.avwCmsApiWithUrl(apiLoginUrl, null, 'webClientLogin', 'GET', params, function(data) {
LOGIN.userinfo_sid = data.sid; LOGIN.userinfo_sid = data.sid;
LOGIN.userInfo_userName = data.userName; LOGIN.userInfo_userName = data.userName;
LOGIN.optionList = data.serviceOptionList; LOGIN.optionList = data.serviceOptionList;
...@@ -210,31 +199,32 @@ LOGIN.processLogin = function() { ...@@ -210,31 +199,32 @@ LOGIN.processLogin = function() {
$('#main-error-message').css('display', 'none'); $('#main-error-message').css('display', 'none');
if(ClientData.serviceOpt_encryption() == 'Y') { if (ClientData.serviceOpt_encryption() == 'Y') {
data.requirePasswordChange = 0; data.requirePasswordChange = 0;
} }
if (data.requirePasswordChange == 0) { if (data.requirePasswordChange == 0) {
ClientData.userInfo_sid(ClientData.userInfo_sid_local()); ClientData.userInfo_sid(ClientData.userInfo_sid_local());
//OpenUrlでコンテンツ開く場合 // OpenUrlでコンテンツ開く場合
if( paramContentID != '' ){ if (paramContentID != '') {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 // ホームへ移動
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} } else if (data.requirePasswordChange == 1) {
else if (data.requirePasswordChange == 1) {
if (LOGIN.force_pw_change_on_login == 2) { // force to change password if (LOGIN.force_pw_change_on_login == 2) { // force to change
// password
LOGIN.OpenChangePasswordDialog(); LOGIN.OpenChangePasswordDialog();
$(".ui-dialog-titlebar").hide(); $(".ui-dialog-titlebar").hide();
$('#btnSkip').hide(); $('#btnSkip').hide();
$("#txtPwdRemind").css('visibility', 'hidden'); $("#txtPwdRemind").css('visibility', 'hidden');
} } else if (LOGIN.force_pw_change_on_login == 1) { // recommend
else if (LOGIN.force_pw_change_on_login == 1) { // recommend to change password // to change
// password
// Check 30 days // Check 30 days
skipPwdDate = ClientData.userInfo_pwdSkipDt(); skipPwdDate = ClientData.userInfo_pwdSkipDt();
...@@ -243,53 +233,50 @@ LOGIN.processLogin = function() { ...@@ -243,53 +233,50 @@ LOGIN.processLogin = function() {
LOGIN.OpenChangePasswordDialog(); LOGIN.OpenChangePasswordDialog();
$('#btnSkip').show(); $('#btnSkip').show();
$(".ui-dialog-titlebar").hide(); $(".ui-dialog-titlebar").hide();
} } else {
else {
var date = new Date(); var date = new Date();
var skpPwdDt = new Date(skipPwdDate); var skpPwdDt = new Date(skipPwdDate);
var numDay = date.subtractByDays(skpPwdDt); var numDay = date.subtractByDays(skpPwdDt);
if (numDay <= 30) { if (numDay <= 30) {
ClientData.userInfo_sid(ClientData.userInfo_sid_local()); ClientData.userInfo_sid(ClientData.userInfo_sid_local());
//OpenUrlでコンテンツ開く場合 // OpenUrlでコンテンツ開く場合
if( paramContentID != '' ){ if (paramContentID != '') {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 // ホームへ移動
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} } else if (numDay > 30) {
else if (numDay > 30) {
LOGIN.OpenChangePasswordDialog(); LOGIN.OpenChangePasswordDialog();
$('#btnSkip').show(); $('#btnSkip').show();
$(".ui-dialog-titlebar").hide(); $(".ui-dialog-titlebar").hide();
} }
} }
} } else { // no need to change password
else { // no need to change password
ClientData.userInfo_sid(ClientData.userInfo_sid_local()); ClientData.userInfo_sid(ClientData.userInfo_sid_local());
//OpenUrlでコンテンツ開く場合 // OpenUrlでコンテンツ開く場合
if( paramContentID != '' ){ if (paramContentID != '') {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 // ホームへ移動
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} }
} } else if (data.requirePasswordChange == 2) {
else if (data.requirePasswordChange == 2) {
if (LOGIN.force_pw_change_periodically == 1) { // recommend to change password if (LOGIN.force_pw_change_periodically == 1) { // recommend to
// change
// password
$('#btnSkip').show(); $('#btnSkip').show();
skipPwdDate = ClientData.userInfo_pwdSkipDt(); skipPwdDate = ClientData.userInfo_pwdSkipDt();
if (skipPwdDate == null || skipPwdDate == 'undefined') { if (skipPwdDate == null || skipPwdDate == 'undefined') {
LOGIN.OpenChangePasswordDialog(); LOGIN.OpenChangePasswordDialog();
$(".ui-dialog-titlebar").hide(); $(".ui-dialog-titlebar").hide();
} } else {
else {
var date = new Date(); var date = new Date();
var skpPwdDt = new Date(skipPwdDate); var skpPwdDt = new Date(skipPwdDate);
...@@ -298,47 +285,47 @@ LOGIN.processLogin = function() { ...@@ -298,47 +285,47 @@ LOGIN.processLogin = function() {
if (numDay <= 30) { if (numDay <= 30) {
ClientData.userInfo_sid(ClientData.userInfo_sid_local()); ClientData.userInfo_sid(ClientData.userInfo_sid_local());
//OpenUrlでコンテンツ開く場合 // OpenUrlでコンテンツ開く場合
if( paramContentID != '' ){ if (paramContentID != '') {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 // ホームへ移動
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} } else if (numDay > 30) {
else if (numDay > 30) {
LOGIN.OpenChangePasswordDialog(); LOGIN.OpenChangePasswordDialog();
$(".ui-dialog-titlebar").hide(); $(".ui-dialog-titlebar").hide();
} }
} }
} else if (LOGIN.force_pw_change_periodically == 2) { // Force to change password } else if (LOGIN.force_pw_change_periodically == 2) { // Force
// to
// change
// password
LOGIN.OpenChangePasswordDialog(); LOGIN.OpenChangePasswordDialog();
$('#btnSkip').hide(); $('#btnSkip').hide();
$(".ui-dialog-titlebar").hide(); $(".ui-dialog-titlebar").hide();
$("#txtPwdRemind").css('visibility', 'hidden'); $("#txtPwdRemind").css('visibility', 'hidden');
} } else { // No need to change password
else { // No need to change password
ClientData.userInfo_sid(ClientData.userInfo_sid_local()); ClientData.userInfo_sid(ClientData.userInfo_sid_local());
//OpenUrlでコンテンツ開く場合 // OpenUrlでコンテンツ開く場合
if( paramContentID != '' ){ if (paramContentID != '') {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 // ホームへ移動
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} }
} }
} } else {
else {
LOGIN.login_errorMessage = data.errorMessage; LOGIN.login_errorMessage = data.errorMessage;
$('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), data.errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), data.errorMessage).toString());
$('#main-error-message').show(); $('#main-error-message').show();
} }
}, function (xhr, statusText, errorThrown) { }, function(xhr, statusText, errorThrown) {
LOGIN.login_error_flag = true; LOGIN.login_error_flag = true;
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
LOGIN.login_errorMessage = JSON.parse(xhr.responseText).errorMessage; LOGIN.login_errorMessage = JSON.parse(xhr.responseText).errorMessage;
...@@ -351,8 +338,8 @@ LOGIN.processLogin = function() { ...@@ -351,8 +338,8 @@ LOGIN.processLogin = function() {
}); });
}; };
//Change Password Process // Change Password Process
LOGIN.changePasswordProcess = function(){ LOGIN.changePasswordProcess = function() {
var accountPath = $('#txtAccPath').val(); var accountPath = $('#txtAccPath').val();
var sid = ClientData.userInfo_sid_local(); var sid = ClientData.userInfo_sid_local();
var loginId = $('#txtAccId').val(); var loginId = $('#txtAccId').val();
...@@ -360,84 +347,81 @@ LOGIN.changePasswordProcess = function(){ ...@@ -360,84 +347,81 @@ LOGIN.changePasswordProcess = function(){
var confirmPass = $('#txtConfirmNew').val(); var confirmPass = $('#txtConfirmNew').val();
var params = { var params = {
sid: sid, sid : sid,
loginId: loginId, loginId : loginId,
password: password, password : password,
newPassword: confirmPass, newPassword : confirmPass,
appId: 4 appId : 4
}; };
AVWEB.avwCmsApiSync(accountPath, 'passwordChange', 'GET', params, function (data) { AVWEB.avwCmsApiSync(accountPath, 'passwordChange', 'GET', params, function(data) {
var result = data.result; var result = data.result;
if (result == 'success') { if (result == 'success') {
$('#dialog-error-message').css('display', 'none'); $('#dialog-error-message').css('display', 'none');
LOGIN.CloseChangePasswordDialog(); LOGIN.CloseChangePasswordDialog();
ClientData.userInfo_sid(ClientData.userInfo_sid_local()); ClientData.userInfo_sid(ClientData.userInfo_sid_local());
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} } else {
else {
$('#dialog-error-message').html(I18N.i18nText('msgPwdOldWrong')); $('#dialog-error-message').html(I18N.i18nText('msgPwdOldWrong'));
$('#dialog-error-message').show(); $('#dialog-error-message').show();
} }
}, }, function(xhr, b, c) {
function (xhr, b, c) {
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
$('#dialog-error-message').html(JSON.parse(xhr.responseText).errorMessage); $('#dialog-error-message').html(JSON.parse(xhr.responseText).errorMessage);
$('#dialog-error-message').show(); $('#dialog-error-message').show();
} } else {
else {
// Show systemerror // Show systemerror
AVWEB.showSystemError(); AVWEB.showSystemError();
} }
}); });
}; };
//Change Language Japanese // Change Language Japanese
LOGIN.changeLanguageJa = function(){ LOGIN.changeLanguageJa = function() {
I18N.changeLanguage(COMMON.Consts.ConstLanguage_Ja); I18N.changeLanguage(COMMON.Consts.ConstLanguage_Ja);
document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ja); // ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ja);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != "") {
$('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
}; };
//Change Language Korean // Change Language Korean
LOGIN.changeLanguageKo = function(){ LOGIN.changeLanguageKo = function() {
I18N.changeLanguage(COMMON.Consts.ConstLanguage_Ko); I18N.changeLanguage(COMMON.Consts.ConstLanguage_Ko);
document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ko); // ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ko);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != "") {
$('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
}; };
//Change Language English // Change Language English
LOGIN.changeLanguageEn = function(){ LOGIN.changeLanguageEn = function() {
I18N.changeLanguage(COMMON.Consts.ConstLanguage_En); I18N.changeLanguage(COMMON.Consts.ConstLanguage_En);
document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(COMMON.Consts.ConstLanguage_En); // ClientData.userInfo_language(COMMON.Consts.ConstLanguage_En);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != "") {
$('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
}; };
//Login click function // Login click function
LOGIN.loginFunction = function() { LOGIN.loginFunction = function() {
if (LOGIN.checkValidation()) { if (LOGIN.checkValidation()) {
LOGIN.processLogin(); LOGIN.processLogin();
} }
}; };
//Change Password function // Change Password function
LOGIN.changePassFunction = function(){ LOGIN.changePassFunction = function() {
if(LOGIN.checkDialogValidation()){ if (LOGIN.checkDialogValidation()) {
LOGIN.changePasswordProcess(); LOGIN.changePasswordProcess();
} }
}; };
//Skip Password function // Skip Password function
LOGIN.skipPassFunction = function(){ LOGIN.skipPassFunction = function() {
var date = new Date(); var date = new Date();
ClientData.userInfo_pwdSkipDt(date); ClientData.userInfo_pwdSkipDt(date);
...@@ -446,111 +430,89 @@ LOGIN.skipPassFunction = function(){ ...@@ -446,111 +430,89 @@ LOGIN.skipPassFunction = function(){
}; };
//Open Change Password Dialog // Open Change Password Dialog
LOGIN.OpenChangePasswordDialog = function(){ LOGIN.OpenChangePasswordDialog = function() {
// Clear all input values // Clear all input values
$("#main-password-change").show(); $("#main-password-change").show();
$("#main-password-change").center(); $("#main-password-change").center();
COMMON.lockLayout(); COMMON.lockLayout();
}; };
//Close Chnage Password Dialog // Close Chnage Password Dialog
LOGIN.CloseChangePasswordDialog = function(){ LOGIN.CloseChangePasswordDialog = function() {
$("#main-password-change").dialog('close'); $("#main-password-change").dialog('close');
}; };
//Save Service Option // Save Service Option
LOGIN.saveServiceUserOption = function(){ LOGIN.saveServiceUserOption = function() {
$.each(LOGIN.optionList, function (i, option) { $.each(LOGIN.optionList, function(i, option) {
if (option.serviceOptionId == 22) { if (option.serviceOptionId == 22) {
ClientData.serviceOpt_force_pw_change_periodically(option.value); ClientData.serviceOpt_force_pw_change_periodically(option.value);
} } else if (option.serviceOptionId == 21) {
else if (option.serviceOptionId == 21) {
ClientData.serviceOpt_force_pw_change_on_login(option.value); ClientData.serviceOpt_force_pw_change_on_login(option.value);
} } else if (option.serviceOptionId == 33) {
else if (option.serviceOptionId == 33) {
ClientData.serviceOpt_marking(option.value); ClientData.serviceOpt_marking(option.value);
} } else if (option.serviceOptionId == 28) {
else if (option.serviceOptionId == 28) {
ClientData.serviceOpt_user_data_backup(option.value); ClientData.serviceOpt_user_data_backup(option.value);
} } else if (option.serviceOptionId == 42) {
else if (option.serviceOptionId == 42) {
ClientData.serviceOpt_copy_text(option.value); ClientData.serviceOpt_copy_text(option.value);
} } else if (option.serviceOptionId == 60) {
else if (option.serviceOptionId == 60) {
ClientData.serviceOpt_web_screen_lock(option.value); ClientData.serviceOpt_web_screen_lock(option.value);
} } else if (option.serviceOptionId == 61) {
else if (option.serviceOptionId == 61) {
ClientData.serviceOpt_web_screen_lock_wait(option.value); ClientData.serviceOpt_web_screen_lock_wait(option.value);
} } else if (option.serviceOptionId == 70) {
else if( option.serviceOptionId == 70) {
ClientData.serviceOpt_catalog_edition(option.value); ClientData.serviceOpt_catalog_edition(option.value);
} } else if (option.serviceOptionId == 77) {
else if( option.serviceOptionId == 77) {
ClientData.serviceOpt_hibiyakadan_catalog(option.value); ClientData.serviceOpt_hibiyakadan_catalog(option.value);
} } else if (option.serviceOptionId == 71) {
else if( option.serviceOptionId == 71) {
ClientData.serviceOpt_usable_readinglog_gps(option.value); ClientData.serviceOpt_usable_readinglog_gps(option.value);
} } else if (option.serviceOptionId == 72) {
else if( option.serviceOptionId == 72) {
ClientData.serviceOpt_usable_readinglog_object(option.value); ClientData.serviceOpt_usable_readinglog_object(option.value);
} } else if (option.serviceOptionId == 83) {
else if( option.serviceOptionId == 83) {
ClientData.serviceOpt_reader_usable_readinglog_gps(option.value); ClientData.serviceOpt_reader_usable_readinglog_gps(option.value);
} } else if (option.serviceOptionId == 84) {
else if( option.serviceOptionId == 84) {
ClientData.serviceOpt_reader_readinglog_object(option.value); ClientData.serviceOpt_reader_readinglog_object(option.value);
} } else if (option.serviceOptionId == 87) {
else if( option.serviceOptionId == 87) {
ClientData.serviceOpt_daihatsu(option.value); ClientData.serviceOpt_daihatsu(option.value);
} } else if (option.serviceOptionId == 78) {
else if( option.serviceOptionId == 78) {
ClientData.serviceOpt_content_share(option.value); ClientData.serviceOpt_content_share(option.value);
} } else if (option.serviceOptionId == 12) {
else if( option.serviceOptionId == 12) {
ClientData.serviceOpt_apns(option.value); ClientData.serviceOpt_apns(option.value);
} } else if (option.serviceOptionId == 49) {
else if( option.serviceOptionId == 49) {
ClientData.serviceOpt_usable_push_message(option.value); ClientData.serviceOpt_usable_push_message(option.value);
} } else if (option.serviceOptionId == 126) {
else if( option.serviceOptionId == 126) {
ClientData.serviceOpt_encryption(option.value); ClientData.serviceOpt_encryption(option.value);
} } else if (option.serviceOptionId == 137) {
else if( option.serviceOptionId == 137) {
ClientData.serviceOpt_html_custom_log(option.value); ClientData.serviceOpt_html_custom_log(option.value);
} }
}); });
}; };
//Get Service Option // Get Service Option
LOGIN.getServiceOptionList = function(){ LOGIN.getServiceOptionList = function() {
$.each(LOGIN.optionList, function(i, option){ $.each(LOGIN.optionList, function(i, option) {
if(option.serviceOptionId == 22){ if (option.serviceOptionId == 22) {
LOGIN.force_pw_change_periodically = option.value; LOGIN.force_pw_change_periodically = option.value;
} } else if (option.serviceOptionId == 21) {
else if(option.serviceOptionId == 21){
LOGIN.force_pw_change_on_login = option.value; LOGIN.force_pw_change_on_login = option.value;
} } else if (option.serviceOptionId == 23) {
else if(option.serviceOptionId == 23){
LOGIN.force_login_periodically = option.value; LOGIN.force_login_periodically = option.value;
} } else if (option.serviceOptionId == 33) {
else if(option.serviceOptionId == 33){
LOGIN.marking = option.value; LOGIN.marking = option.value;
} } else if (option.serviceOptionId == 28) {
else if(option.serviceOptionId == 28){
LOGIN.user_data_backup = option.value; LOGIN.user_data_backup = option.value;
} }
}); });
}; };
LOGIN.loginWhenClickEnter = function(e){ LOGIN.loginWhenClickEnter = function(e) {
var code = (e.keyCode ? e.keyCode : e.which); var code = (e.keyCode ? e.keyCode : e.which);
if(code == 13) { //Enter keycode if (code == 13) { // Enter keycode
$('#btnLogin').click(); $('#btnLogin').click();
} }
}; };
...@@ -560,19 +522,19 @@ LOGIN.initLoginNormalUser = function() { ...@@ -560,19 +522,19 @@ LOGIN.initLoginNormalUser = function() {
document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//Initial Screen // Initial Screen
LOGIN.initialScreen(); LOGIN.initialScreen();
//Change language japanese // Change language japanese
$('#language-ja').click(LOGIN.changeLanguageJa); $('#language-ja').click(LOGIN.changeLanguageJa);
//Change language korean // Change language korean
$('#language-ko').click(LOGIN.changeLanguageKo); $('#language-ko').click(LOGIN.changeLanguageKo);
//Change laguage english // Change laguage english
$('#language-en').click(LOGIN.changeLanguageEn); $('#language-en').click(LOGIN.changeLanguageEn);
//Button login click event // Button login click event
$('#btnLogin').click(LOGIN.loginFunction); $('#btnLogin').click(LOGIN.loginFunction);
//Button Change click event // Button Change click event
$('#btnChange').click(LOGIN.changePassFunction); $('#btnChange').click(LOGIN.changePassFunction);
//Button Skip click event // Button Skip click event
$('#btnSkip').click(LOGIN.skipPassFunction); $('#btnSkip').click(LOGIN.skipPassFunction);
$('#txtPassword').keydown(LOGIN.loginWhenClickEnter); $('#txtPassword').keydown(LOGIN.loginWhenClickEnter);
...@@ -587,31 +549,31 @@ LOGIN.initLoginAnonymousUser = function() { ...@@ -587,31 +549,31 @@ LOGIN.initLoginAnonymousUser = function() {
var loginId = sysSettings.anonymousLoginId; var loginId = sysSettings.anonymousLoginId;
var urlPath = sysSettings.anonymousLoginPath; var urlPath = sysSettings.anonymousLoginPath;
if( loginId == "" ){ if (loginId == "") {
loginId = "nologin"; loginId = "nologin";
} }
if( urlPath == "" ){ if (urlPath == "") {
//URLからパース // URLからパース
urlPath = LOGIN.getUrlPath(); urlPath = LOGIN.getUrlPath();
if( urlPath == null ){ if (urlPath == null) {
urlPath = "dmy"; urlPath = "dmy";
} }
} }
var params = { var params = {
previousSid: null, previousSid : null,
loginId: loginId, loginId : loginId,
urlpath: urlPath urlpath : urlPath
}; };
AVWEB.avwCmsApiWithUrl(ClientData.conf_apiLoginUrl(), null, 'webClientAnonymousLogin', 'post', params, function (data) { AVWEB.avwCmsApiWithUrl(ClientData.conf_apiLoginUrl(), null, 'webClientAnonymousLogin', 'post', params, function(data) {
if (data.result == 'success') { if (data.result == 'success') {
//clear session of old anonymous user // clear session of old anonymous user
//SessionStorageUtils.clear(); // SessionStorageUtils.clear();
//警告表示を組み込んだら I18N.i18nText()の値が未定義になるので言語リソース再読み込み // 警告表示を組み込んだら I18N.i18nText()の値が未定義になるので言語リソース再読み込み
I18N.initi18n(); I18N.initi18n();
// set info user anonymous login // set info user anonymous login
...@@ -639,42 +601,39 @@ LOGIN.initLoginAnonymousUser = function() { ...@@ -639,42 +601,39 @@ LOGIN.initLoginAnonymousUser = function() {
LOGIN.saveServiceUserOption(); LOGIN.saveServiceUserOption();
// hide splash screen then move to home page // hide splash screen then move to home page
$('#anonymous').fadeOut('slow', 'swing', function () { $('#anonymous').fadeOut('slow', 'swing', function() {
//カタログエディション対応判定 // カタログエディション対応判定
if( ClientData.serviceOpt_catalog_edition() == 'Y'){ if (ClientData.serviceOpt_catalog_edition() == 'Y') {
//引数パラメータがあれば取得 // 引数パラメータがあれば取得
var paramContentID = COMMON.getUrlParam('cid', ''); var paramContentID = COMMON.getUrlParam('cid', '');
//カタログ対応 // カタログ対応
if( paramContentID != '' ){ if (paramContentID != '') {
//OpenUrlでコンテンツ開く // OpenUrlでコンテンツ開く
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 // ホームへ移動
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} else { } else {
//ホームへ移動 // ホームへ移動
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
}); });
} } else {
else {
if (data.errorMessage != null && data.errorMessage != undefined) { if (data.errorMessage != null && data.errorMessage != undefined) {
LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), data.errorMessage).toString()); LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), data.errorMessage).toString());
} } else {
else {
LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
} }
}, function (xhr, statusText, errorThrown) { }, function(xhr, statusText, errorThrown) {
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
var errorMessage = JSON.parse(xhr.responseText).errorMessage; var errorMessage = JSON.parse(xhr.responseText).errorMessage;
if (errorMessage) { if (errorMessage) {
LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), errorMessage).toString()); LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), errorMessage).toString());
} } else {
else {
LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
} else { } else {
...@@ -686,24 +645,24 @@ LOGIN.initLoginAnonymousUser = function() { ...@@ -686,24 +645,24 @@ LOGIN.initLoginAnonymousUser = function() {
// init login for getits user // init login for getits user
LOGIN.initLoginGetitsUser = function() { LOGIN.initLoginGetitsUser = function() {
//console.log("LOGIN.initLoginGetitsUser"); // console.log("LOGIN.initLoginGetitsUser");
document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
var params = { var params = {
urlpath: ClientData.userInfo_accountPath() urlpath : ClientData.userInfo_accountPath()
}; };
I18N.initi18n(); I18N.initi18n();
AVWEB.avwCmsApiWithUrl(ClientData.conf_apiLoginUrl(), ClientData.userInfo_accountPath(), 'webClientGetitsLogin', 'post', params, function (data) { AVWEB.avwCmsApiWithUrl(ClientData.conf_apiLoginUrl(), ClientData.userInfo_accountPath(), 'webClientGetitsLogin', 'post', params, function(data) {
if (data.result == 'success') { if (data.result == 'success') {
//clear session of old anonymous user // clear session of old anonymous user
//SessionStorageUtils.clear(); // SessionStorageUtils.clear();
//警告表示を組み込んだら I18N.i18nText()の値が未定義になるので言語リソース再読み込み // 警告表示を組み込んだら I18N.i18nText()の値が未定義になるので言語リソース再読み込み
//I18N.initi18n(); // I18N.initi18n();
ClientData.userInfo_userName(data.userName); ClientData.userInfo_userName(data.userName);
...@@ -722,37 +681,34 @@ LOGIN.initLoginGetitsUser = function() { ...@@ -722,37 +681,34 @@ LOGIN.initLoginGetitsUser = function() {
// save service user option // save service user option
LOGIN.saveServiceUserOption(); LOGIN.saveServiceUserOption();
// hide splash screen then move to home page // hide splash screen then move to home page
$('#anonymous').fadeOut('slow', 'swing', function () { $('#anonymous').fadeOut('slow', 'swing', function() {
//引数パラメータがあれば取得 // 引数パラメータがあれば取得
var paramContentID = COMMON.getUrlParam('cid', ''); var paramContentID = COMMON.getUrlParam('cid', '');
//カタログ対応 // カタログ対応
if( paramContentID != '' ){ if (paramContentID != '') {
//OpenUrlでコンテンツ開く // OpenUrlでコンテンツ開く
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 // ホームへ移動
//AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); // AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Login); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Login);
} }
}); });
} } else {
else {
if (data.errorMessage != null && data.errorMessage != undefined) { if (data.errorMessage != null && data.errorMessage != undefined) {
LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), data.errorMessage).toString()); LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), data.errorMessage).toString());
} } else {
else {
LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
} }
}, function (xhr, statusText, errorThrown) { }, function(xhr, statusText, errorThrown) {
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
var errorMessage = JSON.parse(xhr.responseText).errorMessage; var errorMessage = JSON.parse(xhr.responseText).errorMessage;
if (errorMessage) { if (errorMessage) {
LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), errorMessage).toString()); LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), errorMessage).toString());
} } else {
else {
LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
} else { } else {
...@@ -762,11 +718,13 @@ LOGIN.initLoginGetitsUser = function() { ...@@ -762,11 +718,13 @@ LOGIN.initLoginGetitsUser = function() {
}; };
LOGIN.showMessageErrorLoginAnonymous = function(errorMessage) { LOGIN.showMessageErrorLoginAnonymous = function(errorMessage) {
$().toastmessage({ position: 'middle-center' }); $().toastmessage({
position : 'middle-center'
});
$().toastmessage('showToast', { $().toastmessage('showToast', {
type: 'error', type : 'error',
sticky: true, sticky : true,
text: errorMessage text : errorMessage
}); });
$('.toast-position-middle-center').css('width', '400px'); $('.toast-position-middle-center').css('width', '400px');
}; };
...@@ -777,120 +735,148 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) { ...@@ -777,120 +735,148 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) {
var contentType = ''; var contentType = '';
var result = []; var result = [];
var params = { var params = {
sid: ClientData.userInfo_sid(), sid : ClientData.userInfo_sid(),
getType: '1', getType : '1',
contentId: strContentId contentId : strContentId
}; };
AVWEB.avwCmsApiSync(ClientData.userInfo_accountPath(), "webGetContent", 'GET', params, AVWEB.avwCmsApiSync(ClientData.userInfo_accountPath(), "webGetContent", 'GET', params, function(data) {
function (data) {
//コンテンツIDセット // コンテンツIDセット
ClientData.contentInfo_contentId(strContentId); ClientData.contentInfo_contentId(strContentId);
//コンテツタイプ判定 // コンテツタイプ判定
contentType = data.contentData.contentType; contentType = data.contentData.contentType;
if(contentType == COMMON.ContentTypeKeys.Type_Others){ if (contentType == COMMON.ContentTypeKeys.Type_Others) {
//Download content // Download content
HEADER.downloadResourceById(strContentId); HEADER.downloadResourceById(strContentId);
} else { } else {
//Go to Conten view page // Go to Conten view page
if(ClientData.isGetitsMode()){
//アラート表示組み込めるか if(contentType == COMMON.ContentTypeKeys.Type_Html || contentType == COMMON.ContentTypeKeys.Type_Link){
LIMIT_ACCESS_CONTENT.messageLevel[data.contentData.contentId] = { alertMessageLevel:data.contentData.alertMessageLevel, alertMessage:data.contentData.alertMessage}; var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath());
var htmlUrl = LOGIN.htmlLinkById(strContentId, contentType);
if(htmlUrl){
//TODO 閲覧ログ送信
location.href=htmlUrl + "?sid=" + ClientData.userInfo_sid() + "&apiurl=" + apiUrl + "&cid=" + strContentId;
}
return;
}
}
// アラート表示組み込めるか
LIMIT_ACCESS_CONTENT.messageLevel[data.contentData.contentId] = {
alertMessageLevel : data.contentData.alertMessageLevel,
alertMessage : data.contentData.alertMessage
};
// check limit of content // check limit of content
LIMIT_ACCESS_CONTENT.checkLimitContent( LIMIT_ACCESS_CONTENT.checkLimitContent(data.contentData.contentId, function() {
data.contentData.contentId,
function()
{
LOGIN.alertMessageOkFunction_callback(); LOGIN.alertMessageOkFunction_callback();
}, }, function() {
function()
{
LOGIN.alertMessageCancelFunction_callback(); LOGIN.alertMessageCancelFunction_callback();
} });
);
} }
}, }, function(xmlHttpRequest, txtStatus, errorThrown) {
function (xmlHttpRequest, txtStatus, errorThrown) { // 見つからないかエラーなのでホームに移動
//見つからないかエラーなのでホームに移動 if (ClientData.isGetitsMode() == true) {
if( ClientData.isGetitsMode() == true ){
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Login); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Login);
} else { } else {
//アラートメッセージ表示 // アラートメッセージ表示
LOGIN.showAlertScreen(I18N.i18nText('msgContentNotExist'),"abvw/" + COMMON.ScreenIds.Home); LOGIN.showAlertScreen(I18N.i18nText('msgContentNotExist'), "abvw/" + COMMON.ScreenIds.Home);
}
} }
); });
}; };
//警告表示時のOK処理 // 警告表示時のOK処理
LOGIN.alertMessageOkFunction_callback = function(){ LOGIN.alertMessageOkFunction_callback = function() {
if (LOGIN.avwUserEnvObj.isMobile() && ClientData.isGetitsMode() ) { if (LOGIN.avwUserEnvObj.isMobile() && ClientData.isGetitsMode()) {
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.ContentViewGetits); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.ContentViewGetits);
} else { } else {
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.ContentView); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.ContentViewOpenUri);
} }
}; };
//警告表示時のキャンセル処理 // 警告表示時のキャンセル処理
LOGIN.alertMessageCancelFunction_callback = function(){ LOGIN.alertMessageCancelFunction_callback = function() {
if( ClientData.isGetitsMode() == true ){ if (ClientData.isGetitsMode() == true) {
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Login); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Login);
} else { } else {
AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home); AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
}; };
//Get urlPath String // Get resource Id of content
LOGIN.getUrlPath = function(){ LOGIN.htmlLinkById = function(contentId,contentType) {
//URL文字列から事業者ID部分を抽出 var params = {
var regex = new RegExp( "/webad/([^&#]*)/" ); sid : ClientData.userInfo_sid(),
var results = regex.exec( window.location.href ); contentId : contentId,
if( results == null ){ getType : '2',
return ""; isStreaming : ClientData.isStreamingMode()
};
var resourceUrl = "";
AVWEB.avwCmsApiSync(ClientData.userInfo_accountPath(), "webGetContent", 'GET', params,
function(data) {
if(contentType == COMMON.ContentTypeKeys.Type_Html){
resourceUrl = data.contentDataSub[0].resourceUrl;
} else if(contentType == COMMON.ContentTypeKeys.Type_Link){
resourceUrl = data.contentData.content.url;
} }
else{
return results[1];
} }
);
if( !resourceUrl ){
resourceUrl = "";
}
return resourceUrl;
}; };
// Get urlPath String
LOGIN.getUrlPath = function() {
// URL文字列から事業者ID部分を抽出
var regex = new RegExp("/webad/([^&#]*)/");
var results = regex.exec(window.location.href);
if (results == null) {
return "";
} else {
return results[1];
}
};
/* display alert screen*/ /* display alert screen */
LOGIN.showAlertScreen = function(errMes, scrMove) { LOGIN.showAlertScreen = function(errMes, scrMove) {
// アラートメッセージの表示 // アラートメッセージの表示
if( errMes == undefined || errMes == "" ){ if (errMes == undefined || errMes == "") {
errMes = "message."; //I18N.i18nText('msgPageImgErr'); errMes = "message."; // I18N.i18nText('msgPageImgErr');
} }
COMMON.lockLayout(); COMMON.lockLayout();
/* show error messages */ /* show error messages */
$().toastmessage({ position: 'middle-center' }); $().toastmessage({
position : 'middle-center'
});
$().toastmessage('showToast', { $().toastmessage('showToast', {
type: 'error', type : 'error',
sticky: true, sticky : true,
text: errMes, text : errMes,
close: function () {} close : function() {
}
}); });
$('.toast-type-error').css('height', '100px'); $('.toast-type-error').css('height', '100px');
$('.toast-type-error > p').css('padding-top', '35px'); $('.toast-type-error > p').css('padding-top', '35px');
$('.toast-item-close').live('click', $('.toast-item-close').live('click', function() {
function () {
COMMON.unlockLayout(); COMMON.unlockLayout();
if( scrMove ){ if (scrMove) {
AVWEB.avwScreenMove(scrMove); AVWEB.avwScreenMove(scrMove);
} }
} });
);
}; };
// $(document).ready(function (e) {
LOGIN.ready = function() {
// セッションストレージクリア
//$(document).ready(function (e) {
LOGIN.ready = function(){
//セッションストレージクリア
SessionStorageUtils.clear(); SessionStorageUtils.clear();
AVWEB.avwUserSessionObj = null; AVWEB.avwUserSessionObj = null;
// create new session // create new session
...@@ -899,81 +885,81 @@ LOGIN.ready = function(){ ...@@ -899,81 +885,81 @@ LOGIN.ready = function(){
var sysSettings = AVWEB.avwSysSetting(); // get info in conf.json var sysSettings = AVWEB.avwSysSetting(); // get info in conf.json
//モード初期化 // モード初期化
ClientData.isGetitsMode(false); ClientData.isGetitsMode(false);
ClientData.isStreamingMode(false); ClientData.isStreamingMode(false);
ClientData.storeUrl(""); ClientData.storeUrl("");
//getitsサーバー設定確認 // getitsサーバー設定確認
if( sysSettings.apiUrl == "" ){ if (sysSettings.apiUrl == "") {
//引数パラメータを取得 // 引数パラメータを取得
var siteUrl = COMMON.getUrlParam('siteUrl', ''); var siteUrl = COMMON.getUrlParam('siteUrl', '');
var urlPath = COMMON.getUrlParam('urlPath', ''); var urlPath = COMMON.getUrlParam('urlPath', '');
var storeUrl = COMMON.getUrlParam('storeUrl', ''); var storeUrl = COMMON.getUrlParam('storeUrl', '');
if(siteUrl != "" && urlPath != ""){ if (siteUrl != "" && urlPath != "") {
//getitsモード有効 // getitsモード有効
ClientData.isGetitsMode(true); ClientData.isGetitsMode(true);
//api接続先設定 // api接続先設定
ClientData.conf_apiUrl( siteUrl + "{0}/abvapi" ); ClientData.conf_apiUrl(siteUrl + "{0}/abvapi");
ClientData.conf_apiLoginUrl( siteUrl + "nuabvapi" ); ClientData.conf_apiLoginUrl(siteUrl + "nuabvapi");
ClientData.conf_apiResourceDlUrl( siteUrl + "{0}/dl" ); ClientData.conf_apiResourceDlUrl(siteUrl + "{0}/dl");
//アカウント関連 // アカウント関連
ClientData.userInfo_accountPath(urlPath); ClientData.userInfo_accountPath(urlPath);
ClientData.userInfo_accountPath_session(urlPath); ClientData.userInfo_accountPath_session(urlPath);
ClientData.userInfo_loginId(""); ClientData.userInfo_loginId("");
ClientData.userInfo_loginId_session(""); ClientData.userInfo_loginId_session("");
//ストア遷移用のURL // ストア遷移用のURL
ClientData.storeUrl(storeUrl); ClientData.storeUrl(storeUrl);
} }
} else { } else {
//confのパラメータセット // confのパラメータセット
ClientData.conf_apiUrl( sysSettings.apiUrl ); ClientData.conf_apiUrl(sysSettings.apiUrl);
ClientData.conf_apiLoginUrl( sysSettings.apiLoginUrl ); ClientData.conf_apiLoginUrl(sysSettings.apiLoginUrl);
ClientData.conf_apiResourceDlUrl( sysSettings. apiResourceDlUrl ); ClientData.conf_apiResourceDlUrl(sysSettings.apiResourceDlUrl);
} }
if( ClientData.isGetitsMode() == true ){ if (ClientData.isGetitsMode() == true) {
//念のため前回までの閲覧ログは削除 // 念のため前回までの閲覧ログは削除
ClientData.ContentLogData([]); ClientData.ContentLogData([]);
$('#anonymous').show(); $('#anonymous').show();
setTimeout( setTimeout(function() {
function () {
LOGIN.initLoginGetitsUser(); LOGIN.initLoginGetitsUser();
}, }, LOGIN.timeWaitSplashScreen);
LOGIN.timeWaitSplashScreen
);
} else if (COMMON.isAnonymousLogin()) { } else if (COMMON.isAnonymousLogin()) {
$('#anonymous').show(); $('#anonymous').show();
setTimeout( setTimeout(function() {
function () {
LOGIN.initLoginAnonymousUser(); LOGIN.initLoginAnonymousUser();
}, LOGIN.timeWaitSplashScreen); }, LOGIN.timeWaitSplashScreen);
} } else {
else {
//引数でアカウントパスを受け取ったらセットする // 引数でアカウントパスを受け取ったらセットする
$('#normalUser').show(); $('#normalUser').show();
$('#formlogin').hide(); $('#formlogin').hide();
$('#logologin').animate({ "margin-top": 0 }, LOGIN.timeWaitSplashScreen, $('#logologin').animate({
function () { "margin-top" : 0
}, LOGIN.timeWaitSplashScreen, function() {
$('#formlogin').show(); $('#formlogin').show();
$('#menu-language').animate({ opacity: 1 }, LOGIN.timeWaitSplashScreen); $('#menu-language').animate({
$('#formlogin').animate({ opacity: 1 }, LOGIN.timeWaitSplashScreen); opacity : 1
$('.cnt_footer').animate({ opacity: 1 }, LOGIN.timeWaitSplashScreen); }, LOGIN.timeWaitSplashScreen);
} $('#formlogin').animate({
); opacity : 1
}, LOGIN.timeWaitSplashScreen);
$('.cnt_footer').animate({
opacity : 1
}, LOGIN.timeWaitSplashScreen);
});
LOGIN.initLoginNormalUser(); LOGIN.initLoginNormalUser();
} }
}; };
//}); // });
...@@ -30,7 +30,7 @@ html,body{ ...@@ -30,7 +30,7 @@ html,body{
} }
body{ body{
background:#088A68; background:#088A68;
} }
/*----------------------------*/ /*----------------------------*/
...@@ -59,7 +59,7 @@ background:#088A68; ...@@ -59,7 +59,7 @@ background:#088A68;
.wrapper { .wrapper {
} }
#main{ #main-ws{
} }
a a
...@@ -130,7 +130,7 @@ section a.loginbtn:hover { ...@@ -130,7 +130,7 @@ section a.loginbtn:hover {
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#23486F', endColorstr='#36638B'); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#23486F', endColorstr='#36638B');
background-color:#36638B; background-color:#36638B;
} }
#login .wrapper #main article section a.loginbtn:active { #login .wrapper #main-ws article section a.loginbtn:active {
} }
section .loginbtn a:not(:target) { section .loginbtn a:not(:target) {
...@@ -175,11 +175,11 @@ section .loginbtn a:hover:not(:target) { ...@@ -175,11 +175,11 @@ section .loginbtn a:hover:not(:target) {
font-size: 14px; font-size: 14px;
font-weight: bolder; font-weight: bolder;
} }
#login .wrapper #main article section table tr td input { #login .wrapper #main-ws article section table tr td input {
} }
#login article section table tr th,#login article section table tr td { #login article section table tr th,#login article section table tr td {
} }
#login .wrapper #main article section table { #login .wrapper #main-ws article section table {
border-bottom:dotted 1px #BBBBBB; border-bottom:dotted 1px #BBBBBB;
} }
...@@ -187,7 +187,7 @@ section .loginbtn a:hover:not(:target) { ...@@ -187,7 +187,7 @@ section .loginbtn a:hover:not(:target) {
background: url(../../img/login/login_border.jpg) top repeat-x; background: url(../../img/login/login_border.jpg) top repeat-x;
opacity:0; opacity:0;
} }
#login .wrapper #main article img { #login .wrapper #main-ws article img {
} }
#loader { #loader {
} }
...@@ -196,13 +196,12 @@ section .loginbtn a:hover:not(:target) { ...@@ -196,13 +196,12 @@ section .loginbtn a:hover:not(:target) {
background-color: #000; background-color: #000;
opacity: 0.3; opacity: 0.3;
} }
#login .wrapper #main article ul { #login .wrapper #main-ws article ul {
} }
#login .wrapper #main article li { #login .wrapper #main-ws article li {
} }
/* footer */ /* footer */
footer{ footer{
background-color: #EDF2F2; background-color: #EDF2F2;
...@@ -215,7 +214,7 @@ footer{ ...@@ -215,7 +214,7 @@ footer{
.focus{ color: #969696;} .focus{ color: #969696;}
#user_change footer .border .cnt_footer img { } #user_change footer .border .cnt_footer img { }
#login .wrapper #main article section .error { #login .wrapper #main-ws article section .error {
font-size: 13px; font-size: 13px;
color: #FF0000; color: #FF0000;
font-weight: bolder; font-weight: bolder;
...@@ -236,3 +235,4 @@ footer{ ...@@ -236,3 +235,4 @@ footer{
#logologin #logologin
{ {
} }
...@@ -11,27 +11,25 @@ ...@@ -11,27 +11,25 @@
<title></title> <title></title>
<link rel="stylesheet" type="text/css" href="./abvw/css/layout/common.css?#UPDATEID#" /> <link rel="stylesheet" type="text/css" href="./abvw/css/layout/common.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="./abvw/css/theme/common.css?#UPDATEID#" /> <link rel="stylesheet" type="text/css" href="./abvw/css/theme/common.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="./abvw/common/css/jquery-ui.css?#UPDATEID#" /> <link rel="stylesheet" type="text/css" href="./abvw/common/css/jquery-ui.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="./abvw/common/css/jquery.toastmessage.css?#UPDATEID#" /> <link rel="stylesheet" type="text/css" href="./abvw/common/css/jquery.toastmessage.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="./abvw/css/layout/login.css?#UPDATEID#" /> <link rel="stylesheet" type="text/css" href="./abvw/css/layout/login.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="./abvw/css/theme/login.css?#UPDATEID#" /> <link rel="stylesheet" type="text/css" href="./abvw/css/layout/login_validation.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="./abvw/css/layout/login_validation.css?#UPDATEID#" /> <link rel="stylesheet" type="text/css" href="./abvw/css/layout/limit_access.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="./abvw/css/theme/login_validation.css?#UPDATEID#" /> <link rel="stylesheet" type="text/css" href="./abvw/css/layout/login_getits.css?__UPDATEID__" />
<link rel="stylesheet" type="text/css" href="./abvw/css/layout/limit_access.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="./abvw/css/theme/limit_access.css?#UPDATEID#" />
<script type="text/javascript" src="./abvw/common/js/jquery-1.8.1.min.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/common/js/jquery-1.8.1.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="./abvw/common/js/thickbox.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/common/js/thickbox.js?__UPDATEID__"></script>
<script type="text/javascript" src="./abvw/common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/common/js/jquery-ui-1.8.23.custom.min.js?__UPDATEID__"></script>
<script type="text/javascript" src="./abvw/common/js/jquery.toastmessage.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/common/js/jquery.toastmessage.js?__UPDATEID__"></script>
<script type="text/javascript" src="./abvw/common/js/screenLock.js?#UPDATEID#" ></script> <script type="text/javascript" src="./abvw/common/js/screenLock.js?__UPDATEID__" ></script>
<script type="text/javascript" src="./abvw/common/js/avweb.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/common/js/avweb.js?__UPDATEID__"></script>
<script type="text/javascript" src="./abvw/common/js/i18n.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/common/js/i18n.js?__UPDATEID__"></script>
<script type="text/javascript" src="./abvw/common/js/common.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/common/js/common.js?__UPDATEID__"></script>
<script type="text/javascript" src="./abvw/js/Limit_Access_Content.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/js/Limit_Access_Content.js?__UPDATEID__"></script>
<script type="text/javascript" src="./abvw/js/login.js?#UPDATEID#"></script> <script type="text/javascript" src="./abvw/js/login.js?__UPDATEID__"></script>
<!--[if gte IE 9]> <!--[if gte IE 9]>
<style type="text/css"> <style type="text/css">
...@@ -58,7 +56,7 @@ ...@@ -58,7 +56,7 @@
<div id="loader"><img src="./abvw/img/login/loading_icon.gif" width="200" height="200"></div> <div id="loader"><img src="./abvw/img/login/loading_icon.gif" width="200" height="200"></div>
<div id="fade"></div> <div id="fade"></div>
<div class="wrapper"> <div class="wrapper">
<div id="main"> <div id="main-ws">
<!-- <!--
<ul class="floatR" id="menu-language"><li class="language"><a id="language-ja"><img src="./abvw/img/common/flg_jpn.png" width="29" height="20"></a></li><li class="language"><a id="language-en"><img src="./abvw/img/common/flg_usa.png" width="29" height="20"></a></li><li class="language"><a id="language-ko"><img src="./abvw/img/common/flg_kor.png" width="29" height="20"></a></li></ul> <ul class="floatR" id="menu-language"><li class="language"><a id="language-ja"><img src="./abvw/img/common/flg_jpn.png" width="29" height="20"></a></li><li class="language"><a id="language-en"><img src="./abvw/img/common/flg_usa.png" width="29" height="20"></a></li><li class="language"><a id="language-ko"><img src="./abvw/img/common/flg_kor.png" width="29" height="20"></a></li></ul>
--> -->
......
...@@ -38,18 +38,6 @@ ...@@ -38,18 +38,6 @@
<![endif]--> <![endif]-->
<script type="text/javascript"> <script type="text/javascript">
//$('head').append(
// '<style type="text/css">#container { display: none; } #fade, #loader { display: block; }</style>'
//);
//jQuery.event.add(window,"load",function() { // 全ての読み込み完了後に呼ばれる関数
// var pageH = $("#container").height();
// console.log("pageH:" + pageH);
//
// $("#fade").css("height", pageH).delay(900).fadeOut(800);
// $("#loader").delay(600).fadeOut(300);
// $("#container").css("display", "block");
//});
$(document).ready(function(){ $(document).ready(function(){
LOGIN.ready(); LOGIN.ready();
}); });
......
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