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
721c5295
Commit
721c5295
authored
Apr 16, 2015
by
vietdo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#15800 試験(ActionType=14)のJSON解析とビューア画面への表示
parent
86419b42
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
297 additions
and
5 deletions
+297
-5
abvw/common/js/common.js
+11
-0
abvw/inc_contentview.html
+1
-0
abvw/js/contentview.js
+88
-1
abvw/js/contentview_CallApi.js
+0
-1
abvw/js/contentview_CreateObjects.js
+85
-1
abvw/js/contentview_Events.js
+0
-0
abvw/js/contentview_General.js
+0
-0
abvw/js/contentview_GetData.js
+107
-1
abvw/js/contentview_InitObjects.js
+0
-0
abvw/js/header.js
+0
-1
abvw/js/settings.js
+5
-0
No files found.
abvw/common/js/common.js
View file @
721c5295
...
...
@@ -221,6 +221,8 @@ COMMON.Keys = {
serviceOpt_apns
:
'apns'
,
// Session :事業者オプション(serviceOpt)_任意のプッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_usable_push_message
:
'usable_push_message'
,
// Session :事業者オプション(serviceOpt)_任意のプッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_encryption
:
'encryption'
,
// Session :共通(common)_コンテンツID:Integer
common_contentId
:
'common_contentId'
,
// Local :共通(common)_コンテンツID:Integer
...
...
@@ -1271,6 +1273,15 @@ var ClientData = {
}
},
// Session :事業者オプション(serviceOpt)_任意のプッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_encryption
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
COMMON
.
Keys
.
serviceOpt_encryption
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
serviceOpt_encryption
);
}
},
// Session :事業者オプション(serviceOpt)_カタログエディション:Char(Y:可能, N:不可)
serviceOpt_catalog_edition
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
...
...
abvw/inc_contentview.html
View file @
721c5295
...
...
@@ -382,6 +382,7 @@
<script
type=
"text/javascript"
src=
"./js/contentview_PopupText.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_Paint.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_Anket.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_Exam.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_3d.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_ContentTypeNone.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_ImagePreview.js?__UPDATEID__"
></script>
...
...
abvw/js/contentview.js
View file @
721c5295
...
...
@@ -2802,8 +2802,49 @@ CONTENTVIEW.ContentPage.prototype.addPageObjects = function (pageObjects) {
obj
.
enquete
,
obj
.
objectId
);
}
else
if
(
obj
.
actionType
==
14
){
pageObj
=
new
CONTENTVIEW_CREATEOBJECT
.
exam
(
obj
.
mediaType
,
obj
.
actionType
,
obj
.
id
,
obj
.
imageUrl
,
obj
.
x
,
obj
.
y
,
obj
.
width
,
obj
.
height
,
obj
.
visible
,
obj
.
showResult
,
obj
.
endResult
,
obj
.
replyLimit
,
obj
.
fullScreen
,
obj
.
saveAs
,
obj
.
resourceId
,
obj
.
enquete
,
obj
.
objectId
);
}
//End Function : No.9 - Editor : Long - Summary :
else
if
(
obj
.
actionType
==
15
){
pageObj
=
new
CONTENTVIEW_CREATEOBJECT
.
exam
(
obj
.
mediaType
,
obj
.
actionType
,
obj
.
id
,
obj
.
imageUrl
,
obj
.
x
,
obj
.
y
,
obj
.
width
,
obj
.
height
,
obj
.
visible
,
obj
.
replyLimit
,
obj
.
fullScreen
,
obj
.
saveAs
,
obj
.
resourceId
,
obj
.
enquete
,
obj
.
objectId
);
}
break
;
case
2
:
pageObj
=
new
CONTENTVIEW_CREATEOBJECT
.
videoType2
(
...
...
@@ -2975,6 +3016,53 @@ CONTENTVIEW.ContentPage.prototype.addPageObjects = function (pageObjects) {
);
}
break
;
case
12
:
//mediaType = 12
if
(
obj
.
actionType
==
14
){
pageObj
=
new
CONTENTVIEW_CREATEOBJECT
.
exam
(
obj
.
mediaType
,
obj
.
actionType
,
obj
.
id
,
obj
.
imageUrl
,
obj
.
x
,
obj
.
y
,
obj
.
width
,
obj
.
height
,
obj
.
visible
,
obj
.
showResult
,
obj
.
sendResult
,
obj
.
replyLimit
,
obj
.
fullScreen
,
obj
.
saveAs
,
obj
.
resourceId
,
obj
.
enquete
,
obj
.
objectId
);
}
case
13
:
//mediaType = 13
if
(
obj
.
actionType
==
15
){
pageObj
=
new
CONTENTVIEW_CREATEOBJECT
.
quiz
(
obj
.
mediaType
,
obj
.
actionType
,
obj
.
id
,
obj
.
imageUrl
,
obj
.
x
,
obj
.
y
,
obj
.
width
,
obj
.
height
,
obj
.
visible
,
obj
.
replyLimit
,
obj
.
fullScreen
,
obj
.
saveAs
,
obj
.
resourceId
,
obj
.
enquete
,
obj
.
objectId
);
}
break
;
//Start Function : No.9 - Editor : Long - Date : 08/15/2013 - Summary : 3d object
default
:
// default Object
...
...
@@ -5555,7 +5643,6 @@ CONTENTVIEW.ready = function(){
"GET"
,
params
,
function
(
data
)
{
CONTENTVIEW_GENERAL
.
contentType
=
data
.
contentData
.
contentType
;
if
(
ClientData
.
isStreamingMode
()){
...
...
abvw/js/contentview_CallApi.js
View file @
721c5295
...
...
@@ -304,7 +304,6 @@ CONTENTVIEW_CALLAPI.getDataJsonFileDone = function(data) {
pageDataInfo
[
"width"
]
=
JsonFile
.
width
;
pageDataInfo
[
"alpha"
]
=
JsonFile
.
backgroundAlpha
;
pageDataInfo
[
"color"
]
=
JsonFile
.
backgroundColor
;
CONTENTVIEW_GENERAL
.
totalPage
=
parseInt
(
JsonFile
.
totalPageNum
);
CONTENTVIEW_GENERAL
.
pageImages
=
CONTENTVIEW_CONTENTTYPENONE
.
returnImageString
(
pageDataInfo
);
...
...
abvw/js/contentview_CreateObjects.js
View file @
721c5295
...
...
@@ -980,6 +980,91 @@ CONTENTVIEW_CREATEOBJECT.anket = function (mediaType, actionType, id, imageUrl,
};
CONTENTVIEW_CREATEOBJECT
.
anket
.
prototype
=
new
CONTENTVIEW_CREATEOBJECT
.
PageObject
();
CONTENTVIEW_CREATEOBJECT
.
exam
=
function
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
showResult
,
sendResult
,
replyLimit
,
fullscreen
,
saveAs
,
resourceId
,
enquete
,
objectId
)
{
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
null
,
null
,
objectId
);
this
.
action
=
function
()
{
//詳細ログ作成
var
objectLog
=
new
ObjectLogEntity
();
objectLog
.
contentid
=
CONTENTVIEW_GENERAL
.
contentID
;
objectLog
.
pageNo
=
CONTENTVIEW_GETDATA
.
getPageIndex
()
+
1
;
//0始まりのページ番号
objectLog
.
objectId
=
objectId
;
objectLog
.
resourceId
=
resourceId
;
objectLog
.
mediaType
=
mediaType
;
objectLog
.
actionType
=
actionType
;
objectLog
.
actionValue
=
enquete
;
//objectNameのほうが良かった
objectLog
.
actionTime
=
"0"
;
objectLog
.
locationX
=
x
;
objectLog
.
locationY
=
y
;
objectLog
.
locationHeight
=
h
;
objectLog
.
locationWidth
=
w
;
COMMON
.
SetObjectLog
(
CONTENTVIEW_GENERAL
.
contentID
,
objectLog
);
//---
/*stop audio on page */
CONTENTVIEW
.
stopAllAudio
();
var
url
=
CONTENTVIEW_GETDATA
.
getURLPageImage
(
"webEnqueteReply/init"
)
+
"/?abObjectId="
+
objectId
+
"&sid="
+
CONTENTVIEW
.
getSessionId
();
if
(
ClientData
.
isStreamingMode
()){
//ストリーミング
url
=
url
+
"&isStreaming=true"
;
}
var
isFullScreen
=
false
;
if
(
parseInt
(
fullscreen
)
==
1
){
isFullScreen
=
true
;
}
CONTENTVIEW_EXAM
.
showExam
(
url
,
isFullScreen
,
objectId
);
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
};
};
CONTENTVIEW_CREATEOBJECT
.
exam
.
prototype
=
new
CONTENTVIEW_CREATEOBJECT
.
PageObject
();
CONTENTVIEW_CREATEOBJECT
.
quiz
=
function
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
replyLimit
,
fullscreen
,
saveAs
,
resourceId
,
enquete
,
objectId
)
{
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
null
,
null
,
objectId
);
this
.
action
=
function
()
{
//詳細ログ作成
var
objectLog
=
new
ObjectLogEntity
();
objectLog
.
contentid
=
CONTENTVIEW_GENERAL
.
contentID
;
objectLog
.
pageNo
=
CONTENTVIEW_GETDATA
.
getPageIndex
()
+
1
;
//0始まりのページ番号
objectLog
.
objectId
=
objectId
;
objectLog
.
resourceId
=
resourceId
;
objectLog
.
mediaType
=
mediaType
;
objectLog
.
actionType
=
actionType
;
objectLog
.
actionValue
=
enquete
;
//objectNameのほうが良かった
objectLog
.
actionTime
=
"0"
;
objectLog
.
locationX
=
x
;
objectLog
.
locationY
=
y
;
objectLog
.
locationHeight
=
h
;
objectLog
.
locationWidth
=
w
;
COMMON
.
SetObjectLog
(
CONTENTVIEW_GENERAL
.
contentID
,
objectLog
);
//---
/*stop audio on page */
CONTENTVIEW
.
stopAllAudio
();
var
url
=
CONTENTVIEW_GETDATA
.
getURLPageImage
(
"webEnqueteReply/init"
)
+
"/?abObjectId="
+
objectId
+
"&sid="
+
CONTENTVIEW
.
getSessionId
();
if
(
ClientData
.
isStreamingMode
()){
//ストリーミング
url
=
url
+
"&isStreaming=true"
;
}
var
isFullScreen
=
false
;
if
(
parseInt
(
fullscreen
)
==
1
){
isFullScreen
=
true
;
}
CONTENTVIEW_EXAM
.
showExam
(
url
,
isFullScreen
,
objectId
);
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
};
};
CONTENTVIEW_CREATEOBJECT
.
quiz
.
prototype
=
new
CONTENTVIEW_CREATEOBJECT
.
PageObject
();
//End Function : No.9 - Editor : Long - Date: 08/16/2013 - Summary :
/* mediaType=3 Audio object : extends PageObject */
...
...
@@ -2383,7 +2468,6 @@ CONTENTVIEW_CREATEOBJECT.createTextConfirmAudio = function() {
CONTENTVIEW_CREATEOBJECT
.
createPage
=
function
(
pageNumber
,
pageImage
,
pageObjects
,
onCompleteFunc
)
{
//abe 次のページを作成している
console
.
log
(
"CreateObj_createPage:"
+
pageNumber
);
var
page
=
new
CONTENTVIEW
.
ContentPage
(
pageNumber
,
pageImage
);
/* add page Object */
//Start Function: No.12
...
...
abvw/js/contentview_Events.js
View file @
721c5295
abvw/js/contentview_General.js
View file @
721c5295
abvw/js/contentview_GetData.js
View file @
721c5295
...
...
@@ -74,6 +74,14 @@ CONTENTVIEW_GETDATA.getPageObjectsByPageIndex = function(contentData, nIndexPage
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType11
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
pageObjects
.
push
(
pageObject
);
}
else
if
(
currentPageObjects
[
nIndex
].
mediaType
==
12
)
{
/*mediaType = 12*/
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType12
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
pageObjects
.
push
(
pageObject
);
}
else
if
(
currentPageObjects
[
nIndex
].
mediaType
==
13
)
{
/*mediaType = 12*/
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType13
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
pageObjects
.
push
(
pageObject
);
}
}
}
...
...
@@ -741,6 +749,8 @@ CONTENTVIEW_GETDATA.getMediaType9 = function(iValueObj) {
};
CONTENTVIEW_GETDATA
.
getMediaType11
=
function
(
iValueObj
)
{
console
.
log
(
iValueObj
);
var
pageObject
=
[];
//Get object Info
...
...
@@ -779,6 +789,86 @@ CONTENTVIEW_GETDATA.getMediaType11 = function(iValueObj) {
return
pageObject
;
};
CONTENTVIEW_GETDATA
.
getMediaType12
=
function
(
iValueObj
)
{
var
pageObject
=
[];
//Get object Info
pageObject
[
'mediaType'
]
=
iValueObj
.
mediaType
;
pageObject
[
'id'
]
=
"MediaType12_"
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'actionType'
]
=
iValueObj
.
action
.
actionType
;
//Get object Location
pageObject
[
'x'
]
=
iValueObj
.
location
.
x
;
pageObject
[
'y'
]
=
iValueObj
.
location
.
y
;
pageObject
[
'width'
]
=
iValueObj
.
location
.
width
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
if
(
iValueObj
.
action
.
actionType
==
14
){
var
resourceId
=
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
"imageUrl"
]
=
'img/anket.jpg'
;
pageObject
[
"replyLimit"
]
=
iValueObj
.
action
.
replyLimit
;
pageObject
[
"fullScreen"
]
=
iValueObj
.
action
.
fullScreen
;
pageObject
[
"saveAs"
]
=
iValueObj
.
action
.
saveAs
;
pageObject
[
"resourceId"
]
=
resourceId
;
pageObject
[
"enquete"
]
=
iValueObj
.
action
.
enquete
;
pageObject
[
"showResult"
]
=
iValueObj
.
action
.
showResult
;
pageObject
[
"sendResult"
]
=
iValueObj
.
action
.
sendResult
;
//pageObject["objectId"] = iValueObj.action.objectId;
}
return
pageObject
;
}
CONTENTVIEW_GETDATA
.
getMediaType13
=
function
(
iValueObj
)
{
var
pageObject
=
[];
//Get object Info
pageObject
[
'mediaType'
]
=
iValueObj
.
mediaType
;
pageObject
[
'id'
]
=
"MediaType12_"
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'actionType'
]
=
iValueObj
.
action
.
actionType
;
//Get object Location
pageObject
[
'x'
]
=
iValueObj
.
location
.
x
;
pageObject
[
'y'
]
=
iValueObj
.
location
.
y
;
pageObject
[
'width'
]
=
iValueObj
.
location
.
width
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
if
(
iValueObj
.
action
.
actionType
==
15
){
var
resourceId
=
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
"imageUrl"
]
=
'img/anket.jpg'
;
pageObject
[
"replyLimit"
]
=
iValueObj
.
action
.
replyLimit
;
pageObject
[
"fullScreen"
]
=
iValueObj
.
action
.
fullScreen
;
pageObject
[
"saveAs"
]
=
iValueObj
.
action
.
saveAs
;
pageObject
[
"resourceId"
]
=
resourceId
;
pageObject
[
"enquete"
]
=
iValueObj
.
action
.
enquete
;
//pageObject["objectId"] = iValueObj.action.objectId;
}
return
pageObject
;
}
CONTENTVIEW_GETDATA
.
convNumTo2Char
=
function
(
num
){
var
nRet
=
""
;
if
(
num
<
10
)
...
...
@@ -1312,7 +1402,7 @@ CONTENTVIEW_GETDATA.renderPrevPage = function(){
//Get next page objects by page index
CONTENTVIEW_GETDATA
.
getNextPageObjectsByPageIndex
=
function
(
contentData
,
nIndexPage
)
{
CONTENTVIEW_GENERAL
.
nextPageObjects
=
[];
console
.
log
(
contentData
);
var
currentPageObjects
;
for
(
var
nIndex
=
0
;
nIndex
<
contentData
.
length
;
nIndex
++
)
{
if
(
contentData
[
nIndex
].
page
==
nIndexPage
)
{
...
...
@@ -1374,6 +1464,14 @@ CONTENTVIEW_GETDATA.getNextPageObjectsByPageIndex = function(contentData, nIndex
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType11
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
nextPageObjects
.
push
(
pageObject
);
}
else
if
(
currentPageObjects
[
nIndex
].
mediaType
==
12
)
{
/*mediaType = 12*/
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType12
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
nextPageObjects
.
push
(
pageObject
);
}
else
if
(
currentPageObjects
[
nIndex
].
mediaType
==
13
)
{
/*mediaType = 12*/
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType13
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
nextPageObjects
.
push
(
pageObject
);
}
}
...
...
@@ -1445,6 +1543,14 @@ CONTENTVIEW_GETDATA.getPrevPageObjectsByPageIndex = function(contentData, nIndex
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType11
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
prevPageObjects
.
push
(
pageObject
);
}
else
if
(
currentPageObjects
[
nIndex
].
mediaType
==
12
)
{
/*mediaType = 12*/
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType12
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
prevPageObjects
.
push
(
pageObject
);
}
else
if
(
currentPageObjects
[
nIndex
].
mediaType
==
13
)
{
/*mediaType = 12*/
var
pageObject
=
CONTENTVIEW_GETDATA
.
getMediaType13
(
currentPageObjects
[
nIndex
]);
/*add object to page */
CONTENTVIEW_GENERAL
.
prevPageObjects
.
push
(
pageObject
);
}
}
}
...
...
abvw/js/contentview_InitObjects.js
View file @
721c5295
abvw/js/header.js
View file @
721c5295
...
...
@@ -920,7 +920,6 @@ HEADER.getPushMessageList = function() {
"post"
,
params
,
function
(
data
)
{
console
.
log
(
data
);
// reset number message
ClientData
.
pushInfo_newMsgNumber
(
0
);
// hide number new message
...
...
abvw/js/settings.js
View file @
721c5295
...
...
@@ -23,7 +23,12 @@ $(document).ready(function () {
$
(
"#dspSave"
).
click
(
SETTINGS
.
dspSave_Click
);
if
(
ClientData
.
serviceOpt_encryption
()
==
'Y'
)
{
$
(
"#dspPwdUpd"
).
hide
();
}
else
{
$
(
"#dspPwdUpd"
).
click
(
SETTINGS
.
dspPwdUpd_Click
);
}
$
(
"#dspOptReset"
).
click
(
SETTINGS
.
dspOptReset_Click
);
...
...
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