Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
d1a5398f
Commit
d1a5398f
authored
Feb 07, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日比谷対応
parent
98db55b3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
200 additions
and
90 deletions
+200
-90
abvw/common/js/common.js
+126
-51
abvw/common/json/sys/conf.json
+17
-18
abvw/js/contentview.js
+19
-4
abvw/js/contentview_CreateObjects.js
+0
-0
abvw/js/contentview_Events.js
+12
-12
abvw/js/contentview_GetData.js
+17
-5
abvw/js/header.js
+2
-0
abvw/js/home.js
+3
-0
abvw/js/login.js
+4
-0
No files found.
abvw/common/js/common.js
View file @
d1a5398f
This diff is collapsed.
Click to expand it.
abvw/common/json/sys/conf.json
View file @
d1a5398f
{
"apiUrl"
:
"http://web3.agentec.jp/acms/{0}/abvapi"
,
"apiLoginUrl"
:
"http://web3.agentec.jp/acms/nuabvapi"
,
"apiResourceDlUrl"
:
"http://web3.agentec.jp/acms/{0}/dl"
,
"bookShelfCount"
:
15
,
"bookListCount"
:
15
,
"screenlockTimeDefault"
:
30
,
"pushPageCount"
:
5
,
"pushTimePeriod"
:
60
,
"debug"
:
true
,
"loginPage"
:
"index.html"
,
"anonymousLoginFlg"
:
false
,
"anonymousLoginPath"
:
"abetest"
,
"anonymousLoginId"
:
"nologin"
,
"appName"
:
"ABookWebCL"
,
"appVersion"
:
"0.0.1"
}
{
"apiUrl"
:
"http://web3.agentec.jp/acms/{0}/abvapi"
,
"apiLoginUrl"
:
"http://web3.agentec.jp/acms/nuabvapi"
,
"apiResourceDlUrl"
:
"http://web3.agentec.jp/acms/{0}/dl"
,
"bookShelfCount"
:
15
,
"bookListCount"
:
15
,
"screenlockTimeDefault"
:
30
,
"pushPageCount"
:
5
,
"pushTimePeriod"
:
60
,
"debug"
:
true
,
"loginPage"
:
"index.html"
,
"anonymousLoginFlg"
:
true
,
"anonymousLoginPath"
:
"abetest3"
,
"anonymousLoginId"
:
"webuser"
,
"appName"
:
"ABookWebCL"
,
"appVersion"
:
"0.0.1"
}
abvw/js/contentview.js
View file @
d1a5398f
...
...
@@ -1022,8 +1022,8 @@ function showErrorScreen() {
/* move to page ?? */
function
changePage
(
page_index
)
{
//abe スライダーのページ移動
alert
(
"changePage:"
+
page_index
);
//abe スライダーのページ移動
//
alert("changePage:" + page_index);
// Make sure page_index is number
page_index
=
Number
(
page_index
);
...
...
@@ -1045,6 +1045,10 @@ function changePage(page_index) {
}
//End Function : No.4 - Editor : Long - Date : 08/19/2013
else
{
//ページ閲覧ログセット
SetPageLog
(
contentID
,
page_index
);
// Clear canvas offscreen
clearCanvas
(
document
.
getElementById
(
"offscreen"
));
...
...
@@ -1924,8 +1928,10 @@ var isPendingContentBGM = false;
function
changePageWithoutSlide
(
pageMove
)
{
//abe 確認できない
alert
(
"changePageWithoutSlide:"
+
pageMove
);
//abe コンテンツリンクで移動時
alert
(
"changePageWithoutSlide:"
+
pageMove
);
//ページ閲覧ログセット
SetPageLog
(
contentID
,
pageMove
);
disableAllControl
();
var
isExistBGMPageContent
=
false
;
...
...
@@ -2739,6 +2745,7 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj
.
visible
,
obj
.
mediaFile
,
obj
.
media
,
obj
.
mediaResourceId
,
obj
.
objectId
);
}
else
if
(
obj
.
actionType
==
2
)
{
...
...
@@ -2753,6 +2760,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj
.
height
,
obj
.
visible
,
obj
.
audioFile
,
obj
.
audio
,
obj
.
audioResourceId
,
obj
.
objectId
);
}
else
if
(
obj
.
actionType
==
3
)
{
/*open new url */
...
...
@@ -2783,6 +2792,7 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj
.
height
,
obj
.
visible
,
obj
.
imagePreview
,
obj
.
imagePreviewResourceIds
,
obj
.
objectId
);
}
else
if
(
obj
.
actionType
==
5
)
{
/*jump page */
...
...
@@ -2874,6 +2884,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj
.
replyLimit
,
obj
.
fullScreen
,
obj
.
saveAs
,
obj
.
resourceId
,
obj
.
enquete
,
obj
.
objectId
);
}
...
...
@@ -2908,6 +2920,7 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj
.
height
,
obj
.
visible
,
obj
.
audioFile
,
obj
.
audioResourceId
,
obj
.
playType
,
obj
.
objectId
);
...
...
@@ -3042,6 +3055,8 @@ ContentPage.prototype.addPageObjects = function (pageObjects) {
obj
.
replyLimit
,
obj
.
fullScreen
,
obj
.
saveAs
,
obj
.
resourceId
,
obj
.
enquete
,
obj
.
objectId
);
}
...
...
abvw/js/contentview_CreateObjects.js
View file @
d1a5398f
This diff is collapsed.
Click to expand it.
abvw/js/contentview_Events.js
View file @
d1a5398f
...
...
@@ -303,9 +303,9 @@ function nextPage_click() {
if
(
getContent
().
hasNextPage
())
{
//abe
alert
(
"nextPage_click:"
+
contentID
);
SetPageLog
(
contentID
,
getPageIndex
()
+
1
);
//abe
//
alert("nextPage_click:" + contentID );
SetPageLog
(
contentID
,
getPageIndex
()
+
1
);
playBGMOfContent
();
playBGMOfPage
(
getPageIndex
()
+
1
);
...
...
@@ -329,9 +329,9 @@ function prevPage_click() {
if
(
getContent
().
hasPreviousPage
())
{
//abe
alert
(
"prevPage_click:"
+
contentID
);
SetPageLog
(
contentID
,
getPageIndex
()
-
1
);
//abe
//
alert("prevPage_click:" + contentID);
SetPageLog
(
contentID
,
getPageIndex
()
-
1
);
playBGMOfContent
();
playBGMOfPage
(
getPageIndex
()
-
1
);
...
...
@@ -358,9 +358,9 @@ function firstPage_click() {
}
else
{
//abe
alert
(
"firstPage_click:"
+
contentID
);
SetPageLog
(
contentID
,
0
);
//abe
//
alert("firstPage_click:" + contentID );
SetPageLog
(
contentID
,
0
);
playBGMOfContent
();
playBGMOfPage
(
0
);
...
...
@@ -429,9 +429,9 @@ function lastPage_click() {
}
else
{
//abe
alert
(
"lastPage_click:"
+
contentID
);
SetPageLog
(
contentID
,
totalPage
-
1
);
//abe
//
alert("lastPage_click:" + contentID );
SetPageLog
(
contentID
,
totalPage
-
1
);
playBGMOfContent
();
playBGMOfPage
(
totalPage
-
1
);
...
...
abvw/js/contentview_GetData.js
View file @
d1a5398f
...
...
@@ -165,13 +165,14 @@ function getMediaType1(iValueObj) {
}
/*get video file */
if
(
iValueObj
.
action
.
video
)
{
pageObject
[
'mediaFile'
]
=
getURL
(
"webResourceDownload"
)
+
"/?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
iValueObj
.
action
.
video
);
pageObject
[
'media'
]
=
iValueObj
.
action
.
video
;
pageObject
[
'mediaResourceId'
]
=
iValueObj
.
action
.
resourceId
;
}
else
{
pageObject
[
'mediaFile'
]
=
''
;
pageObject
[
'media'
]
=
''
;
pageObject
[
'mediaResourceId'
]
=
''
;
}
}
else
if
(
iValueObj
.
action
.
actionType
==
2
)
{
...
...
@@ -190,8 +191,12 @@ function getMediaType1(iValueObj) {
}
else
{
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"/?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
iValueObj
.
action
.
music
);
}
pageObject
[
'audio'
]
=
iValueObj
.
action
.
music
;
pageObject
[
'audioResourceId'
]
=
iValueObj
.
action
.
resourceId
;
}
else
{
pageObject
[
'audioFile'
]
=
''
;
pageObject
[
'audio'
]
=
""
;
pageObject
[
'audioResourceId'
]
=
""
;
}
}
else
if
(
iValueObj
.
action
.
actionType
==
3
)
{
...
...
@@ -239,14 +244,15 @@ function getMediaType1(iValueObj) {
/*get Image Preview */
var
dataResourceImage
=
iValueObj
.
action
.
preview
;
var
dataImageFromResource
=
[];
pageObject
[
'imagePreviewResourceIds'
]
=
[];
//START TRB00077 - Editor : Long - Date: 09/24/2013- Summary : Display image preview no image
if
(
dataResourceImage
){
for
(
var
nIndex
=
0
;
nIndex
<
dataResourceImage
.
length
;
nIndex
++
)
{
dataImageFromResource
.
push
(
getURL
(
"webResourceDownload"
)
+
"/?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
dataResourceImage
[
nIndex
]));
}
pageObject
[
'imagePreviewResourceIds'
]
=
iValueObj
.
action
.
resourceIds
;
}
//END TRB00077 - Editor : Long - Date: 09/24/2013- Summary : Display image preview no image
pageObject
[
'imagePreview'
]
=
dataImageFromResource
;
}
else
if
(
iValueObj
.
action
.
actionType
==
5
)
{
...
...
@@ -349,6 +355,8 @@ function getMediaType1(iValueObj) {
pageObject
[
"replyLimit"
]
=
iValueObj
.
action
.
replyLimit
;
pageObject
[
"fullScreen"
]
=
iValueObj
.
action
.
fullScreen
;
pageObject
[
"saveAs"
]
=
iValueObj
.
action
.
saveAs
;
pageObject
[
"resourceId"
]
=
iValueObj
.
action
.
resourceId
;
pageObject
[
"enquete"
]
=
iValueObj
.
action
.
enquete
;
//pageObject["objectId"] = iValueObj.action.objectId;
}
//End Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary :
...
...
@@ -372,7 +380,7 @@ function getMediaType2(iValueObj) {
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
.
resourceId
)
{
pageObject
[
'mediaFile'
]
=
getURL
(
"webResourceDownload"
)
+
"/?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'media'
]
=
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'media'
]
=
iValueObj
.
mediaInfo
.
resourceId
;
//video1のほうはリソース名で取得している。IDのほうが良いのでは。
}
else
{
pageObject
[
'mediaFile'
]
=
''
;
pageObject
[
'media'
]
=
''
;
...
...
@@ -421,8 +429,10 @@ function getMediaType3(iValueObj) {
}
else
{
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"/?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
pageObject
[
'audioResourceId'
]
=
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'audioFile'
]
=
''
;
pageObject
[
'audioResourceId'
]
=
''
;
}
/*get playtype */
...
...
@@ -722,7 +732,7 @@ function getMediaType11(iValueObj) {
//Get object Info
pageObject
[
'mediaType'
]
=
iValueObj
.
mediaType
;
pageObject
[
'id'
]
=
"MediaType
9
_"
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'id'
]
=
"MediaType
11
_"
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'actionType'
]
=
iValueObj
.
action
.
actionType
;
//Get object Location
...
...
@@ -744,7 +754,9 @@ function getMediaType11(iValueObj) {
pageObject
[
"replyLimit"
]
=
iValueObj
.
action
.
replyLimit
;
pageObject
[
"fullScreen"
]
=
iValueObj
.
action
.
fullScreen
;
pageObject
[
"saveAs"
]
=
iValueObj
.
action
.
saveAs
;
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
pageObject
[
"resourceId"
]
=
resourceId
;
pageObject
[
"enquete"
]
=
iValueObj
.
action
.
enquete
;
//pageObject["objectId"] = iValueObj.action.objectId;
}
return
pageObject
;
...
...
abvw/js/header.js
View file @
d1a5398f
...
...
@@ -810,7 +810,9 @@ function initPushMessage()
);
// check new push message
if
(
isAnonymousLogin
()
==
false
)
{
getPushMessageNew
();
}
};
// get time wait check new push message
...
...
abvw/js/home.js
View file @
d1a5398f
...
...
@@ -195,6 +195,9 @@ $(document).ready(function () {
//カタログエディション対応判定
if
(
ClientData
.
serviceOpt_catalog_edition
()
==
'Y'
){
$
(
'.tabUnit'
).
hide
();
//センタリングするようサイズ調整
$
(
'#main'
).
width
(
660
);
}
else
{
$
(
'.switchingTab .colright'
).
hide
();
}
...
...
abvw/js/login.js
View file @
d1a5398f
...
...
@@ -603,6 +603,10 @@ function initLoginAnonymousUser() {
ClientData
.
serviceOpt_catalog_edition
(
option
.
value
);
}
else
if
(
option
.
serviceName
==
'hibiyakadan_catalog'
)
{
ClientData
.
serviceOpt_hibiyakadan_catalog
(
option
.
value
);
}
else
if
(
option
.
serviceName
==
'usable_readinglog_gps'
)
{
ClientData
.
serviceOpt_usable_readinglog_gps
(
option
.
value
);
}
else
if
(
option
.
serviceName
==
'usable_readinglog_object'
)
{
ClientData
.
serviceOpt_usable_readinglog_object
(
option
.
value
);
}
});
// hide splash screen then move to home page
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment