Commit 98db55b3 by Masaru Abe

カタログと日比谷カスタム対応

parent 71ca8284
/// <reference path="avweb.js" />
/// <reference path="screenLock.js" />
/// <reference path="common.js" />
/// <reference path="i18n.js" />
/// <reference path="jquery-1.8.1.min.js" />
/// <reference path="jquery-ui-1.8.23.custom.min.js" />
/// <reference path="jquery.toastmessage.js" />
/// <reference path="pageViewer.js" />
/// <reference path="uuid.js" />
// =============================================================================================
// Constants [start]
// =============================================================================================
......@@ -54,7 +45,6 @@ var Consts = {
// Lock screen timer
ConstLockScreenTime: 1800000
};
/*Content Type Keys*/
......@@ -189,6 +179,15 @@ var Keys = {
serviceOpt_web_screen_lock: 'web_screen_lock',
// Session :事業者オプション(serviceOpt)_スクリーンロック待ち時間:Interger
serviceOpt_web_screen_lock_wait: 'web_screen_lock_wait',
// Session :事業者オプション(serviceOpt)_GPS使用可:Char(Y:可能, N:不可)
serviceOpt_catalog_edition: 'usable_readinglog_gps',
// Session :事業者オプション(serviceOpt)_詳細ログ使用可:Char(Y:可能, N:不可)
serviceOpt_catalog_edition: 'usable_readinglog_object',
// Session :事業者オプション(serviceOpt)_カタログエディション:Char(Y:可能, N:不可)
serviceOpt_catalog_edition: 'catalog_edition',
// Session :事業者オプション(serviceOpt)_日比谷カスタム:Char(Y:可能, N:不可)
serviceOpt_catalog_edition: 'hibiyakadan_catalog',
// Session :共通(common)_コンテンツID:Integer
common_contentId: 'common_contentId',
// Local :共通(common)_コンテンツID:Integer
......@@ -322,8 +321,6 @@ var Keys = {
// Local :ユーザオプション(userOpt)_アニメーション時間:Float
userOpt_pageTransitionPeriod: 'userOpt_pageTransitionPeriod'
/* -------------------------------------------------------------------------------- */
};
......@@ -371,7 +368,20 @@ function LogEntity() {
this.readingEndDate = null;
this.readingTime = 0;
this.deviceTypeId = 4;
//ページログ配列
this.pageLogArray = [];
//詳細ログ配列
this.objectLogArray = [];
};
// Entity for PageLog
function PageLogEntity(){
this.contentid = "";
this.pageNo = 1;
this.readingStartDate = new Date();
this.readingEndDate = null;
this.readingTime = 0;
};
// No.17 Phase 2: do not use this function
// Build memo/marking/bookmark to base64string
......@@ -1288,6 +1298,39 @@ var ClientData = {
// }
//},
// Session :事業者オプション(serviceOpt)_GPS使用可:Char(Y:可能, N:不可)
serviceOpt_usable_readinglog_gps: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_usable_readinglog_gps, data);
} else {
return SessionStorageUtils.get(Keys.serviceOpt_usable_readinglog_gps);
}
},
// Session :事業者オプション(serviceOpt)_詳細ログ使用可:Char(Y:可能, N:不可)
serviceOpt_usable_readinglog_object: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_usable_readinglog_object, data);
} else {
return SessionStorageUtils.get(Keys.serviceOpt_usable_readinglog_object);
}
},
// Session :事業者オプション(serviceOpt)_カタログエディション:Char(Y:可能, N:不可)
serviceOpt_catalog_edition: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_catalog_edition, data);
} else {
return SessionStorageUtils.get(Keys.serviceOpt_catalog_edition);
}
},
// Session :事業者オプション(serviceOpt)_日比谷対応:Char(Y:可能, N:不可)
serviceOpt_hibiyakadan_catalog: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_hibiyakadan_catalog, data);
} else {
return SessionStorageUtils.get(Keys.serviceOpt_hibiyakadan_catalog);
}
},
// Session :共通(common)_コンテンツID:Integer
common_contentId: function (data) {
if (arguments.length > 0) {
......@@ -2241,6 +2284,9 @@ function unlockFunction(inputPass) {
Set starting log for reading content
*/
function SetStartLog(strContentId) {
//abe pageLogもセット
var isFound = false;
var arrContentLogs = ClientData.ContentLogData();
......@@ -2271,6 +2317,11 @@ function SetStartLog(strContentId) {
// Reading time
log.readingTime = log.readingEndDate.subtractBySeconds(log.readingStartDate);
//PageLog 1ページ目セット(1レコードは必須)
var pageLog = new PageLogEntity();
pageLog.contentid = strContentId;
log.pageLogArray.push(pageLog);
// Add to storage
arrContentLogs.push(log);
}
......@@ -2281,7 +2332,10 @@ function SetStartLog(strContentId) {
// Set ending log for reading content
function SetEndLog(strContentId) {
var log = new LogEntity();
//abe pageLogもセット
//var log = new LogEntity(); 無駄?
var arrContentLogs = ClientData.ContentLogData();
for(var nIndex = 0; nIndex < arrContentLogs.length; nIndex++) {
......@@ -2293,11 +2347,31 @@ function SetEndLog(strContentId) {
// Calculate to seconds
arrContentLogs[nIndex].readingTime = dateEnd.subtractBySeconds(dateStart);
}
}
ClientData.ContentLogData(arrContentLogs);
};
function SetPageLog( strContentId, strPageNo ){
var arrContentLogs = ClientData.ContentLogData();
for(var nIndex = 0; nIndex < arrContentLogs.length; nIndex++) {
if(arrContentLogs[nIndex].contentid == strContentId) {
//PageLog追加
var pageLog = new PageLogEntity();
pageLog.contentid = strContentId;
pageLog.pageNo = strPageNo + 1; //0始まりのページ番号
arrContentLogs[nIndex].pageLogArray.push(pageLog);
}
}
ClientData.ContentLogData(arrContentLogs);
}
/*
Register reading log of content to server by calling api
*/
......@@ -2309,16 +2383,72 @@ function RegisterLog() {
var dateEnd = new Date(arrContentLogs[nIndex].readingEndDate);
var dateStart = new Date(arrContentLogs[nIndex].readingStartDate);
//ページログJSONデータの作成
var pageLogArray = arrContentLogs[nIndex].pageLogArray;
var lines = [];
if( pageLogArray.length > 0 ){
//終了時間と閲覧時間の設定
var pageLogStart;
var pageLogEnd;
//2レコード目からチェック
for (var nIndex2 = 1; nIndex2 < pageLogArray.length; nIndex2++) {
//一つ前のログの終了日時を次のレコードの開始日時でセット
if( pageLogArray[nIndex2 -1].readingEndDate == null ){
pageLogArray[nIndex2 -1].readingEndDate = pageLogArray[nIndex2].readingStartDate;
}
pageLogStart = new Date(pageLogArray[nIndex2 -1].readingStartDate);
pageLogEnd = new Date(pageLogArray[nIndex2 -1].readingEndDate);
//時間差から閲覧秒セット
pageLogArray[nIndex2 -1].readingTime = pageLogEnd.subtractBySeconds(pageLogStart);
}
//最終レコードの処理
if( pageLogArray[pageLogArray.length - 1].readingEndDate == null ){
pageLogArray[pageLogArray.length - 1].readingEndDate = new Date();
}
pageLogStart = new Date(pageLogArray[pageLogArray.length - 1].readingStartDate);
pageLogEnd = new Date(pageLogArray[pageLogArray.length - 1].readingEndDate);
//時間差から閲覧秒セット
pageLogArray[pageLogArray.length -1].readingTime = pageLogEnd.subtractBySeconds(pageLogStart);
//JSONデータ作成
for (var nIndex2 = 0; nIndex2 < pageLogArray.length; nIndex2++) {
pageLogStart = new Date(pageLogArray[nIndex2].readingStartDate);
pageLogEnd = new Date(pageLogArray[nIndex2].readingEndDate);
//3秒以上なら記録する
if( pageLogArray[nIndex2].readingTime > 2 ){
var line = [];
line.push(pageLogArray[nIndex2].pageNo);
line.push(pageLogStart.jpDateTimeString1());
line.push(pageLogEnd.jpDateTimeString1());
line.push(pageLogArray[nIndex2].readingTime);
lines.push(line);
//alert("PageLog Line:" + JSON.stringify( line ) );
}
}
//alert("PageLog Lines:" + JSON.stringify( lines ) );
}
var pageLogJson = "";
if( lines.length > 0 ){
pageLogJson = "{ header:[\"pageNo\",\"readingStartDate\",\"readingEndDate\",\"readingTime\"],lines:";
pageLogJson = pageLogJson + JSON.stringify( lines );
pageLogJson = pageLogJson + "}";
//alert("JSON:" + pageLogJson);
}
var params = {
sid: ClientData.userInfo_sid(),
contentId: arrContentLogs[nIndex].contentid,
readingStartDate: dateStart.jpDateTimeString1(),
readingEndDate: dateEnd.jpDateTimeString1(),
readingTime: arrContentLogs[nIndex].readingTime,
deviceTypeId: 4
deviceTypeId: 4,
pageLog: pageLogJson
};
avwCmsApiSync(ClientData.userInfo_accountPath(), "contentReadingLog", 'get', params,
avwCmsApiSync(ClientData.userInfo_accountPath(), "contentReadingLog", 'post', params,
null,
function (xhr, b, c) {
if (xhr.status != 0) {
......
......@@ -38,7 +38,7 @@
"txtPwdCurr":"現在パスワード",
"txtPwdNew":"変更パスワード",
"txtPwdNewRe":"(再)変更パスワード",
"txtPwdRemind":"※スキップを選択すると、30日以内にこのメッセージが表示されせん",
"txtPwdRemind":"※スキップを選択すると、30日経過するまでこのメッセージが表示されません。",
"txtSearch":"検索",
"dspShiori":"しおり",
"dspSetting":"設定変更",
......
......@@ -14,8 +14,8 @@
<link href="./common/css/default.css" rel="stylesheet" type="text/css" />
<link href="./common/css/screenLock.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="./common/css/jquery.treeview.css" />
<link rel="stylesheet" type="text/css" href="./common/css/screen.css" />
<link rel="stylesheet" type="text/css" href="./common/css/jquery.treeview.css" />
<link rel="stylesheet" type="text/css" href="./common/css/screen.css" />
<link href="css/layout/common.css" rel="stylesheet" type="text/css" />
<link href="css/theme/common.css" rel="stylesheet" type="text/css" />
......@@ -32,10 +32,6 @@
<link href="css/layout/list.css" rel="stylesheet" type="text/css" />
<link href="css/theme/list.css" rel="stylesheet" type="text/css" />
<!-- <link href="css/backup.css" rel="stylesheet" type="text/css" />
<link href="css/restore.css" rel="stylesheet" type="text/css" />-->
<link href="css/layout/backup.css" rel="stylesheet" type="text/css" />
<link href="css/theme/backup.css" rel="stylesheet" type="text/css" />
......@@ -60,13 +56,13 @@
<script src="./js/home.js"></script>
<script src="./js/header.js"></script>
<script src="./common/js/scrolltopcontrol.js"></script>
<script src="common/js/tab.js"></script>
<script src="./common/js/tab.js"></script>
<script src="./common/js/jquery.cookie.js" type="text/javascript"></script>
<script src="./common/js/jquery.cookie.js" type="text/javascript"></script>
<script src="./common/js/jquery.treeview.edit.js" type="text/javascript"></script>
<script src="./common/js/jquery.treeview.js" type="text/javascript"></script>
<script src="./common/js/screenLock.js" type="text/javascript"></script>
<script src="js/detail.js" type="text/javascript"></script>
<script src="./js/detail.js" type="text/javascript"></script>
</head>
......@@ -99,7 +95,7 @@
</ul>
</div>
<ul class="button">
<li class="floatL">
<li class="floatL" id="dspPushMessage">
<a href="#" id="liPushMessage"><span class="pushMessage"><span class="icon"></span> <span class="lang" lang="txtPushAlert">新着 : </span><span id="numbermessage"></span><span class="arrow"></span></span></a>
<div id="accordion" style="display:none;">
<div id="show-push-message"></div>
......@@ -112,14 +108,16 @@
<li class="menuIcon" id="dspShiori"><a href="#"><img src="img/common/icon_marker.png" width="30" height="30"></a></li>
<li class="menuIcon" id="dspViewHistory"><a href="#"><img src="img/common/icon_watch.png" width="30" height="30"></a></li>
<li class="menuIcon" id="dspSetting" style="display:none;"><a href="#"><img src="img/common/icon_setup.png" width="30" height="30"></a></li>
<li class="menuIcon" id="dspLogout" style="margin-right:0;display:none;"><a href="#"><img src="img/common/icon_logout.png" width="30" height="30"></a></li>
<li class="menuIcon" id="dspLogout" style="margin-right:0;display:none;"><a href="#"><img src="img/common/icon_logout.png" width="30" height="30"></a></li>
<li class="menuIcon" id="dspHibiya" style="display:none;"><a href="#"><img src="img/common/icon_setup.png" width="30" height="30"></a></li>
</ul>
</div>
</div>
</header>
<div class="wrapper">
<div id="main" class="hoge">
<div class="tabUnit">
<div class="tabUnit" >
<ul class="switchingTab">
<li class="colleft" ><a href="#list_0" class="current" id="lnkbtnGenre"> </a></li>
<li class="colright" style="display:none;"><a href="#list_1" id="lnkbtnGroup"> </a></li>
......@@ -229,6 +227,13 @@
<div id="book_list"></div>
</section>
</article>
<!-- 日比谷カスタム -->
<div id="dlgAddMemberGroup" title="公開コード">
<p>公開コードを入力して下さい。</p>
<p><input type="text" id="txtAddMemberGroupName" value="" /><a class="" href="#" id="btnAddMemberGroupSearch" lang="txtSearch">検索</a></p>
</div>
<footer>
<div class="border">
<div class="cnt_footer">
......
......@@ -1021,6 +1021,10 @@ function showErrorScreen() {
/* move to page ?? */
function changePage(page_index) {
//abe スライダーのページ移動
alert("changePage:" + page_index);
// Make sure page_index is number
page_index = Number(page_index);
......@@ -1919,6 +1923,10 @@ function resizeScreen() {
var isPendingContentBGM = false;
function changePageWithoutSlide(pageMove) {
//abe 確認できない
alert("changePageWithoutSlide:" + pageMove);
disableAllControl();
var isExistBGMPageContent = false;
getPageObjectsByPageIndex(pageObjectsData, pageMove);
......@@ -2715,7 +2723,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.y,
obj.width,
obj.height,
obj.visible
obj.visible,
obj.objectId
);
} else if (obj.actionType == 1) { /* play video */
pageObj = new videoType1(
......@@ -2729,7 +2738,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.height,
obj.visible,
obj.mediaFile,
obj.media
obj.media,
obj.objectId
);
} else if (obj.actionType == 2) {
pageObj = new audioType1( /* play audio */
......@@ -2742,7 +2752,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.width,
obj.height,
obj.visible,
obj.audioFile
obj.audioFile,
obj.objectId
);
} else if (obj.actionType == 3) { /*open new url */
pageObj = new linkURL(
......@@ -2757,7 +2768,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.visible,
obj.action,
obj.linkUrl,
obj.browserType
obj.browserType,
obj.objectId
);
} else if (obj.actionType == 4) { /*image preview */
pageObj = new imagePreview(
......@@ -2770,7 +2782,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.width,
obj.height,
obj.visible,
obj.imagePreview
obj.imagePreview,
obj.objectId
);
} else if (obj.actionType == 5) { /*jump page */
pageObj = new jumpPage(
......@@ -2783,7 +2796,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.width,
obj.height,
obj.visible,
obj.jumpPage
obj.jumpPage,
obj.objectId
);
} else if (obj.actionType == 6) { /*send mail */
pageObj = new sendMail(
......@@ -2797,7 +2811,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.height,
obj.visible,
obj.emailSubject,
obj.emailAddress
obj.emailAddress,
obj.objectId
);
} else if (obj.actionType == 8) { /* show popup */
pageObj = new openPopUp(
......@@ -2810,7 +2825,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.width,
obj.height,
obj.visible,
obj.content
obj.content,
obj.objectId
);
} else if (obj.actionType == 10) { /* move to another content */
pageObj = new moveToContent(
......@@ -2824,7 +2840,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.height,
obj.visible,
obj.contentId,
obj.pageNo
obj.pageNo,
obj.objectId
);
//Start Function : No.9 - Editor : Long - Summary :
}else if(obj.actionType == 11){
......@@ -2838,7 +2855,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.width,
obj.height,
obj.visible,
obj.resourceUrl
obj.resourceUrl,
obj.objectId
);
}else if(obj.actionType == 12){
......@@ -2874,7 +2892,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.visible,
obj.mediaFile,
obj.media,
obj.embed
obj.embed,
obj.objectId
);
break;
case 3:
......@@ -2889,7 +2908,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.height,
obj.visible,
obj.audioFile,
obj.playType
obj.playType,
obj.objectId
);
break;
case 4:
......@@ -2905,7 +2925,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.height,
obj.visible,
obj.dataObjects,
obj.triggerType
obj.triggerType,
obj.objectId
);
break;
case 5:
......@@ -2920,7 +2941,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.width,
obj.height,
obj.visible,
obj.dataObjects
obj.dataObjects,
obj.objectId
);
break;
case 6:
......@@ -2937,7 +2959,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.index,
obj.target,
obj.visible,
obj.action
obj.action,
obj.objectId
);
break;
case 7:
......@@ -2952,7 +2975,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.height,
obj.visible,
obj.action,
obj.content
obj.content,
obj.objectId
);
break;
//Start Function : No.9 - Editor : Long - Date : 08/15/2013 - Summary : 3d object
......@@ -2978,7 +3002,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.horizonCount,
obj.verticalCount,
obj.visible,
obj['3dview']
obj['3dview'],
obj.objectId
);
break;
case 9:
......@@ -2994,7 +3019,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.width,
obj.height,
obj.visible,
obj.resourceUrl
obj.resourceUrl,
obj.objectId
);
}
break;
......@@ -3034,7 +3060,9 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj.width,
obj.height,
obj.visible,
obj.action
obj.action,
null,
obj.objectId
);
}
// add pageObject
......
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="contentview_VarDef.js" />
/// <reference path="contentview_CallApi.js" />
/// <reference path="contentview_GetData.js" />
/// <reference path="contentview_InitObjects.js" />
/// <reference path="contentview_Events.js" />
/* ----------------------------------- Create memo --------------------------------*/
var memoObjects = [];
......@@ -173,7 +165,7 @@ var PageObject = function (id, imageUrl, x, y, w, h, visible, actionFunction, di
};
/* setup each properties */
PageObject.prototype.setup = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, displayBorder) {
PageObject.prototype.setup = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, displayBorder, objectId) {
this.mediaType = mediaType;
this.actionType = actionType;
......@@ -188,6 +180,9 @@ PageObject.prototype.setup = function (mediaType, actionType, id, imageUrl, x, y
this.image = new Image();
this.image.src = this.imageUrl;
this.objectId;
};
/* prototype hitTest */
......@@ -460,11 +455,14 @@ PageObject.prototype.drawPageObject = function (context, opt) {
/*mediaType = 8 3d object*/
var _isEnableRotate = false;
var object3d = function (mediaType, actionType, id, imageUrl, x, y, w, h, hCnt, vCnt, visible, imageObjects){
var object3d = function (mediaType, actionType, id, imageUrl, x, y, w, h, hCnt, vCnt, visible, imageObjects, objectId){
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function (imagePt){
//abe
alert("object3d");
if(_3dAction == _3dActionType.TouchStart_MouseDown){
OnMouseDown3D(id, imagePt, x, y);
}
......@@ -481,19 +479,23 @@ object3d.prototype = new PageObject();
//End Function : No.9
/* mediaType = 7 write text object*/
var text = function (mediaType, actionType, id, x, y, w, h, visible, actionFunction, content) {
var text = function (mediaType, actionType, id, x, y, w, h, visible, actionFunction, content, objectId) {
//var imageUrl = displayText(x,y,w,h,id,content);
var imageUrl = getTextObjectImage(w, h, content);
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, null);
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, null, objectId);
this.action = function () {
};
};
text.prototype = new PageObject();
/* mediaType=4 list image object : extends PageObject */
var listImage = function (mediaType, id, imageUrl, x, y, w, h, visible, imageObjects, triggerType) {
this.setup(mediaType, null, id, imageUrl, x, y, w, h, visible, null, null);
var listImage = function (mediaType, id, imageUrl, x, y, w, h, visible, imageObjects, triggerType, objectId) {
this.setup(mediaType, null, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("listImage");
if (triggerType == '1') {
mediaType4_changeImage++;
......@@ -517,19 +519,26 @@ var listImage = function (mediaType, id, imageUrl, x, y, w, h, visible, imageObj
listImage.prototype = new PageObject();
/* mediaType=5 Replace Video object : extends PageObject */
var listVideo = function (mediaType, id, imageUrl, x, y, w, h, visible, videoObjects) {
this.setup(mediaType, null, id, imageUrl, x, y, w, h, visible, null, null);
var listVideo = function (mediaType, id, imageUrl, x, y, w, h, visible, videoObjects, objectId) {
this.setup(mediaType, null, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("listVideo");
};
};
listVideo.prototype = new PageObject();
/* mediaType=6 Trigger object : extends PageObject */
var trigger = function (mediaType, actionType, id, imageUrl, x, y, w, h, index, target, visible, actionFunction) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, null);
var trigger = function (mediaType, actionType, id, imageUrl, x, y, w, h, index, target, visible, actionFunction, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, null, objectId);
this.action = function () {
// draw object
//abe
alert("trigger:" + + getPageIndex() + " id:" + id);
for (var nIndex = 0; nIndex < objType4_5.length; nIndex++) {
for (var nIndex1 = 0; nIndex1 < objType4_5[nIndex].dataObjects.length; nIndex1++) {
if (objType4_5[nIndex].dataObjects[nIndex1].index == index
......@@ -549,10 +558,14 @@ var trigger = function (mediaType, actionType, id, imageUrl, x, y, w, h, index,
trigger.prototype = new PageObject();
//Start Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary :
var htmlLinkButton = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, resourceUrl) {
var htmlLinkButton = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, resourceUrl, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("htmlLinkButton");
/*stop audio on page */
stopAllAudio();
......@@ -565,6 +578,10 @@ var htmlLinkButton = function (mediaType, actionType, id, imageUrl, x, y, w, h,
};
htmlLinkButton.prototype = new PageObject();
function showHtml(url){
//abe
alert("showHtml");
var $container = $('#dialog');
$container.html('');
......@@ -604,8 +621,12 @@ function showHtml(url){
var anket = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, questionNo, replyLimit, fullscreen, saveAs, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("anket");
/*stop audio on page */
stopAllAudio();
......@@ -626,10 +647,10 @@ anket.prototype = new PageObject();
//End Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary :
/* mediaType=3 Audio object : extends PageObject */
var audioType3 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, audioFile, playType) {
var audioType3 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, audioFile, playType, objectId) {
if (playType == "0") {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
createAudio(audioFile, playType);
};
......@@ -643,7 +664,7 @@ var audioType3 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visi
createAudio(audioFile, playType);
}
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
this.setup(mediaType, actionType, id, null, x, y, w, h, visible, null, null);
this.setup(mediaType, actionType, id, null, x, y, w, h, visible, null, null, objectId);
this.action = function () {
};
......@@ -652,9 +673,13 @@ var audioType3 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visi
audioType3.prototype = new PageObject();
/* mediaType = 1 and actionType = 5 jumpPage object*/
var jumpPage = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, jumpPage) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
var jumpPage = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, jumpPage, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("jumpPage");
if ((Number(jumpPage) - 1) != getPageIndex()) {
createLockLayout(true);
changePage(Number(jumpPage) - 1);
......@@ -665,8 +690,8 @@ var jumpPage = function (mediaType, actionType, id, imageUrl, x, y, w, h, visibl
jumpPage.prototype = new PageObject();
/* mediaType = 1 and actionType = 6 send mail object*/
var sendMail = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, emailSubject, emailAddress) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
var sendMail = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, emailSubject, emailAddress, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
MailTo(emailAddress, emailSubject);
};
......@@ -674,9 +699,13 @@ var sendMail = function (mediaType, actionType, id, imageUrl, x, y, w, h, visibl
sendMail.prototype = new PageObject();
/* mediaType = 1 and actionType = 8 open popup object*/
var openPopUp = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, content) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
var openPopUp = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, content, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("openPopUp:" + getPageIndex() + " id:" + id);
isOpenPopUpText = true;
var pt1 = imageToScreen(x, y + h / 2);
......@@ -694,8 +723,8 @@ openPopUp.prototype = new PageObject();
var moveContentParam = {};
/* mediaType = 1 and actionType = 10 move to Content object*/
var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, contentId, pageNo) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, contentId, pageNo, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
/* set end log */
SetEndLog(contentID);
......@@ -907,10 +936,14 @@ function createPwdRequiredTypeDialog(){
//END TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content
/* mediaType=2 Video object : extends PageObject */
var videoType2 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, mediaFile, media, embed) {
var videoType2 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, mediaFile, media, embed, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, embed);
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, embed, objectId);
this.action = function () {
//abe
alert("videoType2:" + getPageIndex());
/*stop audio on page */
stopAllAudio();
if (embed == "1") {
......@@ -936,8 +969,8 @@ var videoType2 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visi
videoType2.prototype = new PageObject();
/* mediaType = 1 and actionType = 0 linkURL object*/
var imageNoAction = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
var imageNoAction = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//no action
};
......@@ -945,9 +978,13 @@ var imageNoAction = function (mediaType, actionType, id, imageUrl, x, y, w, h, v
imageNoAction.prototype = new PageObject();
/* mediaType=1 Video object : extends PageObject */
var videoType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, mediaFile, media) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
var videoType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, mediaFile, media, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("videoType1:" + + getPageIndex());
if (media != '') {
/* stop all audio on page */
stopAllAudio();
......@@ -968,35 +1005,45 @@ var videoType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visi
videoType1.prototype = new PageObject();
/* mediaType=1 and actionType = 2 Audio object : extends PageObject */
var audioType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, audioFile) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
var audioType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, audioFile, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("audioType1");
createAudio(audioFile, "0")
};
};
audioType1.prototype = new PageObject();
/* mediaType = 1 and actionType = 3 linkURL object*/
var linkURL = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, linkUrl, browserType) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, null);
var linkURL = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, linkUrl, browserType, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, null, objectId);
this.action = function () {
//abe
alert("linkURL");
window.open(linkUrl, "_blank", "new window");
};
};
linkURL.prototype = new PageObject();
/* mediaType = 1 and actionType = 4 imagePreview object*/
var imagePreview = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, imagePreview) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null);
var imagePreview = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, imagePreview, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () {
//abe
alert("imagePreview");
createImagePreview();
showImagePreview($('#divImagePreview'), imagePreview);
$("#btnClose").live('click', hideDialog);
showDialog(true);
};
};
......@@ -1053,6 +1100,7 @@ Content.prototype.setPageObjects = function (pageObjects) {
/* Set up page */
Content.prototype.setUpPage = function (pageIndex, opt) {
this.currentPage = createPage(
this.pageIndex,
this.pageImages,
......@@ -1571,6 +1619,9 @@ function createTextConfirmAudio() {
/* create page */
function createPage(pageNumber, pageImage, pageObjects, onCompleteFunc) {
//abe 次のページを作成している
//alert("CreateObj_createPage:" + pageNumber);
var page = new ContentPage(pageNumber, pageImage);
/* add page Object */
//Start Function: No.12
......
......@@ -302,6 +302,11 @@ function clickSearchDetail() {
function nextPage_click() {
if (getContent().hasNextPage()) {
//abe
alert("nextPage_click:" + contentID );
SetPageLog( contentID, getPageIndex() + 1);
playBGMOfContent();
playBGMOfPage(getPageIndex() + 1);
......@@ -323,6 +328,11 @@ function nextPage_click() {
function prevPage_click() {
if (getContent().hasPreviousPage()) {
//abe
alert("prevPage_click:" + contentID);
SetPageLog( contentID, getPageIndex() - 1);
playBGMOfContent();
playBGMOfPage(getPageIndex() - 1);
......@@ -347,6 +357,11 @@ function firstPage_click() {
prevPage_click();
}
else{
//abe
alert("firstPage_click:" + contentID );
SetPageLog( contentID, 0 );
playBGMOfContent();
playBGMOfPage(0);
......@@ -413,6 +428,11 @@ function lastPage_click() {
nextPage_click();
}
else{
//abe
alert("lastPage_click:" + contentID );
SetPageLog( contentID, totalPage - 1 );
playBGMOfContent();
playBGMOfPage(totalPage - 1);
......
......@@ -143,6 +143,10 @@ function getMediaType1(iValueObj) {
pageObject['width'] = iValueObj.location.width;
pageObject['height'] = iValueObj.location.height;
pageObject['id'] = "MediaType1_" + iValueObj.action.actionType;
//詳細ログ用
pageObject["objectId"] = iValueObj.action.objectId;
if (iValueObj.action.actionType == 0) {
/*get mediaInfo */
if (iValueObj.mediaInfo) {
......@@ -345,7 +349,7 @@ function getMediaType1(iValueObj) {
pageObject["replyLimit"] = iValueObj.action.replyLimit;
pageObject["fullScreen"] = iValueObj.action.fullScreen;
pageObject["saveAs"] = iValueObj.action.saveAs;
pageObject["objectId"] = iValueObj.action.objectId;
//pageObject["objectId"] = iValueObj.action.objectId;
}
//End Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary :
return pageObject;
......@@ -390,6 +394,9 @@ function getMediaType2(iValueObj) {
pageObject['height'] = iValueObj.location.height;
pageObject['visible'] = true;
//詳細ログ用
pageObject["objectId"] = iValueObj.action.objectId;
return pageObject;
};
......@@ -430,6 +437,9 @@ function getMediaType3(iValueObj) {
pageObject['height'] = iValueObj.location.height;
pageObject['visible'] = true;
//詳細ログ用
pageObject["objectId"] = iValueObj.action.objectId;
return pageObject;
};
......@@ -471,6 +481,9 @@ function getMediaType4(iValueObj) {
pageObject['height'] = iValueObj.location.height;
pageObject['visible'] = true;
//詳細ログ用(使わない)
pageObject["objectId"] = iValueObj.action.objectId;
return pageObject;
};
......@@ -500,6 +513,9 @@ function getMediaType5(iValueObj) {
pageObject['height'] = iValueObj.location.height;
pageObject['visible'] = true;
//詳細ログ用(使わない)
pageObject["objectId"] = iValueObj.action.objectId;
return pageObject;
};
......@@ -562,6 +578,9 @@ function getMediaType6(iValueObj) {
pageObject['height'] = iValueObj.location.height;
pageObject['visible'] = true;
//詳細ログ用
pageObject["objectId"] = iValueObj.action.objectId;
return pageObject;
};
......@@ -597,6 +616,9 @@ function getMediaType7(iValueObj) {
pageObject['height'] = iValueObj.location.height;
pageObject['visible'] = true;
//詳細ログ用(使わない)
pageObject["objectId"] = iValueObj.action.objectId;
return pageObject;
};
......@@ -647,6 +669,9 @@ function getMediaType8(iValueObj) {
pageObject['3dview'] = _3dViewObject;
}
//詳細ログ用
pageObject["objectId"] = iValueObj.action.objectId;
return pageObject;
};
......@@ -665,7 +690,8 @@ function getMediaType9(iValueObj) {
pageObject['height'] = iValueObj.location.height;
pageObject['visible'] = true;
//詳細ログ用
pageObject["objectId"] = iValueObj.action.objectId;
if(iValueObj.action.actionType == 11){
var resourceId = iValueObj.mediaInfo.resourceId;
......@@ -706,7 +732,8 @@ function getMediaType11(iValueObj) {
pageObject['height'] = iValueObj.location.height;
pageObject['visible'] = true;
//詳細ログ用
pageObject["objectId"] = iValueObj.action.objectId;
if(iValueObj.action.actionType == 12){
var resourceId = iValueObj.mediaInfo.resourceId;
......@@ -1457,6 +1484,9 @@ function assignCurrentContentPage(nav){
}
//abe
//alert("assignCurrentContentPage:" + content.currentPage);
};
//Correct Canvas Position
......
......@@ -128,6 +128,10 @@ function setLoadingSize(){
};
//END : TRB00034 - DATE : 09/11/2013 - Editor : Long - Summary : Fix for center loading image
function initPage() {
//abe
//alert("initPage");
//START : TRB00034 - DATE : 09/11/2013 - Editor : Long - Summary : Fix for center loading image
setLoadingSize();
//END : TRB00034 - DATE : 09/11/2013 - Editor : Long - Summary : Fix for center loading image
......
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
/// <reference path="header.js" />
//Start Declare Variables
......@@ -60,6 +52,10 @@ var isSubMenuHoverOn = false;
var home_isMove = false;
var isShowBookShelf = null;
var showNextRecordClickNumber = 1;
//名前空間用のオブジェクトを用意する
var home = {};
//==========================================================
$(document).ready(function () {
......@@ -69,7 +65,6 @@ $(document).ready(function () {
document.title = i18nText('dspHome') + ' | ' + i18nText('sysAppTitle');
// Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.Home);
......@@ -197,20 +192,135 @@ $(document).ready(function () {
// hide tab group with user anonymous
if (isAnonymousLogin()) {
$('.switchingTab .colright').hide();
//カタログエディション対応判定
if( ClientData.serviceOpt_catalog_edition() == 'Y'){
$('.tabUnit').hide();
} else {
$('.switchingTab .colright').hide();
}
//日比谷対応判定
if( ClientData.serviceOpt_hibiyakadan_catalog() == 'Y'){
$('#dspHibiya').show();
//日比谷テスト
jQuery( '#dlgAddMemberGroup' ).dialog( {
autoOpen: false,
modal: true,
});
$('#dspHibiya').click(dspHibiyaClickFunction);
$('#btnAddMemberGroupSearch').click(btnAddMemberGroupSearchClickFunction);
} else {
$('#dspHibiya').hide();
}
//プッシュメッセージ隠す
$('#dspPushMessage').hide();
} else {
$('.switchingTab .colright').show();
}
// set scroll for tree view with IE9 on win7
var ua = window.navigator.userAgent.toLowerCase();
if (/msie 9.0/.test(ua) && /windows nt 6.1/.test(ua) && !/tablet/.test(ua)) {
$('.tab_bg_color').css({ "overflow-x": "scroll" });
}
//if (isIE9()) {
// $('.tab_bg_color').css({ "overflow-x": "scroll" });
//}
//日比谷テスト
$( '#dlgAddMemberGroup' ).dialog( {
autoOpen: false,
modal: true,
});
$('#dspHibiya').click(dspHibiyaClickFunction);
$('#btnAddMemberGroupSearch').click(btnAddMemberGroupSearchClickFunction);
});
//日比谷カスタム ここから
function dspHibiyaClickFunction(){
$( '#dlgAddMemberGroup' ).dialog( 'open' );
}
function btnAddMemberGroupSearchClickFunction(){
var addGroupName = $('#txtAddMemberGroupName').val();
if( addGroupName == "" ){
return;
}
var groupIds = getAddMemberGroupId(addGroupName);
if( groupIds == "" ){
alert("公開コードの判定に失敗しました。");
return;
}
$( '#dlgAddMemberGroup' ).dialog( 'close' );
ClientData.searchCond_groupId(groupIds);
//画面再描画開始
var recordFrom = 0;
var recordTo = 0;
if (isShowBookShelf) {
recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM;
recordTo = returnNumberDispRecordForBookShelf();
}
else if (!isShowBookShelf) {
recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM;
recordTo = returnNumberDispRecordForList();
}
else {
recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM;
recordTo = returnNumberDispRecordForBookShelf();
}
else $('.switchingTab .colright').show();
// set scroll for tree view with IE9 on win7
var ua = window.navigator.userAgent.toLowerCase();
if (/msie 9.0/.test(ua) && /windows nt 6.1/.test(ua) && !/tablet/.test(ua)) {
$('.tab_bg_color').css({ "overflow-x": "scroll" });
}
// if (isIE9()) {
// $('.tab_bg_color').css({ "overflow-x": "scroll" });
// }
var id = ClientData.userInfo_sid();
var searchText = ClientData.searchCond_searchText();
var searchDivision = ClientData.searchCond_searchDivision();
var sortType = ClientData.searchCond_sortType();
var sortOrder = ClientData.searchCond_sortOrder();
//ClientData.searchCond_groupId('');
ClientData.searchCond_genreId('');
var groupId = ClientData.searchCond_groupId();
var genreId = ClientData.searchCond_genreId();
//refresh gridview
refreshGrid();
resetShowNextRecordCount();
handleSortDisp();
renderContent(id, searchText, searchDivision, sortType, sortOrder, recordFrom, recordTo, genreId, groupId);
}
function getAddMemberGroupId(strGroupName) {
var groupIds = "";
var params = {
sid: ClientData.userInfo_sid(),
groupName: strGroupName
};
avwCmsApiSync(ClientData.userInfo_accountPath(), "addMemberGroup", 'POST', params,
// Success
function (data) {
if (data.groupIds) {
groupIds = data.groupIds;
}
},
function (xmlHttpRequest, txtStatus, errorThrown) {
//
}
);
return groupIds;
};
//--日比谷カスタム ここまで
});
var allowTimerCloseSubMenu = true;
var timer_subMenu;
function startTimerCloseMenu() {
......@@ -2117,7 +2227,7 @@ function checkContentMarkingMemoOption(contentId) {
function checkUserHasReadContent(contId, resourceVer, metaVer) {
var imgThumb = new Image();
//imgThumb.src = returnThumbnail(contId);
//imgThumb.src = returnThumbnail(contId);
var imgIconNew = new Image();
//imgIconNew.src = DEFAULT_IMG_CONTENT_NEW;
......
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
var requirePasswordChange;
......@@ -29,6 +22,9 @@ var login_errorMessage = "";
var timeWaitSplashScreen = 2000;// wait splash screen 2 second
//名前空間用のオブジェクトを用意する
var login = {};
//Load login Info
function loadLoginInfo() {
......@@ -94,8 +90,6 @@ function saveLoginInfo() {
}
ClientData.userInfo_lastLoginTime(date.jpDateTimeString());
//ClientData.requirePasswordChange(requirePasswordChange);
//ClientData.userInfo_sid(userinfo_sid);
ClientData.userInfo_sid_local(userinfo_sid);
saveServiceUserOption();
......@@ -145,15 +139,6 @@ function checkDialogValidation() {
msgError.html(i18nText('msgPwdEmpty'));
msgError.attr('lang', 'msgPwdEmpty');
msgError.show();
/* show error messages */
//$().toastmessage({ position: 'middle-center' });
//$().toastmessage('showToast', {
// type: 'error',
// sticky: true,
// text: i18nText('msgPwdEmpty')
//});
return false;
}
else if (!ValidationUtil.CheckRequiredForText(newPass)) {
......@@ -161,28 +146,8 @@ function checkDialogValidation() {
msgError.html(i18nText('msgPwdEmpty'));
msgError.attr('lang', 'msgPwdEmpty');
msgError.show();
/* show error messages */
//$().toastmessage({ position: 'middle-center' });
//$().toastmessage('showToast', {
// type: 'error',
// sticky: true,
// text: i18nText('msgPwdEmpty')
//});
return false;
}
// else if (!ValidationUtil.CheckRequiredForText(confirmPass)) {
// //msgError.html(i18nText('msgPwdEmpty'));
// //msgError.show();
// /* show error messages */
// $().toastmessage({ position: 'middle-center' });
// $().toastmessage('showToast', {
// type: 'error',
// sticky: true,
// text: i18nText('msgPwdEmpty')
// });
// return false;
// }
else
{
if(newPass != confirmPass){
......@@ -190,13 +155,6 @@ function checkDialogValidation() {
msgError.html(i18nText('msgPwdNotMatch'));
msgError.attr('lang', 'msgPwdNotMatch');
msgError.show();
/* show error messages */
// $().toastmessage({ position: 'middle-center' });
// $().toastmessage('showToast', {
// type: 'error',
// sticky: true,
// text: i18nText('msgPwdNotMatch')
//});
return false;
}
else{
......@@ -241,17 +199,11 @@ function processLogin() {
// Save retrieved info
saveLoginInfo();
// data.requirePasswordChange = 1;
// force_pw_change_on_login = 2;
// set number new push message to 0
ClientData.pushInfo_newMsgNumber(0);
$('#main-error-message').css('display', 'none');
if (data.requirePasswordChange == 0) {
ClientData.userInfo_sid(ClientData.userInfo_sid_local());
avwScreenMove("abvw/" + ScreenIds.Home);
......@@ -647,11 +599,34 @@ function initLoginAnonymousUser() {
$.each(data.serviceOptionList, function (i, option) {
if (option.serviceName == 'marking') {
ClientData.serviceOpt_marking(option.value);
} else if( option.serviceName == 'catalog_edition' ) {
ClientData.serviceOpt_catalog_edition(option.value);
} else if( option.serviceName == 'hibiyakadan_catalog' ) {
ClientData.serviceOpt_hibiyakadan_catalog(option.value);
}
});
// hide splash screen then move to home page
$('#anonymous').fadeOut('slow', 'swing', function () {
avwScreenMove("abvw/" + ScreenIds.Home);
//avwScreenMove("abvw/" + ScreenIds.Home);
//カタログエディション対応判定
if( ClientData.serviceOpt_catalog_edition() == 'Y'){
//引数パラメータがあれば取得
var paramContentID = login.getUrlParams('cid');
//カタログ対応
if( paramContentID != '' ){
//OpenUrlでコンテンツ開く
login.showContentViewByOpenUrl(paramContentID);
} else {
//ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home);
}
} else {
//ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home);
}
});
}
else {
......@@ -675,15 +650,64 @@ function initLoginAnonymousUser() {
showMessageErrorLoginAnonymous(i18nText('msgAnonymousLoginErr2'));
}
});
};
};
function showMessageErrorLoginAnonymous(errorMessage) {
$().toastmessage({ position: 'middle-center' });
$().toastmessage('showToast', {
type: 'error',
sticky: true,
text: errorMessage
});
$('.toast-position-middle-center').css('width', '400px');
};
login.showContentViewByOpenUrl = function(strContentId) {
var contentType = '';
var result = [];
var params = {
sid: ClientData.userInfo_sid(),
getType: '1',
contentId: strContentId
};
avwCmsApiSync(ClientData.userInfo_accountPath(), "webGetContent", 'GET', params,
function (data) {
//コンテンツIDセット
ClientData.contentInfo_contentId(strContentId);
//コンテツタイプ判定
contentType = data.contentData.contentType;
if(contentType == ContentTypeKeys.Type_Others){
//Download content
downloadResourceById(strContentId);
// redraw content remove new icon
//drawEditImage(contentId); 不要
} else {
//Go to Conten view page
avwScreenMove("abvw/" + ScreenIds.ContentView);
}
},
function (xmlHttpRequest, txtStatus, errorThrown) {
//見つからないかエラーなのでホームに移動
avwScreenMove("abvw/" + ScreenIds.Home);
}
);
};
//Get param url
login.getUrlParams = function(name){
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null ){
return "";
}
else{
return results[1];
}
};
function showMessageErrorLoginAnonymous(errorMessage) {
$().toastmessage({ position: 'middle-center' });
$().toastmessage('showToast', {
type: 'error',
sticky: true,
text: errorMessage
});
$('.toast-position-middle-center').css('width', '400px');
};
\ No newline at end of file
<!DOCTYPE html>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title></title>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div style="text-align: center">
<a href="login.html">ログイン - login</a><br />
</div>
<div style="text-align: center">
<a href="login.html">ログイン - login</a><br/>
</div>
</body>
</html>
......@@ -2,9 +2,6 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--<script type='text/javascript' src='http://code.jquery.com/jquery-latest.min.js'></script>
<script type="text/javascript" src="js/thickbox.js"></script>-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1" />
......@@ -18,25 +15,17 @@
<link type="text/css" rel="stylesheet" href="./abvw/css/layout/common.css" />
<link type="text/css" rel="stylesheet" href="./abvw/css/theme/common.css" />
<!-- <link type="text/css" rel="stylesheet" href="./abvw/css/layout/footer.css" />
<link type="text/css" rel="stylesheet" href="./abvw/css/theme/footer.css" />-->
<link rel="stylesheet" type="text/css" href="./abvw/common/css/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="./abvw/common/css/jquery.toastmessage.css" />
<link rel="stylesheet" type="text/css" href="./abvw/css/layout/login.css" />
<link rel="stylesheet" type="text/css" href="./abvw/css/theme/login.css" />
<!--
<link rel="stylesheet" type="text/css" href="./abvw/css/login.css" />-->
<link rel="stylesheet" type="text/css" href="./abvw/css/layout/login_validation.css" />
<link rel="stylesheet" type="text/css" href="./abvw/css/theme/login_validation.css" />
<script src="./abvw/common/js/jquery-1.8.1.min.js"></script>
<!--<script src="./abvw/common/js/jquery-latest.js"></script>-->
<script src="./abvw/common/js/thickbox.js"></script>
<script src="./abvw/common/js/jquery-ui-1.8.23.custom.min.js"></script>
<script src="./abvw/common/js/jquery.toastmessage.js"></script>
<script src="./abvw/common/js/screenLock.js" type="text/javascript"></script>
......@@ -53,86 +42,86 @@
</style>
<![endif]-->
<!-- <script type="text/javascript">
$('head').append(
'<style type="text/css">#container { display: none; } #fade, #loader { display: block; }</style>'
$('head').append(
'<style type="text/css">#container { display: none; } #fade, #loader { display: block; }</style>'
);
jQuery.event.add(window,"load",function() { // 全ての読み込み完了後に呼ばれる関数
var pageH = $("#container").height();
$("#fade").css("height", pageH).delay(900).fadeOut(800);
$("#loader").delay(600).fadeOut(300);
$("#container").css("display", "block");
var pageH = $("#container").height();
$("#fade").css("height", pageH).delay(900).fadeOut(800);
$("#loader").delay(600).fadeOut(300);
$("#container").css("display", "block");
});
</script>-->
</head>
<body id="login">
<div id="anonymous">
<img src="./abvw/img/login/logo_login.png" width="166" height="150" class="clearboth"/>
<img src="./abvw/img/login/logo_login.png" width="166" height="150" class="clearboth"/>
</div>
<div id="normalUser">
<div id="loader"><img src="./abvw/img/login/loading_icon.gif" width="200" height="200"></div>
<div id="fade"></div>
<div class="wrapper">
<div id="main">
<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>
<article>
<img src="./abvw/img/login/logo_login.png" width="166" height="150" class="clearboth" id="logologin">
<section id="formlogin">
<table width="440" border="0" cellspacing="0">
<tr>
<th width="33%" class="lang" lang="txtLoginAccPath">アカウントパス</th>
<td width="67%"><input type="text" id="txtAccPath" maxlength="60" /></td>
</tr>
<tr>
<th class="lang" lang="txtLoginId">ログインID</th>
<td><input type="text" id="txtAccId" maxlength="54" /></td>
</tr>
<tr>
<th class="lang" lang="txtLoginPwd">パスワード</th>
<td><input type="password" id="txtPassword"/></td>
</tr>
</table>
<p class="error lang" id="main-error-message" style="display:none;">パスワードまたはIDに誤りがあります</p>
<p class="memory"><input type="checkbox" id="chkRemember" /><label class="lang" lang="txtLoginPwdRbr" for="chkRemember">アカウントパスとログインIDを記憶する</label></p>
<a class="loginbtn lang" id="btnLogin" lang="dspLogin">ログイン</a>
</section>
</article>
</div>
</div>
<footer>
<div class="border">
<div class="cnt_footer">
COPYRIGHT &copy; 2013 AGENTEC Co., Ltd. ALL RIGHTS RESERVED.
</div>
</div>
</footer>
<div id="loader"><img src="./abvw/img/login/loading_icon.gif" width="200" height="200"></div>
<div id="fade"></div>
<div class="wrapper">
<div id="main">
<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>
<article>
<img src="./abvw/img/login/logo_login.png" width="166" height="150" class="clearboth" id="logologin">
<section id="formlogin">
<table width="440" border="0" cellspacing="0">
<tr>
<th width="33%" class="lang" lang="txtLoginAccPath">アカウントパス</th>
<td width="67%"><input type="text" id="txtAccPath" maxlength="60" /></td>
</tr>
<tr>
<th class="lang" lang="txtLoginId">ログインID</th>
<td><input type="text" id="txtAccId" maxlength="54" /></td>
</tr>
<tr>
<th class="lang" lang="txtLoginPwd">パスワード</th>
<td><input type="password" id="txtPassword"/></td>
</tr>
</table>
<p class="error lang" id="main-error-message" style="display:none;">パスワードまたはIDに誤りがあります</p>
<p class="memory"><input type="checkbox" id="chkRemember" /><label class="lang" lang="txtLoginPwdRbr" for="chkRemember">アカウントパスとログインIDを記憶する</label></p>
<a class="loginbtn lang" id="btnLogin" lang="dspLogin">ログイン</a>
</section>
</article>
</div>
</div>
<footer>
<div class="border">
<div class="cnt_footer">
COPYRIGHT &copy; 2013 AGENTEC Co., Ltd. ALL RIGHTS RESERVED.
</div>
</div>
</footer>
</div>
<section id="main-password-change" class="sectionchangepassword">
<h1 class="title lang" lang="msgChangePassword">パスワードを変更してください。</h1>
<span id="dialog-error-message" class="alertTxtDialog lang"></span>
<dl>
<dt class="lang" lang="txtPwdCurr">旧パスワード:</dt>
<dd><input type="password" id="txtCurrentPass" /></dd>
</dl>
<dl>
<dt class="lang" lang="txtPwdNew">旧パスワード:</dt>
<dd><input type="password" id="txtNewPass" /></dd>
</dl>
<dl>
<dt class="lang" lang="txtPwdNewRe">新パスワード(確認):</dt>
<dd><input type="password" id="txtConfirmNew"/></dd>
</dl>
<p class="lang" lang="txtPwdRemind" id="txtPwdRemind">※スキップを選択すると、30日間このメッセージは表示されません</p>
<p class="loginbtn">
<a class="skip lang" id="btnSkip" lang="dspSkip">スキップ</a>
<a class="change lang" id="btnChange" lang="dspChange">変更</a>
</p>
<h1 class="title lang" lang="msgChangePassword">パスワードを変更してください。</h1>
<span id="dialog-error-message" class="alertTxtDialog lang"></span>
<dl>
<dt class="lang" lang="txtPwdCurr">旧パスワード:</dt>
<dd><input type="password" id="txtCurrentPass" /></dd>
</dl>
<dl>
<dt class="lang" lang="txtPwdNew">旧パスワード:</dt>
<dd><input type="password" id="txtNewPass" /></dd>
</dl>
<dl>
<dt class="lang" lang="txtPwdNewRe">新パスワード(確認):</dt>
<dd><input type="password" id="txtConfirmNew"/></dd>
</dl>
<p class="lang" lang="txtPwdRemind" id="txtPwdRemind">※スキップを選択すると、30日間このメッセージは表示されません</p>
<p class="loginbtn">
<a class="skip lang" id="btnSkip" lang="dspSkip">スキップ</a>
<a class="change lang" id="btnChange" lang="dspChange">変更</a>
</p>
</section>
</body>
......
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