+
{% endif %}
{% include share.html %}
-
+
{% if page.disqus %}
{% include disqus.html %}
{% endif %}
-
+
+
+
diff --git a/about.md b/about.md
index f8bf10081..f4fd7dabc 100644
--- a/about.md
+++ b/about.md
@@ -1,6 +1,12 @@
---
layout: page
-title: About me
+title: About me
---
This is a static page. It could be an 'about page' if you'd like.
+
+This is a demo blog for Ghost, it contains dummy content which allows you to click around and see what a Ghost blog running the default theme looks like.
+
+We use this for testing and for reference!
+
+If you'd like to set up your own blog, head on over to [https://ghost.org](https://ghost.org) and sign up.
diff --git a/assets/css/screen.css b/assets/css/screen.css
index 4db702b12..13e10119d 100644
--- a/assets/css/screen.css
+++ b/assets/css/screen.css
@@ -11,12 +11,13 @@
4. General
5. Single Post
6. Tag Archive
- 7. Third Party Elements
- 8. Pagination
- 9. Footer
- 10. Media Queries (Tablet)
- 11. Media Queries (Mobile)
- 12. Animations
+ 7. Read Next
+ 8. Third Party Elements
+ 9. Pagination
+ 10. Footer
+ 11. Media Queries (Tablet)
+ 12. Media Queries (Mobile)
+ 13. Animations
*/
@@ -106,11 +107,11 @@ table { border-collapse: collapse; border-spacing: 0; }
/* Import the font file with the icons in it */
@font-face {
font-family: "casper-icons";
- src:url("../fonts/casper-icons.eot");
- src:url("../fonts/casper-icons.eot?#iefix") format("embedded-opentype"),
- url("../fonts/casper-icons.woff") format("woff"),
- url("../fonts/casper-icons.ttf") format("truetype"),
- url("../fonts/casper-icons.svg#icons") format("svg");
+ src:url("../fonts/casper-icons.eot?v=1");
+ src:url("../fonts/casper-icons.eot?v=1#iefix") format("embedded-opentype"),
+ url("../fonts/casper-icons.woff?v=1") format("woff"),
+ url("../fonts/casper-icons.ttf?v=1") format("truetype"),
+ url("../fonts/casper-icons.svg?v=1#icons") format("svg");
font-weight: normal;
font-style: normal;
}
@@ -160,6 +161,14 @@ table { border-collapse: collapse; border-spacing: 0; }
.icon-link:before {
content: "\f608";
}
+.icon-menu:before {
+ content: "\f609";
+}
+/*
+ IMPORTANT: When making any changes to the icon font, be sure to increment
+ the version number by 1 in the @font-face rule. `?v=1` becomes `?v=2`
+ This forces browsers to download the new font file.
+*/
/* ==========================================================================
@@ -184,6 +193,7 @@ body {
-webkit-font-feature-settings: 'kern' 1;
-moz-font-feature-settings: 'kern' 1;
-o-font-feature-settings: 'kern' 1;
+ text-rendering: geometricPrecision;
}
::-moz-selection {
@@ -203,6 +213,7 @@ h4, h5, h6 {
line-height: 1.15em;
margin: 0 0 0.4em 0;
font-family: "Open Sans", sans-serif;
+ text-rendering: geometricPrecision;
}
h1 {
@@ -234,7 +245,7 @@ h6 {
a {
color: #4A4A4A;
- transition: color ease 0.3s;
+ transition: color 0.3s ease;
}
a:hover {
@@ -246,6 +257,7 @@ p, ul, ol, dl {
-moz-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
-o-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
margin: 0 0 1.75em 0;
+ text-rendering: geometricPrecision;
}
ol, ul {
@@ -321,7 +333,7 @@ blockquote cite {
blockquote cite a { font-weight: normal; }
mark {
- background-color: #FFC336;
+ background-color: #fdffb6;
}
code, tt {
@@ -349,9 +361,8 @@ pre {
border-radius: 3px;
}
-pre code, tt {
+pre code, pre tt {
font-size: inherit;
- white-space: -moz-pre-wrap;
white-space: pre-wrap;
background: transparent;
border: none;
@@ -440,7 +451,7 @@ margin on the iframe, cause it breaks stuff. */
display: table;
}
.clearfix:after { clear: both; }
-.clearfix { *zoom: 1; }
+.clearfix { zoom: 1; }
/* Hides shit */
.hidden {
@@ -463,6 +474,25 @@ margin on the iframe, cause it breaks stuff. */
vertical-align: middle;
}
+/* Wraps the main content & footer */
+.site-wrapper {
+ position: relative;
+ z-index: 10;
+ min-height: 100%;
+ background: #fff;
+ -webkit-transition: -webkit-transform 0.5s ease;
+ transition: transform 0.5s ease;
+}
+
+body.nav-opened .site-wrapper {
+ overflow-x: hidden;
+ -webkit-transform: translate3D(-240px, 0, 0);
+ -ms-transform: translate3D(-240px, 0, 0);
+ transform: translate3D(-240px, 0, 0);
+ -webkit-transition: -webkit-transform 0.3s ease;
+ transition: transform 0.3s ease;
+}
+
/* ==========================================================================
4. General - The main styles for the the theme
@@ -473,7 +503,7 @@ margin on the iframe, cause it breaks stuff. */
position: relative;
display: table;
width: 100%;
- height: 100%;
+ height: 100vh;
margin-bottom: 5rem;
text-align: center;
background: #222 no-repeat center center;
@@ -496,6 +526,192 @@ margin on the iframe, cause it breaks stuff. */
font-family: 'Open Sans', sans-serif;
}
+/* Navigation */
+body.nav-opened .nav-cover {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 240px;
+ bottom: 0;
+ z-index: 200;
+}
+
+.nav {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 5;
+ width: 240px;
+ opacity: 0;
+ background: #111;
+ margin-bottom: 0;
+ text-align: left;
+ overflow-y: auto;
+ -webkit-transition: -webkit-transform 0.5s ease,
+ opacity 0.3s ease 0.7s;
+ transition: transform 0.5s ease,
+ opacity 0.3s ease 0.7s;
+}
+
+body.nav-closed .nav {
+ -webkit-transform: translate3D(97px, 0, 0);
+ -ms-transform: translate3D(97px, 0, 0);
+ transform: translate3D(97px, 0, 0);
+}
+
+body.nav-opened .nav {
+ opacity: 1;
+ -webkit-transition: -webkit-transform 0.3s ease,
+ opacity 0s ease 0s;
+ transition: transform 0.3s ease,
+ opacity 0s ease 0s;
+ -webkit-transform: translate3D(0, 0, 0);
+ -ms-transform: translate3D(0, 0, 0);
+ transform: translate3D(0, 0, 0);
+}
+
+.nav-title {
+ position: absolute;
+ top: 45px;
+ left: 30px;
+ font-size: 16px;
+ font-weight: 100;
+ text-transform: uppercase;
+ color: #fff;
+}
+
+.nav-close {
+ position: absolute;
+ top: 38px;
+ right: 25px;
+ width: 20px;
+ height: 20px;
+ padding: 0;
+ font-size: 10px;
+}
+
+.nav-close:focus {
+ outline: 0;
+}
+
+.nav-close:before,
+.nav-close:after {
+ content: '';
+ position: absolute;
+ top: 0;
+ width: 20px;
+ height: 1px;
+ background: rgb(150,150,150);
+ top: 15px;
+ -webkit-transition: background 0.15s ease;
+ transition: background 0.15s ease;
+}
+
+.nav-close:before {
+ -webkit-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ transform: rotate(45deg);
+}
+
+.nav-close:after {
+ -webkit-transform: rotate(-45deg);
+ -ms-transform: rotate(-45deg);
+ transform: rotate(-45deg);
+}
+
+.nav-close:hover:before,
+.nav-close:hover:after {
+ background: rgb(255,255,255);
+}
+
+.nav ul {
+ padding: 90px 9% 5%;
+ list-style: none;
+ counter-reset: item;
+}
+
+.nav li:before {
+ display: block;
+ float: right;
+ padding-right: 4%;
+ padding-left: 5px;
+ text-align: right;
+ font-size: 1.2rem;
+ vertical-align: bottom;
+ color: #B8B8B8;
+ content: counter(item, lower-roman);
+ counter-increment: item;
+}
+.nav li {
+ margin: 0;
+}
+.nav li a {
+ text-decoration: none;
+ line-height: 1.4;
+ font-size: 1.4rem;
+ display: block;
+ padding: 0.6rem 4%;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+.nav li a:after {
+ display: inline-block;
+ content: " .......................................................";
+ color: rgba(255,255,255,0.2);
+ margin-left: 5px;
+}
+.nav .nav-current:before {
+ color: #fff;
+}
+.nav .nav-current a:after {
+ content: " ";
+ border-bottom: rgba(255,255,255,0.5) 1px solid;
+ width: 100%;
+ height: 1px;
+}
+
+.nav a:link,
+.nav a:visited {
+ color: #B8B8B8;
+}
+
+.nav li.nav-current a,
+.nav a:hover,
+.nav a:active,
+.nav a:focus {
+ color: #fff;
+}
+
+.subscribe-button {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ display: block;
+ position: absolute;
+ bottom: 30px;
+ left: 30px;
+ right: 30px;
+ height: 38px;
+ padding: 0 20px;
+ color: #111 !important; /* Overides `.nav a:link, .nav a:visited` colour */
+ text-align: center;
+ font-size: 12px;
+ font-family: "Open Sans", sans-serif;
+ text-transform: uppercase;
+ text-decoration: none;
+ line-height: 35px;
+ border-radius: 3px;
+ background: #fff;
+ transition: all ease 0.3s;
+}
+.subscribe-button:before {
+ font-size: 9px;
+ margin-right: 6px;
+}
+
+
/* Create a bouncing scroll-down arrow on homepage with cover image */
.scroll-down {
display: block;
@@ -511,6 +727,7 @@ margin on the iframe, cause it breaks stuff. */
text-decoration: none;
color: rgba(255,255,255,0.7);
-webkit-transform: rotate(-90deg);
+ -ms-transform: rotate(-90deg);
transform: rotate(-90deg);
-webkit-animation: bounce 4s 2s infinite;
animation: bounce 4s 2s infinite;
@@ -535,9 +752,6 @@ margin on the iframe, cause it breaks stuff. */
bottom: 0;
left: 50%;
margin-left: -75px;
- background: -moz-radial-gradient(center, ellipse cover, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,0) 100%);
- background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(0,0,0,0.15)), color-stop(70%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0)));
- background: -webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 70%,rgba(0,0,0,0) 100%);
background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 70%,rgba(0,0,0,0) 100%);
}
@@ -549,12 +763,12 @@ margin on the iframe, cause it breaks stuff. */
display: none
}
-/* Appears in the top right corner of your home page */
+/* Appears in the top left corner of your home page */
.blog-logo {
display: block;
float: left;
- background: none !important;
- border: none !important;
+ background: none !important; /* Makes sure there is never a background */
+ border: none !important; /* Makes sure there is never a border */
}
.blog-logo img {
@@ -567,54 +781,73 @@ margin on the iframe, cause it breaks stuff. */
width: auto;
}
-.back-button {
+.menu-button {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: inline-block;
- float: left;
+ float: right;
height: 38px;
- padding: 0 15px 0 10px;
- border: transparent 1px solid;
- color: #9EABB3;
+ padding: 0 15px;
+ border-style: solid;
+ border-width: 1px;
+ opacity: 1;
text-align: center;
font-size: 12px;
text-transform: uppercase;
line-height: 35px;
+ white-space: nowrap;
border-radius: 3px;
- background: rgba(0,0,0,0.1);
- transition: all ease 0.3s;
+ transition: all 0.5s ease;
}
-.back-button:before {
+.menu-button:before {
+ font-size: 12px;
+ font-weight: bold;
+ margin-right: 6px;
position: relative;
- bottom: -2px;
- font-size: 13px;
- line-height: 0;
- margin-right: 8px;
+ top: 1px;
+}
+.menu-button:hover {
+ background: #fff;
+}
+.menu-button:focus {
+ outline: 0;
}
-.subscribe-button {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- display: inline-block;
- float: right;
- height: 38px;
- padding: 0 20px;
- border: transparent 1px solid;
+/* When the navigation is closed */
+.nav-closed .menu-button {
+ color: #fff;
+ border-color: rgba(255, 255, 255, 0.6);
+}
+.nav-closed .menu-button:hover {
+ color: #222;
+}
+
+/* When the navigation is closed and there is no cover image */
+.nav-closed .no-cover .menu-button {
+ border-color: #BFC8CD;
color: #9EABB3;
- text-align: center;
- font-size: 12px;
- text-transform: uppercase;
- line-height: 35px;
- white-space: nowrap;
- border-radius: 3px;
- background: rgba(0,0,0,0.1);
- transition: all ease 0.3s;
}
-.subscribe-button:before {
- font-size: 9px;
- margin-right: 6px;
+.nav-closed .no-cover .menu-button:hover {
+ border-color: #555;
+ color: #555;
+}
+
+/* When the navigation is opened */
+.nav-opened .menu-button {
+ padding: 0 12px;
+ background: #111;
+ border-color: #111;
+ color: #fff;
+ -webkit-transform: translate3D(94px, 0, 0);
+ -ms-transform: translate3D(94px, 0, 0);
+ transform: translate3D(94px, 0, 0);
+ transition: all 0.3s ease;
+}
+
+.nav-opened .menu-button .word {
+ opacity: 0;
+ transition: all 0.3s ease;
}
/* Special styles when overlaid on an image*/
@@ -625,40 +858,12 @@ margin on the iframe, cause it breaks stuff. */
right: 0;
height: 70px;
border: none;
- background: -moz-linear-gradient(top, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.2)), color-stop(100%,rgba(0,0,0,0)));
- background: -webkit-linear-gradient(top, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 100%);
background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 100%);
}
-.no-cover .main-nav.overlay,
-.no-cover .back-button,
-.no-cover .subscribe-button {
+.no-cover .main-nav.overlay {
background: none;
}
-.main-nav.overlay a {
- color: #fff;
-}
-
-.main-nav.overlay .back-button,
-.main-nav.overlay .subscribe-button {
- border-color: rgba(255,255,255,0.6);
-}
-
-.main-nav.overlay a:hover {
- color: #222;
- border-color: #fff;
- background: #fff;
- transition: all 0.1s ease;
-}
-
-/* Add a border to the buttons on hover */
-.back-button:hover,
-.subscribe-button:hover {
- border-color: #bfc8cd;
- color: #9EABB3;
-}
-
/* The details of your blog. Defined in ghost/settings/ */
.page-title {
margin: 10px 0 10px 0;
@@ -681,7 +886,7 @@ margin on the iframe, cause it breaks stuff. */
.no-cover.main-header {
min-height: 160px;
- max-height: 40%;
+ max-height: 40vh;
background: #f5f8fa;
}
@@ -693,12 +898,6 @@ margin on the iframe, cause it breaks stuff. */
color: rgba(0,0,0,0.5);
}
-.no-cover .main-nav.overlay .back-button,
-.no-cover .main-nav.overlay .subscribe-button {
- color: rgba(0,0,0,0.4);
- border-color: rgba(0,0,0,0.3);
-}
-
/* Add subtle load-in animation for content on the home page */
.home-template .page-title {
-webkit-animation: fade-in-down 0.6s;
@@ -721,8 +920,7 @@ margin on the iframe, cause it breaks stuff. */
margin: 4rem auto;
padding-bottom: 4rem;
border-bottom: #EBF2F6 1px solid;
- word-break: break-word;
- hyphens: auto;
+ word-wrap: break-word;
}
/* Add a little circle in the middle of the border-bottom on our .post
@@ -738,8 +936,6 @@ margin on the iframe, cause it breaks stuff. */
left: 50%;
margin-left: -5px;
background: #FFF;
- -webkit-border-radius: 100%;
- -moz-border-radius: 100%;
border-radius: 100%;
box-shadow: #FFF 0 0 0 5px;
}
@@ -864,8 +1060,9 @@ body:not(.post-template) .post-title {
border: none;
}
-/* Stop .full-img from creating horizontal scroll - slight hack due to
- imperfections with browser width % calculations and rounding */
+/* Stop elements, such as img wider than the post content, from
+ creating horizontal scroll - slight hack due to imperfections
+ with browser width % calculations and rounding */
.post-template .content {
overflow: hidden;
}
@@ -882,23 +1079,43 @@ body:not(.post-template) .post-title {
display: none;
}
-/* Keep images centred and within the bounds of the post-width */
+/* Keep images centered, and allow images wider than the main
+ text column to break out. */
.post-content img {
display: block;
- max-width: 100%;
+ max-width: 126%;
height: auto;
- margin: 0 auto;
padding: 0.6em 0;
+ /* Centers an image by (1) pushing its left edge to the
+ center of its container and (2) shifting the entire image
+ in the opposite direction by half its own width.
+ Works for images that are larger than their containers. */
+ position: relative;
+ left: 50%;
+ -webkit-transform: translateX(-50%); /* for Safari and iOS */
+ -ms-transform: translateX(-50%); /* for IE9 */
+ transform: translateX(-50%);
+}
+
+.footnotes {
+ font-style: italic;
+ font-size: 1.3rem;
+ line-height: 1.6em;
+}
+
+.footnotes li {
+ margin: 0.6rem 0;
+}
+
+.footnotes p {
+ margin: 0;
}
-/* Break out larger images to be wider than the main text column
- the class is applied with jQuery */
-.post-content .full-img {
- width: 126%;
- max-width: none;
- margin: 0 -13%;
+.footnotes p a:last-child {
+ text-decoration: none;
}
+
/* The author credit area after the post */
.post-footer {
position: relative;
@@ -969,93 +1186,23 @@ body:not(.post-template) .post-title {
text-decoration: none;
}
-.post-footer .share a:hover {
- color: #50585D;
-}
-
-/* The subscribe icon on the footer */
-.subscribe {
- width: 28px;
- height: 28px;
- position: absolute;
- top: -14px;
- left: 50%;
- margin-left: -15px;
- border: #EBF2F6 1px solid;
- text-align: center;
- line-height: 2.4rem;
- border-radius: 50px;
- background: #FFF;
- transition: box-shadow 0.5s;
-}
-
-/* The RSS icon, inserted via icon font */
-.subscribe:before {
- color: #D2DEE3;
- font-size: 10px;
- position: absolute;
- top: 2px;
- left: 9px;
- font-weight: 700;
- transition: color 0.5s ease;
-}
-
-/* Add a box shadow to on hover */
-.subscribe:hover {
- box-shadow: rgba(0,0,0,0.05) 0 0 0 3px;
- transition: box-shadow 0.25s;
-}
-
-.subscribe:hover:before {
- color: #50585D;
+.post-footer .share .icon-twitter:hover {
+ color: #55acee;
}
-
-/* CSS tooltip saying "Subscribe!" - initially hidden */
-.tooltip {
- opacity: 0;
- display: block;
- width: 53px;
- padding: 4px 8px 5px 8px;
- position:absolute;
- top: -23px;
- left: -21px;
- color: rgba(255,255,255,0.9);
- font-size: 1.1rem;
- line-height: 1em;
- text-align: center;
- background: #50585D;
- border-radius: 20px;
- box-shadow: 0 1px 4px rgba(0,0,0,0.1);
- transition: opacity 0.3s ease, top 0.3s ease;
+.post-footer .share .icon-facebook:hover {
+ color: #3b5998;
}
-
-/* The little chiclet arrow under the tooltip, pointing down */
-.tooltip:after {
- content: " ";
- border-width: 5px 5px 0 5px;
- border-style: solid;
- border-color: #50585D transparent;
- display: block;
- position: absolute;
- bottom: -4px;
- left: 50%;
- margin-left: -5px;
- z-index: 220;
- width: 0;
+.post-footer .share .icon-google-plus:hover {
+ color: #dd4b39;
}
-/* On hover, show the tooltip! */
-.subscribe:hover .tooltip {
- opacity: 1;
- top: -33px;
-}
/* ==========================================================================
6. Author profile
========================================================================== */
.post-head.main-header {
- height: 65%;
+ height: 65vh;
min-height: 180px;
}
@@ -1067,17 +1214,17 @@ body:not(.post-template) .post-title {
}
.tag-head.main-header {
- height: 40%;
+ height: 40vh;
min-height: 180px;
}
.author-head.main-header {
- height: 40%;
+ height: 40vh;
min-height: 180px;
}
.no-cover.author-head.main-header {
- height: 10%;
+ height: 10vh;
min-height: 100px;
background: transparent;
}
@@ -1100,8 +1247,6 @@ body:not(.post-template) .post-title {
left: 50%;
margin-left: -5px;
background: #FFF;
- -webkit-border-radius: 100%;
- -moz-border-radius: 100%;
border-radius: 100%;
box-shadow: #FFF 0 0 0 5px;
}
@@ -1184,8 +1329,134 @@ body:not(.post-template) .post-title {
display: none;
}
+
+/* ==========================================================================
+ 7. Read More - Next/Prev Post Links
+ ========================================================================== */
+
+.read-next {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: stretch;
+ -webkit-align-items: stretch;
+ -ms-flex-align: stretch;
+ align-items: stretch;
+ margin-top: 10rem;
+}
+
+.read-next-story {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-flex: 1;
+ -webkit-flex-grow: 1;
+ -ms-flex-positive: 1;
+ flex-grow: 1;
+ min-width: 50%;
+ text-decoration: none;
+ position: relative;
+ text-align: center;
+ color: #fff;
+ background: #222 no-repeat center center;
+ background-size: cover;
+ overflow: hidden;
+}
+.read-next-story:hover:before {
+ background: rgba(0,0,0,0.8);
+ transition: all 0.2s ease;
+}
+.read-next-story:hover .post:before {
+ color: #222;
+ background: #fff;
+ transition: all 0.2s ease;
+}
+
+.read-next-story:before {
+ content: "";
+ display: block;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ background: rgba(0,0,0,0.7);
+ transition: all 0.5s ease;
+}
+
+.read-next-story .post {
+ padding-top: 6rem;
+ padding-bottom: 6rem;
+}
+
+.read-next-story .post:before {
+ content: "Read This Next";
+ padding: 4px 10px 5px;
+ text-transform: uppercase;
+ font-size: 1.1rem;
+ font-family: "Open Sans", sans-serif;
+ color: rgba(255,255,255,0.8);
+ border: rgba(255,255,255,0.5) 1px solid;
+ border-radius: 4px;
+ transition: all 0.5s ease;
+}
+.read-next-story.prev .post:before {
+ content: "You Might Enjoy";
+}
+
+.read-next-story h2 {
+ margin-top: 1rem;
+ color: #fff;
+}
+
+.read-next-story p {
+ margin: 0;
+ color: rgba(255,255,255,0.8);
+}
+
+/* Special styles for posts with no cover images */
+.read-next-story.no-cover {
+ background: #f5f8fa;
+}
+
+.read-next-story.no-cover:before {
+ display: none;
+}
+
+.read-next-story.no-cover .post:before {
+ color: rgba(0,0,0,0.5);
+ border-color: rgba(0,0,0,0.2);
+}
+
+.read-next-story.no-cover h2 {
+ color: rgba(0,0,0,0.8);
+}
+
+.read-next-story.no-cover p {
+ color: rgba(0,0,0,0.5);
+}
+
+/* if there are two posts without covers, put a border between them */
+.read-next-story.no-cover + .read-next-story.no-cover {
+ border-left: rgba(0,0,100,0.04) 1px solid;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+/* Correctly position site-footer when next to the .read-next container */
+.read-next + .site-footer {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ margin: 0;
+}
+
/* ==========================================================================
- 7. Third Party Elements - Embeds from other services
+ 8. Third Party Elements - Embeds from other services
========================================================================== */
/* Github */
@@ -1193,14 +1464,21 @@ body:not(.post-template) .post-title {
margin: 0;
font-size: 1.4rem;
}
+.gist td {
+ line-height: 1.4;
+}
.gist .line-number {
min-width: 25px;
- font-size: 1.1rem;
+}
+
+/* Pastebin */
+.content .embedPastebin {
+ margin-bottom: 1.75em;
}
/* ==========================================================================
- 8. Pagination - Tools to let you flick between pages
+ 9. Pagination - Tools to let you flick between pages
========================================================================== */
/* The main wrapper for our pagination links */
@@ -1229,7 +1507,7 @@ body:not(.post-template) .post-title {
border: #bfc8cd 1px solid;
text-decoration: none;
border-radius: 4px;
- transition: border ease 0.3s;
+ transition: border 0.3s ease;
}
.older-posts {
@@ -1267,8 +1545,6 @@ body:not(.post-template) .post-title {
left: 50%;
margin-left: -5px;
background: #FFF;
- -webkit-border-radius: 100%;
- -moz-border-radius: 100%;
border-radius: 100%;
box-shadow: #FFF 0 0 0 5px;
}
@@ -1278,7 +1554,7 @@ body:not(.post-template) .post-title {
/* On page2+ make all the headers smaller */
.archive-template .main-header {
- max-height: 30%;
+ max-height: 30vh;
}
/* On page2+ show extra pagination controls at the top of post list */
@@ -1288,14 +1564,13 @@ body:not(.post-template) .post-title {
/* ==========================================================================
- 9. Footer - The bottom of every page
+ 10. Footer - The bottom of every page
========================================================================== */
.site-footer {
position: relative;
margin: 8rem 0 0 0;
- padding: 0.5rem 15px;
- border-top: #EBF2F6 1px solid;
+ padding: 1rem 15px;
font-family: "Open Sans", sans-serif;
font-size: 1rem;
line-height: 1.75em;
@@ -1309,7 +1584,7 @@ body:not(.post-template) .post-title {
}
.site-footer a:hover {
- color: #50585D;
+ border-bottom: #bbc7cc 1px solid;
}
.poweredby {
@@ -1327,15 +1602,11 @@ body:not(.post-template) .post-title {
/* ==========================================================================
- 10. Media Queries - Smaller than 900px
+ 11. Media Queries - Smaller than 900px
========================================================================== */
@media only screen and (max-width: 900px) {
- .main-nav {
- padding: 15px;
- }
-
blockquote {
margin-left: 0;
}
@@ -1346,7 +1617,7 @@ body:not(.post-template) .post-title {
box-sizing: border-box;
height: auto;
min-height: 240px;
- height: 60%;
+ height: 60vh;
padding: 15% 0;
}
@@ -1430,12 +1701,12 @@ body:not(.post-template) .post-title {
}
.post-head.main-header {
- height:45%;
+ height:45vh;
}
.tag-head.main-header,
.author-head.main-header {
- height: 30%;
+ height: 30vh;
}
.no-cover.post-head.main-header {
@@ -1447,65 +1718,76 @@ body:not(.post-template) .post-title {
padding: 0;
}
+ .read-next {
+ -webkit-box-orient: vertical;
+ -webkit-box-direction: normal;
+ -webkit-flex-direction: column;
+ -ms-flex-direction: column;
+ flex-direction: column;
+ margin-top: 4rem;
+ }
+
+ .read-next p {
+ display: none;
+ }
+
+ .read-next-story.no-cover + .read-next-story.no-cover {
+ border-top: rgba(0,0,100,0.06) 1px solid;
+ border-left: none;
+ }
+
}
/* ==========================================================================
- 11. Media Queries - Smaller than 500px
+ 12. Media Queries - Smaller than 500px
========================================================================== */
@media only screen and (max-width: 500px) {
.main-header {
margin-bottom: 15px;
- height: 40%;
+ height: 40vh;
}
.no-cover.main-header {
- height: 30%;
+ height: 30vh;
}
.archive-template .main-header {
- max-height: 20%;
+ max-height: 20vh;
min-height: 160px;
padding: 10% 0;
}
.main-nav {
- padding: 0;
+ padding: 5px;
margin-bottom: 2rem;
- border-bottom: #e0e4e7 1px solid;
}
.blog-logo {
- padding: 10px 10px;
+ padding: 5px;
}
.blog-logo img {
- height: 26px;
+ height: 30px;
}
- .back-button,
- .subscribe-button {
- height: 44px;
- line-height: 41px;
+ .menu-button {
+ padding: 0 5px;
border-radius: 0;
+ border-width: 0;
color: #2e2e2e;
background: transparent;
}
- .back-button:hover,
- .subscribe-button:hover {
- border-color: #ebeef0;
+ .menu-button:hover {
color: #2e2e2e;
- background: #ebeef0;
- }
-
- .back-button {
- padding: 0 15px 0 10px;
+ border-color: transparent;
+ background: none;
}
-
- .subscribe-button {
- padding: 0 12px;
+ body.nav-opened .menu-button {
+ background: none;
+ border: transparent;
}
.main-nav.overlay a:hover {
@@ -1517,18 +1799,26 @@ body:not(.post-template) .post-title {
.no-cover .main-nav.overlay {
background: none;
}
- .no-cover .main-nav.overlay .back-button,
- .no-cover .main-nav.overlay .subscribe-button {
+ .no-cover .main-nav.overlay .menu-button {
border: none;
}
- .main-nav.overlay .back-button,
- .main-nav.overlay .subscribe-button {
+ .main-nav.overlay .menu-button {
border-color: transparent;
}
- .blog-logo img {
- max-height: 80px;
+ .nav-title {
+ top: 25px;
+
+ }
+
+ .nav-close {
+ position: absolute;
+ top: 18px;
+ }
+
+ .nav ul {
+ padding: 60px 9% 5%;
}
.inner,
@@ -1615,23 +1905,13 @@ body:not(.post-template) .post-title {
font-size: 2.5rem;
}
- .post-template .post {
- padding-bottom: 0;
- margin-bottom: 0;
- }
-
.post-template .site-footer {
margin-top: 0;
}
.post-content img {
padding: 0;
- }
-
- .post-content .full-img {
- width: auto;
width: calc(100% + 32px); /* expand with to image + margins */
- margin: 0 -16px; /* get rid of margins */
min-width: 0;
max-width: 112%; /* fallback when calc doesn't work */
}
@@ -1690,12 +1970,12 @@ body:not(.post-template) .post-title {
}
.post-head.main-header {
- height: 30%;
+ height: 30vh;
}
.tag-head.main-header,
.author-head.main-header {
- height: 20%;
+ height: 20vh;
}
.author-profile .author-image {
@@ -1710,11 +1990,20 @@ body:not(.post-template) .post-title {
display: none;
}
+ .read-next {
+ margin-top: 2rem;
+ margin-bottom: -37px;
+ }
+
+ .read-next .post {
+ width: 100%;
+ }
+
}
/* ==========================================================================
- 12. Animations
+ 13. Animations
========================================================================== */
/* Used to fade in title/desc on the home page */
diff --git a/assets/fonts/casper-icons.eot b/assets/fonts/casper-icons.eot
index 0bfce3486..2c0447034 100755
Binary files a/assets/fonts/casper-icons.eot and b/assets/fonts/casper-icons.eot differ
diff --git a/assets/fonts/casper-icons.svg b/assets/fonts/casper-icons.svg
index 98efd0553..e0d40ac73 100755
--- a/assets/fonts/casper-icons.svg
+++ b/assets/fonts/casper-icons.svg
@@ -16,4 +16,5 @@
+
\ No newline at end of file
diff --git a/assets/fonts/casper-icons.ttf b/assets/fonts/casper-icons.ttf
index f1b8da86f..b67da6b83 100755
Binary files a/assets/fonts/casper-icons.ttf and b/assets/fonts/casper-icons.ttf differ
diff --git a/assets/fonts/casper-icons.woff b/assets/fonts/casper-icons.woff
index 4a988939c..4312e4a24 100755
Binary files a/assets/fonts/casper-icons.woff and b/assets/fonts/casper-icons.woff differ
diff --git a/assets/js/index.js b/assets/js/index.js
index 64b01914f..a54a79a79 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -3,66 +3,24 @@
*/
/* globals jQuery, document */
-(function ($, sr, undefined) {
+(function ($, undefined) {
"use strict";
- var $document = $(document),
-
- // debouncing function from John Hann
- // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
- debounce = function (func, threshold, execAsap) {
- var timeout;
-
- return function debounced () {
- var obj = this, args = arguments;
- function delayed () {
- if (!execAsap) {
- func.apply(obj, args);
- }
- timeout = null;
- }
-
- if (timeout) {
- clearTimeout(timeout);
- } else if (execAsap) {
- func.apply(obj, args);
- }
-
- timeout = setTimeout(delayed, threshold || 100);
- };
- };
+ var $document = $(document);
$document.ready(function () {
var $postContent = $(".post-content");
$postContent.fitVids();
- function updateImageWidth() {
- var $this = $(this),
- contentWidth = $postContent.outerWidth(), // Width of the content
- imageWidth = this.naturalWidth; // Original image resolution
-
- if (imageWidth >= contentWidth) {
- $this.addClass('full-img');
- } else {
- $this.removeClass('full-img');
- }
- }
-
- var $img = $("img").on('load', updateImageWidth);
- function casperFullImg() {
- $img.each(updateImageWidth);
- }
-
- casperFullImg();
- $(window).smartresize(casperFullImg);
-
$(".scroll-down").arctic_scroll();
- });
+ $(".menu-button, .nav-cover, .nav-close").on("click", function(e){
+ e.preventDefault();
+ $("body").toggleClass("nav-opened nav-closed");
+ });
- // smartresize
- jQuery.fn[sr] = function(fn) { return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
+ });
// Arctic Scroll by Paul Adam Davis
// https://github.com/PaulAdamDavis/Arctic-Scroll
@@ -95,4 +53,4 @@
});
};
-})(jQuery, 'smartresize');
+})(jQuery);
diff --git a/assets/js/jquery-1.10.2.min.js b/assets/js/jquery-1.10.2.min.js
deleted file mode 100644
index da4170647..000000000
--- a/assets/js/jquery-1.10.2.min.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
-//@ sourceMappingURL=jquery-1.10.2.min.map
-*/
-(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
a",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="