Commit ba8996da by Vo Duc Thang

9/25 リリース

parent 4cd95f13
......@@ -4,8 +4,8 @@
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage = "/common/images/loadingAnimation.gif";
var tb_pathToImage = "";// "/common/images/loadingAnimation.gif";
var tmpPage;
var linkPage;
var TB_WIDTH;
......
......@@ -64,7 +64,7 @@
"dspBkCancel":"Logout",
"txtSearchResult":"Result",
"dspHome":"Home",
"txtLoginUser":"(Ver.20130924)User:",
"txtLoginUser":"(Ver.20130925)User:",
"txtAll":"All",
"txtMkgSize":"Size",
"txtMkgS":"S",
......
......@@ -64,7 +64,7 @@
"dspBkCancel":"バックアップせずにログアウト",
"txtSearchResult":"検索結果",
"dspHome":"ホーム",
"txtLoginUser":"(Ver.20130924)ログイン中:",
"txtLoginUser":"(Ver.20130925)ログイン中:",
"txtAll":"すべて",
"txtMkgSize":"太さ",
"txtMkgS":"小",
......
......@@ -64,7 +64,7 @@
"dspBkCancel":"로그아웃",
"txtSearchResult":"검색 결과",
"dspHome":"홈",
"txtLoginUser":"(Ver.20130924)로그인 중:",
"txtLoginUser":"(Ver.20130925)로그인 중:",
"txtAll":"전체",
"txtMkgSize":"두께",
"txtMkgS":"소",
......
......@@ -33,6 +33,12 @@ function checkLimitContent(contentId, func,isNotUnlockScreen) {
$('#limit_level1').show().center();
$('#limit_level1 .deletebtn .ok').unbind('click').click(
function () {
if (isNotUnlockScreen != 1) {
unlockLayout();
}
$('#limit_level1').hide();
func();
}
);
......@@ -116,6 +122,10 @@ function checkLimitContent(contentId, func,isNotUnlockScreen) {
// update sid id
ClientData.userInfo_sid(data.sid);
if (isNotUnlockScreen != 1) {
unlockLayout();
}
$('#limit_level2').hide();
// open content
func();
}
......
......@@ -925,6 +925,9 @@ function downloadResourceById(contentId){
resourceUrl = getResourceByIdFromAPI(resourceId);
window.open(resourceUrl, "_blank");
// redraw content remove new icon
drawEditImage(contentId);
});
};
......
......@@ -2096,7 +2096,7 @@ var isZoomingContent = false;
function displayOverlayForSpecifyContentType(){
var contentId = ClientData.contentInfo_contentId();
var resourceUrl = downloadResourceById(contentId);
var resourceUrl = downloadResourceById(contentId);
//contentType = ContentTypeKeys.Type_Html;
if(contentType == ContentTypeKeys.Type_Music){
......@@ -2108,6 +2108,61 @@ function displayOverlayForSpecifyContentType(){
else if(contentType == ContentTypeKeys.Type_Html){
handleForContentTypeHTML(resourceUrl);
}
if (isTouchDevice() == true) {
if (avwUserEnvObj.os == "android") {
standardRatio = document.documentElement.clientWidth / window.innerWidth;
startDetectZoom({ time: 500,
callbackFunction: function (oldRatio, newRatio, oldW, oldH, newW, newH) {
currentRatio = newRatio;
}
});
var top = window.innerHeight - $("#footer_toolbar_1").height();
$("#wrapper").css("width", window.innerWidth);
$("#wrapper").css("height", window.innerHeight);
$("#footer_toolbar_1").css("top", top + "px");
$("#footer_toolbar_2").css("top", top + "px");
sizingScreen();
}
}
/* window resize event */
$(window).resize(function () {
//START : TRB00034 - DATE : 09/11/2013 - Editor : Long - Summary : Fix for center loading image
setLoadingSize();
//END : TRB00034 - DATE : 09/11/2013 - Editor : Long - Summary : Fix for center loading image
if (isTouchDevice() == true) {
if (avwUserEnvObj.os == "android") {
var tempRatio = document.documentElement.clientWidth / window.innerWidth;
if (tempRatio <= 1) {
// Adjust position for toolbar and footer bar
var top = window.innerHeight - $("#footer_toolbar_1").height();
$("#wrapper").css("width", window.innerWidth);
$("#wrapper").css("height", window.innerHeight);
$("#footer_toolbar_1").css("top", top + "px");
$("#footer_toolbar_2").css("top", top + "px");
}
else {
var top = $(window).height() - $("#footer_toolbar_1").height();
$("#wrapper").css("width", $(window).width());
$("#wrapper").css("height", $(window).height());
$("#footer_toolbar_1").css("top", top + "px");
$("#footer_toolbar_2").css("top", top + "px");
}
}
}
resizeScreen();
isChangeSizeScreen = false;
/* change position dialog */
changePosDialog();
/* close dialog popuptext */
closeDialogResize();
});
};
//handle for content type = video
......@@ -2122,7 +2177,7 @@ function handleForContentTypeVideo(resourceUrl){
$container.html(
'<h1>'
+ '</h1>'
+ '<video autoplay="true" loop="true" controls style="position: absolute; width: 100%; height: 90%; bottom: 1% ">'
+ '<video id="content_video" autoplay="true" loop="true" preload="auto" controls style="position: absolute; width: 100%; height: 90%; bottom: 1% ">'
+ ' <source src="' + resourceUrl + '" type="video/mp4"> '
+ '</video>'
);
......@@ -2131,25 +2186,48 @@ function handleForContentTypeVideo(resourceUrl){
$container.html(
'<h1>'
+ '</h1>'
+ '<video autoplay="true" controls style="position: absolute; width: 100%; height: 90%; bottom: 1% ">'
+ '<video id="content_video" autoplay="true" controls style="position: absolute; width: 100%; height: 90%; bottom: 1% ">'
+ ' <source src="' + resourceUrl + '" type="video/mp4"> '
+ '</video>'
);
}
//START TRB00068
// Check to play Video on ipad
if (avwUserEnvObj.os == "ipad") {
if (avwUserEnvObj.os == "ipad") {
// Show confim message to play background music
$("#contentVideoConfirm").css('z-index', 999);
$("#contentVideoConfirm_OK").unbind('click');
$("#contentVideoConfirm_OK").click(function () {
$("#contentVideoConfirm").hide();
isShowVideoContent = true;
var myVideo=document.getElementById("content_video");
if (myVideo.paused)
{
myVideo.play();
}
$container.show();
$("#dialog").find('video').load();
$("#dialog").find('video').play();
$("#contentVideoConfirm").hide();
isShowVideoContent = true;
});
$("#contentVideoConfirm").show();
$("#contentVideoConfirm").center();
}
else if (avwUserEnvObj.os == "android") {
// Show confim message to play background music
$("#contentVideoConfirm").css('z-index', 999);
$("#contentVideoConfirm_OK").unbind('click');
$container.show();
$("#contentVideoConfirm_OK").click(function () {
var myVideo=document.getElementById("content_video");
if (myVideo.paused)
{
myVideo.play();
}
$("#contentVideoConfirm").hide();
isShowVideoContent = true;
});
$("#contentVideoConfirm").show();
$("#contentVideoConfirm").center();
......
......@@ -297,7 +297,11 @@ function initPage() {
} else {
if (getPageIndex() == 0) {
//START TRB00069
isPendingContentBGM = true;
//START TRB00069
if(isHasPageBGM()){
isPendingContentBGM = true;
}
//END TRB00069
//END TRB00069
getContent().setPageImages(totalPage, pageImages)
.setPageObjects(pageObjects)
......@@ -432,7 +436,9 @@ function initPage() {
if (getPageIndex() == 0) {
//START TRB00069
isPendingContentBGM = true;
if(isHasPageBGM()){
isPendingContentBGM = true;
}
//END TRB00069
getContent().setPageImages(totalPage, pageImages)
......@@ -550,6 +556,23 @@ function initPage() {
});
};
//START TRB00069
function isHasPageBGM(){
var iResult = false;
getPageObjectsByPageIndex(pageObjectsData, 0);
for (var nIndex = 0; nIndex < pageObjects.length; nIndex++) {
if (pageObjects[nIndex].mediaType == '3' && pageObjects[nIndex].playType == '2') {
iResult = true;
break;
}
}
return iResult;
};
//END TRB00069
function initPageMediaAndHtmlType(){
//$('#divImageLoading').css('display', 'block');
......
......@@ -747,6 +747,10 @@ function downloadResourceById(contentId){
//Get resource
resourceUrl = getResourceByIdFromAPI(resourceId);
window.open(resourceUrl, "_blank");
// redraw content remove new icon
drawEditImage(contentId);
});
};
......
......@@ -2045,7 +2045,10 @@ function downloadResourceById(contentId){
resourceUrl = getResourceByIdFromAPI(resourceId);
window.open(resourceUrl, "_blank");
// redraw content remove new icon
drawEditImage(contentId);
});
};
......
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