Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MengZian
Slides-XHTML
提交
76e83448
S
Slides-XHTML
项目概览
MengZian
/
Slides-XHTML
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Slides-XHTML
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
76e83448
编写于
6月 23, 2023
作者:
MengZian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
20230623
上级
86a0e884
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
367 addition
and
242 deletion
+367
-242
assets/js/slides.js
assets/js/slides.js
+90
-85
assets/js/stylesheets.js
assets/js/stylesheets.js
+79
-41
static/js/Bright.js
static/js/Bright.js
+5
-5
static/js/DOMOperation.js
static/js/DOMOperation.js
+6
-6
static/js/Slides.js
static/js/Slides.js
+84
-103
user/slides-config.js
user/slides-config.js
+103
-2
未找到文件。
assets/js/slides.js
浏览文件 @
76e83448
...
...
@@ -7,17 +7,44 @@
return
!
value
||
(
typeOfValue
!==
"
object
"
&&
typeOfValue
!==
typeFunction
);
};
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
value
+
"
\
x22 (type:
\
x20
"
+
(
value
!==
null
?
typeof
value
:
value
)
+
"
) is not an object type (an object or a function)!
"
);
}
const
returnOrThrowObjectType
=
function
(){
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
value
+
"
\
x22 (type:
\
x20
"
+
(
value
!==
null
?
typeof
value
:
value
)
+
"
) is not an object type (an object or a function)!
"
);
}
return
function
(
value
){
if
(
isPrimitive
(
value
))
throw
valueIsPrimitiveError
(
value
);
else
return
value
;
};
}();
returnOrThrowObjectType
(
globalObject
);
const
Object_constructor
=
{}.
constructor
;
if
(
isPrimitive
(
globalObject
))
throw
valueIsPrimitiveError
(
globalObject
);
const
tryES5CreateNullPrototypeObject
=
function
(){
const
create
=
Object_constructor
.
create
;
const
createIsFunction
=
typeof
create
===
typeFunction
;
return
function
(){
try
{
return
returnOrThrowObjectType
(
createIsFunction
&&
create
(
null
)
);
}
catch
(
_
){
return
new
Object_constructor
();
}
};
}();
const
dep0
=
"
Bright
"
,
dep1
=
"
DOMOperation
"
,
...
...
@@ -38,26 +65,25 @@
[
dep0
,
dep1
,
dep2
],
function
(){
const
args
=
arguments
;
return
execute
(
globalObject
,
{
"
Bright
"
:
args
[
0
],
"
DOMOperation
"
:
args
[
1
],
"
Slides
"
:
args
[
2
]
},
useRequireJS
);
const
dependencies
=
tryES5CreateNullPrototypeObject
();
let
index
;
index
=-
1
;
dependencies
[
dep0
]
=
args
[
index
+=
1
];
dependencies
[
dep1
]
=
args
[
index
+=
1
];
dependencies
[
dep2
]
=
args
[
index
+=
1
];
dependencies
.
define
=
define_
;
dependencies
.
requirejs
=
requirejs_
;
return
execute
(
globalObject
,
dependencies
,
useRequireJS
);
}
)
):
execute
(
globalObject
,
{
"
Bright
"
:
globalObject
[
dep0
],
"
DOMOperation
"
:
globalObject
[
dep1
],
"
Slides
"
:
globalObject
[
dep2
]
},
useRequireJS
);
):
function
(){
const
dependencies
=
tryES5CreateNullPrototypeObject
();
dependencies
[
dep0
]
=
globalObject
[
dep0
];
dependencies
[
dep1
]
=
globalObject
[
dep1
];
dependencies
[
dep2
]
=
globalObject
[
dep2
];
execute
(
globalObject
,
dependencies
,
useRequireJS
);
return
;
}();
return
;
})(
this
,
...
...
@@ -67,6 +93,8 @@ function isPrimitive(value){
return
!
value
||
(
typeOfValue
!==
"
object
"
&&
typeOfValue
!==
"
function
"
);
}
const
returnOrThrowObjectType
=
function
(){
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
...
...
@@ -77,8 +105,14 @@ function valueIsPrimitiveError(value){
);
}
if
(
isPrimitive
(
bwindow
))
throw
valueIsPrimitiveError
(
bwindow
);
if
(
isPrimitive
(
dependencies
))
throw
valueIsPrimitiveError
(
dependencies
);
return
function
(
value
){
if
(
isPrimitive
(
value
))
throw
valueIsPrimitiveError
(
value
);
else
return
value
;
};
}();
returnOrThrowObjectType
(
bwindow
);
returnOrThrowObjectType
(
dependencies
);
function
isFunction
(
value
){
return
typeof
value
===
"
function
"
;
...
...
@@ -102,15 +136,12 @@ function notAFunctionError(value){
};
}();
const
Bright
=
dependencies
.
Bright
,
DOMOperation
=
dependencies
.
DOMOperation
,
const
Bright
=
returnOrThrowObjectType
(
dependencies
.
Bright
)
,
DOMOperation
=
returnOrThrowObjectType
(
dependencies
.
DOMOperation
)
,
Slides
=
returnOrThrowFunction
(
dependencies
.
Slides
);
if
(
isPrimitive
(
Bright
))
throw
valueIsPrimitiveError
(
Bright
);
if
(
isPrimitive
(
DOMOperation
))
throw
valueIsPrimitiveError
(
DOMOperation
);
const
True
=
true
,
False
=
false
;
const
False
=
false
,
True
=
true
;
const
constructor_key
=
"
constructor
"
,
prototype_key
=
"
prototype
"
,
...
...
@@ -154,11 +185,9 @@ const svg_namespace="http://www.w3.org/2000/svg";
const
newElement
=
createElementNS
(
svg_namespace
,
"
svg
"
);
attributesSetter
(
newElement
,
"
version
"
,
"
1.1
"
);
attributesSetter
(
newElement
,
"
viewBox
"
,
"
0 0 4.4 4.4
"
);
let
tempDocumentFragment
,
tempElement
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
tempElement
=
createElementNS
(
svg_namespace
,
"
path
"
);
const
tempElement
=
createElementNS
(
svg_namespace
,
"
path
"
);
attributesSetter
(
tempElement
,
"
d
"
,
"
m 0 1 h 2 v -1 l 2 2 l -2 2 v -1 h -2 z
"
);
attributesSetter
(
tempElement
,
"
fill
"
,
"
#FFFFFF
"
);
attributesSetter
(
tempElement
,
"
stroke
"
,
"
#000000
"
);
...
...
@@ -177,7 +206,6 @@ const svg_namespace="http://www.w3.org/2000/svg";
appendChildren
(
tempDocumentFragment
,
tempElement
);
appendChildren
(
newElement
,
tempDocumentFragment
);
tempDocumentFragment
=
tempElement
=
null
;
return
newElement
;
};
}();
...
...
@@ -194,14 +222,12 @@ const spanWithTextAndLang=function(text,lang){
const
newElement
=
createElement
(
"
span
"
);
isNotEmpty
(
lang
)
&&
smartSetDOMProperties
(
newElement
,
"
lang
"
,
lang
);
if
(
isEmpty
(
text
))
return
newElement
;
let
tempDocumentFragment
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
appendChildren
(
tempDocumentFragment
,
createTextNode
(
text
)
);
appendChildren
(
newElement
,
tempDocumentFragment
);
tempDocumentFragment
=
null
;
return
newElement
;
};
...
...
@@ -284,7 +310,7 @@ const counter_key="counter",
const
click_eventKey
=
"
click
"
,
change_eventKey
=
"
change
"
;
const
aboutDate
=
new
nDate
(
168
6748584329
);
const
aboutDate
=
new
nDate
(
168
7526393826
);
const
createTextNodeDescription
=
function
(
text
){
const
newObject
=
new
Object_constructor
();
...
...
@@ -317,8 +343,7 @@ const createAnchorWithTextDescription=function(href,text){
};
const
aboutResource
=
function
(
target
){
if
(
isPrimitive
(
target
))
throw
valueIsPrimitiveError
(
target
);
target
.
type
=
"
document-fragment
"
;
returnOrThrowObjectType
(
target
).
type
=
"
document-fragment
"
;
target
.
children
=
[
createPWithTextDescription
(
"
Slides in XHTML
"
),
createPWithTextDescription
(
"
Author: Bright_Leader
"
),
...
...
@@ -400,8 +425,7 @@ function inputElement_classes(){
"
factory-date-
"
+
(
new
nDate
()
-
0
)
);
let
tempDocumentFragment
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
const
containerElement
=
createElement
(
"
div
"
);
...
...
@@ -430,7 +454,6 @@ const toPageEvent=function(num){
bwindow
.
console
.
log
(
localApplication
);
}
catch
(
_
){
/* */
}
}
tempFunction
=
null
;
return
;
};
...
...
@@ -456,14 +479,12 @@ const navigateButton=function(rightDirection){
click_eventKey
,
rightDirection
?
nextPageEvent
:
previousPageEvent
);
let
tempDocumentFragment
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
appendChildren
(
tempDocumentFragment
,
arrowSVG
(
rightDirection
)
);
appendChildren
(
newElement
,
tempDocumentFragment
);
tempDocumentFragment
=
null
;
return
newElement
;
};
...
...
@@ -477,14 +498,12 @@ const switchPageDiv=function(rightDirection,hideOnPortrait){
newElement
,
hideOnPortrait_classes
()
);
let
tempDocumentFragment
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
appendChildren
(
tempDocumentFragment
,
navigateButton
(
rightDirection
)
);
appendChildren
(
newElement
,
tempDocumentFragment
);
tempDocumentFragment
=
null
;
return
newElement
;
};
...
...
@@ -534,8 +553,7 @@ const pageNavigationBarDiv=function(hideOnPortrait){
newElement
,
hideOnPortrait_classes
()
);
let
tempDocumentFragment
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
appendChildren
(
tempDocumentFragment
,
spanWithTextAndLang
(
"
To page number:
\
x20
"
,
"
en
"
),
...
...
@@ -544,7 +562,6 @@ const pageNavigationBarDiv=function(hideOnPortrait){
navigateToPageInputNumber
()
);
appendChildren
(
newElement
,
tempDocumentFragment
);
tempDocumentFragment
=
null
;
return
newElement
;
};
...
...
@@ -567,7 +584,6 @@ const totalPageNumberInputText=function(){
isObjectType
(
tempValue
=
app
[
resources_key
])
)?
tempValue
.
length
:
"
?
"
);
tempValue
=
null
;
return
;
}
);
...
...
@@ -588,8 +604,7 @@ const totalPageNumberIndicatorBarDiv=function(hideOnPortrait){
newElement
,
hideOnPortrait_classes
()
);
let
tempDocumentFragment
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
appendChildren
(
tempDocumentFragment
,
spanWithTextAndLang
(
"
Total page number(s):
\
x20
"
,
"
en
"
),
...
...
@@ -598,7 +613,6 @@ const totalPageNumberIndicatorBarDiv=function(hideOnPortrait){
totalPageNumberInputText
()
);
appendChildren
(
newElement
,
tempDocumentFragment
);
tempDocumentFragment
=
null
;
return
newElement
;
};
...
...
@@ -614,8 +628,7 @@ const indicatorsDiv=function(isTop){
"
indicators
"
,
"
indicators-
"
+
(
isTop
?
"
top
"
:
"
bottom
"
)
);
let
tempDocumentFragment
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
appendChildren
(
tempDocumentFragment
,
switchPageDiv
(
False
,
False
),
...
...
@@ -627,7 +640,6 @@ const indicatorsDiv=function(isTop){
switchPageDiv
(
True
,
False
)
);
appendChildren
(
newElement
,
tempDocumentFragment
);
tempDocumentFragment
=
null
;
return
newElement
;
};
...
...
@@ -684,7 +696,6 @@ const quickNavigationDiv=function(isTop){
);
appendChildren
(
newElement
,
tempDocumentFragment
);
}
tempValue
=
tempDocumentFragment
=
null
;
return
;
}
);
...
...
@@ -729,10 +740,9 @@ appendChildren(
function
(){
const
newElement
=
createElement
(
"
div
"
);
smartAddClasses
(
newElement
,
"
padding-vertical-default
"
);
let
pageNumIndex
,
tempDocumentFragment
;
let
pageNumIndex
;
pageNumIndex
=-
1
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
appendChildren
(
tempDocumentFragment
,
navigateToPage_aboutApp
(
...
...
@@ -745,7 +755,6 @@ appendChildren(
)
);
appendChildren
(
newElement
,
tempDocumentFragment
);
pageNumIndex
=
tempDocumentFragment
=
null
;
return
newElement
;
}(),
containerElement
...
...
@@ -775,12 +784,15 @@ smartAddEventListener(
"
load
"
,
function
(){
const
temp
=
bwindow
.
config
;
Function_call
[
call_key
](
returnOrThrowFunction
(
localApplication
.
config
),
returnOrThrowFunction
(
localApplication
.
config
ure
),
localApplication
,
bwindow
.
config
temp
);
toPageEvent
(
localApplication
[
counter_key
]);
isObjectType
(
temp
)
&&
(
temp
.
app
=
localApplication
);
return
;
}
...
...
@@ -792,8 +804,6 @@ toPageEvent(localApplication[counter_key]);
appendChildren
(
newElement
,
tempDocumentFragment
);
tempDocumentFragment
=
null
;
return
newElement
;
};
}();
...
...
@@ -802,7 +812,7 @@ const arrayLikeEvery=returnOrThrowFunction(Bright.arrayLikeEvery),
getElementsByClassName
=
returnOrThrowFunction
(
DOMOperation
.
getElementsByClassName
),
replaceNode
=
returnOrThrowFunction
(
DOMOperation
.
replaceNode
);
const
bdocument
=
bwindow
.
document
;
const
bdocument
=
returnOrThrowObjectType
(
bwindow
.
document
)
;
const
callbackFn
=
function
(){
Function_call
[
call_key
](
...
...
@@ -830,30 +840,25 @@ useRequireJS?(
debugSwitch
&&
function
(){
let
tempDate
;
const
tempDate
=
new
nDate
()
;
const
bconsole
=
bwindow
.
console
;
try
{
bconsole
.
log
(
bwindow
);
bconsole
.
log
(
dependencies
);
bconsole
.
info
(
Bright
);
bconsole
.
info
(
DOMOperation
);
bconsole
.
info
(
Slides
);
bconsole
.
log
(
factory
);
bconsole
.
log
(
callbackFn
);
tempDate
=
new
nDate
();
bconsole
.
log
(
tempDate
);
bconsole
.
log
(
tempDate
+
""
);
bconsole
.
log
(
tempDate
-
0
);
}
catch
(
_
){
/* */
}
finally
{
tempDate
=
null
;
}
}
catch
(
_
){
/* */
}
return
;
}();
...
...
assets/js/stylesheets.js
浏览文件 @
76e83448
...
...
@@ -7,17 +7,44 @@
return
!
value
||
(
typeOfValue
!==
"
object
"
&&
typeOfValue
!==
typeFunction
);
};
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
value
+
"
\
x22 (type:
\
x20
"
+
(
value
!==
null
?
typeof
value
:
value
)
+
"
) is not an object type (an object or a function)!
"
);
}
if
(
isPrimitive
(
globalObject
))
throw
valueIsPrimitiveError
(
globalObject
);
const
returnOrThrowObjectType
=
function
(){
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
value
+
"
\
x22 (type:
\
x20
"
+
(
value
!==
null
?
typeof
value
:
value
)
+
"
) is not an object type (an object or a function)!
"
);
}
return
function
(
value
){
if
(
isPrimitive
(
value
))
throw
valueIsPrimitiveError
(
value
);
else
return
value
;
};
}();
returnOrThrowObjectType
(
globalObject
);
const
Object_constructor
=
{}.
constructor
;
const
tryES5CreateNullPrototypeObject
=
function
(){
const
create
=
Object_constructor
.
create
;
const
createIsFunction
=
typeof
create
===
typeFunction
;
return
function
(){
try
{
return
returnOrThrowObjectType
(
createIsFunction
&&
create
(
null
)
);
}
catch
(
_
){
return
new
Object_constructor
();
}
};
}();
const
dep0
=
"
Bright
"
,
dep1
=
"
DOMOperation
"
;
...
...
@@ -37,24 +64,23 @@
[
dep0
,
dep1
],
function
(){
const
args
=
arguments
;
return
execute
(
globalObject
,
{
"
Bright
"
:
args
[
0
],
"
DOMOperation
"
:
args
[
1
]
},
useRequireJS
);
const
dependencies
=
tryES5CreateNullPrototypeObject
();
let
index
;
index
=-
1
;
dependencies
[
dep0
]
=
args
[
index
+=
1
];
dependencies
[
dep1
]
=
args
[
index
+=
1
];
dependencies
.
define
=
define_
;
dependencies
.
requirejs
=
requirejs_
;
return
execute
(
globalObject
,
dependencies
,
useRequireJS
);
}
)
):
execute
(
globalObject
,
{
"
Bright
"
:
globalObject
[
dep0
],
"
DOMOperation
"
:
globalObject
[
dep1
]
},
useRequireJS
);
):
function
(){
const
dependencies
=
tryES5CreateNullPrototypeObject
();
dependencies
[
dep0
]
=
globalObject
[
dep0
];
dependencies
[
dep1
]
=
globalObject
[
dep1
];
execute
(
globalObject
,
dependencies
,
useRequireJS
);
return
;
}();
return
;
})(
this
,
...
...
@@ -64,6 +90,8 @@ function isPrimitive(value){
return
!
value
||
(
typeOfValue
!==
"
object
"
&&
typeOfValue
!==
"
function
"
);
}
const
returnOrThrowObjectType
=
function
(){
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
...
...
@@ -74,8 +102,14 @@ function valueIsPrimitiveError(value){
);
}
if
(
isPrimitive
(
bwindow
))
throw
valueIsPrimitiveError
(
bwindow
);
if
(
isPrimitive
(
dependencies
))
throw
valueIsPrimitiveError
(
dependencies
);
return
function
(
value
){
if
(
isPrimitive
(
value
))
throw
valueIsPrimitiveError
(
value
);
else
return
value
;
};
}();
returnOrThrowObjectType
(
bwindow
);
returnOrThrowObjectType
(
dependencies
);
function
isFunction
(
value
){
return
typeof
value
===
"
function
"
;
...
...
@@ -99,11 +133,8 @@ function notAFunctionError(value){
};
}();
const
Bright
=
dependencies
.
Bright
,
DOMOperation
=
dependencies
.
DOMOperation
;
if
(
isPrimitive
(
Bright
))
throw
valueIsPrimitiveError
(
Bright
);
if
(
isPrimitive
(
DOMOperation
))
throw
valueIsPrimitiveError
(
DOMOperation
);
const
Bright
=
returnOrThrowObjectType
(
dependencies
.
Bright
),
DOMOperation
=
returnOrThrowObjectType
(
dependencies
.
DOMOperation
);
const
constructor_key
=
"
constructor
"
,
prototype_key
=
"
prototype
"
,
...
...
@@ -118,7 +149,8 @@ const Function_call=Function_prototype[call_key];
const
createElement
=
returnOrThrowFunction
(
DOMOperation
.
createElement
),
smartSetDOMProperties
=
returnOrThrowFunction
(
DOMOperation
.
smartSetDOMProperties
),
appendChildren
=
returnOrThrowFunction
(
DOMOperation
.
appendChildren
),
createDocumentFragment
=
returnOrThrowFunction
(
DOMOperation
.
createDocumentFragment
);
createDocumentFragment
=
returnOrThrowFunction
(
DOMOperation
.
createDocumentFragment
),
arrayLikeMap
=
returnOrThrowFunction
(
Bright
.
arrayLikeMap
);
const
createStylesheet
=
function
(
path
){
const
newElement
=
createElement
(
"
link
"
);
...
...
@@ -131,19 +163,25 @@ const createStylesheet=function(path){
return
newElement
;
};
const
bdocument
=
bwindow
.
document
;
const
bdocument
=
returnOrThrowObjectType
(
bwindow
.
document
);
const
basePath
=
"
./static/css/
"
;
const
callbackFn
=
function
(){
let
tempDocumentFragment
;
tempDocumentFragment
=
createDocumentFragment
();
const
tempDocumentFragment
=
createDocumentFragment
();
appendChildren
(
tempDocumentFragment
,
createStylesheet
(
"
./static/css/pages
"
),
createStylesheet
(
"
./static/css/pages.css3
"
)
Function_call
[
call_key
](
arrayLikeMap
,
[
basePath
+
"
pages
"
,
basePath
+
"
pages.css3
"
],
createStylesheet
)
);
appendChildren
(
bdocument
.
head
,
tempDocumentFragment
);
tempDocumentFragment
=
null
;
return
;
};
...
...
static/js/Bright.js
浏览文件 @
76e83448
此差异已折叠。
点击以展开。
static/js/DOMOperation.js
浏览文件 @
76e83448
此差异已折叠。
点击以展开。
static/js/Slides.js
浏览文件 @
76e83448
/*!
Slides.js
date 168
6745986487 [Wed Jun 14 2023 20:33:06
GMT+0800 (China Standard Time)]
date 168
7522550870 [Fri Jun 23 2023 20:15:50
GMT+0800 (China Standard Time)]
(c) 2023 Bright_Leader
Licensed under the Apache-2.0.
dependenc(y/ies):
- Bright.js date >= 168
62265159
71
- DOMOperation.js date >= 168
6226584190
- Bright.js date >= 168
74856306
71
- DOMOperation.js date >= 168
7494211485
*/
(
function
exportFunction
(
globalObject
,
factory
){
"
use strict
"
;
/*
...
...
@@ -41,22 +41,30 @@ http://www.ecma-international.org/wp-content/uploads/ECMA-262_6th_edition_june_2
return
!
value
||
(
typeOfValue
!==
"
object
"
&&
typeOfValue
!==
typeFunction
);
};
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
value
+
"
\
x22 (type:
\
x20
"
+
(
value
!==
null
?
typeof
value
:
value
)
+
"
) is not an object type (an object or a function)!
"
);
}
const
returnOrThrowObjectType
=
function
(){
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
value
+
"
\
x22 (type:
\
x20
"
+
(
value
!==
null
?
typeof
value
:
value
)
+
"
) is not an object type (an object or a function)!
"
);
}
return
function
(
value
){
if
(
isPrimitive
(
value
))
throw
valueIsPrimitiveError
(
value
);
else
return
value
;
};
}();
if
(
isPrimitive
(
globalObject
))
throw
valueIsPrimitiveError
(
globalObject
);
returnOrThrowObjectType
(
globalObject
);
const
constructor_key
=
"
constructor
"
,
prototype_key
=
"
prototype
"
;
const
Function_constructor
=
valueIsPrimitiveError
[
constructor_key
],
const
Function_constructor
=
exportFunction
[
constructor_key
],
Object_constructor
=
{}[
constructor_key
];
const
Function_prototype
=
Function_constructor
[
prototype_key
],
...
...
@@ -68,7 +76,7 @@ http://www.ecma-international.org/wp-content/uploads/ECMA-262_6th_edition_june_2
Object_hasOwnProperty
=
Object_prototype
.
hasOwnProperty
;
const
relinquishFunction
=
function
(
item
,
key
,
target
){
if
(
isPrimitive
(
target
))
throw
valueIsPrimitiveError
(
target
);
returnOrThrowObjectType
(
target
);
let
targetOriginallyHasOwnTargetProperty
,
targetOriginalTargetPropertyValue
;
targetOriginallyHasOwnTargetProperty
=
Function_call
[
call_key
](
Object_hasOwnProperty
,
target
,
key
);
...
...
@@ -91,6 +99,23 @@ http://www.ecma-international.org/wp-content/uploads/ECMA-262_6th_edition_june_2
};
};
const
tryES5CreateNullPrototypeObject
=
function
(){
const
create
=
Object_constructor
.
create
;
const
createIsFunction
=
typeof
create
===
typeFunction
;
return
function
(){
try
{
return
returnOrThrowObjectType
(
createIsFunction
&&
create
(
null
)
);
}
catch
(
_
){
return
new
Object_constructor
();
}
};
}();
/* explicitly informs dependenc(y/ies) */
const
dep0
=
"
Bright
"
,
dep1
=
"
DOMOperation
"
;
...
...
@@ -98,7 +123,8 @@ http://www.ecma-international.org/wp-content/uploads/ECMA-262_6th_edition_june_2
const
name
=
"
Slides
"
;
const
relinquish_key
=
"
relinquish
"
,
useRequireJS_key
=
"
useRequireJS
"
;
useRequireJS_key
=
"
useRequireJS
"
,
isAsynchronous_key
=
"
isAsynchronous
"
;
/* eslint {
"no-undef": [
...
...
@@ -112,7 +138,8 @@ http://www.ecma-international.org/wp-content/uploads/ECMA-262_6th_edition_june_2
ESLint [ http://eslint.org/ ] configurations
*/
let
define_
;
let
define_
,
isAsynchronous
;
const
useRequireJS
=
(
typeof
define
===
typeFunction
&&
/* eslint-disable-line no-undef */
typeof
(
define_
=
define
)
===
typeFunction
&&
/* eslint-disable-line no-undef */
...
...
@@ -120,36 +147,38 @@ ESLint [ http://eslint.org/ ] configurations
!
isPrimitive
(
define_
.
amd
)
);
/* RequireJS included? [ http://requirejs.org/ ] (based on version 2.0.4 [ http://requirejs.org/docs/release/2.0.4/comments/require.js ] ) */
isAsynchronous
=
false
;
useRequireJS
?(
define_
(
[
dep0
,
dep1
],
function
(){
const
args
=
arguments
;
const
product
=
factory
(
{
"
Bright
"
:
args
[
0
],
"
DOMOperation
"
:
args
[
1
]
},
globalObject
);
const
dependencies
=
tryES5CreateNullPrototypeObject
();
let
index
;
index
=-
1
;
dependencies
[
dep0
]
=
args
[
index
+=
1
];
dependencies
[
dep1
]
=
args
[
index
+=
1
];
const
product
=
factory
(
dependencies
,
globalObject
);
product
[
relinquish_key
]
=
relinquishFunction
(
product
,
name
,
globalObject
);
product
[
useRequireJS_key
]
=
useRequireJS
;
product
[
isAsynchronous_key
]
=
isAsynchronous
;
name
in
globalObject
||
(
globalObject
[
name
]
=
product
);
return
product
;
}
)
):(
globalObject
[
name
]
=
function
(){
const
product
=
factory
(
{
"
Bright
"
:
globalObject
[
dep0
],
"
DOMOperation
"
:
globalObject
[
dep1
]
},
globalObject
);
const
dependencies
=
tryES5CreateNullPrototypeObject
();
dependencies
[
dep0
]
=
globalObject
[
dep0
];
dependencies
[
dep1
]
=
globalObject
[
dep1
];
const
product
=
factory
(
dependencies
,
globalObject
);
product
[
relinquish_key
]
=
relinquishFunction
(
product
,
name
,
globalObject
);
product
[
useRequireJS_key
]
=
useRequireJS
;
product
[
isAsynchronous_key
]
=
isAsynchronous
;
return
product
;
}());
isAsynchronous
=
true
;
return
;
})(
this
,
...
...
@@ -174,6 +203,8 @@ function isPrimitive(value){
return
!
value
||
(
typeOfValue
!==
"
object
"
&&
typeOfValue
!==
"
function
"
);
}
const
returnOrThrowObjectType
=
function
(){
function
valueIsPrimitiveError
(
value
){
return
(
"
\
x22
"
+
...
...
@@ -184,7 +215,13 @@ function valueIsPrimitiveError(value){
);
}
if
(
isPrimitive
(
dependencies
))
throw
valueIsPrimitiveError
(
dependencies
);
return
function
(
value
){
if
(
isPrimitive
(
value
))
throw
valueIsPrimitiveError
(
value
);
else
return
value
;
};
}();
returnOrThrowObjectType
(
dependencies
);
/* helper function(s) */
...
...
@@ -212,11 +249,8 @@ This functions comes in handy when checking foreign items from dependencies.
};
}();
const
Bright
=
dependencies
.
Bright
,
DOMOperation
=
dependencies
.
DOMOperation
;
if
(
isPrimitive
(
Bright
))
throw
valueIsPrimitiveError
(
Bright
);
if
(
isPrimitive
(
DOMOperation
))
throw
valueIsPrimitiveError
(
DOMOperation
);
const
Bright
=
returnOrThrowObjectType
(
dependencies
.
Bright
),
DOMOperation
=
returnOrThrowObjectType
(
dependencies
.
DOMOperation
);
function
isObjectType
(
value
){
const
typeOfValue
=
typeof
value
;
...
...
@@ -251,7 +285,7 @@ const defineProperty=Object_constructor.defineProperty;
const
definePropertyIsFunction
=
isFunction
(
defineProperty
);
return
function
(
target
,
propertyName
,
propertyValue
,
isWritable
,
isEnumerable
,
isConfigurable
){
if
(
isPrimitive
(
target
))
throw
valueIsPrimitiveError
(
target
);
returnOrThrowObjectType
(
target
);
definePropertyIsFunction
?
defineProperty
(
target
,
propertyName
,
...
...
@@ -270,7 +304,6 @@ const definePropertyIsFunction=isFunction(defineProperty);
function
getDefaultAllowedElementNames
(){
return
[
"
html
"
,
/* per http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd */
"
head
"
,
"
title
"
,
...
...
@@ -347,49 +380,7 @@ function getDefaultAllowedElementNames(){
"
col
"
,
"
tr
"
,
"
th
"
,
"
td
"
,
"
article
"
,
/* per http://html.spec.whatwg.org/multipage/indices.html#elements-3 */
"
aside
"
,
"
audio
"
,
"
bdi
"
,
"
canvas
"
,
"
data
"
,
"
datalist
"
,
"
details
"
,
"
dialog
"
,
"
embed
"
,
"
figcaption
"
,
"
figure
"
,
"
footer
"
,
"
header
"
,
"
hgroup
"
,
"
iframe
"
,
"
main
"
,
"
mark
"
,
"
math
"
,
"
menu
"
,
"
meter
"
,
"
nav
"
,
"
output
"
,
"
picture
"
,
"
progress
"
,
"
rp
"
,
"
rt
"
,
"
ruby
"
,
"
s
"
,
"
search
"
,
"
section
"
,
"
slot
"
,
"
source
"
,
"
summary
"
,
"
svg
"
,
"
template
"
,
"
time
"
,
"
track
"
,
"
u
"
,
"
video
"
,
"
wbr
"
"
td
"
];
}
...
...
@@ -443,7 +434,7 @@ function constructorRequireNewError(value){
return
function
constructorFn
(
configObject
){
const
self
=
this
;
if
(
!
(
self
instanceof
constructorFn
))
throw
constructorRequireNewError
(
constructorFn
);
if
(
isPrimitive
(
configObject
))
throw
valueIsPrimitiveError
(
configObject
);
returnOrThrowObjectType
(
configObject
);
let
i_var
,
len
,
j0
,
j1
;
for
(
...
...
@@ -481,7 +472,6 @@ function constructorRequireNewError(value){
True
,
False
,
True
);
i_var
=
len
=
j0
=
j1
=
null
;
return
self
;
};
}();
...
...
@@ -573,8 +563,8 @@ function isStringPrimitive(value){
const
createElementNS
=
function
(
namespaceURI
,
qualifiedName
){
const
args
=
arguments
;
let
newElement
,
i_var
,
len
,
j0
;
let
i_var
,
len
,
j0
,
newElement
;
if
(
bDocument_createElementNS_isFunction
){
i_var
=
namespaceURI
;
/* borrows this variable */
switch
(
True
){
...
...
@@ -598,7 +588,6 @@ const createElementNS=function(namespaceURI,qualifiedName){
isObjectType
(
j0
=
args
[
i_var
])
&&
(
i_var
%
2
===
0
?
smartSetDOMProperties
:
attributesSetter
)(
newElement
,
j0
)
);
i_var
=
len
=
j0
=
null
;
return
newElement
;
}
else
return
Function_call
[
call_key
](
/* fallback solution */
Function_apply
,
...
...
@@ -636,7 +625,7 @@ const setElementAttributeNS=function(targetElement,namespaceURI,qualifiedName,va
if
(
!
isElement
(
targetElement
))
throw
isNotAnElementError
(
targetElement
);
let
doesntNeedFallback
,
/* This is for checking whether fallback solution is needed. */
namespaceURI_repaired
;
label0
:
if
(
doesntNeedFallback
=
bElement_setAttributeNS_isFunction
){
/* eslint-disable-line no-cond-assign */
if
(
doesntNeedFallback
=
bElement_setAttributeNS_isFunction
){
/* eslint-disable-line no-cond-assign */
namespaceURI_repaired
=
namespaceURI
;
switch
(
True
){
case
isEmpty
(
qualifiedName
):
...
...
@@ -659,17 +648,15 @@ const setElementAttributeNS=function(targetElement,namespaceURI,qualifiedName,va
break
;
default
:
/* We can not handle this case. */
doesntNeedFallback
=
False
;
break
label0
;
}
}
Function_call
[
call_key
](
bElement_setAttributeNS
,
targetElement
,
namespaceURI_repaired
,
qualifiedName
,
value
);
}
(
doesntNeedFallback
||
doesntNeedFallback
?
Function_call
[
call_key
](
bElement_setAttributeNS
,
targetElement
,
namespaceURI_repaired
,
qualifiedName
,
value
):(
bElement_setAttribute_isFunction
&&
Function_call
[
call_key
](
bElement_setAttribute
,
targetElement
,
qualifiedName
,
value
)
);
doesntNeedFallback
=
namespaceURI_repaired
=
null
;
return
targetElement
;
};
...
...
@@ -704,7 +691,6 @@ so that we do not have to declare more vairables than we actually need.
}
}
}
i_var
=
len
=
j0
=
null
;
return
targetElement
;
};
...
...
@@ -821,7 +807,6 @@ const itemToElement=(function selfFn(item){
)
);
}
tempKey
=
j0
=
tempDocumentFragment
=
null
;
return
newNode
;
});
...
...
@@ -832,10 +817,9 @@ const Array_concat=Array_prototype.concat;
tryES5DefineProperty
(
Application_prototype
,
"
config
"
,
"
config
ure
"
,
function
(
configObject
){
const
self
=
this
;
if
(
isPrimitive
(
self
))
throw
valueIsPrimitiveError
(
self
);
const
self
=
returnOrThrowObjectType
(
this
);
if
(
isPrimitive
(
configObject
))
return
self
;
let
tempKey
,
tempValue
,
tempCondition0
;
/*
...
...
@@ -913,7 +897,6 @@ when the source object has a desired value.
True
,
True
,
True
)
);
tempKey
=
tempValue
=
tempCondition0
=
null
;
return
self
;
},
...
...
@@ -928,8 +911,7 @@ tryES5DefineProperty(
"
navigate
"
,
function
(
num
){
const
self
=
this
;
if
(
isPrimitive
(
self
))
throw
valueIsPrimitiveError
(
self
);
const
self
=
returnOrThrowObjectType
(
this
);
let
i_var
,
j0
,
j1
,
tempDocumentFragment
;
(
...
...
@@ -976,7 +958,6 @@ tryES5DefineProperty(
True
,
True
,
True
);
}
i_var
=
j0
=
j1
=
tempDocumentFragment
=
null
;
return
self
;
},
...
...
@@ -1009,7 +990,7 @@ function sharedKeys(){
function
sharedValues
(){
return
[
"
Bright_Leader
"
,
168
6745986487
168
7522550870
];
}
...
...
user/slides-config.js
浏览文件 @
76e83448
...
...
@@ -558,6 +558,107 @@ object.resources=[
}
]
},
{
type
:
"
document-fragment
"
,
children
:[
{
type
:
"
element
"
,
name
:
"
p
"
,
props
:{
lang
:
"
en
"
},
children
:[
{
type
:
"
text
"
,
text
:
"
You can navigate to custom slide page as you wish.
"
}
]
},
{
type
:
"
element
"
,
name
:
"
div
"
,
children
:[
{
type
:
"
element
"
,
name
:
"
input
"
,
props
:{
type
:
"
button
"
,
value
:
"
to front cover
"
},
style
:{
fontFamily
:
"
inherit
"
},
on
:{
click
:
function
(){
object
.
app
.
navigate
(
0
);
return
;
}
}
},
{
type
:
"
element
"
,
name
:
"
input
"
,
props
:{
type
:
"
button
"
,
value
:
"
to previous page
"
},
style
:{
fontFamily
:
"
inherit
"
},
on
:{
click
:
function
(){
var
app
=
object
.
app
;
app
.
navigate
(
app
.
counter
-
1
);
return
;
}
}
},
{
type
:
"
element
"
,
name
:
"
input
"
,
props
:{
type
:
"
button
"
,
value
:
"
to next page
"
},
style
:{
fontFamily
:
"
inherit
"
},
on
:{
click
:
function
(){
var
app
=
object
.
app
;
app
.
navigate
(
app
.
counter
+
1
);
return
;
}
}
},
{
type
:
"
element
"
,
name
:
"
input
"
,
props
:{
type
:
"
button
"
,
value
:
"
to last page
"
},
style
:{
fontFamily
:
"
inherit
"
},
on
:{
click
:
function
(){
var
app
=
object
.
app
;
app
.
navigate
(
app
.
resources
.
length
-
1
);
return
;
}
}
}
]
}
]
},
{
type
:
"
element
"
,
name
:
"
div
"
,
...
...
@@ -824,10 +925,10 @@ object.resources=[
}
];
object
.
moreAllowedElementNames
=
[
"
rect
"
,
"
polygon
"
,
"
polyline
"
];
object
.
moreAllowedElementNames
=
[
"
svg
"
,
"
rect
"
,
"
polygon
"
,
"
polyline
"
];
object
.
author
=
"
Bright_Leader
"
;
object
.
date
=
168
6750902249
;
object
.
date
=
168
7531568457
;
return
object
;
}({},
this
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录