Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Store
Commits
422fade2
Commit
422fade2
authored
Nov 24, 2012
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
download
parent
8713edf7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
373 additions
and
98 deletions
+373
-98
.gitattributes
.gitattributes
+1
-13
assets/javascripts/mycard.coffee
assets/javascripts/mycard.coffee
+19
-0
assets/javascripts/mycard.js
assets/javascripts/mycard.js
+30
-0
index.html
index.html
+85
-85
vendor/fonts/nunito.woff
vendor/fonts/nunito.woff
+0
-0
vendor/javascripts/jquery.cycle.lite.js
vendor/javascripts/jquery.cycle.lite.js
+232
-0
vendor/stylesheets/nunito.css
vendor/stylesheets/nunito.css
+6
-0
No files found.
.gitattributes
View file @
422fade2
# Auto detect text files and perform LF normalization
* text=auto
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
* text=auto
\ No newline at end of file
assets/javascripts/mycard.coffee
0 → 100644
View file @
422fade2
$
(
document
).
ready
->
#slider
$
(
'#slider'
).
cycle
fx
:
'fade'
timeout
:
7200
random
:
1
$
.
get
'https://api.github.com/repos/zh99998/mycard/downloads'
,
(
data
)
->
for
download
in
data
if
v
=
download
.
name
.
match
(
/mycard-(.*)-win32\.7z/
)
if
!
version
or
v
[
1
]
>
version
version
=
v
[
1
]
url
=
download
.
html_url
if
version
$
(
'#download_url'
).
attr
'href'
,
url
$
(
'#download_version'
).
html
version
else
$
(
'#download_version'
).
html
'读取失败'
\ No newline at end of file
assets/javascripts/mycard.js
0 → 100644
View file @
422fade2
// Generated by CoffeeScript 1.4.0
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
'
#slider
'
).
cycle
({
fx
:
'
fade
'
,
timeout
:
7200
,
random
:
1
});
return
$
.
get
(
'
https://api.github.com/repos/zh99998/mycard/downloads
'
,
function
(
data
)
{
var
download
,
url
,
v
,
version
,
_i
,
_len
;
for
(
_i
=
0
,
_len
=
data
.
length
;
_i
<
_len
;
_i
++
)
{
download
=
data
[
_i
];
if
(
v
=
download
.
name
.
match
(
/mycard-
(
.*
)
-win32
\.
7z/
))
{
if
(
!
version
||
v
[
1
]
>
version
)
{
version
=
v
[
1
];
url
=
download
.
html_url
;
}
}
}
if
(
version
)
{
$
(
'
#download_url
'
).
attr
(
'
href
'
,
url
);
return
$
(
'
#download_version
'
).
html
(
version
);
}
else
{
return
$
(
'
#download_version
'
).
html
(
'
读取失败
'
);
}
});
});
}).
call
(
this
);
index.html
View file @
422fade2
<!DOCTYPE html>
<head>
<meta
charset=
"UTF-8"
>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"
type=
"text/javascript"
></script>
<script
src=
"http://malsup.github.com/jquery.cycle.lite.js"
type=
"text/javascript"
></script>
<script
src=
"assets/javascripts/dropdown.js"
type=
"text/javascript"
></script>
<link
href=
'http://fonts.googleapis.com/css?family=Nunito:700'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
"assets/stylesheets/mycard.css"
media=
"screen"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"assets/stylesheets/dropdown.css"
media=
"screen"
rel=
"stylesheet"
type=
"text/css"
/>
<title>
Mycard - 萌卡
</title>
<script
type=
"text/javascript"
>
jQuery
(
document
).
ready
(
function
(
$
)
{
$
(
'
#slider
'
).
cycle
({
fx
:
'
fade
'
,
//特效 speed: 7500,
timeout
:
7200
,
random
:
1
});
});
</script>
<meta
charset=
"UTF-8"
>
<script
src=
"/vendor/javascripts/modernizr-2.6.2.min.js"
></script>
<script
src=
"/vendor/javascripts/jquery-1.8.2.min.js"
type=
"text/javascript"
></script>
<script
src=
"/vendor/javascripts/jquery.cycle.lite.js"
type=
"text/javascript"
></script>
<script
src=
"/assets/javascripts/dropdown.js"
type=
"text/javascript"
></script>
<script
src=
"/assets/javascripts/mycard.js"
type=
"text/javascript"
></script>
<link
href=
'/vendor/stylesheets/nunito.css'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
"/assets/stylesheets/mycard.css"
media=
"screen"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"/assets/stylesheets/dropdown.css"
media=
"screen"
rel=
"stylesheet"
type=
"text/css"
/>
<title>
Mycard - 萌卡
</title>
</head>
<body>
<header>
<header>
<nav
id=
"nav"
>
<a
class=
"nav_logo"
>
MyCard
</a>
<a
class=
"nav_logo"
>
MyCard
</a>
<ul
class=
"menu"
id=
"menu"
>
<li><a
href=
"/rooms"
class=
"nav_link"
>
在线大厅
</a></li>
<li><a
href=
"/users"
class=
"nav_link"
>
竞技场
</a>
<ul>
<li><a
href=
"/users"
class=
"nav_sub"
>
排行榜
</a></li>
<li><a
href=
"/duels"
class=
"nav_sub"
>
决斗记录
</a></li>
<li><a
href=
"/login"
class=
"nav_sub"
>
我的中心
</a></li>
</ul>
</li>
<ul
class=
"menu"
id=
"menu"
>
<li><a
href=
"/rooms"
class=
"nav_link"
>
在线大厅
</a></li>
<li><a
href=
"/users"
class=
"nav_link"
>
竞技场
</a>
<ul>
<li><a
href=
"/users"
class=
"nav_sub"
>
排行榜
</a></li>
<li><a
href=
"/duels"
class=
"nav_sub"
>
决斗记录
</a></li>
<li><a
href=
"/login"
class=
"nav_sub"
>
我的中心
</a></li>
</ul>
</li>
<li>
<a
href=
"/decks"
class=
"nav_link"
>
卡组统计
</a>
<ul>
<li><a
href=
"/decks"
class=
"nav_sub"
>
卡组排行
</a></li>
<li><a
href=
"/cards"
class=
"nav_sub"
>
单卡排行
</a></li>
</ul>
</li>
<li><a
href=
"/boards"
class=
"nav_link"
>
论坛
</a></li>
<li>
<a
href=
"http://www.duelist.cn/"
class=
"nav_link"
>
《DUELIST》
</a>
<ul>
<li><a
href=
"http://www.duelist.cn/vol.1/"
class=
"nav_sub"
>
第一期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.2/"
class=
"nav_sub"
>
第二期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.3/"
class=
"nav_sub"
>
第三期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.4/"
class=
"nav_sub"
>
第四期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.5/"
class=
"nav_sub"
>
第五期
</a></li>
<li><a
href=
"http://www.duelist.cn/sp1/"
class=
"nav_sub"
>
SP1
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.6/"
class=
"nav_sub"
>
第六期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.7/"
class=
"nav_sub"
>
第七期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.8/"
class=
"nav_sub"
>
第八期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.9/"
class=
"nav_sub"
>
第⑨期
</a></li>
</ul>
</li>
</ul>
<script
type=
"text/javascript"
>
var
menu
=
new
menu
.
dd
(
"
menu
"
);
menu
.
init
(
"
menu
"
,
"
menuhover
"
);
</script>
<li>
<a
href=
"/decks"
class=
"nav_link"
>
卡组统计
</a>
<ul>
<li><a
href=
"/decks"
class=
"nav_sub"
>
卡组排行
</a></li>
<li><a
href=
"/cards"
class=
"nav_sub"
>
单卡排行
</a></li>
</ul>
</li>
<li><a
href=
"/boards"
class=
"nav_link"
>
论坛
</a></li>
<li>
<a
href=
"http://www.duelist.cn/"
class=
"nav_link"
>
《DUELIST》
</a>
<ul>
<li><a
href=
"http://www.duelist.cn/vol.1/"
class=
"nav_sub"
>
第一期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.2/"
class=
"nav_sub"
>
第二期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.3/"
class=
"nav_sub"
>
第三期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.4/"
class=
"nav_sub"
>
第四期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.5/"
class=
"nav_sub"
>
第五期
</a></li>
<li><a
href=
"http://www.duelist.cn/sp1/"
class=
"nav_sub"
>
SP1
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.6/"
class=
"nav_sub"
>
第六期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.7/"
class=
"nav_sub"
>
第七期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.8/"
class=
"nav_sub"
>
第八期
</a></li>
<li><a
href=
"http://www.duelist.cn/vol.9/"
class=
"nav_sub"
>
第⑨期
</a></li>
</ul>
</li>
</ul>
<script
type=
"text/javascript"
>
var
menu
=
new
menu
.
dd
(
"
menu
"
);
menu
.
init
(
"
menu
"
,
"
menuhover
"
);
</script>
</nav>
</header>
<div
id=
"main"
>
</header>
<div
id=
"main"
>
<div
id=
"main_sub"
>
<div
id=
"information"
>
<div>
<a
class=
"title"
>
Mycard
</a>
<a
class=
"subtitle"
>
萌卡
</a>
</br>
<a
class=
"subinc"
>
mycard现已停止运营,以后可能复活哦~☆
</a>
<div
id=
"download"
>
<a
href=
"http://s-34989.gotocdn.com:7922"
class=
"download_active"
>
立即下载
</a>
<a
class=
"download_information"
href=
"http://kaibacorporation.org/"
>
English version
</a>
</div>
<div
id=
"information"
>
<div>
<a
class=
"title"
>
Mycard
</a>
<a
class=
"subtitle"
>
萌卡
</a>
</br>
<a
class=
"subinc"
>
复活倒计时~☆
</a>
<div
id=
"download"
>
<a
id=
"download_url"
href=
"#"
class=
"download_active"
>
立即下载
</a>
<a
class=
"download_information"
>
最新版本:
<span
id=
"download_version"
>
Loading...
</span></a>
</div>
</div>
</div>
<div
id=
"slider"
>
<div
class=
"show1"
></div>
<div
class=
"show2"
></div>
<div
class=
"show3"
></div>
</div>
</div>
<div
id=
"slider"
>
<div
class=
"show1"
></div>
<div
class=
"show2"
></div>
<div
class=
"show3"
></div>
</div>
</div>
</div>
<footer>
</div>
<footer>
<div
id=
"footer1"
>
<h2>
其他服务
</h2>
<a
href=
"mailto:zh99998@gmail.com"
>
联系作者
</a>
<h2>
其他服务
</h2>
<a
href=
"mailto:zh99998@gmail.com"
>
联系作者
</a>
</div>
<div
id=
"footer2"
>
<h2>
合作伙伴
</h2>
<a
href=
"http://fh-sky.5d6d.com/"
><img
alt=
"游戏王-凤凰(FH)战队"
height=
"31"
src=
"/images/links/fh.jpg"
width=
"88"
/></a><a
href=
"http://www.ocgsoft.cn/"
><img
alt=
"中国OCG工作室"
height=
"31"
src=
"http://www.ocgsoft.cn/s/themes/default/images/pic/footer_logo.jpg"
width=
"88"
/></a><a
href=
"http://www.ygopro-ocg.com/"
><img
alt=
"游戏王YGOCORE-享受自动的轻松"
height=
"31"
src=
"http://www.ygopro-ocg.com/logo.gif"
width=
"88"
/></a><a
href=
"http://www.66rpg.com/"
><img
alt=
"66RPG"
height=
"31"
src=
"http://bbs.66rpg.com/logo.gif"
width=
"88"
/></a>
<h2>
合作伙伴
</h2>
<a
href=
"http://fh-sky.5d6d.com/"
><img
alt=
"游戏王-凤凰(FH)战队"
height=
"31"
src=
"/images/links/fh.jpg"
width=
"88"
/></a><a
href=
"http://www.ocgsoft.cn/"
><img
alt=
"中国OCG工作室"
height=
"31"
src=
"http://www.ocgsoft.cn/s/themes/default/images/pic/footer_logo.jpg"
width=
"88"
/></a><a
href=
"http://www.ygopro-ocg.com/"
><img
alt=
"游戏王YGOCORE-享受自动的轻松"
height=
"31"
src=
"http://www.ygopro-ocg.com/logo.gif"
width=
"88"
/></a><a
href=
"http://www.66rpg.com/"
><img
alt=
"66RPG"
height=
"31"
src=
"http://bbs.66rpg.com/logo.gif"
width=
"88"
/></a>
</div>
<div
id=
"footer3"
>
<h2>
许可协议
</h2>
<a
rel=
"license"
href=
"http://creativecommons.org/licenses/by-nc-sa/3.0/cn/"
><img
alt=
"知识共享许可协议"
style=
"border-width:0"
src=
"http://i.creativecommons.org/l/by-nc-sa/3.0/cn/88x31.png"
/></a>
<a
rel=
"license"
href=
"http://www.gnu.org/licenses/gpl-3.0.html"
><img
alt=
"GNU GPL"
style=
"border-width:0"
src=
"http://gplv3.fsf.org/gplv3-88x31.png"
/></a>
<h2>
许可协议
</h2>
<a
rel=
"license"
href=
"http://creativecommons.org/licenses/by-nc-sa/3.0/cn/"
><img
alt=
"知识共享许可协议"
style=
"border-width:0"
src=
"http://i.creativecommons.org/l/by-nc-sa/3.0/cn/88x31.png"
/></a>
<a
rel=
"license"
href=
"http://www.gnu.org/licenses/gpl-3.0.html"
><img
alt=
"GNU GPL"
style=
"border-width:0"
src=
"http://gplv3.fsf.org/gplv3-88x31.png"
/></a>
</div>
</footer>
</footer>
<script>
</script>
</body>
</html>
\ No newline at end of file
vendor/fonts/nunito.woff
0 → 100644
View file @
422fade2
File added
vendor/javascripts/jquery.cycle.lite.js
0 → 100644
View file @
422fade2
/*!
* jQuery Cycle Lite Plugin
* http://malsup.com/jquery/cycle/lite/
* Copyright (c) 2008-2012 M. Alsup
* Version: 1.6 (02-MAY-2012)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
* Requires: jQuery v1.3.2 or later
*/
;(
function
(
$
)
{
"
use strict
"
;
var
ver
=
'
Lite-1.6
'
;
$
.
fn
.
cycle
=
function
(
options
)
{
return
this
.
each
(
function
()
{
options
=
options
||
{};
if
(
this
.
cycleTimeout
)
clearTimeout
(
this
.
cycleTimeout
);
this
.
cycleTimeout
=
0
;
this
.
cyclePause
=
0
;
var
$cont
=
$
(
this
);
var
$slides
=
options
.
slideExpr
?
$
(
options
.
slideExpr
,
this
)
:
$cont
.
children
();
var
els
=
$slides
.
get
();
if
(
els
.
length
<
2
)
{
if
(
window
.
console
)
console
.
log
(
'
terminating; too few slides:
'
+
els
.
length
);
return
;
// don't bother
}
// support metadata plugin (v1.0 and v2.0)
var
opts
=
$
.
extend
({},
$
.
fn
.
cycle
.
defaults
,
options
||
{},
$
.
metadata
?
$cont
.
metadata
()
:
$
.
meta
?
$cont
.
data
()
:
{});
var
meta
=
$
.
isFunction
(
$cont
.
data
)
?
$cont
.
data
(
opts
.
metaAttr
)
:
null
;
if
(
meta
)
opts
=
$
.
extend
(
opts
,
meta
);
opts
.
before
=
opts
.
before
?
[
opts
.
before
]
:
[];
opts
.
after
=
opts
.
after
?
[
opts
.
after
]
:
[];
opts
.
after
.
unshift
(
function
(){
opts
.
busy
=
0
;
});
// allow shorthand overrides of width, height and timeout
var
cls
=
this
.
className
;
opts
.
width
=
parseInt
((
cls
.
match
(
/w:
(\d
+
)
/
)
||
[])[
1
],
10
)
||
opts
.
width
;
opts
.
height
=
parseInt
((
cls
.
match
(
/h:
(\d
+
)
/
)
||
[])[
1
],
10
)
||
opts
.
height
;
opts
.
timeout
=
parseInt
((
cls
.
match
(
/t:
(\d
+
)
/
)
||
[])[
1
],
10
)
||
opts
.
timeout
;
if
(
$cont
.
css
(
'
position
'
)
==
'
static
'
)
$cont
.
css
(
'
position
'
,
'
relative
'
);
if
(
opts
.
width
)
$cont
.
width
(
opts
.
width
);
if
(
opts
.
height
&&
opts
.
height
!=
'
auto
'
)
$cont
.
height
(
opts
.
height
);
var
first
=
0
;
$slides
.
css
({
position
:
'
absolute
'
,
top
:
0
}).
each
(
function
(
i
)
{
$
(
this
).
css
(
'
z-index
'
,
els
.
length
-
i
);
});
$
(
els
[
first
]).
css
(
'
opacity
'
,
1
).
show
();
// opacity bit needed to handle reinit case
if
(
$
.
browser
.
msie
)
els
[
first
].
style
.
removeAttribute
(
'
filter
'
);
if
(
opts
.
fit
&&
opts
.
width
)
$slides
.
width
(
opts
.
width
);
if
(
opts
.
fit
&&
opts
.
height
&&
opts
.
height
!=
'
auto
'
)
$slides
.
height
(
opts
.
height
);
if
(
opts
.
pause
)
$cont
.
hover
(
function
(){
this
.
cyclePause
=
1
;},
function
(){
this
.
cyclePause
=
0
;});
var
txFn
=
$
.
fn
.
cycle
.
transitions
[
opts
.
fx
];
if
(
txFn
)
txFn
(
$cont
,
$slides
,
opts
);
$slides
.
each
(
function
()
{
var
$el
=
$
(
this
);
this
.
cycleH
=
(
opts
.
fit
&&
opts
.
height
)
?
opts
.
height
:
$el
.
height
();
this
.
cycleW
=
(
opts
.
fit
&&
opts
.
width
)
?
opts
.
width
:
$el
.
width
();
});
if
(
opts
.
cssFirst
)
$
(
$slides
[
first
]).
css
(
opts
.
cssFirst
);
if
(
opts
.
timeout
)
{
// ensure that timeout and speed settings are sane
if
(
opts
.
speed
.
constructor
==
String
)
opts
.
speed
=
{
slow
:
600
,
fast
:
200
}[
opts
.
speed
]
||
400
;
if
(
!
opts
.
sync
)
opts
.
speed
=
opts
.
speed
/
2
;
while
((
opts
.
timeout
-
opts
.
speed
)
<
250
)
opts
.
timeout
+=
opts
.
speed
;
}
opts
.
speedIn
=
opts
.
speed
;
opts
.
speedOut
=
opts
.
speed
;
opts
.
slideCount
=
els
.
length
;
opts
.
currSlide
=
first
;
opts
.
nextSlide
=
1
;
// fire artificial events
var
e0
=
$slides
[
first
];
if
(
opts
.
before
.
length
)
opts
.
before
[
0
].
apply
(
e0
,
[
e0
,
e0
,
opts
,
true
]);
if
(
opts
.
after
.
length
>
1
)
opts
.
after
[
1
].
apply
(
e0
,
[
e0
,
e0
,
opts
,
true
]);
if
(
opts
.
click
&&
!
opts
.
next
)
opts
.
next
=
opts
.
click
;
if
(
opts
.
next
)
$
(
opts
.
next
).
unbind
(
'
click.cycle
'
).
bind
(
'
click.cycle
'
,
function
(){
return
advance
(
els
,
opts
,
opts
.
rev
?
-
1
:
1
);});
if
(
opts
.
prev
)
$
(
opts
.
prev
).
unbind
(
'
click.cycle
'
).
bind
(
'
click.cycle
'
,
function
(){
return
advance
(
els
,
opts
,
opts
.
rev
?
1
:
-
1
);});
if
(
opts
.
timeout
)
this
.
cycleTimeout
=
setTimeout
(
function
()
{
go
(
els
,
opts
,
0
,
!
opts
.
rev
);
},
opts
.
timeout
+
(
opts
.
delay
||
0
));
});
};
function
go
(
els
,
opts
,
manual
,
fwd
)
{
if
(
opts
.
busy
)
return
;
var
p
=
els
[
0
].
parentNode
,
curr
=
els
[
opts
.
currSlide
],
next
=
els
[
opts
.
nextSlide
];
if
(
p
.
cycleTimeout
===
0
&&
!
manual
)
return
;
if
(
manual
||
!
p
.
cyclePause
)
{
if
(
opts
.
before
.
length
)
$
.
each
(
opts
.
before
,
function
(
i
,
o
)
{
o
.
apply
(
next
,
[
curr
,
next
,
opts
,
fwd
]);
});
var
after
=
function
()
{
if
(
$
.
browser
.
msie
)
this
.
style
.
removeAttribute
(
'
filter
'
);
$
.
each
(
opts
.
after
,
function
(
i
,
o
)
{
o
.
apply
(
next
,
[
curr
,
next
,
opts
,
fwd
]);
});
queueNext
(
opts
);
};
if
(
opts
.
nextSlide
!=
opts
.
currSlide
)
{
opts
.
busy
=
1
;
$
.
fn
.
cycle
.
custom
(
curr
,
next
,
opts
,
after
);
}
var
roll
=
(
opts
.
nextSlide
+
1
)
==
els
.
length
;
opts
.
nextSlide
=
roll
?
0
:
opts
.
nextSlide
+
1
;
opts
.
currSlide
=
roll
?
els
.
length
-
1
:
opts
.
nextSlide
-
1
;
}
else
{
queueNext
(
opts
);
}
function
queueNext
(
opts
)
{
if
(
opts
.
timeout
)
p
.
cycleTimeout
=
setTimeout
(
function
()
{
go
(
els
,
opts
,
0
,
!
opts
.
rev
);
},
opts
.
timeout
);
}
}
// advance slide forward or back
function
advance
(
els
,
opts
,
val
)
{
var
p
=
els
[
0
].
parentNode
,
timeout
=
p
.
cycleTimeout
;
if
(
timeout
)
{
clearTimeout
(
timeout
);
p
.
cycleTimeout
=
0
;
}
opts
.
nextSlide
=
opts
.
currSlide
+
val
;
if
(
opts
.
nextSlide
<
0
)
{
opts
.
nextSlide
=
els
.
length
-
1
;
}
else
if
(
opts
.
nextSlide
>=
els
.
length
)
{
opts
.
nextSlide
=
0
;
}
go
(
els
,
opts
,
1
,
val
>=
0
);
return
false
;
}
$
.
fn
.
cycle
.
custom
=
function
(
curr
,
next
,
opts
,
cb
)
{
var
$l
=
$
(
curr
),
$n
=
$
(
next
);
$n
.
css
(
opts
.
cssBefore
);
var
fn
=
function
()
{
$n
.
animate
(
opts
.
animIn
,
opts
.
speedIn
,
opts
.
easeIn
,
cb
);};
$l
.
animate
(
opts
.
animOut
,
opts
.
speedOut
,
opts
.
easeOut
,
function
()
{
$l
.
css
(
opts
.
cssAfter
);
if
(
!
opts
.
sync
)
fn
();
});
if
(
opts
.
sync
)
fn
();
};
$
.
fn
.
cycle
.
transitions
=
{
fade
:
function
(
$cont
,
$slides
,
opts
)
{
$slides
.
not
(
'
:eq(0)
'
).
hide
();
opts
.
cssBefore
=
{
opacity
:
0
,
display
:
'
block
'
};
opts
.
cssAfter
=
{
display
:
'
none
'
};
opts
.
animOut
=
{
opacity
:
0
};
opts
.
animIn
=
{
opacity
:
1
};
},
fadeout
:
function
(
$cont
,
$slides
,
opts
)
{
opts
.
before
.
push
(
function
(
curr
,
next
,
opts
,
fwd
)
{
$
(
curr
).
css
(
'
zIndex
'
,
opts
.
slideCount
+
(
fwd
===
true
?
1
:
0
));
$
(
next
).
css
(
'
zIndex
'
,
opts
.
slideCount
+
(
fwd
===
true
?
0
:
1
));
});
$slides
.
not
(
'
:eq(0)
'
).
hide
();
opts
.
cssBefore
=
{
opacity
:
1
,
display
:
'
block
'
,
zIndex
:
1
};
opts
.
cssAfter
=
{
display
:
'
none
'
,
zIndex
:
0
};
opts
.
animOut
=
{
opacity
:
0
};
opts
.
animIn
=
{
opacity
:
1
};
}
};
$
.
fn
.
cycle
.
ver
=
function
()
{
return
ver
;
};
// @see: http://malsup.com/jquery/cycle/lite/
$
.
fn
.
cycle
.
defaults
=
{
animIn
:
{},
animOut
:
{},
fx
:
'
fade
'
,
after
:
null
,
before
:
null
,
cssBefore
:
{},
cssAfter
:
{},
delay
:
0
,
fit
:
0
,
height
:
'
auto
'
,
metaAttr
:
'
cycle
'
,
next
:
null
,
pause
:
false
,
prev
:
null
,
speed
:
1000
,
slideExpr
:
null
,
sync
:
true
,
timeout
:
4000
};
})(
jQuery
);
vendor/stylesheets/nunito.css
0 → 100644
View file @
422fade2
@font-face
{
font-family
:
'Nunito'
;
font-style
:
normal
;
font-weight
:
700
;
src
:
local
(
'Nunito-Bold'
),
url(/vendor/fonts/nunito.woff)
format
(
'woff'
);
}
\ 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