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
44040b80
Commit
44040b80
authored
Apr 24, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#15764 CMSオーサリングプレビューの試験クイズ対応
parent
d6670292
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
141 additions
and
4 deletions
+141
-4
abvw/common/js/avweb.js
+1
-4
abvw/common/js/common.js
+10
-0
abvw/contentpreview.html
+61
-0
abvw/js/contentpreview.js
+69
-0
No files found.
abvw/common/js/avweb.js
View file @
44040b80
...
...
@@ -457,9 +457,6 @@ AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, suc
//オーサリングプレビュー対応
if
(
COMMON
.
isAuthoringPreview
()
&&
CONTENTVIEW_GENERAL
.
pid
!=
''
){
console
.
log
(
"CONTENTVIEW_GENERAL.pid:"
+
CONTENTVIEW_GENERAL
.
pid
);
params
.
pid
=
CONTENTVIEW_GENERAL
.
pid
;
}
...
...
@@ -870,7 +867,7 @@ AVWEB.showSystemError = function(textId) {
sticky
:
true
,
text
:
errMes
,
close
:
function
()
{
if
(
ClientData
.
isStreamingMode
()
==
false
){
if
(
ClientData
.
isStreamingMode
()
==
false
&&
COMMON
.
isAuthoringPreview
()
==
false
){
//ストリーミングでなければログアウト時と同じ後始末処理をしてログイン画面に戻す
if
(
!
HEADER
.
webLogoutEvent
()
){
//ログアウト出来なかった
...
...
abvw/common/js/common.js
View file @
44040b80
...
...
@@ -2501,6 +2501,11 @@ COMMON.SetPageLog = function(strContentId, strPageNo){
// 1アクションのオブジェクトログを作成
COMMON
.
SetObjectLog
=
function
(
strContentId
,
objectLog
){
//オーサリングプレビューなら無視
if
(
COMMON
.
isAuthoringPreview
()){
return
;
}
var
arrContentLogs
=
ClientData
.
ContentLogData
();
for
(
var
nIndex
=
0
;
nIndex
<
arrContentLogs
.
length
;
nIndex
++
)
{
...
...
@@ -2537,6 +2542,11 @@ COMMON.SetObjectLogActionTime = function( strContentId, objectId, actionTime ){
*/
COMMON
.
RegisterLog
=
function
(
is
)
{
//オーサリングプレビューなら無視
if
(
COMMON
.
isAuthoringPreview
()){
return
;
}
var
arrContentLogs
=
ClientData
.
ContentLogData
();
var
isError
=
false
;
...
...
abvw/contentpreview.html
0 → 100644
View file @
44040b80
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
/>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-store"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-cache"
>
<meta
http-equiv=
"Expires"
content=
"-1"
>
<meta
name=
"viewport"
content=
""
>
<title>
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./common/css/jquery-ui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./common/css/jquery.toastmessage.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./common/css/default.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./common/css/screenLock.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./css/reset.css?__UPDATEID__"
/>
<!-- CSSビュー -->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/layout/viewer.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/viewer.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/css/jquery.powertip.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/layout/Anket.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/Anket.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/delete_shiori.css?__UPDATEID__"
/>
<script
type=
"text/javascript"
src=
"./common/js/jquery-1.8.1.min.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/jquery-ui-1.8.23.custom.min.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/jquery.toastmessage.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/avweb.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/i18n.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/common.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/uuid.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentpreview.js?__UPDATEID__"
></script>
<style>
html
{
-ms-touch-action
:
none
;
touch-action
:
none
;
}
</style>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
CONTENTPREVIEW
.
ready
();
});
</script>
</head>
<body
id=
"previewviewer"
oncontextmenu=
"return true"
>
<div
id=
"viewer"
style=
"display:none;"
>
</div>
<iframe
style=
"height:0px;width:0px;visibility:hidden"
src=
"about:blank"
>
this frame prevents back forward cache
</iframe>
</body>
</html>
abvw/js/contentpreview.js
0 → 100644
View file @
44040b80
//名前空間用のオブジェクトを用意する
var
CONTENTPREVIEW
=
{};
CONTENTPREVIEW
.
ready
=
function
(){
if
(
!
AVWEB
.
avwUserSessionObj
){
AVWEB
.
avwCreateUserSession
();
}
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// get info in conf.json
var
sid
=
COMMON
.
getUrlParam
(
'sid'
,
''
);
var
contentId
=
COMMON
.
getUrlParam
(
'contentId'
,
''
);
ClientData
.
userInfo_sid
(
sid
);
ClientData
.
userInfo_sid_local
(
sid
);
ClientData
.
userInfo_accountPath
(
COMMON
.
getUrlParam
(
'urlpath'
,
''
));
ClientData
.
contentInfo_contentId
(
contentId
);
ClientData
.
conf_apiUrl
(
sysSettings
.
apiUrl
);
ClientData
.
conf_apiLoginUrl
(
sysSettings
.
apiLoginUrl
);
ClientData
.
conf_apiResourceDlUrl
(
sysSettings
.
apiResourceDlUrl
);
//ビューア、共有表示パーツ読み込み
$
(
"#viewer"
).
load
(
"./inc_contentview.html?__UPDATEID__"
,
function
(
myData
,
myStatus
,
xhr
){
//メニュー表示設定
$
(
'#top_toolbar'
).
hide
();
$
(
'#search_toolbar'
).
hide
();
$
(
'#close_toolbar'
).
show
();
//読み込み完了時の処理
I18N
.
i18nReplaceText
();
CONTENTPREVIEW
.
defaultValue
=
{
pageTransition
:
CONTENTVIEW_GENERAL
.
animateTypeKeys
.
Type_Slide
,
pageTransitionPeriod
:
1
,
bookmarkData
:
[],
memoData
:
[],
markingData
:
[],
isMarkingDsp
:
false
,
isMemoDsp
:
false
,
userOpt_marking
:
'N'
};
ClientData
.
userOpt_pageTransition
(
CONTENTPREVIEW
.
defaultValue
.
pageTransition
);
ClientData
.
userOpt_pageTransitionPeriod
(
CONTENTPREVIEW
.
defaultValue
.
pageTransitionPeriod
);
ClientData
.
BookMarkData
(
CONTENTPREVIEW
.
defaultValue
.
bookmarkData
);
ClientData
.
MemoData
(
CONTENTPREVIEW
.
defaultValue
.
memoData
);
ClientData
.
MarkingData
(
CONTENTPREVIEW
.
defaultValue
.
markingData
);
ClientData
.
userOpt_makingDsp
(
CONTENTPREVIEW
.
defaultValue
.
isMarkingDsp
);
ClientData
.
serviceOpt_marking
(
CONTENTPREVIEW
.
defaultValue
.
userOpt_marking
);
ClientData
.
IsAddingMarking
(
false
);
ClientData
.
IsAddingMemo
(
false
);
ClientData
.
IsDisplayMarking
(
false
);
ClientData
.
IsDisplayMemo
(
false
);
CONTENTVIEW_INITOBJECT
.
clearViewerComponent
();
CONTENTVIEW
.
cssInit
();
$
(
"#viewer"
).
show
();
CONTENTVIEW
.
ready
(
contentId
);
});
};
$
(
document
).
ready
(
function
(){
//
});
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