Commit 2333695b by vietdo

#9394 【Web 1.1】タップしてPlayで再生中に再度タップしても止まらない

parent bb946e0e
...@@ -5,7 +5,7 @@ var CONTENTVIEW_CREATEOBJECT = {}; ...@@ -5,7 +5,7 @@ var CONTENTVIEW_CREATEOBJECT = {};
CONTENTVIEW_CREATEOBJECT.alertMessageLevel = { CONTENTVIEW_CREATEOBJECT.alertMessageLevel = {
ShowAlert : '1', ShowAlert : '1',
RequirePassword : '2', RequirePassword : '2',
None : '0' None : '0'
}; };
/* ----------------------------------- Create memo --------------------------------*/ /* ----------------------------------- Create memo --------------------------------*/
...@@ -72,7 +72,7 @@ CONTENTVIEW_CREATEOBJECT.MemoObject.prototype.drawMemo = function (context, opt) ...@@ -72,7 +72,7 @@ CONTENTVIEW_CREATEOBJECT.MemoObject.prototype.drawMemo = function (context, opt)
if( tempRatioHeight < 1 ){ if( tempRatioHeight < 1 ){
tempRatioHeight = 1; tempRatioHeight = 1;
} }
var posX = this.x * tempRatioWidth; var posX = this.x * tempRatioWidth;
var posY = this.y * tempRatioHeight; var posY = this.y * tempRatioHeight;
var objWidth = this.width * tempRatioWidth; var objWidth = this.width * tempRatioWidth;
...@@ -167,7 +167,7 @@ CONTENTVIEW_CREATEOBJECT.WebGetContentTyp4Object.prototype.hitTest = function (p ...@@ -167,7 +167,7 @@ CONTENTVIEW_CREATEOBJECT.WebGetContentTyp4Object.prototype.hitTest = function (p
/* draw Memo */ /* draw Memo */
CONTENTVIEW_CREATEOBJECT.WebGetContentTyp4Object.prototype.drawObject = function (context, opt) { CONTENTVIEW_CREATEOBJECT.WebGetContentTyp4Object.prototype.drawObject = function (context, opt) {
//#11478 //#11478
var canvasWidth = $('#offscreen').width(); var canvasWidth = $('#offscreen').width();
var canvasHeight = $('#offscreen').height(); var canvasHeight = $('#offscreen').height();
...@@ -179,7 +179,7 @@ CONTENTVIEW_CREATEOBJECT.WebGetContentTyp4Object.prototype.drawObject = function ...@@ -179,7 +179,7 @@ CONTENTVIEW_CREATEOBJECT.WebGetContentTyp4Object.prototype.drawObject = function
if( tempRatioHeight < 1 ){ if( tempRatioHeight < 1 ){
tempRatioHeight = 1; tempRatioHeight = 1;
} }
var posX = this.x * tempRatioWidth; var posX = this.x * tempRatioWidth;
var posY = this.y * tempRatioHeight; var posY = this.y * tempRatioHeight;
var objWidth = this.width * tempRatioWidth; var objWidth = this.width * tempRatioWidth;
...@@ -189,10 +189,10 @@ CONTENTVIEW_CREATEOBJECT.WebGetContentTyp4Object.prototype.drawObject = function ...@@ -189,10 +189,10 @@ CONTENTVIEW_CREATEOBJECT.WebGetContentTyp4Object.prototype.drawObject = function
context.globalAlpha = 0.4; context.globalAlpha = 0.4;
context.drawImage(imageObj, posX, posY, objWidth, objHeigth); context.drawImage(imageObj, posX, posY, objWidth, objHeigth);
//Start Function : No.4 - Editor: Long - Date : 08/14/2013 - Summary : handle lazy loading //Start Function : No.4 - Editor: Long - Date : 08/14/2013 - Summary : handle lazy loading
CONTENTVIEW.flip(opt); CONTENTVIEW.flip(opt);
//Start Function : No.4 - Editor: Long - Date : 08/14/2013 - Summary : handle lazy loading //Start Function : No.4 - Editor: Long - Date : 08/14/2013 - Summary : handle lazy loading
context.globalAlpha = 1; context.globalAlpha = 1;
}; };
imageObj.src = this.imageUrl; imageObj.src = this.imageUrl;
...@@ -213,7 +213,7 @@ CONTENTVIEW_CREATEOBJECT.webContentType4 = function (id, x, y, w, h, imageUrl, l ...@@ -213,7 +213,7 @@ CONTENTVIEW_CREATEOBJECT.webContentType4 = function (id, x, y, w, h, imageUrl, l
setTimeout(function(){COMMON.ToogleLogoutNortice();}, 200); setTimeout(function(){COMMON.ToogleLogoutNortice();}, 200);
//END TRB00070 //END TRB00070
} }
} }
else if (linkKind == "0") { else if (linkKind == "0") {
CONTENTVIEW.changePage(CONTENTVIEW.changePageNo(destPageNumber)); CONTENTVIEW.changePage(CONTENTVIEW.changePageNo(destPageNumber));
} }
...@@ -224,7 +224,7 @@ CONTENTVIEW_CREATEOBJECT.webContentType4.prototype = new CONTENTVIEW_CREATEOBJEC ...@@ -224,7 +224,7 @@ CONTENTVIEW_CREATEOBJECT.webContentType4.prototype = new CONTENTVIEW_CREATEOBJEC
/* ----------------------------------- End create webGetContentType4 -----------------------------*/ /* ----------------------------------- End create webGetContentType4 -----------------------------*/
/** /**
* PageObject Class Definition * PageObject Class Definition
*/ */
/* constructor */ /* constructor */
...@@ -248,9 +248,9 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.setup = function (mediaType, actio ...@@ -248,9 +248,9 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.setup = function (mediaType, actio
if( this.imageUrl != null ){ if( this.imageUrl != null ){
this.image.src = this.imageUrl; this.image.src = this.imageUrl;
} }
this.objectId = objectId; this.objectId = objectId;
}; };
/* prototype hitTest */ /* prototype hitTest */
...@@ -271,7 +271,7 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.hitTest = function (px, py) { ...@@ -271,7 +271,7 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.hitTest = function (px, py) {
var tmpY = this.y * tempRatioHeight; var tmpY = this.y * tempRatioHeight;
var tmpW = this.width * tempRatioWidth; var tmpW = this.width * tempRatioWidth;
var tmpH = this.height * tempRatioHeight; var tmpH = this.height * tempRatioHeight;
if ( tmpX <= px && px <= (tmpX + tmpW)) { if ( tmpX <= px && px <= (tmpX + tmpW)) {
if (tmpY <= py && py <= (tmpY + tmpH)) { if (tmpY <= py && py <= (tmpY + tmpH)) {
return true; return true;
...@@ -287,23 +287,23 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.hitTest = function (px, py) { ...@@ -287,23 +287,23 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.hitTest = function (px, py) {
/* draw page Object */ /* draw page Object */
//Start Function: No.4 - Editor : Long - Date: 08/09/2013 - Summary : Edit function to draw object on next page //Start Function: No.4 - Editor : Long - Date: 08/09/2013 - Summary : Edit function to draw object on next page
CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context, opt) { CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context, opt) {
if(opt == undefined || opt == null){ if(opt == undefined || opt == null){
opt = 0; opt = 0;
} }
var nObjectCnt = 0; var nObjectCnt = 0;
//#11478 //#11478
var tempRatioWidth = 1; var tempRatioWidth = 1;
var tempRatioHeight = 1; var tempRatioHeight = 1;
var canvasWidth = 0; var canvasWidth = 0;
var canvasHeight = 0; var canvasHeight = 0;
//Check which pageObject to be count //Check which pageObject to be count
if(opt == 0){ if(opt == 0){
nObjectCnt = CONTENTVIEW_GENERAL.pageObjects.length; nObjectCnt = CONTENTVIEW_GENERAL.pageObjects.length;
//#11478 //#11478
canvasWidth = $('#offscreen').width(); canvasWidth = $('#offscreen').width();
canvasHeight = $('#offscreen').height(); canvasHeight = $('#offscreen').height();
...@@ -315,11 +315,11 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -315,11 +315,11 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
if( tempRatioHeight < 1 ){ if( tempRatioHeight < 1 ){
tempRatioHeight = 1; tempRatioHeight = 1;
} }
} }
else if(opt == 1){ else if(opt == 1){
nObjectCnt = CONTENTVIEW_GENERAL.nextPageObjects.length; nObjectCnt = CONTENTVIEW_GENERAL.nextPageObjects.length;
//#11478 //#11478
canvasWidth = $('#offscreenNext').width(); canvasWidth = $('#offscreenNext').width();
canvasHeight = $('#offscreenNext').height(); canvasHeight = $('#offscreenNext').height();
...@@ -331,11 +331,11 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -331,11 +331,11 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
if( tempRatioHeight < 1 ){ if( tempRatioHeight < 1 ){
tempRatioHeight = 1; tempRatioHeight = 1;
} }
} }
else if(opt == 2){ else if(opt == 2){
nObjectCnt = CONTENTVIEW_GENERAL.prevPageObjects.length; nObjectCnt = CONTENTVIEW_GENERAL.prevPageObjects.length;
//#11478 //#11478
canvasWidth = $('#offscreenPre').width(); canvasWidth = $('#offscreenPre').width();
canvasHeight = $('#offscreenPre').height(); canvasHeight = $('#offscreenPre').height();
...@@ -347,36 +347,36 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -347,36 +347,36 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
if( tempRatioHeight < 1 ){ if( tempRatioHeight < 1 ){
tempRatioHeight = 1; tempRatioHeight = 1;
} }
} }
if (this.visible) { if (this.visible) {
/* init data */ /* init data */
var mediaType = this.mediaType; var mediaType = this.mediaType;
var displayBorder = this.displayBorder; var displayBorder = this.displayBorder;
//#11478 //#11478
var x = this.x * tempRatioWidth; var x = this.x * tempRatioWidth;
var y = this.y * tempRatioHeight; var y = this.y * tempRatioHeight;
var w = this.width * tempRatioWidth; var w = this.width * tempRatioWidth;
var h = this.height * tempRatioHeight; var h = this.height * tempRatioHeight;
var tempUrl = this.imageUrl; var tempUrl = this.imageUrl;
var isUsedTempImg = false; var isUsedTempImg = false;
//START TRB00046 - Editor : Long - Date: 09/19/2013 - Summary : Fix for draw video object at center //START TRB00046 - Editor : Long - Date: 09/19/2013 - Summary : Fix for draw video object at center
if(mediaType == '6' && tempUrl == 'img/iPad_video.png'){ if(mediaType == '6' && tempUrl == 'img/iPad_video.png'){
isUsedTempImg = true; isUsedTempImg = true;
} }
//END TRB00046 - Editor : Long - Date: 09/19/2013 - Summary : Fix for draw video object at center //END TRB00046 - Editor : Long - Date: 09/19/2013 - Summary : Fix for draw video object at center
if (mediaType == '5') { if (mediaType == '5') {
CONTENTVIEW_GENERAL.nCountObjectLoad[opt]++; CONTENTVIEW_GENERAL.nCountObjectLoad[opt]++;
context.strokeStyle = "black"; context.strokeStyle = "black";
context.lineWidth = "1"; context.lineWidth = "1";
context.strokeRect(x, y, w, h); context.strokeRect(x, y, w, h);
CONTENTVIEW.flip(opt); CONTENTVIEW.flip(opt);
} }
...@@ -416,35 +416,35 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -416,35 +416,35 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
} }
} }
} }
else if (mediaType == '3') {/* audio */ else if (mediaType == '3') {/* audio */
img.width = 50; img.width = 50;
img.height = 50; img.height = 50;
//START TRB00035 - Editor : Long - Date: 09/17/2013 - Summary : Fix for draw audio object at center //START TRB00035 - Editor : Long - Date: 09/17/2013 - Summary : Fix for draw audio object at center
context.drawImage(img, x + (w/2 - img.width/2), y + (h/2 - img.height/ 2), img.width, img.height); context.drawImage(img, x + (w/2 - img.width/2), y + (h/2 - img.height/ 2), img.width, img.height);
//END TRB00035 - Editor : Long - Date: 09/17/2013 - Summary : Fix for draw audio object at center //END TRB00035 - Editor : Long - Date: 09/17/2013 - Summary : Fix for draw audio object at center
} }
else if(mediaType == '6' && isUsedTempImg){ else if(mediaType == '6' && isUsedTempImg){
img.width = 50; img.width = 50;
img.height = 50; img.height = 50;
//START TRB00046 - Editor : Long - Date: 09/19/2013 - Summary : Fix for draw video object at center //START TRB00046 - Editor : Long - Date: 09/19/2013 - Summary : Fix for draw video object at center
context.drawImage(img, x + (w/2 - img.width/2), y + (h/2 - img.height/ 2), img.width, img.height); context.drawImage(img, x + (w/2 - img.width/2), y + (h/2 - img.height/ 2), img.width, img.height);
isUsedTempImg = false; isUsedTempImg = false;
//END TRB00046 - Editor : Long - Date: 09/19/2013 - Summary : Fix for draw video object at center //END TRB00046 - Editor : Long - Date: 09/19/2013 - Summary : Fix for draw video object at center
} }
else { else {
context.drawImage(img, x, y, w, h); context.drawImage(img, x, y, w, h);
} }
CONTENTVIEW.flip(opt); CONTENTVIEW.flip(opt);
//console.log("CONTENTVIEW_GENERAL.nCountObjectLoad:" + opt + " "+ CONTENTVIEW_GENERAL.nCountObjectLoad[opt] + " nObjectCnt:" + nObjectCnt); //console.log("CONTENTVIEW_GENERAL.nCountObjectLoad:" + opt + " "+ CONTENTVIEW_GENERAL.nCountObjectLoad[opt] + " nObjectCnt:" + nObjectCnt);
if (CONTENTVIEW_GENERAL.nCountObjectLoad[opt] >= nObjectCnt) { if (CONTENTVIEW_GENERAL.nCountObjectLoad[opt] >= nObjectCnt) {
/* draw marking */ /* draw marking */
CONTENTVIEW.drawMarkingOnScreen(opt); CONTENTVIEW.drawMarkingOnScreen(opt);
...@@ -459,7 +459,7 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -459,7 +459,7 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
} }
else{ else{
CONTENTVIEW_GENERAL.isLoadingObject = false; CONTENTVIEW_GENERAL.isLoadingObject = false;
} }
} }
else{ else{
CONTENTVIEW_GENERAL.isLoadingObject = false; CONTENTVIEW_GENERAL.isLoadingObject = false;
...@@ -474,17 +474,17 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -474,17 +474,17 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
if(CONTENTVIEW_GENERAL.totalPage > 1){ if(CONTENTVIEW_GENERAL.totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
CONTENTVIEW_MARKING.enableButtonMarking(); CONTENTVIEW_MARKING.enableButtonMarking();
} }
} }
else{ else{
CONTENTVIEW_MARKING.enableButtonMarking(); CONTENTVIEW_MARKING.enableButtonMarking();
} }
} }
else{ else{
CONTENTVIEW_MARKING.enableButtonMarking(); CONTENTVIEW_MARKING.enableButtonMarking();
} }
//End Function : No.4 - Summary : make sure all page is loaded //End Function : No.4 - Summary : make sure all page is loaded
} }
else { else {
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_NoFile){ if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_NoFile){
...@@ -495,12 +495,12 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -495,12 +495,12 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
} }
else{ else{
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
} }
} }
else{ else{
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
} }
//End Function : No.4 - Summary : make sure all page is loaded //End Function : No.4 - Summary : make sure all page is loaded
} }
/*finish loading */ /*finish loading */
...@@ -513,7 +513,7 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -513,7 +513,7 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
} }
else{ else{
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
} }
} }
else{ else{
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
...@@ -525,9 +525,9 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -525,9 +525,9 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
} }
}; };
img.src = this.imageUrl; img.src = this.imageUrl;
} }
else { else {
//console.log("mediaType:" + mediaType); //console.log("mediaType:" + mediaType);
//console.log("tempUrl:" + tempUrl); //console.log("tempUrl:" + tempUrl);
if (CONTENTVIEW_GENERAL.nCountObjectLoad[opt] >= nObjectCnt) { if (CONTENTVIEW_GENERAL.nCountObjectLoad[opt] >= nObjectCnt) {
...@@ -548,23 +548,23 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -548,23 +548,23 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
} }
else{ else{
CONTENTVIEW_MARKING.enableButtonMarking(); CONTENTVIEW_MARKING.enableButtonMarking();
} }
} }
else{ else{
CONTENTVIEW_MARKING.enableButtonMarking(); CONTENTVIEW_MARKING.enableButtonMarking();
} }
//End Function : No.4 - Summary : make sure all page is loaded //End Function : No.4 - Summary : make sure all page is loaded
} else { } else {
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_NoFile){ if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(CONTENTVIEW_GENERAL.totalPage > 1){ if(CONTENTVIEW_GENERAL.totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
} }
} }
else{ else{
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
} }
} }
else{ else{
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
...@@ -572,17 +572,17 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -572,17 +572,17 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
//End Function : No.4 - Summary : mak //End Function : No.4 - Summary : mak
} }
/*finish loading */ /*finish loading */
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_NoFile){ if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(CONTENTVIEW_GENERAL.totalPage > 1){ if(CONTENTVIEW_GENERAL.totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
} }
} }
else{ else{
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
} }
} }
else{ else{
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
...@@ -600,13 +600,13 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context ...@@ -600,13 +600,13 @@ CONTENTVIEW_CREATEOBJECT.PageObject.prototype.drawPageObject = function (context
/*mediaType = 8 3d object*/ /*mediaType = 8 3d object*/
CONTENTVIEW_CREATEOBJECT.object3d = function (mediaType, actionType, id, imageUrl, x, y, w, h, hCnt, vCnt, visible, imageObjects, objectId){ CONTENTVIEW_CREATEOBJECT.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, objectId); this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function (imagePt){ this.action = function (imagePt){
//abe //abe
//alert("object3d"); //alert("object3d");
//#11478 //#11478
var canvasWidth = $('#offscreen').width(); var canvasWidth = $('#offscreen').width();
var canvasHeight = $('#offscreen').height(); var canvasHeight = $('#offscreen').height();
...@@ -618,7 +618,7 @@ CONTENTVIEW_CREATEOBJECT.object3d = function (mediaType, actionType, id, imageUr ...@@ -618,7 +618,7 @@ CONTENTVIEW_CREATEOBJECT.object3d = function (mediaType, actionType, id, imageUr
if( tempRatioHeight < 1 ){ if( tempRatioHeight < 1 ){
tempRatioHeight = 1; tempRatioHeight = 1;
} }
//#11478 操作側のイベント判定には逆に縮める対応が必要 //#11478 操作側のイベント判定には逆に縮める対応が必要
var tempRatioWidth2 = CONTENTVIEW_GENERAL.widthEachPageApi / canvasWidth; var tempRatioWidth2 = CONTENTVIEW_GENERAL.widthEachPageApi / canvasWidth;
if( tempRatioWidth2 > 1 ){ if( tempRatioWidth2 > 1 ){
...@@ -628,26 +628,26 @@ CONTENTVIEW_CREATEOBJECT.object3d = function (mediaType, actionType, id, imageUr ...@@ -628,26 +628,26 @@ CONTENTVIEW_CREATEOBJECT.object3d = function (mediaType, actionType, id, imageUr
if( tempRatioHeight2 > 1 ){ if( tempRatioHeight2 > 1 ){
tempRatioHeight2 = 1; tempRatioHeight2 = 1;
} }
//console.log("tempRatioWidth:" + tempRatioWidth + " tempRatioHeight:" + tempRatioHeight); //console.log("tempRatioWidth:" + tempRatioWidth + " tempRatioHeight:" + tempRatioHeight);
//console.log("tempRatioWidth2:" + tempRatioWidth2 + " tempRatioHeight2:" + tempRatioHeight2); //console.log("tempRatioWidth2:" + tempRatioWidth2 + " tempRatioHeight2:" + tempRatioHeight2);
var tmpX = x * tempRatioWidth; var tmpX = x * tempRatioWidth;
var tmpY = y * tempRatioHeight; var tmpY = y * tempRatioHeight;
var tmpW = w * tempRatioWidth; var tmpW = w * tempRatioWidth;
var tmpH = h * tempRatioHeight; var tmpH = h * tempRatioHeight;
if(CONTENTVIEW_3D._3dAction == CONTENTVIEW_3D._3dActionType.TouchStart_MouseDown){ if(CONTENTVIEW_3D._3dAction == CONTENTVIEW_3D._3dActionType.TouchStart_MouseDown){
CONTENTVIEW_3D.OnMouseDown3D(id, imagePt, tmpX, tmpY, tempRatioWidth2, tempRatioHeight2); CONTENTVIEW_3D.OnMouseDown3D(id, imagePt, tmpX, tmpY, tempRatioWidth2, tempRatioHeight2);
} }
else if(CONTENTVIEW_3D._3dAction == CONTENTVIEW_3D._3dActionType.TouchMove_MouseMove){ else if(CONTENTVIEW_3D._3dAction == CONTENTVIEW_3D._3dActionType.TouchMove_MouseMove){
CONTENTVIEW_3D.OnMouseMove3D(id, imagePt, tmpX, tmpY, tmpW, tmpH, hCnt, vCnt, tempRatioWidth2, tempRatioHeight2); CONTENTVIEW_3D.OnMouseMove3D(id, imagePt, tmpX, tmpY, tmpW, tmpH, hCnt, vCnt, tempRatioWidth2, tempRatioHeight2);
} }
else if(CONTENTVIEW_3D._3dAction == CONTENTVIEW_3D._3dActionType.TouchEnd_MouseUp){ else if(CONTENTVIEW_3D._3dAction == CONTENTVIEW_3D._3dActionType.TouchEnd_MouseUp){
CONTENTVIEW_3D.OnMouseEnd3D(id, hCnt, vCnt); CONTENTVIEW_3D.OnMouseEnd3D(id, hCnt, vCnt);
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -664,8 +664,8 @@ CONTENTVIEW_CREATEOBJECT.object3d = function (mediaType, actionType, id, imageUr ...@@ -664,8 +664,8 @@ CONTENTVIEW_CREATEOBJECT.object3d = function (mediaType, actionType, id, imageUr
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
} }
}; };
}; };
CONTENTVIEW_CREATEOBJECT.object3d.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject(); CONTENTVIEW_CREATEOBJECT.object3d.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject();
...@@ -686,12 +686,12 @@ CONTENTVIEW_CREATEOBJECT.text.prototype = new CONTENTVIEW_CREATEOBJECT.PageObjec ...@@ -686,12 +686,12 @@ CONTENTVIEW_CREATEOBJECT.text.prototype = new CONTENTVIEW_CREATEOBJECT.PageObjec
CONTENTVIEW_CREATEOBJECT.listImage = function (mediaType, id, imageUrl, x, y, w, h, visible, imageObjects, triggerType, objectId) { CONTENTVIEW_CREATEOBJECT.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.setup(mediaType, null, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
if (triggerType == '1') { if (triggerType == '1') {
//abe //abe
//alert("listImage triggerType=1"); //alert("listImage triggerType=1");
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -708,7 +708,7 @@ CONTENTVIEW_CREATEOBJECT.listImage = function (mediaType, id, imageUrl, x, y, w, ...@@ -708,7 +708,7 @@ CONTENTVIEW_CREATEOBJECT.listImage = function (mediaType, id, imageUrl, x, y, w,
objectLog.locationWidth = w; objectLog.locationWidth = w;
//COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); //COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
CONTENTVIEW_GENERAL.mediaType4_changeImage++; CONTENTVIEW_GENERAL.mediaType4_changeImage++;
/* check index bigger than length object */ /* check index bigger than length object */
...@@ -725,7 +725,7 @@ CONTENTVIEW_CREATEOBJECT.listImage = function (mediaType, id, imageUrl, x, y, w, ...@@ -725,7 +725,7 @@ CONTENTVIEW_CREATEOBJECT.listImage = function (mediaType, id, imageUrl, x, y, w,
imageObj.onload = function () { imageObj.onload = function () {
var canvasObject = document.getElementById("offscreen"); var canvasObject = document.getElementById("offscreen");
var contextObject = canvasObject.getContext("2d"); var contextObject = canvasObject.getContext("2d");
//#11478 //#11478
var canvasWidth = $('#offscreen').width(); var canvasWidth = $('#offscreen').width();
var canvasHeight = $('#offscreen').height(); var canvasHeight = $('#offscreen').height();
...@@ -741,12 +741,12 @@ CONTENTVIEW_CREATEOBJECT.listImage = function (mediaType, id, imageUrl, x, y, w, ...@@ -741,12 +741,12 @@ CONTENTVIEW_CREATEOBJECT.listImage = function (mediaType, id, imageUrl, x, y, w,
var tmpY = y * tempRatioHeight; var tmpY = y * tempRatioHeight;
var tmpW = w * tempRatioWidth; var tmpW = w * tempRatioWidth;
var tmpH = h * tempRatioHeight; var tmpH = h * tempRatioHeight;
contextObject.drawImage(imageObj, tmpX, tmpY, tmpW, tmpH); contextObject.drawImage(imageObj, tmpX, tmpY, tmpW, tmpH);
CONTENTVIEW.flip(); CONTENTVIEW.flip();
}; };
imageObj.src = imageObjects[CONTENTVIEW_GENERAL.mediaType4_changeImage].fileName; imageObj.src = imageObjects[CONTENTVIEW_GENERAL.mediaType4_changeImage].fileName;
} }
}; };
}; };
...@@ -756,7 +756,7 @@ CONTENTVIEW_CREATEOBJECT.listImage.prototype = new CONTENTVIEW_CREATEOBJECT.Page ...@@ -756,7 +756,7 @@ CONTENTVIEW_CREATEOBJECT.listImage.prototype = new CONTENTVIEW_CREATEOBJECT.Page
CONTENTVIEW_CREATEOBJECT.listVideo = function (mediaType, id, imageUrl, x, y, w, h, visible, videoObjects, objectId) { CONTENTVIEW_CREATEOBJECT.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.setup(mediaType, null, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//abe //abe
//alert("listVideo"); //alert("listVideo");
}; };
}; };
...@@ -766,7 +766,7 @@ CONTENTVIEW_CREATEOBJECT.listVideo.prototype = new CONTENTVIEW_CREATEOBJECT.Page ...@@ -766,7 +766,7 @@ CONTENTVIEW_CREATEOBJECT.listVideo.prototype = new CONTENTVIEW_CREATEOBJECT.Page
CONTENTVIEW_CREATEOBJECT.trigger = function (mediaType, actionType, id, imageUrl, x, y, w, h, index, target, visible, actionFunction, objectId) { CONTENTVIEW_CREATEOBJECT.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.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, null, objectId);
this.action = function () { this.action = function () {
// draw object // draw object
//abe //abe
//alert("trigger:" + CONTENTVIEW_GETDATA.getPageIndex() + " id:" + id); //alert("trigger:" + CONTENTVIEW_GETDATA.getPageIndex() + " id:" + id);
...@@ -799,51 +799,51 @@ CONTENTVIEW_CREATEOBJECT.trigger = function (mediaType, actionType, id, imageUrl ...@@ -799,51 +799,51 @@ CONTENTVIEW_CREATEOBJECT.trigger = function (mediaType, actionType, id, imageUrl
} else { /* video */ } else { /* video */
CONTENTVIEW.stopAllAudio(); CONTENTVIEW.stopAllAudio();
CONTENTVIEW.showVideoObject(CONTENTVIEW.objType4_5[nIndex].x, CONTENTVIEW.objType4_5[nIndex].y, CONTENTVIEW.objType4_5[nIndex].width, CONTENTVIEW.objType4_5[nIndex].height, CONTENTVIEW.objType4_5[nIndex].dataObjects[nIndex1].fileName, false); CONTENTVIEW.showVideoObject(CONTENTVIEW.objType4_5[nIndex].x, CONTENTVIEW.objType4_5[nIndex].y, CONTENTVIEW.objType4_5[nIndex].width, CONTENTVIEW.objType4_5[nIndex].height, CONTENTVIEW.objType4_5[nIndex].dataObjects[nIndex1].fileName, false);
if(ClientData.isStreamingMode() || ClientData.isGetitsMode()){ if(ClientData.isStreamingMode() || ClientData.isGetitsMode()){
if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) { if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
var myVideo=document.getElementById("videoOnPage"); var myVideo=document.getElementById("videoOnPage");
if (myVideo.paused) if (myVideo.paused)
{ {
myVideo.play(); myVideo.play();
} }
} }
} }
//詳細ログ用 動画なのでダミーで1以上 //詳細ログ用 動画なのでダミーで1以上
objectLog.actionTime = "1"; objectLog.actionTime = "1";
//リソースID //リソースID
objectLog.resourceId = CONTENTVIEW.objType4_5[nIndex].dataObjects[nIndex1].resourceId; objectLog.resourceId = CONTENTVIEW.objType4_5[nIndex].dataObjects[nIndex1].resourceId;
} }
break; break;
} }
} }
} }
//詳細ログ格納 //詳細ログ格納
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
}; };
}; };
CONTENTVIEW_CREATEOBJECT.trigger.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject(); CONTENTVIEW_CREATEOBJECT.trigger.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject();
//Start Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary : //Start Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary :
CONTENTVIEW_CREATEOBJECT.htmlLinkButton = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, resourceUrl, objectId) { CONTENTVIEW_CREATEOBJECT.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, objectId); this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//abe //abe
//alert("htmlLinkButton"); //alert("htmlLinkButton");
//CONTENTVIEW_STREAMING.debugLog("htmlLinkButton:" + resourceUrl + ":" + objectId); //CONTENTVIEW_STREAMING.debugLog("htmlLinkButton:" + resourceUrl + ":" + objectId);
/*stop audio on page */ /*stop audio on page */
CONTENTVIEW.stopAllAudio(); CONTENTVIEW.stopAllAudio();
if (resourceUrl != "") { if (resourceUrl != "") {
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -860,10 +860,10 @@ CONTENTVIEW_CREATEOBJECT.htmlLinkButton = function (mediaType, actionType, id, i ...@@ -860,10 +860,10 @@ CONTENTVIEW_CREATEOBJECT.htmlLinkButton = function (mediaType, actionType, id, i
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
CONTENTVIEW_CREATEOBJECT.showHtml(resourceUrl, objectId ); CONTENTVIEW_CREATEOBJECT.showHtml(resourceUrl, objectId );
CONTENTVIEW_GENERAL.showDialog(true); CONTENTVIEW_GENERAL.showDialog(true);
} }
}; };
}; };
CONTENTVIEW_CREATEOBJECT.htmlLinkButton.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject(); CONTENTVIEW_CREATEOBJECT.htmlLinkButton.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject();
...@@ -872,49 +872,49 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){ ...@@ -872,49 +872,49 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){
//abe //abe
//alert("showHtml"); //alert("showHtml");
var $container = $('#dialog'); var $container = $('#dialog');
$container.html(''); $container.html('');
$container.attr('style', 'background-color: white; width:100%; left:0% !important'); $container.attr('style', 'background-color: white; width:100%; left:0% !important');
//START TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad //START TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
if(CONTENTVIEW_GENERAL.avwUserEnvObj.isIos()){ if(CONTENTVIEW_GENERAL.avwUserEnvObj.isIos()){
$container.html( $container.html(
'<h1>' '<h1>'
+ '<img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnClose" class="align_right" ></img>' + '<img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnClose" class="align_right" ></img>'
+ '</h1>' + '</h1>'
+ '<div id="html-wrap" style="height: 95%; position: absolute; width: 100%;">' + '<div id="html-wrap" style="height: 95%; position: absolute; width: 100%;">'
+ '<iframe src="'+ url +'" style="position: absolute; width: 100%; height: 100%; ">' + '<iframe src="'+ url +'" style="position: absolute; width: 100%; height: 100%; ">'
+ '</iframe>' + '</iframe>'
+ '</div>' + '</div>'
); );
$('#html-wrap').css('overflow', 'scroll'); $('#html-wrap').css('overflow', 'scroll');
$('#html-wrap').css('-webkit-overflow-scrolling', 'touch'); $('#html-wrap').css('-webkit-overflow-scrolling', 'touch');
} }
else{ else{
$container.html( $container.html(
'<h1>' '<h1>'
+ '<img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnClose" class="align_right" ></img>' + '<img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnClose" class="align_right" ></img>'
+ '</h1>' + '</h1>'
+ '<iframe src="'+ url +'" style="position: absolute; width: 100%; height: 95%; ">' + '<iframe src="'+ url +'" style="position: absolute; width: 100%; height: 95%; ">'
+ '</iframe>' + '</iframe>'
); );
} }
//END TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad //END TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
/* /*
$('#dialog h1 img').click(function(){ $('#dialog h1 img').click(function(){
var dateEnd = new Date(); var dateEnd = new Date();
var actionTime = dateEnd.subtractBySeconds(dateStart); var actionTime = dateEnd.subtractBySeconds(dateStart);
//alert("actionTime:" + actionTime); //alert("actionTime:" + actionTime);
COMMON.SetObjectLogActionTime( CONTENTVIEW_GENERAL.contentID, objectId, actionTime ); COMMON.SetObjectLogActionTime( CONTENTVIEW_GENERAL.contentID, objectId, actionTime );
$container.removeAttr('style'); $container.removeAttr('style');
CONTENTVIEW_GENERAL.hideDialog(); CONTENTVIEW_GENERAL.hideDialog();
}); });
*/ */
$("#dialog h1 img").on({ $("#dialog h1 img").on({
...@@ -923,7 +923,7 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){ ...@@ -923,7 +923,7 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){
var actionTime = dateEnd.subtractBySeconds(dateStart); var actionTime = dateEnd.subtractBySeconds(dateStart);
//alert("actionTime:" + actionTime); //alert("actionTime:" + actionTime);
COMMON.SetObjectLogActionTime( CONTENTVIEW_GENERAL.contentID, objectId, actionTime ); COMMON.SetObjectLogActionTime( CONTENTVIEW_GENERAL.contentID, objectId, actionTime );
$container.removeAttr('style'); $container.removeAttr('style');
CONTENTVIEW_GENERAL.hideDialog(); CONTENTVIEW_GENERAL.hideDialog();
}, },
...@@ -932,16 +932,16 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){ ...@@ -932,16 +932,16 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){
return false; return false;
} }
}); });
var dateStart = new Date(); var dateStart = new Date();
}; };
CONTENTVIEW_CREATEOBJECT.anket = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, questionNo, replyLimit, fullscreen, saveAs, resourceId, enquete, objectId) { CONTENTVIEW_CREATEOBJECT.anket = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, questionNo, replyLimit, fullscreen, saveAs, resourceId, enquete, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId); this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -958,29 +958,29 @@ CONTENTVIEW_CREATEOBJECT.anket = function (mediaType, actionType, id, imageUrl, ...@@ -958,29 +958,29 @@ CONTENTVIEW_CREATEOBJECT.anket = function (mediaType, actionType, id, imageUrl,
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
/*stop audio on page */ /*stop audio on page */
CONTENTVIEW.stopAllAudio(); CONTENTVIEW.stopAllAudio();
var url = CONTENTVIEW_GETDATA.getURLPageImage("webEnqueteReply/init") + "/?abObjectId="+objectId + "&sid=" + CONTENTVIEW.getSessionId(); var url = CONTENTVIEW_GETDATA.getURLPageImage("webEnqueteReply/init") + "/?abObjectId="+objectId + "&sid=" + CONTENTVIEW.getSessionId();
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
//ストリーミング //ストリーミング
url = url + "&isStreaming=true"; url = url + "&isStreaming=true";
} }
var isFullScreen = false; var isFullScreen = false;
if(parseInt(fullscreen) == 1){ if(parseInt(fullscreen) == 1){
isFullScreen = true; isFullScreen = true;
} }
CONTENTVIEW_ANKET.showAnket(url, isFullScreen, objectId); CONTENTVIEW_ANKET.showAnket(url, isFullScreen, objectId);
CONTENTVIEW_GENERAL.showDialog(true); CONTENTVIEW_GENERAL.showDialog(true);
}; };
}; };
CONTENTVIEW_CREATEOBJECT.anket.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject(); CONTENTVIEW_CREATEOBJECT.anket.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject();
//End Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary : //End Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary :
/* mediaType=3 Audio object : extends PageObject */ /* mediaType=3 Audio object : extends PageObject */
CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, audioFile, audioResourceId, playType, objectId) { CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, audioFile, audioResourceId, playType, objectId) {
...@@ -988,10 +988,10 @@ CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, image ...@@ -988,10 +988,10 @@ CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, image
if (playType == "0") { if (playType == "0") {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId); this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//abe //abe
//alert("audioType3_0"); //alert("audioType3_0");
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -1008,7 +1008,7 @@ CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, image ...@@ -1008,7 +1008,7 @@ CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, image
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
CONTENTVIEW_CREATEOBJECT.createAudio(audioFile, playType); CONTENTVIEW_CREATEOBJECT.createAudio(audioFile, playType);
}; };
} }
...@@ -1018,10 +1018,10 @@ CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, image ...@@ -1018,10 +1018,10 @@ CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, image
// //
} }
else{ else{
//abe //abe
//alert("audioType3_x"); //alert("audioType3_x");
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -1038,7 +1038,7 @@ CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, image ...@@ -1038,7 +1038,7 @@ CONTENTVIEW_CREATEOBJECT.audioType3 = function (mediaType, actionType, id, image
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
CONTENTVIEW_CREATEOBJECT.createAudio(audioFile, playType); CONTENTVIEW_CREATEOBJECT.createAudio(audioFile, playType);
} }
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
...@@ -1054,10 +1054,10 @@ CONTENTVIEW_CREATEOBJECT.audioType3.prototype = new CONTENTVIEW_CREATEOBJECT.Pag ...@@ -1054,10 +1054,10 @@ CONTENTVIEW_CREATEOBJECT.audioType3.prototype = new CONTENTVIEW_CREATEOBJECT.Pag
CONTENTVIEW_CREATEOBJECT.jumpPage = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, jumpPage, objectId) { CONTENTVIEW_CREATEOBJECT.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.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//abe //abe
//alert("jumpPage"); //alert("jumpPage");
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -1074,7 +1074,7 @@ CONTENTVIEW_CREATEOBJECT.jumpPage = function (mediaType, actionType, id, imageUr ...@@ -1074,7 +1074,7 @@ CONTENTVIEW_CREATEOBJECT.jumpPage = function (mediaType, actionType, id, imageUr
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
if ((Number(jumpPage) - 1) != CONTENTVIEW_GETDATA.getPageIndex()) { if ((Number(jumpPage) - 1) != CONTENTVIEW_GETDATA.getPageIndex()) {
CONTENTVIEW_EVENTS.createLockLayout(true); CONTENTVIEW_EVENTS.createLockLayout(true);
CONTENTVIEW.changePage(Number(jumpPage) - 1); CONTENTVIEW.changePage(Number(jumpPage) - 1);
...@@ -1087,12 +1087,12 @@ CONTENTVIEW_CREATEOBJECT.jumpPage.prototype = new CONTENTVIEW_CREATEOBJECT.PageO ...@@ -1087,12 +1087,12 @@ CONTENTVIEW_CREATEOBJECT.jumpPage.prototype = new CONTENTVIEW_CREATEOBJECT.PageO
CONTENTVIEW_CREATEOBJECT.sendMail = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, emailSubject, emailAddress, objectId) { CONTENTVIEW_CREATEOBJECT.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.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//ストリーミングなら反応しない //ストリーミングなら反応しない
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
return; return;
} }
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -1109,7 +1109,7 @@ CONTENTVIEW_CREATEOBJECT.sendMail = function (mediaType, actionType, id, imageUr ...@@ -1109,7 +1109,7 @@ CONTENTVIEW_CREATEOBJECT.sendMail = function (mediaType, actionType, id, imageUr
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
CONTENTVIEW_POPUPTEXT.MailTo(emailAddress, emailSubject); CONTENTVIEW_POPUPTEXT.MailTo(emailAddress, emailSubject);
}; };
}; };
...@@ -1119,10 +1119,10 @@ CONTENTVIEW_CREATEOBJECT.sendMail.prototype = new CONTENTVIEW_CREATEOBJECT.PageO ...@@ -1119,10 +1119,10 @@ CONTENTVIEW_CREATEOBJECT.sendMail.prototype = new CONTENTVIEW_CREATEOBJECT.PageO
CONTENTVIEW_CREATEOBJECT.openPopUp = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, content, objectId) { CONTENTVIEW_CREATEOBJECT.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.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//abe //abe
//alert("openPopUp:" + CONTENTVIEW_GETDATA.getPageIndex() + " id:" + objectId); //alert("openPopUp:" + CONTENTVIEW_GETDATA.getPageIndex() + " id:" + objectId);
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -1139,7 +1139,7 @@ CONTENTVIEW_CREATEOBJECT.openPopUp = function (mediaType, actionType, id, imageU ...@@ -1139,7 +1139,7 @@ CONTENTVIEW_CREATEOBJECT.openPopUp = function (mediaType, actionType, id, imageU
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
CONTENTVIEW_GENERAL.isOpenPopUpText = true; CONTENTVIEW_GENERAL.isOpenPopUpText = true;
var pt1 = CONTENTVIEW.imageToScreen(x, y + h / 2); var pt1 = CONTENTVIEW.imageToScreen(x, y + h / 2);
...@@ -1158,7 +1158,7 @@ CONTENTVIEW_CREATEOBJECT.openPopUp.prototype = new CONTENTVIEW_CREATEOBJECT.Page ...@@ -1158,7 +1158,7 @@ CONTENTVIEW_CREATEOBJECT.openPopUp.prototype = new CONTENTVIEW_CREATEOBJECT.Page
CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, contentId, pageNo, objectId) { CONTENTVIEW_CREATEOBJECT.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.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -1175,68 +1175,68 @@ CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, im ...@@ -1175,68 +1175,68 @@ CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, im
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
///* set end log */ ///* set end log */
//COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID); //COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID);
//COMMON.RegisterLog(); //COMMON.RegisterLog();
//START TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content //START TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content
var params = { var params = {
contentId: contentId, contentId: contentId,
sid: CONTENTVIEW.getSessionId(), sid: CONTENTVIEW.getSessionId(),
getType: 1, getType: 1,
isStreaming: ClientData.isStreamingMode() isStreaming: ClientData.isStreamingMode()
}; };
AVWEB.avwCmsApi(ClientData.userInfo_accountPath(), AVWEB.avwCmsApi(ClientData.userInfo_accountPath(),
"webGetContent", "webGetContent",
"GET", "GET",
params, params,
function (data) { function (data) {
/* set end log */ /* set end log */
COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID); COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID);
COMMON.RegisterLog(); COMMON.RegisterLog();
if(data.contentData.alertMessageLevel){ if(data.contentData.alertMessageLevel){
if(data.contentData.alertMessageLevel == CONTENTVIEW_CREATEOBJECT.alertMessageLevel.ShowAlert){ if(data.contentData.alertMessageLevel == CONTENTVIEW_CREATEOBJECT.alertMessageLevel.ShowAlert){
if(data.contentData.alertMessage){ if(data.contentData.alertMessage){
var oldContent = { oldContentID: CONTENTVIEW_GENERAL.contentID, oldPageIndex: CONTENTVIEW_GETDATA.getPageIndex() }; var oldContent = { oldContentID: CONTENTVIEW_GENERAL.contentID, oldPageIndex: CONTENTVIEW_GETDATA.getPageIndex() };
CONTENTVIEW_CREATEOBJECT.moveContentParam = {}; CONTENTVIEW_CREATEOBJECT.moveContentParam = {};
CONTENTVIEW_CREATEOBJECT.moveContentParam = { CONTENTVIEW_CREATEOBJECT.moveContentParam = {
'preContentId' : contentId, 'preContentId' : contentId,
'prePageNo' : pageNo, 'prePageNo' : pageNo,
'oldContent' : oldContent 'oldContent' : oldContent
}; };
CONTENTVIEW_CREATEOBJECT.showContentConfirmDialog(data.contentData.alertMessageLevel, data.contentData.alertMessage); CONTENTVIEW_CREATEOBJECT.showContentConfirmDialog(data.contentData.alertMessageLevel, data.contentData.alertMessage);
} }
} }
else if(data.contentData.alertMessageLevel == CONTENTVIEW_CREATEOBJECT.alertMessageLevel.RequirePassword){ else if(data.contentData.alertMessageLevel == CONTENTVIEW_CREATEOBJECT.alertMessageLevel.RequirePassword){
var oldContent = { oldContentID: CONTENTVIEW_GENERAL.contentID, oldPageIndex: CONTENTVIEW_GETDATA.getPageIndex() }; var oldContent = { oldContentID: CONTENTVIEW_GENERAL.contentID, oldPageIndex: CONTENTVIEW_GETDATA.getPageIndex() };
CONTENTVIEW_CREATEOBJECT.moveContentParam = {}; CONTENTVIEW_CREATEOBJECT.moveContentParam = {};
CONTENTVIEW_CREATEOBJECT.moveContentParam = { CONTENTVIEW_CREATEOBJECT.moveContentParam = {
'preContentId' : contentId, 'preContentId' : contentId,
'prePageNo' : pageNo, 'prePageNo' : pageNo,
'oldContent' : oldContent 'oldContent' : oldContent
}; };
CONTENTVIEW_CREATEOBJECT.showContentConfirmDialog(data.contentData.alertMessageLevel); CONTENTVIEW_CREATEOBJECT.showContentConfirmDialog(data.contentData.alertMessageLevel);
} }
else if(data.contentData.alertMessageLevel == CONTENTVIEW_CREATEOBJECT.alertMessageLevel.None){ else if(data.contentData.alertMessageLevel == CONTENTVIEW_CREATEOBJECT.alertMessageLevel.None){
ClientData.common_preContentId(contentId); ClientData.common_preContentId(contentId);
ClientData.common_prePageNo(pageNo); ClientData.common_prePageNo(pageNo);
/* store old page */ /* store old page */
var oldContent = { oldContentID: CONTENTVIEW_GENERAL.contentID, oldPageIndex: CONTENTVIEW_GETDATA.getPageIndex() }; var oldContent = { oldContentID: CONTENTVIEW_GENERAL.contentID, oldPageIndex: CONTENTVIEW_GETDATA.getPageIndex() };
var dataJump = ClientData.JumpQueue(); var dataJump = ClientData.JumpQueue();
dataJump.push(oldContent); dataJump.push(oldContent);
ClientData.JumpQueue(dataJump); ClientData.JumpQueue(dataJump);
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
//ストリーミングのビューアへ移動 //ストリーミングのビューアへ移動
AVWEB.avwScreenMove(COMMON.ScreenIds.ContentViewStreaming); AVWEB.avwScreenMove(COMMON.ScreenIds.ContentViewStreaming);
...@@ -1253,13 +1253,13 @@ CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, im ...@@ -1253,13 +1253,13 @@ CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, im
else{ else{
ClientData.common_preContentId(contentId); ClientData.common_preContentId(contentId);
ClientData.common_prePageNo(pageNo); ClientData.common_prePageNo(pageNo);
/* store old page */ /* store old page */
var oldContent = { oldContentID: CONTENTVIEW_GENERAL.contentID, oldPageIndex: CONTENTVIEW_GETDATA.getPageIndex() }; var oldContent = { oldContentID: CONTENTVIEW_GENERAL.contentID, oldPageIndex: CONTENTVIEW_GETDATA.getPageIndex() };
var dataJump = ClientData.JumpQueue(); var dataJump = ClientData.JumpQueue();
dataJump.push(oldContent); dataJump.push(oldContent);
ClientData.JumpQueue(dataJump); ClientData.JumpQueue(dataJump);
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
//ストリーミングのビューアへ移動 //ストリーミングのビューアへ移動
AVWEB.avwScreenMove(COMMON.ScreenIds.ContentViewStreaming); AVWEB.avwScreenMove(COMMON.ScreenIds.ContentViewStreaming);
...@@ -1271,7 +1271,7 @@ CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, im ...@@ -1271,7 +1271,7 @@ CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, im
} }
} }
} }
}, },
function (xmlHttpRequest, txtStatus, errorThrown) { function (xmlHttpRequest, txtStatus, errorThrown) {
if (xmlHttpRequest.status == 404) { if (xmlHttpRequest.status == 404) {
...@@ -1283,15 +1283,15 @@ CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, im ...@@ -1283,15 +1283,15 @@ CONTENTVIEW_CREATEOBJECT.moveToContent = function (mediaType, actionType, id, im
} }
} }
); );
//END TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content //END TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content
}; };
}; };
CONTENTVIEW_CREATEOBJECT.moveToContent.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject(); CONTENTVIEW_CREATEOBJECT.moveToContent.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject();
//START TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content //START TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content
CONTENTVIEW_CREATEOBJECT.showContentConfirmDialog = function(type, msg) { CONTENTVIEW_CREATEOBJECT.showContentConfirmDialog = function(type, msg) {
if(type == CONTENTVIEW_CREATEOBJECT.alertMessageLevel.ShowAlert){ if(type == CONTENTVIEW_CREATEOBJECT.alertMessageLevel.ShowAlert){
CONTENTVIEW_CREATEOBJECT.createAlertTypeDialog(msg); CONTENTVIEW_CREATEOBJECT.createAlertTypeDialog(msg);
CONTENTVIEW_GENERAL.showDialog(true); CONTENTVIEW_GENERAL.showDialog(true);
...@@ -1311,31 +1311,31 @@ CONTENTVIEW_CREATEOBJECT.createAlertTypeDialog = function(msg){ ...@@ -1311,31 +1311,31 @@ CONTENTVIEW_CREATEOBJECT.createAlertTypeDialog = function(msg){
$container.html( $container.html(
' <h1 class="lang" lang="txtContentWarning">'+ I18N.i18nText("txtContentWarning") +'</h1>' ' <h1 class="lang" lang="txtContentWarning">'+ I18N.i18nText("txtContentWarning") +'</h1>'
+' <p class="message">' +' <p class="message">'
+ msg + msg
+' </p>' +' </p>'
+' <p class="deletebtn">' +' <p class="deletebtn">'
+' <a lang="dspOK" class="ok lang" id="contentAlertOk">OK</a>' +' <a lang="dspOK" class="ok lang" id="contentAlertOk">OK</a>'
+' <a lang="dspCancel" class="cancel lang" id="contentAlertCancel">キャンセル</a>' +' <a lang="dspCancel" class="cancel lang" id="contentAlertCancel">キャンセル</a>'
+' </p>' +' </p>'
); );
$container.center(); $container.center();
$('#dialog a#contentAlertCancel').click(function(){ $('#dialog a#contentAlertCancel').click(function(){
CONTENTVIEW_GENERAL.hideDialog(); CONTENTVIEW_GENERAL.hideDialog();
var removeTimeOut = setTimeout(function(){ var removeTimeOut = setTimeout(function(){
$container.removeClass('sectionLimitAccess'); $container.removeClass('sectionLimitAccess');
}, 200); }, 200);
}); });
$('#dialog a#contentAlertOk').click(function(){ $('#dialog a#contentAlertOk').click(function(){
ClientData.common_preContentId(CONTENTVIEW_CREATEOBJECT.moveContentParam.preContentId); ClientData.common_preContentId(CONTENTVIEW_CREATEOBJECT.moveContentParam.preContentId);
ClientData.common_prePageNo(CONTENTVIEW_CREATEOBJECT.moveContentParam.prePageNo); ClientData.common_prePageNo(CONTENTVIEW_CREATEOBJECT.moveContentParam.prePageNo);
/* store old page */ /* store old page */
var dataJump = ClientData.JumpQueue(); var dataJump = ClientData.JumpQueue();
dataJump.push(CONTENTVIEW_CREATEOBJECT.moveContentParam.oldContent); dataJump.push(CONTENTVIEW_CREATEOBJECT.moveContentParam.oldContent);
ClientData.JumpQueue(dataJump); ClientData.JumpQueue(dataJump);
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
//ストリーミングのビューアへ移動 //ストリーミングのビューアへ移動
AVWEB.avwScreenMove(COMMON.ScreenIds.ContentViewStreaming); AVWEB.avwScreenMove(COMMON.ScreenIds.ContentViewStreaming);
...@@ -1346,7 +1346,7 @@ CONTENTVIEW_CREATEOBJECT.createAlertTypeDialog = function(msg){ ...@@ -1346,7 +1346,7 @@ CONTENTVIEW_CREATEOBJECT.createAlertTypeDialog = function(msg){
CONTENTVIEW.screenMove(); CONTENTVIEW.screenMove();
} }
} }
}); });
}; };
...@@ -1360,24 +1360,24 @@ CONTENTVIEW_CREATEOBJECT.createPwdRequiredTypeDialog = function(){ ...@@ -1360,24 +1360,24 @@ CONTENTVIEW_CREATEOBJECT.createPwdRequiredTypeDialog = function(){
+' <p class="message">' +' <p class="message">'
+' <label class="text lang" lang="txtContentPWMsg">'+ I18N.i18nText("txtContentPWMsg") +'</label>' +' <label class="text lang" lang="txtContentPWMsg">'+ I18N.i18nText("txtContentPWMsg") +'</label>'
+' <input type="password" />' +' <input type="password" />'
+' <label class="error" id="lblMessageLimitError"></label> ' +' <label class="error" id="lblMessageLimitError"></label> '
+' </p>' +' </p>'
+' <p class="deletebtn">' +' <p class="deletebtn">'
+' <a lang="dspOK" class="ok lang" id="contentAlertOk">OK</a>' +' <a lang="dspOK" class="ok lang" id="contentAlertOk">OK</a>'
+' <a lang="dspCancel" class="cancel lang" id="contentAlertCancel">キャンセル</a>' +' <a lang="dspCancel" class="cancel lang" id="contentAlertCancel">キャンセル</a>'
+' </p>' +' </p>'
); );
$container.center(); $container.center();
$('#dialog a#contentAlertCancel').click(function(){ $('#dialog a#contentAlertCancel').click(function(){
CONTENTVIEW_GENERAL.hideDialog(); CONTENTVIEW_GENERAL.hideDialog();
var removeTimeOut = setTimeout(function(){ var removeTimeOut = setTimeout(function(){
$container.removeClass('sectionLimitAccess'); $container.removeClass('sectionLimitAccess');
}, 200); }, 200);
}); });
$('#dialog a#contentAlertOk').click( $('#dialog a#contentAlertOk').click(
function () { function () {
var password = $('.sectionLimitAccess .message input').val(); var password = $('.sectionLimitAccess .message input').val();
...@@ -1399,21 +1399,21 @@ CONTENTVIEW_CREATEOBJECT.createPwdRequiredTypeDialog = function(){ ...@@ -1399,21 +1399,21 @@ CONTENTVIEW_CREATEOBJECT.createPwdRequiredTypeDialog = function(){
AVWEB.avwCmsApiSyncWithUrl(apiLoginUrl, null, 'webClientLogin', 'GET', params, AVWEB.avwCmsApiSyncWithUrl(apiLoginUrl, null, 'webClientLogin', 'GET', params,
function (data) { function (data) {
if (data.result == 'success') { if (data.result == 'success') {
ClientData.common_preContentId(CONTENTVIEW_CREATEOBJECT.moveContentParam.preContentId); ClientData.common_preContentId(CONTENTVIEW_CREATEOBJECT.moveContentParam.preContentId);
ClientData.common_prePageNo(CONTENTVIEW_CREATEOBJECT.moveContentParam.prePageNo); ClientData.common_prePageNo(CONTENTVIEW_CREATEOBJECT.moveContentParam.prePageNo);
/* store old page */ /* store old page */
var dataJump = ClientData.JumpQueue(); var dataJump = ClientData.JumpQueue();
dataJump.push(CONTENTVIEW_CREATEOBJECT.moveContentParam.oldContent); dataJump.push(CONTENTVIEW_CREATEOBJECT.moveContentParam.oldContent);
ClientData.JumpQueue(dataJump); ClientData.JumpQueue(dataJump);
// update sid id // update sid id
ClientData.userInfo_sid(data.sid); ClientData.userInfo_sid(data.sid);
ClientData.userInfo_sid_local(data.sid); ClientData.userInfo_sid_local(data.sid);
//バックアップにも保持 //バックアップにも保持
ClientData.userInfo_sid_local_bak(data.sid); ClientData.userInfo_sid_local_bak(data.sid);
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
//ストリーミングのビューアへ移動 //ストリーミングのビューアへ移動
AVWEB.avwScreenMove(COMMON.ScreenIds.ContentViewStreaming); AVWEB.avwScreenMove(COMMON.ScreenIds.ContentViewStreaming);
...@@ -1447,10 +1447,10 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image ...@@ -1447,10 +1447,10 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, embed, objectId); this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, embed, objectId);
this.action = function () { this.action = function () {
//abe //abe
//alert("videoType2:" + CONTENTVIEW_GETDATA.getPageIndex()); //alert("videoType2:" + CONTENTVIEW_GETDATA.getPageIndex());
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -1467,23 +1467,23 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image ...@@ -1467,23 +1467,23 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
/*stop audio on page */ /*stop audio on page */
CONTENTVIEW.stopAllAudio(); CONTENTVIEW.stopAllAudio();
if (embed == "1") { if (embed == "1") {
CONTENTVIEW.showVideoObject(x, y, w, h, mediaFile, false); CONTENTVIEW.showVideoObject(x, y, w, h, mediaFile, false);
if(ClientData.isStreamingMode() || CONTENTVIEW_GENERAL.avwUserEnvObj.isMobile()){ if(ClientData.isStreamingMode() || CONTENTVIEW_GENERAL.avwUserEnvObj.isMobile()){
if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) { if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
var myVideo=document.getElementById("videoOnPage"); var myVideo=document.getElementById("videoOnPage");
if (myVideo.paused) if (myVideo.paused)
{ {
myVideo.play(); myVideo.play();
} }
} }
} }
} }
else { else {
if (media != '') { if (media != '') {
$('#playvideo').children().remove(); $('#playvideo').children().remove();
...@@ -1503,7 +1503,7 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image ...@@ -1503,7 +1503,7 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
return false; return false;
} }
}); });
//必要か ここから //必要か ここから
CONTENTVIEW_GENERAL.canvas_draw.removeEventListener('touchstart', function(){},false); CONTENTVIEW_GENERAL.canvas_draw.removeEventListener('touchstart', function(){},false);
CONTENTVIEW_GENERAL.canvas_draw.removeEventListener('touchmove', function(){},false); CONTENTVIEW_GENERAL.canvas_draw.removeEventListener('touchmove', function(){},false);
...@@ -1511,12 +1511,12 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image ...@@ -1511,12 +1511,12 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
CONTENTVIEW_GENERAL.canvas_draw.addEventListener('touchstart', function(){return false;}, false); CONTENTVIEW_GENERAL.canvas_draw.addEventListener('touchstart', function(){return false;}, false);
CONTENTVIEW_GENERAL.canvas_draw.addEventListener('touchmove', function(){return false;}, false); CONTENTVIEW_GENERAL.canvas_draw.addEventListener('touchmove', function(){return false;}, false);
CONTENTVIEW_GENERAL.canvas_draw.addEventListener('touchend', function(){return false;}, false); CONTENTVIEW_GENERAL.canvas_draw.addEventListener('touchend', function(){return false;}, false);
$("#canvasWrapper").unbind('click'); $("#canvasWrapper").unbind('click');
$("#canvasWrapper").unbind('touchstart'); $("#canvasWrapper").unbind('touchstart');
$("#canvasWrapper").unbind('touchmove'); $("#canvasWrapper").unbind('touchmove');
$("#canvasWrapper").unbind('touchend'); $("#canvasWrapper").unbind('touchend');
document.getElementById('main').addEventListener('click', function(){return false;}, false); document.getElementById('main').addEventListener('click', function(){return false;}, false);
document.getElementById('main').addEventListener('touchstart', function(){return false;}, false); document.getElementById('main').addEventListener('touchstart', function(){return false;}, false);
document.getElementById('main').addEventListener('touchmove', function(){return false;}, false); document.getElementById('main').addEventListener('touchmove', function(){return false;}, false);
...@@ -1524,21 +1524,21 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image ...@@ -1524,21 +1524,21 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
document.getElementById('canvasWrapper').addEventListener('click', function(){return false;}, false); document.getElementById('canvasWrapper').addEventListener('click', function(){return false;}, false);
document.getElementById('canvasWrapper').addEventListener('touchstart', function(){return false;}, false); document.getElementById('canvasWrapper').addEventListener('touchstart', function(){return false;}, false);
document.getElementById('canvasWrapper').addEventListener('touchmove', function(){return false;}, false); document.getElementById('canvasWrapper').addEventListener('touchmove', function(){return false;}, false);
document.getElementById('canvasWrapper').addEventListener('touchend', function(){return false;}, false); document.getElementById('canvasWrapper').addEventListener('touchend', function(){return false;}, false);
//必要か ここまで //必要か ここまで
CONTENTVIEW_GENERAL.showDialog(true); CONTENTVIEW_GENERAL.showDialog(true);
if(ClientData.isStreamingMode() || CONTENTVIEW_GENERAL.avwUserEnvObj.isMobile()){ if(ClientData.isStreamingMode() || CONTENTVIEW_GENERAL.avwUserEnvObj.isMobile()){
if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) { if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
var myVideo=document.getElementById("videoOnPopUp"); var myVideo=document.getElementById("videoOnPopUp");
if (myVideo.paused) if (myVideo.paused)
{ {
myVideo.play(); myVideo.play();
} }
} }
} }
} }
} }
}; };
...@@ -1558,9 +1558,9 @@ CONTENTVIEW_CREATEOBJECT.imageNoAction.prototype = new CONTENTVIEW_CREATEOBJECT. ...@@ -1558,9 +1558,9 @@ CONTENTVIEW_CREATEOBJECT.imageNoAction.prototype = new CONTENTVIEW_CREATEOBJECT.
CONTENTVIEW_CREATEOBJECT.videoType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, mediaFile, media, mediaResourceId, objectId) { CONTENTVIEW_CREATEOBJECT.videoType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, mediaFile, media, mediaResourceId, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId); this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
if (media != '') { if (media != '') {
//abe //abe
//alert("videoType1:" + CONTENTVIEW_GETDATA.getPageIndex()); //alert("videoType1:" + CONTENTVIEW_GETDATA.getPageIndex());
//詳細ログ作成 //詳細ログ作成
...@@ -1579,7 +1579,7 @@ CONTENTVIEW_CREATEOBJECT.videoType1 = function (mediaType, actionType, id, image ...@@ -1579,7 +1579,7 @@ CONTENTVIEW_CREATEOBJECT.videoType1 = function (mediaType, actionType, id, image
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
/* stop all audio on page */ /* stop all audio on page */
CONTENTVIEW.stopAllAudio(); CONTENTVIEW.stopAllAudio();
...@@ -1602,12 +1602,12 @@ CONTENTVIEW_CREATEOBJECT.videoType1 = function (mediaType, actionType, id, image ...@@ -1602,12 +1602,12 @@ CONTENTVIEW_CREATEOBJECT.videoType1 = function (mediaType, actionType, id, image
} }
}); });
CONTENTVIEW_GENERAL.showDialog(true); CONTENTVIEW_GENERAL.showDialog(true);
} }
//時間記録 //時間記録
var dateStart = new Date(); var dateStart = new Date();
}; };
}; };
CONTENTVIEW_CREATEOBJECT.videoType1.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject(); CONTENTVIEW_CREATEOBJECT.videoType1.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject();
...@@ -1616,7 +1616,6 @@ CONTENTVIEW_CREATEOBJECT.videoType1.prototype = new CONTENTVIEW_CREATEOBJECT.Pag ...@@ -1616,7 +1616,6 @@ CONTENTVIEW_CREATEOBJECT.videoType1.prototype = new CONTENTVIEW_CREATEOBJECT.Pag
CONTENTVIEW_CREATEOBJECT.audioType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, audioFile, audio, audioResourceId, objectId) { CONTENTVIEW_CREATEOBJECT.audioType1 = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, audioFile, audio, audioResourceId, objectId) {
this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId); this.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, null, null, objectId);
this.action = function () { this.action = function () {
//abe //abe
//alert("audioType1"); //alert("audioType1");
//詳細ログ作成 //詳細ログ作成
...@@ -1635,7 +1634,7 @@ CONTENTVIEW_CREATEOBJECT.audioType1 = function (mediaType, actionType, id, image ...@@ -1635,7 +1634,7 @@ CONTENTVIEW_CREATEOBJECT.audioType1 = function (mediaType, actionType, id, image
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
CONTENTVIEW_CREATEOBJECT.createAudio(audioFile, "0") CONTENTVIEW_CREATEOBJECT.createAudio(audioFile, "0")
}; };
}; };
...@@ -1645,15 +1644,15 @@ CONTENTVIEW_CREATEOBJECT.audioType1.prototype = new CONTENTVIEW_CREATEOBJECT.Pag ...@@ -1645,15 +1644,15 @@ CONTENTVIEW_CREATEOBJECT.audioType1.prototype = new CONTENTVIEW_CREATEOBJECT.Pag
CONTENTVIEW_CREATEOBJECT.linkURL = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, linkUrl, browserType, objectId) { CONTENTVIEW_CREATEOBJECT.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.setup(mediaType, actionType, id, imageUrl, x, y, w, h, visible, actionFunction, null, objectId);
this.action = function () { this.action = function () {
//abe //abe
//alert("linkURL"); //alert("linkURL");
//デフォルトでストリーミングなら表示しない //デフォルトでストリーミングなら表示しない
if( browserType == 1 && ClientData.isStreamingMode()){ if( browserType == 1 && ClientData.isStreamingMode()){
return; return;
} }
//詳細ログ作成 //詳細ログ作成
var objectLog = new ObjectLogEntity(); var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID; objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
...@@ -1670,21 +1669,21 @@ CONTENTVIEW_CREATEOBJECT.linkURL = function (mediaType, actionType, id, imageUrl ...@@ -1670,21 +1669,21 @@ CONTENTVIEW_CREATEOBJECT.linkURL = function (mediaType, actionType, id, imageUrl
objectLog.locationWidth = w; objectLog.locationWidth = w;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
var linkUrlTmp = linkUrl; var linkUrlTmp = linkUrl;
//DHカスタム //DHカスタム
if( ClientData.serviceOpt_daihatsu() == 'Y'){ if( ClientData.serviceOpt_daihatsu() == '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 ;
} }
if( browserType == 0 ){ if( browserType == 0 ){
CONTENTVIEW_CREATEOBJECT.showHtml(linkUrlTmp, objectId ); CONTENTVIEW_CREATEOBJECT.showHtml(linkUrlTmp, objectId );
CONTENTVIEW_GENERAL.showDialog(true); CONTENTVIEW_GENERAL.showDialog(true);
} else { } else {
window.open(linkUrlTmp, "_blank", "new window, scrollbars=yes"); window.open(linkUrlTmp, "_blank", "new window, scrollbars=yes");
} }
}; };
}; };
CONTENTVIEW_CREATEOBJECT.linkURL.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject(); CONTENTVIEW_CREATEOBJECT.linkURL.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject();
...@@ -1710,7 +1709,7 @@ CONTENTVIEW_CREATEOBJECT.imagePreview = function (mediaType, actionType, id, ima ...@@ -1710,7 +1709,7 @@ CONTENTVIEW_CREATEOBJECT.imagePreview = function (mediaType, actionType, id, ima
objectLog.locationY = y; objectLog.locationY = y;
objectLog.locationHeight = h; objectLog.locationHeight = h;
objectLog.locationWidth = w; objectLog.locationWidth = w;
//プレビュー画像のリソースIDカンマ区切りでセット //プレビュー画像のリソースIDカンマ区切りでセット
var actionVal = ""; var actionVal = "";
if(imagePreviewResourceIds){ if(imagePreviewResourceIds){
...@@ -1722,7 +1721,7 @@ CONTENTVIEW_CREATEOBJECT.imagePreview = function (mediaType, actionType, id, ima ...@@ -1722,7 +1721,7 @@ CONTENTVIEW_CREATEOBJECT.imagePreview = function (mediaType, actionType, id, ima
} }
} }
objectLog.actionValue = actionVal; objectLog.actionValue = actionVal;
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog); COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//--- //---
...@@ -1732,14 +1731,14 @@ CONTENTVIEW_CREATEOBJECT.imagePreview = function (mediaType, actionType, id, ima ...@@ -1732,14 +1731,14 @@ CONTENTVIEW_CREATEOBJECT.imagePreview = function (mediaType, actionType, id, ima
$("#btnClose").on({ $("#btnClose").on({
'click touchend': function(ev){ 'click touchend': function(ev){
//時間記録 //時間記録
var dateEnd = new Date(); var dateEnd = new Date();
var actionTime = dateEnd.subtractBySeconds(dateStart); var actionTime = dateEnd.subtractBySeconds(dateStart);
//alert("actionTime:" + actionTime); //alert("actionTime:" + actionTime);
COMMON.SetObjectLogActionTime( CONTENTVIEW_GENERAL.contentID, objectId, actionTime ); COMMON.SetObjectLogActionTime( CONTENTVIEW_GENERAL.contentID, objectId, actionTime );
CONTENTVIEW_GENERAL.hideDialog(); CONTENTVIEW_GENERAL.hideDialog();
return false; return false;
}, },
'touchstart touchmove': function(){ 'touchstart touchmove': function(){
...@@ -1747,12 +1746,12 @@ CONTENTVIEW_CREATEOBJECT.imagePreview = function (mediaType, actionType, id, ima ...@@ -1747,12 +1746,12 @@ CONTENTVIEW_CREATEOBJECT.imagePreview = function (mediaType, actionType, id, ima
return false; return false;
} }
}); });
CONTENTVIEW_GENERAL.showDialog(true); CONTENTVIEW_GENERAL.showDialog(true);
//時間記録 //時間記録
var dateStart = new Date(); var dateStart = new Date();
}; };
}; };
CONTENTVIEW_CREATEOBJECT.imagePreview.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject(); CONTENTVIEW_CREATEOBJECT.imagePreview.prototype = new CONTENTVIEW_CREATEOBJECT.PageObject();
...@@ -1781,7 +1780,7 @@ CONTENTVIEW_CREATEOBJECT.Rect.prototype.center = function () { ...@@ -1781,7 +1780,7 @@ CONTENTVIEW_CREATEOBJECT.Rect.prototype.center = function () {
}; };
/** /**
* Content Class Definition * Content Class Definition
*/ */
CONTENTVIEW_CREATEOBJECT.Content = function () { CONTENTVIEW_CREATEOBJECT.Content = function () {
...@@ -1832,7 +1831,7 @@ CONTENTVIEW_CREATEOBJECT.Content.prototype.hasNextPage = function () { ...@@ -1832,7 +1831,7 @@ CONTENTVIEW_CREATEOBJECT.Content.prototype.hasNextPage = function () {
CONTENTVIEW_CREATEOBJECT.Content.prototype.nextPage = function () { CONTENTVIEW_CREATEOBJECT.Content.prototype.nextPage = function () {
this.pageIndex++; this.pageIndex++;
if (this.pageIndex > (this.pageCount - 1)) { if (this.pageIndex > (this.pageCount - 1)) {
this.pageIndex = this.pageCount - 1; this.pageIndex = this.pageCount - 1;
} }
this.setUpPage(this.pageIndex, 1); this.setUpPage(this.pageIndex, 1);
...@@ -1864,7 +1863,7 @@ CONTENTVIEW_CREATEOBJECT.Content.prototype.toPage = function (index) { ...@@ -1864,7 +1863,7 @@ CONTENTVIEW_CREATEOBJECT.Content.prototype.toPage = function (index) {
this.pageIndex = 0; this.pageIndex = 0;
} }
this.setUpPage(this.pageIndex); this.setUpPage(this.pageIndex);
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
CONTENTVIEW_CREATEOBJECT.createPageBGM(); CONTENTVIEW_CREATEOBJECT.createPageBGM();
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
...@@ -1872,17 +1871,17 @@ CONTENTVIEW_CREATEOBJECT.Content.prototype.toPage = function (index) { ...@@ -1872,17 +1871,17 @@ CONTENTVIEW_CREATEOBJECT.Content.prototype.toPage = function (index) {
}; };
/** /**
* Transition Class Definition * Transition Class Definition
*/ */
CONTENTVIEW_CREATEOBJECT.Transition = function(){ }; CONTENTVIEW_CREATEOBJECT.Transition = function(){ };
//Start Functon : No.4 - Editor : Long - Date : 08/09/2013 - Summary : //Start Functon : No.4 - Editor : Long - Date : 08/09/2013 - Summary :
/* Flip Next Page Transition */ /* Flip Next Page Transition */
CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () { CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () {
//#12373 //#12373
var tmpScale = 1; var tmpScale = 1;
var w = $('#canvasWrapper').width(); var w = $('#canvasWrapper').width();
CONTENTVIEW.removeObject(); CONTENTVIEW.removeObject();
if(CONTENTVIEW_GENERAL.animateType == CONTENTVIEW_GENERAL.animateTypeKeys.Type_FadeIn){ if(CONTENTVIEW_GENERAL.animateType == CONTENTVIEW_GENERAL.animateTypeKeys.Type_FadeIn){
...@@ -1893,61 +1892,61 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () { ...@@ -1893,61 +1892,61 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () {
else{ else{
$('#mainNext').css('display', 'block'); $('#mainNext').css('display', 'block');
} }
if (CONTENTVIEW_GETDATA.getContent().hasNextPage()) { if (CONTENTVIEW_GETDATA.getContent().hasNextPage()) {
tmpScale = CONTENTVIEW.userScale; tmpScale = CONTENTVIEW.userScale;
CONTENTVIEW.userScale = 1; CONTENTVIEW.userScale = 1;
CONTENTVIEW.flip(1); CONTENTVIEW.flip(1);
if(CONTENTVIEW_GENERAL.animateType == CONTENTVIEW_GENERAL.animateTypeKeys.Type_Slide){ if(CONTENTVIEW_GENERAL.animateType == CONTENTVIEW_GENERAL.animateTypeKeys.Type_Slide){
$('#canvasWrapper').stop(true).animate( $('#canvasWrapper').stop(true).animate(
{ left: '-' + w + 'px' }, { left: '-' + w + 'px' },
{ {
duration: CONTENTVIEW_GENERAL.animatePeriod, duration: CONTENTVIEW_GENERAL.animatePeriod,
complete: function () { complete: function () {
CONTENTVIEW_GETDATA.assignCurrentContentPage(1); CONTENTVIEW_GETDATA.assignCurrentContentPage(1);
//Change id of canvas //Change id of canvas
CONTENTVIEW_GETDATA.switchCanvas(1); CONTENTVIEW_GETDATA.switchCanvas(1);
//restore canvas event //restore canvas event
CONTENTVIEW.setDefaultEvent(); CONTENTVIEW.setDefaultEvent();
//init image bookmark //init image bookmark
CONTENTVIEW_INITOBJECT.initImageBookmark(); CONTENTVIEW_INITOBJECT.initImageBookmark();
//Change slider //Change slider
CONTENTVIEW.changeSlider(CONTENTVIEW_GETDATA.getContent().pageIndex); CONTENTVIEW.changeSlider(CONTENTVIEW_GETDATA.getContent().pageIndex);
//Draw marking on current screen //Draw marking on current screen
//CONTENTVIEW.drawMarkingOnScreen(); //CONTENTVIEW.drawMarkingOnScreen();
//Correct position of canvas for next flipping //Correct position of canvas for next flipping
CONTENTVIEW_GETDATA.correctCanvasPosition(); CONTENTVIEW_GETDATA.correctCanvasPosition();
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
CONTENTVIEW_CREATEOBJECT.createPageBGM(); CONTENTVIEW_CREATEOBJECT.createPageBGM();
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
if(CONTENTVIEW_GETDATA.getPageIndex() < CONTENTVIEW_GENERAL.totalPage - 1){ if(CONTENTVIEW_GETDATA.getPageIndex() < CONTENTVIEW_GENERAL.totalPage - 1){
//Get Next Page Object //Get Next Page Object
CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, CONTENTVIEW_GETDATA.getPageIndex() + 1); CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, CONTENTVIEW_GETDATA.getPageIndex() + 1);
//Load Next //Load Next
CONTENTVIEW_GETDATA.renderNextPage(); CONTENTVIEW_GETDATA.renderNextPage();
}else{ }else{
//Enable all control //Enable all control
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
CONTENTVIEW_GENERAL.isLoadingObject = false; CONTENTVIEW_GENERAL.isLoadingObject = false;
} }
/* init image had draw */ /* init image had draw */
CONTENTVIEW_INITOBJECT.initDisplayMarking(); CONTENTVIEW_INITOBJECT.initDisplayMarking();
/* change title of page */ /* change title of page */
if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex]) { if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex]) {
if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex] != '') { if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex] != '') {
...@@ -1962,7 +1961,7 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () { ...@@ -1962,7 +1961,7 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () {
COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID); COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID);
CONTENTVIEW_EVENTS.createLockLayout(false); CONTENTVIEW_EVENTS.createLockLayout(false);
CONTENTVIEW_INITOBJECT.initImageCheckMarking(); CONTENTVIEW_INITOBJECT.initImageCheckMarking();
//#12373 //#12373
//console.log("tmpScale:" + tmpScale); //console.log("tmpScale:" + tmpScale);
if (tmpScale != 1) { if (tmpScale != 1) {
...@@ -1971,56 +1970,56 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () { ...@@ -1971,56 +1970,56 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () {
CONTENTVIEW.flip(); CONTENTVIEW.flip();
CONTENTVIEW.checkDisableButtonZoom(); CONTENTVIEW.checkDisableButtonZoom();
} }
} }
}); });
} }
else if(CONTENTVIEW_GENERAL.animateType == CONTENTVIEW_GENERAL.animateTypeKeys.Type_FadeIn){ else if(CONTENTVIEW_GENERAL.animateType == CONTENTVIEW_GENERAL.animateTypeKeys.Type_FadeIn){
$('#main').stop(true).fadeOut( $('#main').stop(true).fadeOut(
{ {
duration: CONTENTVIEW_GENERAL.animatePeriod, duration: CONTENTVIEW_GENERAL.animatePeriod,
complete: function () { complete: function () {
CONTENTVIEW_GETDATA.assignCurrentContentPage(1); CONTENTVIEW_GETDATA.assignCurrentContentPage(1);
//Change id of canvas //Change id of canvas
CONTENTVIEW_GETDATA.switchCanvas(1); CONTENTVIEW_GETDATA.switchCanvas(1);
//restore canvas event //restore canvas event
CONTENTVIEW.setDefaultEvent(); CONTENTVIEW.setDefaultEvent();
//init image bookmark //init image bookmark
CONTENTVIEW_INITOBJECT.initImageBookmark(); CONTENTVIEW_INITOBJECT.initImageBookmark();
//Change slider //Change slider
CONTENTVIEW.changeSlider(CONTENTVIEW_GETDATA.getContent().pageIndex); CONTENTVIEW.changeSlider(CONTENTVIEW_GETDATA.getContent().pageIndex);
//Draw marking on current screen //Draw marking on current screen
//CONTENTVIEW.drawMarkingOnScreen(); //CONTENTVIEW.drawMarkingOnScreen();
//Correct position of canvas for next flipping //Correct position of canvas for next flipping
CONTENTVIEW_GETDATA.correctCanvasPosition(); CONTENTVIEW_GETDATA.correctCanvasPosition();
if(CONTENTVIEW_GETDATA.getPageIndex() < CONTENTVIEW_GENERAL.totalPage - 1){ if(CONTENTVIEW_GETDATA.getPageIndex() < CONTENTVIEW_GENERAL.totalPage - 1){
//Get Next Page Object //Get Next Page Object
CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, CONTENTVIEW_GETDATA.getPageIndex() + 1); CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, CONTENTVIEW_GETDATA.getPageIndex() + 1);
//Load Next //Load Next
CONTENTVIEW_GETDATA.renderNextPage(); CONTENTVIEW_GETDATA.renderNextPage();
} }
else{ else{
//Enable all control //Enable all control
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
CONTENTVIEW_GENERAL.isLoadingObject = false; CONTENTVIEW_GENERAL.isLoadingObject = false;
} }
/* init image had draw */ /* init image had draw */
CONTENTVIEW_INITOBJECT.initDisplayMarking(); CONTENTVIEW_INITOBJECT.initDisplayMarking();
/* change title of page */ /* change title of page */
if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex]) { if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex]) {
if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex] != '') { if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex] != '') {
...@@ -2038,7 +2037,7 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () { ...@@ -2038,7 +2037,7 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () {
} }
}); });
} }
CONTENTVIEW_INITOBJECT.initImageCheckMarking(); CONTENTVIEW_INITOBJECT.initImageCheckMarking();
} }
}; };
/* Flip Previous Page Transition */ /* Flip Previous Page Transition */
...@@ -2058,39 +2057,39 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () { ...@@ -2058,39 +2057,39 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () {
$('#mainPre').css('display', 'block'); $('#mainPre').css('display', 'block');
} }
if (CONTENTVIEW_GETDATA.getContent().hasPreviousPage()) { if (CONTENTVIEW_GETDATA.getContent().hasPreviousPage()) {
tmpScale = CONTENTVIEW.userScale; tmpScale = CONTENTVIEW.userScale;
CONTENTVIEW.userScale = 1; CONTENTVIEW.userScale = 1;
CONTENTVIEW.flip(2); CONTENTVIEW.flip(2);
if(CONTENTVIEW_GENERAL.animateType == CONTENTVIEW_GENERAL.animateTypeKeys.Type_Slide){ if(CONTENTVIEW_GENERAL.animateType == CONTENTVIEW_GENERAL.animateTypeKeys.Type_Slide){
$('#canvasWrapper').stop(true).animate( $('#canvasWrapper').stop(true).animate(
{ left: w + 'px' }, { left: w + 'px' },
{ {
duration: CONTENTVIEW_GENERAL.animatePeriod, duration: CONTENTVIEW_GENERAL.animatePeriod,
complete: function () { complete: function () {
CONTENTVIEW_GETDATA.assignCurrentContentPage(2); CONTENTVIEW_GETDATA.assignCurrentContentPage(2);
//Change id of canvas //Change id of canvas
CONTENTVIEW_GETDATA.switchCanvas(2); CONTENTVIEW_GETDATA.switchCanvas(2);
//restore canvas event //restore canvas event
CONTENTVIEW.setDefaultEvent(); CONTENTVIEW.setDefaultEvent();
//init image bookmark //init image bookmark
CONTENTVIEW_INITOBJECT.initImageBookmark(); CONTENTVIEW_INITOBJECT.initImageBookmark();
//Change slider //Change slider
CONTENTVIEW.changeSlider(CONTENTVIEW_GETDATA.getContent().pageIndex); CONTENTVIEW.changeSlider(CONTENTVIEW_GETDATA.getContent().pageIndex);
//Draw marking on current screen //Draw marking on current screen
//CONTENTVIEW.drawMarkingOnScreen(); //CONTENTVIEW.drawMarkingOnScreen();
//Correct position of canvas for next flipping //Correct position of canvas for next flipping
CONTENTVIEW_GETDATA.correctCanvasPosition(); CONTENTVIEW_GETDATA.correctCanvasPosition();
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
CONTENTVIEW_CREATEOBJECT.createPageBGM(); CONTENTVIEW_CREATEOBJECT.createPageBGM();
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
if(CONTENTVIEW_GETDATA.getPageIndex() > 0){ if(CONTENTVIEW_GETDATA.getPageIndex() > 0){
...@@ -2100,14 +2099,14 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () { ...@@ -2100,14 +2099,14 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () {
CONTENTVIEW_GETDATA.renderPrevPage(); CONTENTVIEW_GETDATA.renderPrevPage();
}else{ }else{
//Enable all control //Enable all control
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
CONTENTVIEW_GENERAL.isLoadingObject = false; CONTENTVIEW_GENERAL.isLoadingObject = false;
} }
/* init image had draw */ /* init image had draw */
CONTENTVIEW_INITOBJECT.initDisplayMarking(); CONTENTVIEW_INITOBJECT.initDisplayMarking();
/* change title of page */ /* change title of page */
if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex]) { if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex]) {
if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex] != '') { if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex] != '') {
...@@ -2118,12 +2117,12 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () { ...@@ -2118,12 +2117,12 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () {
} else { } else {
document.title = CONTENTVIEW_GENERAL.contentName + ' | ' + I18N.i18nText('sysAppTitle'); document.title = CONTENTVIEW_GENERAL.contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* set end log */ /* set end log */
COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID); COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID);
CONTENTVIEW_EVENTS.createLockLayout(false); CONTENTVIEW_EVENTS.createLockLayout(false);
CONTENTVIEW_INITOBJECT.initImageCheckMarking(); CONTENTVIEW_INITOBJECT.initImageCheckMarking();
//#12373 //#12373
//console.log("tmpScale:" + tmpScale); //console.log("tmpScale:" + tmpScale);
if (tmpScale != 1) { if (tmpScale != 1) {
...@@ -2132,7 +2131,7 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () { ...@@ -2132,7 +2131,7 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () {
CONTENTVIEW.flip(); CONTENTVIEW.flip();
CONTENTVIEW.checkDisableButtonZoom(); CONTENTVIEW.checkDisableButtonZoom();
} }
} }
}); });
} }
...@@ -2140,46 +2139,46 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () { ...@@ -2140,46 +2139,46 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () {
$('#main').stop(true).fadeOut( $('#main').stop(true).fadeOut(
{ {
duration: CONTENTVIEW_GENERAL.animatePeriod, duration: CONTENTVIEW_GENERAL.animatePeriod,
complete: function () { complete: function () {
CONTENTVIEW_GETDATA.assignCurrentContentPage(2); CONTENTVIEW_GETDATA.assignCurrentContentPage(2);
//Change id of canvas //Change id of canvas
CONTENTVIEW_GETDATA.switchCanvas(2); CONTENTVIEW_GETDATA.switchCanvas(2);
//restore canvas event //restore canvas event
CONTENTVIEW.setDefaultEvent(); CONTENTVIEW.setDefaultEvent();
//init image bookmark //init image bookmark
CONTENTVIEW_INITOBJECT.initImageBookmark(); CONTENTVIEW_INITOBJECT.initImageBookmark();
//Change slider //Change slider
CONTENTVIEW.changeSlider(CONTENTVIEW_GETDATA.getContent().pageIndex); CONTENTVIEW.changeSlider(CONTENTVIEW_GETDATA.getContent().pageIndex);
//Draw marking on current screen //Draw marking on current screen
//CONTENTVIEW.drawMarkingOnScreen(); //CONTENTVIEW.drawMarkingOnScreen();
//Correct position of canvas for next flipping //Correct position of canvas for next flipping
CONTENTVIEW_GETDATA.correctCanvasPosition(); CONTENTVIEW_GETDATA.correctCanvasPosition();
if(CONTENTVIEW_GETDATA.getPageIndex() > 0){ if(CONTENTVIEW_GETDATA.getPageIndex() > 0){
//Get Next Page Object //Get Next Page Object
CONTENTVIEW_GETDATA.getPrevPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, CONTENTVIEW_GETDATA.getPageIndex() - 1); CONTENTVIEW_GETDATA.getPrevPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, CONTENTVIEW_GETDATA.getPageIndex() - 1);
//Load Next //Load Next
CONTENTVIEW_GETDATA.renderPrevPage(); CONTENTVIEW_GETDATA.renderPrevPage();
}else{ }else{
//Enable all control //Enable all control
CONTENTVIEW_GENERAL.enableAllControl(); CONTENTVIEW_GENERAL.enableAllControl();
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
CONTENTVIEW_GENERAL.isLoadingObject = false; CONTENTVIEW_GENERAL.isLoadingObject = false;
} }
/* init image had draw */ /* init image had draw */
CONTENTVIEW_INITOBJECT.initDisplayMarking(); CONTENTVIEW_INITOBJECT.initDisplayMarking();
/* change title of page */ /* change title of page */
if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex]) { if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex]) {
if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex] != '') { if (CONTENTVIEW_GENERAL.dataPageTitle[CONTENTVIEW_GETDATA.getContent().pageIndex] != '') {
...@@ -2197,10 +2196,10 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () { ...@@ -2197,10 +2196,10 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () {
} }
}); });
} }
} }
}; };
//Start Functon : No.4 - Editor : Long - Date : 08/09/2013 - Summary : //Start Functon : No.4 - Editor : Long - Date : 08/09/2013 - Summary :
/* Flip Page Transition */ /* Flip Page Transition */
CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) { CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
...@@ -2208,10 +2207,10 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) { ...@@ -2208,10 +2207,10 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
var tmpScale = CONTENTVIEW.userScale; var tmpScale = CONTENTVIEW.userScale;
var w = $('#main').attr('width'); var w = $('#main').attr('width');
if (index == CONTENTVIEW_GETDATA.getContent().pageIndex) { if (index == CONTENTVIEW_GETDATA.getContent().pageIndex) {
/* init image had draw */ /* init image had draw */
CONTENTVIEW_INITOBJECT.initDisplayMarking(); CONTENTVIEW_INITOBJECT.initDisplayMarking();
} else if (index < CONTENTVIEW_GETDATA.getContent().pageIndex) { } else if (index < CONTENTVIEW_GETDATA.getContent().pageIndex) {
CONTENTVIEW_GENERAL.context_main.clearRect(0, 0, CONTENTVIEW_GENERAL.canvas_main.width, CONTENTVIEW_GENERAL.canvas_main.height); CONTENTVIEW_GENERAL.context_main.clearRect(0, 0, CONTENTVIEW_GENERAL.canvas_main.width, CONTENTVIEW_GENERAL.canvas_main.height);
CONTENTVIEW.removeObject(); CONTENTVIEW.removeObject();
...@@ -2233,39 +2232,39 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) { ...@@ -2233,39 +2232,39 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
CONTENTVIEW.userScale = 1; CONTENTVIEW.userScale = 1;
CONTENTVIEW.userScaleNow = 1; CONTENTVIEW.userScaleNow = 1;
//START TRB00097 //START TRB00097
//CONTENTVIEW.changeScale(CONTENTVIEW.userScale); //CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.srcRect = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.srcRect = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.srcRectNext = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.srcRectNext = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.srcRectPrev = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.srcRectPrev = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.destRect = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.destRect = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.destRectNext = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.destRectNext = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.destRectPrev = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.destRectPrev = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
//END TRB00097 //END TRB00097
CONTENTVIEW.checkDisableButtonZoom(); CONTENTVIEW.checkDisableButtonZoom();
CONTENTVIEW_GETDATA.getContent().toPage(index); CONTENTVIEW_GETDATA.getContent().toPage(index);
if(index > 0){ if(index > 0){
CONTENTVIEW_GENERAL.prevContent.pageIndex = CONTENTVIEW_GETDATA.getPageIndex(); CONTENTVIEW_GENERAL.prevContent.pageIndex = CONTENTVIEW_GETDATA.getPageIndex();
CONTENTVIEW_GETDATA.getPrevPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, index - 1); CONTENTVIEW_GETDATA.getPrevPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, index - 1);
CONTENTVIEW_GETDATA.renderPrevPage(); CONTENTVIEW_GETDATA.renderPrevPage();
} }
if(index < CONTENTVIEW_GENERAL.totalPage - 1){ if(index < CONTENTVIEW_GENERAL.totalPage - 1){
CONTENTVIEW_GENERAL.nextContent.pageIndex = CONTENTVIEW_GETDATA.getPageIndex(); CONTENTVIEW_GENERAL.nextContent.pageIndex = CONTENTVIEW_GETDATA.getPageIndex();
CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, index + 1); CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, index + 1);
CONTENTVIEW_GETDATA.renderNextPage(); CONTENTVIEW_GETDATA.renderNextPage();
} }
CONTENTVIEW_INITOBJECT.initImageBookmark(); CONTENTVIEW_INITOBJECT.initImageBookmark();
CONTENTVIEW.checkExistNextPrePage(); CONTENTVIEW.checkExistNextPrePage();
CONTENTVIEW.changeSlider(index); CONTENTVIEW.changeSlider(index);
/* init image had draw */ /* init image had draw */
CONTENTVIEW_INITOBJECT.initDisplayMarking(); CONTENTVIEW_INITOBJECT.initDisplayMarking();
/* change title of page */ /* change title of page */
if (CONTENTVIEW_GENERAL.dataPageTitle[index]) { if (CONTENTVIEW_GENERAL.dataPageTitle[index]) {
if (CONTENTVIEW_GENERAL.dataPageTitle[index] != '') { if (CONTENTVIEW_GENERAL.dataPageTitle[index] != '') {
document.title = CONTENTVIEW_GENERAL.contentName + '_' + CONTENTVIEW_GENERAL.dataPageTitle[index] + ' | ' + I18N.i18nText('sysAppTitle'); document.title = CONTENTVIEW_GENERAL.contentName + '_' + CONTENTVIEW_GENERAL.dataPageTitle[index] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
...@@ -2277,9 +2276,9 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) { ...@@ -2277,9 +2276,9 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
/* set end log */ /* set end log */
COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID); COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID);
CONTENTVIEW_INITOBJECT.initImageCheckMarking(); CONTENTVIEW_INITOBJECT.initImageCheckMarking();
CONTENTVIEW_EVENTS.createLockLayout(false); CONTENTVIEW_EVENTS.createLockLayout(false);
//#12373 //#12373
//console.log("tmpScale:" + tmpScale); //console.log("tmpScale:" + tmpScale);
if (tmpScale != 1) { if (tmpScale != 1) {
...@@ -2287,11 +2286,11 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) { ...@@ -2287,11 +2286,11 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
CONTENTVIEW.changeScale(CONTENTVIEW.userScale); CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.flip(); CONTENTVIEW.flip();
} }
} }
} }
); );
} }
else { else {
CONTENTVIEW_GENERAL.context_main.clearRect(0, 0, CONTENTVIEW_GENERAL.canvas_main.width, CONTENTVIEW_GENERAL.canvas_main.height); CONTENTVIEW_GENERAL.context_main.clearRect(0, 0, CONTENTVIEW_GENERAL.canvas_main.width, CONTENTVIEW_GENERAL.canvas_main.height);
CONTENTVIEW.removeObject(); CONTENTVIEW.removeObject();
...@@ -2312,26 +2311,26 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) { ...@@ -2312,26 +2311,26 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
//change pageIndex and image bookmark //change pageIndex and image bookmark
CONTENTVIEW.userScale = 1; CONTENTVIEW.userScale = 1;
//START TRB00097 //START TRB00097
//CONTENTVIEW.changeScale(CONTENTVIEW.userScale); //CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.srcRect = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.srcRect = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.srcRectNext = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.srcRectNext = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.srcRectPrev = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.srcRectPrev = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.destRect = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.destRect = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.destRectNext = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.destRectNext = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
CONTENTVIEW.destRectPrev = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0); CONTENTVIEW.destRectPrev = new CONTENTVIEW_CREATEOBJECT.Rect(0, 0, 0, 0);
//END TRB00097 //END TRB00097
CONTENTVIEW.checkDisableButtonZoom(); CONTENTVIEW.checkDisableButtonZoom();
CONTENTVIEW_GETDATA.getContent().toPage(index); CONTENTVIEW_GETDATA.getContent().toPage(index);
if(index > 0){ if(index > 0){
CONTENTVIEW_GENERAL.prevContent.pageIndex = CONTENTVIEW_GETDATA.getPageIndex(); CONTENTVIEW_GENERAL.prevContent.pageIndex = CONTENTVIEW_GETDATA.getPageIndex();
CONTENTVIEW_GETDATA.getPrevPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, index - 1); CONTENTVIEW_GETDATA.getPrevPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, index - 1);
CONTENTVIEW_GETDATA.renderPrevPage(); CONTENTVIEW_GETDATA.renderPrevPage();
} }
if(index < CONTENTVIEW_GENERAL.totalPage - 1){ if(index < CONTENTVIEW_GENERAL.totalPage - 1){
CONTENTVIEW_GENERAL.nextContent.pageIndex = CONTENTVIEW_GETDATA.getPageIndex(); CONTENTVIEW_GENERAL.nextContent.pageIndex = CONTENTVIEW_GETDATA.getPageIndex();
CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, index + 1); CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex(CONTENTVIEW_GENERAL.pageObjectsData, index + 1);
...@@ -2356,9 +2355,9 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) { ...@@ -2356,9 +2355,9 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
/* set end log */ /* set end log */
COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID); COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID);
CONTENTVIEW_INITOBJECT.initImageCheckMarking(); CONTENTVIEW_INITOBJECT.initImageCheckMarking();
CONTENTVIEW_EVENTS.createLockLayout(false); CONTENTVIEW_EVENTS.createLockLayout(false);
//#12373 //#12373
//console.log("tmpScale:" + tmpScale); //console.log("tmpScale:" + tmpScale);
if (tmpScale != 1) { if (tmpScale != 1) {
...@@ -2366,11 +2365,11 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) { ...@@ -2366,11 +2365,11 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
CONTENTVIEW.changeScale(CONTENTVIEW.userScale); CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.flip(); CONTENTVIEW.flip();
} }
} }
}); });
} }
}; };
CONTENTVIEW_CREATEOBJECT.createTextConfirmAudio = function() { CONTENTVIEW_CREATEOBJECT.createTextConfirmAudio = function() {
...@@ -2384,8 +2383,7 @@ CONTENTVIEW_CREATEOBJECT.createTextConfirmAudio = function() { ...@@ -2384,8 +2383,7 @@ CONTENTVIEW_CREATEOBJECT.createTextConfirmAudio = function() {
CONTENTVIEW_CREATEOBJECT.createPage = function(pageNumber, pageImage, pageObjects, onCompleteFunc) { CONTENTVIEW_CREATEOBJECT.createPage = function(pageNumber, pageImage, pageObjects, onCompleteFunc) {
//abe 次のページを作成している //abe 次のページを作成している
//console.log("CreateObj_createPage:" + pageNumber) console.log("CreateObj_createPage:" + pageNumber);
var page = new CONTENTVIEW.ContentPage(pageNumber, pageImage); var page = new CONTENTVIEW.ContentPage(pageNumber, pageImage);
/* add page Object */ /* add page Object */
//Start Function: No.12 //Start Function: No.12
...@@ -2395,7 +2393,7 @@ CONTENTVIEW_CREATEOBJECT.createPage = function(pageNumber, pageImage, pageObject ...@@ -2395,7 +2393,7 @@ CONTENTVIEW_CREATEOBJECT.createPage = function(pageNumber, pageImage, pageObject
//End Function: No.12 //End Function: No.12
/* load page */ /* load page */
page.load(onCompleteFunc); page.load(onCompleteFunc);
return page; return page;
}; };
...@@ -2418,7 +2416,7 @@ CONTENTVIEW_CREATEOBJECT.createVideoFulScreen = function(video, id) { ...@@ -2418,7 +2416,7 @@ CONTENTVIEW_CREATEOBJECT.createVideoFulScreen = function(video, id) {
$('#dialog').css('box-shadow', '0px 0px 3px 1px #666'); $('#dialog').css('box-shadow', '0px 0px 3px 1px #666');
$('#dialog').css('border', 'solid 1px #666'); $('#dialog').css('border', 'solid 1px #666');
$('#dialog').draggable({ handle: "h1" }); $('#dialog').draggable({ handle: "h1" });
$('#dialog').children().remove(); $('#dialog').children().remove();
if (ClientData.userOpt_videoMode() == "1") {/* loop video */ if (ClientData.userOpt_videoMode() == "1") {/* loop video */
$('#dialog').html( $('#dialog').html(
...@@ -2452,9 +2450,26 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2452,9 +2450,26 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
// if(CONTENTVIEW_GENERAL.avwUserEnvObj.browser == 'firefox'){ // if(CONTENTVIEW_GENERAL.avwUserEnvObj.browser == 'firefox'){
// audio = audio.replace("webResourceDownload/", "webResourceDownload"); // audio = audio.replace("webResourceDownload/", "webResourceDownload");
// } // }
if (audio != '') { if (audio != '') {
if (type == "0") { /* play when click */ if (type == "0") { /* play when click */
//
if($('#play_audio_0').length){
//pouseできるようにする
var myAudio=document.getElementById("play_audio_0");
if (myAudio.paused)
{
myAudio.play();
} else {
myAudio.pause();
}
//CONTENTVIEW.stopAllAudio();
return;
}
CONTENTVIEW.stopAllAudio(); CONTENTVIEW.stopAllAudio();
CONTENTVIEW.TypeAudio0 = type; CONTENTVIEW.TypeAudio0 = type;
...@@ -2473,11 +2488,22 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2473,11 +2488,22 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
' </audio>' ' </audio>'
); );
} else { } else {
$('#playaudio').html(
//既に再生中か判定
$('#playaudio').html(
' <audio id="play_audio_0" loop="loop" autoplay ="autoplay">' +
' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' +
' </audio>'
);
/* $('#playaudio').html(
' <audio id="play_audio_0" loop="loop" autoplay ="autoplay">' + ' <audio id="play_audio_0" loop="loop" autoplay ="autoplay">' +
' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' + ' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' +
' </audio>' ' </audio>'
); );*/
} }
} else { } else {
...@@ -2506,18 +2532,18 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2506,18 +2532,18 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
document.getElementById("play_audio_0").load(); document.getElementById("play_audio_0").load();
document.getElementById("play_audio_0").play(); document.getElementById("play_audio_0").play();
} }
if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) { if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
var myAudio=document.getElementById("play_audio_0"); var myAudio=document.getElementById("play_audio_0");
if (myAudio.paused) if (myAudio.paused)
{ {
myAudio.play(); myAudio.play();
} }
} }
} }
else if (type == "1") { /* play all page */ else if (type == "1") { /* play all page */
if (document.getElementById("play_audio_1") != undefined) { if (document.getElementById("play_audio_1") != undefined) {
if (ClientData.userOpt_musicMode() == "1") { if (ClientData.userOpt_musicMode() == "1") {
...@@ -2526,12 +2552,12 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2526,12 +2552,12 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
$('#playaudioallpage').html( $('#playaudioallpage').html(
' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" loop="true" hidden="true"> </embed>' ' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" loop="true" hidden="true"> </embed>'
);*/ );*/
} }
else { else {
if(!CONTENTVIEW.isPendingContentBGM){ if(!CONTENTVIEW.isPendingContentBGM){
document.getElementById("play_audio_1").play(); document.getElementById("play_audio_1").play();
} }
} }
} }
else { else {
...@@ -2547,27 +2573,27 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2547,27 +2573,27 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
} }
} }
} }
//if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) { //if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
// var myAudio=document.getElementById("play_audio_1"); // var myAudio=document.getElementById("play_audio_1");
// if (myAudio.paused) // if (myAudio.paused)
// { // {
// myAudio.play(); // myAudio.play();
// } // }
//} //}
} }
else { else {
CONTENTVIEW.TypeAudio1 = type; CONTENTVIEW.TypeAudio1 = type;
CONTENTVIEW.srcAudioType1 = audio; CONTENTVIEW.srcAudioType1 = audio;
if (ClientData.userOpt_musicMode() == "1") { if (ClientData.userOpt_musicMode() == "1") {
//if (CONTENTVIEW_GENERAL.avwUserEnvObj.browser == 'firefox') { //if (CONTENTVIEW_GENERAL.avwUserEnvObj.browser == 'firefox') {
// $('#playaudioallpage').html( // $('#playaudioallpage').html(
// ' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" loop="true" hidden="true"> </embed>' // ' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" loop="true" hidden="true"> </embed>'
// ); // );
// //
//} //}
//else if (CONTENTVIEW_GENERAL.avwUserEnvObj.isIos()) { //else if (CONTENTVIEW_GENERAL.avwUserEnvObj.isIos()) {
if (CONTENTVIEW_GENERAL.avwUserEnvObj.isIos()) { if (CONTENTVIEW_GENERAL.avwUserEnvObj.isIos()) {
$('#playaudioallpage').html( $('#playaudioallpage').html(
...@@ -2576,7 +2602,7 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2576,7 +2602,7 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
' </audio>' ' </audio>'
); );
} }
else { else {
if(CONTENTVIEW.isPendingContentBGM){ if(CONTENTVIEW.isPendingContentBGM){
$('#playaudioallpage').html( $('#playaudioallpage').html(
' <audio id="play_audio_1" loop="loop" >' + ' <audio id="play_audio_1" loop="loop" >' +
...@@ -2585,7 +2611,7 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2585,7 +2611,7 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
); );
document.getElementById('play_audio_1').load(); document.getElementById('play_audio_1').load();
CONTENTVIEW.isPendingContentBGM = false; CONTENTVIEW.isPendingContentBGM = false;
} }
else{ else{
$('#playaudioallpage').html( $('#playaudioallpage').html(
...@@ -2617,7 +2643,7 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2617,7 +2643,7 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
); );
document.getElementById('play_audio_1').load(); document.getElementById('play_audio_1').load();
CONTENTVIEW.isPendingContentBGM = false; CONTENTVIEW.isPendingContentBGM = false;
} }
else{ else{
$('#playaudioallpage').html( $('#playaudioallpage').html(
...@@ -2656,11 +2682,11 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2656,11 +2682,11 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
} }
//END TRB00069 //END TRB00069
} }
} }
} }
else if (type == "2") { /* play on page */ else if (type == "2") { /* play on page */
if (document.getElementById("play_audio_2") == undefined) { if (document.getElementById("play_audio_2") == undefined) {
CONTENTVIEW.stopAllAudio(); CONTENTVIEW.stopAllAudio();
...@@ -2722,11 +2748,11 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2722,11 +2748,11 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
document.getElementById('play_audio_2').play(); document.getElementById('play_audio_2').play();
$("#bgmConfirm_page").hide(); $("#bgmConfirm_page").hide();
}); });
$("#bgmConfirm_page").show(); $("#bgmConfirm_page").show();
$("#bgmConfirm_page").center(); $("#bgmConfirm_page").center();
} }
} }
} }
} }
...@@ -2738,24 +2764,24 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2738,24 +2764,24 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
CONTENTVIEW_CREATEOBJECT.createPageBGM = function(){ CONTENTVIEW_CREATEOBJECT.createPageBGM = function(){
var currentPageObject = CONTENTVIEW_GETDATA.getContent().pageObjects; var currentPageObject = CONTENTVIEW_GETDATA.getContent().pageObjects;
var audioFile = ''; var audioFile = '';
var playType = ''; var playType = '';
$('#playaudiopage').html(''); $('#playaudiopage').html('');
for(var i = 0; i < currentPageObject.length; i++){ for(var i = 0; i < currentPageObject.length; i++){
var BGMObject = currentPageObject[i]; var BGMObject = currentPageObject[i];
if(BGMObject.mediaType == '3' && BGMObject.actionType=='2' && BGMObject.playType == '2'){ if(BGMObject.mediaType == '3' && BGMObject.actionType=='2' && BGMObject.playType == '2'){
audioFile = BGMObject.audioFile; audioFile = BGMObject.audioFile;
playType = BGMObject.playType; playType = BGMObject.playType;
CONTENTVIEW_CREATEOBJECT.createAudio(audioFile, playType); CONTENTVIEW_CREATEOBJECT.createAudio(audioFile, playType);
break; break;
} }
} }
}; };
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM //END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
......
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