Site updated: 2019-04-15 15:42:26
1334
2000/01/01/hello-world/index.html
Normal file
1522
2018/11/16/BIBA访问控制模型实现(python)/index.html
Normal file
1424
2018/12/15/miio-control/index.html
Normal file
1424
2018/12/23/基于规则引擎发现IOT设备/index.html
Normal file
1552
2019/01/16/wifi半双工侧信道攻击学习笔记/index.html
Normal file
1401
2019/02/22/qq数据库的加密解密/index.html
Normal file
1408
2019/03/16/小米固件工具mkxqimage/index.html
Normal file
1418
2019/03/23/auto-send-WX/index.html
Normal file
1443
2019/03/25/Samba-CVE/index.html
Normal file
1528
2019/03/28/逆向工程实验/index.html
Normal file
1119
about/index.html
Normal file
1145
archives/2000/01/index.html
Normal file
1145
archives/2000/index.html
Normal file
1145
archives/2018/11/index.html
Normal file
1180
archives/2018/12/index.html
Normal file
1215
archives/2018/index.html
Normal file
1145
archives/2019/01/index.html
Normal file
1145
archives/2019/02/index.html
Normal file
1250
archives/2019/03/index.html
Normal file
1320
archives/2019/index.html
Normal file
1470
archives/index.html
Normal file
5
baidu_urls.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
https://cool-y.github.io/2019/03/28/逆向工程实验/
|
||||||
|
https://cool-y.github.io/2019/03/25/Samba-CVE/
|
||||||
|
https://cool-y.github.io/2019/03/23/auto-send-WX/
|
||||||
|
https://cool-y.github.io/2019/03/16/小米固件工具mkxqimage/
|
||||||
|
https://cool-y.github.io/2019/02/22/qq数据库的加密解密/
|
1
baidu_verify_4WtqA1rZRc.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
4WtqA1rZRc
|
34
baidusitemap.xml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
<url>
|
||||||
|
<loc>https://cool-y.github.io/2018/12/23/%E5%9F%BA%E4%BA%8E%E8%A7%84%E5%88%99%E5%BC%95%E6%93%8E%E5%8F%91%E7%8E%B0IOT%E8%AE%BE%E5%A4%87/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2019/03/16/%E5%B0%8F%E7%B1%B3%E5%9B%BA%E4%BB%B6%E5%B7%A5%E5%85%B7mkxqimage/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2019/03/28/%E9%80%86%E5%90%91%E5%B7%A5%E7%A8%8B%E5%AE%9E%E9%AA%8C/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2019/02/22/qq%E6%95%B0%E6%8D%AE%E5%BA%93%E7%9A%84%E5%8A%A0%E5%AF%86%E8%A7%A3%E5%AF%86/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2019/01/16/wifi%E5%8D%8A%E5%8F%8C%E5%B7%A5%E4%BE%A7%E4%BF%A1%E9%81%93%E6%94%BB%E5%87%BB%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2018/12/15/miio-control/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2019/03/23/auto-send-WX/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2000/01/01/hello-world/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2019/03/25/Samba-CVE/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url> <url>
|
||||||
|
<loc>https://cool-y.github.io/2018/11/16/BIBA%E8%AE%BF%E9%97%AE%E6%8E%A7%E5%88%B6%E6%A8%A1%E5%9E%8B%E5%AE%9E%E7%8E%B0(python)/</loc>
|
||||||
|
<lastmod>2019-04-15</lastmod>
|
||||||
|
</url>
|
||||||
|
</urlset>
|
1171
bookmarks/index.html
Normal file
1178
categories/IOT/index.html
Normal file
1121
categories/index.html
Normal file
1126
categories/二进制/index.html
Normal file
1126
categories/加密解密/index.html
Normal file
1126
categories/杂七杂八/index.html
Normal file
1126
categories/理论学习/index.html
Normal file
1152
categories/顶会论文/index.html
Normal file
3282
css/main.css
Normal file
1
googleacf4df440b4becc4.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
google-site-verification: googleacf4df440b4becc4.html
|
BIN
images/Alipay.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
images/Wechatpay.png
Normal file
After Width: | Height: | Size: 98 KiB |
9
images/algolia_logo.svg
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1366 362">
|
||||||
|
<linearGradient id="a" x1="428.258" x2="434.145" y1="404.15" y2="409.85" gradientUnits="userSpaceOnUse" gradientTransform="matrix(94.045 0 0 -94.072 -40381.527 38479.52)">
|
||||||
|
<stop offset="0" stop-color="#00aeff"/>
|
||||||
|
<stop offset="1" stop-color="#3369e7"/>
|
||||||
|
</linearGradient>
|
||||||
|
<path fill="url(#a)" d="M61.8 15.4h242.8c23.9 0 43.4 19.4 43.4 43.4v242.9c0 23.9-19.4 43.4-43.4 43.4H61.8c-23.9 0-43.4-19.4-43.4-43.4v-243c0-23.9 19.4-43.3 43.4-43.3z"/>
|
||||||
|
<path fill="#FFF" d="M187 98.7c-51.4 0-93.1 41.7-93.1 93.2S135.6 285 187 285s93.1-41.7 93.1-93.2-41.6-93.1-93.1-93.1zm0 158.8c-36.2 0-65.6-29.4-65.6-65.6s29.4-65.6 65.6-65.6 65.6 29.4 65.6 65.6-29.3 65.6-65.6 65.6zm0-117.8v48.9c0 1.4 1.5 2.4 2.8 1.7l43.4-22.5c1-.5 1.3-1.7.8-2.7-9-15.8-25.7-26.6-45-27.3-1 0-2 .8-2 1.9zm-60.8-35.9l-5.7-5.7c-5.6-5.6-14.6-5.6-20.2 0l-6.8 6.8c-5.6 5.6-5.6 14.6 0 20.2l5.6 5.6c.9.9 2.2.7 3-.2 3.3-4.5 6.9-8.8 10.9-12.8 4.1-4.1 8.3-7.7 12.9-11 1-.6 1.1-2 .3-2.9zM217.5 89V77.7c0-7.9-6.4-14.3-14.3-14.3h-33.3c-7.9 0-14.3 6.4-14.3 14.3v11.6c0 1.3 1.2 2.2 2.5 1.9 9.3-2.7 19.1-4.1 29-4.1 9.5 0 18.9 1.3 28 3.8 1.2.3 2.4-.6 2.4-1.9z"/>
|
||||||
|
<path fill="#182359" d="M842.5 267.6c0 26.7-6.8 46.2-20.5 58.6-13.7 12.4-34.6 18.6-62.8 18.6-10.3 0-31.7-2-48.8-5.8l6.3-31c14.3 3 33.2 3.8 43.1 3.8 15.7 0 26.9-3.2 33.6-9.6s10-15.9 10-28.5v-6.4c-3.9 1.9-9 3.8-15.3 5.8-6.3 1.9-13.6 2.9-21.8 2.9-10.8 0-20.6-1.7-29.5-5.1-8.9-3.4-16.6-8.4-22.9-15-6.3-6.6-11.3-14.9-14.8-24.8s-5.3-27.6-5.3-40.6c0-12.2 1.9-27.5 5.6-37.7 3.8-10.2 9.2-19 16.5-26.3 7.2-7.3 16-12.9 26.3-17s22.4-6.7 35.5-6.7c12.7 0 24.4 1.6 35.8 3.5 11.4 1.9 21.1 3.9 29 6.1v155.2zm-108.7-77.2c0 16.4 3.6 34.6 10.8 42.2 7.2 7.6 16.5 11.4 27.9 11.4 6.2 0 12.1-.9 17.6-2.6 5.5-1.7 9.9-3.7 13.4-6.1v-97.1c-2.8-.6-14.5-3-25.8-3.3-14.2-.4-25 5.4-32.6 14.7-7.5 9.3-11.3 25.6-11.3 40.8zm294.3 0c0 13.2-1.9 23.2-5.8 34.1s-9.4 20.2-16.5 27.9c-7.1 7.7-15.6 13.7-25.6 17.9s-25.4 6.6-33.1 6.6c-7.7-.1-23-2.3-32.9-6.6-9.9-4.3-18.4-10.2-25.5-17.9-7.1-7.7-12.6-17-16.6-27.9s-6-20.9-6-34.1c0-13.2 1.8-25.9 5.8-36.7 4-10.8 9.6-20 16.8-27.7s15.8-13.6 25.6-17.8c9.9-4.2 20.8-6.2 32.6-6.2s22.7 2.1 32.7 6.2c10 4.2 18.6 10.1 25.6 17.8 7.1 7.7 12.6 16.9 16.6 27.7 4.2 10.8 6.3 23.5 6.3 36.7zm-40 .1c0-16.9-3.7-31-10.9-40.8-7.2-9.9-17.3-14.8-30.2-14.8-12.9 0-23 4.9-30.2 14.8-7.2 9.9-10.7 23.9-10.7 40.8 0 17.1 3.6 28.6 10.8 38.5 7.2 10 17.3 14.9 30.2 14.9 12.9 0 23-5 30.2-14.9 7.2-10 10.8-21.4 10.8-38.5zm127.1 86.4c-64.1.3-64.1-51.8-64.1-60.1L1051 32l39.1-6.2v183.6c0 4.7 0 34.5 25.1 34.6v32.9zm68.9 0h-39.3V108.1l39.3-6.2v175zm-19.7-193.5c13.1 0 23.8-10.6 23.8-23.7S1177.6 36 1164.4 36s-23.8 10.6-23.8 23.7 10.7 23.7 23.8 23.7zm117.4 18.6c12.9 0 23.8 1.6 32.6 4.8 8.8 3.2 15.9 7.7 21.1 13.4s8.9 13.5 11.1 21.7c2.3 8.2 3.4 17.2 3.4 27.1v100.6c-6 1.3-15.1 2.8-27.3 4.6s-25.9 2.7-41.1 2.7c-10.1 0-19.4-1-27.7-2.9-8.4-1.9-15.5-5-21.5-9.3-5.9-4.3-10.5-9.8-13.9-16.6-3.3-6.8-5-16.4-5-26.4 0-9.6 1.9-15.7 5.6-22.3 3.8-6.6 8.9-12 15.3-16.2 6.5-4.2 13.9-7.2 22.4-9s17.4-2.7 26.6-2.7c4.3 0 8.8.3 13.6.8s9.8 1.4 15.2 2.7v-6.4c0-4.5-.5-8.8-1.6-12.8-1.1-4.1-3-7.6-5.6-10.7-2.7-3.1-6.2-5.5-10.6-7.2s-10-3-16.7-3c-9 0-17.2 1.1-24.7 2.4-7.5 1.3-13.7 2.8-18.4 4.5l-4.7-32.1c4.9-1.7 12.2-3.4 21.6-5.1s19.5-2.6 30.3-2.6zm3.3 141.9c12 0 20.9-.7 27.1-1.9v-39.8c-2.2-.6-5.3-1.3-9.4-1.9-4.1-.6-8.6-1-13.6-1-4.3 0-8.7.3-13.1 1-4.4.6-8.4 1.8-11.9 3.5s-6.4 4.1-8.5 7.2c-2.2 3.1-3.2 4.9-3.2 9.6 0 9.2 3.2 14.5 9 18 5.9 3.6 13.7 5.3 23.6 5.3zM512.9 103c12.9 0 23.8 1.6 32.6 4.8 8.8 3.2 15.9 7.7 21.1 13.4 5.3 5.8 8.9 13.5 11.1 21.7 2.3 8.2 3.4 17.2 3.4 27.1v100.6c-6 1.3-15.1 2.8-27.3 4.6-12.2 1.8-25.9 2.7-41.1 2.7-10.1 0-19.4-1-27.7-2.9-8.4-1.9-15.5-5-21.5-9.3-5.9-4.3-10.5-9.8-13.9-16.6-3.3-6.8-5-16.4-5-26.4 0-9.6 1.9-15.7 5.6-22.3 3.8-6.6 8.9-12 15.3-16.2 6.5-4.2 13.9-7.2 22.4-9s17.4-2.7 26.6-2.7c4.3 0 8.8.3 13.6.8 4.7.5 9.8 1.4 15.2 2.7v-6.4c0-4.5-.5-8.8-1.6-12.8-1.1-4.1-3-7.6-5.6-10.7-2.7-3.1-6.2-5.5-10.6-7.2-4.4-1.7-10-3-16.7-3-9 0-17.2 1.1-24.7 2.4-7.5 1.3-13.7 2.8-18.4 4.5l-4.7-32.1c4.9-1.7 12.2-3.4 21.6-5.1 9.4-1.8 19.5-2.6 30.3-2.6zm3.4 142c12 0 20.9-.7 27.1-1.9v-39.8c-2.2-.6-5.3-1.3-9.4-1.9-4.1-.6-8.6-1-13.6-1-4.3 0-8.7.3-13.1 1-4.4.6-8.4 1.8-11.9 3.5s-6.4 4.1-8.5 7.2c-2.2 3.1-3.2 4.9-3.2 9.6 0 9.2 3.2 14.5 9 18s13.7 5.3 23.6 5.3zm158.5 31.9c-64.1.3-64.1-51.8-64.1-60.1L610.6 32l39.1-6.2v183.6c0 4.7 0 34.5 25.1 34.6v32.9z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 4.3 KiB |
BIN
images/apple-touch-icon-next.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
images/avatar.gif
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
images/avatar.png
Normal file
After Width: | Height: | Size: 56 KiB |
121
images/cc-by-nc-nd.svg
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
id="svg2279"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.45+devel"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="by-nc-nd.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape">
|
||||||
|
<defs
|
||||||
|
id="defs2281">
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath3442">
|
||||||
|
<rect
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3444"
|
||||||
|
width="20.614058"
|
||||||
|
height="12.483703"
|
||||||
|
x="171.99832"
|
||||||
|
y="239.1203" />
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#999999"
|
||||||
|
borderopacity="1"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="10.5125"
|
||||||
|
inkscape:cx="40"
|
||||||
|
inkscape:cy="7.5"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
width="80px"
|
||||||
|
height="15px"
|
||||||
|
showborder="true"
|
||||||
|
inkscape:showpageshadow="false"
|
||||||
|
inkscape:window-width="935"
|
||||||
|
inkscape:window-height="624"
|
||||||
|
inkscape:window-x="50"
|
||||||
|
inkscape:window-y="160" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2284">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<g
|
||||||
|
id="BY-NC-ND"
|
||||||
|
transform="matrix(0.9875019,0,0,0.9333518,-323.90064,-411.87964)">
|
||||||
|
<g
|
||||||
|
id="g3783"
|
||||||
|
transform="translate(158,204)">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.04161763;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3785"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
x="170.5"
|
||||||
|
y="237.86218" />
|
||||||
|
<rect
|
||||||
|
y="239.36218"
|
||||||
|
x="172"
|
||||||
|
height="12"
|
||||||
|
width="77"
|
||||||
|
id="rect3787"
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
style="fill:#abb1aa;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.46913578"
|
||||||
|
d="M 171.99996,239.37505 L 171.99996,251.37505 L 192.33474,251.37505 C 193.64339,249.62474 194.52652,247.59057 194.52652,245.37505 C 194.52652,243.17431 193.65859,241.1179 192.36599,239.37505 L 171.99996,239.37505 z"
|
||||||
|
id="path3789"
|
||||||
|
sodipodi:nodetypes="cccscc" />
|
||||||
|
<g
|
||||||
|
id="g3791"
|
||||||
|
transform="matrix(0.9612533,0,0,0.9612533,6.8341566,9.5069994)"
|
||||||
|
clip-path="url(#clipPath3442)">
|
||||||
|
<path
|
||||||
|
id="path3793"
|
||||||
|
cx="296.35416"
|
||||||
|
ry="22.939548"
|
||||||
|
cy="264.3577"
|
||||||
|
type="arc"
|
||||||
|
rx="22.939548"
|
||||||
|
d="M 190.06417,245.36206 C 190.06667,249.25405 186.91326,252.41072 183.02153,252.41323 C 179.12979,252.41572 175.97262,249.26256 175.97036,245.3706 C 175.97036,245.36783 175.97036,245.36507 175.97036,245.36206 C 175.9681,241.47007 179.12126,238.3134 183.013,238.31113 C 186.90524,238.30864 190.06191,241.46181 190.06417,245.3538 C 190.06417,245.35628 190.06417,245.35929 190.06417,245.36206 z"
|
||||||
|
style="opacity:1;fill:#ffffff" />
|
||||||
|
<path
|
||||||
|
d="M 188.74576,239.62226 C 190.30843,241.18492 191.08988,243.09869 191.08988,245.36206 C 191.08988,247.62592 190.32197,249.51913 188.78615,251.04165 C 187.15627,252.64521 185.22995,253.44672 183.00722,253.44672 C 180.81132,253.44672 178.91837,252.65172 177.32887,251.06174 C 175.73912,249.47198 174.94436,247.57226 174.94436,245.36206 C 174.94436,243.15235 175.73912,241.23908 177.32887,239.62226 C 178.87799,238.0591 180.77094,237.27764 183.00722,237.27764 C 185.2706,237.27764 187.18312,238.05909 188.74576,239.62226 z M 178.38093,240.67355 C 177.05978,242.008 176.39945,243.57116 176.39945,245.36429 C 176.39945,247.15694 177.05326,248.70682 178.36062,250.01393 C 179.66822,251.32153 181.22487,251.97509 183.03105,251.97509 C 184.83724,251.97509 186.40716,251.31502 187.74161,249.99412 C 189.0086,248.76725 189.64234,247.22467 189.64234,245.36429 C 189.64234,243.51799 188.99831,241.95084 187.71101,240.66354 C 186.42396,239.37649 184.86406,238.7327 183.03105,238.7327 C 181.19804,238.73271 179.64767,239.37975 178.38093,240.67355 z M 181.85761,244.57559 C 181.65573,244.13545 181.35354,243.91525 180.95051,243.91525 C 180.23802,243.91525 179.8819,244.39501 179.8819,245.35404 C 179.8819,246.31328 180.23802,246.79255 180.95051,246.79255 C 181.421,246.79255 181.75705,246.55908 181.95869,246.09111 L 182.94629,246.61701 C 182.47555,247.45339 181.76934,247.87168 180.82763,247.87168 C 180.10136,247.87168 179.51953,247.64899 179.08265,247.20409 C 178.64502,246.7587 178.42684,246.14477 178.42684,245.36206 C 178.42684,244.59313 178.65204,243.98271 179.10271,243.53056 C 179.55338,243.07838 180.11463,242.8524 180.7875,242.8524 C 181.78288,242.8524 182.49561,243.24465 182.92647,244.02835 L 181.85761,244.57559 z M 186.50398,244.57559 C 186.30184,244.13545 186.00567,243.91525 185.61517,243.91525 C 184.88839,243.91525 184.52474,244.39501 184.52474,245.35404 C 184.52474,246.31328 184.88839,246.79255 185.61517,246.79255 C 186.08642,246.79255 186.41644,246.55908 186.6048,246.09111 L 187.61447,246.61701 C 187.14448,247.45339 186.43926,247.87168 185.49931,247.87168 C 184.77403,247.87168 184.19346,247.64899 183.75683,247.20409 C 183.32096,246.7587 183.10254,246.14477 183.10254,245.36206 C 183.10254,244.59313 183.32422,243.98271 183.76737,243.53056 C 184.21026,243.07838 184.77404,242.8524 185.4592,242.8524 C 186.45282,242.8524 187.16455,243.24465 187.5939,244.02835 L 186.50398,244.57559 z"
|
||||||
|
id="path3795"
|
||||||
|
style="opacity:1" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
id="text3797"
|
||||||
|
d="M 357.4197,448.68503 C 357.66518,448.68504 357.85131,448.63146 357.9781,448.52428 C 358.10488,448.41712 358.16827,448.25905 358.16828,448.05008 C 358.16827,447.84378 358.10488,447.68705 357.9781,447.57988 C 357.85131,447.47004 357.66518,447.41512 357.4197,447.41511 L 356.55784,447.41511 L 356.55784,448.68503 L 357.4197,448.68503 M 357.4723,451.30929 C 357.78522,451.30929 358.0199,451.24364 358.17637,451.11236 C 358.33552,450.98109 358.4151,450.78283 358.4151,450.51759 C 358.4151,450.25771 358.33686,450.06347 358.18041,449.93488 C 358.02396,449.80359 357.78792,449.73796 357.4723,449.73795 L 356.55784,449.73795 L 356.55784,451.30929 L 357.4723,451.30929 M 358.92089,449.15122 C 359.25538,449.24767 359.51434,449.42583 359.69779,449.68571 C 359.88121,449.94559 359.97293,450.26441 359.97294,450.64217 C 359.97293,451.22087 359.776,451.65222 359.38217,451.93621 C 358.98833,452.2202 358.38947,452.36219 357.5856,452.36219 L 355.00001,452.36219 L 355.00001,446.3622 L 357.33878,446.3622 C 358.17771,446.36221 358.78466,446.48813 359.15962,446.73996 C 359.53727,446.99181 359.7261,447.39502 359.7261,447.9496 C 359.7261,448.24164 359.65732,448.4908 359.51975,448.69709 C 359.38217,448.90072 359.18255,449.05209 358.92089,449.15122 M 359.83746,446.3622 L 361.54096,446.3622 L 362.91671,448.50018 L 364.29245,446.3622 L 366,446.3622 L 363.69764,449.8344 L 363.69764,452.36219 L 362.13982,452.36219 L 362.13982,449.8344 L 359.83746,446.3622 M 365.15837,449.40842 L 367.69946,449.40842 L 367.69946,450.57787 L 365.15837,450.57787 L 365.15837,449.40842 M 368.9174,446.3622 L 370.65732,446.3622 L 372.85447,450.47741 L 372.85447,446.3622 L 374.33138,446.3622 L 374.33138,452.36219 L 372.59146,452.36219 L 370.3943,448.24699 L 370.3943,452.36219 L 368.9174,452.36219 L 368.9174,446.3622 M 380.65173,452.03266 C 380.36579,452.18002 380.0677,452.2912 379.75749,452.36622 C 379.44727,452.44123 379.12357,452.47875 378.78638,452.47875 C 377.78019,452.47875 376.98307,452.20011 376.395,451.64284 C 375.80693,451.08289 375.5129,450.32469 375.5129,449.36823 C 375.5129,448.40909 375.80693,447.65089 376.395,447.09361 C 376.98307,446.53367 377.78019,446.2537 378.78638,446.25369 C 379.12357,446.2537 379.44727,446.29121 379.75749,446.36621 C 380.0677,446.44124 380.36579,446.55243 380.65173,446.69977 L 380.65173,447.94157 C 380.36309,447.746 380.0785,447.60266 379.79796,447.51156 C 379.5174,447.42047 379.22203,447.37493 378.91181,447.37493 C 378.35611,447.37493 377.91911,447.55175 377.6008,447.9054 C 377.28249,448.25905 377.12333,448.74666 377.12333,449.36823 C 377.12333,449.98712 377.28249,450.47339 377.6008,450.82703 C 377.91911,451.18069 378.35611,451.35751 378.91181,451.35751 C 379.22203,451.35751 379.5174,451.31197 379.79796,451.22087 C 380.0785,451.12978 380.36309,450.98644 380.65173,450.79086 L 380.65173,452.03266 M 381.82921,449.40842 L 384.3703,449.40842 L 384.3703,450.57787 L 381.82921,450.57787 L 381.82921,449.40842 M 385.58824,446.3622 L 387.32815,446.3622 L 389.52531,450.47741 L 389.52531,446.3622 L 391.00222,446.3622 L 391.00222,452.36219 L 389.26229,452.36219 L 387.06515,448.24699 L 387.06515,452.36219 L 385.58824,452.36219 L 385.58824,446.3622 M 394.08956,447.53165 L 394.08956,451.19274 L 394.64795,451.19274 C 395.28456,451.19274 395.77013,451.03602 396.10462,450.72255 C 396.44181,450.40909 396.61041,449.95363 396.61042,449.35617 C 396.61041,448.7614 396.44317,448.30862 396.10867,447.99783 C 395.77417,447.68705 395.28726,447.53166 394.64795,447.53165 L 394.08956,447.53165 M 392.53172,446.3622 L 394.17453,446.3622 C 395.09169,446.36221 395.77417,446.42784 396.22197,446.55912 C 396.67245,446.68772 397.0582,446.90742 397.37922,447.2182 C 397.66246,447.48879 397.87286,447.80092 398.01044,448.15456 C 398.14801,448.50822 398.2168,448.90875 398.21681,449.35617 C 398.2168,449.80896 398.14801,450.21351 398.01044,450.56983 C 397.87286,450.92349 397.66246,451.23561 397.37922,451.50621 C 397.05551,451.81699 396.66706,452.03802 396.21387,452.1693 C 395.76069,452.29789 395.0809,452.36219 394.17453,452.36219 L 392.53172,452.36219 L 392.53172,446.3622"
|
||||||
|
style="font-size:8.25858784px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:'Bitstream Vera Sans'" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 11 KiB |
121
images/cc-by-nc-sa.svg
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
id="svg2279"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.45+devel"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="by-nc-sa.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape">
|
||||||
|
<defs
|
||||||
|
id="defs2281">
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath3442">
|
||||||
|
<rect
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3444"
|
||||||
|
width="20.614058"
|
||||||
|
height="12.483703"
|
||||||
|
x="171.99832"
|
||||||
|
y="239.1203" />
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#999999"
|
||||||
|
borderopacity="1"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="10.5125"
|
||||||
|
inkscape:cx="40"
|
||||||
|
inkscape:cy="7.5"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
width="80px"
|
||||||
|
height="15px"
|
||||||
|
showborder="true"
|
||||||
|
inkscape:showpageshadow="false"
|
||||||
|
inkscape:window-width="935"
|
||||||
|
inkscape:window-height="624"
|
||||||
|
inkscape:window-x="50"
|
||||||
|
inkscape:window-y="160" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2284">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<g
|
||||||
|
id="BY-NC-SA"
|
||||||
|
transform="matrix(0.9875019,0,0,0.9333518,-323.90064,-331.6114)">
|
||||||
|
<g
|
||||||
|
transform="translate(158,118)"
|
||||||
|
id="g3729">
|
||||||
|
<rect
|
||||||
|
y="237.86218"
|
||||||
|
x="170.5"
|
||||||
|
height="15"
|
||||||
|
width="80"
|
||||||
|
id="rect3731"
|
||||||
|
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.04161763;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<rect
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3733"
|
||||||
|
width="77"
|
||||||
|
height="12"
|
||||||
|
x="172"
|
||||||
|
y="239.36218" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cccscc"
|
||||||
|
id="path3735"
|
||||||
|
d="M 171.99996,239.37505 L 171.99996,251.37505 L 192.33474,251.37505 C 193.64339,249.62474 194.52652,247.59057 194.52652,245.37505 C 194.52652,243.17431 193.65859,241.1179 192.36599,239.37505 L 171.99996,239.37505 z"
|
||||||
|
style="fill:#abb1aa;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.46913578" />
|
||||||
|
<g
|
||||||
|
clip-path="url(#clipPath3442)"
|
||||||
|
transform="matrix(0.9612533,0,0,0.9612533,6.8341566,9.5069994)"
|
||||||
|
id="g3737">
|
||||||
|
<path
|
||||||
|
style="opacity:1;fill:#ffffff"
|
||||||
|
d="M 190.06417,245.36206 C 190.06667,249.25405 186.91326,252.41072 183.02153,252.41323 C 179.12979,252.41572 175.97262,249.26256 175.97036,245.3706 C 175.97036,245.36783 175.97036,245.36507 175.97036,245.36206 C 175.9681,241.47007 179.12126,238.3134 183.013,238.31113 C 186.90524,238.30864 190.06191,241.46181 190.06417,245.3538 C 190.06417,245.35628 190.06417,245.35929 190.06417,245.36206 z"
|
||||||
|
rx="22.939548"
|
||||||
|
type="arc"
|
||||||
|
cy="264.3577"
|
||||||
|
ry="22.939548"
|
||||||
|
cx="296.35416"
|
||||||
|
id="path3739" />
|
||||||
|
<path
|
||||||
|
style="opacity:1"
|
||||||
|
id="path3741"
|
||||||
|
d="M 188.74576,239.62226 C 190.30843,241.18492 191.08988,243.09869 191.08988,245.36206 C 191.08988,247.62592 190.32197,249.51913 188.78615,251.04165 C 187.15627,252.64521 185.22995,253.44672 183.00722,253.44672 C 180.81132,253.44672 178.91837,252.65172 177.32887,251.06174 C 175.73912,249.47198 174.94436,247.57226 174.94436,245.36206 C 174.94436,243.15235 175.73912,241.23908 177.32887,239.62226 C 178.87799,238.0591 180.77094,237.27764 183.00722,237.27764 C 185.2706,237.27764 187.18312,238.05909 188.74576,239.62226 z M 178.38093,240.67355 C 177.05978,242.008 176.39945,243.57116 176.39945,245.36429 C 176.39945,247.15694 177.05326,248.70682 178.36062,250.01393 C 179.66822,251.32153 181.22487,251.97509 183.03105,251.97509 C 184.83724,251.97509 186.40716,251.31502 187.74161,249.99412 C 189.0086,248.76725 189.64234,247.22467 189.64234,245.36429 C 189.64234,243.51799 188.99831,241.95084 187.71101,240.66354 C 186.42396,239.37649 184.86406,238.7327 183.03105,238.7327 C 181.19804,238.73271 179.64767,239.37975 178.38093,240.67355 z M 181.85761,244.57559 C 181.65573,244.13545 181.35354,243.91525 180.95051,243.91525 C 180.23802,243.91525 179.8819,244.39501 179.8819,245.35404 C 179.8819,246.31328 180.23802,246.79255 180.95051,246.79255 C 181.421,246.79255 181.75705,246.55908 181.95869,246.09111 L 182.94629,246.61701 C 182.47555,247.45339 181.76934,247.87168 180.82763,247.87168 C 180.10136,247.87168 179.51953,247.64899 179.08265,247.20409 C 178.64502,246.7587 178.42684,246.14477 178.42684,245.36206 C 178.42684,244.59313 178.65204,243.98271 179.10271,243.53056 C 179.55338,243.07838 180.11463,242.8524 180.7875,242.8524 C 181.78288,242.8524 182.49561,243.24465 182.92647,244.02835 L 181.85761,244.57559 z M 186.50398,244.57559 C 186.30184,244.13545 186.00567,243.91525 185.61517,243.91525 C 184.88839,243.91525 184.52474,244.39501 184.52474,245.35404 C 184.52474,246.31328 184.88839,246.79255 185.61517,246.79255 C 186.08642,246.79255 186.41644,246.55908 186.6048,246.09111 L 187.61447,246.61701 C 187.14448,247.45339 186.43926,247.87168 185.49931,247.87168 C 184.77403,247.87168 184.19346,247.64899 183.75683,247.20409 C 183.32096,246.7587 183.10254,246.14477 183.10254,245.36206 C 183.10254,244.59313 183.32422,243.98271 183.76737,243.53056 C 184.21026,243.07838 184.77404,242.8524 185.4592,242.8524 C 186.45282,242.8524 187.16455,243.24465 187.5939,244.02835 L 186.50398,244.57559 z" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
id="text3743"
|
||||||
|
d="M 357.4197,362.68502 C 357.66518,362.68502 357.85131,362.63144 357.9781,362.52427 C 358.10488,362.41711 358.16827,362.25904 358.16828,362.05005 C 358.16827,361.84377 358.10488,361.68704 357.9781,361.57986 C 357.85131,361.47002 357.66518,361.4151 357.4197,361.4151 L 356.55784,361.4151 L 356.55784,362.68502 L 357.4197,362.68502 M 357.4723,365.30926 C 357.78522,365.30926 358.0199,365.24363 358.17637,365.11235 C 358.33552,364.98107 358.4151,364.78281 358.4151,364.51758 C 358.4151,364.2577 358.33686,364.06346 358.18041,363.93485 C 358.02396,363.80358 357.78792,363.73793 357.4723,363.73793 L 356.55784,363.73793 L 356.55784,365.30926 L 357.4723,365.30926 M 358.92089,363.15119 C 359.25538,363.24765 359.51434,363.42581 359.69779,363.68569 C 359.88121,363.94557 359.97293,364.26439 359.97294,364.64215 C 359.97293,365.22086 359.776,365.6522 359.38217,365.93619 C 358.98833,366.22019 358.38947,366.36218 357.5856,366.36218 L 355.00001,366.36218 L 355.00001,360.36218 L 357.33878,360.36218 C 358.17771,360.36218 358.78466,360.48811 359.15962,360.73994 C 359.53727,360.99179 359.7261,361.39501 359.7261,361.94959 C 359.7261,362.24162 359.65732,362.49078 359.51975,362.69708 C 359.38217,362.9007 359.18255,363.05207 358.92089,363.15119 M 359.83746,360.36218 L 361.54096,360.36218 L 362.91671,362.50016 L 364.29245,360.36218 L 366,360.36218 L 363.69764,363.83438 L 363.69764,366.36218 L 362.13982,366.36218 L 362.13982,363.83438 L 359.83746,360.36218 M 365.15837,363.40839 L 367.69946,363.40839 L 367.69946,364.57785 L 365.15837,364.57785 L 365.15837,363.40839 M 368.9174,360.36218 L 370.65732,360.36218 L 372.85447,364.47738 L 372.85447,360.36218 L 374.33138,360.36218 L 374.33138,366.36218 L 372.59146,366.36218 L 370.3943,362.24698 L 370.3943,366.36218 L 368.9174,366.36218 L 368.9174,360.36218 M 380.65173,366.03264 C 380.36579,366.17999 380.0677,366.29118 379.75749,366.3662 C 379.44727,366.44122 379.12357,366.47872 378.78638,366.47872 C 377.78019,366.47872 376.98307,366.20009 376.395,365.64282 C 375.80693,365.08288 375.5129,364.32468 375.5129,363.36821 C 375.5129,362.40907 375.80693,361.65087 376.395,361.0936 C 376.98307,360.53366 377.78019,360.25368 378.78638,360.25367 C 379.12357,360.25368 379.44727,360.29119 379.75749,360.3662 C 380.0677,360.44122 380.36579,360.55241 380.65173,360.69976 L 380.65173,361.94156 C 380.36309,361.74597 380.0785,361.60265 379.79796,361.51155 C 379.5174,361.42046 379.22203,361.37492 378.91181,361.37491 C 378.35611,361.37492 377.91911,361.55174 377.6008,361.90538 C 377.28249,362.25904 377.12333,362.74665 377.12333,363.36821 C 377.12333,363.9871 377.28249,364.47337 377.6008,364.82702 C 377.91911,365.18067 378.35611,365.35749 378.91181,365.35749 C 379.22203,365.35749 379.5174,365.31195 379.79796,365.22086 C 380.0785,365.12976 380.36309,364.98643 380.65173,364.79085 L 380.65173,366.03264 M 381.82921,363.40839 L 384.3703,363.40839 L 384.3703,364.57785 L 381.82921,364.57785 L 381.82921,363.40839 M 389.79236,360.55107 L 389.79236,361.82099 C 389.46056,361.67364 389.13686,361.56245 388.82125,361.48743 C 388.50563,361.41242 388.20756,361.37492 387.92701,361.37491 C 387.55475,361.37492 387.2796,361.42581 387.10156,361.52762 C 386.92352,361.62943 386.8345,361.7875 386.83451,362.00183 C 386.8345,362.16259 386.89385,362.28851 387.01255,362.3796 C 387.13393,362.46801 387.35244,362.54437 387.66804,362.60866 L 388.33165,362.74129 C 389.00333,362.87525 389.4808,363.07886 389.76405,363.35214 C 390.04728,363.62541 390.1889,364.01389 390.18891,364.51758 C 390.1889,365.17933 389.99063,365.67229 389.5941,365.99647 C 389.20025,366.31797 388.59735,366.47872 387.78539,366.47872 C 387.40234,366.47872 387.01794,366.44255 386.63219,366.37022 C 386.24644,366.29788 385.86069,366.19072 385.47494,366.04871 L 385.47494,364.74262 C 385.86069,364.94624 386.23295,365.10029 386.59173,365.20478 C 386.9532,365.30658 387.30118,365.35749 387.63567,365.35749 C 387.97556,365.35749 388.23588,365.30123 388.41662,365.18871 C 388.59735,365.07618 388.68771,364.91543 388.68772,364.70646 C 388.68771,364.51891 388.62567,364.37424 388.50159,364.27242 C 388.38019,364.17062 388.13607,364.07954 387.76921,363.99915 L 387.1663,363.86653 C 386.56205,363.73793 386.11965,363.53298 385.83911,363.25167 C 385.56127,362.97035 385.42234,362.59125 385.42234,362.11435 C 385.42234,361.51691 385.61656,361.05743 386.00501,360.73592 C 386.39346,360.41443 386.95185,360.25368 387.68019,360.25367 C 388.01198,360.25368 388.35322,360.27914 388.70391,360.33003 C 389.05459,360.37826 389.4174,360.45194 389.79236,360.55107 M 395.22657,365.26908 L 392.79069,365.26908 L 392.40629,366.36218 L 390.84037,366.36218 L 393.07798,360.36218 L 394.93524,360.36218 L 397.17286,366.36218 L 395.60693,366.36218 L 395.22657,365.26908 M 393.17914,364.15588 L 394.83409,364.15588 L 394.00863,361.76875 L 393.17914,364.15588"
|
||||||
|
style="font-size:8.25858784px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:'Bitstream Vera Sans'" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 11 KiB |
121
images/cc-by-nc.svg
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
id="svg2279"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.45+devel"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="by-nc.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape">
|
||||||
|
<defs
|
||||||
|
id="defs2281">
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath3442">
|
||||||
|
<rect
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3444"
|
||||||
|
width="20.614058"
|
||||||
|
height="12.483703"
|
||||||
|
x="171.99832"
|
||||||
|
y="239.1203" />
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#999999"
|
||||||
|
borderopacity="1"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="10.5125"
|
||||||
|
inkscape:cx="40"
|
||||||
|
inkscape:cy="7.5"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
width="80px"
|
||||||
|
height="15px"
|
||||||
|
showborder="true"
|
||||||
|
inkscape:showpageshadow="false"
|
||||||
|
inkscape:window-width="935"
|
||||||
|
inkscape:window-height="624"
|
||||||
|
inkscape:window-x="50"
|
||||||
|
inkscape:window-y="160" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2284">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<g
|
||||||
|
id="BY-NC"
|
||||||
|
transform="matrix(0.9875019,0,0,0.9333518,-323.90064,-302.67749)">
|
||||||
|
<g
|
||||||
|
id="g3711"
|
||||||
|
transform="translate(158,87)">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.04161763;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3713"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
x="170.5"
|
||||||
|
y="237.86218" />
|
||||||
|
<rect
|
||||||
|
y="239.36218"
|
||||||
|
x="172"
|
||||||
|
height="12"
|
||||||
|
width="77"
|
||||||
|
id="rect3715"
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
style="fill:#abb1aa;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.46913578"
|
||||||
|
d="M 171.99996,239.37505 L 171.99996,251.37505 L 192.33474,251.37505 C 193.64339,249.62474 194.52652,247.59057 194.52652,245.37505 C 194.52652,243.17431 193.65859,241.1179 192.36599,239.37505 L 171.99996,239.37505 z"
|
||||||
|
id="path3717"
|
||||||
|
sodipodi:nodetypes="cccscc" />
|
||||||
|
<g
|
||||||
|
id="g3719"
|
||||||
|
transform="matrix(0.9612533,0,0,0.9612533,6.8341566,9.5069994)"
|
||||||
|
clip-path="url(#clipPath3442)">
|
||||||
|
<path
|
||||||
|
id="path3721"
|
||||||
|
cx="296.35416"
|
||||||
|
ry="22.939548"
|
||||||
|
cy="264.3577"
|
||||||
|
type="arc"
|
||||||
|
rx="22.939548"
|
||||||
|
d="M 190.06417,245.36206 C 190.06667,249.25405 186.91326,252.41072 183.02153,252.41323 C 179.12979,252.41572 175.97262,249.26256 175.97036,245.3706 C 175.97036,245.36783 175.97036,245.36507 175.97036,245.36206 C 175.9681,241.47007 179.12126,238.3134 183.013,238.31113 C 186.90524,238.30864 190.06191,241.46181 190.06417,245.3538 C 190.06417,245.35628 190.06417,245.35929 190.06417,245.36206 z"
|
||||||
|
style="opacity:1;fill:#ffffff" />
|
||||||
|
<path
|
||||||
|
d="M 188.74576,239.62226 C 190.30843,241.18492 191.08988,243.09869 191.08988,245.36206 C 191.08988,247.62592 190.32197,249.51913 188.78615,251.04165 C 187.15627,252.64521 185.22995,253.44672 183.00722,253.44672 C 180.81132,253.44672 178.91837,252.65172 177.32887,251.06174 C 175.73912,249.47198 174.94436,247.57226 174.94436,245.36206 C 174.94436,243.15235 175.73912,241.23908 177.32887,239.62226 C 178.87799,238.0591 180.77094,237.27764 183.00722,237.27764 C 185.2706,237.27764 187.18312,238.05909 188.74576,239.62226 z M 178.38093,240.67355 C 177.05978,242.008 176.39945,243.57116 176.39945,245.36429 C 176.39945,247.15694 177.05326,248.70682 178.36062,250.01393 C 179.66822,251.32153 181.22487,251.97509 183.03105,251.97509 C 184.83724,251.97509 186.40716,251.31502 187.74161,249.99412 C 189.0086,248.76725 189.64234,247.22467 189.64234,245.36429 C 189.64234,243.51799 188.99831,241.95084 187.71101,240.66354 C 186.42396,239.37649 184.86406,238.7327 183.03105,238.7327 C 181.19804,238.73271 179.64767,239.37975 178.38093,240.67355 z M 181.85761,244.57559 C 181.65573,244.13545 181.35354,243.91525 180.95051,243.91525 C 180.23802,243.91525 179.8819,244.39501 179.8819,245.35404 C 179.8819,246.31328 180.23802,246.79255 180.95051,246.79255 C 181.421,246.79255 181.75705,246.55908 181.95869,246.09111 L 182.94629,246.61701 C 182.47555,247.45339 181.76934,247.87168 180.82763,247.87168 C 180.10136,247.87168 179.51953,247.64899 179.08265,247.20409 C 178.64502,246.7587 178.42684,246.14477 178.42684,245.36206 C 178.42684,244.59313 178.65204,243.98271 179.10271,243.53056 C 179.55338,243.07838 180.11463,242.8524 180.7875,242.8524 C 181.78288,242.8524 182.49561,243.24465 182.92647,244.02835 L 181.85761,244.57559 z M 186.50398,244.57559 C 186.30184,244.13545 186.00567,243.91525 185.61517,243.91525 C 184.88839,243.91525 184.52474,244.39501 184.52474,245.35404 C 184.52474,246.31328 184.88839,246.79255 185.61517,246.79255 C 186.08642,246.79255 186.41644,246.55908 186.6048,246.09111 L 187.61447,246.61701 C 187.14448,247.45339 186.43926,247.87168 185.49931,247.87168 C 184.77403,247.87168 184.19346,247.64899 183.75683,247.20409 C 183.32096,246.7587 183.10254,246.14477 183.10254,245.36206 C 183.10254,244.59313 183.32422,243.98271 183.76737,243.53056 C 184.21026,243.07838 184.77404,242.8524 185.4592,242.8524 C 186.45282,242.8524 187.16455,243.24465 187.5939,244.02835 L 186.50398,244.57559 z"
|
||||||
|
id="path3723"
|
||||||
|
style="opacity:1" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
id="text3725"
|
||||||
|
d="M 357.4197,331.68502 C 357.66518,331.68502 357.85131,331.63144 357.9781,331.52427 C 358.10488,331.4171 358.16827,331.25904 358.16828,331.05005 C 358.16827,330.84377 358.10488,330.68703 357.9781,330.57986 C 357.85131,330.47002 357.66518,330.41509 357.4197,330.41509 L 356.55784,330.41509 L 356.55784,331.68502 L 357.4197,331.68502 M 357.4723,334.30926 C 357.78522,334.30926 358.0199,334.24363 358.17637,334.11235 C 358.33552,333.98107 358.4151,333.7828 358.4151,333.51757 C 358.4151,333.25769 358.33686,333.06346 358.18041,332.93485 C 358.02396,332.80358 357.78792,332.73793 357.4723,332.73793 L 356.55784,332.73793 L 356.55784,334.30926 L 357.4723,334.30926 M 358.92089,332.15119 C 359.25538,332.24765 359.51434,332.42581 359.69779,332.68569 C 359.88121,332.94557 359.97293,333.26439 359.97294,333.64215 C 359.97293,334.22085 359.776,334.6522 359.38217,334.93619 C 358.98833,335.22018 358.38947,335.36218 357.5856,335.36218 L 355.00001,335.36218 L 355.00001,329.36218 L 357.33878,329.36218 C 358.17771,329.36218 358.78466,329.48811 359.15962,329.73994 C 359.53727,329.99178 359.7261,330.395 359.7261,330.94958 C 359.7261,331.24162 359.65732,331.49078 359.51975,331.69708 C 359.38217,331.9007 359.18255,332.05207 358.92089,332.15119 M 359.83746,329.36218 L 361.54096,329.36218 L 362.91671,331.50015 L 364.29245,329.36218 L 366,329.36218 L 363.69764,332.83438 L 363.69764,335.36218 L 362.13982,335.36218 L 362.13982,332.83438 L 359.83746,329.36218 M 365.15837,332.40839 L 367.69946,332.40839 L 367.69946,333.57785 L 365.15837,333.57785 L 365.15837,332.40839 M 368.9174,329.36218 L 370.65732,329.36218 L 372.85447,333.47738 L 372.85447,329.36218 L 374.33138,329.36218 L 374.33138,335.36218 L 372.59146,335.36218 L 370.3943,331.24698 L 370.3943,335.36218 L 368.9174,335.36218 L 368.9174,329.36218 M 380.65173,335.03264 C 380.36579,335.17999 380.0677,335.29118 379.75749,335.36619 C 379.44727,335.44122 379.12357,335.47872 378.78638,335.47872 C 377.78019,335.47872 376.98307,335.20009 376.395,334.64282 C 375.80693,334.08288 375.5129,333.32467 375.5129,332.36821 C 375.5129,331.40907 375.80693,330.65087 376.395,330.0936 C 376.98307,329.53365 377.78019,329.25368 378.78638,329.25367 C 379.12357,329.25368 379.44727,329.29118 379.75749,329.3662 C 380.0677,329.44122 380.36579,329.55241 380.65173,329.69975 L 380.65173,330.94155 C 380.36309,330.74597 380.0785,330.60263 379.79796,330.51154 C 379.5174,330.42046 379.22203,330.37491 378.91181,330.3749 C 378.35611,330.37491 377.91911,330.55174 377.6008,330.90538 C 377.28249,331.25904 377.12333,331.74665 377.12333,332.36821 C 377.12333,332.9871 377.28249,333.47336 377.6008,333.82701 C 377.91911,334.18066 378.35611,334.35749 378.91181,334.35749 C 379.22203,334.35749 379.5174,334.31194 379.79796,334.22085 C 380.0785,334.12976 380.36309,333.98643 380.65173,333.79085 L 380.65173,335.03264"
|
||||||
|
style="font-size:8.25858784px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:'Bitstream Vera Sans'" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 9.4 KiB |
117
images/cc-by-nd.svg
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
id="svg2279"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.45+devel"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="by-nd.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape">
|
||||||
|
<defs
|
||||||
|
id="defs2281">
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath3442">
|
||||||
|
<rect
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3444"
|
||||||
|
width="20.614058"
|
||||||
|
height="12.483703"
|
||||||
|
x="171.99832"
|
||||||
|
y="239.1203" />
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#999999"
|
||||||
|
borderopacity="1"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="10.5125"
|
||||||
|
inkscape:cx="40"
|
||||||
|
inkscape:cy="7.5"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
width="80px"
|
||||||
|
height="15px"
|
||||||
|
showborder="true"
|
||||||
|
inkscape:showpageshadow="false"
|
||||||
|
inkscape:window-width="935"
|
||||||
|
inkscape:window-height="624"
|
||||||
|
inkscape:window-x="50"
|
||||||
|
inkscape:window-y="160" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2284">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<g
|
||||||
|
id="BY-ND"
|
||||||
|
transform="matrix(0.9875019,0,0,0.9333518,-323.90064,-384.81244)">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.04161763;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3767"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
x="328.5"
|
||||||
|
y="412.86218" />
|
||||||
|
<rect
|
||||||
|
y="414.36218"
|
||||||
|
x="330"
|
||||||
|
height="12"
|
||||||
|
width="77"
|
||||||
|
id="rect3769"
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
style="fill:#abb1aa;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.46913578"
|
||||||
|
d="M 329.99996,414.36218 L 329.99996,426.36218 L 350.33474,426.36218 C 351.64339,424.61187 352.52652,422.5777 352.52652,420.36218 C 352.52652,418.16144 351.65859,416.10503 350.36599,414.36218 L 329.99996,414.36218 z"
|
||||||
|
id="path3771"
|
||||||
|
sodipodi:nodetypes="cccscc" />
|
||||||
|
<g
|
||||||
|
id="g3773"
|
||||||
|
transform="matrix(0.9612533,0,0,0.9612533,164.83416,184.507)"
|
||||||
|
clip-path="url(#clipPath3442)">
|
||||||
|
<path
|
||||||
|
id="path3775"
|
||||||
|
cx="296.35416"
|
||||||
|
ry="22.939548"
|
||||||
|
cy="264.3577"
|
||||||
|
type="arc"
|
||||||
|
rx="22.939548"
|
||||||
|
d="M 190.06417,245.36206 C 190.06667,249.25405 186.91326,252.41072 183.02153,252.41323 C 179.12979,252.41572 175.97262,249.26256 175.97036,245.3706 C 175.97036,245.36783 175.97036,245.36507 175.97036,245.36206 C 175.9681,241.47007 179.12126,238.3134 183.013,238.31113 C 186.90524,238.30864 190.06191,241.46181 190.06417,245.3538 C 190.06417,245.35628 190.06417,245.35929 190.06417,245.36206 z"
|
||||||
|
style="opacity:1;fill:#ffffff" />
|
||||||
|
<path
|
||||||
|
d="M 188.74576,239.62226 C 190.30843,241.18492 191.08988,243.09869 191.08988,245.36206 C 191.08988,247.62592 190.32197,249.51913 188.78615,251.04165 C 187.15627,252.64521 185.22995,253.44672 183.00722,253.44672 C 180.81132,253.44672 178.91837,252.65172 177.32887,251.06174 C 175.73912,249.47198 174.94436,247.57226 174.94436,245.36206 C 174.94436,243.15235 175.73912,241.23908 177.32887,239.62226 C 178.87799,238.0591 180.77094,237.27764 183.00722,237.27764 C 185.2706,237.27764 187.18312,238.05909 188.74576,239.62226 z M 178.38093,240.67355 C 177.05978,242.008 176.39945,243.57116 176.39945,245.36429 C 176.39945,247.15694 177.05326,248.70682 178.36062,250.01393 C 179.66822,251.32153 181.22487,251.97509 183.03105,251.97509 C 184.83724,251.97509 186.40716,251.31502 187.74161,249.99412 C 189.0086,248.76725 189.64234,247.22467 189.64234,245.36429 C 189.64234,243.51799 188.99831,241.95084 187.71101,240.66354 C 186.42396,239.37649 184.86406,238.7327 183.03105,238.7327 C 181.19804,238.73271 179.64767,239.37975 178.38093,240.67355 z M 181.85761,244.57559 C 181.65573,244.13545 181.35354,243.91525 180.95051,243.91525 C 180.23802,243.91525 179.8819,244.39501 179.8819,245.35404 C 179.8819,246.31328 180.23802,246.79255 180.95051,246.79255 C 181.421,246.79255 181.75705,246.55908 181.95869,246.09111 L 182.94629,246.61701 C 182.47555,247.45339 181.76934,247.87168 180.82763,247.87168 C 180.10136,247.87168 179.51953,247.64899 179.08265,247.20409 C 178.64502,246.7587 178.42684,246.14477 178.42684,245.36206 C 178.42684,244.59313 178.65204,243.98271 179.10271,243.53056 C 179.55338,243.07838 180.11463,242.8524 180.7875,242.8524 C 181.78288,242.8524 182.49561,243.24465 182.92647,244.02835 L 181.85761,244.57559 z M 186.50398,244.57559 C 186.30184,244.13545 186.00567,243.91525 185.61517,243.91525 C 184.88839,243.91525 184.52474,244.39501 184.52474,245.35404 C 184.52474,246.31328 184.88839,246.79255 185.61517,246.79255 C 186.08642,246.79255 186.41644,246.55908 186.6048,246.09111 L 187.61447,246.61701 C 187.14448,247.45339 186.43926,247.87168 185.49931,247.87168 C 184.77403,247.87168 184.19346,247.64899 183.75683,247.20409 C 183.32096,246.7587 183.10254,246.14477 183.10254,245.36206 C 183.10254,244.59313 183.32422,243.98271 183.76737,243.53056 C 184.21026,243.07838 184.77404,242.8524 185.4592,242.8524 C 186.45282,242.8524 187.16455,243.24465 187.5939,244.02835 L 186.50398,244.57559 z"
|
||||||
|
id="path3777"
|
||||||
|
style="opacity:1" />
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
id="text3779"
|
||||||
|
d="M 357.4197,419.68502 C 357.66518,419.68502 357.85131,419.63145 357.9781,419.52427 C 358.10488,419.41711 358.16827,419.25904 358.16828,419.05006 C 358.16827,418.84377 358.10488,418.68704 357.9781,418.57987 C 357.85131,418.47002 357.66518,418.4151 357.4197,418.4151 L 356.55784,418.4151 L 356.55784,419.68502 L 357.4197,419.68502 M 357.4723,422.30927 C 357.78522,422.30927 358.0199,422.24363 358.17637,422.11235 C 358.33552,421.98107 358.4151,421.78281 358.4151,421.51758 C 358.4151,421.2577 358.33686,421.06346 358.18041,420.93485 C 358.02396,420.80358 357.78792,420.73794 357.4723,420.73794 L 356.55784,420.73794 L 356.55784,422.30927 L 357.4723,422.30927 M 358.92089,420.1512 C 359.25538,420.24766 359.51434,420.42582 359.69779,420.6857 C 359.88121,420.94558 359.97293,421.2644 359.97294,421.64215 C 359.97293,422.22086 359.776,422.65221 359.38217,422.93619 C 358.98833,423.22019 358.38947,423.36218 357.5856,423.36218 L 355.00001,423.36218 L 355.00001,417.36219 L 357.33878,417.36219 C 358.17771,417.36219 358.78466,417.48812 359.15962,417.73994 C 359.53727,417.99179 359.7261,418.39501 359.7261,418.94959 C 359.7261,419.24162 359.65732,419.49079 359.51975,419.69708 C 359.38217,419.90071 359.18255,420.05208 358.92089,420.1512 M 359.83746,417.36219 L 361.54096,417.36219 L 362.91671,419.50016 L 364.29245,417.36219 L 366,417.36219 L 363.69764,420.83439 L 363.69764,423.36218 L 362.13982,423.36218 L 362.13982,420.83439 L 359.83746,417.36219 M 365.15837,420.4084 L 367.69946,420.4084 L 367.69946,421.57785 L 365.15837,421.57785 L 365.15837,420.4084 M 368.9174,417.36219 L 370.65732,417.36219 L 372.85447,421.47739 L 372.85447,417.36219 L 374.33138,417.36219 L 374.33138,423.36218 L 372.59146,423.36218 L 370.3943,419.24698 L 370.3943,423.36218 L 368.9174,423.36218 L 368.9174,417.36219 M 377.41872,418.53164 L 377.41872,422.19273 L 377.97711,422.19273 C 378.61373,422.19273 379.09929,422.03599 379.43379,421.72253 C 379.77098,421.40907 379.93957,420.95361 379.93957,420.35616 C 379.93957,419.76138 379.77232,419.3086 379.43783,418.99782 C 379.10333,418.68704 378.61643,418.53164 377.97711,418.53164 L 377.41872,418.53164 M 375.86089,417.36219 L 377.50369,417.36219 C 378.42085,417.36219 379.10333,417.42783 379.55113,417.5591 C 380.00162,417.68771 380.38736,417.9074 380.70838,418.21818 C 380.99161,418.48878 381.20202,418.8009 381.3396,419.15455 C 381.47717,419.5082 381.54596,419.90874 381.54597,420.35616 C 381.54596,420.80894 381.47717,421.21349 381.3396,421.56982 C 381.20202,421.92347 380.99161,422.23559 380.70838,422.5062 C 380.38466,422.81697 379.99622,423.038 379.54304,423.16928 C 379.08984,423.29788 378.41007,423.36218 377.50369,423.36218 L 375.86089,423.36218 L 375.86089,417.36219"
|
||||||
|
style="font-size:8.25858784px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:'Bitstream Vera Sans'" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 9.2 KiB |
121
images/cc-by-sa.svg
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
id="svg2279"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.45+devel"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="by-sa.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape">
|
||||||
|
<defs
|
||||||
|
id="defs2281">
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath3442">
|
||||||
|
<rect
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3444"
|
||||||
|
width="20.614058"
|
||||||
|
height="12.483703"
|
||||||
|
x="171.99832"
|
||||||
|
y="239.1203" />
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#999999"
|
||||||
|
borderopacity="1"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="10.5125"
|
||||||
|
inkscape:cx="40"
|
||||||
|
inkscape:cy="7.5"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
width="80px"
|
||||||
|
height="15px"
|
||||||
|
showborder="true"
|
||||||
|
inkscape:showpageshadow="false"
|
||||||
|
inkscape:window-width="935"
|
||||||
|
inkscape:window-height="624"
|
||||||
|
inkscape:window-x="50"
|
||||||
|
inkscape:window-y="160" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2284">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<g
|
||||||
|
id="BY-SA"
|
||||||
|
transform="matrix(0.9875019,0,0,0.9333518,-323.90064,-356.81188)">
|
||||||
|
<g
|
||||||
|
id="g3747"
|
||||||
|
transform="translate(158,145)">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.04161763;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3749"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
x="170.5"
|
||||||
|
y="237.86218" />
|
||||||
|
<rect
|
||||||
|
y="239.36218"
|
||||||
|
x="172"
|
||||||
|
height="12"
|
||||||
|
width="77"
|
||||||
|
id="rect3751"
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
style="fill:#abb1aa;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.46913578"
|
||||||
|
d="M 171.99996,239.37505 L 171.99996,251.37505 L 192.33474,251.37505 C 193.64339,249.62474 194.52652,247.59057 194.52652,245.37505 C 194.52652,243.17431 193.65859,241.1179 192.36599,239.37505 L 171.99996,239.37505 z"
|
||||||
|
id="path3753"
|
||||||
|
sodipodi:nodetypes="cccscc" />
|
||||||
|
<g
|
||||||
|
id="g3755"
|
||||||
|
transform="matrix(0.9612533,0,0,0.9612533,6.8341566,9.5069994)"
|
||||||
|
clip-path="url(#clipPath3442)">
|
||||||
|
<path
|
||||||
|
id="path3757"
|
||||||
|
cx="296.35416"
|
||||||
|
ry="22.939548"
|
||||||
|
cy="264.3577"
|
||||||
|
type="arc"
|
||||||
|
rx="22.939548"
|
||||||
|
d="M 190.06417,245.36206 C 190.06667,249.25405 186.91326,252.41072 183.02153,252.41323 C 179.12979,252.41572 175.97262,249.26256 175.97036,245.3706 C 175.97036,245.36783 175.97036,245.36507 175.97036,245.36206 C 175.9681,241.47007 179.12126,238.3134 183.013,238.31113 C 186.90524,238.30864 190.06191,241.46181 190.06417,245.3538 C 190.06417,245.35628 190.06417,245.35929 190.06417,245.36206 z"
|
||||||
|
style="opacity:1;fill:#ffffff" />
|
||||||
|
<path
|
||||||
|
d="M 188.74576,239.62226 C 190.30843,241.18492 191.08988,243.09869 191.08988,245.36206 C 191.08988,247.62592 190.32197,249.51913 188.78615,251.04165 C 187.15627,252.64521 185.22995,253.44672 183.00722,253.44672 C 180.81132,253.44672 178.91837,252.65172 177.32887,251.06174 C 175.73912,249.47198 174.94436,247.57226 174.94436,245.36206 C 174.94436,243.15235 175.73912,241.23908 177.32887,239.62226 C 178.87799,238.0591 180.77094,237.27764 183.00722,237.27764 C 185.2706,237.27764 187.18312,238.05909 188.74576,239.62226 z M 178.38093,240.67355 C 177.05978,242.008 176.39945,243.57116 176.39945,245.36429 C 176.39945,247.15694 177.05326,248.70682 178.36062,250.01393 C 179.66822,251.32153 181.22487,251.97509 183.03105,251.97509 C 184.83724,251.97509 186.40716,251.31502 187.74161,249.99412 C 189.0086,248.76725 189.64234,247.22467 189.64234,245.36429 C 189.64234,243.51799 188.99831,241.95084 187.71101,240.66354 C 186.42396,239.37649 184.86406,238.7327 183.03105,238.7327 C 181.19804,238.73271 179.64767,239.37975 178.38093,240.67355 z M 181.85761,244.57559 C 181.65573,244.13545 181.35354,243.91525 180.95051,243.91525 C 180.23802,243.91525 179.8819,244.39501 179.8819,245.35404 C 179.8819,246.31328 180.23802,246.79255 180.95051,246.79255 C 181.421,246.79255 181.75705,246.55908 181.95869,246.09111 L 182.94629,246.61701 C 182.47555,247.45339 181.76934,247.87168 180.82763,247.87168 C 180.10136,247.87168 179.51953,247.64899 179.08265,247.20409 C 178.64502,246.7587 178.42684,246.14477 178.42684,245.36206 C 178.42684,244.59313 178.65204,243.98271 179.10271,243.53056 C 179.55338,243.07838 180.11463,242.8524 180.7875,242.8524 C 181.78288,242.8524 182.49561,243.24465 182.92647,244.02835 L 181.85761,244.57559 z M 186.50398,244.57559 C 186.30184,244.13545 186.00567,243.91525 185.61517,243.91525 C 184.88839,243.91525 184.52474,244.39501 184.52474,245.35404 C 184.52474,246.31328 184.88839,246.79255 185.61517,246.79255 C 186.08642,246.79255 186.41644,246.55908 186.6048,246.09111 L 187.61447,246.61701 C 187.14448,247.45339 186.43926,247.87168 185.49931,247.87168 C 184.77403,247.87168 184.19346,247.64899 183.75683,247.20409 C 183.32096,246.7587 183.10254,246.14477 183.10254,245.36206 C 183.10254,244.59313 183.32422,243.98271 183.76737,243.53056 C 184.21026,243.07838 184.77404,242.8524 185.4592,242.8524 C 186.45282,242.8524 187.16455,243.24465 187.5939,244.02835 L 186.50398,244.57559 z"
|
||||||
|
id="path3759"
|
||||||
|
style="opacity:1" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
id="text3761"
|
||||||
|
d="M 357.4197,389.68502 C 357.66518,389.68502 357.85131,389.63144 357.9781,389.52427 C 358.10488,389.4171 358.16827,389.25904 358.16828,389.05005 C 358.16827,388.84376 358.10488,388.68703 357.9781,388.57986 C 357.85131,388.47002 357.66518,388.4151 357.4197,388.41509 L 356.55784,388.41509 L 356.55784,389.68502 L 357.4197,389.68502 M 357.4723,392.30926 C 357.78522,392.30926 358.0199,392.24363 358.17637,392.11235 C 358.33552,391.98107 358.4151,391.78281 358.4151,391.51756 C 358.4151,391.25769 358.33686,391.06345 358.18041,390.93485 C 358.02396,390.80357 357.78792,390.73793 357.4723,390.73793 L 356.55784,390.73793 L 356.55784,392.30926 L 357.4723,392.30926 M 358.92089,390.15119 C 359.25538,390.24764 359.51434,390.42581 359.69779,390.68568 C 359.88121,390.94557 359.97293,391.26439 359.97294,391.64215 C 359.97293,392.22086 359.776,392.6522 359.38217,392.93619 C 358.98833,393.22018 358.38947,393.36218 357.5856,393.36218 L 355.00001,393.36218 L 355.00001,387.36218 L 357.33878,387.36218 C 358.17771,387.36218 358.78466,387.4881 359.15962,387.73994 C 359.53727,387.99178 359.7261,388.395 359.7261,388.94959 C 359.7261,389.24162 359.65732,389.49078 359.51975,389.69708 C 359.38217,389.90069 359.18255,390.05206 358.92089,390.15119 M 359.83746,387.36218 L 361.54096,387.36218 L 362.91671,389.50015 L 364.29245,387.36218 L 366,387.36218 L 363.69764,390.83438 L 363.69764,393.36218 L 362.13982,393.36218 L 362.13982,390.83438 L 359.83746,387.36218 M 365.15837,390.40839 L 367.69946,390.40839 L 367.69946,391.57785 L 365.15837,391.57785 L 365.15837,390.40839 M 373.12153,387.55105 L 373.12153,388.82099 C 372.78973,388.67363 372.46602,388.56245 372.15042,388.48743 C 371.8348,388.41241 371.53671,388.3749 371.25618,388.3749 C 370.88391,388.3749 370.60877,388.42581 370.43073,388.52761 C 370.25268,388.62943 370.16367,388.7875 370.16367,389.00183 C 370.16367,389.16259 370.22301,389.28851 370.3417,389.37959 C 370.4631,389.46801 370.68159,389.54436 370.99721,389.60866 L 371.66081,389.74127 C 372.33249,389.87524 372.80996,390.07886 373.0932,390.35213 C 373.37644,390.62541 373.51806,391.01389 373.51807,391.51756 C 373.51806,392.17933 373.3198,392.67229 372.92326,392.99647 C 372.52941,393.31797 371.92651,393.47872 371.11455,393.47872 C 370.7315,393.47872 370.3471,393.44255 369.96136,393.37021 C 369.5756,393.29788 369.18985,393.1907 368.80411,393.04871 L 368.80411,391.74262 C 369.18985,391.94624 369.56211,392.10029 369.92089,392.20477 C 370.28236,392.30658 370.63034,392.35749 370.96484,392.35749 C 371.30473,392.35749 371.56504,392.30123 371.74578,392.1887 C 371.92651,392.07618 372.01688,391.91542 372.01688,391.70645 C 372.01688,391.51891 371.95484,391.37423 371.83076,391.27242 C 371.70936,391.17062 371.46523,391.07952 371.09837,390.99915 L 370.49547,390.86653 C 369.89122,390.73793 369.44882,390.53297 369.16827,390.25166 C 368.89042,389.97035 368.7515,389.59125 368.7515,389.11435 C 368.7515,388.51691 368.94572,388.05743 369.33418,387.73592 C 369.72262,387.41442 370.28101,387.25367 371.00935,387.25367 C 371.34115,387.25367 371.68238,387.27912 372.03307,387.33003 C 372.38374,387.37826 372.74656,387.45193 373.12153,387.55105 M 378.55573,392.26907 L 376.11985,392.26907 L 375.73545,393.36218 L 374.16953,393.36218 L 376.40714,387.36218 L 378.2644,387.36218 L 380.50201,393.36218 L 378.93609,393.36218 L 378.55573,392.26907 M 376.5083,391.15588 L 378.16324,391.15588 L 377.3378,388.76874 L 376.5083,391.15588"
|
||||||
|
style="font-size:8.25858784px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:'Bitstream Vera Sans'" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 10 KiB |
121
images/cc-by.svg
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="80"
|
||||||
|
height="15"
|
||||||
|
id="svg2279"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.45+devel"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="by.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape">
|
||||||
|
<defs
|
||||||
|
id="defs2281">
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath3442">
|
||||||
|
<rect
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3444"
|
||||||
|
width="20.614058"
|
||||||
|
height="12.483703"
|
||||||
|
x="171.99832"
|
||||||
|
y="239.1203" />
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#999999"
|
||||||
|
borderopacity="1"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="10.5125"
|
||||||
|
inkscape:cx="40"
|
||||||
|
inkscape:cy="7.5"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
width="80px"
|
||||||
|
height="15px"
|
||||||
|
showborder="true"
|
||||||
|
inkscape:showpageshadow="false"
|
||||||
|
inkscape:window-width="935"
|
||||||
|
inkscape:window-height="624"
|
||||||
|
inkscape:window-x="50"
|
||||||
|
inkscape:window-y="160" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2284">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<g
|
||||||
|
id="BY"
|
||||||
|
transform="matrix(0.9875019,0,0,0.9333518,-323.90064,-271.87688)">
|
||||||
|
<g
|
||||||
|
transform="translate(158,54)"
|
||||||
|
id="g3693">
|
||||||
|
<rect
|
||||||
|
y="237.86218"
|
||||||
|
x="170.5"
|
||||||
|
height="15"
|
||||||
|
width="80"
|
||||||
|
id="rect3695"
|
||||||
|
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.04161763;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<rect
|
||||||
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.92243534;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect3697"
|
||||||
|
width="77"
|
||||||
|
height="12"
|
||||||
|
x="172"
|
||||||
|
y="239.36218" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cccscc"
|
||||||
|
id="path3699"
|
||||||
|
d="M 171.99996,239.37505 L 171.99996,251.37505 L 192.33474,251.37505 C 193.64339,249.62474 194.52652,247.59057 194.52652,245.37505 C 194.52652,243.17431 193.65859,241.1179 192.36599,239.37505 L 171.99996,239.37505 z"
|
||||||
|
style="fill:#abb1aa;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.46913578" />
|
||||||
|
<g
|
||||||
|
clip-path="url(#clipPath3442)"
|
||||||
|
transform="matrix(0.9612533,0,0,0.9612533,6.8341566,9.5069994)"
|
||||||
|
id="g3701">
|
||||||
|
<path
|
||||||
|
style="opacity:1;fill:#ffffff"
|
||||||
|
d="M 190.06417,245.36206 C 190.06667,249.25405 186.91326,252.41072 183.02153,252.41323 C 179.12979,252.41572 175.97262,249.26256 175.97036,245.3706 C 175.97036,245.36783 175.97036,245.36507 175.97036,245.36206 C 175.9681,241.47007 179.12126,238.3134 183.013,238.31113 C 186.90524,238.30864 190.06191,241.46181 190.06417,245.3538 C 190.06417,245.35628 190.06417,245.35929 190.06417,245.36206 z"
|
||||||
|
rx="22.939548"
|
||||||
|
type="arc"
|
||||||
|
cy="264.3577"
|
||||||
|
ry="22.939548"
|
||||||
|
cx="296.35416"
|
||||||
|
id="path3703" />
|
||||||
|
<path
|
||||||
|
style="opacity:1"
|
||||||
|
id="path3705"
|
||||||
|
d="M 188.74576,239.62226 C 190.30843,241.18492 191.08988,243.09869 191.08988,245.36206 C 191.08988,247.62592 190.32197,249.51913 188.78615,251.04165 C 187.15627,252.64521 185.22995,253.44672 183.00722,253.44672 C 180.81132,253.44672 178.91837,252.65172 177.32887,251.06174 C 175.73912,249.47198 174.94436,247.57226 174.94436,245.36206 C 174.94436,243.15235 175.73912,241.23908 177.32887,239.62226 C 178.87799,238.0591 180.77094,237.27764 183.00722,237.27764 C 185.2706,237.27764 187.18312,238.05909 188.74576,239.62226 z M 178.38093,240.67355 C 177.05978,242.008 176.39945,243.57116 176.39945,245.36429 C 176.39945,247.15694 177.05326,248.70682 178.36062,250.01393 C 179.66822,251.32153 181.22487,251.97509 183.03105,251.97509 C 184.83724,251.97509 186.40716,251.31502 187.74161,249.99412 C 189.0086,248.76725 189.64234,247.22467 189.64234,245.36429 C 189.64234,243.51799 188.99831,241.95084 187.71101,240.66354 C 186.42396,239.37649 184.86406,238.7327 183.03105,238.7327 C 181.19804,238.73271 179.64767,239.37975 178.38093,240.67355 z M 181.85761,244.57559 C 181.65573,244.13545 181.35354,243.91525 180.95051,243.91525 C 180.23802,243.91525 179.8819,244.39501 179.8819,245.35404 C 179.8819,246.31328 180.23802,246.79255 180.95051,246.79255 C 181.421,246.79255 181.75705,246.55908 181.95869,246.09111 L 182.94629,246.61701 C 182.47555,247.45339 181.76934,247.87168 180.82763,247.87168 C 180.10136,247.87168 179.51953,247.64899 179.08265,247.20409 C 178.64502,246.7587 178.42684,246.14477 178.42684,245.36206 C 178.42684,244.59313 178.65204,243.98271 179.10271,243.53056 C 179.55338,243.07838 180.11463,242.8524 180.7875,242.8524 C 181.78288,242.8524 182.49561,243.24465 182.92647,244.02835 L 181.85761,244.57559 z M 186.50398,244.57559 C 186.30184,244.13545 186.00567,243.91525 185.61517,243.91525 C 184.88839,243.91525 184.52474,244.39501 184.52474,245.35404 C 184.52474,246.31328 184.88839,246.79255 185.61517,246.79255 C 186.08642,246.79255 186.41644,246.55908 186.6048,246.09111 L 187.61447,246.61701 C 187.14448,247.45339 186.43926,247.87168 185.49931,247.87168 C 184.77403,247.87168 184.19346,247.64899 183.75683,247.20409 C 183.32096,246.7587 183.10254,246.14477 183.10254,245.36206 C 183.10254,244.59313 183.32422,243.98271 183.76737,243.53056 C 184.21026,243.07838 184.77404,242.8524 185.4592,242.8524 C 186.45282,242.8524 187.16455,243.24465 187.5939,244.02835 L 186.50398,244.57559 z" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
id="text3707"
|
||||||
|
d="M 357.4197,298.68502 C 357.66518,298.68503 357.85131,298.63145 357.9781,298.52427 C 358.10488,298.41711 358.16827,298.25904 358.16828,298.05007 C 358.16827,297.84377 358.10488,297.68704 357.9781,297.57987 C 357.85131,297.47003 357.66518,297.41511 357.4197,297.4151 L 356.55784,297.4151 L 356.55784,298.68502 L 357.4197,298.68502 M 357.4723,301.30928 C 357.78522,301.30928 358.0199,301.24363 358.17637,301.11235 C 358.33552,300.98108 358.4151,300.78282 358.4151,300.51758 C 358.4151,300.2577 358.33686,300.06346 358.18041,299.93486 C 358.02396,299.80358 357.78792,299.73795 357.4723,299.73794 L 356.55784,299.73794 L 356.55784,301.30928 L 357.4723,301.30928 M 358.92089,299.15121 C 359.25538,299.24766 359.51434,299.42582 359.69779,299.6857 C 359.88121,299.94558 359.97293,300.26439 359.97294,300.64216 C 359.97293,301.22086 359.776,301.6522 359.38217,301.9362 C 358.98833,302.22019 358.38947,302.36218 357.5856,302.36218 L 355.00001,302.36218 L 355.00001,296.36218 L 357.33878,296.36218 C 358.17771,296.36219 358.78466,296.48811 359.15962,296.73995 C 359.53727,296.9918 359.7261,297.39501 359.7261,297.94959 C 359.7261,298.24163 359.65732,298.49079 359.51975,298.69708 C 359.38217,298.9007 359.18255,299.05208 358.92089,299.15121 M 359.83746,296.36218 L 361.54096,296.36218 L 362.91671,298.50016 L 364.29245,296.36218 L 366,296.36218 L 363.69764,299.83439 L 363.69764,302.36218 L 362.13982,302.36218 L 362.13982,299.83439 L 359.83746,296.36218"
|
||||||
|
style="font-size:8.25858784px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:'Bitstream Vera Sans'" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 8.1 KiB |
72
images/cc-zero.svg
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
width="80px" height="15px" viewBox="0 0 80 15" enable-background="new 0 0 80 15" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<rect fill="#FFFFFF" width="80" height="15"/>
|
||||||
|
</g>
|
||||||
|
<path d="M22.797,2C23.8,3.595,24.39,5.477,24.39,7.501c0,2.023-0.589,3.904-1.592,5.499H80V2H22.797z"/>
|
||||||
|
<g>
|
||||||
|
<path id="text2809_5_" d="M12.42,2.031c-3.137,0-3.926,2.959-3.926,5.469s0.787,5.469,3.926,5.469
|
||||||
|
c3.137,0,3.924-2.959,3.924-5.469S15.557,2.031,12.42,2.031z M12.42,4.094c0.127,0,0.242,0.02,0.352,0.047
|
||||||
|
c0.227,0.193,0.336,0.463,0.121,0.838l-2.09,3.838C10.738,8.33,10.729,7.855,10.729,7.5C10.729,6.395,10.807,4.094,12.42,4.094z
|
||||||
|
M13.982,5.863c0.111,0.588,0.127,1.203,0.127,1.637c0,1.105-0.076,3.406-1.689,3.406c-0.127,0-0.244-0.012-0.354-0.039
|
||||||
|
c-0.02-0.006-0.039-0.014-0.061-0.021c-0.031-0.01-0.066-0.02-0.098-0.031c-0.359-0.154-0.586-0.43-0.26-0.92L13.982,5.863z"/>
|
||||||
|
<path d="M21.229,3.848c-0.465-1.152-1.143-2.172-2.035-3.066C18.907,0.496,18.607,0.241,18.302,0h-3.708
|
||||||
|
c1.248,0.348,2.367,1.009,3.354,1.998c0.736,0.736,1.299,1.576,1.684,2.516s0.578,1.936,0.578,2.986
|
||||||
|
c0,2.184-0.746,3.994-2.227,5.441c-0.771,0.746-1.635,1.32-2.596,1.717c-0.344,0.143-0.694,0.251-1.046,0.342h3.892
|
||||||
|
c0.336-0.257,0.664-0.529,0.972-0.834c0.895-0.871,1.57-1.871,2.021-3c0.465-1.143,0.693-2.363,0.693-3.666
|
||||||
|
C21.92,6.211,21.691,4.99,21.229,3.848z M6.957,12.975c-0.746-0.746-1.322-1.59-1.729-2.527c-0.396-0.951-0.6-1.93-0.6-2.947
|
||||||
|
c0-1.029,0.203-2.016,0.6-2.955c0.406-0.949,0.982-1.803,1.729-2.561C7.916,1.004,9.021,0.346,10.268,0H6.58
|
||||||
|
C6.289,0.235,6.004,0.484,5.732,0.762C4.816,1.676,4.117,2.721,3.631,3.887C3.156,5.041,2.92,6.244,2.92,7.5
|
||||||
|
c0,1.268,0.236,2.471,0.711,3.613s1.164,2.17,2.068,3.086C5.994,14.49,6.305,14.752,6.623,15h3.88
|
||||||
|
c-0.345-0.088-0.686-0.191-1.019-0.328C8.547,14.277,7.705,13.711,6.957,12.975z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path d="M80,0v15H0V0H80 M79.25,0.75H0.75v13.5h78.5V0.75L79.25,0.75z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFFFFF" d="M30.514,8.106c-0.279,0.233-0.678,0.35-1.197,0.35h-0.993v1.717h-0.991V5.398h2.05
|
||||||
|
c0.473,0,0.849,0.123,1.13,0.369s0.422,0.628,0.422,1.144C30.934,7.475,30.794,7.873,30.514,8.106z M29.753,6.387
|
||||||
|
c-0.127-0.106-0.304-0.159-0.531-0.159h-0.898v1.406h0.898c0.228,0,0.404-0.058,0.531-0.172c0.126-0.114,0.189-0.296,0.189-0.544
|
||||||
|
C29.942,6.669,29.879,6.492,29.753,6.387z"/>
|
||||||
|
<path fill="#FFFFFF" d="M31.733,5.398h1.015v2.933c0,0.328,0.038,0.567,0.116,0.718c0.12,0.268,0.383,0.401,0.787,0.401
|
||||||
|
c0.402,0,0.664-0.134,0.784-0.401c0.077-0.15,0.116-0.39,0.116-0.718V5.398h1.014v2.935c0,0.508-0.079,0.902-0.236,1.186
|
||||||
|
c-0.293,0.519-0.853,0.777-1.678,0.777c-0.826,0-1.387-0.259-1.682-0.777c-0.157-0.283-0.236-0.678-0.236-1.186V5.398z"/>
|
||||||
|
<path fill="#FFFFFF" d="M40.085,5.907c0.146,0.203,0.219,0.446,0.219,0.729c0,0.292-0.074,0.526-0.221,0.703
|
||||||
|
c-0.083,0.1-0.204,0.19-0.364,0.272c0.243,0.088,0.427,0.229,0.551,0.421s0.187,0.425,0.187,0.699
|
||||||
|
c0,0.283-0.071,0.537-0.213,0.761c-0.09,0.149-0.203,0.274-0.338,0.376c-0.152,0.117-0.332,0.196-0.539,0.24
|
||||||
|
c-0.208,0.043-0.433,0.064-0.675,0.064H36.54V5.398h2.308C39.43,5.407,39.842,5.577,40.085,5.907z M37.492,6.228V7.28h1.16
|
||||||
|
c0.208,0,0.376-0.039,0.505-0.118c0.13-0.079,0.194-0.219,0.194-0.419c0-0.223-0.086-0.369-0.257-0.44
|
||||||
|
c-0.147-0.05-0.335-0.075-0.563-0.075H37.492z M37.492,8.07v1.273h1.159c0.207,0,0.368-0.028,0.483-0.084
|
||||||
|
c0.209-0.104,0.313-0.303,0.313-0.597c0-0.248-0.101-0.419-0.304-0.512C39.031,8.1,38.872,8.073,38.667,8.07H37.492z"/>
|
||||||
|
<path fill="#FFFFFF" d="M41.313,5.398h0.998v3.916h2.384v0.858h-3.382V5.398z"/>
|
||||||
|
<path fill="#FFFFFF" d="M46.275,10.173h-0.991V5.398h0.991V10.173z"/>
|
||||||
|
<path fill="#FFFFFF" d="M47.665,5.897c0.385-0.393,0.874-0.59,1.468-0.59c0.795,0,1.376,0.264,1.743,0.791
|
||||||
|
c0.203,0.296,0.312,0.593,0.327,0.891h-0.998c-0.063-0.229-0.145-0.402-0.244-0.519c-0.178-0.207-0.441-0.311-0.79-0.311
|
||||||
|
c-0.355,0-0.636,0.146-0.841,0.438s-0.308,0.707-0.308,1.242s0.108,0.937,0.324,1.203c0.217,0.267,0.492,0.4,0.826,0.4
|
||||||
|
c0.342,0,0.603-0.114,0.782-0.344c0.1-0.123,0.182-0.308,0.247-0.554h0.991c-0.086,0.521-0.304,0.943-0.655,1.27
|
||||||
|
s-0.802,0.489-1.351,0.489c-0.68,0-1.214-0.221-1.603-0.661c-0.389-0.442-0.583-1.049-0.583-1.82
|
||||||
|
C47.002,6.991,47.224,6.349,47.665,5.897z"/>
|
||||||
|
<path fill="#FFFFFF" d="M54.797,5.502c0.335,0.11,0.606,0.312,0.813,0.606c0.167,0.237,0.28,0.494,0.341,0.771
|
||||||
|
s0.091,0.54,0.091,0.79c0,0.635-0.128,1.173-0.383,1.613c-0.346,0.594-0.88,0.891-1.602,0.891h-2.059V5.398h2.059
|
||||||
|
C54.354,5.403,54.601,5.438,54.797,5.502z M52.968,6.228v3.116h0.922c0.471,0,0.8-0.232,0.985-0.696
|
||||||
|
c0.102-0.255,0.152-0.559,0.152-0.91c0-0.486-0.076-0.859-0.229-1.119s-0.455-0.391-0.909-0.391H52.968z"/>
|
||||||
|
<path fill="#FFFFFF" d="M60.466,9.749c-0.36,0.371-0.882,0.557-1.564,0.557s-1.204-0.186-1.564-0.557
|
||||||
|
c-0.483-0.456-0.726-1.112-0.726-1.97c0-0.875,0.242-1.531,0.726-1.97c0.36-0.371,0.882-0.557,1.564-0.557
|
||||||
|
s1.204,0.186,1.564,0.557c0.481,0.438,0.722,1.095,0.722,1.97C61.188,8.637,60.947,9.293,60.466,9.749z M59.842,9.023
|
||||||
|
c0.232-0.292,0.349-0.706,0.349-1.244c0-0.535-0.116-0.949-0.349-1.242c-0.231-0.293-0.545-0.438-0.94-0.438
|
||||||
|
s-0.711,0.146-0.946,0.437c-0.235,0.292-0.353,0.706-0.353,1.244s0.117,0.952,0.353,1.244c0.235,0.291,0.551,0.437,0.946,0.437
|
||||||
|
S59.61,9.314,59.842,9.023z"/>
|
||||||
|
<path fill="#FFFFFF" d="M65.116,5.398h1.436v4.774h-0.929V6.943c0-0.093,0.001-0.223,0.003-0.39
|
||||||
|
c0.002-0.168,0.003-0.297,0.003-0.388l-0.904,4.007h-0.97l-0.898-4.007c0,0.091,0.001,0.22,0.003,0.388
|
||||||
|
c0.003,0.167,0.004,0.297,0.004,0.39v3.229h-0.93V5.398h1.451l0.869,3.754L65.116,5.398z"/>
|
||||||
|
<path fill="#FFFFFF" d="M68.84,5.398h1.129l1.689,4.774h-1.082l-0.314-0.981h-1.759l-0.323,0.981h-1.044L68.84,5.398z
|
||||||
|
M68.774,8.369h1.223L69.395,6.49L68.774,8.369z"/>
|
||||||
|
<path fill="#FFFFFF" d="M73.175,10.173h-0.991V5.398h0.991V10.173z"/>
|
||||||
|
<path fill="#FFFFFF" d="M74.093,5.398h1.046l1.895,3.329V5.398h0.93v4.774h-0.997l-1.943-3.388v3.388h-0.93V5.398z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 6.1 KiB |
BIN
images/favicon-16x16-next.png
Normal file
After Width: | Height: | Size: 435 B |
BIN
images/favicon-32x32-next.png
Normal file
After Width: | Height: | Size: 640 B |
BIN
images/hackerrank.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
images/loading.gif
Normal file
After Width: | Height: | Size: 35 B |
23
images/logo.svg
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xml:space="preserve"
|
||||||
|
enable-background="new 0 0 512 512"
|
||||||
|
viewBox="0 0 512 512"
|
||||||
|
height="512px"
|
||||||
|
width="512px"
|
||||||
|
y="0px"
|
||||||
|
x="0px"
|
||||||
|
id="NexT"
|
||||||
|
version="1.1"><metadata
|
||||||
|
id="metadata3390"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs3388" /><path
|
||||||
|
style="fill:#222222;fill-opacity:1"
|
||||||
|
id="path3384"
|
||||||
|
d="M 256.4,25.8 56.4,141.3 56,371.5 255.6,486.2 455.6,370.7 456,140.5 Z m 92.6,328.8 -18.4,10.7 -18.6,-11 0,0 -112,-142.3 0,142.6 -18.4,10.7 -18.6,-11 0,-197 18.5,-10.6 18.5,10.8 0,0 112,144.5 0,-144.6 18.5,-10.6 18.5,10.8 z" /></svg>
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/placeholder.gif
Normal file
After Width: | Height: | Size: 35 B |
13
images/quote-l.svg
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- License Agreement at http://iconmonstr.com/license/ -->
|
||||||
|
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
|
||||||
|
<path id="quote-5-icon" d="M55.178,332.895c-22.22-79.435,26.876-198.974,151.004-223.472l16.886,36.498
|
||||||
|
c-38.022,14.331-63.218,47.064-66.943,81.466c42.757,6.73,75.459,43.737,75.459,88.385
|
||||||
|
C231.583,415.014,85.181,440.162,55.178,332.895z M285.595,332.895c-22.22-79.435,26.876-198.974,151.004-223.472l16.886,36.498
|
||||||
|
c-38.022,14.331-63.218,47.064-66.943,81.466c42.757,6.73,75.459,43.737,75.459,88.385C462,415.014,315.598,440.162,285.595,332.895
|
||||||
|
z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 879 B |
12
images/quote-r.svg
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- License Agreement at http://iconmonstr.com/license/ -->
|
||||||
|
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
|
||||||
|
<path id="quote-6-icon" d="M456.822,179.107c22.219,79.434-26.877,198.973-151.004,223.471l-16.887-36.498
|
||||||
|
c38.023-14.33,63.219-47.064,66.943-81.465c-42.756-6.73-75.459-43.739-75.459-88.385
|
||||||
|
C280.416,96.986,426.818,71.837,456.822,179.107z M226.405,179.107c22.22,79.434-26.876,198.973-151.004,223.471L58.515,366.08
|
||||||
|
c38.022-14.33,63.218-47.064,66.943-81.465C82.702,277.885,50,240.876,50,196.23C50,96.986,196.402,71.837,226.405,179.107z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 868 B |
BIN
images/searchicon.png
Normal file
After Width: | Height: | Size: 766 B |
2977
index.html
Normal file
162
js/src/affix.js
Normal file
@ -0,0 +1,162 @@
|
|||||||
|
/* ========================================================================
|
||||||
|
* Bootstrap: affix.js v3.3.5
|
||||||
|
* http://getbootstrap.com/javascript/#affix
|
||||||
|
* ========================================================================
|
||||||
|
* Copyright 2011-2015 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
|
+function ($) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// AFFIX CLASS DEFINITION
|
||||||
|
// ======================
|
||||||
|
|
||||||
|
var Affix = function (element, options) {
|
||||||
|
this.options = $.extend({}, Affix.DEFAULTS, options)
|
||||||
|
|
||||||
|
this.$target = $(this.options.target)
|
||||||
|
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
|
||||||
|
.on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
|
||||||
|
|
||||||
|
this.$element = $(element)
|
||||||
|
this.affixed = null
|
||||||
|
this.unpin = null
|
||||||
|
this.pinnedOffset = null
|
||||||
|
|
||||||
|
this.checkPosition()
|
||||||
|
}
|
||||||
|
|
||||||
|
Affix.VERSION = '3.3.5'
|
||||||
|
|
||||||
|
Affix.RESET = 'affix affix-top affix-bottom'
|
||||||
|
|
||||||
|
Affix.DEFAULTS = {
|
||||||
|
offset: 0,
|
||||||
|
target: window
|
||||||
|
}
|
||||||
|
|
||||||
|
Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
|
||||||
|
var scrollTop = this.$target.scrollTop()
|
||||||
|
var position = this.$element.offset()
|
||||||
|
var targetHeight = this.$target.height()
|
||||||
|
|
||||||
|
if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
|
||||||
|
|
||||||
|
if (this.affixed == 'bottom') {
|
||||||
|
if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
|
||||||
|
return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
|
||||||
|
}
|
||||||
|
|
||||||
|
var initializing = this.affixed == null
|
||||||
|
var colliderTop = initializing ? scrollTop : position.top
|
||||||
|
var colliderHeight = initializing ? targetHeight : height
|
||||||
|
|
||||||
|
if (offsetTop != null && scrollTop <= offsetTop) return 'top'
|
||||||
|
if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
Affix.prototype.getPinnedOffset = function () {
|
||||||
|
if (this.pinnedOffset) return this.pinnedOffset
|
||||||
|
this.$element.removeClass(Affix.RESET).addClass('affix')
|
||||||
|
var scrollTop = this.$target.scrollTop()
|
||||||
|
var position = this.$element.offset()
|
||||||
|
return (this.pinnedOffset = position.top - scrollTop)
|
||||||
|
}
|
||||||
|
|
||||||
|
Affix.prototype.checkPositionWithEventLoop = function () {
|
||||||
|
setTimeout($.proxy(this.checkPosition, this), 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
Affix.prototype.checkPosition = function () {
|
||||||
|
if (!this.$element.is(':visible')) return
|
||||||
|
|
||||||
|
var height = this.$element.height()
|
||||||
|
var offset = this.options.offset
|
||||||
|
var offsetTop = offset.top
|
||||||
|
var offsetBottom = offset.bottom
|
||||||
|
var scrollHeight = Math.max($(document).height(), $(document.body).height())
|
||||||
|
|
||||||
|
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
||||||
|
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
|
||||||
|
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
|
||||||
|
|
||||||
|
var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
|
||||||
|
|
||||||
|
if (this.affixed != affix) {
|
||||||
|
if (this.unpin != null) this.$element.css('top', '')
|
||||||
|
|
||||||
|
var affixType = 'affix' + (affix ? '-' + affix : '')
|
||||||
|
var e = $.Event(affixType + '.bs.affix')
|
||||||
|
|
||||||
|
this.$element.trigger(e)
|
||||||
|
|
||||||
|
if (e.isDefaultPrevented()) return
|
||||||
|
|
||||||
|
this.affixed = affix
|
||||||
|
this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
|
||||||
|
|
||||||
|
this.$element
|
||||||
|
.removeClass(Affix.RESET)
|
||||||
|
.addClass(affixType)
|
||||||
|
.trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (affix == 'bottom') {
|
||||||
|
this.$element.offset({
|
||||||
|
top: scrollHeight - height - offsetBottom
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// AFFIX PLUGIN DEFINITION
|
||||||
|
// =======================
|
||||||
|
|
||||||
|
function Plugin(option) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
var data = $this.data('bs.affix')
|
||||||
|
var options = typeof option == 'object' && option
|
||||||
|
|
||||||
|
if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
|
||||||
|
if (typeof option == 'string') data[option]()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
var old = $.fn.affix
|
||||||
|
|
||||||
|
$.fn.affix = Plugin
|
||||||
|
$.fn.affix.Constructor = Affix
|
||||||
|
|
||||||
|
|
||||||
|
// AFFIX NO CONFLICT
|
||||||
|
// =================
|
||||||
|
|
||||||
|
$.fn.affix.noConflict = function () {
|
||||||
|
$.fn.affix = old
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// AFFIX DATA-API
|
||||||
|
// ==============
|
||||||
|
|
||||||
|
$(window).on('load', function () {
|
||||||
|
$('[data-spy="affix"]').each(function () {
|
||||||
|
var $spy = $(this)
|
||||||
|
var data = $spy.data()
|
||||||
|
|
||||||
|
data.offset = data.offset || {}
|
||||||
|
|
||||||
|
if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
|
||||||
|
if (data.offsetTop != null) data.offset.top = data.offsetTop
|
||||||
|
|
||||||
|
Plugin.call($spy, data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}(jQuery);
|
115
js/src/algolia-search.js
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
/* global instantsearch: true */
|
||||||
|
/*jshint camelcase: false */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
var algoliaSettings = CONFIG.algolia;
|
||||||
|
var isAlgoliaSettingsValid = algoliaSettings.applicationID &&
|
||||||
|
algoliaSettings.apiKey &&
|
||||||
|
algoliaSettings.indexName;
|
||||||
|
|
||||||
|
if (!isAlgoliaSettingsValid) {
|
||||||
|
window.console.error('Algolia Settings are invalid.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var search = instantsearch({
|
||||||
|
appId: algoliaSettings.applicationID,
|
||||||
|
apiKey: algoliaSettings.apiKey,
|
||||||
|
indexName: algoliaSettings.indexName,
|
||||||
|
searchFunction: function (helper) {
|
||||||
|
var searchInput = $('#algolia-search-input').find('input');
|
||||||
|
|
||||||
|
if (searchInput.val()) {
|
||||||
|
helper.search();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Registering Widgets
|
||||||
|
[
|
||||||
|
instantsearch.widgets.searchBox({
|
||||||
|
container: '#algolia-search-input',
|
||||||
|
placeholder: algoliaSettings.labels.input_placeholder
|
||||||
|
}),
|
||||||
|
|
||||||
|
instantsearch.widgets.hits({
|
||||||
|
container: '#algolia-hits',
|
||||||
|
hitsPerPage: algoliaSettings.hits.per_page || 10,
|
||||||
|
templates: {
|
||||||
|
item: function (data) {
|
||||||
|
var link = data.permalink ? data.permalink : (CONFIG.root + data.path);
|
||||||
|
return (
|
||||||
|
'<a href="' + link + '" class="algolia-hit-item-link">' +
|
||||||
|
data._highlightResult.title.value +
|
||||||
|
'</a>'
|
||||||
|
);
|
||||||
|
},
|
||||||
|
empty: function (data) {
|
||||||
|
return (
|
||||||
|
'<div id="algolia-hits-empty">' +
|
||||||
|
algoliaSettings.labels.hits_empty.replace(/\$\{query}/, data.query) +
|
||||||
|
'</div>'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cssClasses: {
|
||||||
|
item: 'algolia-hit-item'
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
|
||||||
|
instantsearch.widgets.stats({
|
||||||
|
container: '#algolia-stats',
|
||||||
|
templates: {
|
||||||
|
body: function (data) {
|
||||||
|
var stats = algoliaSettings.labels.hits_stats
|
||||||
|
.replace(/\$\{hits}/, data.nbHits)
|
||||||
|
.replace(/\$\{time}/, data.processingTimeMS);
|
||||||
|
return (
|
||||||
|
stats +
|
||||||
|
'<span class="algolia-powered">' +
|
||||||
|
' <img src="' + CONFIG.root + 'images/algolia_logo.svg" alt="Algolia" />' +
|
||||||
|
'</span>' +
|
||||||
|
'<hr />'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
|
||||||
|
instantsearch.widgets.pagination({
|
||||||
|
container: '#algolia-pagination',
|
||||||
|
scrollTo: false,
|
||||||
|
showFirstLast: false,
|
||||||
|
labels: {
|
||||||
|
first: '<i class="fa fa-angle-double-left"></i>',
|
||||||
|
last: '<i class="fa fa-angle-double-right"></i>',
|
||||||
|
previous: '<i class="fa fa-angle-left"></i>',
|
||||||
|
next: '<i class="fa fa-angle-right"></i>'
|
||||||
|
},
|
||||||
|
cssClasses: {
|
||||||
|
root: 'pagination',
|
||||||
|
item: 'pagination-item',
|
||||||
|
link: 'page-number',
|
||||||
|
active: 'current',
|
||||||
|
disabled: 'disabled-item'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
].forEach(search.addWidget, search);
|
||||||
|
|
||||||
|
search.start();
|
||||||
|
|
||||||
|
$('.popup-trigger').on('click', function(e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
$('body')
|
||||||
|
.append('<div class="search-popup-overlay algolia-pop-overlay"></div>')
|
||||||
|
.css('overflow', 'hidden');
|
||||||
|
$('.popup').toggle();
|
||||||
|
$('#algolia-search-input').find('input').focus();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.popup-btn-close').click(function(){
|
||||||
|
$('.popup').hide();
|
||||||
|
$('.algolia-pop-overlay').remove();
|
||||||
|
$('body').css('overflow', '');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
52
js/src/bootstrap.js
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
/* global NexT: true */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
$(document).trigger('bootstrap:before');
|
||||||
|
|
||||||
|
NexT.utils.isMobile() && window.FastClick.attach(document.body);
|
||||||
|
|
||||||
|
NexT.utils.lazyLoadPostsImages();
|
||||||
|
|
||||||
|
NexT.utils.registerESCKeyEvent();
|
||||||
|
|
||||||
|
NexT.utils.registerBackToTop();
|
||||||
|
|
||||||
|
// Mobile top menu bar.
|
||||||
|
$('.site-nav-toggle button').on('click', function () {
|
||||||
|
var $siteNav = $('.site-nav');
|
||||||
|
var ON_CLASS_NAME = 'site-nav-on';
|
||||||
|
var isSiteNavOn = $siteNav.hasClass(ON_CLASS_NAME);
|
||||||
|
var animateAction = isSiteNavOn ? 'slideUp' : 'slideDown';
|
||||||
|
var animateCallback = isSiteNavOn ? 'removeClass' : 'addClass';
|
||||||
|
|
||||||
|
$siteNav.stop()[animateAction]('fast', function () {
|
||||||
|
$siteNav[animateCallback](ON_CLASS_NAME);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register JS handlers by condition option.
|
||||||
|
* Need to add config option in Front-End at 'layout/_partials/head.swig' file.
|
||||||
|
*/
|
||||||
|
CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox();
|
||||||
|
CONFIG.tabs && NexT.utils.registerTabsTag();
|
||||||
|
|
||||||
|
NexT.utils.embeddedVideoTransformer();
|
||||||
|
NexT.utils.addActiveClassToMenuItem();
|
||||||
|
|
||||||
|
|
||||||
|
// Define Motion Sequence.
|
||||||
|
NexT.motion.integrator
|
||||||
|
.add(NexT.motion.middleWares.logo)
|
||||||
|
.add(NexT.motion.middleWares.menu)
|
||||||
|
.add(NexT.motion.middleWares.postList)
|
||||||
|
.add(NexT.motion.middleWares.sidebar);
|
||||||
|
|
||||||
|
$(document).trigger('motion:before');
|
||||||
|
|
||||||
|
// Bootstrap Motion.
|
||||||
|
CONFIG.motion.enable && NexT.motion.integrator.bootstrap();
|
||||||
|
|
||||||
|
$(document).trigger('bootstrap:after');
|
||||||
|
});
|
15
js/src/exturl.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* global NexT: true */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
// Create Base64 Object
|
||||||
|
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9+/=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/rn/g,"n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t},_utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}};
|
||||||
|
|
||||||
|
$('.exturl').on('click', function () {
|
||||||
|
var $exturl = $(this).attr('data-url');
|
||||||
|
var $decurl = Base64.decode($exturl);
|
||||||
|
window.open($decurl, '_blank');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
115
js/src/hook-duoshuo.js
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
/* global DUOSHUO: true */
|
||||||
|
/* jshint camelcase: false */
|
||||||
|
|
||||||
|
typeof DUOSHUO !== 'undefined' ?
|
||||||
|
hookTemplate() :
|
||||||
|
($('#duoshuo-script')[0].onload = hookTemplate);
|
||||||
|
|
||||||
|
|
||||||
|
function hookTemplate() {
|
||||||
|
var post = DUOSHUO.templates.post;
|
||||||
|
|
||||||
|
DUOSHUO.templates.post = function (e, t) {
|
||||||
|
var rs = post(e, t);
|
||||||
|
var agent = e.post.agent;
|
||||||
|
var userId = e.post.author.user_id;
|
||||||
|
var admin = '';
|
||||||
|
|
||||||
|
if (userId && (userId == CONFIG.duoshuo.userId)) {
|
||||||
|
admin = '<span class="duoshuo-ua-admin">' + CONFIG.duoshuo.author + '</span>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (agent && /^Mozilla/.test(agent)) {
|
||||||
|
rs = rs.replace(/<\/div><p>/, admin + getAgentInfo(agent) + '</div><p>');
|
||||||
|
}
|
||||||
|
|
||||||
|
return rs;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function getAgentInfo(string) {
|
||||||
|
$.ua.set(string);
|
||||||
|
|
||||||
|
var UNKNOWN = 'Unknown';
|
||||||
|
var sua = $.ua;
|
||||||
|
var separator = isMobile() ? '<br><br>' : '<span class="duoshuo-ua-separator"></span>';
|
||||||
|
var osName = sua.os.name || UNKNOWN;
|
||||||
|
var osVersion = sua.os.version || UNKNOWN;
|
||||||
|
var browserName = sua.browser.name || UNKNOWN;
|
||||||
|
var browserVersion = sua.browser.version || UNKNOWN;
|
||||||
|
var iconMapping = {
|
||||||
|
os: {
|
||||||
|
android : 'android',
|
||||||
|
linux : 'linux',
|
||||||
|
windows : 'windows',
|
||||||
|
ios : 'apple',
|
||||||
|
'mac os': 'apple',
|
||||||
|
unknown : 'desktop'
|
||||||
|
},
|
||||||
|
browser: {
|
||||||
|
chrome : 'chrome',
|
||||||
|
chromium : 'chrome',
|
||||||
|
firefox : 'firefox',
|
||||||
|
opera : 'opera',
|
||||||
|
safari : 'safari',
|
||||||
|
ie : 'internet-explorer',
|
||||||
|
wechat : 'wechat',
|
||||||
|
qq : 'qq',
|
||||||
|
unknown : 'globe'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var osIcon = iconMapping.os[osName.toLowerCase()];
|
||||||
|
var browserIcon = iconMapping.browser[getBrowserKey()];
|
||||||
|
|
||||||
|
return separator +
|
||||||
|
'<span class="duoshuo-ua-platform duoshuo-ua-platform-' + osName.toLowerCase() + '">' +
|
||||||
|
'<i class="fa fa-' + osIcon + '"></i>' +
|
||||||
|
osName + ' ' + osVersion +
|
||||||
|
'</span>' + separator +
|
||||||
|
'<span class="duoshuo-ua-browser duoshuo-ua-browser-' + browserName.toLowerCase() + '">' +
|
||||||
|
'<i class="fa fa-' + browserIcon + '"></i>' +
|
||||||
|
browserName + ' ' + browserVersion +
|
||||||
|
'</span>';
|
||||||
|
|
||||||
|
function getBrowserKey () {
|
||||||
|
var key = browserName.toLowerCase();
|
||||||
|
|
||||||
|
if (key.match(/WeChat/i)) {
|
||||||
|
return 'wechat';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (key.match(/QQBrowser/i)) {
|
||||||
|
return 'qq';
|
||||||
|
}
|
||||||
|
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
function isMobile() {
|
||||||
|
var userAgent = window.navigator.userAgent;
|
||||||
|
|
||||||
|
var isiPad = userAgent.match(/iPad/i) !== null;
|
||||||
|
var mobileUA = [
|
||||||
|
'iphone', 'android', 'phone', 'mobile',
|
||||||
|
'wap', 'netfront', 'x11', 'java', 'opera mobi',
|
||||||
|
'opera mini', 'ucweb', 'windows ce', 'symbian',
|
||||||
|
'symbianos', 'series', 'webos', 'sony',
|
||||||
|
'blackberry', 'dopod', 'nokia', 'samsung',
|
||||||
|
'palmsource', 'xda', 'pieplus', 'meizu',
|
||||||
|
'midp' ,'cldc' , 'motorola', 'foma',
|
||||||
|
'docomo', 'up.browser', 'up.link', 'blazer',
|
||||||
|
'helio', 'hosin', 'huawei', 'novarra',
|
||||||
|
'coolpad', 'webos', 'techfaith', 'palmsource',
|
||||||
|
'alcatel', 'amoi', 'ktouch', 'nexian',
|
||||||
|
'ericsson', 'philips', 'sagem', 'wellcom',
|
||||||
|
'bunjalloo', 'maui', 'smartphone', 'iemobile',
|
||||||
|
'spice', 'bird', 'zte-', 'longcos',
|
||||||
|
'pantech', 'gionee', 'portalmmm', 'jig browser',
|
||||||
|
'hiptop', 'benq', 'haier', '^lct',
|
||||||
|
'320x320', '240x320', '176x220'
|
||||||
|
];
|
||||||
|
var pattern = new RegExp(mobileUA.join('|'), 'i');
|
||||||
|
|
||||||
|
return !isiPad && userAgent.match(pattern);
|
||||||
|
}
|
||||||
|
}
|
165
js/src/js.cookie.js
Normal file
@ -0,0 +1,165 @@
|
|||||||
|
/*!
|
||||||
|
* JavaScript Cookie v2.1.4
|
||||||
|
* https://github.com/js-cookie/js-cookie
|
||||||
|
*
|
||||||
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
||||||
|
* Released under the MIT license
|
||||||
|
*/
|
||||||
|
;(function (factory) {
|
||||||
|
var registeredInModuleLoader = false;
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
define(factory);
|
||||||
|
registeredInModuleLoader = true;
|
||||||
|
}
|
||||||
|
if (typeof exports === 'object') {
|
||||||
|
module.exports = factory();
|
||||||
|
registeredInModuleLoader = true;
|
||||||
|
}
|
||||||
|
if (!registeredInModuleLoader) {
|
||||||
|
var OldCookies = window.Cookies;
|
||||||
|
var api = window.Cookies = factory();
|
||||||
|
api.noConflict = function () {
|
||||||
|
window.Cookies = OldCookies;
|
||||||
|
return api;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}(function () {
|
||||||
|
function extend () {
|
||||||
|
var i = 0;
|
||||||
|
var result = {};
|
||||||
|
for (; i < arguments.length; i++) {
|
||||||
|
var attributes = arguments[ i ];
|
||||||
|
for (var key in attributes) {
|
||||||
|
result[key] = attributes[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function init (converter) {
|
||||||
|
function api (key, value, attributes) {
|
||||||
|
var result;
|
||||||
|
if (typeof document === 'undefined') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Write
|
||||||
|
|
||||||
|
if (arguments.length > 1) {
|
||||||
|
attributes = extend({
|
||||||
|
path: '/'
|
||||||
|
}, api.defaults, attributes);
|
||||||
|
|
||||||
|
if (typeof attributes.expires === 'number') {
|
||||||
|
var expires = new Date();
|
||||||
|
expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);
|
||||||
|
attributes.expires = expires;
|
||||||
|
}
|
||||||
|
|
||||||
|
// We're using "expires" because "max-age" is not supported by IE
|
||||||
|
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
|
||||||
|
|
||||||
|
try {
|
||||||
|
result = JSON.stringify(value);
|
||||||
|
if (/^[\{\[]/.test(result)) {
|
||||||
|
value = result;
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
|
||||||
|
if (!converter.write) {
|
||||||
|
value = encodeURIComponent(String(value))
|
||||||
|
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
||||||
|
} else {
|
||||||
|
value = converter.write(value, key);
|
||||||
|
}
|
||||||
|
|
||||||
|
key = encodeURIComponent(String(key));
|
||||||
|
key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
|
||||||
|
key = key.replace(/[\(\)]/g, escape);
|
||||||
|
|
||||||
|
var stringifiedAttributes = '';
|
||||||
|
|
||||||
|
for (var attributeName in attributes) {
|
||||||
|
if (!attributes[attributeName]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
stringifiedAttributes += '; ' + attributeName;
|
||||||
|
if (attributes[attributeName] === true) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
stringifiedAttributes += '=' + attributes[attributeName];
|
||||||
|
}
|
||||||
|
return (document.cookie = key + '=' + value + stringifiedAttributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read
|
||||||
|
|
||||||
|
if (!key) {
|
||||||
|
result = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
// To prevent the for loop in the first place assign an empty array
|
||||||
|
// in case there are no cookies at all. Also prevents odd result when
|
||||||
|
// calling "get()"
|
||||||
|
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
||||||
|
var rdecode = /(%[0-9A-Z]{2})+/g;
|
||||||
|
var i = 0;
|
||||||
|
|
||||||
|
for (; i < cookies.length; i++) {
|
||||||
|
var parts = cookies[i].split('=');
|
||||||
|
var cookie = parts.slice(1).join('=');
|
||||||
|
|
||||||
|
if (cookie.charAt(0) === '"') {
|
||||||
|
cookie = cookie.slice(1, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
var name = parts[0].replace(rdecode, decodeURIComponent);
|
||||||
|
cookie = converter.read ?
|
||||||
|
converter.read(cookie, name) : converter(cookie, name) ||
|
||||||
|
cookie.replace(rdecode, decodeURIComponent);
|
||||||
|
|
||||||
|
if (this.json) {
|
||||||
|
try {
|
||||||
|
cookie = JSON.parse(cookie);
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (key === name) {
|
||||||
|
result = cookie;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!key) {
|
||||||
|
result[name] = cookie;
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
api.set = api;
|
||||||
|
api.get = function (key) {
|
||||||
|
return api.call(api, key);
|
||||||
|
};
|
||||||
|
api.getJSON = function () {
|
||||||
|
return api.apply({
|
||||||
|
json: true
|
||||||
|
}, [].slice.call(arguments));
|
||||||
|
};
|
||||||
|
api.defaults = {};
|
||||||
|
|
||||||
|
api.remove = function (key, attributes) {
|
||||||
|
api(key, '', extend(attributes, {
|
||||||
|
expires: -1
|
||||||
|
}));
|
||||||
|
};
|
||||||
|
|
||||||
|
api.withConverter = init;
|
||||||
|
|
||||||
|
return api;
|
||||||
|
}
|
||||||
|
|
||||||
|
return init(function () {});
|
||||||
|
}));
|
352
js/src/motion.js
Normal file
@ -0,0 +1,352 @@
|
|||||||
|
/* global NexT: true */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
NexT.motion = {};
|
||||||
|
|
||||||
|
var sidebarToggleLines = {
|
||||||
|
lines: [],
|
||||||
|
push: function (line) {
|
||||||
|
this.lines.push(line);
|
||||||
|
},
|
||||||
|
init: function () {
|
||||||
|
this.lines.forEach(function (line) {
|
||||||
|
line.init();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
arrow: function () {
|
||||||
|
this.lines.forEach(function (line) {
|
||||||
|
line.arrow();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
close: function () {
|
||||||
|
this.lines.forEach(function (line) {
|
||||||
|
line.close();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function SidebarToggleLine(settings) {
|
||||||
|
this.el = $(settings.el);
|
||||||
|
this.status = $.extend({}, {
|
||||||
|
init: {
|
||||||
|
width: '100%',
|
||||||
|
opacity: 1,
|
||||||
|
left: 0,
|
||||||
|
rotateZ: 0,
|
||||||
|
top: 0
|
||||||
|
}
|
||||||
|
}, settings.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
SidebarToggleLine.prototype.init = function () {
|
||||||
|
this.transform('init');
|
||||||
|
};
|
||||||
|
SidebarToggleLine.prototype.arrow = function () {
|
||||||
|
this.transform('arrow');
|
||||||
|
};
|
||||||
|
SidebarToggleLine.prototype.close = function () {
|
||||||
|
this.transform('close');
|
||||||
|
};
|
||||||
|
SidebarToggleLine.prototype.transform = function (status) {
|
||||||
|
this.el.velocity('stop').velocity(this.status[status]);
|
||||||
|
};
|
||||||
|
|
||||||
|
var sidebarToggleLine1st = new SidebarToggleLine({
|
||||||
|
el: '.sidebar-toggle-line-first',
|
||||||
|
status: {
|
||||||
|
arrow: {width: '50%', rotateZ: '-45deg', top: '2px'},
|
||||||
|
close: {width: '100%', rotateZ: '-45deg', top: '5px'}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var sidebarToggleLine2nd = new SidebarToggleLine({
|
||||||
|
el: '.sidebar-toggle-line-middle',
|
||||||
|
status: {
|
||||||
|
arrow: {width: '90%'},
|
||||||
|
close: {opacity: 0}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var sidebarToggleLine3rd = new SidebarToggleLine({
|
||||||
|
el: '.sidebar-toggle-line-last',
|
||||||
|
status: {
|
||||||
|
arrow: {width: '50%', rotateZ: '45deg', top: '-2px'},
|
||||||
|
close: {width: '100%', rotateZ: '45deg', top: '-5px'}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
sidebarToggleLines.push(sidebarToggleLine1st);
|
||||||
|
sidebarToggleLines.push(sidebarToggleLine2nd);
|
||||||
|
sidebarToggleLines.push(sidebarToggleLine3rd);
|
||||||
|
|
||||||
|
var SIDEBAR_WIDTH = '320px';
|
||||||
|
var SIDEBAR_DISPLAY_DURATION = 200;
|
||||||
|
var xPos, yPos;
|
||||||
|
|
||||||
|
var sidebarToggleMotion = {
|
||||||
|
toggleEl: $('.sidebar-toggle'),
|
||||||
|
dimmerEl: $('#sidebar-dimmer'),
|
||||||
|
sidebarEl: $('.sidebar'),
|
||||||
|
isSidebarVisible: false,
|
||||||
|
init: function () {
|
||||||
|
this.toggleEl.on('click', this.clickHandler.bind(this));
|
||||||
|
this.dimmerEl.on('click', this.clickHandler.bind(this));
|
||||||
|
this.toggleEl.on('mouseenter', this.mouseEnterHandler.bind(this));
|
||||||
|
this.toggleEl.on('mouseleave', this.mouseLeaveHandler.bind(this));
|
||||||
|
this.sidebarEl.on('touchstart', this.touchstartHandler.bind(this));
|
||||||
|
this.sidebarEl.on('touchend', this.touchendHandler.bind(this));
|
||||||
|
this.sidebarEl.on('touchmove', function(e){e.preventDefault();});
|
||||||
|
|
||||||
|
$(document)
|
||||||
|
.on('sidebar.isShowing', function () {
|
||||||
|
NexT.utils.isDesktop() && $('body').velocity('stop').velocity(
|
||||||
|
{paddingRight: SIDEBAR_WIDTH},
|
||||||
|
SIDEBAR_DISPLAY_DURATION
|
||||||
|
);
|
||||||
|
})
|
||||||
|
.on('sidebar.isHiding', function () {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
clickHandler: function () {
|
||||||
|
this.isSidebarVisible ? this.hideSidebar() : this.showSidebar();
|
||||||
|
this.isSidebarVisible = !this.isSidebarVisible;
|
||||||
|
},
|
||||||
|
mouseEnterHandler: function () {
|
||||||
|
if (this.isSidebarVisible) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
sidebarToggleLines.arrow();
|
||||||
|
},
|
||||||
|
mouseLeaveHandler: function () {
|
||||||
|
if (this.isSidebarVisible) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
sidebarToggleLines.init();
|
||||||
|
},
|
||||||
|
touchstartHandler: function(e) {
|
||||||
|
xPos = e.originalEvent.touches[0].clientX;
|
||||||
|
yPos = e.originalEvent.touches[0].clientY;
|
||||||
|
},
|
||||||
|
touchendHandler: function(e) {
|
||||||
|
var _xPos = e.originalEvent.changedTouches[0].clientX;
|
||||||
|
var _yPos = e.originalEvent.changedTouches[0].clientY;
|
||||||
|
if (_xPos-xPos > 30 && Math.abs(_yPos-yPos) < 20) {
|
||||||
|
this.clickHandler();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
showSidebar: function () {
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
sidebarToggleLines.close();
|
||||||
|
|
||||||
|
this.sidebarEl.velocity('stop').velocity({
|
||||||
|
width: SIDEBAR_WIDTH
|
||||||
|
}, {
|
||||||
|
display: 'block',
|
||||||
|
duration: SIDEBAR_DISPLAY_DURATION,
|
||||||
|
begin: function () {
|
||||||
|
$('.sidebar .motion-element').velocity(
|
||||||
|
'transition.slideRightIn',
|
||||||
|
{
|
||||||
|
stagger: 50,
|
||||||
|
drag: true,
|
||||||
|
complete: function () {
|
||||||
|
self.sidebarEl.trigger('sidebar.motion.complete');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
complete: function () {
|
||||||
|
self.sidebarEl.addClass('sidebar-active');
|
||||||
|
self.sidebarEl.trigger('sidebar.didShow');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
this.sidebarEl.trigger('sidebar.isShowing');
|
||||||
|
},
|
||||||
|
hideSidebar: function () {
|
||||||
|
NexT.utils.isDesktop() && $('body').velocity('stop').velocity({paddingRight: 0});
|
||||||
|
this.sidebarEl.find('.motion-element').velocity('stop').css('display', 'none');
|
||||||
|
this.sidebarEl.velocity('stop').velocity({width: 0}, {display: 'none'});
|
||||||
|
|
||||||
|
sidebarToggleLines.init();
|
||||||
|
|
||||||
|
this.sidebarEl.removeClass('sidebar-active');
|
||||||
|
this.sidebarEl.trigger('sidebar.isHiding');
|
||||||
|
|
||||||
|
// Prevent adding TOC to Overview if Overview was selected when close & open sidebar.
|
||||||
|
if (!!$('.post-toc-wrap')) {
|
||||||
|
if ($('.site-overview-wrap').css('display') === 'block') {
|
||||||
|
$('.post-toc-wrap').removeClass('motion-element');
|
||||||
|
} else {
|
||||||
|
$('.post-toc-wrap').addClass('motion-element');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
sidebarToggleMotion.init();
|
||||||
|
|
||||||
|
NexT.motion.integrator = {
|
||||||
|
queue: [],
|
||||||
|
cursor: -1,
|
||||||
|
add: function (fn) {
|
||||||
|
this.queue.push(fn);
|
||||||
|
return this;
|
||||||
|
},
|
||||||
|
next: function () {
|
||||||
|
this.cursor++;
|
||||||
|
var fn = this.queue[this.cursor];
|
||||||
|
$.isFunction(fn) && fn(NexT.motion.integrator);
|
||||||
|
},
|
||||||
|
bootstrap: function () {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
NexT.motion.middleWares = {
|
||||||
|
logo: function (integrator) {
|
||||||
|
var sequence = [];
|
||||||
|
var $brand = $('.brand');
|
||||||
|
var $title = $('.site-title');
|
||||||
|
var $subtitle = $('.site-subtitle');
|
||||||
|
var $logoLineTop = $('.logo-line-before i');
|
||||||
|
var $logoLineBottom = $('.logo-line-after i');
|
||||||
|
|
||||||
|
$brand.size() > 0 && sequence.push({
|
||||||
|
e: $brand,
|
||||||
|
p: {opacity: 1},
|
||||||
|
o: {duration: 200}
|
||||||
|
});
|
||||||
|
|
||||||
|
NexT.utils.isMist() && hasElement([$logoLineTop, $logoLineBottom]) &&
|
||||||
|
sequence.push(
|
||||||
|
getMistLineSettings($logoLineTop, '100%'),
|
||||||
|
getMistLineSettings($logoLineBottom, '-100%')
|
||||||
|
);
|
||||||
|
|
||||||
|
hasElement($title) && sequence.push({
|
||||||
|
e: $title,
|
||||||
|
p: {opacity: 1, top: 0},
|
||||||
|
o: { duration: 200 }
|
||||||
|
});
|
||||||
|
|
||||||
|
hasElement($subtitle) && sequence.push({
|
||||||
|
e: $subtitle,
|
||||||
|
p: {opacity: 1, top: 0},
|
||||||
|
o: {duration: 200}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (CONFIG.motion.async) {
|
||||||
|
integrator.next();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sequence.length > 0) {
|
||||||
|
sequence[sequence.length - 1].o.complete = function () {
|
||||||
|
integrator.next();
|
||||||
|
};
|
||||||
|
$.Velocity.RunSequence(sequence);
|
||||||
|
} else {
|
||||||
|
integrator.next();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function getMistLineSettings (element, translateX) {
|
||||||
|
return {
|
||||||
|
e: $(element),
|
||||||
|
p: {translateX: translateX},
|
||||||
|
o: {
|
||||||
|
duration: 500,
|
||||||
|
sequenceQueue: false
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if $elements exist.
|
||||||
|
* @param {jQuery|Array} $elements
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
function hasElement ($elements) {
|
||||||
|
$elements = Array.isArray($elements) ? $elements : [$elements];
|
||||||
|
return $elements.every(function ($element) {
|
||||||
|
return $.isFunction($element.size) && $element.size() > 0;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
menu: function (integrator) {
|
||||||
|
|
||||||
|
if (CONFIG.motion.async) {
|
||||||
|
integrator.next();
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.menu-item').velocity('transition.slideDownIn', {
|
||||||
|
display: null,
|
||||||
|
duration: 200,
|
||||||
|
complete: function () {
|
||||||
|
integrator.next();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
postList: function (integrator) {
|
||||||
|
//var $post = $('.post');
|
||||||
|
var $postBlock = $('.post-block, .pagination, .comments');
|
||||||
|
var $postBlockTransition = CONFIG.motion.transition.post_block;
|
||||||
|
var $postHeader = $('.post-header');
|
||||||
|
var $postHeaderTransition = CONFIG.motion.transition.post_header;
|
||||||
|
var $postBody = $('.post-body');
|
||||||
|
var $postBodyTransition = CONFIG.motion.transition.post_body;
|
||||||
|
var $collHeader = $('.collection-title, .archive-year');
|
||||||
|
var $collHeaderTransition = CONFIG.motion.transition.coll_header;
|
||||||
|
var $sidebarAffix = $('.sidebar-inner');
|
||||||
|
var $sidebarAffixTransition = CONFIG.motion.transition.sidebar;
|
||||||
|
var hasPost = $postBlock.size() > 0;
|
||||||
|
|
||||||
|
hasPost ? postMotion() : integrator.next();
|
||||||
|
|
||||||
|
if (CONFIG.motion.async) {
|
||||||
|
integrator.next();
|
||||||
|
}
|
||||||
|
|
||||||
|
function postMotion () {
|
||||||
|
var postMotionOptions = window.postMotionOptions || {
|
||||||
|
stagger: 100,
|
||||||
|
drag: true
|
||||||
|
};
|
||||||
|
postMotionOptions.complete = function () {
|
||||||
|
// After motion complete need to remove transform from sidebar to let affix work on Pisces | Gemini.
|
||||||
|
if (CONFIG.motion.transition.sidebar && (NexT.utils.isPisces() || NexT.utils.isGemini())) {
|
||||||
|
$sidebarAffix.css({ 'transform': 'initial' });
|
||||||
|
}
|
||||||
|
integrator.next();
|
||||||
|
};
|
||||||
|
|
||||||
|
//$post.velocity('transition.slideDownIn', postMotionOptions);
|
||||||
|
if (CONFIG.motion.transition.post_block) {
|
||||||
|
$postBlock.velocity('transition.' + $postBlockTransition, postMotionOptions);
|
||||||
|
}
|
||||||
|
if (CONFIG.motion.transition.post_header) {
|
||||||
|
$postHeader.velocity('transition.' + $postHeaderTransition, postMotionOptions);
|
||||||
|
}
|
||||||
|
if (CONFIG.motion.transition.post_body) {
|
||||||
|
$postBody.velocity('transition.' + $postBodyTransition, postMotionOptions);
|
||||||
|
}
|
||||||
|
if (CONFIG.motion.transition.coll_header) {
|
||||||
|
$collHeader.velocity('transition.' + $collHeaderTransition, postMotionOptions);
|
||||||
|
}
|
||||||
|
// Only for Pisces | Gemini.
|
||||||
|
if (CONFIG.motion.transition.sidebar && (NexT.utils.isPisces() || NexT.utils.isGemini())) {
|
||||||
|
$sidebarAffix.velocity('transition.' + $sidebarAffixTransition, postMotionOptions);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
sidebar: function (integrator) {
|
||||||
|
if (CONFIG.sidebar.display === 'always') {
|
||||||
|
NexT.utils.displaySidebar();
|
||||||
|
}
|
||||||
|
integrator.next();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
});
|
99
js/src/post-details.js
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
/* global NexT: true */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
initScrollSpy();
|
||||||
|
|
||||||
|
function initScrollSpy () {
|
||||||
|
var tocSelector = '.post-toc';
|
||||||
|
var $tocElement = $(tocSelector);
|
||||||
|
var activeCurrentSelector = '.active-current';
|
||||||
|
|
||||||
|
$tocElement
|
||||||
|
.on('activate.bs.scrollspy', function () {
|
||||||
|
var $currentActiveElement = $(tocSelector + ' .active').last();
|
||||||
|
|
||||||
|
removeCurrentActiveClass();
|
||||||
|
$currentActiveElement.addClass('active-current');
|
||||||
|
|
||||||
|
// Scrolling to center active TOC element if TOC content is taller then viewport.
|
||||||
|
$tocElement.scrollTop($currentActiveElement.offset().top - $tocElement.offset().top + $tocElement.scrollTop() - ($tocElement.height() / 2));
|
||||||
|
})
|
||||||
|
.on('clear.bs.scrollspy', removeCurrentActiveClass);
|
||||||
|
|
||||||
|
$('body').scrollspy({ target: tocSelector });
|
||||||
|
|
||||||
|
function removeCurrentActiveClass () {
|
||||||
|
$(tocSelector + ' ' + activeCurrentSelector)
|
||||||
|
.removeClass(activeCurrentSelector.substring(1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
var html = $('html');
|
||||||
|
var TAB_ANIMATE_DURATION = 200;
|
||||||
|
var hasVelocity = $.isFunction(html.velocity);
|
||||||
|
|
||||||
|
$('.sidebar-nav li').on('click', function () {
|
||||||
|
var item = $(this);
|
||||||
|
var activeTabClassName = 'sidebar-nav-active';
|
||||||
|
var activePanelClassName = 'sidebar-panel-active';
|
||||||
|
if (item.hasClass(activeTabClassName)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var currentTarget = $('.' + activePanelClassName);
|
||||||
|
var target = $('.' + item.data('target'));
|
||||||
|
|
||||||
|
hasVelocity ?
|
||||||
|
currentTarget.velocity('transition.slideUpOut', TAB_ANIMATE_DURATION, function () {
|
||||||
|
target
|
||||||
|
.velocity('stop')
|
||||||
|
.velocity('transition.slideDownIn', TAB_ANIMATE_DURATION)
|
||||||
|
.addClass(activePanelClassName);
|
||||||
|
}) :
|
||||||
|
currentTarget.animate({ opacity: 0 }, TAB_ANIMATE_DURATION, function () {
|
||||||
|
currentTarget.hide();
|
||||||
|
target
|
||||||
|
.stop()
|
||||||
|
.css({'opacity': 0, 'display': 'block'})
|
||||||
|
.animate({ opacity: 1 }, TAB_ANIMATE_DURATION, function () {
|
||||||
|
currentTarget.removeClass(activePanelClassName);
|
||||||
|
target.addClass(activePanelClassName);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
item.siblings().removeClass(activeTabClassName);
|
||||||
|
item.addClass(activeTabClassName);
|
||||||
|
});
|
||||||
|
|
||||||
|
// TOC item animation navigate & prevent #item selector in adress bar.
|
||||||
|
$('.post-toc a').on('click', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
var targetSelector = NexT.utils.escapeSelector(this.getAttribute('href'));
|
||||||
|
var offset = $(targetSelector).offset().top;
|
||||||
|
|
||||||
|
hasVelocity ?
|
||||||
|
html.velocity('stop').velocity('scroll', {
|
||||||
|
offset: offset + 'px',
|
||||||
|
mobileHA: false
|
||||||
|
}) :
|
||||||
|
$('html, body').stop().animate({
|
||||||
|
scrollTop: offset
|
||||||
|
}, 500);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Expand sidebar on post detail page by default, when post has a toc.
|
||||||
|
var $tocContent = $('.post-toc-content');
|
||||||
|
var isSidebarCouldDisplay = CONFIG.sidebar.display === 'post' ||
|
||||||
|
CONFIG.sidebar.display === 'always';
|
||||||
|
var hasTOC = $tocContent.length > 0 && $tocContent.html().trim().length > 0;
|
||||||
|
if (isSidebarCouldDisplay && hasTOC) {
|
||||||
|
CONFIG.motion.enable ?
|
||||||
|
(NexT.motion.middleWares.sidebar = function () {
|
||||||
|
NexT.utils.displaySidebar();
|
||||||
|
}) : NexT.utils.displaySidebar();
|
||||||
|
}
|
||||||
|
});
|
57
js/src/schemes/pisces.js
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
var sidebarInner = $('.sidebar-inner');
|
||||||
|
|
||||||
|
initAffix();
|
||||||
|
resizeListener();
|
||||||
|
|
||||||
|
function initAffix () {
|
||||||
|
var headerOffset = getHeaderOffset(),
|
||||||
|
footerOffset = getFooterOffset(),
|
||||||
|
sidebarHeight = $('#sidebar').height() + NexT.utils.getSidebarb2tHeight(),
|
||||||
|
contentHeight = $('#content').height();
|
||||||
|
|
||||||
|
// Not affix if sidebar taller then content (to prevent bottom jumping).
|
||||||
|
if (headerOffset + sidebarHeight < contentHeight) {
|
||||||
|
sidebarInner.affix({
|
||||||
|
offset: {
|
||||||
|
top: headerOffset - CONFIG.sidebar.offset,
|
||||||
|
bottom: footerOffset
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
setSidebarMarginTop(headerOffset).css({ 'margin-left': 'initial' });
|
||||||
|
}
|
||||||
|
|
||||||
|
function resizeListener () {
|
||||||
|
var mql = window.matchMedia('(min-width: 991px)');
|
||||||
|
mql.addListener(function(e){
|
||||||
|
if(e.matches){
|
||||||
|
recalculateAffixPosition();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getHeaderOffset () {
|
||||||
|
return $('.header-inner').height() + CONFIG.sidebar.offset;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getFooterOffset () {
|
||||||
|
var footerInner = $('.footer-inner'),
|
||||||
|
footerMargin = footerInner.outerHeight(true) - footerInner.outerHeight(),
|
||||||
|
footerOffset = footerInner.outerHeight(true) + footerMargin;
|
||||||
|
return footerOffset;
|
||||||
|
}
|
||||||
|
|
||||||
|
function setSidebarMarginTop (headerOffset) {
|
||||||
|
return $('#sidebar').css({ 'margin-top': headerOffset });
|
||||||
|
}
|
||||||
|
|
||||||
|
function recalculateAffixPosition () {
|
||||||
|
$(window).off('.affix');
|
||||||
|
sidebarInner.removeData('bs.affix').removeClass('affix affix-top affix-bottom');
|
||||||
|
initAffix();
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
23
js/src/scroll-cookie.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
// Set relative link path (without domain)
|
||||||
|
var rpath = window.location.href.replace(window.location.origin, "");
|
||||||
|
|
||||||
|
// Write position in cookie
|
||||||
|
var timeout;
|
||||||
|
$(window).on("scroll", function() {
|
||||||
|
clearTimeout(timeout);
|
||||||
|
timeout = setTimeout(function () {
|
||||||
|
Cookies.set("scroll-cookie", ($(window).scrollTop() + "|" + rpath), { expires: 365, path: '' });
|
||||||
|
}, 250);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Read position from cookie
|
||||||
|
if (Cookies.get("scroll-cookie") !== undefined) {
|
||||||
|
var cvalues = Cookies.get("scroll-cookie").split('|');
|
||||||
|
if (cvalues[1] == rpath) {
|
||||||
|
$(window).scrollTop(cvalues[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
182
js/src/scrollspy.js
Normal file
@ -0,0 +1,182 @@
|
|||||||
|
/* ========================================================================
|
||||||
|
* Bootstrap: scrollspy.js v3.3.2
|
||||||
|
* http://getbootstrap.com/javascript/#scrollspy
|
||||||
|
* ========================================================================
|
||||||
|
* Copyright 2011-2015 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
* ======================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom by iissnan
|
||||||
|
*
|
||||||
|
* - Add a `clear.bs.scrollspy` event.
|
||||||
|
* - Esacpe targets selector.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
+function ($) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// SCROLLSPY CLASS DEFINITION
|
||||||
|
// ==========================
|
||||||
|
|
||||||
|
function ScrollSpy(element, options) {
|
||||||
|
this.$body = $(document.body)
|
||||||
|
this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)
|
||||||
|
this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
|
||||||
|
this.selector = (this.options.target || '') + ' .nav li > a'
|
||||||
|
this.offsets = []
|
||||||
|
this.targets = []
|
||||||
|
this.activeTarget = null
|
||||||
|
this.scrollHeight = 0
|
||||||
|
|
||||||
|
this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))
|
||||||
|
this.refresh()
|
||||||
|
this.process()
|
||||||
|
}
|
||||||
|
|
||||||
|
ScrollSpy.VERSION = '3.3.2'
|
||||||
|
|
||||||
|
ScrollSpy.DEFAULTS = {
|
||||||
|
offset: 10
|
||||||
|
}
|
||||||
|
|
||||||
|
ScrollSpy.prototype.getScrollHeight = function () {
|
||||||
|
return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
|
||||||
|
}
|
||||||
|
|
||||||
|
ScrollSpy.prototype.refresh = function () {
|
||||||
|
var that = this
|
||||||
|
var offsetMethod = 'offset'
|
||||||
|
var offsetBase = 0
|
||||||
|
|
||||||
|
this.offsets = []
|
||||||
|
this.targets = []
|
||||||
|
this.scrollHeight = this.getScrollHeight()
|
||||||
|
|
||||||
|
if (!$.isWindow(this.$scrollElement[0])) {
|
||||||
|
offsetMethod = 'position'
|
||||||
|
offsetBase = this.$scrollElement.scrollTop()
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$body
|
||||||
|
.find(this.selector)
|
||||||
|
.map(function () {
|
||||||
|
var $el = $(this)
|
||||||
|
var href = $el.data('target') || $el.attr('href')
|
||||||
|
var $href = /^#./.test(href) && $(NexT.utils.escapeSelector(href)) // Need to escape selector.
|
||||||
|
|
||||||
|
return ($href
|
||||||
|
&& $href.length
|
||||||
|
&& $href.is(':visible')
|
||||||
|
&& [[$href[offsetMethod]().top + offsetBase, href]]) || null
|
||||||
|
})
|
||||||
|
.sort(function (a, b) { return a[0] - b[0] })
|
||||||
|
.each(function () {
|
||||||
|
that.offsets.push(this[0])
|
||||||
|
that.targets.push(this[1])
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ScrollSpy.prototype.process = function () {
|
||||||
|
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
||||||
|
var scrollHeight = this.getScrollHeight()
|
||||||
|
var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height()
|
||||||
|
var offsets = this.offsets
|
||||||
|
var targets = this.targets
|
||||||
|
var activeTarget = this.activeTarget
|
||||||
|
var i
|
||||||
|
|
||||||
|
if (this.scrollHeight != scrollHeight) {
|
||||||
|
this.refresh()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (scrollTop >= maxScroll) {
|
||||||
|
return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (activeTarget && scrollTop < offsets[0]) {
|
||||||
|
$(this.selector).trigger('clear.bs.scrollspy') // Add a custom event.
|
||||||
|
this.activeTarget = null
|
||||||
|
return this.clear()
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = offsets.length; i--;) {
|
||||||
|
activeTarget != targets[i]
|
||||||
|
&& scrollTop >= offsets[i]
|
||||||
|
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
|
||||||
|
&& this.activate(targets[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ScrollSpy.prototype.activate = function (target) {
|
||||||
|
this.activeTarget = target
|
||||||
|
|
||||||
|
this.clear()
|
||||||
|
|
||||||
|
var selector = this.selector +
|
||||||
|
'[data-target="' + target + '"],' +
|
||||||
|
this.selector + '[href="' + target + '"]'
|
||||||
|
|
||||||
|
var active = $(selector)
|
||||||
|
.parents('li')
|
||||||
|
.addClass('active')
|
||||||
|
|
||||||
|
if (active.parent('.dropdown-menu').length) {
|
||||||
|
active = active
|
||||||
|
.closest('li.dropdown')
|
||||||
|
.addClass('active')
|
||||||
|
}
|
||||||
|
|
||||||
|
active.trigger('activate.bs.scrollspy')
|
||||||
|
}
|
||||||
|
|
||||||
|
ScrollSpy.prototype.clear = function () {
|
||||||
|
$(this.selector)
|
||||||
|
.parentsUntil(this.options.target, '.active')
|
||||||
|
.removeClass('active')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// SCROLLSPY PLUGIN DEFINITION
|
||||||
|
// ===========================
|
||||||
|
|
||||||
|
function Plugin(option) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
var data = $this.data('bs.scrollspy')
|
||||||
|
var options = typeof option == 'object' && option
|
||||||
|
|
||||||
|
if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
|
||||||
|
if (typeof option == 'string') data[option]()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
var old = $.fn.scrollspy
|
||||||
|
|
||||||
|
$.fn.scrollspy = Plugin
|
||||||
|
$.fn.scrollspy.Constructor = ScrollSpy
|
||||||
|
|
||||||
|
|
||||||
|
// SCROLLSPY NO CONFLICT
|
||||||
|
// =====================
|
||||||
|
|
||||||
|
$.fn.scrollspy.noConflict = function () {
|
||||||
|
$.fn.scrollspy = old
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// SCROLLSPY DATA-API
|
||||||
|
// ==================
|
||||||
|
|
||||||
|
$(window).on('load.bs.scrollspy.data-api', function () {
|
||||||
|
$('[data-spy="scroll"]').each(function () {
|
||||||
|
var $spy = $(this)
|
||||||
|
Plugin.call($spy, $spy.data())
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}(jQuery);
|
339
js/src/utils.js
Normal file
@ -0,0 +1,339 @@
|
|||||||
|
/* global NexT: true */
|
||||||
|
|
||||||
|
NexT.utils = NexT.$u = {
|
||||||
|
/**
|
||||||
|
* Wrap images with fancybox support.
|
||||||
|
*/
|
||||||
|
wrapImageWithFancyBox: function () {
|
||||||
|
$('.content img')
|
||||||
|
.not('[hidden]')
|
||||||
|
.not('.group-picture img, .post-gallery img')
|
||||||
|
.each(function () {
|
||||||
|
var $image = $(this);
|
||||||
|
var imageTitle = $image.attr('title');
|
||||||
|
var $imageWrapLink = $image.parent('a');
|
||||||
|
|
||||||
|
if ($imageWrapLink.size() < 1) {
|
||||||
|
var imageLink = ($image.attr('data-original')) ? this.getAttribute('data-original') : this.getAttribute('src');
|
||||||
|
$imageWrapLink = $image.wrap('<a href="' + imageLink + '"></a>').parent('a');
|
||||||
|
}
|
||||||
|
|
||||||
|
$imageWrapLink.addClass('fancybox fancybox.image');
|
||||||
|
$imageWrapLink.attr('rel', 'group');
|
||||||
|
|
||||||
|
if (imageTitle) {
|
||||||
|
$imageWrapLink.append('<p class="image-caption">' + imageTitle + '</p>');
|
||||||
|
|
||||||
|
//make sure img title tag will show correctly in fancybox
|
||||||
|
$imageWrapLink.attr('title', imageTitle);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.fancybox').fancybox({
|
||||||
|
helpers: {
|
||||||
|
overlay: {
|
||||||
|
locked: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
lazyLoadPostsImages: function () {
|
||||||
|
$('#posts').find('img').lazyload({
|
||||||
|
//placeholder: '/images/loading.gif',
|
||||||
|
effect: 'fadeIn',
|
||||||
|
threshold : 0
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tabs tag listener (without twitter bootstrap).
|
||||||
|
*/
|
||||||
|
registerTabsTag: function () {
|
||||||
|
var tNav = '.tabs ul.nav-tabs ';
|
||||||
|
|
||||||
|
// Binding `nav-tabs` & `tab-content` by real time permalink changing.
|
||||||
|
$(function() {
|
||||||
|
$(window).bind('hashchange', function() {
|
||||||
|
var tHash = location.hash;
|
||||||
|
if (tHash !== '') {
|
||||||
|
$(tNav + 'li:has(a[href="' + tHash + '"])').addClass('active').siblings().removeClass('active');
|
||||||
|
$(tHash).addClass('active').siblings().removeClass('active');
|
||||||
|
}
|
||||||
|
}).trigger('hashchange');
|
||||||
|
});
|
||||||
|
|
||||||
|
$(tNav + '.tab').on('click', function (href) {
|
||||||
|
href.preventDefault();
|
||||||
|
// Prevent selected tab to select again.
|
||||||
|
if(!$(this).hasClass('active')){
|
||||||
|
|
||||||
|
// Add & Remove active class on `nav-tabs` & `tab-content`.
|
||||||
|
$(this).addClass('active').siblings().removeClass('active');
|
||||||
|
var tActive = $(this).find('a').attr('href');
|
||||||
|
$(tActive).addClass('active').siblings().removeClass('active');
|
||||||
|
|
||||||
|
// Clear location hash in browser if #permalink exists.
|
||||||
|
if (location.hash !== '') {
|
||||||
|
history.pushState('', document.title, window.location.pathname + window.location.search);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
registerESCKeyEvent: function () {
|
||||||
|
$(document).on('keyup', function (event) {
|
||||||
|
var shouldDismissSearchPopup = event.which === 27 &&
|
||||||
|
$('.search-popup').is(':visible');
|
||||||
|
if (shouldDismissSearchPopup) {
|
||||||
|
$('.search-popup').hide();
|
||||||
|
$('.search-popup-overlay').remove();
|
||||||
|
$('body').css('overflow', '');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
registerBackToTop: function () {
|
||||||
|
var THRESHOLD = 50;
|
||||||
|
var $top = $('.back-to-top');
|
||||||
|
|
||||||
|
$(window).on('scroll', function () {
|
||||||
|
$top.toggleClass('back-to-top-on', window.pageYOffset > THRESHOLD);
|
||||||
|
|
||||||
|
var scrollTop = $(window).scrollTop();
|
||||||
|
var contentVisibilityHeight = NexT.utils.getContentVisibilityHeight();
|
||||||
|
var scrollPercent = (scrollTop) / (contentVisibilityHeight);
|
||||||
|
var scrollPercentRounded = Math.round(scrollPercent*100);
|
||||||
|
var scrollPercentMaxed = (scrollPercentRounded > 100) ? 100 : scrollPercentRounded;
|
||||||
|
$('#scrollpercent>span').html(scrollPercentMaxed);
|
||||||
|
});
|
||||||
|
|
||||||
|
$top.on('click', function () {
|
||||||
|
$('body').velocity('scroll');
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Transform embedded video to support responsive layout.
|
||||||
|
* @see http://toddmotto.com/fluid-and-responsive-youtube-and-vimeo-videos-with-fluidvids-js/
|
||||||
|
*/
|
||||||
|
embeddedVideoTransformer: function () {
|
||||||
|
var $iframes = $('iframe');
|
||||||
|
|
||||||
|
// Supported Players. Extend this if you need more players.
|
||||||
|
var SUPPORTED_PLAYERS = [
|
||||||
|
'www.youtube.com',
|
||||||
|
'player.vimeo.com',
|
||||||
|
'player.youku.com',
|
||||||
|
'music.163.com',
|
||||||
|
'www.tudou.com'
|
||||||
|
];
|
||||||
|
var pattern = new RegExp( SUPPORTED_PLAYERS.join('|') );
|
||||||
|
|
||||||
|
$iframes.each(function () {
|
||||||
|
var iframe = this;
|
||||||
|
var $iframe = $(this);
|
||||||
|
var oldDimension = getDimension($iframe);
|
||||||
|
var newDimension;
|
||||||
|
|
||||||
|
if (this.src.search(pattern) > 0) {
|
||||||
|
|
||||||
|
// Calculate the video ratio based on the iframe's w/h dimensions
|
||||||
|
var videoRatio = getAspectRadio(oldDimension.width, oldDimension.height);
|
||||||
|
|
||||||
|
// Replace the iframe's dimensions and position the iframe absolute
|
||||||
|
// This is the trick to emulate the video ratio
|
||||||
|
$iframe.width('100%').height('100%')
|
||||||
|
.css({
|
||||||
|
position: 'absolute',
|
||||||
|
top: '0',
|
||||||
|
left: '0'
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// Wrap the iframe in a new <div> which uses a dynamically fetched padding-top property
|
||||||
|
// based on the video's w/h dimensions
|
||||||
|
var wrap = document.createElement('div');
|
||||||
|
wrap.className = 'fluid-vids';
|
||||||
|
wrap.style.position = 'relative';
|
||||||
|
wrap.style.marginBottom = '20px';
|
||||||
|
wrap.style.width = '100%';
|
||||||
|
wrap.style.paddingTop = videoRatio + '%';
|
||||||
|
// Fix for appear inside tabs tag.
|
||||||
|
(wrap.style.paddingTop === '') && (wrap.style.paddingTop = '50%');
|
||||||
|
|
||||||
|
// Add the iframe inside our newly created <div>
|
||||||
|
var iframeParent = iframe.parentNode;
|
||||||
|
iframeParent.insertBefore(wrap, iframe);
|
||||||
|
wrap.appendChild(iframe);
|
||||||
|
|
||||||
|
// Additional adjustments for 163 Music
|
||||||
|
if (this.src.search('music.163.com') > 0) {
|
||||||
|
newDimension = getDimension($iframe);
|
||||||
|
var shouldRecalculateAspect = newDimension.width > oldDimension.width ||
|
||||||
|
newDimension.height < oldDimension.height;
|
||||||
|
|
||||||
|
// 163 Music Player has a fixed height, so we need to reset the aspect radio
|
||||||
|
if (shouldRecalculateAspect) {
|
||||||
|
wrap.style.paddingTop = getAspectRadio(newDimension.width, oldDimension.height) + '%';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDimension($element) {
|
||||||
|
return {
|
||||||
|
width: $element.width(),
|
||||||
|
height: $element.height()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function getAspectRadio(width, height) {
|
||||||
|
return height / width * 100;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add `menu-item-active` class name to menu item
|
||||||
|
* via comparing location.path with menu item's href.
|
||||||
|
*/
|
||||||
|
addActiveClassToMenuItem: function () {
|
||||||
|
var path = window.location.pathname;
|
||||||
|
path = path === '/' ? path : path.substring(0, path.length - 1);
|
||||||
|
$('.menu-item a[href^="' + path + '"]:first').parent().addClass('menu-item-active');
|
||||||
|
},
|
||||||
|
|
||||||
|
hasMobileUA: function () {
|
||||||
|
var nav = window.navigator;
|
||||||
|
var ua = nav.userAgent;
|
||||||
|
var pa = /iPad|iPhone|Android|Opera Mini|BlackBerry|webOS|UCWEB|Blazer|PSP|IEMobile|Symbian/g;
|
||||||
|
|
||||||
|
return pa.test(ua);
|
||||||
|
},
|
||||||
|
|
||||||
|
isTablet: function () {
|
||||||
|
return window.screen.width < 992 && window.screen.width > 767 && this.hasMobileUA();
|
||||||
|
},
|
||||||
|
|
||||||
|
isMobile: function () {
|
||||||
|
return window.screen.width < 767 && this.hasMobileUA();
|
||||||
|
},
|
||||||
|
|
||||||
|
isDesktop: function () {
|
||||||
|
return !this.isTablet() && !this.isMobile();
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Escape meta symbols in jQuery selectors.
|
||||||
|
*
|
||||||
|
* @param selector
|
||||||
|
* @returns {string|void|XML|*}
|
||||||
|
*/
|
||||||
|
escapeSelector: function (selector) {
|
||||||
|
return selector.replace(/[!"$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, '\\$&');
|
||||||
|
},
|
||||||
|
|
||||||
|
displaySidebar: function () {
|
||||||
|
if (!this.isDesktop() || this.isPisces() || this.isGemini()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$('.sidebar-toggle').trigger('click');
|
||||||
|
},
|
||||||
|
|
||||||
|
isMist: function () {
|
||||||
|
return CONFIG.scheme === 'Mist';
|
||||||
|
},
|
||||||
|
|
||||||
|
isPisces: function () {
|
||||||
|
return CONFIG.scheme === 'Pisces';
|
||||||
|
},
|
||||||
|
|
||||||
|
isGemini: function () {
|
||||||
|
return CONFIG.scheme === 'Gemini';
|
||||||
|
},
|
||||||
|
|
||||||
|
getScrollbarWidth: function () {
|
||||||
|
var $div = $('<div />').addClass('scrollbar-measure').prependTo('body');
|
||||||
|
var div = $div[0];
|
||||||
|
var scrollbarWidth = div.offsetWidth - div.clientWidth;
|
||||||
|
|
||||||
|
$div.remove();
|
||||||
|
|
||||||
|
return scrollbarWidth;
|
||||||
|
},
|
||||||
|
|
||||||
|
getContentVisibilityHeight: function () {
|
||||||
|
var docHeight = $('#content').height(),
|
||||||
|
winHeight = $(window).height(),
|
||||||
|
contentVisibilityHeight = (docHeight > winHeight) ? (docHeight - winHeight) : ($(document).height() - winHeight);
|
||||||
|
return contentVisibilityHeight;
|
||||||
|
},
|
||||||
|
|
||||||
|
getSidebarb2tHeight: function () {
|
||||||
|
//var sidebarb2tHeight = (CONFIG.sidebar.b2t) ? document.getElementsByClassName('back-to-top')[0].clientHeight : 0;
|
||||||
|
var sidebarb2tHeight = (CONFIG.sidebar.b2t) ? $('.back-to-top').height() : 0;
|
||||||
|
//var sidebarb2tHeight = (CONFIG.sidebar.b2t) ? 24 : 0;
|
||||||
|
return sidebarb2tHeight;
|
||||||
|
},
|
||||||
|
|
||||||
|
getSidebarSchemePadding: function () {
|
||||||
|
var sidebarNavHeight = ($('.sidebar-nav').css('display') == 'block') ? $('.sidebar-nav').outerHeight(true) : 0,
|
||||||
|
sidebarInner = $('.sidebar-inner'),
|
||||||
|
sidebarPadding = sidebarInner.innerWidth() - sidebarInner.width(),
|
||||||
|
sidebarSchemePadding = this.isPisces() || this.isGemini() ?
|
||||||
|
((sidebarPadding * 2) + sidebarNavHeight + (CONFIG.sidebar.offset * 2) + this.getSidebarb2tHeight()) :
|
||||||
|
((sidebarPadding * 2) + (sidebarNavHeight / 2));
|
||||||
|
return sidebarSchemePadding;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Affix behaviour for Sidebar.
|
||||||
|
*
|
||||||
|
* @returns {Boolean}
|
||||||
|
*/
|
||||||
|
// needAffix: function () {
|
||||||
|
// return this.isPisces() || this.isGemini();
|
||||||
|
// }
|
||||||
|
};
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
initSidebarDimension();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Init Sidebar & TOC inner dimensions on all pages and for all schemes.
|
||||||
|
* Need for Sidebar/TOC inner scrolling if content taller then viewport.
|
||||||
|
*/
|
||||||
|
function initSidebarDimension () {
|
||||||
|
var updateSidebarHeightTimer;
|
||||||
|
|
||||||
|
$(window).on('resize', function () {
|
||||||
|
updateSidebarHeightTimer && clearTimeout(updateSidebarHeightTimer);
|
||||||
|
|
||||||
|
updateSidebarHeightTimer = setTimeout(function () {
|
||||||
|
var sidebarWrapperHeight = document.body.clientHeight - NexT.utils.getSidebarSchemePadding();
|
||||||
|
|
||||||
|
updateSidebarHeight(sidebarWrapperHeight);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Initialize Sidebar & TOC Width.
|
||||||
|
var scrollbarWidth = NexT.utils.getScrollbarWidth();
|
||||||
|
if ($('.site-overview-wrap').height() > (document.body.clientHeight - NexT.utils.getSidebarSchemePadding())) {
|
||||||
|
$('.site-overview').css('width', 'calc(100% + ' + scrollbarWidth + 'px)');
|
||||||
|
}
|
||||||
|
if ($('.post-toc-wrap').height() > (document.body.clientHeight - NexT.utils.getSidebarSchemePadding())) {
|
||||||
|
$('.post-toc').css('width', 'calc(100% + ' + scrollbarWidth + 'px)');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialize Sidebar & TOC Height.
|
||||||
|
updateSidebarHeight(document.body.clientHeight - NexT.utils.getSidebarSchemePadding());
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateSidebarHeight (height) {
|
||||||
|
height = height || 'auto';
|
||||||
|
$('.site-overview, .post-toc').css('max-height', height);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
BIN
lib/Han/dist/font/han-space.otf
vendored
Normal file
BIN
lib/Han/dist/font/han-space.woff
vendored
Normal file
BIN
lib/Han/dist/font/han.otf
vendored
Normal file
BIN
lib/Han/dist/font/han.woff
vendored
Normal file
BIN
lib/Han/dist/font/han.woff2
vendored
Normal file
1168
lib/Han/dist/han.css
vendored
Normal file
3005
lib/Han/dist/han.js
vendored
Normal file
6
lib/Han/dist/han.min.css
vendored
Normal file
5
lib/Han/dist/han.min.js
vendored
Normal file
1
lib/algolia-instant-search/instantsearch.min.css
vendored
Normal file
15
lib/algolia-instant-search/instantsearch.min.js
vendored
Normal file
1
lib/canvas-nest/canvas-nest.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){function o(w,v,i){return w.getAttribute(v)||i}function j(i){return document.getElementsByTagName(i)}function l(){var i=j("script"),w=i.length,v=i[w-1];return{l:w,z:o(v,"zIndex",-1),o:o(v,"opacity",0.5),c:o(v,"color","0,0,0"),n:o(v,"count",99)}}function k(){r=u.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=u.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function b(){e.clearRect(0,0,r,n);var w=[f].concat(t);var x,v,A,B,z,y;t.forEach(function(i){i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>r||i.x<0?-1:1,i.ya*=i.y>n||i.y<0?-1:1,e.fillRect(i.x-0.5,i.y-0.5,1,1);for(v=0;v<w.length;v++){x=w[v];if(i!==x&&null!==x.x&&null!==x.y){B=i.x-x.x,z=i.y-x.y,y=B*B+z*z;y<x.max&&(x===f&&y>=x.max/2&&(i.x-=0.03*B,i.y-=0.03*z),A=(x.max-y)/x.max,e.beginPath(),e.lineWidth=A/2,e.strokeStyle="rgba("+s.c+","+(A+0.2)+")",e.moveTo(i.x,i.y),e.lineTo(x.x,x.y),e.stroke())}}w.splice(w.indexOf(i),1)}),m(b)}var u=document.createElement("canvas"),s=l(),c="c_n"+s.l,e=u.getContext("2d"),r,n,m=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(i){window.setTimeout(i,1000/45)},a=Math.random,f={x:null,y:null,max:20000};u.id=c;u.style.cssText="position:fixed;top:0;left:0;z-index:"+s.z+";opacity:"+s.o;j("body")[0].appendChild(u);k(),window.onresize=k;window.onmousemove=function(i){i=i||window.event,f.x=i.clientX,f.y=i.clientY},window.onmouseout=function(){f.x=null,f.y=null};for(var t=[],p=0;s.n>p;p++){var h=a()*r,g=a()*n,q=2*a()-1,d=2*a()-1;t.push({x:h,y:g,xa:q,ya:d,max:6000})}setTimeout(function(){b()},100)}();
|
73
lib/canvas-ribbon/canvas-ribbon.js
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
/**
|
||||||
|
* Created by zproo on 2017/4/8.
|
||||||
|
*/
|
||||||
|
!function () {
|
||||||
|
function getAttr(script, attr, default_val) {
|
||||||
|
return Number(script.getAttribute(attr)) || default_val;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取自定义配置
|
||||||
|
var ribbon = document.getElementById('ribbon'); // 当前加载的script
|
||||||
|
config = {
|
||||||
|
zIndex: getAttr(ribbon, "zIndex", -1), // z-index
|
||||||
|
alpha: getAttr(ribbon, "alpha", 0.6), // alpha
|
||||||
|
ribbon_width: getAttr(ribbon, "size", 90), // size
|
||||||
|
};
|
||||||
|
|
||||||
|
var canvas = document.createElement("canvas");
|
||||||
|
canvas.style.cssText = "position:fixed;top:0;left:0;z-index:"+config.zIndex;
|
||||||
|
document.getElementsByTagName("body")[0].appendChild(canvas);
|
||||||
|
|
||||||
|
var canvasRibbon = canvas,
|
||||||
|
ctx = canvasRibbon.getContext('2d'), // 获取canvas 2d上下文
|
||||||
|
dpr = window.devicePixelRatio || 1, // the size of one CSS pixel to the size of one physical pixel.
|
||||||
|
width = window.innerWidth, // 返回窗口的文档显示区的宽高
|
||||||
|
height = window.innerHeight,
|
||||||
|
RIBBON_WIDTH = config.ribbon_width,
|
||||||
|
path,
|
||||||
|
math = Math,
|
||||||
|
r = 0,
|
||||||
|
PI_2 = math.PI * 2, // 圆周率*2
|
||||||
|
cos = math.cos, // cos函数返回一个数值的余弦值(-1~1)
|
||||||
|
random = math.random; // 返回0-1随机数
|
||||||
|
|
||||||
|
canvasRibbon.width = width * dpr; // 返回实际宽高
|
||||||
|
canvasRibbon.height = height * dpr;
|
||||||
|
ctx.scale(dpr, dpr); // 水平、竖直方向缩放
|
||||||
|
ctx.globalAlpha = config.alpha; // 图形透明度
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
ctx.clearRect(0, 0, width, height); // 擦除之前绘制内容
|
||||||
|
path = [{x: 0, y: height * 0.7 + RIBBON_WIDTH}, {x: 0, y: height * 0.7 - RIBBON_WIDTH}];
|
||||||
|
// 路径没有填满屏幕宽度时,绘制路径
|
||||||
|
while (path[1].x < width + RIBBON_WIDTH) {
|
||||||
|
draw(path[0], path[1])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function draw(start, end) {
|
||||||
|
ctx.beginPath(); // 创建一个新的路径
|
||||||
|
ctx.moveTo(start.x, start.y); // path起点
|
||||||
|
ctx.lineTo(end.x, end.y); // path终点
|
||||||
|
var nextX = end.x + (random() * 2 - 0.25) * RIBBON_WIDTH,
|
||||||
|
nextY = geneY(end.y);
|
||||||
|
ctx.lineTo(nextX, nextY);
|
||||||
|
ctx.closePath();
|
||||||
|
|
||||||
|
r -= PI_2 / -50;
|
||||||
|
// 随机生成并设置canvas路径16进制颜色
|
||||||
|
ctx.fillStyle = '#' + (cos(r) * 127 + 128 << 16 | cos(r + PI_2 / 3) * 127 + 128 << 8 | cos(r + PI_2 / 3 * 2) * 127 + 128).toString(16);
|
||||||
|
ctx.fill(); // 根据当前样式填充路径
|
||||||
|
path[0] = path[1]; // 起点更新为当前终点
|
||||||
|
path[1] = {x: nextX, y: nextY} // 更新终点
|
||||||
|
}
|
||||||
|
|
||||||
|
function geneY(y) {
|
||||||
|
var temp = y + (random() * 2 - 1.1) * RIBBON_WIDTH;
|
||||||
|
return (temp > height || temp < 0) ? geneY(y) : temp;
|
||||||
|
}
|
||||||
|
|
||||||
|
document.onclick = init;
|
||||||
|
document.ontouchstart = init;
|
||||||
|
init();
|
||||||
|
}();
|
BIN
lib/fancybox/source/blank.gif
Normal file
After Width: | Height: | Size: 43 B |
BIN
lib/fancybox/source/fancybox_loading.gif
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
lib/fancybox/source/fancybox_loading@2x.gif
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
lib/fancybox/source/fancybox_overlay.png
Normal file
After Width: | Height: | Size: 1003 B |
BIN
lib/fancybox/source/fancybox_sprite.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
lib/fancybox/source/fancybox_sprite@2x.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
lib/fancybox/source/helpers/fancybox_buttons.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
97
lib/fancybox/source/helpers/jquery.fancybox-buttons.css
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
#fancybox-buttons {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 8050;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons.top {
|
||||||
|
top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons.bottom {
|
||||||
|
bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons ul {
|
||||||
|
display: block;
|
||||||
|
width: 166px;
|
||||||
|
height: 30px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
border: 1px solid #111;
|
||||||
|
border-radius: 3px;
|
||||||
|
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
||||||
|
-moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
||||||
|
background: rgb(50,50,50);
|
||||||
|
background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%);
|
||||||
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51)));
|
||||||
|
background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
||||||
|
background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
||||||
|
background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
||||||
|
background: linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 );
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons ul li {
|
||||||
|
float: left;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a {
|
||||||
|
display: block;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
text-indent: -9999px;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: url('fancybox_buttons.png');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
outline: none;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a.btnPrev {
|
||||||
|
background-position: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a.btnNext {
|
||||||
|
background-position: -33px 0;
|
||||||
|
border-right: 1px solid #3e3e3e;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a.btnPlay {
|
||||||
|
background-position: 0 -30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a.btnPlayOn {
|
||||||
|
background-position: -30px -30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a.btnToggle {
|
||||||
|
background-position: 3px -60px;
|
||||||
|
border-left: 1px solid #111;
|
||||||
|
border-right: 1px solid #3e3e3e;
|
||||||
|
width: 35px
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a.btnToggleOn {
|
||||||
|
background-position: -27px -60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a.btnClose {
|
||||||
|
border-left: 1px solid #111;
|
||||||
|
width: 35px;
|
||||||
|
background-position: -56px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-buttons a.btnDisabled {
|
||||||
|
opacity : 0.4;
|
||||||
|
cursor: default;
|
||||||
|
}
|
122
lib/fancybox/source/helpers/jquery.fancybox-buttons.js
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
/*!
|
||||||
|
* Buttons helper for fancyBox
|
||||||
|
* version: 1.0.5 (Mon, 15 Oct 2012)
|
||||||
|
* @requires fancyBox v2.0 or later
|
||||||
|
*
|
||||||
|
* Usage:
|
||||||
|
* $(".fancybox").fancybox({
|
||||||
|
* helpers : {
|
||||||
|
* buttons: {
|
||||||
|
* position : 'top'
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* });
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
//Shortcut for fancyBox object
|
||||||
|
var F = $.fancybox;
|
||||||
|
|
||||||
|
//Add helper object
|
||||||
|
F.helpers.buttons = {
|
||||||
|
defaults : {
|
||||||
|
skipSingle : false, // disables if gallery contains single image
|
||||||
|
position : 'top', // 'top' or 'bottom'
|
||||||
|
tpl : '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'
|
||||||
|
},
|
||||||
|
|
||||||
|
list : null,
|
||||||
|
buttons: null,
|
||||||
|
|
||||||
|
beforeLoad: function (opts, obj) {
|
||||||
|
//Remove self if gallery do not have at least two items
|
||||||
|
|
||||||
|
if (opts.skipSingle && obj.group.length < 2) {
|
||||||
|
obj.helpers.buttons = false;
|
||||||
|
obj.closeBtn = true;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Increase top margin to give space for buttons
|
||||||
|
obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30;
|
||||||
|
},
|
||||||
|
|
||||||
|
onPlayStart: function () {
|
||||||
|
if (this.buttons) {
|
||||||
|
this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
onPlayEnd: function () {
|
||||||
|
if (this.buttons) {
|
||||||
|
this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
afterShow: function (opts, obj) {
|
||||||
|
var buttons = this.buttons;
|
||||||
|
|
||||||
|
if (!buttons) {
|
||||||
|
this.list = $(opts.tpl).addClass(opts.position).appendTo('body');
|
||||||
|
|
||||||
|
buttons = {
|
||||||
|
prev : this.list.find('.btnPrev').click( F.prev ),
|
||||||
|
next : this.list.find('.btnNext').click( F.next ),
|
||||||
|
play : this.list.find('.btnPlay').click( F.play ),
|
||||||
|
toggle : this.list.find('.btnToggle').click( F.toggle ),
|
||||||
|
close : this.list.find('.btnClose').click( F.close )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Prev
|
||||||
|
if (obj.index > 0 || obj.loop) {
|
||||||
|
buttons.prev.removeClass('btnDisabled');
|
||||||
|
} else {
|
||||||
|
buttons.prev.addClass('btnDisabled');
|
||||||
|
}
|
||||||
|
|
||||||
|
//Next / Play
|
||||||
|
if (obj.loop || obj.index < obj.group.length - 1) {
|
||||||
|
buttons.next.removeClass('btnDisabled');
|
||||||
|
buttons.play.removeClass('btnDisabled');
|
||||||
|
|
||||||
|
} else {
|
||||||
|
buttons.next.addClass('btnDisabled');
|
||||||
|
buttons.play.addClass('btnDisabled');
|
||||||
|
}
|
||||||
|
|
||||||
|
this.buttons = buttons;
|
||||||
|
|
||||||
|
this.onUpdate(opts, obj);
|
||||||
|
},
|
||||||
|
|
||||||
|
onUpdate: function (opts, obj) {
|
||||||
|
var toggle;
|
||||||
|
|
||||||
|
if (!this.buttons) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn');
|
||||||
|
|
||||||
|
//Size toggle button
|
||||||
|
if (obj.canShrink) {
|
||||||
|
toggle.addClass('btnToggleOn');
|
||||||
|
|
||||||
|
} else if (!obj.canExpand) {
|
||||||
|
toggle.addClass('btnDisabled');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
beforeClose: function () {
|
||||||
|
if (this.list) {
|
||||||
|
this.list.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
this.list = null;
|
||||||
|
this.buttons = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}(jQuery));
|
199
lib/fancybox/source/helpers/jquery.fancybox-media.js
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
/*!
|
||||||
|
* Media helper for fancyBox
|
||||||
|
* version: 1.0.6 (Fri, 14 Jun 2013)
|
||||||
|
* @requires fancyBox v2.0 or later
|
||||||
|
*
|
||||||
|
* Usage:
|
||||||
|
* $(".fancybox").fancybox({
|
||||||
|
* helpers : {
|
||||||
|
* media: true
|
||||||
|
* }
|
||||||
|
* });
|
||||||
|
*
|
||||||
|
* Set custom URL parameters:
|
||||||
|
* $(".fancybox").fancybox({
|
||||||
|
* helpers : {
|
||||||
|
* media: {
|
||||||
|
* youtube : {
|
||||||
|
* params : {
|
||||||
|
* autoplay : 0
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* });
|
||||||
|
*
|
||||||
|
* Or:
|
||||||
|
* $(".fancybox").fancybox({,
|
||||||
|
* helpers : {
|
||||||
|
* media: true
|
||||||
|
* },
|
||||||
|
* youtube : {
|
||||||
|
* autoplay: 0
|
||||||
|
* }
|
||||||
|
* });
|
||||||
|
*
|
||||||
|
* Supports:
|
||||||
|
*
|
||||||
|
* Youtube
|
||||||
|
* http://www.youtube.com/watch?v=opj24KnzrWo
|
||||||
|
* http://www.youtube.com/embed/opj24KnzrWo
|
||||||
|
* http://youtu.be/opj24KnzrWo
|
||||||
|
* http://www.youtube-nocookie.com/embed/opj24KnzrWo
|
||||||
|
* Vimeo
|
||||||
|
* http://vimeo.com/40648169
|
||||||
|
* http://vimeo.com/channels/staffpicks/38843628
|
||||||
|
* http://vimeo.com/groups/surrealism/videos/36516384
|
||||||
|
* http://player.vimeo.com/video/45074303
|
||||||
|
* Metacafe
|
||||||
|
* http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
|
||||||
|
* http://www.metacafe.com/watch/7635964/
|
||||||
|
* Dailymotion
|
||||||
|
* http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
|
||||||
|
* Twitvid
|
||||||
|
* http://twitvid.com/QY7MD
|
||||||
|
* Twitpic
|
||||||
|
* http://twitpic.com/7p93st
|
||||||
|
* Instagram
|
||||||
|
* http://instagr.am/p/IejkuUGxQn/
|
||||||
|
* http://instagram.com/p/IejkuUGxQn/
|
||||||
|
* Google maps
|
||||||
|
* http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
|
||||||
|
* http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
|
||||||
|
* http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
//Shortcut for fancyBox object
|
||||||
|
var F = $.fancybox,
|
||||||
|
format = function( url, rez, params ) {
|
||||||
|
params = params || '';
|
||||||
|
|
||||||
|
if ( $.type( params ) === "object" ) {
|
||||||
|
params = $.param(params, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
$.each(rez, function(key, value) {
|
||||||
|
url = url.replace( '$' + key, value || '' );
|
||||||
|
});
|
||||||
|
|
||||||
|
if (params.length) {
|
||||||
|
url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params;
|
||||||
|
}
|
||||||
|
|
||||||
|
return url;
|
||||||
|
};
|
||||||
|
|
||||||
|
//Add helper object
|
||||||
|
F.helpers.media = {
|
||||||
|
defaults : {
|
||||||
|
youtube : {
|
||||||
|
matcher : /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,
|
||||||
|
params : {
|
||||||
|
autoplay : 1,
|
||||||
|
autohide : 1,
|
||||||
|
fs : 1,
|
||||||
|
rel : 0,
|
||||||
|
hd : 1,
|
||||||
|
wmode : 'opaque',
|
||||||
|
enablejsapi : 1
|
||||||
|
},
|
||||||
|
type : 'iframe',
|
||||||
|
url : '//www.youtube.com/embed/$3'
|
||||||
|
},
|
||||||
|
vimeo : {
|
||||||
|
matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,
|
||||||
|
params : {
|
||||||
|
autoplay : 1,
|
||||||
|
hd : 1,
|
||||||
|
show_title : 1,
|
||||||
|
show_byline : 1,
|
||||||
|
show_portrait : 0,
|
||||||
|
fullscreen : 1
|
||||||
|
},
|
||||||
|
type : 'iframe',
|
||||||
|
url : '//player.vimeo.com/video/$1'
|
||||||
|
},
|
||||||
|
metacafe : {
|
||||||
|
matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,
|
||||||
|
params : {
|
||||||
|
autoPlay : 'yes'
|
||||||
|
},
|
||||||
|
type : 'swf',
|
||||||
|
url : function( rez, params, obj ) {
|
||||||
|
obj.swf.flashVars = 'playerVars=' + $.param( params, true );
|
||||||
|
|
||||||
|
return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dailymotion : {
|
||||||
|
matcher : /dailymotion.com\/video\/(.*)\/?(.*)/,
|
||||||
|
params : {
|
||||||
|
additionalInfos : 0,
|
||||||
|
autoStart : 1
|
||||||
|
},
|
||||||
|
type : 'swf',
|
||||||
|
url : '//www.dailymotion.com/swf/video/$1'
|
||||||
|
},
|
||||||
|
twitvid : {
|
||||||
|
matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,
|
||||||
|
params : {
|
||||||
|
autoplay : 0
|
||||||
|
},
|
||||||
|
type : 'iframe',
|
||||||
|
url : '//www.twitvid.com/embed.php?guid=$1'
|
||||||
|
},
|
||||||
|
twitpic : {
|
||||||
|
matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,
|
||||||
|
type : 'image',
|
||||||
|
url : '//twitpic.com/show/full/$1/'
|
||||||
|
},
|
||||||
|
instagram : {
|
||||||
|
matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
|
||||||
|
type : 'image',
|
||||||
|
url : '//$1/p/$2/media/?size=l'
|
||||||
|
},
|
||||||
|
google_maps : {
|
||||||
|
matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,
|
||||||
|
type : 'iframe',
|
||||||
|
url : function( rez ) {
|
||||||
|
return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
beforeLoad : function(opts, obj) {
|
||||||
|
var url = obj.href || '',
|
||||||
|
type = false,
|
||||||
|
what,
|
||||||
|
item,
|
||||||
|
rez,
|
||||||
|
params;
|
||||||
|
|
||||||
|
for (what in opts) {
|
||||||
|
if (opts.hasOwnProperty(what)) {
|
||||||
|
item = opts[ what ];
|
||||||
|
rez = url.match( item.matcher );
|
||||||
|
|
||||||
|
if (rez) {
|
||||||
|
type = item.type;
|
||||||
|
params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null));
|
||||||
|
|
||||||
|
url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params );
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (type) {
|
||||||
|
obj.href = url;
|
||||||
|
obj.type = type;
|
||||||
|
|
||||||
|
obj.autoHeight = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}(jQuery));
|
55
lib/fancybox/source/helpers/jquery.fancybox-thumbs.css
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
#fancybox-thumbs {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 8050;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-thumbs.bottom {
|
||||||
|
bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-thumbs.top {
|
||||||
|
top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-thumbs ul {
|
||||||
|
position: relative;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-thumbs ul li {
|
||||||
|
float: left;
|
||||||
|
padding: 1px;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-thumbs ul li.active {
|
||||||
|
opacity: 0.75;
|
||||||
|
padding: 0;
|
||||||
|
border: 1px solid #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-thumbs ul li:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-thumbs ul li a {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid #222;
|
||||||
|
background: #111;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-thumbs ul li img {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
max-width: none;
|
||||||
|
}
|
162
lib/fancybox/source/helpers/jquery.fancybox-thumbs.js
Normal file
@ -0,0 +1,162 @@
|
|||||||
|
/*!
|
||||||
|
* Thumbnail helper for fancyBox
|
||||||
|
* version: 1.0.7 (Mon, 01 Oct 2012)
|
||||||
|
* @requires fancyBox v2.0 or later
|
||||||
|
*
|
||||||
|
* Usage:
|
||||||
|
* $(".fancybox").fancybox({
|
||||||
|
* helpers : {
|
||||||
|
* thumbs: {
|
||||||
|
* width : 50,
|
||||||
|
* height : 50
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* });
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
//Shortcut for fancyBox object
|
||||||
|
var F = $.fancybox;
|
||||||
|
|
||||||
|
//Add helper object
|
||||||
|
F.helpers.thumbs = {
|
||||||
|
defaults : {
|
||||||
|
width : 50, // thumbnail width
|
||||||
|
height : 50, // thumbnail height
|
||||||
|
position : 'bottom', // 'top' or 'bottom'
|
||||||
|
source : function ( item ) { // function to obtain the URL of the thumbnail image
|
||||||
|
var href;
|
||||||
|
|
||||||
|
if (item.element) {
|
||||||
|
href = $(item.element).find('img').attr('src');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!href && item.type === 'image' && item.href) {
|
||||||
|
href = item.href;
|
||||||
|
}
|
||||||
|
|
||||||
|
return href;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
wrap : null,
|
||||||
|
list : null,
|
||||||
|
width : 0,
|
||||||
|
|
||||||
|
init: function (opts, obj) {
|
||||||
|
var that = this,
|
||||||
|
list,
|
||||||
|
thumbWidth = opts.width,
|
||||||
|
thumbHeight = opts.height,
|
||||||
|
thumbSource = opts.source;
|
||||||
|
|
||||||
|
//Build list structure
|
||||||
|
list = '';
|
||||||
|
|
||||||
|
for (var n = 0; n < obj.group.length; n++) {
|
||||||
|
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
|
||||||
|
}
|
||||||
|
|
||||||
|
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
|
||||||
|
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
|
||||||
|
|
||||||
|
//Load each thumbnail
|
||||||
|
$.each(obj.group, function (i) {
|
||||||
|
var href = thumbSource( obj.group[ i ] );
|
||||||
|
|
||||||
|
if (!href) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$("<img />").load(function () {
|
||||||
|
var width = this.width,
|
||||||
|
height = this.height,
|
||||||
|
widthRatio, heightRatio, parent;
|
||||||
|
|
||||||
|
if (!that.list || !width || !height) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Calculate thumbnail width/height and center it
|
||||||
|
widthRatio = width / thumbWidth;
|
||||||
|
heightRatio = height / thumbHeight;
|
||||||
|
|
||||||
|
parent = that.list.children().eq(i).find('a');
|
||||||
|
|
||||||
|
if (widthRatio >= 1 && heightRatio >= 1) {
|
||||||
|
if (widthRatio > heightRatio) {
|
||||||
|
width = Math.floor(width / heightRatio);
|
||||||
|
height = thumbHeight;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
width = thumbWidth;
|
||||||
|
height = Math.floor(height / widthRatio);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$(this).css({
|
||||||
|
width : width,
|
||||||
|
height : height,
|
||||||
|
top : Math.floor(thumbHeight / 2 - height / 2),
|
||||||
|
left : Math.floor(thumbWidth / 2 - width / 2)
|
||||||
|
});
|
||||||
|
|
||||||
|
parent.width(thumbWidth).height(thumbHeight);
|
||||||
|
|
||||||
|
$(this).hide().appendTo(parent).fadeIn(300);
|
||||||
|
|
||||||
|
}).attr('src', href);
|
||||||
|
});
|
||||||
|
|
||||||
|
//Set initial width
|
||||||
|
this.width = this.list.children().eq(0).outerWidth(true);
|
||||||
|
|
||||||
|
this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)));
|
||||||
|
},
|
||||||
|
|
||||||
|
beforeLoad: function (opts, obj) {
|
||||||
|
//Remove self if gallery do not have at least two items
|
||||||
|
if (obj.group.length < 2) {
|
||||||
|
obj.helpers.thumbs = false;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Increase bottom margin to give space for thumbs
|
||||||
|
obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15);
|
||||||
|
},
|
||||||
|
|
||||||
|
afterShow: function (opts, obj) {
|
||||||
|
//Check if exists and create or update list
|
||||||
|
if (this.list) {
|
||||||
|
this.onUpdate(opts, obj);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.init(opts, obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
//Set active element
|
||||||
|
this.list.children().removeClass('active').eq(obj.index).addClass('active');
|
||||||
|
},
|
||||||
|
|
||||||
|
//Center list
|
||||||
|
onUpdate: function (opts, obj) {
|
||||||
|
if (this.list) {
|
||||||
|
this.list.stop(true).animate({
|
||||||
|
'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))
|
||||||
|
}, 150);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
beforeClose: function () {
|
||||||
|
if (this.wrap) {
|
||||||
|
this.wrap.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
this.wrap = null;
|
||||||
|
this.list = null;
|
||||||
|
this.width = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}(jQuery));
|
274
lib/fancybox/source/jquery.fancybox.css
vendored
Normal file
@ -0,0 +1,274 @@
|
|||||||
|
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
|
||||||
|
.fancybox-wrap,
|
||||||
|
.fancybox-skin,
|
||||||
|
.fancybox-outer,
|
||||||
|
.fancybox-inner,
|
||||||
|
.fancybox-image,
|
||||||
|
.fancybox-wrap iframe,
|
||||||
|
.fancybox-wrap object,
|
||||||
|
.fancybox-nav,
|
||||||
|
.fancybox-nav span,
|
||||||
|
.fancybox-tmp
|
||||||
|
{
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
outline: none;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-wrap {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 8020;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-skin {
|
||||||
|
position: relative;
|
||||||
|
background: #f9f9f9;
|
||||||
|
color: #444;
|
||||||
|
text-shadow: none;
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-opened {
|
||||||
|
z-index: 8030;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-opened .fancybox-skin {
|
||||||
|
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
||||||
|
-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
||||||
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-outer, .fancybox-inner {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-inner {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-type-iframe .fancybox-inner {
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-error {
|
||||||
|
color: #444;
|
||||||
|
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
padding: 15px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-image, .fancybox-iframe {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-image {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
|
||||||
|
background-image: url('fancybox_sprite.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-loading {
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
margin-top: -22px;
|
||||||
|
margin-left: -22px;
|
||||||
|
background-position: 0 -108px;
|
||||||
|
opacity: 0.8;
|
||||||
|
cursor: pointer;
|
||||||
|
z-index: 8060;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-loading div {
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
background: url('fancybox_loading.gif') center center no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-close {
|
||||||
|
position: absolute;
|
||||||
|
top: -18px;
|
||||||
|
right: -18px;
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
cursor: pointer;
|
||||||
|
z-index: 8040;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-nav {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 40%;
|
||||||
|
height: 100%;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
background: transparent url('blank.gif'); /* helps IE */
|
||||||
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
|
z-index: 8040;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-prev {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-next {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-nav span {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
width: 36px;
|
||||||
|
height: 34px;
|
||||||
|
margin-top: -18px;
|
||||||
|
cursor: pointer;
|
||||||
|
z-index: 8040;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-prev span {
|
||||||
|
left: 10px;
|
||||||
|
background-position: 0 -36px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-next span {
|
||||||
|
right: 10px;
|
||||||
|
background-position: 0 -72px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-nav:hover span {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-tmp {
|
||||||
|
position: absolute;
|
||||||
|
top: -99999px;
|
||||||
|
left: -99999px;
|
||||||
|
visibility: hidden;
|
||||||
|
max-width: 99999px;
|
||||||
|
max-height: 99999px;
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Overlay helper */
|
||||||
|
|
||||||
|
.fancybox-lock {
|
||||||
|
overflow: hidden !important;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-lock body {
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-lock-test {
|
||||||
|
overflow-y: hidden !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-overlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
display: none;
|
||||||
|
z-index: 8010;
|
||||||
|
background: url('fancybox_overlay.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-overlay-fixed {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-lock .fancybox-overlay {
|
||||||
|
overflow: auto;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Title helper */
|
||||||
|
|
||||||
|
.fancybox-title {
|
||||||
|
visibility: hidden;
|
||||||
|
font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||||
|
position: relative;
|
||||||
|
text-shadow: none;
|
||||||
|
z-index: 8050;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-opened .fancybox-title {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-title-float-wrap {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
right: 50%;
|
||||||
|
margin-bottom: -35px;
|
||||||
|
z-index: 8050;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-title-float-wrap .child {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: -100%;
|
||||||
|
padding: 2px 20px;
|
||||||
|
background: transparent; /* Fallback for web browsers that doesn't support RGBa */
|
||||||
|
background: rgba(0, 0, 0, 0.8);
|
||||||
|
-webkit-border-radius: 15px;
|
||||||
|
-moz-border-radius: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-shadow: 0 1px 2px #222;
|
||||||
|
color: #FFF;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 24px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-title-outside-wrap {
|
||||||
|
position: relative;
|
||||||
|
margin-top: 10px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-title-inside-wrap {
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancybox-title-over-wrap {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
color: #fff;
|
||||||
|
padding: 10px;
|
||||||
|
background: #000;
|
||||||
|
background: rgba(0, 0, 0, .8);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Retina graphics!*/
|
||||||
|
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
||||||
|
only screen and (min--moz-device-pixel-ratio: 1.5),
|
||||||
|
only screen and (min-device-pixel-ratio: 1.5){
|
||||||
|
|
||||||
|
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
|
||||||
|
background-image: url('fancybox_sprite@2x.png');
|
||||||
|
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#fancybox-loading div {
|
||||||
|
background-image: url('fancybox_loading@2x.gif');
|
||||||
|
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
|
||||||
|
}
|
||||||
|
}
|
2020
lib/fancybox/source/jquery.fancybox.js
vendored
Normal file
46
lib/fancybox/source/jquery.fancybox.pack.js
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
|
||||||
|
(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,
|
||||||
|
width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},
|
||||||
|
keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+
|
||||||
|
(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,
|
||||||
|
openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
|
||||||
|
isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,
|
||||||
|
c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&
|
||||||
|
k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||
|
||||||
|
b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=
|
||||||
|
setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;
|
||||||
|
d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=
|
||||||
|
a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),
|
||||||
|
b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),
|
||||||
|
y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;
|
||||||
|
if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&
|
||||||
|
(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,
|
||||||
|
{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,
|
||||||
|
mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=
|
||||||
|
!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");
|
||||||
|
"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=
|
||||||
|
this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);
|
||||||
|
f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,
|
||||||
|
e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,
|
||||||
|
outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",
|
||||||
|
g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":
|
||||||
|
"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?
|
||||||
|
h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||
|
||||||
|
h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&
|
||||||
|
"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();
|
||||||
|
y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&
|
||||||
|
!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),
|
||||||
|
b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=
|
||||||
|
a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):
|
||||||
|
(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===
|
||||||
|
f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,
|
||||||
|
{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=
|
||||||
|
b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=
|
||||||
|
f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?
|
||||||
|
b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),
|
||||||
|
p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===
|
||||||
|
f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=
|
||||||
|
b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,
|
||||||
|
e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+
|
||||||
|
":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===
|
||||||
|
d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);
|
22
lib/fastclick/LICENSE
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Copyright (c) 2014 The Financial Times Ltd.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person
|
||||||
|
obtaining a copy of this software and associated documentation
|
||||||
|
files (the "Software"), to deal in the Software without
|
||||||
|
restriction, including without limitation the rights to use,
|
||||||
|
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
70
lib/fastclick/README.html
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
<h1 id="FastClick"><a href="#FastClick" class="headerlink" title="FastClick"></a>FastClick</h1><p>FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing of a <code>click</code> event on mobile browsers. The aim is to make your application feel less laggy and more responsive while avoiding any interference with your current logic.</p>
|
||||||
|
<p>FastClick is developed by <a href="http://labs.ft.com/">FT Labs</a>, part of the Financial Times.</p>
|
||||||
|
<p><a href="http://maxime.sh/2013/02/supprimer-le-lag-des-clics-sur-mobile-avec-fastclick/">Explication en français</a>.</p>
|
||||||
|
<p><a href="https://developer.mozilla.org/ja/docs/Mozilla/Firefox_OS/Apps/Tips_and_techniques#Make_events_immediate">日本語で説明</a>。</p>
|
||||||
|
<h2 id="Why-does-the-delay-exist"><a href="#Why-does-the-delay-exist" class="headerlink" title="Why does the delay exist?"></a>Why does the delay exist?</h2><p>According to <a href="https://developers.google.com/mobile/articles/fast_buttons">Google</a>:</p>
|
||||||
|
<blockquote>
|
||||||
|
<p>…mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.</p>
|
||||||
|
</blockquote>
|
||||||
|
<h2 id="Compatibility"><a href="#Compatibility" class="headerlink" title="Compatibility"></a>Compatibility</h2><p>The library has been deployed as part of the <a href="http://app.ft.com/">FT Web App</a> and is tried and tested on the following mobile browsers:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Mobile Safari on iOS 3 and upwards</li>
|
||||||
|
<li>Chrome on iOS 5 and upwards</li>
|
||||||
|
<li>Chrome on Android (ICS)</li>
|
||||||
|
<li>Opera Mobile 11.5 and upwards</li>
|
||||||
|
<li>Android Browser since Android 2</li>
|
||||||
|
<li>PlayBook OS 1 and upwards</li>
|
||||||
|
</ul>
|
||||||
|
<h2 id="When-it-isn’t-needed"><a href="#When-it-isn’t-needed" class="headerlink" title="When it isn’t needed"></a>When it isn’t needed</h2><p>FastClick doesn’t attach any listeners on desktop browsers.</p>
|
||||||
|
<p>Chrome 32+ on Android with <code>width=device-width</code> in the <a href="https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag">viewport meta tag</a> doesn’t have a 300ms delay, therefore listeners aren’t attached.</p>
|
||||||
|
<pre><code class="html"><span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1"</span>></span>
|
||||||
|
</code></pre>
|
||||||
|
<p>Same goes for Chrome on Android (all versions) with <code>user-scalable=no</code> in the viewport meta tag. But be aware that <code>user-scalable=no</code> also disables pinch zooming, which may be an accessibility concern.</p>
|
||||||
|
<p>For IE11+, you can use <code>touch-action: manipulation;</code> to disable double-tap-to-zoom on certain elements (like links and buttons). For IE10 use <code>-ms-touch-action: manipulation</code>.</p>
|
||||||
|
<h2 id="Usage"><a href="#Usage" class="headerlink" title="Usage"></a>Usage</h2><p>Include fastclick.js in your JavaScript bundle or add it to your HTML page like this:</p>
|
||||||
|
<pre><code class="html"><span class="tag"><<span class="name">script</span> <span class="attr">type</span>=<span class="string">'application/javascript'</span> <span class="attr">src</span>=<span class="string">'/path/to/fastclick.js'</span>></span><span class="undefined"></span><span class="tag"></<span class="name">script</span>></span>
|
||||||
|
</code></pre>
|
||||||
|
<p>The script must be loaded prior to instantiating FastClick on any element of the page.</p>
|
||||||
|
<p>To instantiate FastClick on the <code>body</code>, which is the recommended method of use:</p>
|
||||||
|
<pre><code class="js"><span class="keyword">if</span> (<span class="string">'addEventListener'</span> <span class="keyword">in</span> <span class="built_in">document</span>) {
|
||||||
|
<span class="built_in">document</span>.addEventListener(<span class="string">'DOMContentLoaded'</span>, <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{
|
||||||
|
FastClick.attach(<span class="built_in">document</span>.body);
|
||||||
|
}, <span class="literal">false</span>);
|
||||||
|
}
|
||||||
|
</code></pre>
|
||||||
|
<p>Or, if you’re using jQuery:</p>
|
||||||
|
<pre><code class="js">$(<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{
|
||||||
|
FastClick.attach(<span class="built_in">document</span>.body);
|
||||||
|
});
|
||||||
|
</code></pre>
|
||||||
|
<p>If you’re using Browserify or another CommonJS-style module system, the <code>FastClick.attach</code> function will be returned when you call <code>require('fastclick')</code>. As a result, the easiest way to use FastClick with these loaders is as follows:</p>
|
||||||
|
<pre><code class="js"><span class="keyword">var</span> attachFastClick = <span class="built_in">require</span>(<span class="string">'fastclick'</span>);
|
||||||
|
attachFastClick(<span class="built_in">document</span>.body);
|
||||||
|
</code></pre>
|
||||||
|
<h3 id="Minified"><a href="#Minified" class="headerlink" title="Minified"></a>Minified</h3><p>Run <code>make</code> to build a minified version of FastClick using the Closure Compiler REST API. The minified file is saved to <code>build/fastclick.min.js</code> or you can <a href="http://build.origami.ft.com/bundles/js?modules=fastclick">download a pre-minified version</a>.</p>
|
||||||
|
<p>Note: the pre-minified version is built using <a href="http://origami.ft.com/docs/developer-guide/build-service/">our build service</a> which exposes the <code>FastClick</code> object through <code>Origami.fastclick</code> and will have the Browserify/CommonJS API (see above).</p>
|
||||||
|
<pre><code class="js"><span class="keyword">var</span> attachFastClick = Origami.fastclick;
|
||||||
|
attachFastClick(<span class="built_in">document</span>.body);
|
||||||
|
</code></pre>
|
||||||
|
<h3 id="AMD"><a href="#AMD" class="headerlink" title="AMD"></a>AMD</h3><p>FastClick has AMD (Asynchronous Module Definition) support. This allows it to be lazy-loaded with an AMD loader, such as <a href="http://requirejs.org/">RequireJS</a>. Note that when using the AMD style require, the full <code>FastClick</code> object will be returned, <em>not</em> <code>FastClick.attach</code></p>
|
||||||
|
<pre><code class="js"><span class="keyword">var</span> FastClick = <span class="built_in">require</span>(<span class="string">'fastclick'</span>);
|
||||||
|
FastClick.attach(<span class="built_in">document</span>.body, options);
|
||||||
|
</code></pre>
|
||||||
|
<h3 id="Package-managers"><a href="#Package-managers" class="headerlink" title="Package managers"></a>Package managers</h3><p>You can install FastClick using <a href="https://github.com/component/component">Component</a>, <a href="https://npmjs.org/package/fastclick">npm</a> or <a href="http://bower.io/">Bower</a>.</p>
|
||||||
|
<p>For Ruby, there’s a third-party gem called <a href="http://rubygems.org/gems/fastclick-rails">fastclick-rails</a>. For .NET there’s a <a href="http://nuget.org/packages/FastClick">NuGet package</a>.</p>
|
||||||
|
<h2 id="Advanced"><a href="#Advanced" class="headerlink" title="Advanced"></a>Advanced</h2><h3 id="Ignore-certain-elements-with-needsclick"><a href="#Ignore-certain-elements-with-needsclick" class="headerlink" title="Ignore certain elements with needsclick"></a>Ignore certain elements with <code>needsclick</code></h3><p>Sometimes you need FastClick to ignore certain elements. You can do this easily by adding the <code>needsclick</code> class.</p>
|
||||||
|
<pre><code class="html"><span class="tag"><<span class="name">a</span> <span class="attr">class</span>=<span class="string">"needsclick"</span>></span>Ignored by FastClick<span class="tag"></<span class="name">a</span>></span>
|
||||||
|
</code></pre>
|
||||||
|
<h4 id="Use-case-1-non-synthetic-click-required"><a href="#Use-case-1-non-synthetic-click-required" class="headerlink" title="Use case 1: non-synthetic click required"></a>Use case 1: non-synthetic click required</h4><p>Internally, FastClick uses <code>document.createEvent</code> to fire a synthetic <code>click</code> event as soon as <code>touchend</code> is fired by the browser. It then suppresses the additional <code>click</code> event created by the browser after that. In some cases, the non-synthetic <code>click</code> event created by the browser is required, as described in the <a href="http://ftlabs.github.com/fastclick/examples/focus.html">triggering focus example</a>.</p>
|
||||||
|
<p>This is where the <code>needsclick</code> class comes in. Add the class to any element that requires a non-synthetic click.</p>
|
||||||
|
<h4 id="Use-case-2-Twitter-Bootstrap-2-2-2-dropdowns"><a href="#Use-case-2-Twitter-Bootstrap-2-2-2-dropdowns" class="headerlink" title="Use case 2: Twitter Bootstrap 2.2.2 dropdowns"></a>Use case 2: Twitter Bootstrap 2.2.2 dropdowns</h4><p>Another example of when to use the <code>needsclick</code> class is with dropdowns in Twitter Bootstrap 2.2.2. Bootstrap add its own <code>touchstart</code> listener for dropdowns, so you want to tell FastClick to ignore those. If you don’t, touch devices will automatically close the dropdown as soon as it is clicked, because both FastClick and Bootstrap execute the synthetic click, one opens the dropdown, the second closes it immediately after.</p>
|
||||||
|
<pre><code class="html"><span class="tag"><<span class="name">a</span> <span class="attr">class</span>=<span class="string">"dropdown-toggle needsclick"</span> <span class="attr">data-toggle</span>=<span class="string">"dropdown"</span>></span>Dropdown<span class="tag"></<span class="name">a</span>></span>
|
||||||
|
</code></pre>
|
||||||
|
<h2 id="Examples"><a href="#Examples" class="headerlink" title="Examples"></a>Examples</h2><p>FastClick is designed to cope with many different browser oddities. Here are some examples to illustrate this:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="http://ftlabs.github.com/fastclick/examples/layer.html">basic use</a> showing the increase in perceived responsiveness</li>
|
||||||
|
<li><a href="http://ftlabs.github.com/fastclick/examples/focus.html">triggering focus</a> on an input element from a <code>click</code> handler</li>
|
||||||
|
<li><a href="http://ftlabs.github.com/fastclick/examples/input.html">input element</a> which never receives clicks but gets fast focus</li>
|
||||||
|
</ul>
|
||||||
|
<h2 id="Tests"><a href="#Tests" class="headerlink" title="Tests"></a>Tests</h2><p>There are no automated tests. The files in <code>tests/</code> are manual reduced test cases. We’ve had a think about how best to test these cases, but they tend to be very browser/device specific and sometimes subjective which means it’s not so trivial to test.</p>
|
||||||
|
<h2 id="Credits-and-collaboration"><a href="#Credits-and-collaboration" class="headerlink" title="Credits and collaboration"></a>Credits and collaboration</h2><p>FastClick is maintained by <a href="http://twitter.com/rowanbeentje">Rowan Beentje</a>, <a href="http://twitter.com/mcaruanagalizia">Matthew Caruana Galizia</a> and <a href="http://twitter.com/andrewsmatt">Matthew Andrews</a> at <a href="http://labs.ft.com">FT Labs</a>. All open source code released by FT Labs is licenced under the MIT licence. We welcome comments, feedback and suggestions. Please feel free to raise an issue or pull request.</p>
|
1
lib/fastclick/bower.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"name":"fastclick","main":"lib/fastclick.js","ignore":["**/.*","component.json","package.json","Makefile","tests","examples"]}
|