Commit 41b3f5cd by vietdo

#18760 Web版で新コンテンツタイプの一覧表示、詳細画面を追加する

parent 3debc584
...@@ -75,7 +75,8 @@ COMMON.ContentTypeKeys = { ...@@ -75,7 +75,8 @@ COMMON.ContentTypeKeys = {
Type_Html : 'html', Type_Html : 'html',
Type_Enquete : 'enquete', Type_Enquete : 'enquete',
Type_Exam : 'exam', Type_Exam : 'exam',
Type_Link : 'url' Type_Link : 'url',
Type_PanoMovie : 'panoMovie'
}; };
/* /*
......
...@@ -2114,9 +2114,43 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2114,9 +2114,43 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Video){ else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Video){
CONTENTVIEW.handleForContentTypeVideo(resourceUrl); CONTENTVIEW.handleForContentTypeVideo(resourceUrl);
} }
else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoMovie){
var url = ClientData.conf_apiUrl();
var linkUrlTmp = AVWEB.format(url, ClientData.userInfo_accountPath());
var apiUrl = linkUrlTmp + "/createSession/";
linkUrlTmp = linkUrlTmp.substring(0, linkUrlTmp.length - 6) + "shop/panorama/play/" + ClientData.contentInfo_contentId() + "/";
var linkUrlFinish = linkUrlTmp.substring(0, linkUrlTmp.length - 6) + "shop/panorama/finishPlay/" + ClientData.contentInfo_contentId() + "/";
var params = {
sid: ClientData.userInfo_sid()
};
var sysSettings = AVWEB.avwSysSetting();
// ajax によるAPIの実行(json)
$.ajax( {
async: false,
type: 'GET',
url: apiUrl,
dataType: 'text',
data: params,
crossDomain: true,
beforeSend: function(xhr) {
xhr.setRequestHeader('X-AGT-AppId', sysSettings.appName);
xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion);
},
success: function(data) {
linkUrlTmp2 = linkUrlTmp + ";jsessionid=" + data;
console.log("linkUrlTmp2" + linkUrlTmp2);
CONTENTVIEW.handleForContentTypePanoMovie(linkUrlTmp2);
},
error: function(xmlHttpRequest, txtStatus, errorThrown) {
/* call custom error process */
console.log("error" + errorThrown);
}
});
}
else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){ else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){
var linkUrlTmp = resourceUrl; var linkUrlTmp = resourceUrl;console.log("linkUrlTmp" + linkUrlTmp);
//HTMLカスタムログオプション有り //HTMLカスタムログオプション有り
if(ClientData.serviceOpt_html_custom_log() == 'Y'){ if(ClientData.serviceOpt_html_custom_log() == 'Y'){
var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath()); var apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath());
...@@ -2206,6 +2240,13 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2206,6 +2240,13 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
}); });
}; };
CONTENTVIEW.deleteCookie = function(){
var cookies = $.cookie();console.log("cookies" + cookies);
for(var cookie in cookies) {
$.removeCookie(cookie);
}
console.log("hello world!!");
}
//handle for content type = video //handle for content type = video
CONTENTVIEW.handleForContentTypeVideo = function(resourceUrl){ CONTENTVIEW.handleForContentTypeVideo = function(resourceUrl){
...@@ -2273,6 +2314,32 @@ CONTENTVIEW.handleForContentTypeVideo = function(resourceUrl){ ...@@ -2273,6 +2314,32 @@ CONTENTVIEW.handleForContentTypeVideo = function(resourceUrl){
//END TRB00068 //END TRB00068
}; };
//handle for content type = panoMovie
CONTENTVIEW.handleForContentTypePanoMovie = function(resourceUrl){
//Create Dialog overlay
var $container = $('#dialog');
$container.html('');
$container.css('left','0%');
$container.css('width','100%');
$container.css('background-color','white');
//START TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
if(CONTENTVIEW_GENERAL.avwUserEnvObj.isIos()){
$container.html('<iframe src="'+ resourceUrl +'" style="position: absolute; width: 100%;"></iframe>');
$container.css('overflow', 'scroll');
$container.css('-webkit-overflow-scrolling', 'touch');
}
else{
$container.html('<iframe src="'+ resourceUrl +'" style="position: absolute; width: 100%; height: 100%; "> </iframe>');
$container.css('overflow', 'hidden');
}
//END TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
$container.show();
return;
};
//handle for content type = music //handle for content type = music
CONTENTVIEW.handleForContentTypeMusic = function(resourceUrl){ CONTENTVIEW.handleForContentTypeMusic = function(resourceUrl){
...@@ -2399,7 +2466,7 @@ CONTENTVIEW.handleForContentTypeEnquete = function(resourceUrl){ ...@@ -2399,7 +2466,7 @@ CONTENTVIEW.handleForContentTypeEnquete = function(resourceUrl){
//Check type of content //Check type of content
CONTENTVIEW.isMediaAndHTMLContent = function(){ CONTENTVIEW.isMediaAndHTMLContent = function(){
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Music || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Video || if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Music || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Video ||
CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){ CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoMovie){
return true; return true;
} }
else{ else{
...@@ -2414,7 +2481,7 @@ CONTENTVIEW.enableSpecifyControl = function(){ ...@@ -2414,7 +2481,7 @@ CONTENTVIEW.enableSpecifyControl = function(){
CONTENTVIEW_GENERAL.disableAllControl(); CONTENTVIEW_GENERAL.disableAllControl();
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Music || if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Music ||
CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Video){ CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Video || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoMovie){
CONTENTVIEW.enableControlForMediaAndHtmlType(); CONTENTVIEW.enableControlForMediaAndHtmlType();
} }
...@@ -4342,7 +4409,7 @@ CONTENTVIEW.draw = function(context, opt) { ...@@ -4342,7 +4409,7 @@ CONTENTVIEW.draw = function(context, opt) {
context.save(); context.save();
//Draw on main canvas //Draw on main canvas
if(opt==null || opt == 0){ if(opt==null || opt == 0){console.log("CONTENTVIEW_GETDATA.getContent().currentPage.drawPage(context)" + CONTENTVIEW_GETDATA.getContent().currentPage.drawPage(context));
/* draw page objects */ /* draw page objects */
CONTENTVIEW_GETDATA.getContent().currentPage.drawPage(context); CONTENTVIEW_GETDATA.getContent().currentPage.drawPage(context);
} }
...@@ -5759,7 +5826,6 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5759,7 +5826,6 @@ CONTENTVIEW.ready = function(initContentId){
params, params,
function (data) { function (data) {
CONTENTVIEW_GENERAL.contentType = data.contentData.contentType; CONTENTVIEW_GENERAL.contentType = data.contentData.contentType;
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
//リンク、その他は表示出来ないのでここでブロックする //リンク、その他は表示出来ないのでここでブロックする
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Link || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Others){ if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Link || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Others){
...@@ -5781,7 +5847,6 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5781,7 +5847,6 @@ CONTENTVIEW.ready = function(initContentId){
if (ClientData.IsRefresh() == true) { if (ClientData.IsRefresh() == true) {
//Check if is pdf content //Check if is pdf content
if(CONTENTVIEW.isMediaAndHTMLContent()){ if(CONTENTVIEW.isMediaAndHTMLContent()){
CONTENTVIEW_INITOBJECT.initPageMediaAndHtmlType(); CONTENTVIEW_INITOBJECT.initPageMediaAndHtmlType();
document.title = data.contentData.contentName + ' | ' + I18N.i18nText('sysAppTitle'); document.title = data.contentData.contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
...@@ -5802,7 +5867,6 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5802,7 +5867,6 @@ CONTENTVIEW.ready = function(initContentId){
} }
} }
else { else {
//Check if is pdf content //Check if is pdf content
if(CONTENTVIEW.isMediaAndHTMLContent()){ if(CONTENTVIEW.isMediaAndHTMLContent()){
CONTENTVIEW_INITOBJECT.initPageMediaAndHtmlType(); CONTENTVIEW_INITOBJECT.initPageMediaAndHtmlType();
...@@ -5880,7 +5944,6 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5880,7 +5944,6 @@ CONTENTVIEW.ready = function(initContentId){
CONTENTVIEW_INITOBJECT.initPage(); CONTENTVIEW_INITOBJECT.initPage();
} }
} }
//ストリーミングならデバイス側に初期表示済通知 //ストリーミングならデバイス側に初期表示済通知
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
CONTENTVIEW_STREAMING.initPageView(); CONTENTVIEW_STREAMING.initPageView();
......
...@@ -1092,6 +1092,11 @@ HEADER.getIconTypeContent = function(contentType) { ...@@ -1092,6 +1092,11 @@ HEADER.getIconTypeContent = function(contentType) {
src = 'img/bookshelf/icon_08.png'; src = 'img/bookshelf/icon_08.png';
break; break;
} }
case COMMON.ContentTypeKeys.Type_PanoMovie:
{
src = 'img/bookshelf/icon_11.png';
break;
}
default: break default: break
} }
return src; return src;
......
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