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
69fb9ed6
Commit
69fb9ed6
authored
Dec 12, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
パフォーマンス改善 JS暗号化エラー対応
parent
999c601a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
abvw/js/contentview_CreateObjects.js
+0
-0
abvw/js/contentview_FileSystem.js
+6
-3
No files found.
abvw/js/contentview_CreateObjects.js
View file @
69fb9ed6
This diff is collapsed.
Click to expand it.
abvw/js/contentview_FileSystem.js
View file @
69fb9ed6
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
//名前空間用のオブジェクトを用意する
//名前空間用のオブジェクトを用意する
var
CONTENTVIEW_FILESYSTEM
=
{};
var
CONTENTVIEW_FILESYSTEM
=
{};
CONTENTVIEW_FILESYSTEM
.
fs
=
null
;
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
//$(function () {
//$(function () {
...
@@ -18,6 +19,7 @@ CONTENTVIEW_FILESYSTEM.initFS = function( func ) {
...
@@ -18,6 +19,7 @@ CONTENTVIEW_FILESYSTEM.initFS = function( func ) {
if
(
func
!=
null
){
if
(
func
!=
null
){
func
();
func
();
}
}
return
;
}
}
window
.
requestFileSystem
(
window
.
requestFileSystem
(
...
@@ -116,7 +118,7 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
...
@@ -116,7 +118,7 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
console
.
log
(
'CONTENTVIEW_FILESYSTEM.fs is null. id='
+
contentId
);
console
.
log
(
'CONTENTVIEW_FILESYSTEM.fs is null. id='
+
contentId
);
//おまじない ajaxカウントをインクリする必要有り
//おまじない ajaxカウントをインクリする必要有り
nAjaxLoad
++
;
//
nAjaxLoad++;
//ファンクションがあれば実行
//ファンクションがあれば実行
if
(
func
!=
null
){
if
(
func
!=
null
){
func
(
data
);
func
(
data
);
...
@@ -324,9 +326,10 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
...
@@ -324,9 +326,10 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
}
else
{
}
else
{
if
(
this
.
readyState
==
2
){
if
(
this
.
readyState
==
2
){
console
.
log
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
}
}
console
.
log
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
}
}
}
}
...
@@ -334,7 +337,6 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
...
@@ -334,7 +337,6 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
xhr
.
open
(
'GET'
,
src
);
xhr
.
open
(
'GET'
,
src
);
xhr
.
responseType
=
'blob'
;
xhr
.
responseType
=
'blob'
;
xhr
.
send
();
xhr
.
send
();
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
}
else
{
}
else
{
console
.
log
(
"xhr is busy."
);
console
.
log
(
"xhr is busy."
);
}
}
...
@@ -371,6 +373,7 @@ CONTENTVIEW_FILESYSTEM.errorHandler = function(e) {
...
@@ -371,6 +373,7 @@ CONTENTVIEW_FILESYSTEM.errorHandler = function(e) {
break
;
break
;
};
};
//CONTENTVIEW_FILESYSTEM.fs = null;
//CONTENTVIEW_FILESYSTEM.fs = null;
console
.
log
(
'FileSystemAPI Error: '
+
msg
);
alert
(
'FileSystemAPI Error: '
+
msg
);
alert
(
'FileSystemAPI Error: '
+
msg
);
};
};
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