Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
18bca51b
Commit
18bca51b
authored
Sep 07, 2015
by
Stephen McKamey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerated static files.
parent
41a65078
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
examples/duel/www/cdn/3aba0c24fc2dfb2ef530691bf611672891b75c6d.js
.../duel/www/cdn/3aba0c24fc2dfb2ef530691bf611672891b75c6d.js
+4
-4
examples/duel/www/index.html
examples/duel/www/index.html
+1
-1
No files found.
examples/duel/www/cdn/
15eb29cf958c6239f5659fd203f96a63f9475655
.js
→
examples/duel/www/cdn/
3aba0c24fc2dfb2ef530691bf611672891b75c6d
.js
View file @
18bca51b
/*
DUEL v0.9.
6
http://duelengine.org
DUEL v0.9.
7
http://duelengine.org
Copyright (c)2006-2012 Stephen M. McKamey.
Licensed under The MIT License.
*/
var
duel
=
function
(
m
,
C
,
D
){
function
y
(
a
){
this
.
value
=
a
}
function
l
(
a
){
return
"
function
"
===
typeof
a
}
function
k
(
a
){
switch
(
typeof
a
){
case
"
object
"
:
return
!
a
?
0
:
z
(
a
)?
2
:
a
instanceof
y
?
5
:
a
instanceof
Date
?
4
:
3
;
case
"
function
"
:
return
1
;
case
"
undefined
"
:
return
0
;
default
:
return
4
}}
function
p
(
a
){
z
(
a
)
||
(
a
=
[
""
,
a
]);
this
.
value
=
a
}
function
r
(
a
,
b
){
switch
(
k
(
b
)){
case
2
:
if
(
""
===
b
[
0
])
for
(
var
d
=
1
,
f
=
b
.
length
;
d
<
f
;
d
++
)
r
(
a
,
b
[
d
]);
else
a
.
push
(
b
);
break
;
case
3
:
if
(
1
===
a
.
length
)
a
.
push
(
b
);
else
if
(
d
=
a
[
1
],
3
===
k
(
d
))
for
(
f
in
b
)
b
.
hasOwnProperty
(
f
)
&&
(
d
[
f
]
=
b
[
f
]);
else
a
.
splice
(
1
,
0
,
b
);
break
;
case
4
:
""
!==
b
&&
(
b
=
""
+
b
,
d
=
a
.
length
-
1
,
0
<
d
&&
4
===
k
(
a
[
d
])?
a
[
d
]
+=
b
:
a
.
push
(
b
));
break
;
case
0
:
break
;
default
:
a
.
push
(
b
)}}
function
s
(
a
,
b
,
d
,
f
,
c
,
e
){
var
g
=
3
===
k
(
a
[
1
]);
if
(
a
.
length
===
(
g
?
3
:
2
))
return
n
(
a
[
a
.
length
-
1
],
b
,
d
,
f
,
c
,
e
);
for
(
var
h
=
[
""
],
g
=
g
?
2
:
1
,
j
=
a
.
length
;
g
<
j
;
g
++
)
r
(
h
,
n
(
a
[
g
],
b
,
d
,
f
,
c
,
e
));
return
h
}
function
E
(
a
,
b
,
d
,
f
,
c
,
e
){
for
(
var
g
=
1
,
h
=
a
.
length
;
g
<
h
;
g
++
){
var
j
=
a
[
g
],
i
=
j
[
1
].
test
;
if
(
3
===
k
(
j
[
1
])
&&
i
&&
(
l
(
i
)
&&
(
i
=
i
(
b
,
d
,
f
,
c
)),
!
i
))
continue
;
return
s
(
j
,
b
,
d
,
f
,
c
,
e
)}
return
null
}
function
q
(){
this
.
value
=
q
.
FAST
?
""
:[]}
function
O
(
a
){
if
(
"
string
"
!==
typeof
a
)
return
null
!==
a
&&
a
!==
D
?
""
+
a
:
""
;
var
b
=
{
"
&
"
:
"
&
"
,
"
<
"
:
"
<
"
,
"
>
"
:
"
>
"
};
return
a
.
replace
(
/
[
&<>
]
/g
,
function
(
a
){
return
b
[
a
]
||
a
})}
function
P
(
a
){
if
(
"
string
"
!==
typeof
a
)
return
null
!==
a
&&
a
!==
D
?
""
+
a
:
""
;
var
b
=
{
"
&
"
:
"
&
"
,
"
<
"
:
"
<
"
,
"
>
"
:
"
>
"
,
'
"
'
:
"
"
"
};
return
a
.
replace
(
/
[
&<>"
]
/g
,
function
(
a
){
return
b
[
a
]
||
a
})}
function
F
(
a
,
b
){
var
d
=
b
[
0
]
||
""
,
f
=
b
.
length
,
c
=
1
,
e
,
g
=
Q
[
d
];
if
(
"
!
"
===
d
.
charAt
(
0
))
"
!
DOCTYPE
"
===
b
[
0
]?
a
.
append
(
"
<!DOCTYPE
"
,
b
[
1
],
"
>
"
):
a
.
append
(
"
<
\
!--
"
,
b
[
1
]
,
"
--
\
>
"
);
else
{
if
(
d
){
a
.
append
(
"
<
"
,
d
);
e
=
b
[
c
];
if
(
3
===
k
(
e
)){
for
(
var
h
in
e
)
if
(
e
.
hasOwnProperty
(
h
)){
var
j
=
e
[
h
];
if
(
G
[
h
.
toLowerCase
()])
if
(
j
)
j
=
h
;
else
continue
;
0
!==
k
(
j
)
&&
(
a
.
append
(
"
"
,
h
),
a
.
append
(
'
="
'
,
P
(
j
),
'
"
'
))}
c
++
}
g
&&
a
.
append
(
"
/
"
);
a
.
append
(
"
>
"
)}
for
(;
c
<
f
;
c
++
)
e
=
b
[
c
],
z
(
e
)?
F
(
a
,
e
):
a
.
append
(
O
(
e
));
d
&&!
g
&&
a
.
append
(
"
</
"
,
d
,
"
>
"
);
return
a
}}
function
H
(
a
){
try
{
return
F
(
new
q
,
a
).
toString
()}
catch
(
b
){
return
a
=
v
(
b
),
a
instanceof
p
?
H
(
a
.
value
):
""
+
a
}}
function
t
(
a
){
if
(
a
){
if
(
"
!
"
===
a
.
charAt
(
0
))
return
m
.
createComment
(
"
!
"
===
a
?
""
:
a
.
substr
(
1
)
+
"
"
)}
else
{
if
(
m
.
createDocumentFragment
)
return
m
.
createDocumentFragment
();
a
=
""
}
return
"
style
"
===
a
.
toLowerCase
()
&&
m
.
createStyleSheet
?
m
.
createStyleSheet
():
m
.
createElement
(
a
)}
function
w
(
a
,
b
){
if
(
b
){
var
d
=
(
a
.
tagName
||
""
).
toLowerCase
();
if
(
8
===
a
.
nodeType
)
3
===
b
.
nodeType
&&
(
a
.
nodeValue
+=
b
.
nodeValue
);
else
if
(
"
table
"
===
d
&&
a
.
tBodies
)
if
(
b
.
tagName
)
if
((
d
=
b
.
tagName
.
toLowerCase
())
&&
"
tbody
"
!==
d
&&
"
thead
"
!==
d
){
var
f
=
0
<
a
.
tBodies
.
length
?
a
.
tBodies
[
a
.
tBodies
.
length
-
1
]:
null
;
f
||
(
f
=
t
(
"
th
"
===
d
?
"
thead
"
:
"
tbody
"
),
a
.
appendChild
(
f
));
q
.
FAST
?
""
:[]}
function
O
(
a
){
if
(
"
string
"
!==
typeof
a
)
return
null
!==
a
&&
a
!==
D
?
""
+
a
:
""
;
var
b
=
{
"
&
"
:
"
&
"
,
"
<
"
:
"
<
"
,
"
>
"
:
"
>
"
};
return
a
.
replace
(
/
[
&<>
]
/g
,
function
(
a
){
return
b
[
a
]
||
a
})}
function
P
(
a
){
if
(
"
string
"
!==
typeof
a
)
return
null
!==
a
&&
a
!==
D
?
""
+
a
:
""
;
var
b
=
{
"
&
"
:
"
&
"
,
"
<
"
:
"
<
"
,
"
>
"
:
"
>
"
,
'
"
'
:
"
"
"
};
return
a
.
replace
(
/
[
&<>"
]
/g
,
function
(
a
){
return
b
[
a
]
||
a
})}
function
F
(
a
,
b
){
var
d
=
b
[
0
]
||
""
,
f
=
b
.
length
,
c
=
1
,
e
,
g
=
Q
[
d
];
if
(
"
!
"
===
d
.
charAt
(
0
))
"
!
doctype
"
===
b
[
0
].
toLowerCase
()?
a
.
append
(
"
<!doctype
"
,
b
[
1
],
"
>
"
):
a
.
append
(
"
<
\
!--
"
,
b
[
1
],
"
--
\
>
"
);
else
{
if
(
d
){
a
.
append
(
"
<
"
,
d
);
e
=
b
[
c
];
if
(
3
===
k
(
e
)){
for
(
var
h
in
e
)
if
(
e
.
hasOwnProperty
(
h
)){
var
j
=
e
[
h
];
if
(
G
[
h
.
toLowerCase
()])
if
(
j
)
j
=
h
;
else
continue
;
0
!==
k
(
j
)
&&
(
a
.
append
(
"
"
,
h
),
a
.
append
(
'
="
'
,
P
(
j
),
'
"
'
))}
c
++
}
g
&&
a
.
append
(
"
/
"
);
a
.
append
(
"
>
"
)}
for
(;
c
<
f
;
c
++
)
e
=
b
[
c
],
z
(
e
)?
F
(
a
,
e
):
a
.
append
(
O
(
e
));
d
&&!
g
&&
a
.
append
(
"
</
"
,
d
,
"
>
"
);
return
a
}}
function
H
(
a
){
try
{
return
F
(
new
q
,
a
).
toString
()}
catch
(
b
){
return
a
=
v
(
b
),
a
instanceof
p
?
H
(
a
.
value
):
""
+
a
}}
function
t
(
a
){
if
(
a
){
if
(
"
!
"
===
a
.
charAt
(
0
))
return
m
.
createComment
(
"
!
"
===
a
?
"
"
:
a
.
substr
(
1
)
+
"
"
)}
else
{
if
(
m
.
createDocumentFragment
)
return
m
.
createDocumentFragment
();
a
=
""
}
return
"
style
"
===
a
.
toLowerCase
()
&&
m
.
createStyleSheet
?
m
.
createStyleSheet
():
m
.
createElement
(
a
)}
function
w
(
a
,
b
){
if
(
b
){
var
d
=
(
a
.
tagName
||
""
).
toLowerCase
();
if
(
8
===
a
.
nodeType
)
3
===
b
.
nodeType
&&
(
a
.
nodeValue
+=
b
.
nodeValue
);
else
if
(
"
table
"
===
d
&&
a
.
tBodies
)
if
(
b
.
tagName
)
if
((
d
=
b
.
tagName
.
toLowerCase
())
&&
"
tbody
"
!==
d
&&
"
thead
"
!==
d
){
var
f
=
0
<
a
.
tBodies
.
length
?
a
.
tBodies
[
a
.
tBodies
.
length
-
1
]:
null
;
f
||
(
f
=
t
(
"
th
"
===
d
?
"
thead
"
:
"
tbody
"
),
a
.
appendChild
(
f
));
f
.
appendChild
(
b
)}
else
!
1
!==
a
.
canHaveChildren
&&
a
.
appendChild
(
b
);
else
{
if
(
11
===
b
.
nodeType
)
for
(;
b
.
firstChild
;)
w
(
a
,
b
.
removeChild
(
b
.
firstChild
))}
else
if
(
"
style
"
===
d
&&
m
.
createStyleSheet
)
a
.
cssText
=
b
;
else
if
(
!
1
!==
a
.
canHaveChildren
)
a
.
appendChild
(
b
);
else
if
(
"
object
"
===
d
&&
b
.
tagName
&&
"
param
"
===
b
.
tagName
.
toLowerCase
()){
try
{
a
.
appendChild
(
b
)}
catch
(
c
){}
try
{
a
.
object
&&
(
a
.
object
[
b
.
name
]
=
b
.
value
)}
catch
(
e
){}}}}
function
I
(
a
,
b
,
d
){
"
on
"
===
b
.
substr
(
0
,
2
)
&&
(
b
=
b
.
substr
(
2
));
switch
(
typeof
d
){
case
"
function
"
:
if
(
a
.
addEventListener
)
a
.
addEventListener
(
b
,
d
,
!
1
);
else
if
(
l
(
window
.
jQuery
)
&&
0
!==
k
(
a
[
b
]))
if
(
a
=
window
.
jQuery
(
a
),
l
(
a
.
on
))
a
.
on
(
b
,
d
);
else
a
.
bind
(
b
,
d
);
else
if
(
a
.
attachEvent
&&
0
!==
k
(
a
[
b
]))
a
.
attachEvent
(
"
on
"
+
b
,
d
);
else
{
var
f
=
a
[
"
on
"
+
b
]
||
a
[
b
];
a
[
"
on
"
+
b
]
=
a
[
b
]
=!
l
(
f
)?
d
:
function
(
a
){
return
!
1
!==
f
.
call
(
this
,
a
)
&&!
1
!==
d
.
call
(
this
,
a
)}}
break
;
case
"
string
"
:
a
[
"
on
"
+
b
]
=
new
Function
(
"
event
"
,
d
)}}
function
J
(
a
){
return
!!
a
&&
3
===
a
.
nodeType
&&
(
!
a
.
nodeValue
||!
/
\S
/
.
exec
(
a
.
nodeValue
))}
function
K
(
a
,
b
){
a
&&
(
3
===
a
.
nodeType
&&
b
.
exec
(
a
.
nodeValue
))
&&
(
a
.
nodeValue
=
a
.
nodeValue
.
replace
(
b
,
""
))}
function
A
(
a
){
if
(
a
){
for
(;
J
(
a
.
firstChild
);)
a
.
removeChild
(
a
.
firstChild
);
for
(
K
(
a
.
firstChild
,
R
);
J
(
a
.
lastChild
);)
a
.
removeChild
(
a
.
lastChild
);
K
(
a
.
lastChild
,
S
)}}
function
L
(
a
,
b
){
var
d
=
a
[
b
];
if
(
d
){
try
{
delete
a
[
b
]}
catch
(
f
){
try
{
a
[
b
]
=
""
,
a
.
removeAttribute
(
b
)}
catch
(
c
){}}
if
(
!
l
(
d
))
try
{
d
=
new
Function
(
""
+
d
)}
catch
(
e
){
d
=
null
}}
return
d
}
function
M
(
a
){
if
(
a
){
var
b
=
L
(
a
,
"
$init
"
);
b
&&
b
.
call
(
a
);(
b
=
L
(
a
,
"
$load
"
))?
setTimeout
(
function
(){
b
.
call
(
a
);
b
=
a
=
null
},
0
):
b
=
a
=
null
}}
function
N
(
a
,
b
){
for
(
var
d
=
1
,
f
=
b
.
length
;
d
<
f
;
d
++
){
var
c
=
b
[
d
];
switch
(
k
(
c
)){
case
2
:
var
e
=
...
...
examples/duel/www/index.html
View file @
18bca51b
...
...
@@ -12,7 +12,7 @@
<p>
Ported to
<a
href=
"http://duelengine.org"
>
DUEL
</a>
by
<a
href=
"http://mck.me"
>
Stephen McKamey
</a></p>
<p>
Part of
<a
href=
"http://todomvc.com"
>
TodoMVC
</a></p>
</footer>
<script
src=
"./cdn/
15eb29cf958c6239f5659fd203f96a63f9475655
.js"
></script>
<script
src=
"./cdn/
3aba0c24fc2dfb2ef530691bf611672891b75c6d
.js"
></script>
</body>
</html>
\ No newline at end of file
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