diff --git a/lab/source/README b/lab/source/README
new file mode 100644
index 0000000..4d46858
--- /dev/null
+++ b/lab/source/README
@@ -0,0 +1 @@
+After you generate Pattern Lab for the first time your source files will be placed here.
\ No newline at end of file
diff --git a/lab/source/_data/_data.json b/lab/source/_data/_data.json
new file mode 100644
index 0000000..5c57420
--- /dev/null
+++ b/lab/source/_data/_data.json
@@ -0,0 +1,188 @@
+{
+ "theme" : "default",
+ "css" : "style",
+ "meta-title" : "Pattern Lab",
+ "htmlClass": "pl html",
+ "bodyClass": "body",
+ "modifier": "modifier",
+ "img": {
+ "logo": {
+ "src": "http://placehold.it/350x150",
+ "alt": "logo"
+ },
+ "landscape-4x3": {
+ "src": "http://placehold.it/400x300",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placehold.it/1600x900",
+ "alt": "16x9 Image"
+ },
+ "portrait": {
+ "src" : "http://placehold.it/900x1600",
+ "alt": "Portrait"
+ },
+ "square": {
+ "src": "http://placehold.it/1000x1000",
+ "alt": "Square Thumbnail"
+ },
+ "avatar" : {
+ "src" : "../../images/fpo_avatar.png",
+ "alt" : "Person Name"
+ },
+ "rectangle": {
+ "src": "http://placehold.it/400x300",
+ "alt": "Rectangle"
+ }
+ },
+ "headline" : {
+ "short" : "Lorem ipsum dolor sit (37 characters)",
+ "medium" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. (72 characters)"
+ },
+ "excerpt" : {
+ "short" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam",
+ "medium" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
+ "long" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
+ },
+ "description" : "So, setting about it as methodically as men might smoke out a wasps' nest, the Martians spread this strange stifling vapour over the Londonward country. The horns of the crescent slowly moved apart, until at last they formed a line from Hanwell to Coombe and Malden. All night through their destructive tubes advanced.",
+ "url" : "#",
+ "name" : {
+ "first": "Lacy",
+ "firsti": "L",
+ "middle": "Tommie",
+ "middlei": "T",
+ "last": "Way",
+ "lasti": "W"
+ },
+ "year" : {
+ "long": "2013",
+ "short": "13"
+ },
+ "month" : {
+ "long": "February",
+ "short": "Feb",
+ "digit": "02"
+ },
+ "dayofweek" : {
+ "long": "Monday",
+ "short": "Mon"
+ },
+ "day" : {
+ "long": "10",
+ "short": "10",
+ "ordinal": "th"
+ },
+ "hour" : {
+ "long": "01",
+ "short": "1",
+ "military": "13",
+ "ampm": "pm"
+ },
+ "minute" : {
+ "long": "20",
+ "short": "20"
+ },
+ "seconds" : "31",
+
+
+
+
+
+ "show-comments" : false,
+ "more": "more",
+ "all-rights" : "Alle rechte vorbehalten",
+ "date": "24.12.2015",
+
+
+
+ "show-company" : true,
+ "company" : "Company",
+ "show-address" : true,
+ "street" : "Streetname",
+ "street-nr" : "42",
+ "show-city" : true,
+ "zip" : "0815",
+ "city" : "Basin City",
+ "show-country" : true,
+ "country" : "Zimbabwe",
+ "show-phone" : true,
+ "phone" : "0815 300 600",
+ "show-fax" : true,
+ "fax" : "0815 300 600-15",
+ "show-mail" : true,
+
+
+ "opening" : true,
+
+
+
+ "block-nav" : true,
+ "nav-item" : "navigation",
+ "nav-items" : [
+ {}
+ ],
+
+
+
+ "footer-1" : true,
+ "footer-2" : true,
+ "footer-3" : true,
+ "footer-4" : true,
+
+
+
+
+
+ "block-tag" : "div",
+ "block-modifier" : "",
+ "show-block-overlay" : false,
+ "show-block-link" : true,
+ "show-lightbox" : false,
+ "block-grid" : "",
+ "block-grid-image" : "one-third",
+ "block-grid-content" : "two-thirds",
+ "show-block-image" : true,
+ "block-image" : "http://placehold.it/1980x1280",
+ "show-block-date" : false,
+ "show-block-header" : true,
+ "block-header-tag" : "div",
+ "block-title-tag" : "div",
+ "block-title" : "Block Title dolor sit (37 characters)",
+ "show-block-subtitle" : false,
+ "block-subtitle-tag" : "div",
+ "block-subtitle" : "Block Sub Title lor sit amet, consectetur adipiscing elit. (72 characters)",
+ "show-block-excerpt" : true,
+ "block-excerpt" : "Block excerpt dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
+ "show-block-more" : false,
+
+
+
+
+
+ "section-tag" : "section",
+ "section-modifier" : "",
+ "show-section-image" : false,
+ "section-image" : "../../../../img/testimages/werkzeuge.jpg",
+ "show-section-overlay" : false,
+
+ "show-section-header" : true,
+ "section-header-tag" : "div",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Section Title",
+ "show-subtitle" : true,
+ "section-subtitle" : "Section Subtitle",
+
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "",
+ "section-items" : [
+ {}
+ ],
+
+ "show-section-button" : false,
+
+ "sections" : [
+ {}
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_data/_listitems.json b/lab/source/_data/_listitems.json
new file mode 100644
index 0000000..114ed1f
--- /dev/null
+++ b/lab/source/_data/_listitems.json
@@ -0,0 +1,878 @@
+{
+ "1": {
+ "title": "Nullizzle shizznit velizzle, hizzle, suscipit own yo', gravida vizzle, arcu.",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/people",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/nature",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/tech",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/tech",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/tech",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Lorizzle pimpin' dolizzle sit amet I",
+ "medium": "Rizzle adipiscing elizzle. Nullam sapien velizzle, shit volutpizzle, my"
+ },
+ "excerpt": {
+ "short": "Shizz fo shizzle mah nizzle fo rizzle, mah home g-dizzle, gravida vizzle, arcu. Pellentesque crunk tortizzle. Sed erizzle. Black izzle sheezy telliv.",
+ "medium": "Izzle crazy tempizzle sizzle. We gonna chung gangsta get down get down fo shizzle turpizzle. Away break it down black. Pellentesque bling bling rhoncus fo shizzle. In hac the bizzle platea dictumst. Black dapibizzle. Crackalackin.",
+ "long": "Curabitizzle fo shizzle diam quizzle nisi nizzle mollizzle. Suspendisse boofron. Morbi odio. Sure pizzle. Crazy orci. Shut the shizzle up maurizzle get down get down, check out this a, go to hizzle sit amizzle, malesuada izzle, pede. Pellentesque gravida. Vestibulizzle check it out mi, volutpat izzle, shiz sed, shiznit sempizzle, da bomb. Funky fresh in ipsum. Da bomb volutpat felis vizzle daahng dawg. Crizzle quis dope izzle fo shizzle my ni."
+ },
+ "description": "Fizzle crazy tortor. Sed rizzle. Ass pimpin' dolor dapibizzle turpis tempizzle fo shizzle my nizzle. Maurizzle pellentesque its fo rizzle izzle turpis. Get down get down we gonna chung nizzle. Shizzlin dizzle eleifend rhoncizzle break it down. In yo ghetto platea dictumst. Bling bling dapibizzle. Curabitur break yo neck, yall fo, pretizzle eu, go to hizzle dope, own yo' vitae, nunc. Bizzle suscipizzle. Ass semper velit sizzle fo.",
+ "url": "http://lorizzle.nl/",
+ "name": {
+ "first": "Junius",
+ "firsti": "J",
+ "middle": "Marius",
+ "middlei": "M",
+ "last": "Koolen",
+ "lasti": "K"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "January",
+ "short": "Jan",
+ "digit": "01"
+ },
+ "dayofweek": {
+ "long": "Sunday",
+ "short": "Sun"
+ },
+ "day": {
+ "long": "01",
+ "short": "1",
+ "ordinal": "st"
+ },
+ "hour": {
+ "long": "06",
+ "short": "6",
+ "military": "06",
+ "ampm": "am"
+ },
+ "minute": {
+ "long": "20",
+ "short": "20"
+ },
+ "seconds": "31"
+ },
+ "2": {
+ "title": "Veggies sunt bona vobis, proinde vos postulo",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/nature",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/tech",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/people",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/people",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/people",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Veggies sunt bona vobis, proinde vos",
+ "medium": "Postulo esse magis azuki bean burdock brussels sprout quandong komatsun"
+ },
+ "excerpt": {
+ "short": "A fava bean collard greens endive tomatillo lotus root okra winter purslane zucchini parsley spinach artichoke. Brussels sprout pea turnip catsear.",
+ "medium": "Bush tomato gumbo potato garbanzo ricebean burdock daikon coriander kale quandong. Bok choy celery leek avocado shallot horseradish aubergine parsley. Bok choy bell pepper kale celery desert raisin kakadu plum bok choy bunya nuts.",
+ "long": "Spinach tigernut. Corn cucumber grape black-eyed pea asparagus spinach avocado dulse bunya nuts epazote celery desert raisin celtuce burdock plantain yarrow napa cabbage. Plantain okra seakale endive tigernut pea sprouts asparagus corn chard peanut beet greens groundnut radicchio carrot coriander gumbo gram celtuce. Jícama nori bamboo shoot collard greens okra radicchio tomato. Catsear mustard corn tigernut celery kale water spinach bok choy."
+ },
+ "description": "Mung bean squash sorrel taro coriander collard greens gumbo bitterleaf tomato. Taro water chestnut celtuce turnip yarrow celery endive scallion black-eyed pea onion. Aubergine dulse turnip greens mustard salsify garlic soybean parsley bitterleaf desert raisin courgette.",
+ "url": "http://veggieipsum.com",
+ "name": {
+ "first": "Siguror",
+ "firsti": "S",
+ "middle": "Aron",
+ "middlei": "A",
+ "last": "Hanigan",
+ "lasti": "H"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "February",
+ "short": "Feb",
+ "digit": "02"
+ },
+ "dayofweek": {
+ "long": "Monday",
+ "short": "Mon"
+ },
+ "day": {
+ "long": "10",
+ "short": "10",
+ "ordinal": "th"
+ },
+ "hour": {
+ "long": "01",
+ "short": "1",
+ "military": "13",
+ "ampm": "pm"
+ },
+ "minute": {
+ "long": "20",
+ "short": "20"
+ },
+ "seconds": "31"
+ },
+ "3": {
+ "title": "Bacon ipsum dolor sit amet turducken strip steak beef ribs shank",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/tech",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/people",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/nature",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/nature",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/nature",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Bacon ipsum dolor sit amet spare rib",
+ "medium": "Tongue pancetta short ribs bacon. Kielbasa ball tip cow bresaola, capic"
+ },
+ "excerpt": {
+ "short": "Tail jerky rump shoulder t-bone meatball meatloaf salami. Filet mignon shank t-bone venison, ham hock ribeye drumstick bresaola kielbasa. Frankfurter.",
+ "medium": "Doner biltong turducken leberkas. Rump swine pork loin ribeye ball tip meatloaf, pork chop ground round pig pancetta cow biltong brisket. Beef corned beef beef ribs, bacon pork belly sausage meatball boudin doner ham hock. Swine gro.",
+ "long": "Und round meatball, bacon pig leberkas corned beef tongue shoulder. Drumstick pork loin prosciutto ball tip shank pancetta spare ribs jowl pastrami. Frankfurter boudin filet mignon ribeye. Pig hamburger strip steak ham turducken prosciutto bresaola ground round pancetta frankfurter jowl. Frankfurter tongue brisket tenderloin, beef ribs pastrami biltong tail bresaola flank. Biltong pork chop beef boudin hamburger bacon. Capicola bresaola sausage."
+ },
+ "description": "Boudin sausage jerky pastrami ground round salami biltong. Sausage fatback strip steak doner pork loin, pork belly drumstick ham short loin hamburger shankle. Short ribs sirloin rump tri-tip beef biltong. Meatball pig salami, jowl pork loin fatback short loin drumstick andouille.",
+ "url": "http://baconipsum.com/",
+ "name": {
+ "first": "Teun",
+ "firsti": "T",
+ "middle": "Jodocus",
+ "middlei": "J",
+ "last": "Richard",
+ "lasti": "R"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "March",
+ "short": "Mar",
+ "digit": "03"
+ },
+ "dayofweek": {
+ "long": "Tuesday",
+ "short": "Tue"
+ },
+ "day": {
+ "long": "22",
+ "short": "22",
+ "ordinal": "nd"
+ },
+ "hour": {
+ "long": "04",
+ "short": "4",
+ "military": "16",
+ "ampm": "pm"
+ },
+ "minute": {
+ "long": "45",
+ "short": "45"
+ },
+ "seconds": "11"
+ },
+ "4": {
+ "title": "Whatever swag accusamus occupy, gentrify butcher tote bag",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/animals",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/arch",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/people/grayscale",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/people/greyscale",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/people/greyscale",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Nesciunt sunt cillum keytar Pitchfork",
+ "medium": "Tote bag mixtape PBR Helvetica scenester forage four loko. Irure Tonx"
+ },
+ "excerpt": {
+ "short": "Golf quis +1, Wes Anderson church-key lo-fi keffiyeh selvage culpa authentic Brooklyn fap chambray. Id synth yr, 3 wolf moon locavore +1 mixtape do.",
+ "medium": "Sed single-origin coffee anim eu. Bicycle rights Neutra Truffaut pop-up. Paleo hella irure meh Banksy, Wes Anderson typewriter VHS jean shorts yr. Eiusmod officia banjo Thundercats, odio laborum magna deep v cornhole nostrud kitsch.",
+ "long": "Tattooed Williamsburg. Jean shorts proident kogi laboris. Non tote bag pariatur elit slow-carb, Vice irure eu Echo Park ea aliqua chillwave. Cornhole Etsy quinoa Pinterest cardigan. Excepteur quis forage, Blue Bottle keffiyeh velit hoodie direct trade typewriter Etsy. Fingerstache squid non, sriracha drinking vinegar Shoreditch pork belly. Paleo sartorial mollit 3 wolf moon chambray whatever, sed tote bag small batch freegan. Master cleanse."
+ },
+ "description": "Fanny pack ullamco et veniam semiotics. Shoreditch PBR reprehenderit cliche, magna Tonx aesthetic. Narwhal photo booth DIY aute post-ironic anim. Vice cliche brunch est before they sold out fap, street art Odd Future fashion axe messenger bag nihil Tonx tattooed. Nihil hashtag incididunt, do eu art party Banksy jean shorts four loko typewriter.",
+ "url": "http://hipsteripsum.me/",
+ "name": {
+ "first": "Duane",
+ "firsti": "D",
+ "middle": "Edvin",
+ "middlei": "E",
+ "last": "Wilms",
+ "lasti": "W"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "April",
+ "short": "Apr",
+ "digit": "04"
+ },
+ "dayofweek": {
+ "long": "Wednesday",
+ "short": "Wed"
+ },
+ "day": {
+ "long": "13",
+ "short": "13",
+ "ordinal": "th"
+ },
+ "hour": {
+ "long": "10",
+ "short": "10",
+ "military": "10",
+ "ampm": "am"
+ },
+ "minute": {
+ "long": "14",
+ "short": "14"
+ },
+ "seconds": "52"
+ },
+ "5": {
+ "title": "Marshall McLuhan Colbert bump backpack journalist vast wasteland Romenesko CPM",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/people/grayscale",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/animals",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/arch",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/arch",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/arch",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Blog meme masthead DocumentCloud Fou",
+ "medium": "Square tabloid Andy Carvin stupid commenters, Nick Denton mathewi semip"
+ },
+ "excerpt": {
+ "short": "I love the Weather & Opera section Groupon copyright in the slot, Journal Register open newsroom analytics future totally blowing up on Twitter AOL.",
+ "medium": "CTR mthomps Flipboard do what you do best and link to the rest Buttry media bias Journal Register RT, newspaper strike do what you do best and link to the rest semipermeable learnings cognitive surplus mathewi, Encyclo Google News.",
+ "long": "Pulse mathewi Project Thunderdome digital first. HuffPo social media optimization try PR dying the notion of the public monetization data visualization audience atomization overcome community, libel lawyer twitterati should isn't a business model fair use innovation Facebook AOL, Walter Cronkite died for your sins horse-race coverage crowdfunding Patch but what's the business model rubber cement horse-race coverage. Lucius Nieman content farm."
+ },
+ "description": "Like button audience atomization overcome Colbert bump Free Darko inverted pyramid we will make them pay, digital circulation strategy Like button totally blowing up on Twitter church of the savvy. Pictures of Goats section open source discuss Frontline analog thinking filters paidContent.",
+ "url": "http://www.niemanlab.org/journo-ipsum/",
+ "name": {
+ "first": "Frans",
+ "firsti": "F",
+ "middle": "Fabius",
+ "middlei": "F",
+ "last": "Keegan",
+ "lasti": "K"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "May",
+ "short": "May",
+ "digit": "05"
+ },
+ "dayofweek": {
+ "long": "Thursday",
+ "short": "Thu"
+ },
+ "day": {
+ "long": "26",
+ "short": "26",
+ "ordinal": "th"
+ },
+ "hour": {
+ "long": "06",
+ "short": "6",
+ "military": "18",
+ "ampm": "pm"
+ },
+ "minute": {
+ "long": "37",
+ "short": "37"
+ },
+ "seconds": "24"
+ },
+ "6": {
+ "title": "Thunder, thunder, thundercats, Ho!",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/arch",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/animals",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/people/grayscale",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/people/grayscale",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/people/grayscale",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Hong Kong Phooey, number one super g",
+ "medium": "Hong Kong Phooey, quicker than the human eye. He's got style, a groovy"
+ },
+ "excerpt": {
+ "short": "Style, and a car that just won't stop. When the going gets tough, he's really rough, with a Hong Kong Phooey chop (Hi-Ya!). Hong Kong Phooey, number.",
+ "medium": "One super guy. Hong Kong Phooey, quicker than the human eye. Hong Kong Phooey, he's fan-riffic! One for all and all for one, Muskehounds are always ready. One for all and all for one, helping everybody. One for all and all for one.",
+ "long": "It's a pretty story. Sharing everything with fun, that's the way to be. One for all and all for one, Muskehounds are always ready. One for all and all for one, helping everybody. One for all and all for one, can sound pretty corny. If you've got a problem chum, think how it could be. This is my boss, Jonathan Hart, a self-made millionaire, he's quite a guy. This is Mrs H., she's gorgeous, she's one lady who knows how to take care of herself."
+ },
+ "description": "Beats all you've ever saw, been in trouble with the law since the day they was born. Straight'nin' the curve, flat'nin' the hills. Someday the mountain might get 'em, but the law never will. Makin' their way, the only way they know how, that's just a little bit more than the law will allow. Just good ol' boys, wouldn't change if they could, fightin' the system like a true modern day Robin Hood.",
+ "url": "http://www.malevole.com/mv/misc/text/",
+ "name": {
+ "first": "Fergus",
+ "firsti": "F",
+ "middle": "Jon",
+ "middlei": "J",
+ "last": "Althuis",
+ "lasti": "A"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "June",
+ "short": "Jun",
+ "digit": "06"
+ },
+ "dayofweek": {
+ "long": "Friday",
+ "short": "Fri"
+ },
+ "day": {
+ "long": "08",
+ "short": "8",
+ "ordinal": "th"
+ },
+ "hour": {
+ "long": "11",
+ "short": "11",
+ "military": "23",
+ "ampm": "pm"
+ },
+ "minute": {
+ "long": "37",
+ "short": "37"
+ },
+ "seconds": "33"
+ },
+ "7": {
+ "title": "Yeah, I like animals better than people sometimes",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/any",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/any",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/any",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/any",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/any",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Now that we know who you are, I know",
+ "medium": "Who I am. I'm not a mistake! It all makes sense! In a comic, you know"
+ },
+ "excerpt": {
+ "short": "How you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids. They called me.",
+ "medium": "The lysine contingency - it's intended to prevent the spread of the animals is case they ever got off the island. Dr. Wu inserted a gene that makes a single faulty enzyme in protein metabolism. The animals can't manufacture the amin.",
+ "long": "Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb. Acid lysine. Unless they're."
+ },
+ "description": "Especially dogs. Dogs are the best. Every time you come home, they act like they haven't seen you in a year. And the good thing about dogs... is they got different dogs for different people. Like pit bulls. The dog of dogs. Pit bull can be the right man's best friend... or the wrong man's worst enemy. You going to give me a dog for a pet, give me a pit bull.",
+ "url": "http://slipsum.com/lite/",
+ "name": {
+ "first": "Bertil",
+ "firsti": "B",
+ "middle": "Pier",
+ "middlei": "P",
+ "last": "Aaij",
+ "lasti": "A"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "July",
+ "short": "Jul",
+ "digit": "07"
+ },
+ "dayofweek": {
+ "long": "Saturday",
+ "short": "Sat"
+ },
+ "day": {
+ "long": "22",
+ "short": "22",
+ "ordinal": "nd"
+ },
+ "hour": {
+ "long": "11",
+ "short": "11",
+ "military": "11",
+ "ampm": "am"
+ },
+ "minute": {
+ "long": "12",
+ "short": "12"
+ },
+ "seconds": "47"
+ },
+ "8": {
+ "title": "Webtwo ipsum dolor sit amet, eskobo chumby doostang bebo",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/any/grayscale",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/any/grayscale",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/any/grayscale",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/any/grayscale",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/any/grayscale",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Webtwo ipsum dolor sit amet, eskobo",
+ "medium": "Chumby doostang bebo. Wakoopa oooj geni zoho loopt eskobo sifteo chart"
+ },
+ "excerpt": {
+ "short": "Dropio, chumby waze dopplr plugg oooj yammer jibjab imvu yuntaa knewton, mobly trulia airbnb bitly chegg tivo empressr knewton. Plickers spock voxy.",
+ "medium": "Zooomr kippt voxy zinch appjet napster trulia, zappos wufoo zapier spotify mzinga jaiku fleck, disqus lijit voxy voki yoono. Dogster elgg jibjab xobni kazaa bebo udemy sifteo kiko, elgg knewton skype mog octopart zoodles kazaa udem.",
+ "long": "Appjet spock handango empressr lijit palantir weebly dropio jibjab revver kaboodle spotify orkut mobly chegg akismet, handango ebay woopra revver joukuu kosmix unigo oooooc wufoo zanga kno zinch spock knewton. Balihoo greplin bebo squidoo skype kaboodle meebo disqus joost gooru, zlio tumblr edmodo palantir eskobo shopify kiko gsnap. Greplin balihoo chartly plugg imeem diigo trulia plickers qeyno wikia akismet, palantir grockit prezi jabber zo."
+ },
+ "description": "Wufoo diigo grockit sifteo divvyshot, unigo zooomr revver. Edmodo appjet joyent skype bubbli jajah zoodles joukuu xobni hojoki edmodo appjet, mozy mzinga akismet yuntaa joost yuntaa geni tivo insala yoono chumby, grockit sococo loopt zanga etsy cloudera koofers empressr jiglu blippy. Omgpop lanyrd joukuu sococo zimbra airbnb movity jibjab, foodzie.",
+ "url": "http://web20ipsum.com",
+ "name": {
+ "first": "Freyr",
+ "firsti": "F",
+ "middle": "Ninian",
+ "middlei": "N",
+ "last": "Hines",
+ "lasti": "H"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "August",
+ "short": "Aug",
+ "digit": "08"
+ },
+ "dayofweek": {
+ "long": "Sunday",
+ "short": "Sun"
+ },
+ "day": {
+ "long": "31",
+ "short": "31",
+ "ordinal": "st"
+ },
+ "hour": {
+ "long": "03",
+ "short": "3",
+ "military": "15",
+ "ampm": "pm"
+ },
+ "minute": {
+ "long": "42",
+ "short": "42"
+ },
+ "seconds": "21"
+ },
+ "9": {
+ "title": "Rebel Mission to Ord Mantell",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/any/sepia",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/any/sepia",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/any/sepia",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/any/sepia",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/any/sepia",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "All right. Well, take care of yourself, Han",
+ "medium": "You don't believe in the Force, do you? The Force is strong with this one"
+ },
+ "excerpt": {
+ "short": "I'm trying not to, kid. I find your lack of faith disturbing. You are a part of the Rebel Alliance and a traitor! Take her away! I want to come with.",
+ "medium": "I'm surprised you had the courage to take the responsibility yourself. Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force. You don't be.",
+ "long": "A tremor in the Force. The last time I felt it was in the presence of my old master. You don't believe in the Force, do you? I have traced the Rebel spies to her. Now she is my only link to finding their secret base. A tremor in the Force. The last time I felt it was in the presence of my old master. I'm trying not to, kid. The more you tighten your grip, Tarkin, the more star systems will slip through your fingers. There's nothing for me here."
+ },
+ "description": "I find your lack of faith disturbing. A tremor in the Force. The last time I felt it was in the presence of my old master. Don't act so surprised, Your Highness. You weren't on any mercy mission this time. Several transmissions were beamed to this ship by Rebel spies. I want to know what happened to the plans they sent you. The plans you refer to will soon be back in our hands.",
+ "url": "http://chrisvalleskey.com/fillerama/",
+ "name": {
+ "first": "Jacobus",
+ "firsti": "J",
+ "middle": "Domitianus",
+ "middlei": "D",
+ "last": "Sneiders",
+ "lasti": "S"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "September",
+ "short": "Sep",
+ "digit": "09"
+ },
+ "dayofweek": {
+ "long": "Monday",
+ "short": "Mon"
+ },
+ "day": {
+ "long": "04",
+ "short": "4",
+ "ordinal": "th"
+ },
+ "hour": {
+ "long": "09",
+ "short": "9",
+ "military": "09",
+ "ampm": "am"
+ },
+ "minute": {
+ "long": "04",
+ "short": "4"
+ },
+ "seconds": "37"
+ },
+ "10": {
+ "title": "Help, help, I'm being repressed!",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/tech/grayscale",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/nature/grayscale",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/arch/grayscale",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/arch/grayscale",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/arch/grayscale",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "The swallow may fly south with the sun",
+ "medium": "On second thoughts, let's not go there. It is a silly place. You don't"
+ },
+ "excerpt": {
+ "short": "The swallow may fly south with the sun, and the house martin or the plover may seek warmer climes in winter, yet these are not strangers to our land.",
+ "medium": "The Knights Who Say Ni demand a sacrifice! Found them? In Mercia?! The coconut's tropical! Where'd you get the coconuts? Why do you think that she is a witch? I am your king. You don't vote for kings. But you are dressed as one. Oh, ow!",
+ "long": "Well, I didn't vote for you. Burn her! Be quiet! He hasn't got shit all over him. Where'd you get the coconuts? The swallow may fly south with the sun, and the house martin or the plover may seek warmer climes in winter, yet these are not strangers to our land. No! Yes, yes. A bit. But she's got a wart. Shut up! Will you shut up?! I have to push the pram a lot. Now, look here, my good man. Frighten us, English pig-dogs! Go and boil your bottoms."
+ },
+ "description": "The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migrate? Knights of Ni, we are but simple travelers who seek the enchanter who lives beyond these woods. You don't frighten us, English pig-dogs! Go and boil your bottoms, sons of a silly person! I blow my nose at you, so-called Ah-thoor Keeng, you and all your silly English K-n-n-n-n-n-n-n-niggits!",
+ "url": "http://chrisvalleskey.com/fillerama/",
+ "name": {
+ "first": "Plinius",
+ "firsti": "P",
+ "middle": "Varinius",
+ "middlei": "V",
+ "last": "Sloane",
+ "lasti": "S"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "October",
+ "short": "Oct",
+ "digit": "10"
+ },
+ "dayofweek": {
+ "long": "Tuesday",
+ "short": "Tue"
+ },
+ "day": {
+ "long": "25",
+ "short": "25",
+ "ordinal": "th"
+ },
+ "hour": {
+ "long": "03",
+ "short": "3",
+ "military": "03",
+ "ampm": "am"
+ },
+ "minute": {
+ "long": "51",
+ "short": "51"
+ },
+ "second": "19"
+ },
+ "11": {
+ "title": "Danish danish candy canes bonbon cheesecake danish marzipan",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/tech/sepia",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/animals/sepia",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/arch/sepia",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/arch/sepia",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/arch/sepia",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Carrot cake fruitcake dessert apple",
+ "medium": "Pie powder lemon drops sesame snaps cake brownie. Biscuit ice cream gin"
+ },
+ "excerpt": {
+ "short": "Bread cotton candy marzipan. Baker too go gingerbread topping cupcake donut. Fruitcake marzipan bear claw tart toffee candy cheesecake. Lemon drops.",
+ "medium": "Cupcake chupa chups pudding gummies. Unerdwear.com cupcake candy soufflé sesame snaps macaroon sesame snaps. Tart dragée muffin. Sweet roll gummi bears caramels fruitcake candy cake. Cotton candy carrot cake tart cotton candy. Jelly.",
+ "long": "Gingerbread candy icing pastry cake bonbon fruitcake donut. Powder liquorice dessert tart croissant cake. Dessert chocolate cake sweet roll candy candy sesame snaps tiramisu ice cream. Candy candy canes marzipan biscuit cupcake pie pudding. Donut cotton candy muffin. Pastry bear claw icing halvah. Gingerbread cotton candy sweet roll toffee chocolate jujubes. Wafer jujubes danish ice cream lemon drops wafer. Sesame snaps cupcake gummies browni."
+ },
+ "description": "Sugar plum wafer soufflé ice cream. Wafer topping biscuit pie gummi bears topping. Gummies toffee powder applicake oat cake cookie. Bear claw candy tootsie roll fruitcake danish applicake candy canes macaroon. Liquorice tiramisu danish cotton candy gummies. Tiramisu dessert gummi bears macaroon sweet roll jelly-o gummi bears marzipan.",
+ "url": "http://cupcakeipsum.com/",
+ "name": {
+ "first": "Matthias",
+ "firsti": "M",
+ "middle": "Brady",
+ "middlei": "B",
+ "last": "Macguinness",
+ "lasti": "M"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "November",
+ "short": "Nov",
+ "digit": "11"
+ },
+ "dayofweek": {
+ "long": "Wednesday",
+ "short": "Wed"
+ },
+ "day": {
+ "long": "19",
+ "short": "19",
+ "ordinal": "th"
+ },
+ "hour": {
+ "long": "11",
+ "short": "11",
+ "military": "23",
+ "ampm": "pm"
+ },
+ "minute": {
+ "long": "55",
+ "short": "55"
+ },
+ "seconds": "12"
+ },
+ "12": {
+ "title": "Cottage cheese brie lancashire. Boursin when the cheese comes out.",
+ "img": {
+ "avatar": {
+ "src": "http://placeimg.com/100/100/people/sepia",
+ "alt": "Avatar"
+ },
+ "square": {
+ "src": "http://placeimg.com/300/300/people/sepia",
+ "alt": "Square"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/people/sepia",
+ "alt": "Rectangle"
+ },
+ "landscape-4x3": {
+ "src": "http://placeimg.com/400/300/people/sepia",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "http://placeimg.com/640/360/people/sepia",
+ "alt": "16x9 Image"
+ }
+ },
+ "headline": {
+ "short": "Cauliflower cheese cream cheese baby",
+ "medium": "Lancashire cheesy feet rubber cheese cheese and wine gouda the big chee"
+ },
+ "excerpt": {
+ "short": "Queso fromage. Taleggio boursin bavarian bergkase cream cheese when the cheese comes out everybody's happy port-salut halloumi pecorino. Caerphilly cut the cheese manchego camembert de normandie goat melted cheese cheese and biscuit.",
+ "medium": "Pecorino queso lancashire. Manchego lancashire cheesy feet emmental babybel cheese strings dolcelatte bavarian bergkase. Ricotta cheese slices cheesy grin cow cheesecake smelly cheese mascarpone lancashire. Cow say cheese babybel do.",
+ "long": "Cheesy grin macaroni cheese airedale. Fromage frais airedale cheese and wine brie cow swiss swiss mozzarella. Emmental cheese triangles edam rubber cheese pepper jack ricotta airedale airedale. Brie parmesan smelly cheese cheese strings stinking bishop cheese strings taleggio. Bocconcini blue castello gouda. Everyone loves caerphilly rubber cheese halloumi smelly cheese melted cheese melted cheese bavarian bergkase. Rubber cheese ricotta emm."
+ },
+ "description": "Queso caerphilly cheesecake. Parmesan chalk and cheese port-salut port-salut babybel cottage cheese cheesy grin pepper jack. Croque monsieur paneer st. agur blue cheese emmental airedale monterey jack bavarian bergkase cheese triangles. Halloumi parmesan.",
+ "url": "http://www.cheeseipsum.co.uk/",
+ "name": {
+ "first": "Aquila",
+ "firsti": "A",
+ "middle": "Gaius",
+ "middlei": "G",
+ "last": "Achterkamp",
+ "lasti": "A"
+ },
+ "year": {
+ "long": "2013",
+ "short": "13"
+ },
+ "month": {
+ "long": "December",
+ "short": "Dec",
+ "digit": "12"
+ },
+ "dayofweek": {
+ "long": "Thursday",
+ "short": "Thu"
+ },
+ "day": {
+ "long": "28",
+ "short": "28",
+ "ordinal": "th"
+ },
+ "hour": {
+ "long": "08",
+ "short": "8",
+ "military": "08",
+ "ampm": "am"
+ },
+ "minute": {
+ "long": "34",
+ "short": "34"
+ },
+ "seconds": "56"
+ }
+}
\ No newline at end of file
diff --git a/lab/source/_data/annotations.js b/lab/source/_data/annotations.js
new file mode 100644
index 0000000..3919bce
--- /dev/null
+++ b/lab/source/_data/annotations.js
@@ -0,0 +1,34 @@
+var comments = {
+"comments" : [
+ {
+ "el": "header[role=banner]",
+ "title" : "Masthead",
+ "comment": "The main header of the site doesn't take up too much screen real estate in order to keep the focus on the core content. It's using a linear CSS gradient instead of a background image to give greater design flexibility and reduce HTTP requests."
+ },
+ {
+ "el": ".logo",
+ "title" : "Logo",
+ "comment": "The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don't support SVG images.
Further reading: Optimizing Web Experiences for High Resolution Screens
"
+ },
+ {
+ "el": "#nav",
+ "title" : "Navigation",
+ "comment": "Navigation for adaptive web experiences can be tricky. Top navigations are typical on desktop sites, but mobile screen sizes don't give us the luxury of space. We're dealing with this situation by creating a simple menu anchor that toggles the main navigation on small screens. This is just one method. Bagcheck and Contents Magazine add an anchor in the header that jumps users to the navigation which is placed in the footer. This solution works well because it doesn't require any Javascript in order to work. Other methods exist too. For example, ESPN's mobile navigation overlays the main content of the page.
The nav is only hidden when a certain level of javascript is supported in order to ensure that users with little/poor javascript support can still access the navigation. Once the screen size is large enough to accommodate the nav, we show the main navigation links and hide the menu anchor.
See also: Responsive Navigation Patterns
"
+ },
+ {
+ "el": ".search-form",
+ "title" : "Search",
+ "comment": "Search is an incredibly important priority, especially for mobile. It is a great idea to give users the ability to jump directly to what they are looking for without forcing them to wade through your site's navigation. Check out the Burton and Yelp mobile sites for great examples of experiences that prioritize search.
We're also using the HTML5 search input type , which is great for mobile devices that can bring up the appropriate virtual keyboard for many smartphones. And like the main header navigation, we're hiding the search form on small screens to save space. Clicking the search anchor toggles the form.
"
+ },
+ {
+ "el": ".article-header h1",
+ "title" : "Article Header",
+ "comment": "The article header should be no more than 140 characters.
"
+ },
+ {
+ "el": ".block-hero",
+ "title" : "Hero",
+ "comment": "The hero area highlights one major story using a large image and a captivating headline.
"
+ }
+]
+};
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/00-meta/_00-head.mustache b/lab/source/_patterns/00-atoms/00-meta/_00-head.mustache
new file mode 100644
index 0000000..1c15288
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/00-meta/_00-head.mustache
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+ {{ meta-title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {% pattern-lab-head %}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/00-meta/_01-foot.mustache b/lab/source/_patterns/00-atoms/00-meta/_01-foot.mustache
new file mode 100644
index 0000000..4c098ed
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/00-meta/_01-foot.mustache
@@ -0,0 +1,6 @@
+
+ {% pattern-lab-foot %}
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/01-global/00-colors.mustache b/lab/source/_patterns/00-atoms/01-global/00-colors.mustache
new file mode 100644
index 0000000..9853fd4
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/01-global/00-colors.mustache
@@ -0,0 +1,149 @@
+
+
+
+ red
+
+
+
+ #00ff00
+
+
+
+ #0000ff
+
+
+
+ #ffff00
+
+
+
+ #00ffff
+
+
+
+ #ff00ff
+
+
+
+ #ffffff
+
+
+
+ #808080
+
+
+
+ #000000
+
+
+
+
+ Colors Labrystheia
+
+
+
+
+ #1c1d21 - black
+
+
+
+
+ #ffffff - white
+
+
+
+
+ #cd5334 - orange
+
+
+
+
+ #ffd20c - yellow
+
+
+
+
+ #303299 - blue
+
+
+
+
+ #53dd6c - green
+
+
+
+
+ #807ca8 - purple
+
+
+
+
+
+ Colors Tierschutzverein Kleintiere Vorarlberg
+
+
+
+
+ #1c1d21 - black
+
+
+
+
+ #ffffff - white
+
+
+
+
+ #88ab75 - green
+
+
+
+
+ #cd5334 - orange
+
+
+
+
+ #522a27 - red
+
+
+
+
+ #efb0a1 - pink
+
+
+
+
+ #d5e1a3 - light-green
+
+
+
+
+ #61686B - gray
+
+
+
+
+ #dddddd - gray-middle
+
+
+
+
+ Colors Mösi
+
+
+
+
+ #1c1d21 - black
+
+
+
+
+ #ffffff - white
+
+
+
+
+ #a62021 - red
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/01-global/01-fonts.mustache b/lab/source/_patterns/00-atoms/01-global/01-fonts.mustache
new file mode 100644
index 0000000..a292ff4
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/01-global/01-fonts.mustache
@@ -0,0 +1,6 @@
+Primary font: "HelveticaNeue", "Helvetica", "Arial", sans-serif;
+Primary font italic: "HelveticaNeue", "Helvetica", "Arial", sans-serif;
+Primary font bold: "HelveticaNeue", "Helvetica", "Arial", sans-serif;
+Secondary font: Georgia, Times, "Times New Roman", serif;
+Secondary font italic: Georgia, Times, "Times New Roman", serif;
+Secondary font bold; Georgia, Times, "Times New Roman", serif;
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/01-global/02-animations.mustache b/lab/source/_patterns/00-atoms/01-global/02-animations.mustache
new file mode 100644
index 0000000..7d30745
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/01-global/02-animations.mustache
@@ -0,0 +1,3 @@
+Fade: Duration: 0.3s Easing: ease-out (Hover to see effect)
+
+
Movement: Duration: 0.8s Easing: ease-in-out; (Hover to see effect)
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/01-global/03-visibility.mustache b/lab/source/_patterns/00-atoms/01-global/03-visibility.mustache
new file mode 100644
index 0000000..13e6021
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/01-global/03-visibility.mustache
@@ -0,0 +1,11 @@
+This text is hidden on smaller screens
+
+This text is only visible on smaller screens
+
+This text is hidden on medium screens only
+
+This text is only visible on medium screens
+
+This text is hidden on large screens
+
+This text is only visible on large screens
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/02-text/00-headings.mustache b/lab/source/_patterns/00-atoms/02-text/00-headings.mustache
new file mode 100644
index 0000000..725cd0d
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/02-text/00-headings.mustache
@@ -0,0 +1,6 @@
+Heading Level 1
+Heading Level 2
+Heading Level 3
+Heading Level 4
+Heading Level 5
+Heading Level 6
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/02-text/01-paragraph.mustache b/lab/source/_patterns/00-atoms/02-text/01-paragraph.mustache
new file mode 100644
index 0000000..4ed3f6c
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/02-text/01-paragraph.mustache
@@ -0,0 +1 @@
+A paragraph (from the Greek paragraphos, "to write beside" or "written beside") is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/02-text/02-blockquote.mustache b/lab/source/_patterns/00-atoms/02-text/02-blockquote.mustache
new file mode 100644
index 0000000..2f11319
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/02-text/02-blockquote.mustache
@@ -0,0 +1,3 @@
+
+ A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text, and typically distinguished visually using indentation and a different typeface or smaller size quotation.
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/02-text/03-inline-elements.mustache b/lab/source/_patterns/00-atoms/02-text/03-inline-elements.mustache
new file mode 100644
index 0000000..47aaa89
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/02-text/03-inline-elements.mustache
@@ -0,0 +1,41 @@
+
+
This is a text link
+
+
Strong is used to indicate strong importance
+
+
This text has added emphasis
+
+
The b element is stylistically different text from normal text, without any special importance
+
+
The i element is text that is set off from the normal text
+
+
The u element is text with an unarticulated, though explicitly rendered, non-textual annotation
+
+
This text is deleted and This text is inserted
+
+
This text has a strikethrough
+
+
Superscript®
+
+
Subscript for things like H2 O
+
+
This small text is small for for fine print, etc.
+
+
Abbreviation: HTML
+
+
Keybord input: Cmd
+
+
This text is a short inline quotation
+
+
This is a citation
+
+
The dfn element indicates a definition.
+
+
The mark element indicates a highlight
+
+
This is what inline code looks like.
+
+
This is sample output from a computer program
+
+
The variable element , such as x = y
+
diff --git a/lab/source/_patterns/00-atoms/02-text/04-time.mustache b/lab/source/_patterns/00-atoms/02-text/04-time.mustache
new file mode 100644
index 0000000..26cecc1
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/02-text/04-time.mustache
@@ -0,0 +1 @@
+2 weeks ago
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/02-text/05-preformatted-text.mustache b/lab/source/_patterns/00-atoms/02-text/05-preformatted-text.mustache
new file mode 100644
index 0000000..70de25e
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/02-text/05-preformatted-text.mustache
@@ -0,0 +1,9 @@
+
+P R E F O R M A T T E D T E X T
+! " # $ % & ' ( ) * + , - . /
+0 1 2 3 4 5 6 7 8 9 : ; < = > ?
+@ A B C D E F G H I J K L M N O
+P Q R S T U V W X Y Z [ \ ] ^ _
+` a b c d e f g h i j k l m n o
+p q r s t u v w x y z { | } ~
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/02-text/06-hr.mustache b/lab/source/_patterns/00-atoms/02-text/06-hr.mustache
new file mode 100644
index 0000000..1d6667d
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/02-text/06-hr.mustache
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/03-lists/00-unordered.mustache b/lab/source/_patterns/00-atoms/03-lists/00-unordered.mustache
new file mode 100644
index 0000000..3f9de34
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/03-lists/00-unordered.mustache
@@ -0,0 +1,14 @@
+
+
+ This is a list item in an unordered list
+ An unordered list is a list in which the sequence of items is not important. Sometimes, an unordered list is a bulleted list. And this is a long list item in an unordered list that can wrap onto a new line.
+
+ Lists can be nested inside of each other
+
+ This is a nested list item
+ This is another nested list item in an unordered list
+
+
+ This is the last list item
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/03-lists/01-ordered.mustache b/lab/source/_patterns/00-atoms/03-lists/01-ordered.mustache
new file mode 100644
index 0000000..e206c7b
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/03-lists/01-ordered.mustache
@@ -0,0 +1,14 @@
+
+
+ This is a list item in an ordered list
+ An ordered list is a list in which the sequence of items is important. An ordered list does not necessarily contain sequence characters.
+
+ Lists can be nested inside of each other
+
+ This is a nested list item
+ This is another nested list item in an ordered list
+
+
+ This is the last list item
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/03-lists/02-definition.mustache b/lab/source/_patterns/00-atoms/03-lists/02-definition.mustache
new file mode 100644
index 0000000..0488e08
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/03-lists/02-definition.mustache
@@ -0,0 +1,10 @@
+
+ Definition List
+ A number of connected items or names written or printed consecutively, typically one below the other.
+ This is a term.
+ This is the definition of that term, which both live in a dl
.
+ Here is another term.
+ And it gets a definition too, which is this line.
+ Here is term that shares a definition with the term below.
+ And it gets a definition too, which is this line.
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/04-images/00-logo.mustache b/lab/source/_patterns/00-atoms/04-images/00-logo.mustache
new file mode 100644
index 0000000..181c169
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/04-images/00-logo.mustache
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/04-images/01-landscape-4x3.mustache b/lab/source/_patterns/00-atoms/04-images/01-landscape-4x3.mustache
new file mode 100644
index 0000000..cf874ee
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/04-images/01-landscape-4x3.mustache
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/04-images/02-landscape-16x9.mustache b/lab/source/_patterns/00-atoms/04-images/02-landscape-16x9.mustache
new file mode 100644
index 0000000..9efc5ee
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/04-images/02-landscape-16x9.mustache
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/04-images/03-square.mustache b/lab/source/_patterns/00-atoms/04-images/03-square.mustache
new file mode 100644
index 0000000..805cce5
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/04-images/03-square.mustache
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/04-images/04-avatar.mustache b/lab/source/_patterns/00-atoms/04-images/04-avatar.mustache
new file mode 100644
index 0000000..6b79ad0
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/04-images/04-avatar.mustache
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/04-images/05-icons.mustache b/lab/source/_patterns/00-atoms/04-images/05-icons.mustache
new file mode 100644
index 0000000..4e25123
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/04-images/05-icons.mustache
@@ -0,0 +1,12 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/04-images/06-loading-icon.mustache b/lab/source/_patterns/00-atoms/04-images/06-loading-icon.mustache
new file mode 100644
index 0000000..9a10165
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/04-images/06-loading-icon.mustache
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/04-images/07-favicon.mustache b/lab/source/_patterns/00-atoms/04-images/07-favicon.mustache
new file mode 100644
index 0000000..07e985d
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/04-images/07-favicon.mustache
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/05-forms/00-text-fields.mustache b/lab/source/_patterns/00-atoms/05-forms/00-text-fields.mustache
new file mode 100644
index 0000000..90cbb77
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/05-forms/00-text-fields.mustache
@@ -0,0 +1,38 @@
+
+
+
+ Password
+
+
+
+ Web Address
+
+
+
+ Email Address
+
+
+
+ Search
+
+
+
+
+ Textarea
+
+
+
+ Error Input
+
+
+
+ Valid
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/05-forms/01-select-menu.mustache b/lab/source/_patterns/00-atoms/05-forms/01-select-menu.mustache
new file mode 100644
index 0000000..760c919
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/05-forms/01-select-menu.mustache
@@ -0,0 +1,12 @@
+
+
+ Select
+
+
+ Option One
+ Option Two
+ Option Three
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/05-forms/02-checkbox.mustache b/lab/source/_patterns/00-atoms/05-forms/02-checkbox.mustache
new file mode 100644
index 0000000..017a8dc
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/05-forms/02-checkbox.mustache
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/05-forms/03-radio-buttons.mustache b/lab/source/_patterns/00-atoms/05-forms/03-radio-buttons.mustache
new file mode 100644
index 0000000..68c83ea
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/05-forms/03-radio-buttons.mustache
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/05-forms/04-html5-inputs.mustache b/lab/source/_patterns/00-atoms/05-forms/04-html5-inputs.mustache
new file mode 100644
index 0000000..99c22cc
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/05-forms/04-html5-inputs.mustache
@@ -0,0 +1,10 @@
+
+ Color input
+ Number input
+ Range input
+ Date input
+ Month input
+ Week input
+ Datetime input
+ Datetime-local input
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/06-buttons/00-buttons.mustache b/lab/source/_patterns/00-atoms/06-buttons/00-buttons.mustache
new file mode 100644
index 0000000..bdbeec3
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/06-buttons/00-buttons.mustache
@@ -0,0 +1,4 @@
+Button
+Alternate Button
+Disabled Button
+Text Button
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/07-tables/00-table.mustache b/lab/source/_patterns/00-atoms/07-tables/00-table.mustache
new file mode 100644
index 0000000..53153d5
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/07-tables/00-table.mustache
@@ -0,0 +1,50 @@
+
+
+
+ Table Heading 1
+ Table Heading 2
+ Table Heading 3
+ Table Heading 4
+ Table Heading 5
+
+
+
+
+ Table Footer 1
+ Table Footer 2
+ Table Footer 3
+ Table Footer 4
+ Table Footer 5
+
+
+
+
+ Table Cell 1
+ Table Cell 2
+ Table Cell 3
+ Table Cell 4
+ Table Cell 5
+
+
+ Table Cell 1
+ Table Cell 2
+ Table Cell 3
+ Table Cell 4
+ Table Cell 5
+
+
+ Table Cell 1
+ Table Cell 2
+ Table Cell 3
+ Table Cell 4
+ Table Cell 5
+
+
+ Table Cell 1
+ Table Cell 2
+ Table Cell 3
+ Table Cell 4
+ Table Cell 5
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/08-media/_00-video.mustache b/lab/source/_patterns/00-atoms/08-media/_00-video.mustache
new file mode 100644
index 0000000..f28fcd7
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/08-media/_00-video.mustache
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/00-atoms/08-media/_01-audio.mustache b/lab/source/_patterns/00-atoms/08-media/_01-audio.mustache
new file mode 100644
index 0000000..91c8213
--- /dev/null
+++ b/lab/source/_patterns/00-atoms/08-media/_01-audio.mustache
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/00-text/00-byline.mustache b/lab/source/_patterns/01-molecules/00-text/00-byline.mustache
new file mode 100644
index 0000000..08366ca
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/00-text/00-byline.mustache
@@ -0,0 +1 @@
+by {{ author.first-name }} {{ author.last-name }}
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/00-text/01-contact.mustache b/lab/source/_patterns/01-molecules/00-text/01-contact.mustache
new file mode 100644
index 0000000..50d0bc2
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/00-text/01-contact.mustache
@@ -0,0 +1,50 @@
+{{# contact }}
+
+ {{# show-company }}
+
+ {{ company }}
+
+ {{/ show-company }}
+
+
+ {{# show-address }}
+
+ {{ street }} {{ street-nr }}
+
+ {{/ show-address }}
+
+ {{# show-city }}
+
+ {{ zip }} {{ city }}
+
+ {{/ show-city }}
+
+
+ {{# show-country }}
+
+ {{ country }}
+
+ {{/ show-country }}
+
+
+
+ {{# show-phone }}
+
+ Tel: {{ phone }}
+
+ {{/ show-phone }}
+
+ {{# show-fax }}
+
+ Fax: {{ fax }}
+
+ {{/ show-fax }}
+
+ {{# show-mail }}
+
+ {{/ show-mail }}
+
+
+{{/ contact }}
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/00-text/02-heading-group.mustache b/lab/source/_patterns/01-molecules/00-text/02-heading-group.mustache
new file mode 100644
index 0000000..bf18f5a
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/00-text/02-heading-group.mustache
@@ -0,0 +1,4 @@
+
+
This is the heading group's main heading
+ This is the heading group's subheading
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/00-text/03-blockquote-with-citation.mustache b/lab/source/_patterns/01-molecules/00-text/03-blockquote-with-citation.mustache
new file mode 100644
index 0000000..b9b6c98
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/00-text/03-blockquote-with-citation.mustache
@@ -0,0 +1,4 @@
+
+ A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text, and typically distinguished visually using indentation and a different typeface or smaller size quotation.
+ Quote Source
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/00-text/04-intro-text.mustache b/lab/source/_patterns/01-molecules/00-text/04-intro-text.mustache
new file mode 100644
index 0000000..b2b1bde
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/00-text/04-intro-text.mustache
@@ -0,0 +1 @@
+The intro text may be a lead-in to the passage of text, or it may just be used to create a visual distinction between the rest of the passage of text.
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/00-text/05-slogan.mustache b/lab/source/_patterns/01-molecules/00-text/05-slogan.mustache
new file mode 100644
index 0000000..738f4ee
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/00-text/05-slogan.mustache
@@ -0,0 +1,7 @@
+
+ {{ company }}
+
+
+
+ {{ slogan }}
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/00-text/10-opening.mustache b/lab/source/_patterns/01-molecules/00-text/10-opening.mustache
new file mode 100644
index 0000000..1cad402
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/00-text/10-opening.mustache
@@ -0,0 +1,13 @@
+{{# opening }}
+
+ Mi-Fr
+ 14.00 - 18.00 Uhr
+
+
+
+ Sa
+ 10.00 - 16.00 Uhr
+
+
+
+{{/ opening }}
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/01-layout/00-one-up.mustache b/lab/source/_patterns/01-molecules/01-layout/00-one-up.mustache
new file mode 100644
index 0000000..f31a0f3
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/01-layout/00-one-up.mustache
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/01-layout/01-two-up.mustache b/lab/source/_patterns/01-molecules/01-layout/01-two-up.mustache
new file mode 100644
index 0000000..e2efa40
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/01-layout/01-two-up.mustache
@@ -0,0 +1,12 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/01-layout/02-three-up.mustache b/lab/source/_patterns/01-molecules/01-layout/02-three-up.mustache
new file mode 100644
index 0000000..acf3989
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/01-layout/02-three-up.mustache
@@ -0,0 +1,14 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/01-layout/03-four-up.mustache b/lab/source/_patterns/01-molecules/01-layout/03-four-up.mustache
new file mode 100644
index 0000000..bd50c75
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/01-layout/03-four-up.mustache
@@ -0,0 +1,17 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/00-block-text.mustache b/lab/source/_patterns/01-molecules/02-blocks/00-block-text.mustache
new file mode 100644
index 0000000..d1658e7
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/00-block-text.mustache
@@ -0,0 +1,78 @@
+<{{ block-tag }} class="block block--{{ block-modifier }}">
+
+ {{# show-block-overlay }}
+
+ {{/ show-block-overlay }}
+
+
+ {{# show-block-link }}
+
+ {{/ show-block-link }}
+
+
+
+ {{# show-block-image }}
+
+
+
+
+
+ {{/ show-block-image }}
+
+
+
+ {{# show-block-date }}
+
+ {{ date }}
+
+ {{/ show-block-date }}
+
+
+ {{# show-block-header }}
+ <{{ block-header-tag }} class="block__header">
+ {{/ show-block-header }}
+
+
+ <{{ block-title-tag }} class="block__title">
+ {{{ block-title }}}
+ {{ block-title-tag }}>
+
+
+ {{# show-block-subtitle }}
+ <{{ block-subtitle-tag }} class="block__subtitle">
+ {{{ block-subtitle }}}
+ {{ block-subtitle-tag }}>
+ {{/ show-block-subtitle }}
+
+ {{# show-block-header }}
+ {{ block-header-tag}}>
+ {{/ show-block-header }}
+
+
+
+ {{# show-block-excerpt }}
+
+
+ {{{ block-excerpt }}}
+
+
+ {{/ show-block-excerpt }}
+
+
+
+ {{# show-block-link }}
+ {{# show-block-more }}
+
+ {{{ more }}}
+
+ {{/ show-block-more }}
+ {{/ show-block-link }}
+
+
+
+
+
+ {{# show-block-link }}
+
+ {{/ show-block-link }}
+{{ block-tag }}>
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/01-block-text-top.mustache b/lab/source/_patterns/01-molecules/02-blocks/01-block-text-top.mustache
new file mode 100644
index 0000000..29b7af9
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/01-block-text-top.mustache
@@ -0,0 +1,43 @@
+<{{ block-tag }} class="block block--{{ block-modifier }}">
+
+
+
+ {{# show-block-header }}
+ <{{ block-tag }} class="block__header">
+ {{/ show-block-header }}
+
+ {{# show-block-title }}
+ <{{ block-tag }} class="block__title">
+ {{ block-title }}
+ {{ block-tag }}>
+ {{/ show-block-title }}
+
+ {{# show-block-header }}
+ {{ block-tag}}>
+ {{/ show-block-header }}
+
+ {{# show-block-excerpt }}
+
+
+ {{ block-excerpt }}
+
+
+ {{/ show-block-excerpt }}
+
+ {{# show-block-more }}
+
+ {{ more }}
+
+ {{/ show-block-more }}
+
+
+ {{# show-block-image }}
+
+
+
+
+
+ {{/ show-block-image }}
+
+
+{{ block-tag }}>
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/03-block-inset.mustache b/lab/source/_patterns/01-molecules/02-blocks/03-block-inset.mustache
new file mode 100644
index 0000000..53cebc9
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/03-block-inset.mustache
@@ -0,0 +1,69 @@
+<{{ block-tag }} class="block block--{{ block-modifier }} {{# show-block-image }}cover{{/ show-block-image }}" {{# show-block-image }}style="background-image: url({{ block-image }});"{{/ show-block-image }}>
+
+ {{# show-block-overlay }}
+
+ {{/ show-block-overlay }}
+
+
+ {{# show-block-link }}
+
+ {{/ show-block-link }}
+
+
+
+
+ {{# show-block-date }}
+
+ {{ date }}
+
+ {{/ show-block-date }}
+
+
+ {{# show-block-header }}
+ <{{ block-header-tag }} class="block__header">
+ {{/ show-block-header }}
+
+
+ <{{ block-title-tag }} class="block__title">
+ {{{ block-title }}}
+ {{ block-title-tag }}>
+
+
+ {{# show-block-subtitle }}
+ <{{ block-subtitle-tag }} class="block__subtitle">
+ {{{ block-subtitle }}}
+ {{ block-subtitle-tag }}>
+ {{/ show-block-subtitle }}
+
+ {{# show-block-header }}
+ {{ block-header-tag}}>
+ {{/ show-block-header }}
+
+
+
+ {{# show-block-excerpt }}
+
+
+ {{{ block-excerpt }}}
+
+
+ {{/ show-block-excerpt }}
+
+
+
+ {{# show-block-link }}
+ {{# show-block-more }}
+
+ {{{ more }}}
+
+ {{/ show-block-more }}
+ {{/ show-block-link }}
+
+
+
+
+
+ {{# show-block-link }}
+
+ {{/ show-block-link }}
+{{ block-tag }}>
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/06-block-feature.mustache b/lab/source/_patterns/01-molecules/02-blocks/06-block-feature.mustache
new file mode 100644
index 0000000..b6b9ee4
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/06-block-feature.mustache
@@ -0,0 +1,23 @@
+
+
+
+ {{# feature-image }}
+
+ {{> atoms-landscape-4x3 }}
+
+ {{/ feature-image }}
+
+
+ {{ headline.short }}
+
+
+
+
+
+ {{ more }}
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/07-block-gallery.mustache b/lab/source/_patterns/01-molecules/02-blocks/07-block-gallery.mustache
new file mode 100644
index 0000000..e35951a
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/07-block-gallery.mustache
@@ -0,0 +1,12 @@
+
+
+
+ {{> atoms-square }}
+
+
+
+ {{ headline.short }}
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/08-block-gallery-full.mustache b/lab/source/_patterns/01-molecules/02-blocks/08-block-gallery-full.mustache
new file mode 100644
index 0000000..43fac9d
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/08-block-gallery-full.mustache
@@ -0,0 +1,13 @@
+
+
+
+
+ {{> atoms-square }}
+
+
+
+ {{ headline.short }}
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/10-block-left.mustache b/lab/source/_patterns/01-molecules/02-blocks/10-block-left.mustache
new file mode 100644
index 0000000..4ba37d2
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/10-block-left.mustache
@@ -0,0 +1,53 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/10-block-news.mustache b/lab/source/_patterns/01-molecules/02-blocks/10-block-news.mustache
new file mode 100644
index 0000000..c8646c0
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/10-block-news.mustache
@@ -0,0 +1,43 @@
+<{{ block-tag }} class="block block--{{ block-modifier }}">
+
+
+ {{# show-block-image }}
+
+
+
+
+
+ {{/ show-block-image }}
+
+
+ {{# show-block-header }}
+ <{{ block-tag }} class="block__header">
+ {{/ show-block-header }}
+
+ {{# show-block-title }}
+ <{{ block-tag }} class="block__title">
+ {{ block-title }}
+ {{ block-tag }}>
+ {{/ show-block-title }}
+
+ {{# show-block-header }}
+ {{ block-tag}}>
+ {{/ show-block-header }}
+
+ {{# show-block-excerpt }}
+
+
+ {{ block-excerpt }}
+
+
+ {{/ show-block-excerpt }}
+
+ {{# show-block-more }}
+
+ {{ block-more }}
+
+ {{/ show-block-more }}
+
+
+
+{{ block-tag }}>
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/100-block-tile.mustache b/lab/source/_patterns/01-molecules/02-blocks/100-block-tile.mustache
new file mode 100644
index 0000000..f2dcca0
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/100-block-tile.mustache
@@ -0,0 +1,7 @@
+
diff --git a/lab/source/_patterns/01-molecules/02-blocks/101-block-tile-title.mustache b/lab/source/_patterns/01-molecules/02-blocks/101-block-tile-title.mustache
new file mode 100644
index 0000000..aea5cf2
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/101-block-tile-title.mustache
@@ -0,0 +1,17 @@
+{{# show-comments }}
+
+{{/ show-comments }}
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/102-block-tile-inset.mustache b/lab/source/_patterns/01-molecules/02-blocks/102-block-tile-inset.mustache
new file mode 100644
index 0000000..de5d15b
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/102-block-tile-inset.mustache
@@ -0,0 +1,17 @@
+{{# show-comments }}
+
+{{/ show-comments }}
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/103-block-tile-inset-bottom.mustache b/lab/source/_patterns/01-molecules/02-blocks/103-block-tile-inset-bottom.mustache
new file mode 100644
index 0000000..7706e4d
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/103-block-tile-inset-bottom.mustache
@@ -0,0 +1,20 @@
+{{# show-comments }}
+
+{{/ show-comments }}
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/11-block-right.mustache b/lab/source/_patterns/01-molecules/02-blocks/11-block-right.mustache
new file mode 100644
index 0000000..c6fbfab
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/11-block-right.mustache
@@ -0,0 +1,43 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/12-block-top.mustache b/lab/source/_patterns/01-molecules/02-blocks/12-block-top.mustache
new file mode 100644
index 0000000..4cb8ee0
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/12-block-top.mustache
@@ -0,0 +1,43 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/13-block-bottom.mustache b/lab/source/_patterns/01-molecules/02-blocks/13-block-bottom.mustache
new file mode 100644
index 0000000..f8cbbb9
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/13-block-bottom.mustache
@@ -0,0 +1,44 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/20-block-event.mustache b/lab/source/_patterns/01-molecules/02-blocks/20-block-event.mustache
new file mode 100644
index 0000000..e5f5aa9
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/20-block-event.mustache
@@ -0,0 +1,33 @@
+
+
+
+
+
+ {{> atoms-landscape-4x3 }}
+
+
+
+
+
+
{{ headline.short }}
+
+
+
+ {{ date.short }} - {{ date.short }}
+
+
+
+ {{ headline.short }}
+
+
+
+
+
+ {{ more }}
+
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/20-block-events.mustache b/lab/source/_patterns/01-molecules/02-blocks/20-block-events.mustache
new file mode 100644
index 0000000..39aa02a
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/20-block-events.mustache
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/30-block-team.mustache b/lab/source/_patterns/01-molecules/02-blocks/30-block-team.mustache
new file mode 100644
index 0000000..1618885
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/30-block-team.mustache
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+ {{> atoms-avatar }}
+
+
+
+
+
+ {{ name.full }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/40-block-gallery.mustache b/lab/source/_patterns/01-molecules/02-blocks/40-block-gallery.mustache
new file mode 100644
index 0000000..1ef0718
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/40-block-gallery.mustache
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/02-blocks/50-block-contact.mustache b/lab/source/_patterns/01-molecules/02-blocks/50-block-contact.mustache
new file mode 100644
index 0000000..5a32707
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/02-blocks/50-block-contact.mustache
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/03-media/00-figure-with-caption.mustache b/lab/source/_patterns/01-molecules/03-media/00-figure-with-caption.mustache
new file mode 100644
index 0000000..98e2b44
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/03-media/00-figure-with-caption.mustache
@@ -0,0 +1,4 @@
+
+ {{> atoms-landscape-4x3 }}
+ This is an example of an image with a caption. Photo captions, also known as cutlines, are a few lines of text used to explain or elaborate on published photographs.
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/04-forms/00-search.mustache b/lab/source/_patterns/01-molecules/04-forms/00-search.mustache
new file mode 100644
index 0000000..604b612
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/04-forms/00-search.mustache
@@ -0,0 +1,11 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/04-forms/01-comment-form.mustache b/lab/source/_patterns/01-molecules/04-forms/01-comment-form.mustache
new file mode 100644
index 0000000..e436072
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/04-forms/01-comment-form.mustache
@@ -0,0 +1,20 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/04-forms/02-newsletter.mustache b/lab/source/_patterns/01-molecules/04-forms/02-newsletter.mustache
new file mode 100644
index 0000000..041e231
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/04-forms/02-newsletter.mustache
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/05-navigation/00-primary-nav.mustache b/lab/source/_patterns/01-molecules/05-navigation/00-primary-nav.mustache
new file mode 100644
index 0000000..c04234e
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/05-navigation/00-primary-nav.mustache
@@ -0,0 +1,41 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/05-navigation/01-block-nav.mustache b/lab/source/_patterns/01-molecules/05-navigation/01-block-nav.mustache
new file mode 100644
index 0000000..eca17fb
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/05-navigation/01-block-nav.mustache
@@ -0,0 +1,11 @@
+{{# block-nav }}
+
+{{/ block-nav }}
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/05-navigation/02-inline-nav.mustache b/lab/source/_patterns/01-molecules/05-navigation/02-inline-nav.mustache
new file mode 100644
index 0000000..c678043
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/05-navigation/02-inline-nav.mustache
@@ -0,0 +1,41 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/05-navigation/03-pagination.mustache b/lab/source/_patterns/01-molecules/05-navigation/03-pagination.mustache
new file mode 100644
index 0000000..8b6de64
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/05-navigation/03-pagination.mustache
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/05-navigation/04-tabs.mustache b/lab/source/_patterns/01-molecules/05-navigation/04-tabs.mustache
new file mode 100644
index 0000000..8e4ec10
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/05-navigation/04-tabs.mustache
@@ -0,0 +1,7 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/05-navigation/05-breadcrumbs.mustache b/lab/source/_patterns/01-molecules/05-navigation/05-breadcrumbs.mustache
new file mode 100644
index 0000000..3b5c153
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/05-navigation/05-breadcrumbs.mustache
@@ -0,0 +1,7 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/05-navigation/10-nav-tkv.mustache b/lab/source/_patterns/01-molecules/05-navigation/10-nav-tkv.mustache
new file mode 100644
index 0000000..1171a4c
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/05-navigation/10-nav-tkv.mustache
@@ -0,0 +1,31 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/06-components/00-social-share.mustache b/lab/source/_patterns/01-molecules/06-components/00-social-share.mustache
new file mode 100644
index 0000000..120527d
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/06-components/00-social-share.mustache
@@ -0,0 +1,8 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/06-components/01-accordion.mustache b/lab/source/_patterns/01-molecules/06-components/01-accordion.mustache
new file mode 100644
index 0000000..253962d
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/06-components/01-accordion.mustache
@@ -0,0 +1,19 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/06-components/02-single-comment.mustache b/lab/source/_patterns/01-molecules/06-components/02-single-comment.mustache
new file mode 100644
index 0000000..094229a
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/06-components/02-single-comment.mustache
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/10-header/00-article-header.mustache b/lab/source/_patterns/01-molecules/10-header/00-article-header.mustache
new file mode 100644
index 0000000..14e73ab
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/10-header/00-article-header.mustache
@@ -0,0 +1,12 @@
+{{# show-subtitle }}
+
+{{/ show-subtitle }}
+ {{ title }}
+
+ {{# show-subtitle }}
+ {{ subtitle }}
+ {{/ show-subtitle }}
+
+{{# show-subtitle }}
+
+{{/ show-subtitle }}
\ No newline at end of file
diff --git a/lab/source/_patterns/01-molecules/10-header/10-section-header.mustache b/lab/source/_patterns/01-molecules/10-header/10-section-header.mustache
new file mode 100644
index 0000000..9cb40eb
--- /dev/null
+++ b/lab/source/_patterns/01-molecules/10-header/10-section-header.mustache
@@ -0,0 +1,28 @@
+{{# show-comments }}
+
+{{/ show-comments }}
+
+{{# show-section-header }}
+ <{{ section-header-tag }} class="section__header">
+
+ <{{ section-title-tag }} class="section__title">
+ {{{ section-title }}}
+ {{ section-title-tag}}>
+
+ {{# show-subtitle }}
+ <{{ section-subtitle-tag }} class="section__subtitle">
+ {{{ section-subtitle }}}
+ {{ section-subtitle-tag }}>
+ {{/ show-subtitle }}
+
+ {{ section-header-tag }}>
+{{/ show-section-header }}
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/00-global/00-header.mustache b/lab/source/_patterns/02-organisms/00-global/00-header.mustache
new file mode 100644
index 0000000..6772e35
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/00-global/00-header.mustache
@@ -0,0 +1,9 @@
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/00-global/10-footer.mustache b/lab/source/_patterns/02-organisms/00-global/10-footer.mustache
new file mode 100644
index 0000000..6e763e6
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/00-global/10-footer.mustache
@@ -0,0 +1,9 @@
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/00-global/11-footer-quarter.mustache b/lab/source/_patterns/02-organisms/00-global/11-footer-quarter.mustache
new file mode 100644
index 0000000..d313723
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/00-global/11-footer-quarter.mustache
@@ -0,0 +1,40 @@
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/00-global/12-footer-store.mustache b/lab/source/_patterns/02-organisms/00-global/12-footer-store.mustache
new file mode 100644
index 0000000..d6ed5f1
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/00-global/12-footer-store.mustache
@@ -0,0 +1,33 @@
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/01-article/01-article.mustache b/lab/source/_patterns/02-organisms/01-article/01-article.mustache
new file mode 100644
index 0000000..16d1a80
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/01-article/01-article.mustache
@@ -0,0 +1,28 @@
+{{# article }}
+
+
+
+
+
+
+
+
+
+
+
+ {{> molecules-article-header }}
+
+
+ {{# show-article-more }}
+
+ {{ more }}
+
+ {{/ show-article-more }}
+
+
+
+
+
+
+
+{{/ article }}
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/02-comments/00-comment-thread.mustache b/lab/source/_patterns/02-organisms/02-comments/00-comment-thread.mustache
new file mode 100644
index 0000000..4901f2b
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/02-comments/00-comment-thread.mustache
@@ -0,0 +1,12 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/00-section.mustache b/lab/source/_patterns/02-organisms/03-sections/00-section.mustache
new file mode 100644
index 0000000..e96fd84
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/00-section.mustache
@@ -0,0 +1,56 @@
+{{# show-comments }}
+
+{{/ show-comments }}
+<{{ section-tag }}
+ class="section section--{{ section-modifier }} {{# show-section-image }}cover{{/ show-section-image }}"
+ {{# show-section-image }}style="background-image:url({{ section-image }});"{{/ show-section-image }}
+ >
+
+ {{# show-section-overlay }}
+
+ {{/ show-section-overlay }}
+
+
+
+
+
+ {{> molecules-section-header }}
+
+
+
+ {{# show-section-items }}
+
+ {{# section-items }}
+
+ {{> molecules-block-text }}
+
+ {{/ section-items }}
+
+ {{/ show-section-items }}
+
+ {{# show-section-button }}
+
+ {{/ show-section-button }}
+
+
+
+{{ section-tag }}>
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/01-section-title-subtitle.mustache b/lab/source/_patterns/02-organisms/03-sections/01-section-title-subtitle.mustache
new file mode 100644
index 0000000..cae9d55
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/01-section-title-subtitle.mustache
@@ -0,0 +1,5 @@
+{{# section-title-subtitle }}
+
+ {{> molecules-section-header }}
+
+{{/ section-title-subtitle }}
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/02-section-inset.mustache b/lab/source/_patterns/02-organisms/03-sections/02-section-inset.mustache
new file mode 100644
index 0000000..282984a
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/02-section-inset.mustache
@@ -0,0 +1,51 @@
+{{# show-comments }}
+
+{{/ show-comments }}
+<{{ section-tag }}
+ class="section section--{{ section-modifier }} {{# show-section-image }}cover{{/ show-section-image }}"
+ {{# show-section-image }}style="background-image:url({{ section-image }});"{{/ show-section-image }}
+ >
+
+ {{# show-section-overlay }}
+
+ {{/ show-section-overlay }}
+
+
+ {{> molecules-section-header }}
+
+ {{# show-section-items }}
+
+ {{# section-items }}
+
+ {{> molecules-block-inset }}
+
+ {{/ section-items }}
+
+ {{/ show-section-items }}
+
+ {{# show-section-button }}
+
+ {{/ show-section-button }}
+
+
+
+{{ section-tag }}>
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/10-grid3-img-title-desc.mustache b/lab/source/_patterns/02-organisms/03-sections/10-grid3-img-title-desc.mustache
new file mode 100644
index 0000000..1c9bd4f
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/10-grid3-img-title-desc.mustache
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{> atoms-square }}
+
+
+ {{ excerpt.long }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/10-section-features.mustache b/lab/source/_patterns/02-organisms/03-sections/10-section-features.mustache
new file mode 100644
index 0000000..896e8a9
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/10-section-features.mustache
@@ -0,0 +1,15 @@
+{{# section-features }}
+
+
+ {{> molecules-section-header }}
+
+
+ {{# section-items }}
+
+ {{> molecules-block-text }}
+
+ {{/ section-items }}
+
+
+
+{{/ section-features }}
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/100-article-detail.mustache b/lab/source/_patterns/02-organisms/03-sections/100-article-detail.mustache
new file mode 100644
index 0000000..cd17aac
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/100-article-detail.mustache
@@ -0,0 +1,9 @@
+
+
+ {{ headline.short }}
+
+
+
+ {{ excerpt.long }}
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/11-galleryfull.mustache b/lab/source/_patterns/02-organisms/03-sections/11-galleryfull.mustache
new file mode 100644
index 0000000..3c0013c
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/11-galleryfull.mustache
@@ -0,0 +1,17 @@
+
+
+
+
+
+ {{# show-6 }}
+
+ {{> molecules-block-gallery-full }}
+
+ {{/ show-6 }}
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/11-team.mustache b/lab/source/_patterns/02-organisms/03-sections/11-team.mustache
new file mode 100644
index 0000000..ee4f4ef
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/11-team.mustache
@@ -0,0 +1,15 @@
+{{# section-team }}
+
+
+ {{> molecules-section-header }}
+
+
+ {{# section-items }}
+
+ {{> molecules-block-text }}
+
+ {{/ section-items }}
+
+
+
+{{/ section-team }}
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/20-news.mustache b/lab/source/_patterns/02-organisms/03-sections/20-news.mustache
new file mode 100644
index 0000000..d374e67
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/20-news.mustache
@@ -0,0 +1,15 @@
+{{# section-news }}
+
+
+ {{> molecules-section-header }}
+
+
+ {{# section-items }}
+
+ {{> molecules-block-text }}
+
+ {{/ section-items }}
+
+
+
+{{/ section-news }}
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/21-related-posts.mustache b/lab/source/_patterns/02-organisms/03-sections/21-related-posts.mustache
new file mode 100644
index 0000000..b4a75cb
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/21-related-posts.mustache
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/30-events.mustache b/lab/source/_patterns/02-organisms/03-sections/30-events.mustache
new file mode 100644
index 0000000..240e0c8
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/30-events.mustache
@@ -0,0 +1,7 @@
+{{# section-events }}
+
+ {{# posts }}
+ {{> molecules-block-event }}
+ {{/ posts }}
+
+{{/ section-events }}
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/03-sections/50-gallery.mustache b/lab/source/_patterns/02-organisms/03-sections/50-gallery.mustache
new file mode 100644
index 0000000..0292b74
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/03-sections/50-gallery.mustache
@@ -0,0 +1,17 @@
+
+
+
+
+ {{# show-3 }}
+ {{# show-6 }}
+
+ {{> molecules-block-gallery }}
+
+ {{/ show-6 }}
+ {{/ show-3 }}
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/04-galleries/00-gallery-tile.mustache b/lab/source/_patterns/02-organisms/04-galleries/00-gallery-tile.mustache
new file mode 100644
index 0000000..65f0d60
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/04-galleries/00-gallery-tile.mustache
@@ -0,0 +1,21 @@
+
+
+
+
+ {{# show-4 }}
+ {{# show-6 }}
+
+ {{> molecules-block-tile }}
+
+ {{/ show-6 }}
+ {{/ show-4 }}
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/04-galleries/01-gallery-tile-title.mustache b/lab/source/_patterns/02-organisms/04-galleries/01-gallery-tile-title.mustache
new file mode 100644
index 0000000..d4e5783
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/04-galleries/01-gallery-tile-title.mustache
@@ -0,0 +1,21 @@
+
+
+
+
+ {{# show-4 }}
+ {{# show-6 }}
+
+ {{> molecules-block-tile-title }}
+
+ {{/ show-6 }}
+ {{/ show-4 }}
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/02-organisms/04-galleries/02-gallery-tile-inset.mustache b/lab/source/_patterns/02-organisms/04-galleries/02-gallery-tile-inset.mustache
new file mode 100644
index 0000000..31e7cb6
--- /dev/null
+++ b/lab/source/_patterns/02-organisms/04-galleries/02-gallery-tile-inset.mustache
@@ -0,0 +1,21 @@
+
+
+
+
+ {{# show-4 }}
+ {{# show-6 }}
+
+ {{> molecules-block-tile-inset }}
+
+ {{/ show-6 }}
+ {{/ show-4 }}
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/03-templates/1000-highlight.mustache b/lab/source/_patterns/03-templates/1000-highlight.mustache
new file mode 100644
index 0000000..7722f40
--- /dev/null
+++ b/lab/source/_patterns/03-templates/1000-highlight.mustache
@@ -0,0 +1,221 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Wer wir sind
+
+
+
+ Aliquam ante ac id. Adipiscing interdum lorem praesent fusce pellentesque arcu feugiat. Consequat sed ultricies rutrum. Sed adipiscing eu amet interdum lorem blandit vis ac commodo aliquet integer vulputate phasellus lorem ipsum dolor lorem magna consequat sed etiam adipiscing interdum.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Was wir tun
+
+
+
+ Aliquam ante ac id. Adipiscing interdum lorem praesent fusce pellentesque arcu feugiat. Consequat sed ultricies rutrum. Sed adipiscing eu amet interdum lorem blandit vis ac commodo aliquet integer vulputate phasellus lorem ipsum dolor lorem magna consequat sed etiam adipiscing interdum.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/_patterns/03-templates/200-fixed-sidebar.mustache b/lab/source/_patterns/03-templates/200-fixed-sidebar.mustache
new file mode 100644
index 0000000..df52bf9
--- /dev/null
+++ b/lab/source/_patterns/03-templates/200-fixed-sidebar.mustache
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+ {{ excerpt.long }}
+ {{ excerpt.long }}
+ {{ excerpt.long }}
+ {{ excerpt.long }}
+ {{ excerpt.long }}
+ {{ excerpt.long }}
+ {{ excerpt.long }}
+ {{ excerpt.long }}
+
+
+
+
+
+
+
+
+
+
+ awehgwabhwalg
+
\ No newline at end of file
diff --git a/lab/source/_patterns/03-templates/detail/02-article.mustache b/lab/source/_patterns/03-templates/detail/02-article.mustache
new file mode 100644
index 0000000..e69de29
diff --git a/lab/source/_patterns/03-templates/detail/05-detail.mustache b/lab/source/_patterns/03-templates/detail/05-detail.mustache
new file mode 100644
index 0000000..b7d9df6
--- /dev/null
+++ b/lab/source/_patterns/03-templates/detail/05-detail.mustache
@@ -0,0 +1,14 @@
+
+ {{> organisms-header }}
+
+ {{> organisms-article }}
+
+
+
+
+ {{> organisms-footer }}
+
\ No newline at end of file
diff --git a/lab/source/_patterns/03-templates/overview/10-news.mustache b/lab/source/_patterns/03-templates/overview/10-news.mustache
new file mode 100644
index 0000000..6c2df3e
--- /dev/null
+++ b/lab/source/_patterns/03-templates/overview/10-news.mustache
@@ -0,0 +1,14 @@
+
+ {{> organisms-header }}
+
+ {{> organisms-article }}
+
+
+
+ {{> organisms-news }}
+
+
+
+
+ {{> organisms-footer }}
+
\ No newline at end of file
diff --git a/lab/source/_patterns/03-templates/overview/20-events.mustache b/lab/source/_patterns/03-templates/overview/20-events.mustache
new file mode 100644
index 0000000..03bbf5e
--- /dev/null
+++ b/lab/source/_patterns/03-templates/overview/20-events.mustache
@@ -0,0 +1,12 @@
+
+ {{> organisms-header }}
+
+
+
+ {{> organisms-events }}
+
+
+
+
+ {{> organisms-footer }}
+
\ No newline at end of file
diff --git a/lab/source/_patterns/03-templates/startpage/00-homepage.mustache b/lab/source/_patterns/03-templates/startpage/00-homepage.mustache
new file mode 100644
index 0000000..e409a6b
--- /dev/null
+++ b/lab/source/_patterns/03-templates/startpage/00-homepage.mustache
@@ -0,0 +1,11 @@
+
+ {{> organisms-header }}
+
+ {{# sections }}
+ {{> organisms-section }}
+ {{/ sections }}
+
+
+
+
+{{> organisms-footer-quarter }}
\ No newline at end of file
diff --git a/lab/source/_patterns/03-templates/startpage/01-homepage-labrystheia.mustache b/lab/source/_patterns/03-templates/startpage/01-homepage-labrystheia.mustache
new file mode 100644
index 0000000..b51cb9e
--- /dev/null
+++ b/lab/source/_patterns/03-templates/startpage/01-homepage-labrystheia.mustache
@@ -0,0 +1,11 @@
+
+ {{> organisms-header }}
+
+ {{# sections }}
+ {{> organisms-section }}
+ {{/ sections }}
+
+
+
+
+{{> organisms-footer }}
\ No newline at end of file
diff --git a/lab/source/_patterns/03-templates/startpage/01-homepage-moesi.mustache b/lab/source/_patterns/03-templates/startpage/01-homepage-moesi.mustache
new file mode 100644
index 0000000..f374443
--- /dev/null
+++ b/lab/source/_patterns/03-templates/startpage/01-homepage-moesi.mustache
@@ -0,0 +1,43 @@
+
+ {{> organisms-header }}
+
+ {{# sections }}
+ {{> organisms-section }}
+ {{/ sections }}
+
+ {{# sections-1 }}
+ {{> organisms-section-inset }}
+ {{/ sections-1 }}
+
+
+
+
+ {{# sections-2 }}
+ {{> organisms-section }}
+ {{/ sections-2 }}
+
+
+
+
+
+
+
+ {{> molecules-opening }}
+
+
+
+
+
+
+ {{# sections-3 }}
+ {{> organisms-section }}
+ {{/ sections-3 }}
+
+
+
+
+{{> organisms-footer-store }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/01-homepage/00-default.json b/lab/source/_patterns/04-pages/01-homepage/00-default.json
new file mode 100644
index 0000000..aa590e8
--- /dev/null
+++ b/lab/source/_patterns/04-pages/01-homepage/00-default.json
@@ -0,0 +1,126 @@
+{
+ "meta-title" : "Pattern Lab",
+ "htmlClass": "pl html default",
+ "bodyClass": "body",
+ "modifier": "modifier",
+
+ "sections" : [
+ {
+ "section-tag" : "div",
+ "section-modifier" : "title-subtitle",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/testimages/werkzeuge.jpg",
+ "show-section-overlay" : true,
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "h2",
+ "section-title" : "Das ist ein super großer Titel",
+ "show-subtitle" : true,
+ "section-subtitle" : "Das ist ein etwas längerer Untertitel",
+
+ "show-section-items" : false,
+ "show-section-button" : true
+ },
+
+
+ {
+ "block-modifier" : "feature",
+ "block-grid" : "",
+ "show-block-image" : false,
+ "block-grid-image" : "",
+ "block-grid-content" : "",
+ "show-block-more" : true,
+
+
+
+ "section-modifier" : "features",
+ "section-header-tag" : "div",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Features",
+ "show-subtitle" : false,
+
+ "section-grid" : "",
+ "section-grid-item" : "one-third",
+ "section-items" : [
+ {},
+ {},
+ {}
+ ],
+
+ "show-section-button" : false
+ },
+
+
+ {
+ "block-modifier" : "team",
+ "block-grid" : "grid--middle",
+ "block-grid-image" : "one-third",
+ "block-grid-content" : "two-thirds",
+ "block-image" : "http://placehold.it/400x400",
+ "block-title" : "Phuc Le",
+ "block-excerpt" : "Web Developer",
+
+ "section-modifier" : "bgcolor",
+ "section-subtitle": false,
+ "section-title" : "Team",
+ "section-grid" : "",
+ "section-grid-item" : "one-quarter",
+ "section-items" : [
+ {},
+ {},
+ {},
+ {}
+ ]
+ },
+
+
+ {
+ "block-modifier" : "news",
+ "block-grid" : "",
+ "block-grid-image" : "one-third",
+ "block-grid-content" : "two-thirds",
+ "block-image" : "http://placehold.it/400x400",
+ "show-block-more" : true,
+
+
+ "section-modifier" : "",
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+
+ "section-title" : "News",
+ "show-subtitle" : false,
+
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "",
+ "section-items" : [
+ {},
+ {}
+ ]
+ },
+
+
+
+ {
+ "section-modifier" : "bgfixed",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/testimages/werkzeuge.jpg",
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+
+ "section-title" : "News",
+ "show-subtitle" : false,
+
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "",
+ "section-items" : [
+ {},
+ {}
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/01-homepage/00-default.mustache b/lab/source/_patterns/04-pages/01-homepage/00-default.mustache
new file mode 100644
index 0000000..68a930d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/01-homepage/00-default.mustache
@@ -0,0 +1 @@
+{{> templates-homepage }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/01-homepage/01-labrystheia.json b/lab/source/_patterns/04-pages/01-homepage/01-labrystheia.json
new file mode 100644
index 0000000..3ea3f9d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/01-homepage/01-labrystheia.json
@@ -0,0 +1,179 @@
+{
+ "css" : "labrystheia",
+ "meta-title" : "Labrystheia",
+ "htmlClass": "pl",
+ "bodyClass": "body labrystheia",
+ "modifier": "modifier",
+ "more" : "weiterlesen",
+ "img": {
+ "logo": {
+ "src": "../../../../img/labrystheia/logo-labrystheiea.jpg",
+ "alt": "logo"
+ }
+ },
+ "show-phone" : false,
+ "show-mail" : true,
+ "show-fax" : false,
+ "company" : "Labrystheia",
+ "slogan" : "Netzwerk lesbischer Theologinnen und theologisch interessierter Lesben",
+ "contact" : {
+ "street" : "c/o Postfach 1603",
+ "street-nr" : "",
+ "zip" : "53706",
+ "city" : "Siegburg",
+ "country" : "Deutschland",
+ "mail" : "mail@labrystheia.de"
+ },
+
+
+ "sections" : [
+ {
+ "section-tag" : "div",
+ "section-modifier" : "title-subtitle",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/labrystheia/bible.jpg",
+ "show-section-overlay" : true,
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "h2",
+ "section-title" : "Ein Netzwerk für alle Lesben",
+ "show-subtitle" : true,
+ "section-subtitle" : "die in kirchlicher oder theologischer Ausbildung sind oder waren oder sich für lesbisch-feministische Theologie interessieren",
+
+ "show-section-items" : false,
+ "show-section-button" : true
+ },
+
+
+ {
+ "block-modifier" : "feature",
+ "block-grid" : "",
+ "show-block-image" : false,
+ "block-grid-image" : "",
+ "block-grid-content" : "",
+ "show-block-more" : true,
+
+
+
+ "section-modifier" : "features",
+ "section-header-tag" : "div",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Was wir machen",
+ "show-subtitle" : false,
+
+ "section-grid" : "",
+ "section-grid-item" : "one-quarter",
+ "section-items" : [
+ {
+ "block-title" : "Wir sind politisch aktiv"
+ },
+ {
+ "block-title" : "Wir fördert die Bildung und Stärkung der eigenen Identität"
+ },
+ {
+ "block-title" : "Wir lassen Freundschaften entstehen"
+ },
+ {
+ "block-title" : "Wir bietet Unterstützung bei Konflikten mit Institutionen"
+ }
+ ],
+
+ "show-section-button" : false
+ },
+
+
+ {
+ "block-modifier" : "rounded",
+ "block-grid" : "grid--middle",
+ "block-grid-image" : "one-third",
+ "block-grid-content" : "two-thirds",
+
+ "section-modifier" : "bgcolor",
+ "section-subtitle": false,
+ "section-title" : "Wer wir sind",
+ "section-grid" : "",
+ "section-grid-item" : "one-third",
+ "section-items" : [
+ {
+ "block-image" : "../../../../img/labrystheia/test/martina.jpg",
+ "block-title" : "Martina Müller",
+ "block-excerpt" : "Obfrau"
+ },
+ {
+ "block-image" : "../../../../img/labrystheia/test/nonne.jpg",
+ "block-title" : "Scarlett Mangelberger",
+ "block-excerpt" : "Mädchen für alles"
+ },
+ {
+ "block-image" : "../../../../img/labrystheia/test/nonne2.jpg",
+ "block-title" : "Lasmiranda Den Sivilia",
+ "block-excerpt" : "Kassiererin"
+ }
+ ]
+ },
+
+
+ {
+ "block-modifier" : "",
+ "block-grid" : "",
+ "block-grid-image" : "",
+ "block-grid-content" : "",
+ "show-block-image" : true,
+ "block-image" : "http://placehold.it/1980x1280",
+ "show-block-date" : true,
+ "show-block-subtitle" : true,
+ "show-block-more" : true,
+
+
+ "section-modifier" : "",
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+ "section-title" : "News",
+ "show-subtitle" : false,
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "one-third",
+ "section-items" : [
+ {
+ "date" : "12.12.2014 - 14.12.2014",
+ "block-title" : "Lesbentagung in Bad Boll",
+ "block-subtitle" : "Lesbische Identitäten - Queer gedacht, geliebt, gelebt",
+ "block-excerpt" : "Lesben verbünden sich im Kampf um politische Anerkennung mit anderen Gruppen in LGBTTIQ*-Netzwerken. Welche Aspekte lesbischer Identität kommen dabei zur Geltung, welche bleiben außen vor? Heißt Lesbe sein, feministisch zu sein? Wie kann lesbische Identität in ihrer Vielfalt politisch wirksam werden und in der Aufklärungs- und Bildungsarbeit thematisiert werden? Mehr Informationen & Anmeldung gibt es hier: ",
+ "more" : "weitere Informationen"
+ },
+ {
+ "date" : "21.03.2014 - 23.03 2014",
+ "block-title" : "Jubiläumstagung von Labrystheia in Hannover ",
+ "show-block-subtitle" : false,
+ "block-excerpt" : "Geliebte Labrsytheen und alle, die es werden wollen, lasst uns feiern: Labrystheia, das Netzwerk für lesbische Theologinnen und theologisch interessierte Lesben, wird 25! Zeit für die Silver Convention!"
+ },
+ {
+ "show-block-date" : false,
+ "block-title" : "Buch-Neuerscheinung",
+ "block-subtitle" : "·Let Our Voices Be Heard! Christian Lesbians in Europe Telling their Stories·",
+ "block-excerpt" : "Der Sammelband „Let Our Voices Be Heard! Christian Lesbians in Europe Telling their Stories” ist ein Projekt des Europäischen Forums Christlicher Lesben- und Schwulengruppen (ILGA, www.ilga-europe.org). Die englischsprachige Publikation enthält Texte lesbischer Frauen mit christlichem Hintergrund aus 26 europäischen Ländern. Dabei vereint die Herausgeberin Randi O. Solberg die persönlichen Lebenserfahrungen, Gedichte, Gebete, Fotos und Zeichnungen von 95 lesbischen Frauen zu einer eindrucksvollen Anthologie. Viele Labrystheia Frauen haben an diesem Buch mitgearbeitet."
+ }
+ ]
+ }
+ ],
+
+
+
+
+
+ "nav-item" : "navigation",
+ "nav-items" : [
+ {
+ "nav-item" : "Kontakt"
+ },
+ {
+ "nav-item" : "Impressum"
+ },
+ {
+ "nav-item" : "Sitemap"
+ }
+ ]
+
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/01-homepage/01-labrystheia.mustache b/lab/source/_patterns/04-pages/01-homepage/01-labrystheia.mustache
new file mode 100644
index 0000000..68a930d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/01-homepage/01-labrystheia.mustache
@@ -0,0 +1 @@
+{{> templates-homepage }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/01-homepage/02-moesi.json b/lab/source/_patterns/04-pages/01-homepage/02-moesi.json
new file mode 100644
index 0000000..da83ed0
--- /dev/null
+++ b/lab/source/_patterns/04-pages/01-homepage/02-moesi.json
@@ -0,0 +1,159 @@
+{
+ "css" : "moesi",
+ "meta-title" : "Pattern Lab",
+ "htmlClass": "pl",
+ "bodyClass": "body moesi",
+ "modifier": "modifier",
+ "more" : "weiterlesen",
+ "img": {
+ "logo": {
+ "src": "../../../../img/moesi/logo-moser.png",
+ "alt": "logo"
+ }
+ },
+ "show-phone" : true,
+ "show-mail" : false,
+ "show-fax" : false,
+ "company" : "Mösi's Flohmarkthüsli",
+ "contact" : {
+ "street" : "Gufelweg",
+ "street-nr" : "3",
+ "zip" : "CH-9476",
+ "city" : "Plattis-Weite",
+ "country" : "Schweiz",
+ "phone" : "079 449 86 11",
+ "mail" : ""
+ },
+
+
+ "nav-item" : "navigation",
+ "nav-items" : [
+ {
+ "nav-item" : "AGB"
+ },
+ {
+ "nav-item" : "Impressum"
+ },
+ {
+ "nav-item" : "Kontakt"
+ }
+ ],
+
+
+ "block-more" : "weiter",
+
+
+
+ "section-tag" : "section",
+ "section-modifier" : "",
+ "show-section-image" : false,
+ "section-image" : "../../../../img/testimages/werkzeuge.jpg",
+ "show-section-overlay" : false,
+
+ "show-section-header" : true,
+ "section-header-tag" : "div",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Section Title",
+ "show-subtitle" : true,
+ "section-subtitle" : "Section Subtitle",
+
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "",
+ "section-items" : [
+ {}
+ ],
+
+ "show-section-button" : false,
+
+ "sections" : false,
+
+ "sections-1" : [
+ {
+ "block-modifier" : "title-subtitle",
+ "show-block-overlay" : true,
+ "show-block-subtitle" : true,
+ "show-block-excerpt" : false,
+ "show-block-more" : true,
+
+ "section-modifier" : "slides js-slider",
+ "show-section-image" : false,
+ "show-section-header" : false,
+ "show-section-items" : [
+ {
+ "block-image" : "../../../../img/moesi/laden.jpg",
+ "block-title" : "Flohmarkthüsli",
+ "block-subtitle" : "Kommen Sie bei uns vorbei und stöbern Sie in unserer Sammlung von Antiquitäten aller Art"
+ },
+ {
+ "block-image" : "../../../../img/moesi/dog.jpg",
+ "block-title" : "Husse Hundeprodukte",
+ "block-subtitle" : "Alles was Ihr Hund braucht können Sie hier bestellen."
+ },
+ {
+ "block-image" : "../../../../img/moesi/aquapresen.jpg",
+ "block-title" : "Aquapresen Kosmetik",
+ "block-subtitle" : "Bestellen Sie Aquapresen Kosmetik reine Natur bei Mösis Flohmarkt"
+ }
+ ]
+ }
+ ],
+
+ "sections-2" : [
+ {
+ "block-modifier" : "",
+ "block-grid" : "grid--middle",
+ "show-block-more" : true,
+
+ "section-tag" : "div",
+ "section-modifier" : "",
+
+ "section-header-tag" : "div",
+ "section-title-tag" : "div",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Beliebte Produkte",
+ "show-subtitle" : false,
+
+ "section-grid" : "",
+ "section-grid-item" : "",
+ "section-items" : [
+ {
+ "block-image" : "../../../../img/moesi/husse.gif",
+ "block-title" : "Husse Hundeprodukte",
+ "block-excerpt" : ""
+ },
+ {
+ "block-image" : "../../../../img/moesi/aquapresen.png",
+ "block-title" : "Aquapresen Kosmetik",
+ "block-excerpt" : "Bestellen Sie Aquapresen Kosmetik reine Natur bei Mösis Flohmarkt"
+ }
+ ],
+
+ "show-section-button" : false
+ }
+ ],
+
+
+ "sections-3" : [
+ {
+ "section-tag" : "div",
+ "section-modifier" : "caption-title",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/moesi/shop.jpg",
+ "show-section-overlay" : true,
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "h2",
+ "section-title" : "Mösis Shop",
+ "show-subtitle" : true,
+ "section-subtitle" : "Bestellen Sie einfach online und zahlen mit PayPal oder Kreditkarte. Und das beste: Der Versand ist gratis!",
+
+ "show-section-items" : false,
+ "show-section-button" : true,
+
+ "more" : "zum Shop"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/01-homepage/02-moesi.mustache b/lab/source/_patterns/04-pages/01-homepage/02-moesi.mustache
new file mode 100644
index 0000000..2393113
--- /dev/null
+++ b/lab/source/_patterns/04-pages/01-homepage/02-moesi.mustache
@@ -0,0 +1 @@
+{{> templates-homepage-moesi }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/01-homepage/10-avantgarde.json b/lab/source/_patterns/04-pages/01-homepage/10-avantgarde.json
new file mode 100644
index 0000000..9548a3f
--- /dev/null
+++ b/lab/source/_patterns/04-pages/01-homepage/10-avantgarde.json
@@ -0,0 +1,102 @@
+{
+ "title" : "Pattern Lab",
+ "htmlClass": "pl",
+ "bodyClass": "body avantgarde",
+ "modifier": "modifier",
+ "img": {
+ "logo": {
+ "src": "../../../../img/avantgarde/logo.png",
+ "alt": "Avantgarde"
+ },
+ "landscape-4x3": {
+ "src": "../../images/fpo_4x3.png",
+ "alt": "4x3 Image"
+ },
+ "landscape-16x9": {
+ "src": "../../images/fpo_16x9.png",
+ "alt": "16x9 Image"
+ },
+ "square": {
+ "src": "../../images/fpo_square.png",
+ "alt": "Square Thumbnail"
+ },
+ "avatar" : {
+ "src" : "../../images/fpo_avatar.png",
+ "alt" : "Person Name"
+ },
+ "rectangle": {
+ "src": "http://placeimg.com/400/300/tech",
+ "alt": "Rectangle"
+ },
+ "drinks": {
+ "src": "../../../../img/testimages/drinks/drink1.jpg",
+ "alt": "Rectangle"
+ },
+ "headerimage": {
+ "src": "../../../../img/testimages/big-bear.jpg"
+ }
+ },
+ "article" : {
+ "img": {
+ "landscape-16x9": {
+ "src": "../../../../img/avantgarde/big-bear.jpg"
+ }
+ },
+ "headline" : {
+ "short" : "Build a grrreat Website",
+ "medium" : "Unlimited sliders, video headers, microformats, rich snippets, responsive design and more. AvantGarde gives you the tools to create a beautiful, engaging web presence"
+ },
+ "more" : "purchase now"
+ },
+ "section-features" : {
+ "headline" : {
+ "short" : "Overview",
+ "medium" : "AVANTGARDE LETS YOU BUILD AMAZING WEBSITES QUICKLY AND EASILY."
+ }
+ },
+ "features" : [
+ {
+ "img" : false,
+ "headline" : {
+ "short" : "Unlimited Sliders."
+ },
+ "excerpt" : {
+ "medium" : "Add a slider header to any page, with unlimited images, all with our easy to use shortcode. Our slider also uses categories, this allows you to add your images once, but use them everywhere. Does it get any easier than this?"
+ }
+ },
+ {
+ "img" : false,
+ "headline" : {
+ "short" : "Video Headers."
+ },
+ "excerpt" : {
+ "medium" : "Sometimes images are not enough. Sometimes a video is needed. No problem. Add a video header to any page with our easy-to-use video shortcode. Pretty nifty huh?"
+ }
+ },
+ {
+ "img" : false,
+ "headline" : {
+ "short" : "Sell Online."
+ },
+ "excerpt" : {
+ "medium" : "AvantGarde is WooCommerce compatible, allowing you to sell your products & services online. Simply install the WooCommerce plugin, add your products and away you go. It’s that simple."
+ }
+ },
+ {
+ "img" : false,
+ "headline" : {
+ "short" : "SEO Ready."
+ },
+ "excerpt" : {
+ "medium" : "CSS minification, HTML compression, microformats, rich snippets and more. AvantGarde is built from the ground up with speed, ease-of-use and search engines in mind. Themes shipped the right way."
+ }
+ }
+ ],
+ "section-team" : [
+ {
+ "headline" : {
+ "short" : "Team"
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/01-homepage/10-avantgarde.mustache b/lab/source/_patterns/04-pages/01-homepage/10-avantgarde.mustache
new file mode 100644
index 0000000..68a930d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/01-homepage/10-avantgarde.mustache
@@ -0,0 +1 @@
+{{> templates-homepage }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/10-TKV/00-startseite.json b/lab/source/_patterns/04-pages/10-TKV/00-startseite.json
new file mode 100644
index 0000000..42f0049
--- /dev/null
+++ b/lab/source/_patterns/04-pages/10-TKV/00-startseite.json
@@ -0,0 +1,176 @@
+{
+ "css" : "tkv",
+ "meta-title" : "Pattern Lab",
+ "htmlClass": "pl html tkv",
+ "bodyClass": "body",
+ "modifier": "modifier",
+ "img": {
+ "logo": {
+ "src": "../../../../img/tkv/tkv-logo.png",
+ "alt": "logo"
+ }
+ },
+ "more" : "weiterlesen",
+
+
+ "show-company" : true,
+ "company" : "Tierschutzverein für Kleintiere Vorarlberg",
+ "show-address" : true,
+ "street" : "Binsenfeldstraße",
+ "street-nr" : "30",
+ "show-city" : true,
+ "zip" : "6890",
+ "city" : "Lustenau",
+ "show-country" : true,
+ "country" : "Österreich",
+ "show-phone" : true,
+ "phone" : "0815 300 600",
+ "show-fax" : false,
+ "fax" : "0815 300 600-15",
+ "show-mail" : true,
+ "mail" : "info@tkv.at",
+ "footer-contact-title" : "Kontakt",
+
+
+ "sections" : [
+ {
+ "section-tag" : "div",
+ "section-modifier" : "title-subtitle",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/tkv/test/bg.jpg",
+ "show-section-overlay" : true,
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "h2",
+ "section-title" : "Tierschutzverein",
+ "show-subtitle" : true,
+ "section-subtitle" : "für Kleintiere Vorarlberg",
+
+ "show-section-items" : false,
+ "show-section-button" : false
+ },
+
+ {
+ "section-modifier" : "bgfixed",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/tkv/bg-hase.jpg",
+
+ "section-title" : "",
+ "show-subtitle" : false,
+
+ "show-section-items" : false
+ },
+
+ {
+ "block-modifier" : "Wer wir sind",
+ "block-grid" : "",
+ "show-block-image" : false,
+ "block-grid-image" : "",
+ "block-grid-content" : "",
+ "show-block-more" : true,
+
+ "section-modifier" : "",
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+
+ "section-title" : "Was wir tun",
+ "show-subtitle" : false,
+
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "one-third",
+ "section-items" : [
+ {},
+ {},
+ {}
+ ]
+ },
+
+ {
+ "section-modifier" : "bgfixed",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/tkv/bg-hase-4.jpg",
+
+ "section-title" : "",
+ "show-subtitle" : false,
+
+ "show-section-items" : false
+ },
+
+ {
+ "block-modifier" : "rounded",
+ "block-grid" : "grid--middle",
+ "block-grid-image" : "one-third",
+ "block-grid-content" : "two-thirds",
+ "block-image" : "http://placehold.it/400x400",
+
+ "section-modifier" : "",
+ "show-section-image" : false,
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+
+ "section-title" : "Vereinsmitglieder",
+ "show-subtitle" : false,
+
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "one-third",
+ "section-items" : [
+ {
+ "block-title" : "Marina Gerstner",
+ "block-excerpt" : "Gründerin/Obfrau"
+ },
+ {
+ "block-title" : "Marco Gerstner",
+ "block-excerpt" : "Gründer"
+ },
+ {
+ "block-title" : "Stefan Moder",
+ "block-excerpt" : "Kassier"
+ }
+ ]
+ },
+
+ {
+ "section-modifier" : "bgfixed",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/tkv/bg-hase-3.jpg",
+
+ "section-title" : "",
+ "show-subtitle" : false,
+
+ "show-section-items" : false
+ },
+
+ {
+ "section-modifier" : "",
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+
+ "section-title" : "News",
+ "show-subtitle" : false,
+
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "",
+ "section-items" : [
+ {},
+ {}
+ ]
+ },
+
+ {
+ "section-modifier" : "bgfixed",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/tkv/bg-hase-5.jpg",
+
+ "section-title" : "",
+ "show-subtitle" : false,
+
+ "show-section-items" : false
+ }
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/10-TKV/00-startseite.mustache b/lab/source/_patterns/04-pages/10-TKV/00-startseite.mustache
new file mode 100644
index 0000000..68a930d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/10-TKV/00-startseite.mustache
@@ -0,0 +1 @@
+{{> templates-homepage }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/10-TKV/01-news.json b/lab/source/_patterns/04-pages/10-TKV/01-news.json
new file mode 100644
index 0000000..caf3fcf
--- /dev/null
+++ b/lab/source/_patterns/04-pages/10-TKV/01-news.json
@@ -0,0 +1,88 @@
+{
+ "css" : "tkv",
+ "meta-title" : "Pattern Lab",
+ "htmlClass": "pl html tkv",
+ "bodyClass": "body",
+ "modifier": "modifier",
+ "img": {
+ "logo": {
+ "src": "../../../../img/tkv/tkv-logo.png",
+ "alt": "logo"
+ }
+ },
+ "more" : "weiterlesen",
+
+
+ "show-company" : true,
+ "company" : "Tierschutzverein für Kleintiere Vorarlberg",
+ "show-address" : true,
+ "street" : "Binsenfeldstraße",
+ "street-nr" : "30",
+ "show-city" : true,
+ "zip" : "6890",
+ "city" : "Lustenau",
+ "show-country" : true,
+ "country" : "Österreich",
+ "show-phone" : true,
+ "phone" : "0815 300 600",
+ "show-fax" : false,
+ "fax" : "0815 300 600-15",
+ "show-mail" : true,
+ "mail" : "info@tkv.at",
+ "footer-contact-title" : "Kontakt",
+
+
+ "show-block-more" : true,
+
+ "sections" : [
+ {
+ "section-tag" : "div",
+ "section-modifier" : "caption-title",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/tkv/test/bg.jpg",
+ "show-section-overlay" : true,
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "h2",
+ "section-title" : "",
+ "show-subtitle" : true,
+ "section-subtitle" : "",
+
+ "show-section-items" : false,
+ "show-section-button" : false
+ },
+ {
+ "section-tag" : "div",
+ "section-modifier" : "",
+ "show-section-image" : false,
+ "show-section-overlay" : false,
+
+ "show-section-header" : true,
+ "section-header-tag" : "div",
+ "section-title-tag" : "div",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Aktuelles",
+ "show-subtitle" : false,
+ "section-subtitle" : "Section Subtitle",
+
+ "show-section-items" : true,
+ "section-grid" : "",
+ "section-grid-item" : "",
+ "section-items" : [
+ {
+ "block-image" : "../../../../img/tkv/bg-hase.jpg"
+ },
+ {
+ "block-image" : "../../../../img/tkv/bg-hase-3.jpg"
+ },
+ {
+ "block-image" : "../../../../img/tkv/bg-hase-4.jpg"
+ }
+ ],
+
+ "show-section-button" : false
+ }
+
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/10-TKV/01-news.mustache b/lab/source/_patterns/04-pages/10-TKV/01-news.mustache
new file mode 100644
index 0000000..68a930d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/10-TKV/01-news.mustache
@@ -0,0 +1 @@
+{{> templates-homepage }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/10-TKV/02-events.json b/lab/source/_patterns/04-pages/10-TKV/02-events.json
new file mode 100644
index 0000000..9fb6784
--- /dev/null
+++ b/lab/source/_patterns/04-pages/10-TKV/02-events.json
@@ -0,0 +1,89 @@
+{
+ "css" : "tkv",
+ "meta-title" : "Pattern Lab",
+ "htmlClass": "pl html tkv",
+ "bodyClass": "body",
+ "modifier": "modifier",
+ "img": {
+ "logo": {
+ "src": "../../../../img/tkv/tkv-logo.png",
+ "alt": "logo"
+ }
+ },
+ "more" : "weiterlesen",
+
+
+ "show-company" : true,
+ "company" : "Tierschutzverein für Kleintiere Vorarlberg",
+ "show-address" : true,
+ "street" : "Binsenfeldstraße",
+ "street-nr" : "30",
+ "show-city" : true,
+ "zip" : "6890",
+ "city" : "Lustenau",
+ "show-country" : true,
+ "country" : "Österreich",
+ "show-phone" : true,
+ "phone" : "0815 300 600",
+ "show-fax" : false,
+ "fax" : "0815 300 600-15",
+ "show-mail" : true,
+ "mail" : "info@tkv.at",
+ "footer-contact-title" : "Kontakt",
+
+
+ "sections" : [
+ {
+ "section-tag" : "div",
+ "section-modifier" : "caption-title",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/tkv/test/bg.jpg",
+ "show-section-overlay" : true,
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "h2",
+ "section-title" : "",
+ "show-subtitle" : true,
+ "section-subtitle" : "",
+
+ "show-section-items" : false,
+ "show-section-button" : false
+ },
+ {
+ "section-tag" : "div",
+ "section-modifier" : "",
+ "show-section-image" : false,
+ "show-section-overlay" : false,
+
+ "show-section-header" : true,
+ "section-header-tag" : "div",
+ "section-title-tag" : "div",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Veranstaltungen",
+ "show-subtitle" : false,
+ "section-subtitle" : "Section Subtitle",
+
+ "show-section-items" : true,
+ "show-block-date" : true,
+ "show-block-more" : true,
+
+ "section-grid" : "",
+ "section-grid-item" : "",
+ "section-items" : [
+ {
+ "block-image" : "../../../../img/tkv/bg-hase.jpg"
+ },
+ {
+ "block-image" : "../../../../img/tkv/bg-hase-3.jpg"
+ },
+ {
+ "block-image" : "../../../../img/tkv/bg-hase-4.jpg"
+ }
+ ],
+
+ "show-section-button" : false
+ }
+
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/10-TKV/02-events.mustache b/lab/source/_patterns/04-pages/10-TKV/02-events.mustache
new file mode 100644
index 0000000..68a930d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/10-TKV/02-events.mustache
@@ -0,0 +1 @@
+{{> templates-homepage }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/10-TKV/03-detail.json b/lab/source/_patterns/04-pages/10-TKV/03-detail.json
new file mode 100644
index 0000000..a6dda73
--- /dev/null
+++ b/lab/source/_patterns/04-pages/10-TKV/03-detail.json
@@ -0,0 +1,87 @@
+{
+ "css" : "tkv",
+ "meta-title" : "Pattern Lab",
+ "htmlClass": "pl html tkv",
+ "bodyClass": "body",
+ "modifier": "modifier",
+ "img": {
+ "logo": {
+ "src": "../../../../img/tkv/tkv-logo.png",
+ "alt": "logo"
+ }
+ },
+ "more" : "weiterlesen",
+
+
+ "show-company" : true,
+ "company" : "Tierschutzverein für Kleintiere Vorarlberg",
+ "show-address" : true,
+ "street" : "Binsenfeldstraße",
+ "street-nr" : "30",
+ "show-city" : true,
+ "zip" : "6890",
+ "city" : "Lustenau",
+ "show-country" : true,
+ "country" : "Österreich",
+ "show-phone" : true,
+ "phone" : "0815 300 600",
+ "show-fax" : false,
+ "fax" : "0815 300 600-15",
+ "show-mail" : true,
+ "mail" : "info@tkv.at",
+ "footer-contact-title" : "Kontakt",
+
+ "block-grid-image" : "one-whole",
+ "block-grid-content" : "one-whole",
+
+ "sections" : [
+ {
+ "section-tag" : "div",
+ "section-modifier" : "caption-title",
+ "show-section-image" : true,
+ "section-image" : "../../../../img/tkv/test/bg.jpg",
+ "show-section-overlay" : true,
+
+
+
+ "section-header-tag" : "header",
+ "section-title-tag" : "h1",
+ "section-subtitle-tag" : "h2",
+ "section-title" : "",
+ "show-subtitle" : true,
+ "section-subtitle" : "",
+
+ "show-section-items" : false,
+ "show-section-button" : false
+ },
+ {
+ "section-tag" : "div",
+ "section-modifier" : "",
+ "section-title-grid" : "grid--center",
+ "section-title-grid-item" : "three-quarters",
+ "show-section-image" : false,
+ "show-section-overlay" : false,
+
+ "show-section-header" : true,
+ "section-header-tag" : "div",
+ "section-title-tag" : "div",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Der Verein",
+ "show-subtitle" : false,
+ "section-subtitle" : "Section Subtitle",
+
+ "show-section-items" : true,
+ "section-grid" : "grid--center",
+ "section-grid-item" : "three-quarters",
+ "section-items" : [
+ {
+
+ "block-image" : "../../../../img/tkv/bg-hase.jpg"
+ }
+ ],
+
+ "show-section-button" : false
+ }
+
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/10-TKV/03-detail.mustache b/lab/source/_patterns/04-pages/10-TKV/03-detail.mustache
new file mode 100644
index 0000000..68a930d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/10-TKV/03-detail.mustache
@@ -0,0 +1 @@
+{{> templates-homepage }}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/20-Reuthe/00-home.json b/lab/source/_patterns/04-pages/20-Reuthe/00-home.json
new file mode 100644
index 0000000..47e90ba
--- /dev/null
+++ b/lab/source/_patterns/04-pages/20-Reuthe/00-home.json
@@ -0,0 +1,128 @@
+{
+ "meta-title" : "Pattern Lab",
+ "htmlClass": "pl html default",
+ "bodyClass": "body",
+ "modifier": "modifier",
+ "img": {
+ "logo": {
+ "src": "../../../../img/reuthe/logo.jpg",
+ "alt": "logo"
+ }
+ },
+ "more" : "weiterlesen",
+
+
+ "show-company" : true,
+ "company" : "Tierschutzverein für Kleintiere Vorarlberg",
+ "show-address" : true,
+ "street" : "Binsenfeldstraße",
+ "street-nr" : "30",
+ "show-city" : true,
+ "zip" : "6890",
+ "city" : "Lustenau",
+ "show-country" : true,
+ "country" : "Österreich",
+ "show-phone" : true,
+ "phone" : "0815 300 600",
+ "show-fax" : false,
+ "fax" : "0815 300 600-15",
+ "show-mail" : true,
+ "mail" : "info@tkv.at",
+ "footer-contact-title" : "Kontakt",
+
+
+ "sections" : [
+ {
+ "show-block-image" : false,
+ "section-title" : "Zu Gast in Bad Reuthe",
+ "section-subtitle" : "Bad Reuthe befindet sich auf 650 Höhenmetern im Bundesland Vorarlberg. Inmitten des Bregenzerwaldes liegt das Hotel umgeben von Wiesen, Wäldern, Bergen und Bächen. Das Moor, in dem wir seit über 200 Jahren das schwarze Gold frisch stechen, befindet sich direkt neben dem Wellnesshotel.",
+
+ "section-items" : false
+ },
+
+ {
+ "block-tag" : "div",
+ "block-modifier" : "default",
+ "show-block-overlay" : false,
+ "show-block-link" : true,
+ "show-lightbox" : false,
+ "block-grid" : "grid--center",
+ "block-grid-image" : "",
+ "block-grid-content" : "five-sixths",
+ "show-block-image" : true,
+ "block-image" : "http://placehold.it/1980x1280",
+ "show-block-date" : false,
+ "show-block-header" : true,
+ "block-header-tag" : "div",
+ "block-title-tag" : "div",
+ "block-title" : "Block Title dolor sit (37 characters)",
+ "show-block-subtitle" : false,
+ "block-subtitle-tag" : "div",
+ "block-subtitle" : "Block Sub Title lor sit amet, consectetur adipiscing elit. (72 characters)",
+ "show-block-excerpt" : true,
+ "block-excerpt" : "Block excerpt dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
+ "show-block-more" : false,
+
+
+ "section-tag" : "div",
+ "section-modifier" : "",
+ "show-section-image" : false,
+ "section-image" : "../../../../img/testimages/werkzeuge.jpg",
+ "show-section-overlay" : false,
+
+ "show-section-header" : true,
+ "section-header-tag" : "div",
+ "section-title-tag" : "div",
+ "section-subtitle-tag" : "div",
+ "section-title" : "Section Title",
+ "show-subtitle" : true,
+ "section-subtitle" : "Section Subtitle",
+
+ "show-section-items" : true,
+ "section-grid" : "grid--full",
+ "section-grid-item" : "one-half",
+ "section-items" : [
+ {
+ "block-image" : "../../../../img/reuthe/1.jpg",
+ "block-title" : "Relaxtage in Bad Reuthe",
+ "block-excerpt" : "4 Übernachtungen mit Genuss-Halbpension inkl. Fichtennadel-Bad und Rückenmassage ab 449,00 Euro pro Person",
+ "show-block-more" : true,
+ "more" : "Mehr Erfahren"
+ },
+ {
+ "block-image" : "../../../../img/reuthe/2.jpg",
+ "block-title" : "Aktuelles",
+ "block-excerpt" : "Die Langlaufloipen sind in einem super Zustand und starten direkt vor dem Hotel starten Loipen und Winterwanderwege.",
+ "show-block-more" : true,
+ "more" : "Mehr Erfahren"
+ },
+ {
+ "block-image" : "../../../../img/reuthe/3.jpg",
+ "block-title" : "Gesundheitshotel Bad Reuthe",
+ "block-excerpt" : "Bad Reuthe ist ein historisch gewachsenes Haus mit Geschichte und vielen neuen Einflüssen. Eine spannende Mischung aus Tradition und Moderne.",
+ "show-block-more" : true,
+ "more" : "Mehr Erfahren"
+ },
+ {
+ "block-image" : "../../../../img/reuthe/4.jpg",
+ "block-title" : "Wellness & Therme",
+ "block-excerpt" : "Ein Spa-Bereich, drei Innenbäder und ein Gartenpool (32°C auch im Winter) mit tollen Wasserattraktionen sorgen für Badevergnügen und Erholung",
+ "show-block-more" : true,
+ "more" : "Mehr Erfahren"
+ }
+ ]
+ },
+
+ {
+
+ },
+
+ {
+
+ },
+
+ {
+
+ }
+ ]
+}
\ No newline at end of file
diff --git a/lab/source/_patterns/04-pages/20-Reuthe/00-home.mustache b/lab/source/_patterns/04-pages/20-Reuthe/00-home.mustache
new file mode 100644
index 0000000..68a930d
--- /dev/null
+++ b/lab/source/_patterns/04-pages/20-Reuthe/00-home.mustache
@@ -0,0 +1 @@
+{{> templates-homepage }}
\ No newline at end of file
diff --git a/lab/source/css/scss/base/_animation.scss b/lab/source/css/scss/base/_animation.scss
new file mode 100644
index 0000000..d28bc91
--- /dev/null
+++ b/lab/source/css/scss/base/_animation.scss
@@ -0,0 +1,13 @@
+.animate-fade {
+ @include transition(opacity, 0.3s, ease-out);
+
+ &:hover {
+ opacity: 0;
+ }
+}
+
+.animate-move {
+ > .demo-shape {
+ @include transition(all, 0.8s, ease-in-out);
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/base/_forms.scss b/lab/source/css/scss/base/_forms.scss
new file mode 100644
index 0000000..1c02c6a
--- /dev/null
+++ b/lab/source/css/scss/base/_forms.scss
@@ -0,0 +1,111 @@
+/*------------------------------------*\
+ $FORMS
+\*------------------------------------*/
+form ol, form ul {
+ list-style: none;
+ margin-left: 0;
+}
+
+fieldset {
+ border: 0;
+ padding: 0;
+ margin: 0;
+}
+
+label {
+ display: block;
+ padding-bottom: $space-half;
+}
+
+button, input, select, textarea {
+ font-family: inherit;
+ font-size: 100%;
+ margin: 0 1px 0;
+}
+
+input, textarea {
+ width: 100%;
+ border: 1px solid $gray;
+ padding: $pad-half 0.65rem;
+}
+
+input[type=text], input[type=search], input[type=url], input[type=number], textarea {
+ -webkit-appearance: none;
+}
+
+button, input[type="submit"] {
+ padding: $pad-half;
+ background: $gray-dark;
+ border: 1px solid $gray;
+ cursor: pointer;
+}
+
+input[type="checkbox"],
+input[type="radio"] {
+ width: auto;
+ margin-right: 0.3em;
+}
+
+input[type="search"] {
+ -webkit-appearance: none;
+ border-radius: 0;
+}
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+//Form Field Container
+.field-container {
+ margin-bottom: $space;
+}
+
+.inline-form {
+ fieldset, .inline-container {
+ position: relative;
+ }
+
+ input[type=submit], button, .btn {
+ font-size: $font-size-small-2;
+ padding: 0.65rem 1.3rem;
+ background: $gray-dark;
+ position: absolute;
+ top: 0;
+ right: 0;
+ z-index: 1;
+ width: auto;
+
+ &:hover, &:focus {
+ background: $gray;
+ color: $white;
+ }
+ }
+}
+
+/* Validation */
+.has-error {
+ border-color: $error;
+}
+.is-valid {
+ border-color: $valid;
+}
+
+
+
+
+/*------------------------------------*\
+ $SPECIFIC FORMS
+\*------------------------------------*/
+
+/* Search Form */
+.search-field {
+ padding-right: 3em;
+}
+.inline-form .search-submit {
+ background: none;
+ padding: 0.78em 1em;
+ border: 0;
+ border-left: 1px solid $gray;
+ color: $gray;
+}
diff --git a/lab/source/css/scss/base/_global-classes.scss b/lab/source/css/scss/base/_global-classes.scss
new file mode 100644
index 0000000..2e13f88
--- /dev/null
+++ b/lab/source/css/scss/base/_global-classes.scss
@@ -0,0 +1,104 @@
+/*------------------------------------*\
+ $GLOBAL CLASSES
+\*------------------------------------*/
+
+/* Clearfix */
+.cf {
+ *zoom: 1;
+}
+.cf:before, .cf:after {
+ content: " "; /* 1 */
+ display: table; /* 2 */
+}
+
+.cf:after {
+ clear: both;
+}
+
+/* Completely remove from the flow and screen readers. */
+.is-hidden {
+ display: none !important;
+ visibility: hidden !important;
+}
+
+/* Completely remove from the flow but leave available to screen readers. */
+.is-vishidden {
+ position: absolute !important;
+ overflow: hidden;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ border: 0;
+ clip: rect(1px, 1px, 1px, 1px);
+}
+
+/* Floats */
+.right {
+ float: right;
+ padding: 0 0 $pad $pad;
+}
+
+.right-search {
+ float: right;
+ padding: 0 0 $pad 0;
+}
+
+.left {
+ float: left;
+ padding: 0 $pad $pad 0;
+}
+
+/* Text-Align */
+.align-right {
+ text-align: right;
+}
+
+.align-center {
+ text-align: center;
+}
+
+.align-left {
+ text-align: left;
+}
+
+/* Display Classes */
+.hide-small {
+ @media all and (max-width: $bp-med) {
+ display: none;
+ }
+}
+
+.hide-med {
+ @media all and (min-width: $bp-med) and (max-width: $bp-large) {
+ display: none;
+ }
+}
+
+.hide-large {
+ @media all and (min-width: $bp-large) {
+ display: none;
+ }
+}
+
+//States
+.valid {
+ color: $valid;
+}
+
+.error {
+ color: $error;
+}
+
+.warning {
+ color: $warning;
+}
+
+.information {
+ color: $information;
+}
+
+.font-secondary {
+ font-family: $font-secondary;
+}
+
+
diff --git a/lab/source/css/scss/base/_headings.scss b/lab/source/css/scss/base/_headings.scss
new file mode 100644
index 0000000..5f24336
--- /dev/null
+++ b/lab/source/css/scss/base/_headings.scss
@@ -0,0 +1,31 @@
+/* Headings */
+/*Further Reading: http:/csswizardry.com/2012/02/pragmatic-practical-font-sizing-in-css/ */
+h1, .alpha {
+ line-height: 1.2;
+}
+
+h2, .beta {
+ line-height: 1.2;
+}
+
+h3, .gamma {
+ line-height: 1.2;
+}
+
+h4, .delta {
+
+}
+
+h5, .epsilon {
+
+}
+
+h6, .zeta {
+
+}
+
+/* Subheadings */
+.subheading {
+ font-family: $font-secondary;
+ font-weight: normal;
+}
diff --git a/lab/source/css/scss/base/_links.scss b/lab/source/css/scss/base/_links.scss
new file mode 100644
index 0000000..d70545d
--- /dev/null
+++ b/lab/source/css/scss/base/_links.scss
@@ -0,0 +1,10 @@
+/* Links */
+a {
+ color: $gray-dark;
+ text-decoration: none;
+ outline: 0;
+
+ &:hover, &:focus {
+ color: $gray;
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/base/_lists.scss b/lab/source/css/scss/base/_lists.scss
new file mode 100644
index 0000000..4ceb7cf
--- /dev/null
+++ b/lab/source/css/scss/base/_lists.scss
@@ -0,0 +1,19 @@
+ol, ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+/* Definition Lists */
+dl {
+ overflow: hidden;
+ margin: 0 0 $space;
+}
+
+dt {
+ font-weight: bold;
+}
+
+dd {
+ margin-left: 0;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/base/_main.scss b/lab/source/css/scss/base/_main.scss
new file mode 100644
index 0000000..f92fd1b
--- /dev/null
+++ b/lab/source/css/scss/base/_main.scss
@@ -0,0 +1,6 @@
+body {
+ background: $white;
+ font: 100%/1.5 $font;
+ -webkit-text-size-adjust: 100%;
+ color: $gray-dark;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/base/_media.scss b/lab/source/css/scss/base/_media.scss
new file mode 100644
index 0000000..ec74c8f
--- /dev/null
+++ b/lab/source/css/scss/base/_media.scss
@@ -0,0 +1,23 @@
+/*------------------------------------*\
+ $MEDIA ELEMENTS
+\*------------------------------------*/
+
+/* Flexible Media */
+img, video, object {
+ max-width: 100%;
+ height: auto;
+}
+
+iframe {
+ margin-bottom: $space;
+}
+
+figure {
+ margin-bottom: $space;
+ img {
+ margin-bottom: $space-half;
+ }
+}
+figcaption {
+ font-style: italic;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/base/_tables.scss b/lab/source/css/scss/base/_tables.scss
new file mode 100644
index 0000000..1b2a2b2
--- /dev/null
+++ b/lab/source/css/scss/base/_tables.scss
@@ -0,0 +1,18 @@
+/*------------------------------------*\
+ $Table
+\*------------------------------------*/
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ border: 1px solid $gray;
+ width: 100%;
+}
+th {
+ text-align: left;
+ border: 1px solid $gray;
+ padding: 0.2em;
+}
+td {
+ border: 1px solid $gray;
+ padding: 0.2em;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/base/_text.scss b/lab/source/css/scss/base/_text.scss
new file mode 100644
index 0000000..de17e3e
--- /dev/null
+++ b/lab/source/css/scss/base/_text.scss
@@ -0,0 +1,26 @@
+/* Text-Related Elements */
+p {
+ margin-bottom: $space;
+}
+
+/* Blockquote */
+blockquote {
+ font-style:italic;
+ border-left: 1px solid $gray;
+ color: $gray;
+ padding-left: $pad;
+ margin-bottom: $space;
+}
+
+/* Horizontal Rule */
+hr {
+ border: 0;
+ height: 2px;
+ background: $gray-light-2;
+ margin: $space-double 0;
+}
+
+abbr {
+ border-bottom: 1px dotted $gray;
+ cursor: help;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/generic/_mixins.scss b/lab/source/css/scss/generic/_mixins.scss
new file mode 100644
index 0000000..14d8a2a
--- /dev/null
+++ b/lab/source/css/scss/generic/_mixins.scss
@@ -0,0 +1,23 @@
+/*------------------------------------*\
+ $MIXINS
+\*------------------------------------*/
+
+/* CSS Transition
+ Usage: @include transition(width,0.3s,ease-out);
+ */
+@mixin transition($transition-property, $transition-time, $method) {
+ -webkit-transition: $transition-property $transition-time $method;
+ -moz-transition: $transition-property $transition-time $method;
+ -ms-transition: $transition-property $transition-time $method;
+ -o-transition: $transition-property $transition-time $method;
+ transition: $transition-property $transition-time $method;
+}
+
+/* Rem Unit font sizes with relative fallback http:/seesparkbox.com/foundry/scss_rem_mixin_now_with_a_better_fallback
+ Usage: @include font-size(1, large);
+*/
+@mixin font-size( $decimal-size, $keyword: null ) {
+ @if $keyword{ font-size: $keyword; }
+ @else { font-size: $decimal-size * $base-font-multiplier * 16px;}
+ font-size: $decimal-size * 1rem;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/generic/_reset.scss b/lab/source/css/scss/generic/_reset.scss
new file mode 100644
index 0000000..e7807ec
--- /dev/null
+++ b/lab/source/css/scss/generic/_reset.scss
@@ -0,0 +1,17 @@
+/*------------------------------------*\
+ $RESET
+\*------------------------------------*/
+
+/* Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/ */
+* {
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+}
+html, body, div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, ol, ul, li, form, legend, label, table, header, footer, nav, section, figure {
+ margin: 0;
+ padding: 0;
+}
+header, footer, nav, section, article, hgroup, figure {
+ display: block;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/generic/_variables.scss b/lab/source/css/scss/generic/_variables.scss
new file mode 100644
index 0000000..3e7ccbc
--- /dev/null
+++ b/lab/source/css/scss/generic/_variables.scss
@@ -0,0 +1,65 @@
+/*------------------------------------*\
+ $VARIABLES
+\*------------------------------------*/
+
+//Colors
+$gray : #808080;
+$gray-light : #f9f9f9;
+$gray-light-2 : #eee;
+$gray-light-3 : #ddd;
+$gray-med : #666;
+$gray-dark : #333;
+$gray-dark-2 : #131313;
+$white : #fff;
+$black : #000;
+$dim : rgba(0,0,0,0.5);
+$error : #f00;
+$valid : #089e00;
+$warning : #fff664;
+$information : #000db5;
+
+
+//Typography
+$font : "HelveticaNeue", "Helvetica", "Arial", sans-serif;
+$font-secondary : Georgia, Times, "Times New Roman", serif;
+
+$font-size-small : 0.75em;
+$font-size-small-2 : 0.875em;
+$font-size-med : 1em;
+$font-size-med-2: 1.0625em;
+$font-size-large : 1.4375em;
+
+
+//Layout
+$max-width: 72em;
+
+//Defaults
+$space : 1em;
+$space-and-half : $space*1.5;
+$space-double : $space*2;
+$space-quad : $space*4;
+$space-half : $space/2;
+$pad : 1em;
+$pad-and-half : $pad*1.5;
+$pad-double : $pad*2;
+$pad-half : $pad/2;
+$pad-quarter :$pad/4;
+
+//Borders
+$border-med: 3px;
+$border-thick: 7px;
+
+
+//Breakpoints
+$bp-small : 24em;
+$bp-small-2 : 29.75em;
+$bp-small-3 : 39.8em;
+$bp-med : 46.8em;
+$bp-med-2 : 48em;
+$bp-large : 50em;
+$bp-large-2 : 66em;
+$bp-xl : 73em;
+$bp-xxl : 89em;
+$bp-xxxl : 93em;
+
+//
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_accordion.scss b/lab/source/css/scss/objects/_accordion.scss
new file mode 100644
index 0000000..3423544
--- /dev/null
+++ b/lab/source/css/scss/objects/_accordion.scss
@@ -0,0 +1,33 @@
+.accordion {
+ margin-bottom: $space;
+}
+
+.acc-handle {
+ background: $gray-dark-2;
+ color: $white;
+ font-family: $font-secondary;
+ font-weight: bold;
+ display: block;
+ position: relative;
+ padding: $pad-half;
+ border-bottom: 1px solid $gray-light-3;
+
+ &:after {
+ content:"+";
+ float: right;
+ }
+
+ &:hover {
+ color: $white;
+ background: $gray-dark;
+
+ }
+
+ &.active {
+ background: $gray-dark;
+
+ &:after {
+ content:"-";
+ }
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_article.scss b/lab/source/css/scss/objects/_article.scss
new file mode 100644
index 0000000..5538730
--- /dev/null
+++ b/lab/source/css/scss/objects/_article.scss
@@ -0,0 +1,34 @@
+//Article
+.article-header {
+ h1 {
+ font-size: 2.5em;
+ }
+}
+
+.byline {
+ font-size: $font-size-small-2;
+ font-style: italic;
+ margin-bottom: $space-half;
+}
+
+//Social Share
+.social-share {
+ overflow: hidden;
+ margin-bottom: $space;
+
+ li {
+ float: left;
+ margin-right: $space-half;
+ }
+
+ a {
+ background: $gray-dark;
+ color: $white;
+ display: block;
+ padding: $pad-half;
+
+ &:hover {
+ background: $gray;
+ }
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_blocks.scss b/lab/source/css/scss/objects/_blocks.scss
new file mode 100644
index 0000000..160963b
--- /dev/null
+++ b/lab/source/css/scss/objects/_blocks.scss
@@ -0,0 +1,138 @@
+/* Generic Placeholder Brick: REMOVE FOR PRODUCTION */
+.brick {
+ background: #dcdddc;
+ padding: $pad-double;
+ text-align: center;
+ font-weight: bold;
+ border-bottom: 1px solid $gray-light-2;
+}
+
+/* Block */
+.block {
+ overflow: hidden;
+
+ p:last-child {
+ margin-bottom: 0;
+ }
+}
+
+.headline {
+ line-height: 1.2;
+}
+
+/* Hero Block */
+.block-hero {
+ margin-bottom: $space-half;
+
+ .b-thumb {
+ img {
+ display: block;
+ }
+ }
+
+ @media all and (min-width: $bp-large) {
+ position: relative;
+
+ .b-text {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ background: $dim;
+ color: $white;
+ padding: $pad-and-half;
+ }
+ }
+}
+
+/* Block Thumbnail with Headline */
+.block-thumb {
+ display: table;
+ width: 100%;
+ border-collapse: collapse;
+
+ .b-inner {
+ display: table-row;
+ vertical-align: top;
+ overflow: hidden;
+ }
+
+ .b-thumb {
+ @media all and (min-width: $bp-small-2) {
+ display: table-cell;
+ vertical-align: top;
+ width: 30%;
+ max-width: 10em;
+
+ img {
+ display: block;
+ width: 100%;
+ height: auto;
+ }
+ }
+ }
+
+ .b-text {
+ @media all and (min-width: $bp-small-2) {
+ display: table-cell;
+ width: 70%;
+ padding: 0 $pad;
+ }
+ }
+}
+
+
+/* Block Headline Summary */
+.block-headline-summary {
+ a {
+ display: block;
+ padding: $pad-half;
+ }
+}
+
+/* Block Inset */
+.block-inset {
+ position: relative;
+
+ .b-thumb {
+ position: relative;
+ z-index: 0;
+
+ img {
+ display: block;
+ }
+ }
+}
+
+/* Hero Block */
+.block-inset {
+ margin-bottom: $space-half;
+ position: relative;
+
+ .headline {
+ font-size: 1.1em;
+ }
+
+ .b-text {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ background: $dim;
+ color: $white;
+ padding: $pad-half;
+ }
+}
+
+/* Block Thumb with Summary */
+.block-thumb-summary {
+ .b-thumb {
+ float: left;
+ width: 50%;
+ }
+
+ .b-text {
+ margin-left: 50%;
+ padding: $pad-half;
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_buttons.scss b/lab/source/css/scss/objects/_buttons.scss
new file mode 100644
index 0000000..0ae2805
--- /dev/null
+++ b/lab/source/css/scss/objects/_buttons.scss
@@ -0,0 +1,40 @@
+/*------------------------------------*\
+ $BUTTONS
+\*------------------------------------*/
+.btn {
+ display: inline-block;
+ background: $gray-dark;
+ color: $white;
+ line-height: 1;
+ font-weight: bold;
+ padding: $pad;
+ border: 0;
+ text-align: center;
+
+ &:hover, &:focus {
+ background: $gray;
+ color: $white;
+ }
+
+ &.disabled {
+ background: $gray-light-2;
+ color: $gray;
+ }
+}
+
+.btn-small {
+ padding: $pad-half;
+}
+
+.btn-large {
+ padding: $pad-half;
+ text-transform: uppercase;
+ background: $gray;
+ font-size: 1.4rem;
+ font-weight: normal;
+}
+
+
+.text-btn {
+ font-style: italic;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_carousels.scss b/lab/source/css/scss/objects/_carousels.scss
new file mode 100644
index 0000000..77e3f19
--- /dev/null
+++ b/lab/source/css/scss/objects/_carousels.scss
@@ -0,0 +1,38 @@
+/* Horizontal Carousel */
+.carousel-horizontal {
+ margin-bottom: $space;
+ overflow: hidden;
+ position: relative;
+}
+
+.carousel-island-container {
+ overflow: hidden;
+}
+
+.carousel-container {
+ position: relative;
+}
+
+.carousel-list {
+
+}
+
+.carousel-controls {
+ display: table;
+ width: 100%;
+ margin: (-$space-half) 0 $space;
+
+ a, div {
+ display: table-cell;
+ padding: $pad-half;
+ }
+
+ .carousel-pagination {
+ text-align: center;
+ }
+
+ .carousel-next {
+ text-align: right;
+ }
+
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_comments.scss b/lab/source/css/scss/objects/_comments.scss
new file mode 100644
index 0000000..9959b7a
--- /dev/null
+++ b/lab/source/css/scss/objects/_comments.scss
@@ -0,0 +1,30 @@
+.comments {
+ li {
+ margin-bottom: $space;
+ }
+}
+
+.comment-container {
+ overflow: hidden;
+ margin-bottom: $space;
+ list-style: none;
+}
+
+.comment-meta {
+ float: left;
+ width: 6.5em;
+
+ img {
+ display: block;
+ border: 1px solid $gray-light-2;
+ margin-bottom: $space-half;
+ }
+}
+
+.comment-name {
+ font-size: $font-size-small;
+}
+
+.comment-text {
+ margin-left: 9em;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_footer.scss b/lab/source/css/scss/objects/_footer.scss
new file mode 100644
index 0000000..850f94b
--- /dev/null
+++ b/lab/source/css/scss/objects/_footer.scss
@@ -0,0 +1,39 @@
+/*------------------------------------*\
+ $FOOTER
+\*------------------------------------*/
+.footer {
+ clear: both;
+ overflow: hidden;
+ background: $gray-dark-2;
+ color: $white;
+ line-height: 1.2;
+
+ a {
+ color: $gray-light;
+ }
+}
+
+//Footer Nav
+.nav-footer {
+ margin: (-$pad) (-$pad) $space;
+
+ li {
+ border-bottom: 1px solid $gray-dark;
+
+ @media all and (min-width: $bp-med) {
+ border: 0;
+ float: left;
+ }
+ }
+
+ a {
+ display: block;
+ padding: $pad;
+ }
+}
+
+.copyright {
+ @media all and (min-width: $bp-med) {
+ float: right;
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_header.scss b/lab/source/css/scss/objects/_header.scss
new file mode 100644
index 0000000..8fb78d7
--- /dev/null
+++ b/lab/source/css/scss/objects/_header.scss
@@ -0,0 +1,45 @@
+.header {
+ background: $white;
+ padding: 0;
+ border-bottom: 1px solid #dbdbdb;
+ @extend .lc;
+}
+
+.logo {
+ float: left;
+ max-width: 8rem;
+ margin: 0.4rem;
+
+ @media all and (min-width: $bp-med) {
+ max-width: 9rem;
+ }
+}
+
+.nav-toggle {
+ float: right;
+ display: block;
+ padding: 0.9rem 1rem 0.7rem;
+ font-size: 1.3rem;
+ line-height: 1;
+ border-left: 1px solid #dbdbdb;
+
+ @media all and (min-width: $bp-med) {
+ display: none;
+ }
+
+ @media all and (max-width: 17em) {
+ padding-left: 0.2rem;
+ padding-right: 0.2rem;
+ }
+}
+
+.search-form {
+ overflow: hidden;
+ max-height: 0;
+
+ @media all and (min-width: $bp-med) {
+ float: right;
+ max-height: none;
+ margin: 0.65em 0.5em 0 0;
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_icons.scss b/lab/source/css/scss/objects/_icons.scss
new file mode 100644
index 0000000..cacbf1f
--- /dev/null
+++ b/lab/source/css/scss/objects/_icons.scss
@@ -0,0 +1,125 @@
+
+/* Icon Font */
+@font-face {
+ font-family: 'icons';
+ src:url('../fonts/icons.eot');
+ src:url('../fonts/icons.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/icons.woff') format('woff'),
+ url('../fonts/icons.ttf') format('truetype'),
+ url('../fonts/icons.svg#icons') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+/* Use the following CSS code if you want to use data attributes for inserting your icons */
+[data-icon]:before {
+ font-family: 'icons';
+ content: attr(data-icon);
+ speak: none;
+ font-weight: normal;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased;
+}
+
+.icon-twitter:before, .icon-stumbleupon:before, .icon-pinterest:before, .icon-linkedin:before, .icon-google-plus:before, .icon-search:before, .icon-play:before, .icon-menu:before, .icon-arrow-left:before, .icon-arrow-right:before, .icon-bubble:before, .icon-facebook:before, .icon-feed:before, .icon-youtube:before, .icon-tag:before, .icon-tumblr:before, .icon-instagram, .icon-podcast, .icon-apple,.icon-android, .icon-arrow:after, .icon-envelope:before {
+ font-family: 'icons';
+ speak: none;
+ font-style: normal;
+ font-weight: normal;
+ font-variant: normal;
+ text-transform: none;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased;
+}
+.icon-twitter:before {
+ content: "\74";
+}
+.icon-stumbleupon:before {
+ content: "\75";
+}
+.icon-pinterest:before {
+ content: "\70";
+}
+.icon-linkedin:before {
+ content: "\69";
+}
+.icon-google-plus:before {
+ content: "\67";
+}
+.icon-search:before {
+ content: "\73";
+}
+.icon-play:before {
+ content: "\61";
+}
+.icon-menu:before {
+ content: "\21";
+}
+.icon-arrow-left:before {
+ content: "\23";
+}
+.icon-arrow-right:before {
+ content: "\24";
+}
+.icon-bubble:before {
+ content: "\25";
+}
+.icon-facebook:before {
+ content: "\66";
+}
+.icon-feed:before {
+ content: "\27";
+}
+.icon-youtube:before {
+ content: "\79";
+}
+.icon-tag:before {
+ content: "\28";
+}
+.icon-tumblr:before {
+ content: "\6d";
+}
+.icon-instagram:before {
+ content: "\22";
+}
+.icon-podcast:before {
+ content: "\26";
+}
+.icon-android:before {
+ content: "\29";
+}
+.icon-apple:before {
+ content: "\2a";
+}
+.icon-envelope:before {
+ content: "\2b";
+}
+
+
+.icon-arrow:after {
+ content: "\61";
+ display: inline-block;
+ -webkit-transform: rotate(90deg);
+ -moz-transform: rotate(90deg);
+ -ms-transform: rotate(90deg);
+ -o-transform: rotate(90deg);
+ transform: rotate(90deg);
+}
+
+.icon-play:before {
+ font-size: 0.7rem;
+ padding-left: 0.2em;
+}
+
+.icon-play-box {
+ display: block;
+ margin-left: $pad-double;
+}
+
+.icon-play-box:before {
+ padding: $pad-quarter;
+ background: $gray;
+ color: $white;
+ margin-left: -1.7rem;
+ margin-right: $pad-half;
+}
diff --git a/lab/source/css/scss/objects/_layout.scss b/lab/source/css/scss/objects/_layout.scss
new file mode 100644
index 0000000..4929d28
--- /dev/null
+++ b/lab/source/css/scss/objects/_layout.scss
@@ -0,0 +1,288 @@
+/*------------------------------------*\
+ $LAYOUT
+\*------------------------------------*/
+
+/* Layout Container */
+.lc {
+ max-width: $max-width;
+ margin: 0 auto;
+ padding: $pad-half;
+}
+
+/*------------------------------------*\
+ $TEMPLATES
+\*------------------------------------*/
+
+/* Two Column Layout */
+.l-two-col {
+ @extend .cf;
+
+ .l-main {
+ @media all and (min-width: $bp-large) {
+ float: left;
+ width: 70%;
+ padding-right: $pad;
+ }
+ }
+
+ .l-sidebar {
+ @media all and (max-width: $bp-large) {
+ clear: both;
+ }
+
+ @media all and (min-width: $bp-large) {
+ float: left;
+ width: 30%;
+ padding: 0 0 0 $pad;
+ }
+ }
+}
+
+
+/*------------------------------------*\
+ $GRIDS
+\*------------------------------------*/
+
+/* Grid Container */
+.g {
+ overflow: hidden;
+ margin: 0 (-$pad-half);
+}
+
+/* Grid Item */
+.gi {
+ padding: $pad-half;
+
+ img {
+ display: block;
+ }
+
+ @media all and (min-width: $bp-med) {
+ float: left;
+ }
+}
+
+/* Grid 1up */
+.g-1up {
+ .gi {
+ width: 100%;
+ }
+}
+
+/* Grid 2up */
+.g-2up {
+ @media all and (min-width: $bp-med) {
+ > .gi {
+ float: left;
+ width: 50%;
+
+ &:nth-of-type(odd) {
+ clear: left;
+ }
+ }
+ }
+}
+
+/* Grid Half (Always displayed side by side) */
+.g-half {
+ > .gi {
+ float: left;
+ width: 50%;
+
+ &:nth-of-type(odd) {
+ clear: left;
+ }
+ }
+}
+
+/* Grid 3up */
+.g-3up {
+ @media all and (min-width: $bp-med) {
+ > .gi {
+ float: left;
+ width: 50%;
+
+ &:nth-of-type(2n+1) {
+ clear: left;
+ }
+ }
+ }
+
+ @media all and (min-width: $bp-large) {
+ > .gi {
+ width: 33.3333333%;
+
+ &:nth-of-type(2n+1) {
+ clear: none;
+ }
+
+ &:nth-of-type(3n+1) {
+ clear: left;
+ }
+ }
+ }
+}
+
+/* Grid 4up */
+.g-4up {
+ @media all and (min-width: $bp-med) {
+ >.gi {
+ float: left;
+ width: 50%;
+
+ &:nth-of-type(2n+1) {
+ clear: both;
+ }
+ }
+ }
+
+ @media all and (min-width: $bp-large) {
+ >.gi {
+ width: 25%;
+
+ &:nth-of-type(2n+1) {
+ clear: none;
+ }
+
+ &:nth-of-type(4n+1) {
+ clear: left;
+ }
+ }
+ }
+}
+
+/* Grid Quarter (Always displayed side by side) */
+.g-quarter {
+ > .gi {
+ float: left;
+ width: 24%;
+
+ &:nth-of-type(4n+1) {
+ clear: left;
+ }
+ }
+}
+
+.g-max4 {
+
+ @media all and (min-width: $bp-small-2) {
+ >.gi {
+ float: left;
+ width: 50%;
+
+ &:nth-of-type(2n+1) {
+ clear: both;
+ }
+ }
+ }
+
+ @media all and (min-width: $bp-small-3) {
+ >.gi {
+ width: 33.3333333%;
+
+ &:nth-of-type(2n+1) {
+ clear: none;
+ }
+
+ &:nth-of-type(3n+1) {
+ clear: left;
+ }
+ }
+ }
+
+ @media all and (min-width: $bp-large) {
+ >.gi {
+ width: 25%;
+
+ &:nth-of-type(3n+1) {
+ clear: none;
+ }
+
+ &:nth-of-type(4n+1) {
+ clear: left;
+ }
+ }
+ }
+}
+
+/* Grid 5up */
+.g-max5 {
+
+ >.gi {
+ float: left;
+ width: 50%;
+
+ &:nth-of-type(2n+1) {
+ clear: both;
+ }
+ }
+
+ @media all and (min-width: $bp-small-3) {
+ >.gi {
+ width: 33.3333333%;
+
+ &:nth-of-type(2n+1) {
+ clear: none;
+ }
+
+ &:nth-of-type(3n+1) {
+ clear: left;
+ }
+ }
+ }
+
+ @media all and (min-width: $bp-med) {
+ >.gi {
+ width: 25%;
+
+ &:nth-of-type(3n+1) {
+ clear: none;
+ }
+
+ &:nth-of-type(4n+1) {
+ clear: left;
+ }
+ }
+ }
+
+ @media all and (min-width: $bp-med-2) {
+ >.gi {
+ width: 20%;
+
+ &:nth-of-type(4n+1) {
+ clear: none;
+ }
+
+ &:nth-of-type(5n+1) {
+ clear: left;
+ }
+ }
+ }
+}
+
+/* Grid 2/3 */
+.gi-2-3 {
+ @media all and (min-width: $bp-med) {
+ float: left;
+ width: 66.666666%;
+ }
+}
+
+.gi-1-3 {
+ @media all and (min-width: $bp-med) {
+ float: left;
+ width: 33.333333%;
+ }
+}
+
+/* Grid 4up block */
+.g-opposites {
+ .gi {
+ float: left;
+
+ &:last-child {
+ float: right;
+ text-align: right;
+ }
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_lists.scss b/lab/source/css/scss/objects/_lists.scss
new file mode 100644
index 0000000..0c4e8be
--- /dev/null
+++ b/lab/source/css/scss/objects/_lists.scss
@@ -0,0 +1,63 @@
+.inline-list {
+ li {
+ display: inline-block;
+ }
+}
+
+/* Social List */
+.social-list {
+ li {
+ margin: 0 0.4rem $space 0;
+ }
+
+ a {
+ font-size: 1.6em;
+ }
+}
+
+
+/* Headline List */
+.headline-list {
+ margin-bottom: $space;
+
+ &.flush {
+ margin: 0;
+ }
+
+ h4 {
+ font-weight: normal;
+ }
+
+ li {
+ padding: $pad-quarter 0;
+ border-top: 1px solid $gray-light-3;
+ }
+}
+
+/* Post List */
+.post-list {
+ li {
+ margin-bottom: $space;
+ }
+}
+
+/* Bullet List */
+.bullet-list {
+ list-style: square;
+ margin: 0 0 1em 1.2em;
+ line-height: 1.3;
+
+ li {
+ margin-bottom: $space;
+ }
+}
+
+/* Text List */
+.text-list {
+ margin: 0 0 1em;
+ line-height: 1.3;
+
+ li {
+ margin-bottom: $space;
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_main.scss b/lab/source/css/scss/objects/_main.scss
new file mode 100644
index 0000000..592c01d
--- /dev/null
+++ b/lab/source/css/scss/objects/_main.scss
@@ -0,0 +1,9 @@
+/*------------------------------------*\
+ $MAIN CONTENT AREA
+\*------------------------------------*/
+[role=main] {
+ padding: $pad-half $pad-half $pad-double;
+ overflow: hidden;
+ @extend .lc;
+ @extend .cf;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_messaging.scss b/lab/source/css/scss/objects/_messaging.scss
new file mode 100644
index 0000000..a2d31a9
--- /dev/null
+++ b/lab/source/css/scss/objects/_messaging.scss
@@ -0,0 +1,18 @@
+/*------------------------------------*\
+ $MESSAGING
+\*------------------------------------*/
+
+// Alerts
+.alert {
+ text-align: center;
+ padding: $pad;
+ margin-bottom: $space-half;
+ border: 1px solid $gray;
+ background: $gray-light;
+}
+
+.alert-error {
+ color: $error;
+ border-color: $error;
+ background: #ffbebe;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_nav.scss b/lab/source/css/scss/objects/_nav.scss
new file mode 100644
index 0000000..b98e330
--- /dev/null
+++ b/lab/source/css/scss/objects/_nav.scss
@@ -0,0 +1,52 @@
+/*------------------------------------*\
+ $NAVIGATION
+\*------------------------------------*/
+
+.nav {
+ clear: both;
+ overflow: hidden;
+ max-height: 0;
+
+ a {
+ display: block;
+ padding: $pad;
+ border-top: 1px solid $gray-light-2;
+ }
+
+ &.active {
+ max-height: 40em;
+ }
+
+ @media all and (min-width: $bp-med) {
+ max-height: none;
+ float: right;
+ clear: none;
+
+ li {
+ float: left;
+ }
+
+ a {
+ border: 0;
+ }
+
+ }
+}
+
+//Pagination
+.pagination {
+ overflow: hidden;
+
+ li {
+ float: left;
+ border-right: 1px solid $gray-light-2;
+
+ &:last-child {
+ border: 0;
+ }
+ }
+
+ a {
+ padding: $pad;
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_sections.scss b/lab/source/css/scss/objects/_sections.scss
new file mode 100644
index 0000000..7235af2
--- /dev/null
+++ b/lab/source/css/scss/objects/_sections.scss
@@ -0,0 +1,7 @@
+.section {
+ margin: 0 0 $space;
+}
+
+.section-title {
+ margin-bottom: $space-half;
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_tabs.scss b/lab/source/css/scss/objects/_tabs.scss
new file mode 100644
index 0000000..b22ca74
--- /dev/null
+++ b/lab/source/css/scss/objects/_tabs.scss
@@ -0,0 +1,33 @@
+.tabs {
+ overflow: hidden;
+
+ ul {
+ display: table;
+ width: 100%;
+ }
+
+ li {
+ display: table-cell;
+ text-align: center;
+ border-right: 1px solid $gray-light-3;
+
+ &:last-child {
+ border-right: 0;
+ }
+ }
+
+ a {
+ display: block;
+ padding: $pad-half;
+ background: $gray;
+
+ &:hover, &:focus {
+ background: $gray-light-3;
+ }
+
+ &.active {
+ background: $gray-dark;
+ color: $white;
+ }
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/scss/objects/_text.scss b/lab/source/css/scss/objects/_text.scss
new file mode 100644
index 0000000..d645f56
--- /dev/null
+++ b/lab/source/css/scss/objects/_text.scss
@@ -0,0 +1,41 @@
+//Intro text
+.intro {
+ font-size: $font-size-med-2;
+ font-weight: bold;
+}
+
+//Pullquote
+.pullquote {
+ font-family: $font-secondary;
+ font-size: $font-size-large;
+}
+
+//Caption
+.caption {
+ font-style: italic;
+}
+
+//Passages of text
+.text {
+ a {
+ text-decoration: underline;
+ }
+
+ ul {
+ list-style: disc;
+ margin: 0 0 $space 1.2em;
+
+ ul {
+ margin-bottom: 0;
+ }
+ }
+
+ ol {
+ list-style: decimal;
+ margin: 0 0 $space 1.5em;
+
+ ol {
+ margin-bottom: 0;
+ }
+ }
+}
diff --git a/lab/source/css/scss/objects/_tooltip.scss b/lab/source/css/scss/objects/_tooltip.scss
new file mode 100644
index 0000000..e0fdd95
--- /dev/null
+++ b/lab/source/css/scss/objects/_tooltip.scss
@@ -0,0 +1,42 @@
+.tooltip-container {
+ display: inline-block;
+ position: relative;
+
+ &:hover {
+ .tooltip {
+ display: block;
+ }
+ }
+}
+
+.tooltip-link {
+ background: $gray-light;
+}
+
+.tooltip {
+ display: none;
+ position: absolute;
+ top: 1.5em;
+ left: 0;
+ width: 18em;
+ padding: $pad;
+ background: $white;
+ border: 1px solid $gray;
+ box-shadow: 0.3em 0.3em 1em 0 rgba(0,0,0,0.2);
+
+ h2 {
+ margin-top: 0;
+ }
+
+ @media all and (min-width: $bp-small) {
+ width: 22em;
+ }
+
+ @media all and (min-width: $bp-small-2) {
+ width: 27em;
+ }
+
+ @media all and (min-width: $bp-small-3) {
+ width: 30em;
+ }
+}
\ No newline at end of file
diff --git a/lab/source/css/style.css b/lab/source/css/style.css
new file mode 100644
index 0000000..67f12fa
--- /dev/null
+++ b/lab/source/css/style.css
@@ -0,0 +1,1103 @@
+/*
+ ,, ,, ,,
+ .M"""bgd mm db `7MM mm mm `7MM OO OO OO
+,MI "Y MM MM MM MM MM 88 88 88
+`MMb. mmMMmm ,pW"Wq.`7MMpdMAo. `7Mb,od8 `7MM .P"Ybmmm MMpMMMb.mmMMmm mmMMmm MMpMMMb. .gP"Ya `7Mb,od8 .gP"Ya || || ||
+ `YMMNq. MM 6W' `Wb MM `Wb MM' "' MM :MI I8 MM MM MM MM MM MM ,M' Yb MM' "',M' Yb || || ||
+. `MM MM 8M M8 MM M8 MM MM WmmmP" MM MM MM MM MM MM 8M"""""" MM 8M"""""" `' `' `'
+Mb dM MM YA. ,A9 MM ,AP MM MM 8M MM MM MM MM MM MM YM. , MM YM. , ,, ,, ,,
+P"Ybmmd" `Mbmo`Ybmd9' MMbmmd' .JMML. .JMML.YMMMMMb .JMML JMML.`Mbmo `Mbmo.JMML JMML.`Mbmmd'.JMML. `Mbmmd' db db db
+ MM 6' dP
+ .JMML. Ybmmmd'
+
+Pattern Lab doesn't have any CSS requirements, which means you can write your styles however you want. Hooray!
+You can use Sass, Less, vanilla CSS, or some other crazy thing I haven't heard of yet.
+So please don't use these styles. They're just here to put together the demo, and nothing more.
+They're intentionally gray, boring, and crappy because you're supposed to do this stuff yourself.
+
+Atomic design is philosophically complimentary with these CSS approaches:
+
+* SMACSS by Jonathan Snook http://smacss.com/
+* OOCSS by Nicole Sullivan http://oocss.org/
+* BEM CSS Methology : http://bem.info/method/
+* CSS Guidelines by Harry Roberts : https://github.com/csswizardry/CSS-Guidelines
+
+So feel free to use any of these approaches. Or don't. It's totally up to you.
+
+*/
+/*------------------------------------*\
+ $TABLE OF CONTENTS
+ based generally on Harry Roberts excellent CSS Guidelines https://github.com/csswizardry/CSS-Guidelines
+\*------------------------------------*/
+/**
+ * VARIABLES..............................Declarations of Sass variables
+ * .....Colors
+ * .....Typography
+ * .....Layout
+ * .....Defaults
+ * .....Breakpoints
+ * MIXINS.................................Sass mixins
+ * RESET..................................Set reset defaults
+ * GLOBAL CLASSES.........................Set reset defaults
+ * GLOBAL ELEMENTS........................Establish global styles
+ * .....Main
+ * .....Headings
+ * .....Text-related elements (p, blockquote, lists)
+ * .....Defaults
+ * .....Breakpoints
+ * TYPOGRAPHY------------------------------
+ * MEDIA------------------------------
+ * LAYOUT------------------------------
+ * NAVIGATION------------------------------
+ * TOC To Be Continued
+ */
+/*------------------------------------*\
+ $VARIABLES
+\*------------------------------------*/
+/*------------------------------------*\
+ $MIXINS
+\*------------------------------------*/
+/* CSS Transition
+ Usage: @include transition(width,0.3s,ease-out);
+ */
+/* Rem Unit font sizes with relative fallback http:/seesparkbox.com/foundry/scss_rem_mixin_now_with_a_better_fallback
+ Usage: @include font-size(1, large);
+*/
+/*------------------------------------*\
+ $RESET
+\*------------------------------------*/
+/* Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/ */
+* {
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box; }
+
+html, body, div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, ol, ul, li, form, legend, label, table, header, footer, nav, section, figure {
+ margin: 0;
+ padding: 0; }
+
+header, footer, nav, section, article, hgroup, figure {
+ display: block; }
+
+/*------------------------------------*\
+ $GLOBAL ELEMENTS
+\*------------------------------------*/
+/*------------------------------------*\
+ $GLOBAL CLASSES
+\*------------------------------------*/
+/* Clearfix */
+.cf, .l-two-col, [role=main] {
+ *zoom: 1; }
+
+.cf:before, .l-two-col:before, [role=main]:before, .cf:after, .l-two-col:after, [role=main]:after {
+ content: " ";
+ /* 1 */
+ display: table;
+ /* 2 */ }
+
+.cf:after, .l-two-col:after, [role=main]:after {
+ clear: both; }
+
+/* Completely remove from the flow and screen readers. */
+.is-hidden {
+ display: none !important;
+ visibility: hidden !important; }
+
+/* Completely remove from the flow but leave available to screen readers. */
+.is-vishidden {
+ position: absolute !important;
+ overflow: hidden;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ border: 0;
+ clip: rect(1px, 1px, 1px, 1px); }
+
+/* Floats */
+.right {
+ float: right;
+ padding: 0 0 1em 1em; }
+
+.right-search {
+ float: right;
+ padding: 0 0 1em 0; }
+
+.left {
+ float: left;
+ padding: 0 1em 1em 0; }
+
+/* Text-Align */
+.align-right {
+ text-align: right; }
+
+.align-center {
+ text-align: center; }
+
+.align-left {
+ text-align: left; }
+
+/* Display Classes */
+@media all and (max-width: 46.8em) {
+ .hide-small {
+ display: none; } }
+
+@media all and (min-width: 46.8em) and (max-width: 50em) {
+ .hide-med {
+ display: none; } }
+
+@media all and (min-width: 50em) {
+ .hide-large {
+ display: none; } }
+
+.valid {
+ color: #089e00; }
+
+.error {
+ color: red; }
+
+.warning {
+ color: #fff664; }
+
+.information {
+ color: #000db5; }
+
+.font-secondary {
+ font-family: Georgia, Times, "Times New Roman", serif; }
+
+body {
+ background: white;
+ font: 100%/1.5 "HelveticaNeue", "Helvetica", "Arial", sans-serif;
+ -webkit-text-size-adjust: 100%;
+ color: #333333; }
+
+/* Links */
+a {
+ color: #333333;
+ text-decoration: none;
+ outline: 0; }
+ a:hover, a:focus {
+ color: gray; }
+
+/* Headings */
+/*Further Reading: http:/csswizardry.com/2012/02/pragmatic-practical-font-sizing-in-css/ */
+h1, .alpha {
+ line-height: 1.2; }
+
+h2, .beta {
+ line-height: 1.2; }
+
+h3, .gamma {
+ line-height: 1.2; }
+
+/* Subheadings */
+.subheading {
+ font-family: Georgia, Times, "Times New Roman", serif;
+ font-weight: normal; }
+
+/* Text-Related Elements */
+p {
+ margin-bottom: 1em; }
+
+/* Blockquote */
+blockquote {
+ font-style: italic;
+ border-left: 1px solid gray;
+ color: gray;
+ padding-left: 1em;
+ margin-bottom: 1em; }
+
+/* Horizontal Rule */
+hr {
+ border: 0;
+ height: 2px;
+ background: #eeeeee;
+ margin: 2em 0; }
+
+abbr {
+ border-bottom: 1px dotted gray;
+ cursor: help; }
+
+ol, ul {
+ margin: 0;
+ padding: 0;
+ list-style: none; }
+
+/* Definition Lists */
+dl {
+ overflow: hidden;
+ margin: 0 0 1em; }
+
+dt {
+ font-weight: bold; }
+
+dd {
+ margin-left: 0; }
+
+/*------------------------------------*\
+ $MEDIA ELEMENTS
+\*------------------------------------*/
+/* Flexible Media */
+img, video, object {
+ max-width: 100%;
+ height: auto; }
+
+iframe {
+ margin-bottom: 1em; }
+
+figure {
+ margin-bottom: 1em; }
+ figure img {
+ margin-bottom: 0.5em; }
+
+figcaption {
+ font-style: italic; }
+
+/*------------------------------------*\
+ $FORMS
+\*------------------------------------*/
+form ol, form ul {
+ list-style: none;
+ margin-left: 0; }
+
+fieldset {
+ border: 0;
+ padding: 0;
+ margin: 0; }
+
+label {
+ display: block;
+ padding-bottom: 0.5em; }
+
+button, input, select, textarea {
+ font-family: inherit;
+ font-size: 100%;
+ margin: 0 1px 0; }
+
+input, textarea {
+ width: 100%;
+ border: 1px solid gray;
+ padding: 0.5em 0.65rem; }
+
+input[type=text], input[type=search], input[type=url], input[type=number], textarea {
+ -webkit-appearance: none; }
+
+button, input[type="submit"] {
+ padding: 0.5em;
+ background: #333333;
+ border: 1px solid gray;
+ cursor: pointer; }
+
+input[type="checkbox"],
+input[type="radio"] {
+ width: auto;
+ margin-right: 0.3em; }
+
+input[type="search"] {
+ -webkit-appearance: none;
+ border-radius: 0; }
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none; }
+
+.field-container {
+ margin-bottom: 1em; }
+
+.inline-form fieldset, .inline-form .inline-container {
+ position: relative; }
+.inline-form input[type=submit], .inline-form button, .inline-form .btn {
+ font-size: 0.875em;
+ padding: 0.65rem 1.3rem;
+ background: #333333;
+ position: absolute;
+ top: 0;
+ right: 0;
+ z-index: 1;
+ width: auto; }
+ .inline-form input[type=submit]:hover, .inline-form input[type=submit]:focus, .inline-form button:hover, .inline-form button:focus, .inline-form .btn:hover, .inline-form .btn:focus {
+ background: gray;
+ color: white; }
+
+/* Validation */
+.has-error {
+ border-color: red; }
+
+.is-valid {
+ border-color: #089e00; }
+
+/*------------------------------------*\
+ $SPECIFIC FORMS
+\*------------------------------------*/
+/* Search Form */
+.search-field {
+ padding-right: 3em; }
+
+.inline-form .search-submit {
+ background: none;
+ padding: 0.78em 1em;
+ border: 0;
+ border-left: 1px solid gray;
+ color: gray; }
+
+/*------------------------------------*\
+ $Table
+\*------------------------------------*/
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ border: 1px solid gray;
+ width: 100%; }
+
+th {
+ text-align: left;
+ border: 1px solid gray;
+ padding: 0.2em; }
+
+td {
+ border: 1px solid gray;
+ padding: 0.2em; }
+
+.animate-fade {
+ -webkit-transition: opacity 0.3s ease-out;
+ -moz-transition: opacity 0.3s ease-out;
+ -ms-transition: opacity 0.3s ease-out;
+ -o-transition: opacity 0.3s ease-out;
+ transition: opacity 0.3s ease-out; }
+ .animate-fade:hover {
+ opacity: 0; }
+
+.animate-move > .demo-shape {
+ -webkit-transition: all 0.8s ease-in-out;
+ -moz-transition: all 0.8s ease-in-out;
+ -ms-transition: all 0.8s ease-in-out;
+ -o-transition: all 0.8s ease-in-out;
+ transition: all 0.8s ease-in-out; }
+
+/*------------------------------------*\
+ $LAYOUT
+\*------------------------------------*/
+/*------------------------------------*\
+ $LAYOUT
+\*------------------------------------*/
+/* Layout Container */
+.lc, .header, [role=main] {
+ max-width: 72em;
+ margin: 0 auto;
+ padding: 0.5em; }
+
+/*------------------------------------*\
+ $TEMPLATES
+\*------------------------------------*/
+/* Two Column Layout */
+@media all and (min-width: 50em) {
+ .l-two-col .l-main {
+ float: left;
+ width: 70%;
+ padding-right: 1em; } }
+@media all and (max-width: 50em) {
+ .l-two-col .l-sidebar {
+ clear: both; } }
+@media all and (min-width: 50em) {
+ .l-two-col .l-sidebar {
+ float: left;
+ width: 30%;
+ padding: 0 0 0 1em; } }
+
+/*------------------------------------*\
+ $GRIDS
+\*------------------------------------*/
+/* Grid Container */
+.g {
+ overflow: hidden;
+ margin: 0 -0.5em; }
+
+/* Grid Item */
+.gi {
+ padding: 0.5em; }
+ .gi img {
+ display: block; }
+ @media all and (min-width: 46.8em) {
+ .gi {
+ float: left; } }
+
+/* Grid 1up */
+.g-1up .gi {
+ width: 100%; }
+
+/* Grid 2up */
+@media all and (min-width: 46.8em) {
+ .g-2up > .gi {
+ float: left;
+ width: 50%; }
+ .g-2up > .gi:nth-of-type(odd) {
+ clear: left; } }
+
+/* Grid Half (Always displayed side by side) */
+.g-half > .gi {
+ float: left;
+ width: 50%; }
+ .g-half > .gi:nth-of-type(odd) {
+ clear: left; }
+
+/* Grid 3up */
+@media all and (min-width: 46.8em) {
+ .g-3up > .gi {
+ float: left;
+ width: 50%; }
+ .g-3up > .gi:nth-of-type(2n+1) {
+ clear: left; } }
+@media all and (min-width: 50em) {
+ .g-3up > .gi {
+ width: 33.3333333%; }
+ .g-3up > .gi:nth-of-type(2n+1) {
+ clear: none; }
+ .g-3up > .gi:nth-of-type(3n+1) {
+ clear: left; } }
+
+/* Grid 4up */
+@media all and (min-width: 46.8em) {
+ .g-4up > .gi {
+ float: left;
+ width: 50%; }
+ .g-4up > .gi:nth-of-type(2n+1) {
+ clear: both; } }
+@media all and (min-width: 50em) {
+ .g-4up > .gi {
+ width: 25%; }
+ .g-4up > .gi:nth-of-type(2n+1) {
+ clear: none; }
+ .g-4up > .gi:nth-of-type(4n+1) {
+ clear: left; } }
+
+/* Grid Quarter (Always displayed side by side) */
+.g-quarter > .gi {
+ float: left;
+ width: 24%; }
+ .g-quarter > .gi:nth-of-type(4n+1) {
+ clear: left; }
+
+@media all and (min-width: 29.75em) {
+ .g-max4 > .gi {
+ float: left;
+ width: 50%; }
+ .g-max4 > .gi:nth-of-type(2n+1) {
+ clear: both; } }
+@media all and (min-width: 39.8em) {
+ .g-max4 > .gi {
+ width: 33.3333333%; }
+ .g-max4 > .gi:nth-of-type(2n+1) {
+ clear: none; }
+ .g-max4 > .gi:nth-of-type(3n+1) {
+ clear: left; } }
+@media all and (min-width: 50em) {
+ .g-max4 > .gi {
+ width: 25%; }
+ .g-max4 > .gi:nth-of-type(3n+1) {
+ clear: none; }
+ .g-max4 > .gi:nth-of-type(4n+1) {
+ clear: left; } }
+
+/* Grid 5up */
+.g-max5 > .gi {
+ float: left;
+ width: 50%; }
+ .g-max5 > .gi:nth-of-type(2n+1) {
+ clear: both; }
+@media all and (min-width: 39.8em) {
+ .g-max5 > .gi {
+ width: 33.3333333%; }
+ .g-max5 > .gi:nth-of-type(2n+1) {
+ clear: none; }
+ .g-max5 > .gi:nth-of-type(3n+1) {
+ clear: left; } }
+@media all and (min-width: 46.8em) {
+ .g-max5 > .gi {
+ width: 25%; }
+ .g-max5 > .gi:nth-of-type(3n+1) {
+ clear: none; }
+ .g-max5 > .gi:nth-of-type(4n+1) {
+ clear: left; } }
+@media all and (min-width: 48em) {
+ .g-max5 > .gi {
+ width: 20%; }
+ .g-max5 > .gi:nth-of-type(4n+1) {
+ clear: none; }
+ .g-max5 > .gi:nth-of-type(5n+1) {
+ clear: left; } }
+
+/* Grid 2/3 */
+@media all and (min-width: 46.8em) {
+ .gi-2-3 {
+ float: left;
+ width: 66.666666%; } }
+
+@media all and (min-width: 46.8em) {
+ .gi-1-3 {
+ float: left;
+ width: 33.333333%; } }
+
+/* Grid 4up block */
+.g-opposites .gi {
+ float: left; }
+ .g-opposites .gi:last-child {
+ float: right;
+ text-align: right; }
+
+/*------------------------------------*\
+ $PAGE STRUCTURE
+\*------------------------------------*/
+.header {
+ background: white;
+ padding: 0;
+ border-bottom: 1px solid #dbdbdb; }
+
+.logo {
+ float: left;
+ max-width: 8rem;
+ margin: 0.4rem; }
+ @media all and (min-width: 46.8em) {
+ .logo {
+ max-width: 9rem; } }
+
+.nav-toggle {
+ float: right;
+ display: block;
+ padding: 0.9rem 1rem 0.7rem;
+ font-size: 1.3rem;
+ line-height: 1;
+ border-left: 1px solid #dbdbdb; }
+ @media all and (min-width: 46.8em) {
+ .nav-toggle {
+ display: none; } }
+ @media all and (max-width: 17em) {
+ .nav-toggle {
+ padding-left: 0.2rem;
+ padding-right: 0.2rem; } }
+
+.search-form {
+ overflow: hidden;
+ max-height: 0; }
+ @media all and (min-width: 46.8em) {
+ .search-form {
+ float: right;
+ max-height: none;
+ margin: 0.65em 0.5em 0 0; } }
+
+/*------------------------------------*\
+ $NAVIGATION
+\*------------------------------------*/
+.nav {
+ clear: both;
+ overflow: hidden;
+ max-height: 0; }
+ .nav a {
+ display: block;
+ padding: 1em;
+ border-top: 1px solid #eeeeee; }
+ .nav.active {
+ max-height: 40em; }
+ @media all and (min-width: 46.8em) {
+ .nav {
+ max-height: none;
+ float: right;
+ clear: none; }
+ .nav li {
+ float: left; }
+ .nav a {
+ border: 0; } }
+
+.pagination {
+ overflow: hidden; }
+ .pagination li {
+ float: left;
+ border-right: 1px solid #eeeeee; }
+ .pagination li:last-child {
+ border: 0; }
+ .pagination a {
+ padding: 1em; }
+
+/*------------------------------------*\
+ $MAIN CONTENT AREA
+\*------------------------------------*/
+[role=main] {
+ padding: 0.5em 0.5em 2em;
+ overflow: hidden; }
+
+/*------------------------------------*\
+ $FOOTER
+\*------------------------------------*/
+.footer {
+ clear: both;
+ overflow: hidden;
+ background: #131313;
+ color: white;
+ line-height: 1.2; }
+ .footer a {
+ color: #f9f9f9; }
+
+.nav-footer {
+ margin: -1em -1em 1em; }
+ .nav-footer li {
+ border-bottom: 1px solid #333333; }
+ @media all and (min-width: 46.8em) {
+ .nav-footer li {
+ border: 0;
+ float: left; } }
+ .nav-footer a {
+ display: block;
+ padding: 1em; }
+
+@media all and (min-width: 46.8em) {
+ .copyright {
+ float: right; } }
+
+/*------------------------------------*\
+ $TEXT Styles
+\*------------------------------------*/
+.intro {
+ font-size: 1.0625em;
+ font-weight: bold; }
+
+.pullquote {
+ font-family: Georgia, Times, "Times New Roman", serif;
+ font-size: 1.4375em; }
+
+.caption {
+ font-style: italic; }
+
+.text a {
+ text-decoration: underline; }
+.text ul {
+ list-style: disc;
+ margin: 0 0 1em 1.2em; }
+ .text ul ul {
+ margin-bottom: 0; }
+.text ol {
+ list-style: decimal;
+ margin: 0 0 1em 1.5em; }
+ .text ol ol {
+ margin-bottom: 0; }
+
+/*------------------------------------*\
+ $COMPONENTS
+\*------------------------------------*/
+/* Icon Font */
+@font-face {
+ font-family: 'icons';
+ src: url("../fonts/icons.eot");
+ src: url("../fonts/icons.eot?#iefix") format("embedded-opentype"), url("../fonts/icons.woff") format("woff"), url("../fonts/icons.ttf") format("truetype"), url("../fonts/icons.svg#icons") format("svg");
+ font-weight: normal;
+ font-style: normal; }
+
+/* Use the following CSS code if you want to use data attributes for inserting your icons */
+[data-icon]:before {
+ font-family: 'icons';
+ content: attr(data-icon);
+ speak: none;
+ font-weight: normal;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased; }
+
+.icon-twitter:before, .icon-stumbleupon:before, .icon-pinterest:before, .icon-linkedin:before, .icon-google-plus:before, .icon-search:before, .icon-play:before, .icon-menu:before, .icon-arrow-left:before, .icon-arrow-right:before, .icon-bubble:before, .icon-facebook:before, .icon-feed:before, .icon-youtube:before, .icon-tag:before, .icon-tumblr:before, .icon-instagram, .icon-podcast, .icon-apple, .icon-android, .icon-arrow:after, .icon-envelope:before {
+ font-family: 'icons';
+ speak: none;
+ font-style: normal;
+ font-weight: normal;
+ font-variant: normal;
+ text-transform: none;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased; }
+
+.icon-twitter:before {
+ content: "\74"; }
+
+.icon-stumbleupon:before {
+ content: "\75"; }
+
+.icon-pinterest:before {
+ content: "\70"; }
+
+.icon-linkedin:before {
+ content: "\69"; }
+
+.icon-google-plus:before {
+ content: "\67"; }
+
+.icon-search:before {
+ content: "\73"; }
+
+.icon-play:before {
+ content: "\61"; }
+
+.icon-menu:before {
+ content: "\21"; }
+
+.icon-arrow-left:before {
+ content: "\23"; }
+
+.icon-arrow-right:before {
+ content: "\24"; }
+
+.icon-bubble:before {
+ content: "\25"; }
+
+.icon-facebook:before {
+ content: "\66"; }
+
+.icon-feed:before {
+ content: "\27"; }
+
+.icon-youtube:before {
+ content: "\79"; }
+
+.icon-tag:before {
+ content: "\28"; }
+
+.icon-tumblr:before {
+ content: "\6d"; }
+
+.icon-instagram:before {
+ content: "\22"; }
+
+.icon-podcast:before {
+ content: "\26"; }
+
+.icon-android:before {
+ content: "\29"; }
+
+.icon-apple:before {
+ content: "\2a"; }
+
+.icon-envelope:before {
+ content: "\2b"; }
+
+.icon-arrow:after {
+ content: "\61";
+ display: inline-block;
+ -webkit-transform: rotate(90deg);
+ -moz-transform: rotate(90deg);
+ -ms-transform: rotate(90deg);
+ -o-transform: rotate(90deg);
+ transform: rotate(90deg); }
+
+.icon-play:before {
+ font-size: 0.7rem;
+ padding-left: 0.2em; }
+
+.icon-play-box {
+ display: block;
+ margin-left: 2em; }
+
+.icon-play-box:before {
+ padding: 0.25em;
+ background: gray;
+ color: white;
+ margin-left: -1.7rem;
+ margin-right: 0.5em; }
+
+/*------------------------------------*\
+ $BUTTONS
+\*------------------------------------*/
+.btn {
+ display: inline-block;
+ background: #333333;
+ color: white;
+ line-height: 1;
+ font-weight: bold;
+ padding: 1em;
+ border: 0;
+ text-align: center; }
+ .btn:hover, .btn:focus {
+ background: gray;
+ color: white; }
+ .btn.disabled {
+ background: #eeeeee;
+ color: gray; }
+
+.btn-small {
+ padding: 0.5em; }
+
+.btn-large {
+ padding: 0.5em;
+ text-transform: uppercase;
+ background: gray;
+ font-size: 1.4rem;
+ font-weight: normal; }
+
+.text-btn {
+ font-style: italic; }
+
+/* Generic Placeholder Brick: REMOVE FOR PRODUCTION */
+.brick {
+ background: #dcdddc;
+ padding: 2em;
+ text-align: center;
+ font-weight: bold;
+ border-bottom: 1px solid #eeeeee; }
+
+/* Block */
+.block {
+ overflow: hidden; }
+ .block p:last-child {
+ margin-bottom: 0; }
+
+.headline {
+ line-height: 1.2; }
+
+/* Hero Block */
+.block-hero {
+ margin-bottom: 0.5em; }
+ .block-hero .b-thumb img {
+ display: block; }
+ @media all and (min-width: 50em) {
+ .block-hero {
+ position: relative; }
+ .block-hero .b-text {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ background: rgba(0, 0, 0, 0.5);
+ color: white;
+ padding: 1.5em; } }
+
+/* Block Thumbnail with Headline */
+.block-thumb {
+ display: table;
+ width: 100%;
+ border-collapse: collapse; }
+ .block-thumb .b-inner {
+ display: table-row;
+ vertical-align: top;
+ overflow: hidden; }
+ @media all and (min-width: 29.75em) {
+ .block-thumb .b-thumb {
+ display: table-cell;
+ vertical-align: top;
+ width: 30%;
+ max-width: 10em; }
+ .block-thumb .b-thumb img {
+ display: block;
+ width: 100%;
+ height: auto; } }
+ @media all and (min-width: 29.75em) {
+ .block-thumb .b-text {
+ display: table-cell;
+ width: 70%;
+ padding: 0 1em; } }
+
+/* Block Headline Summary */
+.block-headline-summary a {
+ display: block;
+ padding: 0.5em; }
+
+/* Block Inset */
+.block-inset {
+ position: relative; }
+ .block-inset .b-thumb {
+ position: relative;
+ z-index: 0; }
+ .block-inset .b-thumb img {
+ display: block; }
+
+/* Hero Block */
+.block-inset {
+ margin-bottom: 0.5em;
+ position: relative; }
+ .block-inset .headline {
+ font-size: 1.1em; }
+ .block-inset .b-text {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ background: rgba(0, 0, 0, 0.5);
+ color: white;
+ padding: 0.5em; }
+
+/* Block Thumb with Summary */
+.block-thumb-summary .b-thumb {
+ float: left;
+ width: 50%; }
+.block-thumb-summary .b-text {
+ margin-left: 50%;
+ padding: 0.5em; }
+
+.inline-list li {
+ display: inline-block; }
+
+/* Social List */
+.social-list li {
+ margin: 0 0.4rem 1em 0; }
+.social-list a {
+ font-size: 1.6em; }
+
+/* Headline List */
+.headline-list {
+ margin-bottom: 1em; }
+ .headline-list.flush {
+ margin: 0; }
+ .headline-list h4 {
+ font-weight: normal; }
+ .headline-list li {
+ padding: 0.25em 0;
+ border-top: 1px solid #dddddd; }
+
+/* Post List */
+.post-list li {
+ margin-bottom: 1em; }
+
+/* Bullet List */
+.bullet-list {
+ list-style: square;
+ margin: 0 0 1em 1.2em;
+ line-height: 1.3; }
+ .bullet-list li {
+ margin-bottom: 1em; }
+
+/* Text List */
+.text-list {
+ margin: 0 0 1em;
+ line-height: 1.3; }
+ .text-list li {
+ margin-bottom: 1em; }
+
+.tooltip-container {
+ display: inline-block;
+ position: relative; }
+ .tooltip-container:hover .tooltip {
+ display: block; }
+
+.tooltip-link {
+ background: #f9f9f9; }
+
+.tooltip {
+ display: none;
+ position: absolute;
+ top: 1.5em;
+ left: 0;
+ width: 18em;
+ padding: 1em;
+ background: white;
+ border: 1px solid gray;
+ box-shadow: 0.3em 0.3em 1em 0 rgba(0, 0, 0, 0.2); }
+ .tooltip h2 {
+ margin-top: 0; }
+ @media all and (min-width: 24em) {
+ .tooltip {
+ width: 22em; } }
+ @media all and (min-width: 29.75em) {
+ .tooltip {
+ width: 27em; } }
+ @media all and (min-width: 39.8em) {
+ .tooltip {
+ width: 30em; } }
+
+.accordion {
+ margin-bottom: 1em; }
+
+.acc-handle {
+ background: #131313;
+ color: white;
+ font-family: Georgia, Times, "Times New Roman", serif;
+ font-weight: bold;
+ display: block;
+ position: relative;
+ padding: 0.5em;
+ border-bottom: 1px solid #dddddd; }
+ .acc-handle:after {
+ content: "+";
+ float: right; }
+ .acc-handle:hover {
+ color: white;
+ background: #333333; }
+ .acc-handle.active {
+ background: #333333; }
+ .acc-handle.active:after {
+ content: "-"; }
+
+.tabs {
+ overflow: hidden; }
+ .tabs ul {
+ display: table;
+ width: 100%; }
+ .tabs li {
+ display: table-cell;
+ text-align: center;
+ border-right: 1px solid #dddddd; }
+ .tabs li:last-child {
+ border-right: 0; }
+ .tabs a {
+ display: block;
+ padding: 0.5em;
+ background: gray; }
+ .tabs a:hover, .tabs a:focus {
+ background: #dddddd; }
+ .tabs a.active {
+ background: #333333;
+ color: white; }
+
+.section {
+ margin: 0 0 1em; }
+
+.section-title {
+ margin-bottom: 0.5em; }
+
+.article-header h1 {
+ font-size: 2.5em; }
+
+.byline {
+ font-size: 0.875em;
+ font-style: italic;
+ margin-bottom: 0.5em; }
+
+.social-share {
+ overflow: hidden;
+ margin-bottom: 1em; }
+ .social-share li {
+ float: left;
+ margin-right: 0.5em; }
+ .social-share a {
+ background: #333333;
+ color: white;
+ display: block;
+ padding: 0.5em; }
+ .social-share a:hover {
+ background: gray; }
+
+.comments li {
+ margin-bottom: 1em; }
+
+.comment-container {
+ overflow: hidden;
+ margin-bottom: 1em;
+ list-style: none; }
+
+.comment-meta {
+ float: left;
+ width: 6.5em; }
+ .comment-meta img {
+ display: block;
+ border: 1px solid #eeeeee;
+ margin-bottom: 0.5em; }
+
+.comment-name {
+ font-size: 0.75em; }
+
+.comment-text {
+ margin-left: 9em; }
+
+/*------------------------------------*\
+ $MESSAGING
+\*------------------------------------*/
+.alert {
+ text-align: center;
+ padding: 1em;
+ margin-bottom: 0.5em;
+ border: 1px solid gray;
+ background: #f9f9f9; }
+
+.alert-error {
+ color: red;
+ border-color: red;
+ background: #ffbebe; }
diff --git a/lab/source/css/style.scss b/lab/source/css/style.scss
new file mode 100644
index 0000000..b749f20
--- /dev/null
+++ b/lab/source/css/style.scss
@@ -0,0 +1,121 @@
+/*
+ ,, ,, ,,
+ .M"""bgd mm db `7MM mm mm `7MM OO OO OO
+,MI "Y MM MM MM MM MM 88 88 88
+`MMb. mmMMmm ,pW"Wq.`7MMpdMAo. `7Mb,od8 `7MM .P"Ybmmm MMpMMMb.mmMMmm mmMMmm MMpMMMb. .gP"Ya `7Mb,od8 .gP"Ya || || ||
+ `YMMNq. MM 6W' `Wb MM `Wb MM' "' MM :MI I8 MM MM MM MM MM MM ,M' Yb MM' "',M' Yb || || ||
+. `MM MM 8M M8 MM M8 MM MM WmmmP" MM MM MM MM MM MM 8M"""""" MM 8M"""""" `' `' `'
+Mb dM MM YA. ,A9 MM ,AP MM MM 8M MM MM MM MM MM MM YM. , MM YM. , ,, ,, ,,
+P"Ybmmd" `Mbmo`Ybmd9' MMbmmd' .JMML. .JMML.YMMMMMb .JMML JMML.`Mbmo `Mbmo.JMML JMML.`Mbmmd'.JMML. `Mbmmd' db db db
+ MM 6' dP
+ .JMML. Ybmmmd'
+
+Pattern Lab doesn't have any CSS requirements, which means you can write your styles however you want. Hooray!
+You can use Sass, Less, vanilla CSS, or some other crazy thing I haven't heard of yet.
+So please don't use these styles. They're just here to put together the demo, and nothing more.
+They're intentionally gray, boring, and crappy because you're supposed to do this stuff yourself.
+
+Atomic design is philosophically complimentary with these CSS approaches:
+
+* SMACSS by Jonathan Snook http://smacss.com/
+* OOCSS by Nicole Sullivan http://oocss.org/
+* BEM CSS Methology : http://bem.info/method/
+* CSS Guidelines by Harry Roberts : https://github.com/csswizardry/CSS-Guidelines
+
+So feel free to use any of these approaches. Or don't. It's totally up to you.
+
+*/
+
+/*------------------------------------*\
+ $TABLE OF CONTENTS
+ based generally on Harry Roberts excellent CSS Guidelines https://github.com/csswizardry/CSS-Guidelines
+\*------------------------------------*/
+/**
+ * VARIABLES..............................Declarations of Sass variables
+ * .....Colors
+ * .....Typography
+ * .....Layout
+ * .....Defaults
+ * .....Breakpoints
+ * MIXINS.................................Sass mixins
+ * RESET..................................Set reset defaults
+ * GLOBAL CLASSES.........................Set reset defaults
+ * GLOBAL ELEMENTS........................Establish global styles
+ * .....Main
+ * .....Headings
+ * .....Text-related elements (p, blockquote, lists)
+ * .....Defaults
+ * .....Breakpoints
+ * TYPOGRAPHY------------------------------
+ * MEDIA------------------------------
+ * LAYOUT------------------------------
+ * NAVIGATION------------------------------
+ * TOC To Be Continued
+ */
+
+
+
+@import "scss/generic/variables";
+@import "scss/generic/mixins";
+@import "scss/generic/reset";
+
+
+
+
+
+/*------------------------------------*\
+ $GLOBAL ELEMENTS
+\*------------------------------------*/
+@import "scss/base/global-classes";
+@import "scss/base/main";
+@import "scss/base/links";
+@import "scss/base/headings";
+@import "scss/base/text";
+@import "scss/base/lists";
+@import "scss/base/media";
+@import "scss/base/forms";
+@import "scss/base/tables";
+@import "scss/base/animation";
+
+
+
+
+
+/*------------------------------------*\
+ $LAYOUT
+\*------------------------------------*/
+@import "scss/objects/layout";
+
+
+/*------------------------------------*\
+ $PAGE STRUCTURE
+\*------------------------------------*/
+@import "scss/objects/header";
+@import "scss/objects/nav";
+@import "scss/objects/main";
+@import "scss/objects/footer";
+
+
+
+/*------------------------------------*\
+ $TEXT Styles
+\*------------------------------------*/
+@import "scss/objects/text";
+
+
+/*------------------------------------*\
+ $COMPONENTS
+\*------------------------------------*/
+@import "scss/objects/icons";
+@import "scss/objects/buttons";
+@import "scss/objects/blocks";
+@import "scss/objects/lists";
+@import "scss/objects/tooltip";
+@import "scss/objects/accordion";
+@import "scss/objects/tabs";
+@import "scss/objects/sections";
+@import "scss/objects/article";
+@import "scss/objects/comments";
+@import "scss/objects/messaging";
+
+
diff --git a/lab/source/favicon.ico b/lab/source/favicon.ico
new file mode 100644
index 0000000..eee4aa7
Binary files /dev/null and b/lab/source/favicon.ico differ
diff --git a/lab/source/fonts/icons.dev.svg b/lab/source/fonts/icons.dev.svg
new file mode 100644
index 0000000..ca8e49e
--- /dev/null
+++ b/lab/source/fonts/icons.dev.svg
@@ -0,0 +1,103 @@
+
+
+
+
+This is a custom SVG font generated by IcoMoon.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/fonts/icons.eot b/lab/source/fonts/icons.eot
new file mode 100644
index 0000000..81a314b
Binary files /dev/null and b/lab/source/fonts/icons.eot differ
diff --git a/lab/source/fonts/icons.svg b/lab/source/fonts/icons.svg
new file mode 100644
index 0000000..3c64026
--- /dev/null
+++ b/lab/source/fonts/icons.svg
@@ -0,0 +1,103 @@
+
+
+
+
+This is a custom SVG font generated by IcoMoon.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab/source/fonts/icons.ttf b/lab/source/fonts/icons.ttf
new file mode 100644
index 0000000..e6bff08
Binary files /dev/null and b/lab/source/fonts/icons.ttf differ
diff --git a/lab/source/fonts/icons.woff b/lab/source/fonts/icons.woff
new file mode 100644
index 0000000..10e6632
Binary files /dev/null and b/lab/source/fonts/icons.woff differ
diff --git a/lab/source/images/ajax-loader.gif b/lab/source/images/ajax-loader.gif
new file mode 100644
index 0000000..f2a1bc0
Binary files /dev/null and b/lab/source/images/ajax-loader.gif differ
diff --git a/lab/source/images/favicon_16x16.jpg b/lab/source/images/favicon_16x16.jpg
new file mode 100644
index 0000000..05e7449
Binary files /dev/null and b/lab/source/images/favicon_16x16.jpg differ
diff --git a/lab/source/images/favicon_32x32.jpg b/lab/source/images/favicon_32x32.jpg
new file mode 100644
index 0000000..0970980
Binary files /dev/null and b/lab/source/images/favicon_32x32.jpg differ
diff --git a/lab/source/images/fpo_16x9.png b/lab/source/images/fpo_16x9.png
new file mode 100644
index 0000000..013949d
Binary files /dev/null and b/lab/source/images/fpo_16x9.png differ
diff --git a/lab/source/images/fpo_4x3.png b/lab/source/images/fpo_4x3.png
new file mode 100644
index 0000000..7ff84b8
Binary files /dev/null and b/lab/source/images/fpo_4x3.png differ
diff --git a/lab/source/images/fpo_avatar.png b/lab/source/images/fpo_avatar.png
new file mode 100644
index 0000000..e666a40
Binary files /dev/null and b/lab/source/images/fpo_avatar.png differ
diff --git a/lab/source/images/fpo_square.png b/lab/source/images/fpo_square.png
new file mode 100644
index 0000000..ce8a1e4
Binary files /dev/null and b/lab/source/images/fpo_square.png differ
diff --git a/lab/source/images/logo.png b/lab/source/images/logo.png
new file mode 100644
index 0000000..93db733
Binary files /dev/null and b/lab/source/images/logo.png differ
diff --git a/lab/source/images/sample/landscape-16x9-mountains.jpg b/lab/source/images/sample/landscape-16x9-mountains.jpg
new file mode 100644
index 0000000..3c0d92b
Binary files /dev/null and b/lab/source/images/sample/landscape-16x9-mountains.jpg differ
diff --git a/lab/source/images/sample/thumb-square-fire.jpg b/lab/source/images/sample/thumb-square-fire.jpg
new file mode 100644
index 0000000..20a5c5e
Binary files /dev/null and b/lab/source/images/sample/thumb-square-fire.jpg differ
diff --git a/lab/source/images/sample/thumb-square-gear.jpg b/lab/source/images/sample/thumb-square-gear.jpg
new file mode 100644
index 0000000..052a52a
Binary files /dev/null and b/lab/source/images/sample/thumb-square-gear.jpg differ
diff --git a/lab/source/images/sample/thumb-square-ivy.jpg b/lab/source/images/sample/thumb-square-ivy.jpg
new file mode 100644
index 0000000..64183a7
Binary files /dev/null and b/lab/source/images/sample/thumb-square-ivy.jpg differ
diff --git a/lab/source/images/sample/thumb-square-river.jpg b/lab/source/images/sample/thumb-square-river.jpg
new file mode 100644
index 0000000..f190186
Binary files /dev/null and b/lab/source/images/sample/thumb-square-river.jpg differ
diff --git a/lab/source/images/sample/thumb-square-yosemite.jpg b/lab/source/images/sample/thumb-square-yosemite.jpg
new file mode 100644
index 0000000..8f388d7
Binary files /dev/null and b/lab/source/images/sample/thumb-square-yosemite.jpg differ
diff --git a/lab/source/images/sample/tout-4x3-climber.jpg b/lab/source/images/sample/tout-4x3-climber.jpg
new file mode 100644
index 0000000..1348cd7
Binary files /dev/null and b/lab/source/images/sample/tout-4x3-climber.jpg differ
diff --git a/lab/source/images/sample/tout-4x3-climbers.jpg b/lab/source/images/sample/tout-4x3-climbers.jpg
new file mode 100644
index 0000000..d8461a1
Binary files /dev/null and b/lab/source/images/sample/tout-4x3-climbers.jpg differ
diff --git a/lab/source/images/sample/tout-4x3-stream.jpg b/lab/source/images/sample/tout-4x3-stream.jpg
new file mode 100644
index 0000000..8e091d1
Binary files /dev/null and b/lab/source/images/sample/tout-4x3-stream.jpg differ
diff --git a/lab/source/js/fitvids.js b/lab/source/js/fitvids.js
new file mode 100644
index 0000000..e2c5fbe
--- /dev/null
+++ b/lab/source/js/fitvids.js
@@ -0,0 +1,77 @@
+/*global jQuery */
+/*!
+* FitVids 1.0
+*
+* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
+* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
+* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
+*
+* Date: Thu Sept 01 18:00:00 2011 -0500
+*/
+
+(function( $ ){
+
+ $.fn.fitVids = function( options ) {
+ var settings = {
+ customSelector: null
+ }
+
+ var div = document.createElement('div'),
+ ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
+
+ div.className = 'fit-vids-style';
+ div.innerHTML = '';
+
+ ref.parentNode.insertBefore(div,ref);
+
+ if ( options ) {
+ $.extend( settings, options );
+ }
+
+ return this.each(function(){
+ var selectors = [
+ "iframe[src*='player.vimeo.com']",
+ "iframe[src*='www.youtube.com']",
+ "iframe[src*='www.kickstarter.com']",
+ "object",
+ "embed"
+ ];
+
+ if (settings.customSelector) {
+ selectors.push(settings.customSelector);
+ }
+
+ var $allVideos = $(this).find(selectors.join(','));
+
+ $allVideos.each(function(){
+ var $this = $(this);
+ if (this.tagName.toLowerCase() == 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
+ var height = ( this.tagName.toLowerCase() == 'object' || $this.attr('height') ) ? $this.attr('height') : $this.height(),
+ width = $this.attr('width') ? $this.attr('width') : $this.width(),
+ aspectRatio = height / width;
+ if(!$this.attr('id')){
+ var videoID = 'fitvid' + Math.floor(Math.random()*999999);
+ $this.attr('id', videoID);
+ }
+ $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
+ $this.removeAttr('height').removeAttr('width');
+ });
+ });
+ }
+})( jQuery );
\ No newline at end of file
diff --git a/lab/source/js/init.js b/lab/source/js/init.js
new file mode 100644
index 0000000..fe973aa
--- /dev/null
+++ b/lab/source/js/init.js
@@ -0,0 +1,26 @@
+(function(w){
+ var sw = document.body.clientWidth,
+ sh = document.body.clientHeight;
+
+ $(w).resize(function(){ //Update dimensions on resize
+ sw = document.body.clientWidth;
+ sh = document.body.clientHeight;
+
+ //updateAds();
+ });
+
+
+ //Navigation toggle
+ $('.nav-toggle-menu').click(function(e) {
+ e.preventDefault();
+ $(this).toggleClass('active');
+ $('.nav').toggleClass('active');
+ });
+
+ //Navigation toggle
+ $('.nav-toggle-search').click(function(e) {
+ e.preventDefault();
+ $(this).toggleClass('active');
+ $('.header .search-form').toggleClass('active');
+ });
+})(this);
\ No newline at end of file
diff --git a/lab/source/js/jquery-2.0.0b2.js b/lab/source/js/jquery-2.0.0b2.js
new file mode 100644
index 0000000..af8b3b8
--- /dev/null
+++ b/lab/source/js/jquery-2.0.0b2.js
@@ -0,0 +1,8690 @@
+/*!
+ * jQuery JavaScript Library v2.0.0b2
+ * http://jquery.com/
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ *
+ * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
+ * Released under the MIT license
+ * http://jquery.org/license
+ *
+ * Date: 2013-3-1
+ */
+(function( window, undefined ) {
+
+// Can't do this because several apps including ASP.NET trace
+// the stack via arguments.caller.callee and Firefox dies if
+// you try to trace through "use strict" call chains. (#13335)
+// Support: Firefox 18+
+//"use strict";
+var
+ // A central reference to the root jQuery(document)
+ rootjQuery,
+
+ // The deferred used on DOM ready
+ readyList,
+
+ // Support: IE9
+ // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined`
+ core_strundefined = typeof undefined,
+
+ // Use the correct document accordingly with window argument (sandbox)
+ location = window.location,
+ document = window.document,
+ docElem = document.documentElement,
+
+ // Map over jQuery in case of overwrite
+ _jQuery = window.jQuery,
+
+ // Map over the $ in case of overwrite
+ _$ = window.$,
+
+ // [[Class]] -> type pairs
+ class2type = {},
+
+ // List of deleted data cache ids, so we can reuse them
+ core_deletedIds = [],
+
+ core_version = "2.0.0b2",
+
+ // Save a reference to some core methods
+ core_concat = core_deletedIds.concat,
+ core_push = core_deletedIds.push,
+ core_slice = core_deletedIds.slice,
+ core_indexOf = core_deletedIds.indexOf,
+ core_toString = class2type.toString,
+ core_hasOwn = class2type.hasOwnProperty,
+ core_trim = core_version.trim,
+
+ // Define a local copy of jQuery
+ jQuery = function( selector, context ) {
+ // The jQuery object is actually just the init constructor 'enhanced'
+ return new jQuery.fn.init( selector, context, rootjQuery );
+ },
+
+ // Used for matching numbers
+ core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
+
+ // Used for splitting on whitespace
+ core_rnotwhite = /\S+/g,
+
+ // A simple way to check for HTML strings
+ // Prioritize #id over to avoid XSS via location.hash (#9521)
+ // Strict HTML recognition (#11290: must start with <)
+ rquickExpr = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,
+
+ // Match a standalone tag
+ rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
+
+ // Matches dashed string for camelizing
+ rmsPrefix = /^-ms-/,
+ rdashAlpha = /-([\da-z])/gi,
+
+ // Used by jQuery.camelCase as callback to replace()
+ fcamelCase = function( all, letter ) {
+ return letter.toUpperCase();
+ },
+
+ // The ready event handler and self cleanup method
+ completed = function() {
+ document.removeEventListener( "DOMContentLoaded", completed, false );
+ window.removeEventListener( "load", completed, false );
+ jQuery.ready();
+ };
+
+jQuery.fn = jQuery.prototype = {
+ // The current version of jQuery being used
+ jquery: core_version,
+
+ constructor: jQuery,
+ init: function( selector, context, rootjQuery ) {
+ var match, elem;
+
+ // HANDLE: $(""), $(null), $(undefined), $(false)
+ if ( !selector ) {
+ return this;
+ }
+
+ // Handle HTML strings
+ if ( typeof selector === "string" ) {
+ if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
+ // Assume that strings that start and end with <> are HTML and skip the regex check
+ match = [ null, selector, null ];
+
+ } else {
+ match = rquickExpr.exec( selector );
+ }
+
+ // Match html or make sure no context is specified for #id
+ if ( match && (match[1] || !context) ) {
+
+ // HANDLE: $(html) -> $(array)
+ if ( match[1] ) {
+ context = context instanceof jQuery ? context[0] : context;
+
+ // scripts is true for back-compat
+ jQuery.merge( this, jQuery.parseHTML(
+ match[1],
+ context && context.nodeType ? context.ownerDocument || context : document,
+ true
+ ) );
+
+ // HANDLE: $(html, props)
+ if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
+ for ( match in context ) {
+ // Properties of context are called as methods if possible
+ if ( jQuery.isFunction( this[ match ] ) ) {
+ this[ match ]( context[ match ] );
+
+ // ...and otherwise set as attributes
+ } else {
+ this.attr( match, context[ match ] );
+ }
+ }
+ }
+
+ return this;
+
+ // HANDLE: $(#id)
+ } else {
+ elem = document.getElementById( match[2] );
+
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ if ( elem && elem.parentNode ) {
+ // Handle the case where IE and Opera return items
+ // by name instead of ID
+ if ( elem.id !== match[2] ) {
+ return rootjQuery.find( selector );
+ }
+
+ // Otherwise, we inject the element directly into the jQuery object
+ this.length = 1;
+ this[0] = elem;
+ }
+
+ this.context = document;
+ this.selector = selector;
+ return this;
+ }
+
+ // HANDLE: $(expr, $(...))
+ } else if ( !context || context.jquery ) {
+ return ( context || rootjQuery ).find( selector );
+
+ // HANDLE: $(expr, context)
+ // (which is just equivalent to: $(context).find(expr)
+ } else {
+ return this.constructor( context ).find( selector );
+ }
+
+ // HANDLE: $(DOMElement)
+ } else if ( selector.nodeType ) {
+ this.context = this[0] = selector;
+ this.length = 1;
+ return this;
+
+ // HANDLE: $(function)
+ // Shortcut for document ready
+ } else if ( jQuery.isFunction( selector ) ) {
+ return rootjQuery.ready( selector );
+ }
+
+ if ( selector.selector !== undefined ) {
+ this.selector = selector.selector;
+ this.context = selector.context;
+ }
+
+ return jQuery.makeArray( selector, this );
+ },
+
+ // Start with an empty selector
+ selector: "",
+
+ // The default length of a jQuery object is 0
+ length: 0,
+
+ // The number of elements contained in the matched element set
+ size: function() {
+ return this.length;
+ },
+
+ toArray: function() {
+ return core_slice.call( this );
+ },
+
+ // Get the Nth element in the matched element set OR
+ // Get the whole matched element set as a clean array
+ get: function( num ) {
+ return num == null ?
+
+ // Return a 'clean' array
+ this.toArray() :
+
+ // Return just the object
+ ( num < 0 ? this[ this.length + num ] : this[ num ] );
+ },
+
+ // Take an array of elements and push it onto the stack
+ // (returning the new matched element set)
+ pushStack: function( elems ) {
+
+ // Build a new jQuery matched element set
+ var ret = jQuery.merge( this.constructor(), elems );
+
+ // Add the old object onto the stack (as a reference)
+ ret.prevObject = this;
+ ret.context = this.context;
+
+ // Return the newly-formed element set
+ return ret;
+ },
+
+ // Execute a callback for every element in the matched set.
+ // (You can seed the arguments with an array of args, but this is
+ // only used internally.)
+ each: function( callback, args ) {
+ return jQuery.each( this, callback, args );
+ },
+
+ ready: function( fn ) {
+ // Add the callback
+ jQuery.ready.promise().done( fn );
+
+ return this;
+ },
+
+ slice: function() {
+ return this.pushStack( core_slice.apply( this, arguments ) );
+ },
+
+ first: function() {
+ return this.eq( 0 );
+ },
+
+ last: function() {
+ return this.eq( -1 );
+ },
+
+ eq: function( i ) {
+ var len = this.length,
+ j = +i + ( i < 0 ? len : 0 );
+ return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );
+ },
+
+ map: function( callback ) {
+ return this.pushStack( jQuery.map(this, function( elem, i ) {
+ return callback.call( elem, i, elem );
+ }));
+ },
+
+ end: function() {
+ return this.prevObject || this.constructor(null);
+ },
+
+ // For internal use only.
+ // Behaves like an Array's method, not like a jQuery method.
+ push: core_push,
+ sort: [].sort,
+ splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+ var options, name, src, copy, copyIsArray, clone,
+ target = arguments[0] || {},
+ i = 1,
+ length = arguments.length,
+ deep = false;
+
+ // Handle a deep copy situation
+ if ( typeof target === "boolean" ) {
+ deep = target;
+ target = arguments[1] || {};
+ // skip the boolean and the target
+ i = 2;
+ }
+
+ // Handle case when target is a string or something (possible in deep copy)
+ if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+ target = {};
+ }
+
+ // extend jQuery itself if only one argument is passed
+ if ( length === i ) {
+ target = this;
+ --i;
+ }
+
+ for ( ; i < length; i++ ) {
+ // Only deal with non-null/undefined values
+ if ( (options = arguments[ i ]) != null ) {
+ // Extend the base object
+ for ( name in options ) {
+ src = target[ name ];
+ copy = options[ name ];
+
+ // Prevent never-ending loop
+ if ( target === copy ) {
+ continue;
+ }
+
+ // Recurse if we're merging plain objects or arrays
+ if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
+ if ( copyIsArray ) {
+ copyIsArray = false;
+ clone = src && jQuery.isArray(src) ? src : [];
+
+ } else {
+ clone = src && jQuery.isPlainObject(src) ? src : {};
+ }
+
+ // Never move original objects, clone them
+ target[ name ] = jQuery.extend( deep, clone, copy );
+
+ // Don't bring in undefined values
+ } else if ( copy !== undefined ) {
+ target[ name ] = copy;
+ }
+ }
+ }
+ }
+
+ // Return the modified object
+ return target;
+};
+
+jQuery.extend({
+ // Unique for each copy of jQuery on the page
+ expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ),
+
+ noConflict: function( deep ) {
+ if ( window.$ === jQuery ) {
+ window.$ = _$;
+ }
+
+ if ( deep && window.jQuery === jQuery ) {
+ window.jQuery = _jQuery;
+ }
+
+ return jQuery;
+ },
+
+ // Is the DOM ready to be used? Set to true once it occurs.
+ isReady: false,
+
+ // A counter to track how many items to wait for before
+ // the ready event fires. See #6781
+ readyWait: 1,
+
+ // Hold (or release) the ready event
+ holdReady: function( hold ) {
+ if ( hold ) {
+ jQuery.readyWait++;
+ } else {
+ jQuery.ready( true );
+ }
+ },
+
+ // Handle when the DOM is ready
+ ready: function( wait ) {
+
+ // Abort if there are pending holds or we're already ready
+ if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
+ return;
+ }
+
+ // Remember that the DOM is ready
+ jQuery.isReady = true;
+
+ // If a normal DOM Ready event fired, decrement, and wait if need be
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
+ return;
+ }
+
+ // If there are functions bound, to execute
+ readyList.resolveWith( document, [ jQuery ] );
+
+ // Trigger any bound ready events
+ if ( jQuery.fn.trigger ) {
+ jQuery( document ).trigger("ready").off("ready");
+ }
+ },
+
+ // See test/unit/core.js for details concerning isFunction.
+ // Since version 1.3, DOM methods and functions like alert
+ // aren't supported. They return false on IE (#2968).
+ isFunction: function( obj ) {
+ return jQuery.type(obj) === "function";
+ },
+
+ isArray: Array.isArray,
+
+ isWindow: function( obj ) {
+ return obj != null && obj == obj.window;
+ },
+
+ isNumeric: function( obj ) {
+ return !isNaN( parseFloat(obj) ) && isFinite( obj );
+ },
+
+ type: function( obj ) {
+ if ( obj == null ) {
+ return String( obj );
+ }
+ // Support: Safari <=5.1 (functionish RegExp)
+ return typeof obj === "object" || typeof obj === "function" ?
+ class2type[ core_toString.call(obj) ] || "object" :
+ typeof obj;
+ },
+
+ isPlainObject: function( obj ) {
+ // Not plain objects:
+ // - Any object or value whose internal [[Class]] property is not "[object Object]"
+ // - DOM nodes
+ // - window
+ if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+ return false;
+ }
+
+ // Support: Firefox >16
+ // The try/catch suppresses exceptions thrown when attempting to access
+ // the "constructor" property of certain host objects, ie. |window.location|
+ try {
+ if ( obj.constructor &&
+ !core_hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
+ return false;
+ }
+ } catch ( e ) {
+ return false;
+ }
+
+ // If the function hasn't returned already, we're confident that
+ // |obj| is a plain object, created by {} or constructed with new Object
+ return true;
+ },
+
+ isEmptyObject: function( obj ) {
+ var name;
+ for ( name in obj ) {
+ return false;
+ }
+ return true;
+ },
+
+ error: function( msg ) {
+ throw new Error( msg );
+ },
+
+ // data: string of html
+ // context (optional): If specified, the fragment will be created in this context, defaults to document
+ // keepScripts (optional): If true, will include scripts passed in the html string
+ parseHTML: function( data, context, keepScripts ) {
+ if ( !data || typeof data !== "string" ) {
+ return null;
+ }
+ if ( typeof context === "boolean" ) {
+ keepScripts = context;
+ context = false;
+ }
+ context = context || document;
+
+ var parsed = rsingleTag.exec( data ),
+ scripts = !keepScripts && [];
+
+ // Single tag
+ if ( parsed ) {
+ return [ context.createElement( parsed[1] ) ];
+ }
+
+ parsed = jQuery.buildFragment( [ data ], context, scripts );
+
+ if ( scripts ) {
+ jQuery( scripts ).remove();
+ }
+
+ return jQuery.merge( [], parsed.childNodes );
+ },
+
+ parseJSON: JSON.parse,
+
+ // Cross-browser xml parsing
+ parseXML: function( data ) {
+ var xml, tmp;
+ if ( !data || typeof data !== "string" ) {
+ return null;
+ }
+
+ // Support: IE9
+ try {
+ tmp = new DOMParser();
+ xml = tmp.parseFromString( data , "text/xml" );
+ } catch ( e ) {
+ xml = undefined;
+ }
+
+ if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
+ jQuery.error( "Invalid XML: " + data );
+ }
+ return xml;
+ },
+
+ noop: function() {},
+
+ // Evaluates a script in a global context
+ globalEval: function( data ) {
+ var indirect = eval;
+ if ( jQuery.trim( data ) ) {
+ indirect( data + ";" );
+ }
+ },
+
+ // Convert dashed to camelCase; used by the css and data modules
+ // Microsoft forgot to hump their vendor prefix (#9572)
+ camelCase: function( string ) {
+ return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+ },
+
+ nodeName: function( elem, name ) {
+ return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
+ },
+
+ // args is for internal usage only
+ each: function( obj, callback, args ) {
+ var value,
+ i = 0,
+ length = obj.length,
+ isArray = isArraylike( obj );
+
+ if ( args ) {
+ if ( isArray ) {
+ for ( ; i < length; i++ ) {
+ value = callback.apply( obj[ i ], args );
+
+ if ( value === false ) {
+ break;
+ }
+ }
+ } else {
+ for ( i in obj ) {
+ value = callback.apply( obj[ i ], args );
+
+ if ( value === false ) {
+ break;
+ }
+ }
+ }
+
+ // A special, fast, case for the most common use of each
+ } else {
+ if ( isArray ) {
+ for ( ; i < length; i++ ) {
+ value = callback.call( obj[ i ], i, obj[ i ] );
+
+ if ( value === false ) {
+ break;
+ }
+ }
+ } else {
+ for ( i in obj ) {
+ value = callback.call( obj[ i ], i, obj[ i ] );
+
+ if ( value === false ) {
+ break;
+ }
+ }
+ }
+ }
+
+ return obj;
+ },
+
+ trim: function( text ) {
+ return text == null ? "" : core_trim.call( text );
+ },
+
+ // results is for internal usage only
+ makeArray: function( arr, results ) {
+ var ret = results || [];
+
+ if ( arr != null ) {
+ if ( isArraylike( Object(arr) ) ) {
+ jQuery.merge( ret,
+ typeof arr === "string" ?
+ [ arr ] : arr
+ );
+ } else {
+ core_push.call( ret, arr );
+ }
+ }
+
+ return ret;
+ },
+
+ inArray: function( elem, arr, i ) {
+ return arr == null ? -1 : core_indexOf.call( arr, elem, i );
+ },
+
+ merge: function( first, second ) {
+ var l = second.length,
+ i = first.length,
+ j = 0;
+
+ if ( typeof l === "number" ) {
+ for ( ; j < l; j++ ) {
+ first[ i++ ] = second[ j ];
+ }
+ } else {
+ while ( second[j] !== undefined ) {
+ first[ i++ ] = second[ j++ ];
+ }
+ }
+
+ first.length = i;
+
+ return first;
+ },
+
+ grep: function( elems, callback, inv ) {
+ var retVal,
+ ret = [],
+ i = 0,
+ length = elems.length;
+ inv = !!inv;
+
+ // Go through the array, only saving the items
+ // that pass the validator function
+ for ( ; i < length; i++ ) {
+ retVal = !!callback( elems[ i ], i );
+ if ( inv !== retVal ) {
+ ret.push( elems[ i ] );
+ }
+ }
+
+ return ret;
+ },
+
+ // arg is for internal usage only
+ map: function( elems, callback, arg ) {
+ var value,
+ i = 0,
+ length = elems.length,
+ isArray = isArraylike( elems ),
+ ret = [];
+
+ // Go through the array, translating each of the items to their
+ if ( isArray ) {
+ for ( ; i < length; i++ ) {
+ value = callback( elems[ i ], i, arg );
+
+ if ( value != null ) {
+ ret[ ret.length ] = value;
+ }
+ }
+
+ // Go through every key on the object,
+ } else {
+ for ( i in elems ) {
+ value = callback( elems[ i ], i, arg );
+
+ if ( value != null ) {
+ ret[ ret.length ] = value;
+ }
+ }
+ }
+
+ // Flatten any nested arrays
+ return core_concat.apply( [], ret );
+ },
+
+ // A global GUID counter for objects
+ guid: 1,
+
+ // Bind a function to a context, optionally partially applying any
+ // arguments.
+ proxy: function( fn, context ) {
+ var tmp, args, proxy;
+
+ if ( typeof context === "string" ) {
+ tmp = fn[ context ];
+ context = fn;
+ fn = tmp;
+ }
+
+ // Quick check to determine if target is callable, in the spec
+ // this throws a TypeError, but we will just return undefined.
+ if ( !jQuery.isFunction( fn ) ) {
+ return undefined;
+ }
+
+ // Simulated bind
+ args = core_slice.call( arguments, 2 );
+ proxy = function() {
+ return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) );
+ };
+
+ // Set the guid of unique handler to the same of original handler, so it can be removed
+ proxy.guid = fn.guid = fn.guid || jQuery.guid++;
+
+ return proxy;
+ },
+
+ // Multifunctional method to get and set values of a collection
+ // The value/s can optionally be executed if it's a function
+ access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
+ var i = 0,
+ length = elems.length,
+ bulk = key == null;
+
+ // Sets many values
+ if ( jQuery.type( key ) === "object" ) {
+ chainable = true;
+ for ( i in key ) {
+ jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
+ }
+
+ // Sets one value
+ } else if ( value !== undefined ) {
+ chainable = true;
+
+ if ( !jQuery.isFunction( value ) ) {
+ raw = true;
+ }
+
+ if ( bulk ) {
+ // Bulk operations run against the entire set
+ if ( raw ) {
+ fn.call( elems, value );
+ fn = null;
+
+ // ...except when executing function values
+ } else {
+ bulk = fn;
+ fn = function( elem, key, value ) {
+ return bulk.call( jQuery( elem ), value );
+ };
+ }
+ }
+
+ if ( fn ) {
+ for ( ; i < length; i++ ) {
+ fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
+ }
+ }
+ }
+
+ return chainable ?
+ elems :
+
+ // Gets
+ bulk ?
+ fn.call( elems ) :
+ length ? fn( elems[0], key ) : emptyGet;
+ },
+
+ now: Date.now
+});
+
+jQuery.ready.promise = function( obj ) {
+ if ( !readyList ) {
+
+ readyList = jQuery.Deferred();
+
+ // Catch cases where $(document).ready() is called after the browser event has already occurred.
+ // we once tried to use readyState "interactive" here, but it caused issues like the one
+ // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
+ if ( document.readyState === "complete" ) {
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
+ setTimeout( jQuery.ready );
+
+ } else {
+
+ // Use the handy event callback
+ document.addEventListener( "DOMContentLoaded", completed, false );
+
+ // A fallback to window.onload, that will always work
+ window.addEventListener( "load", completed, false );
+ }
+ }
+ return readyList.promise( obj );
+};
+
+// Populate the class2type map
+jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
+});
+
+function isArraylike( obj ) {
+ var length = obj.length,
+ type = jQuery.type( obj );
+
+ if ( jQuery.isWindow( obj ) ) {
+ return false;
+ }
+
+ if ( obj.nodeType === 1 && length ) {
+ return true;
+ }
+
+ return type === "array" || type !== "function" &&
+ ( length === 0 ||
+ typeof length === "number" && length > 0 && ( length - 1 ) in obj );
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+// String to Object options format cache
+var optionsCache = {};
+
+// Convert String-formatted options into Object-formatted ones and store in cache
+function createOptions( options ) {
+ var object = optionsCache[ options ] = {};
+ jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) {
+ object[ flag ] = true;
+ });
+ return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ * options: an optional list of space-separated options that will change how
+ * the callback list behaves or a more traditional option object
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible options:
+ *
+ * once: will ensure the callback list can only be fired once (like a Deferred)
+ *
+ * memory: will keep track of previous values and will call any callback added
+ * after the list has been fired right away with the latest "memorized"
+ * values (like a Deferred)
+ *
+ * unique: will ensure a callback can only be added once (no duplicate in the list)
+ *
+ * stopOnFalse: interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( options ) {
+
+ // Convert options from String-formatted to Object-formatted if needed
+ // (we check in cache first)
+ options = typeof options === "string" ?
+ ( optionsCache[ options ] || createOptions( options ) ) :
+ jQuery.extend( {}, options );
+
+ var // Last fire value (for non-forgettable lists)
+ memory,
+ // Flag to know if list was already fired
+ fired,
+ // Flag to know if list is currently firing
+ firing,
+ // First callback to fire (used internally by add and fireWith)
+ firingStart,
+ // End of the loop when firing
+ firingLength,
+ // Index of currently firing callback (modified by remove if needed)
+ firingIndex,
+ // Actual callback list
+ list = [],
+ // Stack of fire calls for repeatable lists
+ stack = !options.once && [],
+ // Fire callbacks
+ fire = function( data ) {
+ memory = options.memory && data;
+ fired = true;
+ firingIndex = firingStart || 0;
+ firingStart = 0;
+ firingLength = list.length;
+ firing = true;
+ for ( ; list && firingIndex < firingLength; firingIndex++ ) {
+ if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
+ memory = false; // To prevent further calls using add
+ break;
+ }
+ }
+ firing = false;
+ if ( list ) {
+ if ( stack ) {
+ if ( stack.length ) {
+ fire( stack.shift() );
+ }
+ } else if ( memory ) {
+ list = [];
+ } else {
+ self.disable();
+ }
+ }
+ },
+ // Actual Callbacks object
+ self = {
+ // Add a callback or a collection of callbacks to the list
+ add: function() {
+ if ( list ) {
+ // First, we save the current length
+ var start = list.length;
+ (function add( args ) {
+ jQuery.each( args, function( _, arg ) {
+ var type = jQuery.type( arg );
+ if ( type === "function" ) {
+ if ( !options.unique || !self.has( arg ) ) {
+ list.push( arg );
+ }
+ } else if ( arg && arg.length && type !== "string" ) {
+ // Inspect recursively
+ add( arg );
+ }
+ });
+ })( arguments );
+ // Do we need to add the callbacks to the
+ // current firing batch?
+ if ( firing ) {
+ firingLength = list.length;
+ // With memory, if we're not firing then
+ // we should call right away
+ } else if ( memory ) {
+ firingStart = start;
+ fire( memory );
+ }
+ }
+ return this;
+ },
+ // Remove a callback from the list
+ remove: function() {
+ if ( list ) {
+ jQuery.each( arguments, function( _, arg ) {
+ var index;
+ while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
+ list.splice( index, 1 );
+ // Handle firing indexes
+ if ( firing ) {
+ if ( index <= firingLength ) {
+ firingLength--;
+ }
+ if ( index <= firingIndex ) {
+ firingIndex--;
+ }
+ }
+ }
+ });
+ }
+ return this;
+ },
+ // Check if a given callback is in the list.
+ // If no argument is given, return whether or not list has callbacks attached.
+ has: function( fn ) {
+ return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
+ },
+ // Remove all callbacks from the list
+ empty: function() {
+ list = [];
+ firingLength = 0;
+ return this;
+ },
+ // Have the list do nothing anymore
+ disable: function() {
+ list = stack = memory = undefined;
+ return this;
+ },
+ // Is it disabled?
+ disabled: function() {
+ return !list;
+ },
+ // Lock the list in its current state
+ lock: function() {
+ stack = undefined;
+ if ( !memory ) {
+ self.disable();
+ }
+ return this;
+ },
+ // Is it locked?
+ locked: function() {
+ return !stack;
+ },
+ // Call all callbacks with the given context and arguments
+ fireWith: function( context, args ) {
+ args = args || [];
+ args = [ context, args.slice ? args.slice() : args ];
+ if ( list && ( !fired || stack ) ) {
+ if ( firing ) {
+ stack.push( args );
+ } else {
+ fire( args );
+ }
+ }
+ return this;
+ },
+ // Call all the callbacks with the given arguments
+ fire: function() {
+ self.fireWith( this, arguments );
+ return this;
+ },
+ // To know if the callbacks have already been called at least once
+ fired: function() {
+ return !!fired;
+ }
+ };
+
+ return self;
+};
+jQuery.extend({
+
+ Deferred: function( func ) {
+ var tuples = [
+ // action, add listener, listener list, final state
+ [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
+ [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
+ [ "notify", "progress", jQuery.Callbacks("memory") ]
+ ],
+ state = "pending",
+ promise = {
+ state: function() {
+ return state;
+ },
+ always: function() {
+ deferred.done( arguments ).fail( arguments );
+ return this;
+ },
+ then: function( /* fnDone, fnFail, fnProgress */ ) {
+ var fns = arguments;
+ return jQuery.Deferred(function( newDefer ) {
+ jQuery.each( tuples, function( i, tuple ) {
+ var action = tuple[ 0 ],
+ fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
+ // deferred[ done | fail | progress ] for forwarding actions to newDefer
+ deferred[ tuple[1] ](function() {
+ var returned = fn && fn.apply( this, arguments );
+ if ( returned && jQuery.isFunction( returned.promise ) ) {
+ returned.promise()
+ .done( newDefer.resolve )
+ .fail( newDefer.reject )
+ .progress( newDefer.notify );
+ } else {
+ newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
+ }
+ });
+ });
+ fns = null;
+ }).promise();
+ },
+ // Get a promise for this deferred
+ // If obj is provided, the promise aspect is added to the object
+ promise: function( obj ) {
+ return obj != null ? jQuery.extend( obj, promise ) : promise;
+ }
+ },
+ deferred = {};
+
+ // Keep pipe for back-compat
+ promise.pipe = promise.then;
+
+ // Add list-specific methods
+ jQuery.each( tuples, function( i, tuple ) {
+ var list = tuple[ 2 ],
+ stateString = tuple[ 3 ];
+
+ // promise[ done | fail | progress ] = list.add
+ promise[ tuple[1] ] = list.add;
+
+ // Handle state
+ if ( stateString ) {
+ list.add(function() {
+ // state = [ resolved | rejected ]
+ state = stateString;
+
+ // [ reject_list | resolve_list ].disable; progress_list.lock
+ }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
+ }
+
+ // deferred[ resolve | reject | notify ]
+ deferred[ tuple[0] ] = function() {
+ deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
+ return this;
+ };
+ deferred[ tuple[0] + "With" ] = list.fireWith;
+ });
+
+ // Make the deferred a promise
+ promise.promise( deferred );
+
+ // Call given func if any
+ if ( func ) {
+ func.call( deferred, deferred );
+ }
+
+ // All done!
+ return deferred;
+ },
+
+ // Deferred helper
+ when: function( subordinate /* , ..., subordinateN */ ) {
+ var i = 0,
+ resolveValues = core_slice.call( arguments ),
+ length = resolveValues.length,
+
+ // the count of uncompleted subordinates
+ remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
+
+ // the master Deferred. If resolveValues consist of only a single Deferred, just use that.
+ deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
+
+ // Update function for both resolve and progress values
+ updateFunc = function( i, contexts, values ) {
+ return function( value ) {
+ contexts[ i ] = this;
+ values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;
+ if( values === progressValues ) {
+ deferred.notifyWith( contexts, values );
+ } else if ( !( --remaining ) ) {
+ deferred.resolveWith( contexts, values );
+ }
+ };
+ },
+
+ progressValues, progressContexts, resolveContexts;
+
+ // add listeners to Deferred subordinates; treat others as resolved
+ if ( length > 1 ) {
+ progressValues = new Array( length );
+ progressContexts = new Array( length );
+ resolveContexts = new Array( length );
+ for ( ; i < length; i++ ) {
+ if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
+ resolveValues[ i ].promise()
+ .done( updateFunc( i, resolveContexts, resolveValues ) )
+ .fail( deferred.reject )
+ .progress( updateFunc( i, progressContexts, progressValues ) );
+ } else {
+ --remaining;
+ }
+ }
+ }
+
+ // if we're not waiting on anything, resolve the master
+ if ( !remaining ) {
+ deferred.resolveWith( resolveContexts, resolveValues );
+ }
+
+ return deferred.promise();
+ }
+});
+jQuery.support = (function( support ) {
+ var input = document.createElement("input"),
+ fragment = document.createDocumentFragment(),
+ div = document.createElement("div"),
+ select = document.createElement("select"),
+ opt = select.appendChild( document.createElement("option") );
+
+ // Finish early in limited environments
+ if ( !input.type ) {
+ return support;
+ }
+
+ input.type = "checkbox";
+
+ // Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
+ support.checkOn = input.value === "";
+
+ // Must access the parent to make an option select properly
+ // Support: IE9, IE10
+ support.optSelected = opt.selected;
+
+ // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
+ support.boxModel = document.compatMode === "CSS1Compat";
+
+ // Will be defined later
+ support.reliableMarginRight = true;
+ support.boxSizingReliable = true;
+ support.pixelPosition = false;
+
+ // Make sure checked status is properly cloned
+ // Support: IE9, IE10
+ input.checked = true;
+ support.noCloneChecked = input.cloneNode( true ).checked;
+
+ // Make sure that the options inside disabled selects aren't marked as disabled
+ // (WebKit marks them as disabled)
+ select.disabled = true;
+ support.optDisabled = !opt.disabled;
+
+ // Check if an input maintains its value after becoming a radio
+ // Support: IE9, IE10, Opera
+ input = document.createElement("input");
+ input.value = "t";
+ input.type = "radio";
+ support.radioValue = input.value === "t";
+
+ // #11217 - WebKit loses check when the name is after the checked attribute
+ input.setAttribute( "checked", "t" );
+ input.setAttribute( "name", "t" );
+
+ fragment.appendChild( input );
+
+ // old WebKit doesn't clone checked state correctly in fragments
+ support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+ // Support: Firefox 17+
+ // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
+ support.focusinBubbles = "onfocusin" in window;
+
+ div.style.backgroundClip = "content-box";
+ div.cloneNode( true ).style.backgroundClip = "";
+ support.clearCloneStyle = div.style.backgroundClip === "content-box";
+
+ // Run tests that need a body at doc ready
+ jQuery(function() {
+ var container, marginDiv,
+ divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",
+ body = document.getElementsByTagName("body")[ 0 ];
+
+ if ( !body ) {
+ // Return for frameset docs that don't have a body
+ return;
+ }
+
+ container = document.createElement("div");
+ container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";
+
+ // Check box-sizing and margin behavior
+ body.appendChild( container ).appendChild( div );
+ div.innerHTML = "";
+ div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";
+
+ support.boxSizing = div.offsetWidth === 4;
+ support.doesNotIncludeMarginInBodyOffset = body.offsetTop !== 1;
+
+ // Use window.getComputedStyle because jsdom on node.js will break without it.
+ if ( window.getComputedStyle ) {
+ support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
+ support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
+
+ // Check if div with explicit width and no margin-right incorrectly
+ // gets computed margin-right based on width of container. (#3333)
+ // Fails in WebKit before Feb 2011 nightlies
+ // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+ marginDiv = div.appendChild( document.createElement("div") );
+ marginDiv.style.cssText = div.style.cssText = divReset;
+ marginDiv.style.marginRight = marginDiv.style.width = "0";
+ div.style.width = "1px";
+
+ support.reliableMarginRight =
+ !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
+ }
+
+ body.removeChild( container );
+ });
+
+ return support;
+})( {} );
+
+/*
+ Implementation Summary
+
+ 1. Enforce API surface and semantic compatibility with 1.9.x branch
+ 2. Improve the module's maintainability by reducing the storage
+ paths to a single mechanism.
+ 3. Use the same single mechanism to support "private" and "user" data.
+ 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
+ 5. Avoid exposing implementation details on user objects (eg. expando properties)
+ 6. Provide a clear path for implementation upgrade to WeakMap in 2014
+*/
+var data_user, data_priv,
+ rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
+ rmultiDash = /([A-Z])/g;
+
+function Data() {
+ this.cache = {};
+ this.expando = jQuery.expando + Math.random();
+}
+
+Data.uid = 1;
+
+Data.prototype = {
+ key: function( owner ) {
+ var descriptor = {},
+ // Check if the owner object already has a cache key
+ unlock = owner[ this.expando ];
+
+ // If not, create one
+ if ( !unlock ) {
+ unlock = Data.uid++;
+ descriptor[ this.expando ] = { value: unlock };
+
+ // Secure it in a non-enumerable, non-writable property
+ try {
+ Object.defineProperties( owner, descriptor );
+
+ // Support: Android<4
+ // Fallback to a less secure definition
+ } catch ( e ) {
+ descriptor[ this.expando ] = unlock;
+ jQuery.extend( owner, descriptor );
+ }
+ }
+
+ // Ensure the cache object
+ if ( !this.cache[ unlock ] ) {
+ this.cache[ unlock ] = {};
+ }
+
+ return unlock;
+ },
+ set: function( owner, data, value ) {
+ var prop,
+ // There may be an unlock assigned to this node,
+ // if there is no entry for this "owner", create one inline
+ // and set the unlock as though an owner entry had always existed
+ unlock = this.key( owner ),
+ cache = this.cache[ unlock ];
+
+ // Handle: [ owner, key, value ] args
+ if ( typeof data === "string" ) {
+ cache[ data ] = value;
+
+ // Handle: [ owner, { properties } ] args
+ } else {
+ // Support an expectation from the old data system where plain
+ // objects used to initialize would be set to the cache by
+ // reference, instead of having properties and values copied.
+ // Note, this will kill the connection between
+ // "this.cache[ unlock ]" and "cache"
+ if ( jQuery.isEmptyObject( cache ) ) {
+ this.cache[ unlock ] = data;
+ // Otherwise, copy the properties one-by-one to the cache object
+ } else {
+ for ( prop in data ) {
+ cache[ prop ] = data[ prop ];
+ }
+ }
+ }
+
+ return this;
+ },
+ get: function( owner, key ) {
+ // Either a valid cache is found, or will be created.
+ // New caches will be created and the unlock returned,
+ // allowing direct access to the newly created
+ // empty data object.
+ var cache = this.cache[ this.key( owner ) ];
+
+ return key === undefined ?
+ cache : cache[ key ];
+ },
+ access: function( owner, key, value ) {
+ // In cases where either:
+ //
+ // 1. No key was specified
+ // 2. A string key was specified, but no value provided
+ //
+ // Take the "read" path and allow the get method to determine
+ // which value to return, respectively either:
+ //
+ // 1. The entire cache object
+ // 2. The data stored at the key
+ //
+ if ( key === undefined ||
+ ((key && typeof key === "string") && value === undefined) ) {
+ return this.get( owner, key );
+ }
+
+ // [*]When the key is not a string, or both a key and value
+ // are specified, set or extend (existing objects) with either:
+ //
+ // 1. An object of properties
+ // 2. A key and value
+ //
+ this.set( owner, key, value );
+
+ // Since the "set" path can have two possible entry points
+ // return the expected data based on which path was taken[*]
+ return value !== undefined ? value : key;
+ },
+ remove: function( owner, key ) {
+ var i, name,
+ unlock = this.key( owner ),
+ cache = this.cache[ unlock ];
+
+ if ( key === undefined ) {
+ this.cache[ unlock ] = {};
+ } else {
+ // Support array or space separated string of keys
+ if ( jQuery.isArray( key ) ) {
+ // If "name" is an array of keys...
+ // When data is initially created, via ("key", "val") signature,
+ // keys will be converted to camelCase.
+ // Since there is no way to tell _how_ a key was added, remove
+ // both plain key and camelCase key. #12786
+ // This will only penalize the array argument path.
+ name = key.concat( key.map( jQuery.camelCase ) );
+ } else {
+ // Try the string as a key before any manipulation
+ if ( key in cache ) {
+ name = [ key ];
+ } else {
+ // If a key with the spaces exists, use it.
+ // Otherwise, create an array by matching non-whitespace
+ name = jQuery.camelCase( key );
+ name = name in cache ?
+ [ name ] : ( name.match( core_rnotwhite ) || [] );
+ }
+ }
+
+ i = name.length;
+ while ( i-- ) {
+ delete cache[ name[i] ];
+ }
+ }
+ },
+ hasData: function( owner ) {
+ return !jQuery.isEmptyObject(
+ this.cache[ this.key( owner ) ]
+ );
+ },
+ discard: function( owner ) {
+ delete this.cache[ this.key( owner ) ];
+ }
+};
+
+// This will be used by remove()/cleanData() in manipulation to sever
+// remaining references to node objects. One day we'll replace the dual
+// arrays with a WeakMap and this won't be an issue.
+// (Splices the data objects out of the internal cache arrays)
+function data_discard( owner ) {
+ data_user.discard( owner );
+ data_priv.discard( owner );
+}
+
+// These may be used throughout the jQuery core codebase
+data_user = new Data();
+data_priv = new Data();
+
+
+jQuery.extend({
+ // This is no longer relevant to jQuery core, but must remain
+ // supported for the sake of jQuery 1.9.x API surface compatibility.
+ acceptData: function() {
+ return true;
+ },
+
+ hasData: function( elem ) {
+ return data_user.hasData( elem ) || data_priv.hasData( elem );
+ },
+
+ data: function( elem, name, data ) {
+ return data_user.access( elem, name, data );
+ },
+
+ removeData: function( elem, name ) {
+ return data_user.remove( elem, name );
+ },
+
+ // TODO: Replace all calls to _data and _removeData with direct
+ // calls to
+ //
+ // data_priv.access( elem, name, data );
+ //
+ // data_priv.remove( elem, name );
+ //
+ _data: function( elem, name, data ) {
+ return data_priv.access( elem, name, data );
+ },
+
+ _removeData: function( elem, name ) {
+ return data_priv.remove( elem, name );
+ }
+});
+
+jQuery.fn.extend({
+ data: function( key, value ) {
+ var attrs, name,
+ elem = this[0],
+ i = 0,
+ data = null;
+
+ // Gets all values
+ if ( key === undefined ) {
+ if ( this.length ) {
+ data = data_user.get( elem );
+
+ if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) {
+ attrs = elem.attributes;
+ for ( ; i < attrs.length; i++ ) {
+ name = attrs[i].name;
+
+ if ( name.indexOf( "data-" ) === 0 ) {
+ name = jQuery.camelCase( name.substring(5) );
+ dataAttr( elem, name, data[ name ] );
+ }
+ }
+ data_priv.set( elem, "hasDataAttrs", true );
+ }
+ }
+
+ return data;
+ }
+
+ // Sets multiple values
+ if ( typeof key === "object" ) {
+ return this.each(function() {
+ data_user.set( this, key );
+ });
+ }
+
+ return jQuery.access( this, function( value ) {
+ var data,
+ camelKey = jQuery.camelCase( key );
+
+ // Get the Data...
+ if ( value === undefined ) {
+
+ // Attempt to get data from the cache
+ // with the key as-is
+ data = data_user.get( elem, key );
+ if ( data !== undefined ) {
+ return data;
+ }
+ // Attempt to "discover" the data in
+ // HTML5 custom data-* attrs
+ data = dataAttr( elem, key, undefined );
+ if ( data !== undefined ) {
+ return data;
+ }
+
+ // As a last resort, attempt to find
+ // the data by checking AGAIN, but with
+ // a camelCased key.
+ data = data_user.get( elem, camelKey );
+ if ( data !== undefined ) {
+ return data;
+ }
+
+ // We tried really hard, but the data doesn't exist.
+ return undefined;
+ }
+
+ // Set the data...
+ this.each(function() {
+ // First, attempt to store a copy or reference of any
+ // data that might've been store with a camelCased key.
+ var data = data_user.get( this, camelKey );
+
+ // For HTML5 data-* attribute interop, we have to
+ // store property names with dashes in a camelCase form.
+ // This might not apply to all properties...*
+ data_user.set( this, camelKey, value );
+
+ // *... In the case of properties that might ACTUALLY
+ // have dashes, we need to also store a copy of that
+ // unchanged property.
+ if ( /-/.test( key ) && data !== undefined ) {
+ data_user.set( this, key, value );
+ }
+ });
+ }, null, value, arguments.length > 1, null, true );
+ },
+
+ removeData: function( key ) {
+ return this.each(function() {
+ data_user.remove( this, key );
+ });
+ }
+});
+
+function dataAttr( elem, key, data ) {
+ var name;
+
+ // If nothing was found internally, try to fetch any
+ // data from the HTML5 data-* attribute
+ if ( data === undefined && elem.nodeType === 1 ) {
+
+ name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
+ data = elem.getAttribute( name );
+
+ if ( typeof data === "string" ) {
+ try {
+ data = data === "true" ? true :
+ data === "false" ? false :
+ data === "null" ? null :
+ // Only convert to a number if it doesn't change the string
+ +data + "" === data ? +data :
+ rbrace.test( data ) ?
+ JSON.parse( data ) : data;
+ } catch( e ) {}
+
+ // Make sure we set the data so it isn't changed later
+ data_user.set( elem, key, data );
+ } else {
+ data = undefined;
+ }
+ }
+ return data;
+}
+jQuery.extend({
+ queue: function( elem, type, data ) {
+ var queue;
+
+ if ( elem ) {
+ type = ( type || "fx" ) + "queue";
+ queue = jQuery._data( elem, type );
+
+ // Speed up dequeue by getting out quickly if this is just a lookup
+ if ( data ) {
+ if ( !queue || jQuery.isArray(data) ) {
+ queue = jQuery._data( elem, type, jQuery.makeArray(data) );
+ } else {
+ queue.push( data );
+ }
+ }
+ return queue || [];
+ }
+ },
+
+ dequeue: function( elem, type ) {
+ type = type || "fx";
+
+ var queue = jQuery.queue( elem, type ),
+ startLength = queue.length,
+ fn = queue.shift(),
+ hooks = jQuery._queueHooks( elem, type ),
+ next = function() {
+ jQuery.dequeue( elem, type );
+ };
+
+ // If the fx queue is dequeued, always remove the progress sentinel
+ if ( fn === "inprogress" ) {
+ fn = queue.shift();
+ startLength--;
+ }
+
+ hooks.cur = fn;
+ if ( fn ) {
+
+ // Add a progress sentinel to prevent the fx queue from being
+ // automatically dequeued
+ if ( type === "fx" ) {
+ queue.unshift( "inprogress" );
+ }
+
+ // clear up the last queue stop function
+ delete hooks.stop;
+ fn.call( elem, next, hooks );
+ }
+
+ if ( !startLength && hooks ) {
+ hooks.empty.fire();
+ }
+ },
+
+ // not intended for public consumption - generates a queueHooks object, or returns the current one
+ _queueHooks: function( elem, type ) {
+ var key = type + "queueHooks";
+ return jQuery._data( elem, key ) || jQuery._data( elem, key, {
+ empty: jQuery.Callbacks("once memory").add(function() {
+ jQuery._removeData( elem, type + "queue" );
+ jQuery._removeData( elem, key );
+ })
+ });
+ }
+});
+
+jQuery.fn.extend({
+ queue: function( type, data ) {
+ var setter = 2;
+
+ if ( typeof type !== "string" ) {
+ data = type;
+ type = "fx";
+ setter--;
+ }
+
+ if ( arguments.length < setter ) {
+ return jQuery.queue( this[0], type );
+ }
+
+ return data === undefined ?
+ this :
+ this.each(function() {
+ var queue = jQuery.queue( this, type, data );
+
+ // ensure a hooks for this queue
+ jQuery._queueHooks( this, type );
+
+ if ( type === "fx" && queue[0] !== "inprogress" ) {
+ jQuery.dequeue( this, type );
+ }
+ });
+ },
+ dequeue: function( type ) {
+ return this.each(function() {
+ jQuery.dequeue( this, type );
+ });
+ },
+ // Based off of the plugin by Clint Helfers, with permission.
+ // http://blindsignals.com/index.php/2009/07/jquery-delay/
+ delay: function( time, type ) {
+ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+ type = type || "fx";
+
+ return this.queue( type, function( next, hooks ) {
+ var timeout = setTimeout( next, time );
+ hooks.stop = function() {
+ clearTimeout( timeout );
+ };
+ });
+ },
+ clearQueue: function( type ) {
+ return this.queue( type || "fx", [] );
+ },
+ // Get a promise resolved when queues of a certain type
+ // are emptied (fx is the type by default)
+ promise: function( type, obj ) {
+ var tmp,
+ count = 1,
+ defer = jQuery.Deferred(),
+ elements = this,
+ i = this.length,
+ resolve = function() {
+ if ( !( --count ) ) {
+ defer.resolveWith( elements, [ elements ] );
+ }
+ };
+
+ if ( typeof type !== "string" ) {
+ obj = type;
+ type = undefined;
+ }
+ type = type || "fx";
+
+ while( i-- ) {
+ tmp = jQuery._data( elements[ i ], type + "queueHooks" );
+ if ( tmp && tmp.empty ) {
+ count++;
+ tmp.empty.add( resolve );
+ }
+ }
+ resolve();
+ return defer.promise( obj );
+ }
+});
+var nodeHook, boolHook,
+ rclass = /[\t\r\n]/g,
+ rreturn = /\r/g,
+ rfocusable = /^(?:input|select|textarea|button|object)$/i,
+ rclickable = /^(?:a|area)$/i,
+ rboolean = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i;
+
+jQuery.fn.extend({
+ attr: function( name, value ) {
+ return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
+ },
+
+ removeAttr: function( name ) {
+ return this.each(function() {
+ jQuery.removeAttr( this, name );
+ });
+ },
+
+ prop: function( name, value ) {
+ return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
+ },
+
+ removeProp: function( name ) {
+ name = jQuery.propFix[ name ] || name;
+ return this.each(function() {
+ // try/catch handles cases where IE balks (such as removing a property on window)
+ try {
+ this[ name ] = undefined;
+ delete this[ name ];
+ } catch( e ) {}
+ });
+ },
+
+ addClass: function( value ) {
+ var classes, elem, cur, clazz, j,
+ i = 0,
+ len = this.length,
+ proceed = typeof value === "string" && value;
+
+ if ( jQuery.isFunction( value ) ) {
+ return this.each(function( j ) {
+ jQuery( this ).addClass( value.call( this, j, this.className ) );
+ });
+ }
+
+ if ( proceed ) {
+ // The disjunction here is for better compressibility (see removeClass)
+ classes = ( value || "" ).match( core_rnotwhite ) || [];
+
+ for ( ; i < len; i++ ) {
+ elem = this[ i ];
+ cur = elem.nodeType === 1 && ( elem.className ?
+ ( " " + elem.className + " " ).replace( rclass, " " ) :
+ " "
+ );
+
+ if ( cur ) {
+ j = 0;
+ while ( (clazz = classes[j++]) ) {
+ if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
+ cur += clazz + " ";
+ }
+ }
+ elem.className = jQuery.trim( cur );
+
+ }
+ }
+ }
+
+ return this;
+ },
+
+ removeClass: function( value ) {
+ var classes, elem, cur, clazz, j,
+ i = 0,
+ len = this.length,
+ proceed = arguments.length === 0 || typeof value === "string" && value;
+
+ if ( jQuery.isFunction( value ) ) {
+ return this.each(function( j ) {
+ jQuery( this ).removeClass( value.call( this, j, this.className ) );
+ });
+ }
+ if ( proceed ) {
+ classes = ( value || "" ).match( core_rnotwhite ) || [];
+
+ for ( ; i < len; i++ ) {
+ elem = this[ i ];
+ // This expression is here for better compressibility (see addClass)
+ cur = elem.nodeType === 1 && ( elem.className ?
+ ( " " + elem.className + " " ).replace( rclass, " " ) :
+ ""
+ );
+
+ if ( cur ) {
+ j = 0;
+ while ( (clazz = classes[j++]) ) {
+ // Remove *all* instances
+ while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
+ cur = cur.replace( " " + clazz + " ", " " );
+ }
+ }
+ elem.className = value ? jQuery.trim( cur ) : "";
+ }
+ }
+ }
+
+ return this;
+ },
+
+ toggleClass: function( value, stateVal ) {
+ var type = typeof value,
+ isBool = typeof stateVal === "boolean";
+
+ if ( jQuery.isFunction( value ) ) {
+ return this.each(function( i ) {
+ jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
+ });
+ }
+
+ return this.each(function() {
+ if ( type === "string" ) {
+ // toggle individual class names
+ var className,
+ i = 0,
+ self = jQuery( this ),
+ state = stateVal,
+ classNames = value.match( core_rnotwhite ) || [];
+
+ while ( (className = classNames[ i++ ]) ) {
+ // check each className given, space separated list
+ state = isBool ? state : !self.hasClass( className );
+ self[ state ? "addClass" : "removeClass" ]( className );
+ }
+
+ // Toggle whole class name
+ } else if ( type === core_strundefined || type === "boolean" ) {
+ if ( this.className ) {
+ // store className if set
+ jQuery._data( this, "__className__", this.className );
+ }
+
+ // If the element has a class name or if we're passed "false",
+ // then remove the whole classname (if there was one, the above saved it).
+ // Otherwise bring back whatever was previously saved (if anything),
+ // falling back to the empty string if nothing was stored.
+ this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
+ }
+ });
+ },
+
+ hasClass: function( selector ) {
+ var className = " " + selector + " ",
+ i = 0,
+ l = this.length;
+ for ( ; i < l; i++ ) {
+ if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
+ return true;
+ }
+ }
+
+ return false;
+ },
+
+ val: function( value ) {
+ var hooks, ret, isFunction,
+ elem = this[0];
+
+ if ( !arguments.length ) {
+ if ( elem ) {
+ hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
+
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
+ return ret;
+ }
+
+ ret = elem.value;
+
+ return typeof ret === "string" ?
+ // handle most common string cases
+ ret.replace(rreturn, "") :
+ // handle cases where value is null/undef or number
+ ret == null ? "" : ret;
+ }
+
+ return;
+ }
+
+ isFunction = jQuery.isFunction( value );
+
+ return this.each(function( i ) {
+ var val,
+ self = jQuery(this);
+
+ if ( this.nodeType !== 1 ) {
+ return;
+ }
+
+ if ( isFunction ) {
+ val = value.call( this, i, self.val() );
+ } else {
+ val = value;
+ }
+
+ // Treat null/undefined as ""; convert numbers to string
+ if ( val == null ) {
+ val = "";
+ } else if ( typeof val === "number" ) {
+ val += "";
+ } else if ( jQuery.isArray( val ) ) {
+ val = jQuery.map(val, function ( value ) {
+ return value == null ? "" : value + "";
+ });
+ }
+
+ hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
+
+ // If set returns undefined, fall back to normal setting
+ if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
+ this.value = val;
+ }
+ });
+ }
+});
+
+jQuery.extend({
+ valHooks: {
+ option: {
+ get: function( elem ) {
+ // attributes.value is undefined in Blackberry 4.7 but
+ // uses .value. See #6932
+ var val = elem.attributes.value;
+ return !val || val.specified ? elem.value : elem.text;
+ }
+ },
+ select: {
+ get: function( elem ) {
+ var value, option,
+ options = elem.options,
+ index = elem.selectedIndex,
+ one = elem.type === "select-one" || index < 0,
+ values = one ? null : [],
+ max = one ? index + 1 : options.length,
+ i = index < 0 ?
+ max :
+ one ? index : 0;
+
+ // Loop through all the selected options
+ for ( ; i < max; i++ ) {
+ option = options[ i ];
+
+ // oldIE doesn't update selected after form reset (#2551)
+ if ( ( option.selected || i === index ) &&
+ // Don't return options that are disabled or in a disabled optgroup
+ ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
+ ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
+
+ // Get the specific value for the option
+ value = jQuery( option ).val();
+
+ // We don't need an array for one selects
+ if ( one ) {
+ return value;
+ }
+
+ // Multi-Selects return an array
+ values.push( value );
+ }
+ }
+
+ return values;
+ },
+
+ set: function( elem, value ) {
+ var values = jQuery.makeArray( value );
+
+ jQuery(elem).find("option").each(function() {
+ this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+ });
+
+ if ( !values.length ) {
+ elem.selectedIndex = -1;
+ }
+ return values;
+ }
+ }
+ },
+
+ attr: function( elem, name, value ) {
+ var ret, hooks, notxml,
+ nType = elem.nodeType;
+
+ // don't get/set attributes on text, comment and attribute nodes
+ if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+ return;
+ }
+
+ // Fallback to prop when attributes are not supported
+ if ( typeof elem.getAttribute === core_strundefined ) {
+ return jQuery.prop( elem, name, value );
+ }
+
+ notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+ // All attributes are lowercase
+ // Grab necessary hook if one is defined
+ if ( notxml ) {
+ name = name.toLowerCase();
+ hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
+ }
+
+ if ( value !== undefined ) {
+
+ if ( value === null ) {
+ jQuery.removeAttr( elem, name );
+
+ } else if ( hooks && notxml && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
+ return ret;
+
+ } else {
+ elem.setAttribute( name, value + "" );
+ return value;
+ }
+
+ } else if ( hooks && notxml && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
+ return ret;
+
+ } else {
+
+ // In IE9+, Flash objects don't have .getAttribute (#12945)
+ // Support: IE9+
+ if ( typeof elem.getAttribute !== core_strundefined ) {
+ ret = elem.getAttribute( name );
+ }
+
+ // Non-existent attributes return null, we normalize to undefined
+ return ret == null ?
+ undefined :
+ ret;
+ }
+ },
+
+ removeAttr: function( elem, value ) {
+ var name, propName,
+ i = 0,
+ attrNames = value && value.match( core_rnotwhite );
+
+ if ( attrNames && elem.nodeType === 1 ) {
+ while ( (name = attrNames[i++]) ) {
+ propName = jQuery.propFix[ name ] || name;
+
+ // Boolean attributes get special treatment (#10870)
+ // Set corresponding property to false for boolean attributes
+ if ( rboolean.test( name ) ) {
+ elem[ propName ] = false;
+ }
+
+ elem.removeAttribute( name );
+ }
+ }
+ },
+
+ attrHooks: {
+ type: {
+ set: function( elem, value ) {
+ if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
+ // Setting the type on a radio button after the value resets the value in IE6-9
+ // Reset value to default in case type is set after value during creation
+ var val = elem.value;
+ elem.setAttribute( "type", value );
+ if ( val ) {
+ elem.value = val;
+ }
+ return value;
+ }
+ }
+ }
+ },
+
+ propFix: {
+ tabindex: "tabIndex",
+ readonly: "readOnly",
+ "for": "htmlFor",
+ "class": "className",
+ maxlength: "maxLength",
+ cellspacing: "cellSpacing",
+ cellpadding: "cellPadding",
+ rowspan: "rowSpan",
+ colspan: "colSpan",
+ usemap: "useMap",
+ frameborder: "frameBorder",
+ contenteditable: "contentEditable"
+ },
+
+ prop: function( elem, name, value ) {
+ var ret, hooks, notxml,
+ nType = elem.nodeType;
+
+ // don't get/set properties on text, comment and attribute nodes
+ if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+ return;
+ }
+
+ notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+ if ( notxml ) {
+ // Fix name and attach hooks
+ name = jQuery.propFix[ name ] || name;
+ hooks = jQuery.propHooks[ name ];
+ }
+
+ if ( value !== undefined ) {
+ if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
+ return ret;
+
+ } else {
+ return ( elem[ name ] = value );
+ }
+
+ } else {
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
+ return ret;
+
+ } else {
+ return elem[ name ];
+ }
+ }
+ },
+
+ propHooks: {
+ tabIndex: {
+ get: function( elem ) {
+ // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+ var attributeNode = elem.getAttributeNode("tabindex");
+
+ return attributeNode && attributeNode.specified ?
+ parseInt( attributeNode.value, 10 ) :
+ rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+ 0 :
+ undefined;
+ }
+ }
+ }
+});
+
+// Hook for boolean attributes
+boolHook = {
+ get: function( elem, name ) {
+ return elem.getAttribute( name ) !== null ?
+ name.toLowerCase() :
+ undefined;
+ },
+ set: function( elem, value, name ) {
+ if ( value === false ) {
+ // Remove boolean attributes when set to false
+ jQuery.removeAttr( elem, name );
+ } else {
+ elem.setAttribute( name, name );
+ }
+ return name;
+ }
+};
+
+// Radios and checkboxes getter/setter
+if ( !jQuery.support.checkOn ) {
+ jQuery.each([ "radio", "checkbox" ], function() {
+ jQuery.valHooks[ this ] = {
+ get: function( elem ) {
+ // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+ return elem.getAttribute("value") === null ? "on" : elem.value;
+ }
+ };
+ });
+}
+jQuery.each([ "radio", "checkbox" ], function() {
+ jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
+ set: function( elem, value ) {
+ if ( jQuery.isArray( value ) ) {
+ return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
+ }
+ }
+ });
+});
+
+// IE9/10 do not see a selected option inside an optgroup unless you access it
+// Support: IE9, IE10
+if ( !jQuery.support.optSelected ) {
+ jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
+ get: function( elem ) {
+ var parent = elem.parentNode;
+ if ( parent && parent.parentNode ) {
+ parent.parentNode.selectedIndex;
+ }
+ return null;
+ }
+ });
+}
+var rkeyEvent = /^key/,
+ rmouseEvent = /^(?:mouse|contextmenu)|click/,
+ rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
+ rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
+
+function returnTrue() {
+ return true;
+}
+
+function returnFalse() {
+ return false;
+}
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+ global: {},
+
+ add: function( elem, types, handler, data, selector ) {
+
+ var handleObjIn, eventHandle, tmp,
+ events, t, handleObj,
+ special, handlers, type, namespaces, origType,
+ elemData = data_priv.get( elem );
+
+ // Don't attach events to noData or text/comment nodes (but allow plain objects)
+ if ( !elemData ) {
+ return;
+ }
+
+ // Caller can pass in an object of custom data in lieu of the handler
+ if ( handler.handler ) {
+ handleObjIn = handler;
+ handler = handleObjIn.handler;
+ selector = handleObjIn.selector;
+ }
+
+ // Make sure that the handler has a unique ID, used to find/remove it later
+ if ( !handler.guid ) {
+ handler.guid = jQuery.guid++;
+ }
+
+ // Init the element's event structure and main handler, if this is the first
+ if ( !(events = elemData.events) ) {
+ events = elemData.events = {};
+ }
+ if ( !(eventHandle = elemData.handle) ) {
+ eventHandle = elemData.handle = function( e ) {
+ // Discard the second event of a jQuery.event.trigger() and
+ // when an event is called after a page has unloaded
+ return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ?
+ jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
+ undefined;
+ };
+ // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
+ eventHandle.elem = elem;
+ }
+
+ // Handle multiple events separated by a space
+ types = ( types || "" ).match( core_rnotwhite ) || [""];
+ t = types.length;
+ while ( t-- ) {
+ tmp = rtypenamespace.exec( types[t] ) || [];
+ type = origType = tmp[1];
+ namespaces = ( tmp[2] || "" ).split( "." ).sort();
+
+ // There *must* be a type, no attaching namespace-only handlers
+ if ( !type ) {
+ continue;
+ }
+
+ // If event changes its type, use the special event handlers for the changed type
+ special = jQuery.event.special[ type ] || {};
+
+ // If selector defined, determine special event api type, otherwise given type
+ type = ( selector ? special.delegateType : special.bindType ) || type;
+
+ // Update special based on newly reset type
+ special = jQuery.event.special[ type ] || {};
+
+ // handleObj is passed to all event handlers
+ handleObj = jQuery.extend({
+ type: type,
+ origType: origType,
+ data: data,
+ handler: handler,
+ guid: handler.guid,
+ selector: selector,
+ needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
+ namespace: namespaces.join(".")
+ }, handleObjIn );
+
+ // Init the event handler queue if we're the first
+ if ( !(handlers = events[ type ]) ) {
+ handlers = events[ type ] = [];
+ handlers.delegateCount = 0;
+
+ // Only use addEventListener if the special events handler returns false
+ if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+ if ( elem.addEventListener ) {
+ elem.addEventListener( type, eventHandle, false );
+ }
+ }
+ }
+
+ if ( special.add ) {
+ special.add.call( elem, handleObj );
+
+ if ( !handleObj.handler.guid ) {
+ handleObj.handler.guid = handler.guid;
+ }
+ }
+
+ // Add to the element's handler list, delegates in front
+ if ( selector ) {
+ handlers.splice( handlers.delegateCount++, 0, handleObj );
+ } else {
+ handlers.push( handleObj );
+ }
+
+ // Keep track of which events have ever been used, for event optimization
+ jQuery.event.global[ type ] = true;
+ }
+
+ // Nullify elem to prevent memory leaks in IE
+ elem = null;
+ },
+
+ // Detach an event or set of events from an element
+ remove: function( elem, types, handler, selector, mappedTypes ) {
+
+ var j, origCount, tmp,
+ events, t, handleObj,
+ special, handlers, type, namespaces, origType,
+ elemData = data_priv.hasData( elem ) && data_priv.get( elem );
+
+ if ( !elemData || !(events = elemData.events) ) {
+ return;
+ }
+
+ // Once for each type.namespace in types; type may be omitted
+ types = ( types || "" ).match( core_rnotwhite ) || [""];
+ t = types.length;
+ while ( t-- ) {
+ tmp = rtypenamespace.exec( types[t] ) || [];
+ type = origType = tmp[1];
+ namespaces = ( tmp[2] || "" ).split( "." ).sort();
+
+ // Unbind all events (on this namespace, if provided) for the element
+ if ( !type ) {
+ for ( type in events ) {
+ jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
+ }
+ continue;
+ }
+
+ special = jQuery.event.special[ type ] || {};
+ type = ( selector ? special.delegateType : special.bindType ) || type;
+ handlers = events[ type ] || [];
+ tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );
+
+ // Remove matching events
+ origCount = j = handlers.length;
+ while ( j-- ) {
+ handleObj = handlers[ j ];
+
+ if ( ( mappedTypes || origType === handleObj.origType ) &&
+ ( !handler || handler.guid === handleObj.guid ) &&
+ ( !tmp || tmp.test( handleObj.namespace ) ) &&
+ ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
+ handlers.splice( j, 1 );
+
+ if ( handleObj.selector ) {
+ handlers.delegateCount--;
+ }
+ if ( special.remove ) {
+ special.remove.call( elem, handleObj );
+ }
+ }
+ }
+
+ // Remove generic event handler if we removed something and no more handlers exist
+ // (avoids potential for endless recursion during removal of special event handlers)
+ if ( origCount && !handlers.length ) {
+ if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
+ jQuery.removeEvent( elem, type, elemData.handle );
+ }
+
+ delete events[ type ];
+ }
+ }
+
+ // Remove the expando if it's no longer used
+ if ( jQuery.isEmptyObject( events ) ) {
+ delete elemData.handle;
+
+ // removeData also checks for emptiness and clears the expando if empty
+ // so use it instead of delete
+ jQuery._removeData( elem, "events" );
+ }
+ },
+
+ trigger: function( event, data, elem, onlyHandlers ) {
+
+ var i, cur, tmp, bubbleType, ontype, handle, special,
+ eventPath = [ elem || document ],
+ type = core_hasOwn.call( event, "type" ) ? event.type : event,
+ namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];
+
+ cur = tmp = elem = elem || document;
+
+ // Don't do events on text and comment nodes
+ if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+ return;
+ }
+
+ // focus/blur morphs to focusin/out; ensure we're not firing them right now
+ if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
+ return;
+ }
+
+ if ( type.indexOf(".") >= 0 ) {
+ // Namespaced trigger; create a regexp to match event type in handle()
+ namespaces = type.split(".");
+ type = namespaces.shift();
+ namespaces.sort();
+ }
+ ontype = type.indexOf(":") < 0 && "on" + type;
+
+ // Caller can pass in a jQuery.Event object, Object, or just an event type string
+ event = event[ jQuery.expando ] ?
+ event :
+ new jQuery.Event( type, typeof event === "object" && event );
+
+ // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
+ event.isTrigger = onlyHandlers ? 2 : 3;
+ event.namespace = namespaces.join(".");
+ event.namespace_re = event.namespace ?
+ new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
+ null;
+
+ // Clean up the event in case it is being reused
+ event.result = undefined;
+ if ( !event.target ) {
+ event.target = elem;
+ }
+
+ // Clone any incoming data and prepend the event, creating the handler arg list
+ data = data == null ?
+ [ event ] :
+ jQuery.makeArray( data, [ event ] );
+
+ // Allow special events to draw outside the lines
+ special = jQuery.event.special[ type ] || {};
+ if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
+ return;
+ }
+
+ // Determine event propagation path in advance, per W3C events spec (#9951)
+ // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
+ if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
+
+ bubbleType = special.delegateType || type;
+ if ( !rfocusMorph.test( bubbleType + type ) ) {
+ cur = cur.parentNode;
+ }
+ for ( ; cur; cur = cur.parentNode ) {
+ eventPath.push( cur );
+ tmp = cur;
+ }
+
+ // Only add window if we got to document (e.g., not plain obj or detached DOM)
+ if ( tmp === (elem.ownerDocument || document) ) {
+ eventPath.push( tmp.defaultView || tmp.parentWindow || window );
+ }
+ }
+
+ // Fire handlers on the event path
+ i = 0;
+ while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {
+
+ event.type = i > 1 ?
+ bubbleType :
+ special.bindType || type;
+
+ // jQuery handler
+ handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
+ if ( handle ) {
+ handle.apply( cur, data );
+ }
+
+ // Native handler
+ handle = ontype && cur[ ontype ];
+ if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) {
+ event.preventDefault();
+ }
+ }
+ event.type = type;
+
+ // If nobody prevented the default action, do it now
+ if ( !onlyHandlers && !event.isDefaultPrevented() ) {
+
+ if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
+ !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
+
+ // Call a native DOM method on the target with the same name name as the event.
+ // Don't do default actions on window, that's where global variables be (#6170)
+ if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
+
+ // Don't re-trigger an onFOO event when we call its FOO() method
+ tmp = elem[ ontype ];
+
+ if ( tmp ) {
+ elem[ ontype ] = null;
+ }
+
+ // Prevent re-triggering of the same event, since we already bubbled it above
+ jQuery.event.triggered = type;
+ elem[ type ]();
+ jQuery.event.triggered = undefined;
+
+ if ( tmp ) {
+ elem[ ontype ] = tmp;
+ }
+ }
+ }
+ }
+
+ return event.result;
+ },
+
+ dispatch: function( event ) {
+
+ // Make a writable jQuery.Event from the native event object
+ event = jQuery.event.fix( event );
+
+ var i, j, ret, matched, handleObj,
+ handlerQueue = [],
+ args = core_slice.call( arguments ),
+ handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
+ special = jQuery.event.special[ event.type ] || {};
+
+ // Use the fix-ed jQuery.Event rather than the (read-only) native event
+ args[0] = event;
+ event.delegateTarget = this;
+
+ // Call the preDispatch hook for the mapped type, and let it bail if desired
+ if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
+ return;
+ }
+
+ // Determine handlers
+ handlerQueue = jQuery.event.handlers.call( this, event, handlers );
+
+ // Run delegates first; they may want to stop propagation beneath us
+ i = 0;
+ while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {
+ event.currentTarget = matched.elem;
+
+ j = 0;
+ while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {
+
+ // Triggered event must either 1) have no namespace, or
+ // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
+ if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {
+
+ event.handleObj = handleObj;
+ event.data = handleObj.data;
+
+ ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
+ .apply( matched.elem, args );
+
+ if ( ret !== undefined ) {
+ if ( (event.result = ret) === false ) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ }
+ }
+ }
+ }
+
+ // Call the postDispatch hook for the mapped type
+ if ( special.postDispatch ) {
+ special.postDispatch.call( this, event );
+ }
+
+ return event.result;
+ },
+
+ handlers: function( event, handlers ) {
+ var i, matches, sel, handleObj,
+ handlerQueue = [],
+ delegateCount = handlers.delegateCount,
+ cur = event.target;
+
+ // Find delegate handlers
+ // Black-hole SVG instance trees (#13180)
+ // Avoid non-left-click bubbling in Firefox (#3861)
+ if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
+
+ for ( ; cur != this; cur = cur.parentNode || this ) {
+
+ // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
+ if ( cur.disabled !== true || event.type !== "click" ) {
+ matches = [];
+ for ( i = 0; i < delegateCount; i++ ) {
+ handleObj = handlers[ i ];
+
+ // Don't conflict with Object.prototype properties (#13203)
+ sel = handleObj.selector + " ";
+
+ if ( matches[ sel ] === undefined ) {
+ matches[ sel ] = handleObj.needsContext ?
+ jQuery( sel, this ).index( cur ) >= 0 :
+ jQuery.find( sel, this, null, [ cur ] ).length;
+ }
+ if ( matches[ sel ] ) {
+ matches.push( handleObj );
+ }
+ }
+ if ( matches.length ) {
+ handlerQueue.push({ elem: cur, handlers: matches });
+ }
+ }
+ }
+ }
+
+ // Add the remaining (directly-bound) handlers
+ if ( delegateCount < handlers.length ) {
+ handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });
+ }
+
+ return handlerQueue;
+ },
+
+ // Includes some event props shared by KeyEvent and MouseEvent
+ props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
+
+ fixHooks: {},
+
+ keyHooks: {
+ props: "char charCode key keyCode".split(" "),
+ filter: function( event, original ) {
+
+ // Add which for key events
+ if ( event.which == null ) {
+ event.which = original.charCode != null ? original.charCode : original.keyCode;
+ }
+
+ return event;
+ }
+ },
+
+ mouseHooks: {
+ props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
+ filter: function( event, original ) {
+ var eventDoc, doc, body,
+ button = original.button;
+
+ // Calculate pageX/Y if missing and clientX/Y available
+ if ( event.pageX == null && original.clientX != null ) {
+ eventDoc = event.target.ownerDocument || document;
+ doc = eventDoc.documentElement;
+ body = eventDoc.body;
+
+ event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
+ event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
+ }
+
+ // Add which for click: 1 === left; 2 === middle; 3 === right
+ // Note: button is not normalized, so don't use it
+ if ( !event.which && button !== undefined ) {
+ event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
+ }
+
+ return event;
+ }
+ },
+
+ fix: function( event ) {
+ if ( event[ jQuery.expando ] ) {
+ return event;
+ }
+
+ // Create a writable copy of the event object and normalize some properties
+ var i, prop, copy,
+ type = event.type,
+ originalEvent = event,
+ fixHook = this.fixHooks[ type ];
+
+ if ( !fixHook ) {
+ this.fixHooks[ type ] = fixHook =
+ rmouseEvent.test( type ) ? this.mouseHooks :
+ rkeyEvent.test( type ) ? this.keyHooks :
+ {};
+ }
+ copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
+
+ event = new jQuery.Event( originalEvent );
+
+ i = copy.length;
+ while ( i-- ) {
+ prop = copy[ i ];
+ event[ prop ] = originalEvent[ prop ];
+ }
+
+ // Support: Chrome 23+, Safari?
+ // Target should not be a text node (#504, #13143)
+ if ( event.target.nodeType === 3 ) {
+ event.target = event.target.parentNode;
+ }
+
+ return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
+ },
+
+ special: {
+ load: {
+ // Prevent triggered image.load events from bubbling to window.load
+ noBubble: true
+ },
+ click: {
+ // For checkbox, fire native event so checked state will be right
+ trigger: function() {
+ if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
+ this.click();
+ return false;
+ }
+ }
+ },
+ focus: {
+ // Fire native event if possible so blur/focus sequence is correct
+ trigger: function() {
+ if ( this !== document.activeElement && this.focus ) {
+ this.focus();
+ return false;
+ }
+ },
+ delegateType: "focusin"
+ },
+ blur: {
+ trigger: function() {
+ if ( this === document.activeElement && this.blur ) {
+ this.blur();
+ return false;
+ }
+ },
+ delegateType: "focusout"
+ },
+
+ beforeunload: {
+ postDispatch: function( event ) {
+
+ // Support: Firefox 10+
+ if ( event.result !== undefined ) {
+ event.originalEvent.returnValue = event.result;
+ }
+ }
+ }
+ },
+
+ simulate: function( type, elem, event, bubble ) {
+ // Piggyback on a donor event to simulate a different one.
+ // Fake originalEvent to avoid donor's stopPropagation, but if the
+ // simulated event prevents default then we do the same on the donor.
+ var e = jQuery.extend(
+ new jQuery.Event(),
+ event,
+ {
+ type: type,
+ isSimulated: true,
+ originalEvent: {}
+ }
+ );
+ if ( bubble ) {
+ jQuery.event.trigger( e, null, elem );
+ } else {
+ jQuery.event.dispatch.call( elem, e );
+ }
+ if ( e.isDefaultPrevented() ) {
+ event.preventDefault();
+ }
+ }
+};
+
+jQuery.removeEvent = function( elem, type, handle ) {
+ if ( elem.removeEventListener ) {
+ elem.removeEventListener( type, handle, false );
+ }
+};
+
+jQuery.Event = function( src, props ) {
+ // Allow instantiation without the 'new' keyword
+ if ( !(this instanceof jQuery.Event) ) {
+ return new jQuery.Event( src, props );
+ }
+
+ // Event object
+ if ( src && src.type ) {
+ this.originalEvent = src;
+ this.type = src.type;
+
+ // Events bubbling up the document may have been marked as prevented
+ // by a handler lower down the tree; reflect the correct value.
+ this.isDefaultPrevented = ( src.defaultPrevented ||
+ src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
+
+ // Event type
+ } else {
+ this.type = src;
+ }
+
+ // Put explicitly provided properties onto the event object
+ if ( props ) {
+ jQuery.extend( this, props );
+ }
+
+ // Create a timestamp if incoming event doesn't have one
+ this.timeStamp = src && src.timeStamp || jQuery.now();
+
+ // Mark it as fixed
+ this[ jQuery.expando ] = true;
+};
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+ isDefaultPrevented: returnFalse,
+ isPropagationStopped: returnFalse,
+ isImmediatePropagationStopped: returnFalse,
+
+ preventDefault: function() {
+ var e = this.originalEvent;
+
+ this.isDefaultPrevented = returnTrue;
+
+ if ( e && e.preventDefault ) {
+ e.preventDefault();
+ }
+ },
+ stopPropagation: function() {
+ var e = this.originalEvent;
+
+ this.isPropagationStopped = returnTrue;
+
+ if ( e && e.stopPropagation ) {
+ e.stopPropagation();
+ }
+ },
+ stopImmediatePropagation: function() {
+ this.isImmediatePropagationStopped = returnTrue;
+ this.stopPropagation();
+ }
+};
+
+// Create mouseenter/leave events using mouseover/out and event-time checks
+// Support: Chrome 15+
+jQuery.each({
+ mouseenter: "mouseover",
+ mouseleave: "mouseout"
+}, function( orig, fix ) {
+ jQuery.event.special[ orig ] = {
+ delegateType: fix,
+ bindType: fix,
+
+ handle: function( event ) {
+ var ret,
+ target = this,
+ related = event.relatedTarget,
+ handleObj = event.handleObj;
+
+ // For mousenter/leave call the handler if related is outside the target.
+ // NB: No relatedTarget if the mouse left/entered the browser window
+ if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
+ event.type = handleObj.origType;
+ ret = handleObj.handler.apply( this, arguments );
+ event.type = fix;
+ }
+ return ret;
+ }
+ };
+});
+
+// Create "bubbling" focus and blur events
+// Support: Firefox 10+
+if ( !jQuery.support.focusinBubbles ) {
+ jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+
+ // Attach a single capturing handler while someone wants focusin/focusout
+ var attaches = 0,
+ handler = function( event ) {
+ jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
+ };
+
+ jQuery.event.special[ fix ] = {
+ setup: function() {
+ if ( attaches++ === 0 ) {
+ document.addEventListener( orig, handler, true );
+ }
+ },
+ teardown: function() {
+ if ( --attaches === 0 ) {
+ document.removeEventListener( orig, handler, true );
+ }
+ }
+ };
+ });
+}
+
+jQuery.fn.extend({
+
+ on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
+ var origFn, type;
+
+ // Types can be a map of types/handlers
+ if ( typeof types === "object" ) {
+ // ( types-Object, selector, data )
+ if ( typeof selector !== "string" ) {
+ // ( types-Object, data )
+ data = data || selector;
+ selector = undefined;
+ }
+ for ( type in types ) {
+ this.on( type, selector, data, types[ type ], one );
+ }
+ return this;
+ }
+
+ if ( data == null && fn == null ) {
+ // ( types, fn )
+ fn = selector;
+ data = selector = undefined;
+ } else if ( fn == null ) {
+ if ( typeof selector === "string" ) {
+ // ( types, selector, fn )
+ fn = data;
+ data = undefined;
+ } else {
+ // ( types, data, fn )
+ fn = data;
+ data = selector;
+ selector = undefined;
+ }
+ }
+ if ( fn === false ) {
+ fn = returnFalse;
+ } else if ( !fn ) {
+ return this;
+ }
+
+ if ( one === 1 ) {
+ origFn = fn;
+ fn = function( event ) {
+ // Can use an empty set, since event contains the info
+ jQuery().off( event );
+ return origFn.apply( this, arguments );
+ };
+ // Use same guid so caller can remove using origFn
+ fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+ }
+ return this.each( function() {
+ jQuery.event.add( this, types, fn, data, selector );
+ });
+ },
+ one: function( types, selector, data, fn ) {
+ return this.on( types, selector, data, fn, 1 );
+ },
+ off: function( types, selector, fn ) {
+ var handleObj, type;
+ if ( types && types.preventDefault && types.handleObj ) {
+ // ( event ) dispatched jQuery.Event
+ handleObj = types.handleObj;
+ jQuery( types.delegateTarget ).off(
+ handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
+ handleObj.selector,
+ handleObj.handler
+ );
+ return this;
+ }
+ if ( typeof types === "object" ) {
+ // ( types-object [, selector] )
+ for ( type in types ) {
+ this.off( type, selector, types[ type ] );
+ }
+ return this;
+ }
+ if ( selector === false || typeof selector === "function" ) {
+ // ( types [, fn] )
+ fn = selector;
+ selector = undefined;
+ }
+ if ( fn === false ) {
+ fn = returnFalse;
+ }
+ return this.each(function() {
+ jQuery.event.remove( this, types, fn, selector );
+ });
+ },
+
+ bind: function( types, data, fn ) {
+ return this.on( types, null, data, fn );
+ },
+ unbind: function( types, fn ) {
+ return this.off( types, null, fn );
+ },
+
+ delegate: function( selector, types, data, fn ) {
+ return this.on( types, selector, data, fn );
+ },
+ undelegate: function( selector, types, fn ) {
+ // ( namespace ) or ( selector, types [, fn] )
+ return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
+ },
+
+ trigger: function( type, data ) {
+ return this.each(function() {
+ jQuery.event.trigger( type, data, this );
+ });
+ },
+ triggerHandler: function( type, data ) {
+ var elem = this[0];
+ if ( elem ) {
+ return jQuery.event.trigger( type, data, elem, true );
+ }
+ }
+});
+/*!
+ * Sizzle CSS Selector Engine
+ * Copyright 2013 jQuery Foundation and other contributors
+ * Released under the MIT license
+ * http://sizzlejs.com/
+ */
+(function( window, undefined ) {
+
+var i,
+ cachedruns,
+ Expr,
+ getText,
+ isXML,
+ compile,
+ outermostContext,
+ recompare,
+ sortInput,
+
+ // Local document vars
+ setDocument,
+ document,
+ docElem,
+ documentIsXML,
+ rbuggyQSA,
+ rbuggyMatches,
+ matches,
+ contains,
+
+ // Instance-specific data
+ expando = "sizzle" + -(new Date()),
+ preferredDoc = window.document,
+ support = {},
+ dirruns = 0,
+ done = 0,
+ classCache = createCache(),
+ tokenCache = createCache(),
+ compilerCache = createCache(),
+ hasDuplicate = false,
+ sortOrder = function() { return 0; },
+
+ // General-purpose constants
+ strundefined = typeof undefined,
+ MAX_NEGATIVE = 1 << 31,
+
+ // Array methods
+ arr = [],
+ pop = arr.pop,
+ push_native = arr.push,
+ push = arr.push,
+ slice = arr.slice,
+ // Use a stripped-down indexOf if we can't use a native one
+ indexOf = arr.indexOf || function( elem ) {
+ var i = 0,
+ len = this.length;
+ for ( ; i < len; i++ ) {
+ if ( this[i] === elem ) {
+ return i;
+ }
+ }
+ return -1;
+ },
+
+
+ // Regular expressions
+
+ // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
+ whitespace = "[\\x20\\t\\r\\n\\f]",
+ // http://www.w3.org/TR/css3-syntax/#characters
+ characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
+
+ // Loosely modeled on CSS identifier characters
+ // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
+ // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
+ identifier = characterEncoding.replace( "w", "w#" ),
+
+ // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
+ operators = "([*^$|!~]?=)",
+ attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +
+ "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
+
+ // Prefer arguments quoted,
+ // then not containing pseudos/brackets,
+ // then attribute selectors/non-parenthetical expressions,
+ // then anything else
+ // These preferences are here to reduce the number of selectors
+ // needing tokenize in the PSEUDO preFilter
+ pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)",
+
+ // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
+ rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
+
+ rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
+ rcombinators = new RegExp( "^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*" ),
+ rpseudo = new RegExp( pseudos ),
+ ridentifier = new RegExp( "^" + identifier + "$" ),
+
+ matchExpr = {
+ "ID": new RegExp( "^#(" + characterEncoding + ")" ),
+ "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
+ "NAME": new RegExp( "^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]" ),
+ "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
+ "ATTR": new RegExp( "^" + attributes ),
+ "PSEUDO": new RegExp( "^" + pseudos ),
+ "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
+ "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
+ "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
+ // For use in libraries implementing .is()
+ // We use this for POS matching in `select`
+ "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
+ whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
+ },
+
+ rsibling = /[\x20\t\r\n\f]*[+~]/,
+
+ rnative = /^[^{]+\{\s*\[native code/,
+
+ // Easily-parseable/retrievable ID or TAG or CLASS selectors
+ rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
+
+ rinputs = /^(?:input|select|textarea|button)$/i,
+ rheader = /^h\d$/i,
+
+ rescape = /'|\\/g,
+ rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
+
+ // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
+ runescape = /\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,
+ funescape = function( _, escaped ) {
+ var high = "0x" + escaped - 0x10000;
+ // NaN means non-codepoint
+ return high !== high ?
+ escaped :
+ // BMP codepoint
+ high < 0 ?
+ String.fromCharCode( high + 0x10000 ) :
+ // Supplemental Plane codepoint (surrogate pair)
+ String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
+ };
+
+// Optimize for push.apply( _, NodeList )
+try {
+ push.apply(
+ (arr = slice.call( preferredDoc.childNodes )),
+ preferredDoc.childNodes
+ );
+ // Support: Android<4.0
+ // Detect silently failing push.apply
+ arr[ preferredDoc.childNodes.length ].nodeType;
+} catch ( e ) {
+ push = { apply: arr.length ?
+
+ // Leverage slice if possible
+ function( target, els ) {
+ push_native.apply( target, slice.call(els) );
+ } :
+
+ // Support: IE<9
+ // Otherwise append directly
+ function( target, els ) {
+ var j = target.length,
+ i = 0;
+ // Can't trust NodeList.length
+ while ( (target[j++] = els[i++]) ) {}
+ target.length = j - 1;
+ }
+ };
+}
+
+/**
+ * For feature detection
+ * @param {Function} fn The function to test for native support
+ */
+function isNative( fn ) {
+ return rnative.test( fn + "" );
+}
+
+/**
+ * Create key-value caches of limited size
+ * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
+ * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
+ * deleting the oldest entry
+ */
+function createCache() {
+ var cache,
+ keys = [];
+
+ return (cache = function( key, value ) {
+ // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
+ if ( keys.push( key += " " ) > Expr.cacheLength ) {
+ // Only keep the most recent entries
+ delete cache[ keys.shift() ];
+ }
+ return (cache[ key ] = value);
+ });
+}
+
+/**
+ * Mark a function for special use by Sizzle
+ * @param {Function} fn The function to mark
+ */
+function markFunction( fn ) {
+ fn[ expando ] = true;
+ return fn;
+}
+
+/**
+ * Support testing using an element
+ * @param {Function} fn Passed the created div and expects a boolean result
+ */
+function assert( fn ) {
+ var div = document.createElement("div");
+
+ try {
+ return !!fn( div );
+ } catch (e) {
+ return false;
+ } finally {
+ // release memory in IE
+ div = null;
+ }
+}
+
+function Sizzle( selector, context, results, seed ) {
+ var match, elem, m, nodeType,
+ // QSA vars
+ i, groups, old, nid, newContext, newSelector;
+
+ if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
+ setDocument( context );
+ }
+
+ context = context || document;
+ results = results || [];
+
+ if ( !selector || typeof selector !== "string" ) {
+ return results;
+ }
+
+ if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {
+ return [];
+ }
+
+ if ( !documentIsXML && !seed ) {
+
+ // Shortcuts
+ if ( (match = rquickExpr.exec( selector )) ) {
+ // Speed-up: Sizzle("#ID")
+ if ( (m = match[1]) ) {
+ if ( nodeType === 9 ) {
+ elem = context.getElementById( m );
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ if ( elem && elem.parentNode ) {
+ // Handle the case where IE, Opera, and Webkit return items
+ // by name instead of ID
+ if ( elem.id === m ) {
+ results.push( elem );
+ return results;
+ }
+ } else {
+ return results;
+ }
+ } else {
+ // Context is not a document
+ if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
+ contains( context, elem ) && elem.id === m ) {
+ results.push( elem );
+ return results;
+ }
+ }
+
+ // Speed-up: Sizzle("TAG")
+ } else if ( match[2] ) {
+ push.apply( results, context.getElementsByTagName( selector ) );
+ return results;
+
+ // Speed-up: Sizzle(".CLASS")
+ } else if ( (m = match[3]) && support.getByClassName && context.getElementsByClassName ) {
+ push.apply( results, context.getElementsByClassName( m ) );
+ return results;
+ }
+ }
+
+ // QSA path
+ if ( support.qsa && !rbuggyQSA.test(selector) ) {
+ old = true;
+ nid = expando;
+ newContext = context;
+ newSelector = nodeType === 9 && selector;
+
+ // qSA works strangely on Element-rooted queries
+ // We can work around this by specifying an extra ID on the root
+ // and working up from there (Thanks to Andrew Dupont for the technique)
+ // IE 8 doesn't work on object elements
+ if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+ groups = tokenize( selector );
+
+ if ( (old = context.getAttribute("id")) ) {
+ nid = old.replace( rescape, "\\$&" );
+ } else {
+ context.setAttribute( "id", nid );
+ }
+ nid = "[id='" + nid + "'] ";
+
+ i = groups.length;
+ while ( i-- ) {
+ groups[i] = nid + toSelector( groups[i] );
+ }
+ newContext = rsibling.test( selector ) && context.parentNode || context;
+ newSelector = groups.join(",");
+ }
+
+ if ( newSelector ) {
+ try {
+ push.apply( results,
+ newContext.querySelectorAll( newSelector )
+ );
+ return results;
+ } catch(qsaError) {
+ } finally {
+ if ( !old ) {
+ context.removeAttribute("id");
+ }
+ }
+ }
+ }
+ }
+
+ // All others
+ return select( selector.replace( rtrim, "$1" ), context, results, seed );
+}
+
+/**
+ * Detect xml
+ * @param {Element|Object} elem An element or a document
+ */
+isXML = Sizzle.isXML = function( elem ) {
+ // documentElement is verified for cases where it doesn't yet exist
+ // (such as loading iframes in IE - #4833)
+ var documentElement = elem && (elem.ownerDocument || elem).documentElement;
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+/**
+ * Sets document-related variables once based on the current document
+ * @param {Element|Object} [doc] An element or document object to use to set the document
+ * @returns {Object} Returns the current document
+ */
+setDocument = Sizzle.setDocument = function( node ) {
+ var doc = node ? node.ownerDocument || node : preferredDoc;
+
+ // If no document and documentElement is available, return
+ if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
+ return document;
+ }
+
+ // Set our document
+ document = doc;
+ docElem = doc.documentElement;
+
+ // Support tests
+ documentIsXML = isXML( doc );
+
+ // Check if getElementsByTagName("*") returns only elements
+ support.tagNameNoComments = assert(function( div ) {
+ div.appendChild( doc.createComment("") );
+ return !div.getElementsByTagName("*").length;
+ });
+
+ // Check if attributes should be retrieved by attribute nodes
+ support.attributes = assert(function( div ) {
+ div.innerHTML = " ";
+ var type = typeof div.lastChild.getAttribute("multiple");
+ // IE8 returns a string for some attributes even when not present
+ return type !== "boolean" && type !== "string";
+ });
+
+ // Check if getElementsByClassName can be trusted
+ support.getByClassName = assert(function( div ) {
+ // Opera can't find a second classname (in 9.6)
+ div.innerHTML = "
";
+ if ( !div.getElementsByClassName || !div.getElementsByClassName("e").length ) {
+ return false;
+ }
+
+ // Safari 3.2 caches class attributes and doesn't catch changes
+ div.lastChild.className = "e";
+ return div.getElementsByClassName("e").length === 2;
+ });
+
+ // Check if getElementsByName privileges form controls or returns elements by ID
+ // If so, assume (for broader support) that getElementById returns elements by name
+ support.getByName = assert(function( div ) {
+ // Inject content
+ div.id = expando + 0;
+ // Support: Windows 8 Native Apps
+ // Assigning innerHTML with "name" attributes throws uncatchable exceptions
+ // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx
+ div.appendChild( document.createElement("a") ).setAttribute( "name", expando );
+ div.appendChild( document.createElement("i") ).setAttribute( "name", expando );
+ docElem.appendChild( div );
+
+ // Test
+ var pass = doc.getElementsByName &&
+ // buggy browsers will return fewer than the correct 2
+ doc.getElementsByName( expando ).length === 2 +
+ // buggy browsers will return more than the correct 0
+ doc.getElementsByName( expando + 0 ).length;
+
+ // Cleanup
+ docElem.removeChild( div );
+
+ return pass;
+ });
+
+ // Support: Webkit<537.32
+ // Detached nodes confoundingly follow *each other*
+ support.sortDetached = assert(function( div1 ) {
+ return div1.compareDocumentPosition &&
+ // Should return 1, but Webkit returns 4 (following)
+ (div1.compareDocumentPosition( document.createElement("div") ) & 1);
+ });
+
+ // IE6/7 return modified attributes
+ Expr.attrHandle = assert(function( div ) {
+ div.innerHTML = " ";
+ return div.firstChild && typeof div.firstChild.getAttribute !== strundefined &&
+ div.firstChild.getAttribute("href") === "#";
+ }) ?
+ {} :
+ {
+ "href": function( elem ) {
+ return elem.getAttribute( "href", 2 );
+ },
+ "type": function( elem ) {
+ return elem.getAttribute("type");
+ }
+ };
+
+ // ID find and filter
+ if ( support.getByName ) {
+ Expr.find["ID"] = function( id, context ) {
+ if ( typeof context.getElementById !== strundefined && !documentIsXML ) {
+ var m = context.getElementById( id );
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ return m && m.parentNode ? [m] : [];
+ }
+ };
+ Expr.filter["ID"] = function( id ) {
+ var attrId = id.replace( runescape, funescape );
+ return function( elem ) {
+ return elem.getAttribute("id") === attrId;
+ };
+ };
+ } else {
+ Expr.find["ID"] = function( id, context ) {
+ if ( typeof context.getElementById !== strundefined && !documentIsXML ) {
+ var m = context.getElementById( id );
+
+ return m ?
+ m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ?
+ [m] :
+ undefined :
+ [];
+ }
+ };
+ Expr.filter["ID"] = function( id ) {
+ var attrId = id.replace( runescape, funescape );
+ return function( elem ) {
+ var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
+ return node && node.value === attrId;
+ };
+ };
+ }
+
+ // Tag
+ Expr.find["TAG"] = support.tagNameNoComments ?
+ function( tag, context ) {
+ if ( typeof context.getElementsByTagName !== strundefined ) {
+ return context.getElementsByTagName( tag );
+ }
+ } :
+ function( tag, context ) {
+ var elem,
+ tmp = [],
+ i = 0,
+ results = context.getElementsByTagName( tag );
+
+ // Filter out possible comments
+ if ( tag === "*" ) {
+ while ( (elem = results[i++]) ) {
+ if ( elem.nodeType === 1 ) {
+ tmp.push( elem );
+ }
+ }
+
+ return tmp;
+ }
+ return results;
+ };
+
+ // Name
+ Expr.find["NAME"] = support.getByName && function( tag, context ) {
+ if ( typeof context.getElementsByName !== strundefined ) {
+ return context.getElementsByName( name );
+ }
+ };
+
+ // Class
+ Expr.find["CLASS"] = support.getByClassName && function( className, context ) {
+ if ( typeof context.getElementsByClassName !== strundefined && !documentIsXML ) {
+ return context.getElementsByClassName( className );
+ }
+ };
+
+ // QSA and matchesSelector support
+
+ // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
+ rbuggyMatches = [];
+
+ // qSa(:focus) reports false when true (Chrome 21),
+ // no need to also add to buggyMatches since matches checks buggyQSA
+ // A support test would require too much code (would include document ready)
+ rbuggyQSA = [ ":focus" ];
+
+ if ( (support.qsa = isNative(doc.querySelectorAll)) ) {
+ // Build QSA regex
+ // Regex strategy adopted from Diego Perini
+ assert(function( div ) {
+ // Select is set to empty string on purpose
+ // This is to test IE's treatment of not explictly
+ // setting a boolean content attribute,
+ // since its presence should be enough
+ // http://bugs.jquery.com/ticket/12359
+ div.innerHTML = " ";
+
+ // IE8 - Some boolean attributes are not treated correctly
+ if ( !div.querySelectorAll("[selected]").length ) {
+ rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" );
+ }
+
+ // Webkit/Opera - :checked should return selected option elements
+ // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+ // IE8 throws error here and will not see later tests
+ if ( !div.querySelectorAll(":checked").length ) {
+ rbuggyQSA.push(":checked");
+ }
+ });
+
+ assert(function( div ) {
+
+ // Opera 10-12/IE8 - ^= $= *= and empty values
+ // Should not select anything
+ div.innerHTML = " ";
+ if ( div.querySelectorAll("[i^='']").length ) {
+ rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" );
+ }
+
+ // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
+ // IE8 throws error here and will not see later tests
+ if ( !div.querySelectorAll(":enabled").length ) {
+ rbuggyQSA.push( ":enabled", ":disabled" );
+ }
+
+ // Opera 10-11 does not throw on post-comma invalid pseudos
+ div.querySelectorAll("*,:x");
+ rbuggyQSA.push(",.*:");
+ });
+ }
+
+ if ( (support.matchesSelector = isNative( (matches = docElem.matchesSelector ||
+ docElem.mozMatchesSelector ||
+ docElem.webkitMatchesSelector ||
+ docElem.oMatchesSelector ||
+ docElem.msMatchesSelector) )) ) {
+
+ assert(function( div ) {
+ // Check to see if it's possible to do matchesSelector
+ // on a disconnected node (IE 9)
+ support.disconnectedMatch = matches.call( div, "div" );
+
+ // This should fail with an exception
+ // Gecko does not error, returns false instead
+ matches.call( div, "[s!='']:x" );
+ rbuggyMatches.push( "!=", pseudos );
+ });
+ }
+
+ rbuggyQSA = new RegExp( rbuggyQSA.join("|") );
+ rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
+
+ // Element contains another
+ // Purposefully does not implement inclusive descendent
+ // As in, an element does not contain itself
+ contains = isNative(docElem.contains) || docElem.compareDocumentPosition ?
+ function( a, b ) {
+ var adown = a.nodeType === 9 ? a.documentElement : a,
+ bup = b && b.parentNode;
+ return a === bup || !!( bup && bup.nodeType === 1 && (
+ adown.contains ?
+ adown.contains( bup ) :
+ a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
+ ));
+ } :
+ function( a, b ) {
+ if ( b ) {
+ while ( (b = b.parentNode) ) {
+ if ( b === a ) {
+ return true;
+ }
+ }
+ }
+ return false;
+ };
+
+ // Document order sorting
+ sortOrder = docElem.compareDocumentPosition ?
+ function( a, b ) {
+
+ // Flag for duplicate removal
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+ }
+
+ var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b );
+
+ if ( compare ) {
+ // Disconnected nodes
+ if ( compare & 1 ||
+ (recompare && b.compareDocumentPosition( a ) === compare) ) {
+
+ // Choose the first element that is related to our preferred document
+ if ( a === doc || contains(preferredDoc, a) ) {
+ return -1;
+ }
+ if ( b === doc || contains(preferredDoc, b) ) {
+ return 1;
+ }
+
+ // Maintain original order
+ return sortInput ?
+ ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
+ 0;
+ }
+
+ return compare & 4 ? -1 : 1;
+ }
+
+ // Not directly comparable, sort on existence of method
+ return a.compareDocumentPosition ? -1 : 1;
+ } :
+ function( a, b ) {
+ var cur,
+ i = 0,
+ aup = a.parentNode,
+ bup = b.parentNode,
+ ap = [ a ],
+ bp = [ b ];
+
+ // Exit early if the nodes are identical
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+
+ // Parentless nodes are either documents or disconnected
+ } else if ( !aup || !bup ) {
+ return a === doc ? -1 :
+ b === doc ? 1 :
+ aup ? -1 :
+ bup ? 1 :
+ 0;
+
+ // If the nodes are siblings, we can do a quick check
+ } else if ( aup === bup ) {
+ return siblingCheck( a, b );
+ }
+
+ // Otherwise we need full lists of their ancestors for comparison
+ cur = a;
+ while ( (cur = cur.parentNode) ) {
+ ap.unshift( cur );
+ }
+ cur = b;
+ while ( (cur = cur.parentNode) ) {
+ bp.unshift( cur );
+ }
+
+ // Walk down the tree looking for a discrepancy
+ while ( ap[i] === bp[i] ) {
+ i++;
+ }
+
+ return i ?
+ // Do a sibling check if the nodes have a common ancestor
+ siblingCheck( ap[i], bp[i] ) :
+
+ // Otherwise nodes in our document sort first
+ ap[i] === preferredDoc ? -1 :
+ bp[i] === preferredDoc ? 1 :
+ 0;
+ };
+
+ return document;
+};
+
+Sizzle.matches = function( expr, elements ) {
+ return Sizzle( expr, null, null, elements );
+};
+
+Sizzle.matchesSelector = function( elem, expr ) {
+ // Set document vars if needed
+ if ( ( elem.ownerDocument || elem ) !== document ) {
+ setDocument( elem );
+ }
+
+ // Make sure that attribute selectors are quoted
+ expr = expr.replace( rattributeQuotes, "='$1']" );
+
+ // rbuggyQSA always contains :focus, so no need for an existence check
+ if ( support.matchesSelector && !documentIsXML && (!rbuggyMatches || !rbuggyMatches.test(expr)) && !rbuggyQSA.test(expr) ) {
+ try {
+ var ret = matches.call( elem, expr );
+
+ // IE 9's matchesSelector returns false on disconnected nodes
+ if ( ret || support.disconnectedMatch ||
+ // As well, disconnected nodes are said to be in a document
+ // fragment in IE 9
+ elem.document && elem.document.nodeType !== 11 ) {
+ return ret;
+ }
+ } catch(e) {}
+ }
+
+ return Sizzle( expr, document, null, [elem] ).length > 0;
+};
+
+Sizzle.contains = function( context, elem ) {
+ // Set document vars if needed
+ if ( ( context.ownerDocument || context ) !== document ) {
+ setDocument( context );
+ }
+ return contains( context, elem );
+};
+
+Sizzle.attr = function( elem, name ) {
+ var val;
+
+ // Set document vars if needed
+ if ( ( elem.ownerDocument || elem ) !== document ) {
+ setDocument( elem );
+ }
+
+ if ( !documentIsXML ) {
+ name = name.toLowerCase();
+ }
+ if ( (val = Expr.attrHandle[ name ]) ) {
+ return val( elem );
+ }
+ if ( documentIsXML || support.attributes ) {
+ return elem.getAttribute( name );
+ }
+ return ( (val = elem.getAttributeNode( name )) || elem.getAttribute( name ) ) && elem[ name ] === true ?
+ name :
+ val && val.specified ? val.value : null;
+};
+
+Sizzle.error = function( msg ) {
+ throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+// Document sorting and removing duplicates
+Sizzle.uniqueSort = function( results ) {
+ var elem,
+ duplicates = [],
+ j = 0,
+ i = 0;
+
+ // Unless we *know* we can detect duplicates, assume their presence
+ hasDuplicate = !support.detectDuplicates;
+ // Compensate for sort limitations
+ recompare = !support.sortDetached;
+ sortInput = !support.sortStable && results.slice( 0 );
+ results.sort( sortOrder );
+
+ if ( hasDuplicate ) {
+ while ( (elem = results[i++]) ) {
+ if ( elem === results[ i ] ) {
+ j = duplicates.push( i );
+ }
+ }
+ while ( j-- ) {
+ results.splice( duplicates[ j ], 1 );
+ }
+ }
+
+ return results;
+};
+
+/**
+ * Checks document order of two siblings
+ * @param {Element} a
+ * @param {Element} b
+ * @returns Returns -1 if a precedes b, 1 if a follows b
+ */
+function siblingCheck( a, b ) {
+ var cur = b && a,
+ diff = cur && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE );
+
+ // Use IE sourceIndex if available on both nodes
+ if ( diff ) {
+ return diff;
+ }
+
+ // Check if b follows a
+ if ( cur ) {
+ while ( (cur = cur.nextSibling) ) {
+ if ( cur === b ) {
+ return -1;
+ }
+ }
+ }
+
+ return a ? 1 : -1;
+}
+
+// Returns a function to use in pseudos for input types
+function createInputPseudo( type ) {
+ return function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return name === "input" && elem.type === type;
+ };
+}
+
+// Returns a function to use in pseudos for buttons
+function createButtonPseudo( type ) {
+ return function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return (name === "input" || name === "button") && elem.type === type;
+ };
+}
+
+// Returns a function to use in pseudos for positionals
+function createPositionalPseudo( fn ) {
+ return markFunction(function( argument ) {
+ argument = +argument;
+ return markFunction(function( seed, matches ) {
+ var j,
+ matchIndexes = fn( [], seed.length, argument ),
+ i = matchIndexes.length;
+
+ // Match elements found at the specified indexes
+ while ( i-- ) {
+ if ( seed[ (j = matchIndexes[i]) ] ) {
+ seed[j] = !(matches[j] = seed[j]);
+ }
+ }
+ });
+ });
+}
+
+/**
+ * Utility function for retrieving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+getText = Sizzle.getText = function( elem ) {
+ var node,
+ ret = "",
+ i = 0,
+ nodeType = elem.nodeType;
+
+ if ( !nodeType ) {
+ // If no nodeType, this is expected to be an array
+ for ( ; (node = elem[i]); i++ ) {
+ // Do not traverse comment nodes
+ ret += getText( node );
+ }
+ } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
+ // Use textContent for elements
+ // innerText usage removed for consistency of new lines (see #11153)
+ if ( typeof elem.textContent === "string" ) {
+ return elem.textContent;
+ } else {
+ // Traverse its children
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+ ret += getText( elem );
+ }
+ }
+ } else if ( nodeType === 3 || nodeType === 4 ) {
+ return elem.nodeValue;
+ }
+ // Do not include comment or processing instruction nodes
+
+ return ret;
+};
+
+Expr = Sizzle.selectors = {
+
+ // Can be adjusted by the user
+ cacheLength: 50,
+
+ createPseudo: markFunction,
+
+ match: matchExpr,
+
+ find: {},
+
+ relative: {
+ ">": { dir: "parentNode", first: true },
+ " ": { dir: "parentNode" },
+ "+": { dir: "previousSibling", first: true },
+ "~": { dir: "previousSibling" }
+ },
+
+ preFilter: {
+ "ATTR": function( match ) {
+ match[1] = match[1].replace( runescape, funescape );
+
+ // Move the given value to match[3] whether quoted or unquoted
+ match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape );
+
+ if ( match[2] === "~=" ) {
+ match[3] = " " + match[3] + " ";
+ }
+
+ return match.slice( 0, 4 );
+ },
+
+ "CHILD": function( match ) {
+ /* matches from matchExpr["CHILD"]
+ 1 type (only|nth|...)
+ 2 what (child|of-type)
+ 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
+ 4 xn-component of xn+y argument ([+-]?\d*n|)
+ 5 sign of xn-component
+ 6 x of xn-component
+ 7 sign of y-component
+ 8 y of y-component
+ */
+ match[1] = match[1].toLowerCase();
+
+ if ( match[1].slice( 0, 3 ) === "nth" ) {
+ // nth-* requires argument
+ if ( !match[3] ) {
+ Sizzle.error( match[0] );
+ }
+
+ // numeric x and y parameters for Expr.filter.CHILD
+ // remember that false/true cast respectively to 0/1
+ match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
+ match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
+
+ // other types prohibit arguments
+ } else if ( match[3] ) {
+ Sizzle.error( match[0] );
+ }
+
+ return match;
+ },
+
+ "PSEUDO": function( match ) {
+ var excess,
+ unquoted = !match[5] && match[2];
+
+ if ( matchExpr["CHILD"].test( match[0] ) ) {
+ return null;
+ }
+
+ // Accept quoted arguments as-is
+ if ( match[4] ) {
+ match[2] = match[4];
+
+ // Strip excess characters from unquoted arguments
+ } else if ( unquoted && rpseudo.test( unquoted ) &&
+ // Get excess from tokenize (recursively)
+ (excess = tokenize( unquoted, true )) &&
+ // advance to the next closing parenthesis
+ (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
+
+ // excess is a negative index
+ match[0] = match[0].slice( 0, excess );
+ match[2] = unquoted.slice( 0, excess );
+ }
+
+ // Return only captures needed by the pseudo filter method (type and argument)
+ return match.slice( 0, 3 );
+ }
+ },
+
+ filter: {
+
+ "TAG": function( nodeName ) {
+ if ( nodeName === "*" ) {
+ return function() { return true; };
+ }
+
+ nodeName = nodeName.replace( runescape, funescape ).toLowerCase();
+ return function( elem ) {
+ return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
+ };
+ },
+
+ "CLASS": function( className ) {
+ var pattern = classCache[ className + " " ];
+
+ return pattern ||
+ (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
+ classCache( className, function( elem ) {
+ return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" );
+ });
+ },
+
+ "ATTR": function( name, operator, check ) {
+ return function( elem ) {
+ var result = Sizzle.attr( elem, name );
+
+ if ( result == null ) {
+ return operator === "!=";
+ }
+ if ( !operator ) {
+ return true;
+ }
+
+ result += "";
+
+ return operator === "=" ? result === check :
+ operator === "!=" ? result !== check :
+ operator === "^=" ? check && result.indexOf( check ) === 0 :
+ operator === "*=" ? check && result.indexOf( check ) > -1 :
+ operator === "$=" ? check && result.slice( -check.length ) === check :
+ operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :
+ operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
+ false;
+ };
+ },
+
+ "CHILD": function( type, what, argument, first, last ) {
+ var simple = type.slice( 0, 3 ) !== "nth",
+ forward = type.slice( -4 ) !== "last",
+ ofType = what === "of-type";
+
+ return first === 1 && last === 0 ?
+
+ // Shortcut for :nth-*(n)
+ function( elem ) {
+ return !!elem.parentNode;
+ } :
+
+ function( elem, context, xml ) {
+ var cache, outerCache, node, diff, nodeIndex, start,
+ dir = simple !== forward ? "nextSibling" : "previousSibling",
+ parent = elem.parentNode,
+ name = ofType && elem.nodeName.toLowerCase(),
+ useCache = !xml && !ofType;
+
+ if ( parent ) {
+
+ // :(first|last|only)-(child|of-type)
+ if ( simple ) {
+ while ( dir ) {
+ node = elem;
+ while ( (node = node[ dir ]) ) {
+ if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
+ return false;
+ }
+ }
+ // Reverse direction for :only-* (if we haven't yet done so)
+ start = dir = type === "only" && !start && "nextSibling";
+ }
+ return true;
+ }
+
+ start = [ forward ? parent.firstChild : parent.lastChild ];
+
+ // non-xml :nth-child(...) stores cache data on `parent`
+ if ( forward && useCache ) {
+ // Seek `elem` from a previously-cached index
+ outerCache = parent[ expando ] || (parent[ expando ] = {});
+ cache = outerCache[ type ] || [];
+ nodeIndex = cache[0] === dirruns && cache[1];
+ diff = cache[0] === dirruns && cache[2];
+ node = nodeIndex && parent.childNodes[ nodeIndex ];
+
+ while ( (node = ++nodeIndex && node && node[ dir ] ||
+
+ // Fallback to seeking `elem` from the start
+ (diff = nodeIndex = 0) || start.pop()) ) {
+
+ // When found, cache indexes on `parent` and break
+ if ( node.nodeType === 1 && ++diff && node === elem ) {
+ outerCache[ type ] = [ dirruns, nodeIndex, diff ];
+ break;
+ }
+ }
+
+ // Use previously-cached element index if available
+ } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
+ diff = cache[1];
+
+ // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
+ } else {
+ // Use the same loop as above to seek `elem` from the start
+ while ( (node = ++nodeIndex && node && node[ dir ] ||
+ (diff = nodeIndex = 0) || start.pop()) ) {
+
+ if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
+ // Cache the index of each encountered element
+ if ( useCache ) {
+ (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
+ }
+
+ if ( node === elem ) {
+ break;
+ }
+ }
+ }
+ }
+
+ // Incorporate the offset, then check against cycle size
+ diff -= last;
+ return diff === first || ( diff % first === 0 && diff / first >= 0 );
+ }
+ };
+ },
+
+ "PSEUDO": function( pseudo, argument ) {
+ // pseudo-class names are case-insensitive
+ // http://www.w3.org/TR/selectors/#pseudo-classes
+ // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
+ // Remember that setFilters inherits from pseudos
+ var args,
+ fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
+ Sizzle.error( "unsupported pseudo: " + pseudo );
+
+ // The user may use createPseudo to indicate that
+ // arguments are needed to create the filter function
+ // just as Sizzle does
+ if ( fn[ expando ] ) {
+ return fn( argument );
+ }
+
+ // But maintain support for old signatures
+ if ( fn.length > 1 ) {
+ args = [ pseudo, pseudo, "", argument ];
+ return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
+ markFunction(function( seed, matches ) {
+ var idx,
+ matched = fn( seed, argument ),
+ i = matched.length;
+ while ( i-- ) {
+ idx = indexOf.call( seed, matched[i] );
+ seed[ idx ] = !( matches[ idx ] = matched[i] );
+ }
+ }) :
+ function( elem ) {
+ return fn( elem, 0, args );
+ };
+ }
+
+ return fn;
+ }
+ },
+
+ pseudos: {
+ // Potentially complex pseudos
+ "not": markFunction(function( selector ) {
+ // Trim the selector passed to compile
+ // to avoid treating leading and trailing
+ // spaces as combinators
+ var input = [],
+ results = [],
+ matcher = compile( selector.replace( rtrim, "$1" ) );
+
+ return matcher[ expando ] ?
+ markFunction(function( seed, matches, context, xml ) {
+ var elem,
+ unmatched = matcher( seed, null, xml, [] ),
+ i = seed.length;
+
+ // Match elements unmatched by `matcher`
+ while ( i-- ) {
+ if ( (elem = unmatched[i]) ) {
+ seed[i] = !(matches[i] = elem);
+ }
+ }
+ }) :
+ function( elem, context, xml ) {
+ input[0] = elem;
+ matcher( input, null, xml, results );
+ return !results.pop();
+ };
+ }),
+
+ "has": markFunction(function( selector ) {
+ return function( elem ) {
+ return Sizzle( selector, elem ).length > 0;
+ };
+ }),
+
+ "contains": markFunction(function( text ) {
+ return function( elem ) {
+ return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
+ };
+ }),
+
+ // "Whether an element is represented by a :lang() selector
+ // is based solely on the element's language value
+ // being equal to the identifier C,
+ // or beginning with the identifier C immediately followed by "-".
+ // The matching of C against the element's language value is performed case-insensitively.
+ // The identifier C does not have to be a valid language name."
+ // http://www.w3.org/TR/selectors/#lang-pseudo
+ "lang": markFunction( function( lang ) {
+ // lang value must be a valid identifider
+ if ( !ridentifier.test(lang || "") ) {
+ Sizzle.error( "unsupported lang: " + lang );
+ }
+ lang = lang.replace( runescape, funescape ).toLowerCase();
+ return function( elem ) {
+ var elemLang;
+ do {
+ if ( (elemLang = documentIsXML ?
+ elem.getAttribute("xml:lang") || elem.getAttribute("lang") :
+ elem.lang) ) {
+
+ elemLang = elemLang.toLowerCase();
+ return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
+ }
+ } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
+ return false;
+ };
+ }),
+
+ // Miscellaneous
+ "target": function( elem ) {
+ var hash = window.location && window.location.hash;
+ return hash && hash.slice( 1 ) === elem.id;
+ },
+
+ "root": function( elem ) {
+ return elem === docElem;
+ },
+
+ "focus": function( elem ) {
+ return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
+ },
+
+ // Boolean properties
+ "enabled": function( elem ) {
+ return elem.disabled === false;
+ },
+
+ "disabled": function( elem ) {
+ return elem.disabled === true;
+ },
+
+ "checked": function( elem ) {
+ // In CSS3, :checked should return both checked and selected elements
+ // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+ var nodeName = elem.nodeName.toLowerCase();
+ return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
+ },
+
+ "selected": function( elem ) {
+ // Accessing this property makes selected-by-default
+ // options in Safari work properly
+ if ( elem.parentNode ) {
+ elem.parentNode.selectedIndex;
+ }
+
+ return elem.selected === true;
+ },
+
+ // Contents
+ "empty": function( elem ) {
+ // http://www.w3.org/TR/selectors/#empty-pseudo
+ // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),
+ // not comment, processing instructions, or others
+ // Thanks to Diego Perini for the nodeName shortcut
+ // Greater than "@" means alpha characters (specifically not starting with "#" or "?")
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+ if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) {
+ return false;
+ }
+ }
+ return true;
+ },
+
+ "parent": function( elem ) {
+ return !Expr.pseudos["empty"]( elem );
+ },
+
+ // Element/input types
+ "header": function( elem ) {
+ return rheader.test( elem.nodeName );
+ },
+
+ "input": function( elem ) {
+ return rinputs.test( elem.nodeName );
+ },
+
+ "button": function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return name === "input" && elem.type === "button" || name === "button";
+ },
+
+ "text": function( elem ) {
+ var attr;
+ // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
+ // use getAttribute instead to test this case
+ return elem.nodeName.toLowerCase() === "input" &&
+ elem.type === "text" &&
+ ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type );
+ },
+
+ // Position-in-collection
+ "first": createPositionalPseudo(function() {
+ return [ 0 ];
+ }),
+
+ "last": createPositionalPseudo(function( matchIndexes, length ) {
+ return [ length - 1 ];
+ }),
+
+ "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
+ return [ argument < 0 ? argument + length : argument ];
+ }),
+
+ "even": createPositionalPseudo(function( matchIndexes, length ) {
+ var i = 0;
+ for ( ; i < length; i += 2 ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "odd": createPositionalPseudo(function( matchIndexes, length ) {
+ var i = 1;
+ for ( ; i < length; i += 2 ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+ var i = argument < 0 ? argument + length : argument;
+ for ( ; --i >= 0; ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+ var i = argument < 0 ? argument + length : argument;
+ for ( ; ++i < length; ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ })
+ }
+};
+
+// Add button/input type pseudos
+for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
+ Expr.pseudos[ i ] = createInputPseudo( i );
+}
+for ( i in { submit: true, reset: true } ) {
+ Expr.pseudos[ i ] = createButtonPseudo( i );
+}
+
+function tokenize( selector, parseOnly ) {
+ var matched, match, tokens, type,
+ soFar, groups, preFilters,
+ cached = tokenCache[ selector + " " ];
+
+ if ( cached ) {
+ return parseOnly ? 0 : cached.slice( 0 );
+ }
+
+ soFar = selector;
+ groups = [];
+ preFilters = Expr.preFilter;
+
+ while ( soFar ) {
+
+ // Comma and first run
+ if ( !matched || (match = rcomma.exec( soFar )) ) {
+ if ( match ) {
+ // Don't consume trailing commas as valid
+ soFar = soFar.slice( match[0].length ) || soFar;
+ }
+ groups.push( tokens = [] );
+ }
+
+ matched = false;
+
+ // Combinators
+ if ( (match = rcombinators.exec( soFar )) ) {
+ matched = match.shift();
+ tokens.push( {
+ value: matched,
+ // Cast descendant combinators to space
+ type: match[0].replace( rtrim, " " )
+ } );
+ soFar = soFar.slice( matched.length );
+ }
+
+ // Filters
+ for ( type in Expr.filter ) {
+ if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
+ (match = preFilters[ type ]( match ))) ) {
+ matched = match.shift();
+ tokens.push( {
+ value: matched,
+ type: type,
+ matches: match
+ } );
+ soFar = soFar.slice( matched.length );
+ }
+ }
+
+ if ( !matched ) {
+ break;
+ }
+ }
+
+ // Return the length of the invalid excess
+ // if we're just parsing
+ // Otherwise, throw an error or return tokens
+ return parseOnly ?
+ soFar.length :
+ soFar ?
+ Sizzle.error( selector ) :
+ // Cache the tokens
+ tokenCache( selector, groups ).slice( 0 );
+}
+
+function toSelector( tokens ) {
+ var i = 0,
+ len = tokens.length,
+ selector = "";
+ for ( ; i < len; i++ ) {
+ selector += tokens[i].value;
+ }
+ return selector;
+}
+
+function addCombinator( matcher, combinator, base ) {
+ var dir = combinator.dir,
+ checkNonElements = base && dir === "parentNode",
+ doneName = done++;
+
+ return combinator.first ?
+ // Check against closest ancestor/preceding element
+ function( elem, context, xml ) {
+ while ( (elem = elem[ dir ]) ) {
+ if ( elem.nodeType === 1 || checkNonElements ) {
+ return matcher( elem, context, xml );
+ }
+ }
+ } :
+
+ // Check against all ancestor/preceding elements
+ function( elem, context, xml ) {
+ var data, cache, outerCache,
+ dirkey = dirruns + " " + doneName;
+
+ // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
+ if ( xml ) {
+ while ( (elem = elem[ dir ]) ) {
+ if ( elem.nodeType === 1 || checkNonElements ) {
+ if ( matcher( elem, context, xml ) ) {
+ return true;
+ }
+ }
+ }
+ } else {
+ while ( (elem = elem[ dir ]) ) {
+ if ( elem.nodeType === 1 || checkNonElements ) {
+ outerCache = elem[ expando ] || (elem[ expando ] = {});
+ if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) {
+ if ( (data = cache[1]) === true || data === cachedruns ) {
+ return data === true;
+ }
+ } else {
+ cache = outerCache[ dir ] = [ dirkey ];
+ cache[1] = matcher( elem, context, xml ) || cachedruns;
+ if ( cache[1] === true ) {
+ return true;
+ }
+ }
+ }
+ }
+ }
+ };
+}
+
+function elementMatcher( matchers ) {
+ return matchers.length > 1 ?
+ function( elem, context, xml ) {
+ var i = matchers.length;
+ while ( i-- ) {
+ if ( !matchers[i]( elem, context, xml ) ) {
+ return false;
+ }
+ }
+ return true;
+ } :
+ matchers[0];
+}
+
+function condense( unmatched, map, filter, context, xml ) {
+ var elem,
+ newUnmatched = [],
+ i = 0,
+ len = unmatched.length,
+ mapped = map != null;
+
+ for ( ; i < len; i++ ) {
+ if ( (elem = unmatched[i]) ) {
+ if ( !filter || filter( elem, context, xml ) ) {
+ newUnmatched.push( elem );
+ if ( mapped ) {
+ map.push( i );
+ }
+ }
+ }
+ }
+
+ return newUnmatched;
+}
+
+function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
+ if ( postFilter && !postFilter[ expando ] ) {
+ postFilter = setMatcher( postFilter );
+ }
+ if ( postFinder && !postFinder[ expando ] ) {
+ postFinder = setMatcher( postFinder, postSelector );
+ }
+ return markFunction(function( seed, results, context, xml ) {
+ var temp, i, elem,
+ preMap = [],
+ postMap = [],
+ preexisting = results.length,
+
+ // Get initial elements from seed or context
+ elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
+
+ // Prefilter to get matcher input, preserving a map for seed-results synchronization
+ matcherIn = preFilter && ( seed || !selector ) ?
+ condense( elems, preMap, preFilter, context, xml ) :
+ elems,
+
+ matcherOut = matcher ?
+ // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
+ postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
+
+ // ...intermediate processing is necessary
+ [] :
+
+ // ...otherwise use results directly
+ results :
+ matcherIn;
+
+ // Find primary matches
+ if ( matcher ) {
+ matcher( matcherIn, matcherOut, context, xml );
+ }
+
+ // Apply postFilter
+ if ( postFilter ) {
+ temp = condense( matcherOut, postMap );
+ postFilter( temp, [], context, xml );
+
+ // Un-match failing elements by moving them back to matcherIn
+ i = temp.length;
+ while ( i-- ) {
+ if ( (elem = temp[i]) ) {
+ matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
+ }
+ }
+ }
+
+ if ( seed ) {
+ if ( postFinder || preFilter ) {
+ if ( postFinder ) {
+ // Get the final matcherOut by condensing this intermediate into postFinder contexts
+ temp = [];
+ i = matcherOut.length;
+ while ( i-- ) {
+ if ( (elem = matcherOut[i]) ) {
+ // Restore matcherIn since elem is not yet a final match
+ temp.push( (matcherIn[i] = elem) );
+ }
+ }
+ postFinder( null, (matcherOut = []), temp, xml );
+ }
+
+ // Move matched elements from seed to results to keep them synchronized
+ i = matcherOut.length;
+ while ( i-- ) {
+ if ( (elem = matcherOut[i]) &&
+ (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {
+
+ seed[temp] = !(results[temp] = elem);
+ }
+ }
+ }
+
+ // Add elements to results, through postFinder if defined
+ } else {
+ matcherOut = condense(
+ matcherOut === results ?
+ matcherOut.splice( preexisting, matcherOut.length ) :
+ matcherOut
+ );
+ if ( postFinder ) {
+ postFinder( null, results, matcherOut, xml );
+ } else {
+ push.apply( results, matcherOut );
+ }
+ }
+ });
+}
+
+function matcherFromTokens( tokens ) {
+ var checkContext, matcher, j,
+ len = tokens.length,
+ leadingRelative = Expr.relative[ tokens[0].type ],
+ implicitRelative = leadingRelative || Expr.relative[" "],
+ i = leadingRelative ? 1 : 0,
+
+ // The foundational matcher ensures that elements are reachable from top-level context(s)
+ matchContext = addCombinator( function( elem ) {
+ return elem === checkContext;
+ }, implicitRelative, true ),
+ matchAnyContext = addCombinator( function( elem ) {
+ return indexOf.call( checkContext, elem ) > -1;
+ }, implicitRelative, true ),
+ matchers = [ function( elem, context, xml ) {
+ return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
+ (checkContext = context).nodeType ?
+ matchContext( elem, context, xml ) :
+ matchAnyContext( elem, context, xml ) );
+ } ];
+
+ for ( ; i < len; i++ ) {
+ if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
+ matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
+ } else {
+ matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
+
+ // Return special upon seeing a positional matcher
+ if ( matcher[ expando ] ) {
+ // Find the next relative operator (if any) for proper handling
+ j = ++i;
+ for ( ; j < len; j++ ) {
+ if ( Expr.relative[ tokens[j].type ] ) {
+ break;
+ }
+ }
+ return setMatcher(
+ i > 1 && elementMatcher( matchers ),
+ i > 1 && toSelector( tokens.slice( 0, i - 1 ) ).replace( rtrim, "$1" ),
+ matcher,
+ i < j && matcherFromTokens( tokens.slice( i, j ) ),
+ j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
+ j < len && toSelector( tokens )
+ );
+ }
+ matchers.push( matcher );
+ }
+ }
+
+ return elementMatcher( matchers );
+}
+
+function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
+ // A counter to specify which element is currently being matched
+ var matcherCachedRuns = 0,
+ bySet = setMatchers.length > 0,
+ byElement = elementMatchers.length > 0,
+ superMatcher = function( seed, context, xml, results, expandContext ) {
+ var elem, j, matcher,
+ setMatched = [],
+ matchedCount = 0,
+ i = "0",
+ unmatched = seed && [],
+ outermost = expandContext != null,
+ contextBackup = outermostContext,
+ // We must always have either seed elements or context
+ elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ),
+ // Use integer dirruns iff this is the outermost matcher
+ dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1);
+
+ if ( outermost ) {
+ outermostContext = context !== document && context;
+ cachedruns = matcherCachedRuns;
+ }
+
+ // Add elements passing elementMatchers directly to results
+ // Keep `i` a string if there are no elements so `matchedCount` will be "00" below
+ for ( ; (elem = elems[i]) != null; i++ ) {
+ if ( byElement && elem ) {
+ j = 0;
+ while ( (matcher = elementMatchers[j++]) ) {
+ if ( matcher( elem, context, xml ) ) {
+ results.push( elem );
+ break;
+ }
+ }
+ if ( outermost ) {
+ dirruns = dirrunsUnique;
+ cachedruns = ++matcherCachedRuns;
+ }
+ }
+
+ // Track unmatched elements for set filters
+ if ( bySet ) {
+ // They will have gone through all possible matchers
+ if ( (elem = !matcher && elem) ) {
+ matchedCount--;
+ }
+
+ // Lengthen the array for every element, matched or not
+ if ( seed ) {
+ unmatched.push( elem );
+ }
+ }
+ }
+
+ // Apply set filters to unmatched elements
+ matchedCount += i;
+ if ( bySet && i !== matchedCount ) {
+ j = 0;
+ while ( (matcher = setMatchers[j++]) ) {
+ matcher( unmatched, setMatched, context, xml );
+ }
+
+ if ( seed ) {
+ // Reintegrate element matches to eliminate the need for sorting
+ if ( matchedCount > 0 ) {
+ while ( i-- ) {
+ if ( !(unmatched[i] || setMatched[i]) ) {
+ setMatched[i] = pop.call( results );
+ }
+ }
+ }
+
+ // Discard index placeholder values to get only actual matches
+ setMatched = condense( setMatched );
+ }
+
+ // Add matches to results
+ push.apply( results, setMatched );
+
+ // Seedless set matches succeeding multiple successful matchers stipulate sorting
+ if ( outermost && !seed && setMatched.length > 0 &&
+ ( matchedCount + setMatchers.length ) > 1 ) {
+
+ Sizzle.uniqueSort( results );
+ }
+ }
+
+ // Override manipulation of globals by nested matchers
+ if ( outermost ) {
+ dirruns = dirrunsUnique;
+ outermostContext = contextBackup;
+ }
+
+ return unmatched;
+ };
+
+ return bySet ?
+ markFunction( superMatcher ) :
+ superMatcher;
+}
+
+compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
+ var i,
+ setMatchers = [],
+ elementMatchers = [],
+ cached = compilerCache[ selector + " " ];
+
+ if ( !cached ) {
+ // Generate a function of recursive functions that can be used to check each element
+ if ( !group ) {
+ group = tokenize( selector );
+ }
+ i = group.length;
+ while ( i-- ) {
+ cached = matcherFromTokens( group[i] );
+ if ( cached[ expando ] ) {
+ setMatchers.push( cached );
+ } else {
+ elementMatchers.push( cached );
+ }
+ }
+
+ // Cache the compiled function
+ cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
+ }
+ return cached;
+};
+
+function multipleContexts( selector, contexts, results ) {
+ var i = 0,
+ len = contexts.length;
+ for ( ; i < len; i++ ) {
+ Sizzle( selector, contexts[i], results );
+ }
+ return results;
+}
+
+function select( selector, context, results, seed ) {
+ var i, tokens, token, type, find,
+ match = tokenize( selector );
+
+ if ( !seed ) {
+ // Try to minimize operations if there is only one group
+ if ( match.length === 1 ) {
+
+ // Take a shortcut and set the context if the root selector is an ID
+ tokens = match[0] = match[0].slice( 0 );
+ if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
+ context.nodeType === 9 && !documentIsXML &&
+ Expr.relative[ tokens[1].type ] ) {
+
+ context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
+ if ( !context ) {
+ return results;
+ }
+
+ selector = selector.slice( tokens.shift().value.length );
+ }
+
+ // Fetch a seed set for right-to-left matching
+ i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
+ while ( i-- ) {
+ token = tokens[i];
+
+ // Abort if we hit a combinator
+ if ( Expr.relative[ (type = token.type) ] ) {
+ break;
+ }
+ if ( (find = Expr.find[ type ]) ) {
+ // Search, expanding context for leading sibling combinators
+ if ( (seed = find(
+ token.matches[0].replace( runescape, funescape ),
+ rsibling.test( tokens[0].type ) && context.parentNode || context
+ )) ) {
+
+ // If seed is empty or no tokens remain, we can return early
+ tokens.splice( i, 1 );
+ selector = seed.length && toSelector( tokens );
+ if ( !selector ) {
+ push.apply( results, seed );
+ return results;
+ }
+
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ // Compile and execute a filtering function
+ // Provide `match` to avoid retokenization if we modified the selector above
+ compile( selector, match )(
+ seed,
+ context,
+ documentIsXML,
+ results,
+ rsibling.test( selector )
+ );
+ return results;
+}
+
+// Deprecated
+Expr.pseudos["nth"] = Expr.pseudos["eq"];
+
+// Easy API for creating new setFilters
+function setFilters() {}
+setFilters.prototype = Expr.filters = Expr.pseudos;
+Expr.setFilters = new setFilters();
+
+// Check sort stability
+support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
+
+// Initialize with the default document
+setDocument();
+
+// Always assume the presence of duplicates if sort doesn't
+// pass them to our comparison function (as in Google Chrome).
+[0, 0].sort( sortOrder );
+support.detectDuplicates = hasDuplicate;
+
+// Override sizzle attribute retrieval
+Sizzle.attr = jQuery.attr;
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.pseudos;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+})( window );
+var runtil = /Until$/,
+ rparentsprev = /^(?:parents|prev(?:Until|All))/,
+ isSimple = /^.[^:#\[\.,]*$/,
+ rneedsContext = jQuery.expr.match.needsContext,
+ // methods guaranteed to produce a unique set when starting from a unique set
+ guaranteedUnique = {
+ children: true,
+ contents: true,
+ next: true,
+ prev: true
+ };
+
+jQuery.fn.extend({
+ find: function( selector ) {
+ var self, matched, i,
+ l = this.length;
+
+ if ( typeof selector !== "string" ) {
+ self = this;
+ return this.pushStack( jQuery( selector ).filter(function() {
+ for ( i = 0; i < l; i++ ) {
+ if ( jQuery.contains( self[ i ], this ) ) {
+ return true;
+ }
+ }
+ }) );
+ }
+
+ matched = [];
+ for ( i = 0; i < l; i++ ) {
+ jQuery.find( selector, this[ i ], matched );
+ }
+
+ // Needed because $( selector, context ) becomes $( context ).find( selector )
+ matched = this.pushStack( l > 1 ? jQuery.unique( matched ) : matched );
+ matched.selector = ( this.selector ? this.selector + " " : "" ) + selector;
+ return matched;
+ },
+
+ has: function( target ) {
+ var targets = jQuery( target, this ),
+ l = targets.length;
+
+ return this.filter(function() {
+ var i = 0;
+ for ( ; i < l; i++ ) {
+ if ( jQuery.contains( this, targets[i] ) ) {
+ return true;
+ }
+ }
+ });
+ },
+
+ not: function( selector ) {
+ return this.pushStack( winnow(this, selector, false) );
+ },
+
+ filter: function( selector ) {
+ return this.pushStack( winnow(this, selector, true) );
+ },
+
+ is: function( selector ) {
+ return !!selector && (
+ typeof selector === "string" ?
+ // If this is a positional/relative selector, check membership in the returned set
+ // so $("p:first").is("p:last") won't return true for a doc with two "p".
+ rneedsContext.test( selector ) ?
+ jQuery( selector, this.context ).index( this[ 0 ] ) >= 0 :
+ jQuery.filter( selector, this ).length > 0 :
+ this.filter( selector ).length > 0 );
+ },
+
+ closest: function( selectors, context ) {
+ var cur,
+ i = 0,
+ l = this.length,
+ matched = [],
+ pos = ( rneedsContext.test( selectors ) || typeof selectors !== "string" ) ?
+ jQuery( selectors, context || this.context ) :
+ 0;
+
+ for ( ; i < l; i++ ) {
+ for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
+ // Always skip document fragments
+ if ( cur.nodeType < 11 && (pos ?
+ pos.index(cur) > -1 :
+
+ // Don't pass non-elements to Sizzle
+ cur.nodeType === 1 &&
+ jQuery.find.matchesSelector(cur, selectors)) ) {
+
+ cur = matched.push( cur );
+ break;
+ }
+ }
+ }
+
+ return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
+ },
+
+ // Determine the position of an element within
+ // the matched set of elements
+ index: function( elem ) {
+
+ // No argument, return index in parent
+ if ( !elem ) {
+ return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
+ }
+
+ // index in selector
+ if ( typeof elem === "string" ) {
+ return core_indexOf.call( jQuery( elem ), this[ 0 ] );
+ }
+
+ // Locate the position of the desired element
+ return core_indexOf.call( this,
+
+ // If it receives a jQuery object, the first element is used
+ elem.jquery ? elem[ 0 ] : elem
+ );
+ },
+
+ add: function( selector, context ) {
+ var set = typeof selector === "string" ?
+ jQuery( selector, context ) :
+ jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
+ all = jQuery.merge( this.get(), set );
+
+ return this.pushStack( jQuery.unique(all) );
+ },
+
+ addBack: function( selector ) {
+ return this.add( selector == null ?
+ this.prevObject : this.prevObject.filter(selector)
+ );
+ }
+});
+
+function sibling( cur, dir ) {
+ while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {}
+
+ return cur;
+}
+
+jQuery.each({
+ parent: function( elem ) {
+ var parent = elem.parentNode;
+ return parent && parent.nodeType !== 11 ? parent : null;
+ },
+ parents: function( elem ) {
+ return jQuery.dir( elem, "parentNode" );
+ },
+ parentsUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "parentNode", until );
+ },
+ next: function( elem ) {
+ return sibling( elem, "nextSibling" );
+ },
+ prev: function( elem ) {
+ return sibling( elem, "previousSibling" );
+ },
+ nextAll: function( elem ) {
+ return jQuery.dir( elem, "nextSibling" );
+ },
+ prevAll: function( elem ) {
+ return jQuery.dir( elem, "previousSibling" );
+ },
+ nextUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "nextSibling", until );
+ },
+ prevUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "previousSibling", until );
+ },
+ siblings: function( elem ) {
+ return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
+ },
+ children: function( elem ) {
+ return jQuery.sibling( elem.firstChild );
+ },
+ contents: function( elem ) {
+ return jQuery.nodeName( elem, "iframe" ) ?
+ elem.contentDocument || elem.contentWindow.document :
+ jQuery.merge( [], elem.childNodes );
+ }
+}, function( name, fn ) {
+ jQuery.fn[ name ] = function( until, selector ) {
+ var matched = jQuery.map( this, fn, until );
+
+ if ( !runtil.test( name ) ) {
+ selector = until;
+ }
+
+ if ( selector && typeof selector === "string" ) {
+ matched = jQuery.filter( selector, matched );
+ }
+
+ if ( this.length > 1 ) {
+ if ( !guaranteedUnique[ name ] ) {
+ jQuery.unique( matched );
+ }
+
+ if ( rparentsprev.test( name ) ) {
+ matched.reverse();
+ }
+ }
+
+ return this.pushStack( matched );
+ };
+});
+
+jQuery.extend({
+ filter: function( expr, elems, not ) {
+ if ( not ) {
+ expr = ":not(" + expr + ")";
+ }
+
+ return elems.length === 1 ?
+ jQuery.find.matchesSelector( elems[ 0 ], expr ) ? [ elems[ 0 ] ] : [] :
+ jQuery.find.matches( expr, elems );
+ },
+
+ dir: function( elem, dir, until ) {
+ var matched = [],
+ truncate = until !== undefined;
+
+ while ( (elem = elem[ dir ]) && elem.nodeType !== 9 ) {
+ if ( elem.nodeType === 1 ) {
+ if ( truncate && jQuery( elem ).is( until ) ) {
+ break;
+ }
+ matched.push( elem );
+ }
+ }
+ return matched;
+ },
+
+ sibling: function( n, elem ) {
+ var matched = [];
+
+ for ( ; n; n = n.nextSibling ) {
+ if ( n.nodeType === 1 && n !== elem ) {
+ matched.push( n );
+ }
+ }
+
+ return matched;
+ }
+});
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, keep ) {
+
+ // Can't pass null or undefined to indexOf in Firefox 4
+ // Set to 0 to skip string check
+ qualifier = qualifier || 0;
+
+ var filtered;
+
+ if ( jQuery.isFunction( qualifier ) ) {
+ return jQuery.grep(elements, function( elem, i ) {
+ var retVal = !!qualifier.call( elem, i, elem );
+ return retVal === keep;
+ });
+ }
+
+ if ( qualifier.nodeType ) {
+ return jQuery.grep(elements, function( elem ) {
+ return ( elem === qualifier ) === keep;
+ });
+ }
+
+ if ( typeof qualifier === "string" ) {
+ filtered = jQuery.grep(elements, function( elem ) {
+ return elem.nodeType === 1;
+ });
+
+ if ( isSimple.test( qualifier ) ) {
+ return jQuery.filter( qualifier, filtered, !keep );
+ }
+
+ qualifier = jQuery.filter( qualifier, filtered );
+ }
+
+ return jQuery.grep(elements, function( elem ) {
+ return ( core_indexOf.call( qualifier, elem ) >= 0 ) === keep;
+ });
+}
+var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
+ rtagName = /<([\w:]+)/,
+ rhtml = /<|?\w+;/,
+ rnoInnerhtml = /<(?:script|style|link)/i,
+ manipulation_rcheckableType = /^(?:checkbox|radio)$/i,
+ // checked="checked" or checked
+ rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+ rscriptType = /^$|\/(?:java|ecma)script/i,
+ rscriptTypeMasked = /^true\/(.*)/,
+ rcleanScript = /^\s*\s*$/g,
+
+ // We have to close these tags to support XHTML (#13200)
+ wrapMap = {
+
+ // Support: IE 9
+ option: [ 1, "", " " ],
+
+ thead: [ 1, "" ],
+ tr: [ 2, "" ],
+ td: [ 3, "" ],
+
+ _default: [ 0, "", "" ]
+ };
+
+// Support: IE 9
+wrapMap.optgroup = wrapMap.option;
+
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.col = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+jQuery.fn.extend({
+ text: function( value ) {
+ return jQuery.access( this, function( value ) {
+ return value === undefined ?
+ jQuery.text( this ) :
+ this.empty().append( ( this[ 0 ] && this[ 0 ].ownerDocument || document ).createTextNode( value ) );
+ }, null, value, arguments.length );
+ },
+
+ wrapAll: function( html ) {
+ var wrap;
+
+ if ( jQuery.isFunction( html ) ) {
+ return this.each(function( i ) {
+ jQuery( this ).wrapAll( html.call(this, i) );
+ });
+ }
+
+ if ( this[ 0 ] ) {
+
+ // The elements to wrap the target around
+ wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
+
+ if ( this[ 0 ].parentNode ) {
+ wrap.insertBefore( this[ 0 ] );
+ }
+
+ wrap.map(function() {
+ var elem = this;
+
+ while ( elem.firstElementChild ) {
+ elem = elem.firstElementChild;
+ }
+
+ return elem;
+ }).append( this );
+ }
+
+ return this;
+ },
+
+ wrapInner: function( html ) {
+ if ( jQuery.isFunction( html ) ) {
+ return this.each(function( i ) {
+ jQuery( this ).wrapInner( html.call(this, i) );
+ });
+ }
+
+ return this.each(function() {
+ var self = jQuery( this ),
+ contents = self.contents();
+
+ if ( contents.length ) {
+ contents.wrapAll( html );
+
+ } else {
+ self.append( html );
+ }
+ });
+ },
+
+ wrap: function( html ) {
+ var isFunction = jQuery.isFunction( html );
+
+ return this.each(function( i ) {
+ jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
+ });
+ },
+
+ unwrap: function() {
+ return this.parent().each(function() {
+ if ( !jQuery.nodeName( this, "body" ) ) {
+ jQuery( this ).replaceWith( this.childNodes );
+ }
+ }).end();
+ },
+
+ append: function() {
+ return this.domManip(arguments, true, function( elem ) {
+ if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
+ this.appendChild( elem );
+ }
+ });
+ },
+
+ prepend: function() {
+ return this.domManip(arguments, true, function( elem ) {
+ if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
+ this.insertBefore( elem, this.firstChild );
+ }
+ });
+ },
+
+ before: function() {
+ return this.domManip(arguments, false, function( elem ) {
+ if ( this.parentNode ) {
+ this.parentNode.insertBefore( elem, this );
+ }
+ });
+ },
+
+ after: function() {
+ return this.domManip(arguments, false, function( elem ) {
+ if ( this.parentNode ) {
+ this.parentNode.insertBefore( elem, this.nextSibling );
+ }
+ });
+ },
+
+ // keepData is for internal use only--do not document
+ remove: function( selector, keepData ) {
+ var elem,
+ i = 0,
+ l = this.length;
+
+ for ( ; i < l; i++ ) {
+ elem = this[ i ];
+
+ if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) {
+ if ( !keepData && elem.nodeType === 1 ) {
+ jQuery.cleanData( getAll( elem ) );
+ }
+
+ if ( elem.parentNode ) {
+ if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
+ setGlobalEval( getAll( elem, "script" ) );
+ }
+ elem.parentNode.removeChild( elem );
+ }
+ }
+ }
+
+ return this;
+ },
+
+ empty: function() {
+ var elem,
+ i = 0,
+ l = this.length;
+
+ for ( ; i < l; i++ ) {
+ elem = this[ i ];
+
+ if ( elem.nodeType === 1 ) {
+
+ // Prevent memory leaks
+ jQuery.cleanData( getAll( elem, false ) );
+
+ // Remove any remaining nodes
+ elem.textContent = "";
+ }
+ }
+
+ return this;
+ },
+
+ clone: function( dataAndEvents, deepDataAndEvents ) {
+ dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+ deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+ return this.map( function () {
+ return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+ });
+ },
+
+ html: function( value ) {
+ return jQuery.access( this, function( value ) {
+ var elem = this[ 0 ] || {},
+ i = 0,
+ l = this.length;
+
+ if ( value === undefined && elem.nodeType === 1 ) {
+ return elem.innerHTML;
+ }
+
+ // See if we can take a shortcut and just use innerHTML
+ if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
+ !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
+
+ value = value.replace( rxhtmlTag, "<$1>$2>" );
+
+ try {
+ for ( ; i < l; i++ ) {
+ elem = this[ i ] || {};
+
+ // Remove element nodes and prevent memory leaks
+ if ( elem.nodeType === 1 ) {
+ jQuery.cleanData( getAll( elem, false ) );
+ elem.innerHTML = value;
+ }
+ }
+
+ elem = 0;
+
+ // If using innerHTML throws an exception, use the fallback method
+ } catch( e ) {}
+ }
+
+ if ( elem ) {
+ this.empty().append( value );
+ }
+ }, null, value, arguments.length );
+ },
+
+ replaceWith: function( value ) {
+ var isFunction = jQuery.isFunction( value );
+
+ // Make sure that the elements are removed from the DOM before they are inserted
+ // this can help fix replacing a parent with child elements
+ if ( !isFunction && typeof value !== "string" ) {
+ value = jQuery( value ).not( this ).detach();
+ }
+
+ return value !== "" ?
+ this.domManip( [ value ], true, function( elem ) {
+ var next = this.nextSibling,
+ parent = this.parentNode;
+
+ if ( parent ) {
+ jQuery( this ).remove();
+ parent.insertBefore( elem, next );
+ }
+ }) :
+ this.remove();
+ },
+
+ detach: function( selector ) {
+ return this.remove( selector, true );
+ },
+
+ domManip: function( args, table, callback ) {
+
+ // Flatten any nested arrays
+ args = core_concat.apply( [], args );
+
+ var fragment, first, scripts, hasScripts, node, doc,
+ i = 0,
+ l = this.length,
+ set = this,
+ iNoClone = l - 1,
+ value = args[ 0 ],
+ isFunction = jQuery.isFunction( value );
+
+ // We can't cloneNode fragments that contain checked, in WebKit
+ if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) {
+ return this.each(function( index ) {
+ var self = set.eq( index );
+ if ( isFunction ) {
+ args[ 0 ] = value.call( this, index, table ? self.html() : undefined );
+ }
+ self.domManip( args, table, callback );
+ });
+ }
+
+ if ( l ) {
+ fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );
+ first = fragment.firstChild;
+
+ if ( fragment.childNodes.length === 1 ) {
+ fragment = first;
+ }
+
+ if ( first ) {
+ table = table && jQuery.nodeName( first, "tr" );
+ scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
+ hasScripts = scripts.length;
+
+ // Use the original fragment for the last item instead of the first because it can end up
+ // being emptied incorrectly in certain situations (#8070).
+ for ( ; i < l; i++ ) {
+ node = fragment;
+
+ if ( i !== iNoClone ) {
+ node = jQuery.clone( node, true, true );
+
+ // Keep references to cloned scripts for later restoration
+ if ( hasScripts ) {
+ // Support: QtWebKit
+ // jQuery.merge because core_push.apply(_, arraylike) throws
+ jQuery.merge( scripts, getAll( node, "script" ) );
+ }
+ }
+
+ callback.call(
+ table && jQuery.nodeName( this[ i ], "table" ) ?
+ findOrAppend( this[ i ], "tbody" ) :
+ this[ i ],
+ node,
+ i
+ );
+ }
+
+ if ( hasScripts ) {
+ doc = scripts[ scripts.length - 1 ].ownerDocument;
+
+ // Reenable scripts
+ jQuery.map( scripts, restoreScript );
+
+ // Evaluate executable scripts on first document insertion
+ for ( i = 0; i < hasScripts; i++ ) {
+ node = scripts[ i ];
+ if ( rscriptType.test( node.type || "" ) &&
+ !data_priv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
+
+ if ( node.src ) {
+ // Hope ajax is available...
+ jQuery.ajax({
+ url: node.src,
+ type: "GET",
+ dataType: "script",
+ async: false,
+ global: false,
+ "throws": true
+ });
+ } else {
+ jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return this;
+ }
+});
+
+jQuery.each({
+ appendTo: "append",
+ prependTo: "prepend",
+ insertBefore: "before",
+ insertAfter: "after",
+ replaceAll: "replaceWith"
+}, function( name, original ) {
+ jQuery.fn[ name ] = function( selector ) {
+ var elems,
+ ret = [],
+ insert = jQuery( selector ),
+ last = insert.length - 1,
+ i = 0;
+
+ for ( ; i <= last; i++ ) {
+ elems = i === last ? this : this.clone( true );
+ jQuery( insert[ i ] )[ original ]( elems );
+
+ // Support: QtWebKit
+ // .get() because core_push.apply(_, arraylike) throws
+ core_push.apply( ret, elems.get() );
+ }
+
+ return this.pushStack( ret );
+ };
+});
+
+jQuery.extend({
+ clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+ var i, l, srcElements, destElements,
+ clone = elem.cloneNode( true ),
+ inPage = jQuery.contains( elem.ownerDocument, elem );
+
+ // Support: IE >=9
+ // Fix Cloning issues
+ if ( !jQuery.support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) {
+
+ // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
+ destElements = getAll( clone );
+ srcElements = getAll( elem );
+
+ for ( i = 0, l = srcElements.length; i < l; i++ ) {
+ fixInput( srcElements[ i ], destElements[ i ] );
+ }
+ }
+
+ // Copy the events from the original to the clone
+ if ( dataAndEvents ) {
+ if ( deepDataAndEvents ) {
+ srcElements = srcElements || getAll( elem );
+ destElements = destElements || getAll( clone );
+
+ for ( i = 0, l = srcElements.length; i < l; i++ ) {
+ cloneCopyEvent( srcElements[ i ], destElements[ i ] );
+ }
+ } else {
+ cloneCopyEvent( elem, clone );
+ }
+ }
+
+ // Preserve script evaluation history
+ destElements = getAll( clone, "script" );
+ if ( destElements.length > 0 ) {
+ setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
+ }
+
+ // Return the cloned set
+ return clone;
+ },
+
+ buildFragment: function( elems, context, scripts, selection ) {
+ var elem, tmp, tag, wrap, contains, j,
+ i = 0,
+ l = elems.length,
+ fragment = context.createDocumentFragment(),
+ nodes = [];
+
+ for ( ; i < l; i++ ) {
+ elem = elems[ i ];
+
+ if ( elem || elem === 0 ) {
+
+ // Add nodes directly
+ if ( jQuery.type( elem ) === "object" ) {
+ // Support: QtWebKit
+ // jQuery.merge because core_push.apply(_, arraylike) throws
+ jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
+
+ // Convert non-html into a text node
+ } else if ( !rhtml.test( elem ) ) {
+ nodes.push( context.createTextNode( elem ) );
+
+ // Convert html into DOM nodes
+ } else {
+ tmp = tmp || fragment.appendChild( context.createElement("div") );
+
+ // Deserialize a standard representation
+ tag = ( rtagName.exec( elem ) || ["", ""] )[ 1 ].toLowerCase();
+ wrap = wrapMap[ tag ] || wrapMap._default;
+ tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1>$2>" ) + wrap[ 2 ];
+
+ // Descend through wrappers to the right content
+ j = wrap[ 0 ];
+ while ( j-- ) {
+ tmp = tmp.firstChild;
+ }
+
+ // Support: QtWebKit
+ // jQuery.merge because core_push.apply(_, arraylike) throws
+ jQuery.merge( nodes, tmp.childNodes );
+
+ // Remember the top-level container
+ tmp = fragment.firstChild;
+
+ // Fixes #12346
+ // Support: Webkit, IE
+ tmp.textContent = "";
+ }
+ }
+ }
+
+ // Remove wrapper from fragment
+ fragment.textContent = "";
+
+ i = 0;
+ while ( (elem = nodes[ i++ ]) ) {
+
+ // #4087 - If origin and destination elements are the same, and this is
+ // that element, do not do anything
+ if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {
+ continue;
+ }
+
+ contains = jQuery.contains( elem.ownerDocument, elem );
+
+ // Append to fragment
+ tmp = getAll( fragment.appendChild( elem ), "script" );
+
+ // Preserve script evaluation history
+ if ( contains ) {
+ setGlobalEval( tmp );
+ }
+
+ // Capture executables
+ if ( scripts ) {
+ j = 0;
+ while ( (elem = tmp[ j++ ]) ) {
+ if ( rscriptType.test( elem.type || "" ) ) {
+ scripts.push( elem );
+ }
+ }
+ }
+ }
+
+ return fragment;
+ },
+
+ cleanData: function( elems, /* internal */ acceptData ) {
+ var data, elem, type,
+ l = elems.length,
+ i = 0,
+ special = jQuery.event.special;
+
+ for ( ; i < l; i++ ) {
+ elem = elems[ i ];
+
+ if ( acceptData || jQuery.acceptData( elem ) ) {
+
+ data = data_priv.access( elem );
+
+ if ( data ) {
+ for ( type in data.events ) {
+ if ( special[ type ] ) {
+ jQuery.event.remove( elem, type );
+
+ // This is a shortcut to avoid jQuery.event.remove's overhead
+ } else {
+ jQuery.removeEvent( elem, type, data.handle );
+ }
+ }
+ }
+ }
+ // Discard any remaining `private` and `user` data
+ data_discard( elem );
+ }
+ }
+});
+
+function findOrAppend( elem, tag ) {
+ return elem.getElementsByTagName( tag )[ 0 ] || elem.appendChild( elem.ownerDocument.createElement(tag) );
+}
+
+// Replace/restore the type attribute of script elements for safe DOM manipulation
+function disableScript( elem ) {
+ var attr = elem.getAttributeNode("type");
+ elem.type = ( attr && attr.specified ) + "/" + elem.type;
+ return elem;
+}
+function restoreScript( elem ) {
+ var match = rscriptTypeMasked.exec( elem.type );
+
+ if ( match ) {
+ elem.type = match[ 1 ];
+ } else {
+ elem.removeAttribute("type");
+ }
+
+ return elem;
+}
+
+// Mark scripts as having already been evaluated
+function setGlobalEval( elems, refElements ) {
+ var l = elems.length,
+ i = 0;
+
+ for ( ; i < l; i++ ) {
+ data_priv.set(
+ elems[ i ], "globalEval", !refElements || data_priv.get( refElements[ i ], "globalEval" )
+ );
+ }
+}
+
+function cloneCopyEvent( src, dest ) {
+ var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
+
+ if ( dest.nodeType !== 1 ) {
+ return;
+ }
+
+ // 1. Copy private data: events, handlers, etc.
+ if ( data_priv.hasData( src ) ) {
+ pdataOld = data_priv.access( src );
+ pdataCur = jQuery.extend( {}, pdataOld );
+ events = pdataOld.events;
+
+ data_priv.set( dest, pdataCur );
+
+ if ( events ) {
+ delete pdataCur.handle;
+ pdataCur.events = {};
+
+ for ( type in events ) {
+ for ( i = 0, l = events[ type ].length; i < l; i++ ) {
+ jQuery.event.add( dest, type, events[ type ][ i ] );
+ }
+ }
+ }
+ }
+
+ // 2. Copy user data
+ if ( data_user.hasData( src ) ) {
+ udataOld = data_user.access( src );
+ udataCur = jQuery.extend( {}, udataOld );
+
+ data_user.set( dest, udataCur );
+ }
+}
+
+
+function getAll( context, tag ) {
+ var ret = context.getElementsByTagName ? context.getElementsByTagName( tag || "*" ) :
+ context.querySelectorAll ? context.querySelectorAll( tag || "*" ) :
+ [];
+
+ return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
+ jQuery.merge( [ context ], ret ) :
+ ret;
+}
+
+// Support: IE >= 9
+function fixInput( src, dest ) {
+ var nodeName = dest.nodeName.toLowerCase();
+
+ // Fails to persist the checked state of a cloned checkbox or radio button.
+ if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) {
+ dest.checked = src.checked;
+
+ // Fails to return the selected option to the default selected state when cloning options
+ } else if ( nodeName === "input" || nodeName === "textarea" ) {
+ dest.defaultValue = src.defaultValue;
+ }
+}
+var curCSS, iframe,
+ // swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
+ // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
+ rdisplayswap = /^(none|table(?!-c[ea]).+)/,
+ rmargin = /^margin/,
+ rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ),
+ rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ),
+ rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ),
+ elemdisplay = { BODY: "block" },
+
+ cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+ cssNormalTransform = {
+ letterSpacing: 0,
+ fontWeight: 400
+ },
+
+ cssExpand = [ "Top", "Right", "Bottom", "Left" ],
+ cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
+
+// return a css property mapped to a potentially vendor prefixed property
+function vendorPropName( style, name ) {
+
+ // shortcut for names that are not vendor prefixed
+ if ( name in style ) {
+ return name;
+ }
+
+ // check for vendor prefixed names
+ var capName = name.charAt(0).toUpperCase() + name.slice(1),
+ origName = name,
+ i = cssPrefixes.length;
+
+ while ( i-- ) {
+ name = cssPrefixes[ i ] + capName;
+ if ( name in style ) {
+ return name;
+ }
+ }
+
+ return origName;
+}
+
+function isHidden( elem, el ) {
+ // isHidden might be called from jQuery#filter function;
+ // in that case, element will be second argument
+ elem = el || elem;
+ return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
+}
+
+// NOTE: we've included the "window" in window.getComputedStyle
+// because jsdom on node.js will break without it.
+function getStyles( elem ) {
+ return window.getComputedStyle( elem, null );
+}
+
+function showHide( elements, show ) {
+ var display, elem, hidden,
+ values = [],
+ index = 0,
+ length = elements.length;
+
+ for ( ; index < length; index++ ) {
+ elem = elements[ index ];
+ if ( !elem.style ) {
+ continue;
+ }
+
+ values[ index ] = jQuery._data( elem, "olddisplay" );
+ display = elem.style.display;
+ if ( show ) {
+ // Reset the inline display of this element to learn if it is
+ // being hidden by cascaded rules or not
+ if ( !values[ index ] && display === "none" ) {
+ elem.style.display = "";
+ }
+
+ // Set elements which have been overridden with display: none
+ // in a stylesheet to whatever the default browser style is
+ // for such an element
+ if ( elem.style.display === "" && isHidden( elem ) ) {
+ values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) );
+ }
+ } else {
+
+ if ( !values[ index ] ) {
+ hidden = isHidden( elem );
+
+ if ( display && display !== "none" || !hidden ) {
+ jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
+ }
+ }
+ }
+ }
+
+ // Set the display of most of the elements in a second loop
+ // to avoid the constant reflow
+ for ( index = 0; index < length; index++ ) {
+ elem = elements[ index ];
+ if ( !elem.style ) {
+ continue;
+ }
+ if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
+ elem.style.display = show ? values[ index ] || "" : "none";
+ }
+ }
+
+ return elements;
+}
+
+jQuery.fn.extend({
+ css: function( name, value ) {
+ return jQuery.access( this, function( elem, name, value ) {
+ var styles, len,
+ map = {},
+ i = 0;
+
+ if ( jQuery.isArray( name ) ) {
+ styles = getStyles( elem );
+ len = name.length;
+
+ for ( ; i < len; i++ ) {
+ map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
+ }
+
+ return map;
+ }
+
+ return value !== undefined ?
+ jQuery.style( elem, name, value ) :
+ jQuery.css( elem, name );
+ }, name, value, arguments.length > 1 );
+ },
+ show: function() {
+ return showHide( this, true );
+ },
+ hide: function() {
+ return showHide( this );
+ },
+ toggle: function( state ) {
+ var bool = typeof state === "boolean";
+
+ return this.each(function() {
+ if ( bool ? state : isHidden( this ) ) {
+ jQuery( this ).show();
+ } else {
+ jQuery( this ).hide();
+ }
+ });
+ }
+});
+
+jQuery.extend({
+ // Add in style property hooks for overriding the default
+ // behavior of getting and setting a style property
+ cssHooks: {
+ opacity: {
+ get: function( elem, computed ) {
+ if ( computed ) {
+ // We should always get a number back from opacity
+ var ret = curCSS( elem, "opacity" );
+ return ret === "" ? "1" : ret;
+ }
+ }
+ }
+ },
+
+ // Exclude the following css properties to add px
+ cssNumber: {
+ "columnCount": true,
+ "fillOpacity": true,
+ "fontWeight": true,
+ "lineHeight": true,
+ "opacity": true,
+ "orphans": true,
+ "widows": true,
+ "zIndex": true,
+ "zoom": true
+ },
+
+ // Add in properties whose names you wish to fix before
+ // setting or getting the value
+ cssProps: {
+ // normalize float css property
+ "float": "cssFloat"
+ },
+
+ // Get and set the style property on a DOM Node
+ style: function( elem, name, value, extra ) {
+ // Don't set styles on text and comment nodes
+ if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+ return;
+ }
+
+ // Make sure that we're working with the right name
+ var ret, type, hooks,
+ origName = jQuery.camelCase( name ),
+ style = elem.style;
+
+ name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
+
+ // gets hook for the prefixed version
+ // followed by the unprefixed version
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
+
+ // Check if we're setting a value
+ if ( value !== undefined ) {
+ type = typeof value;
+
+ // convert relative number strings (+= or -=) to relative numbers. #7345
+ if ( type === "string" && (ret = rrelNum.exec( value )) ) {
+ value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
+ // Fixes bug #9237
+ type = "number";
+ }
+
+ // Make sure that NaN and null values aren't set. See: #7116
+ if ( value == null || type === "number" && isNaN( value ) ) {
+ return;
+ }
+
+ // If a number was passed in, add 'px' to the (except for certain CSS properties)
+ if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
+ value += "px";
+ }
+
+ // Fixes #8908, it can be done more correctly by specifying setters in cssHooks,
+ // but it would mean to define eight (for every problematic property) identical functions
+ if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
+ style[ name ] = "inherit";
+ }
+
+ // If a hook was provided, use that value, otherwise just set the specified value
+ if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
+ style[ name ] = value;
+ }
+
+ } else {
+ // If a hook was provided get the non-computed value from there
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
+ return ret;
+ }
+
+ // Otherwise just get the value from the style object
+ return style[ name ];
+ }
+ },
+
+ css: function( elem, name, extra, styles ) {
+ var val, num, hooks,
+ origName = jQuery.camelCase( name );
+
+ // Make sure that we're working with the right name
+ name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
+
+ // gets hook for the prefixed version
+ // followed by the unprefixed version
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
+
+ // If a hook was provided get the computed value from there
+ if ( hooks && "get" in hooks ) {
+ val = hooks.get( elem, true, extra );
+ }
+
+ // Otherwise, if a way to get the computed value exists, use that
+ if ( val === undefined ) {
+ val = curCSS( elem, name, styles );
+ }
+
+ //convert "normal" to computed value
+ if ( val === "normal" && name in cssNormalTransform ) {
+ val = cssNormalTransform[ name ];
+ }
+
+ // Return, converting to number if forced or a qualifier was provided and val looks numeric
+ if ( extra === "" || extra ) {
+ num = parseFloat( val );
+ return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
+ }
+ return val;
+ },
+
+ // A method for quickly swapping in/out CSS properties to get correct calculations
+ swap: function( elem, options, callback, args ) {
+ var ret, name,
+ old = {};
+
+ // Remember the old values, and insert the new ones
+ for ( name in options ) {
+ old[ name ] = elem.style[ name ];
+ elem.style[ name ] = options[ name ];
+ }
+
+ ret = callback.apply( elem, args || [] );
+
+ // Revert the old values
+ for ( name in options ) {
+ elem.style[ name ] = old[ name ];
+ }
+
+ return ret;
+ }
+});
+
+curCSS = function( elem, name, _computed ) {
+ var width, minWidth, maxWidth,
+ computed = _computed || getStyles( elem ),
+
+ // Support: IE9
+ // getPropertyValue is only needed for .css('filter') in IE9, see #12537
+ ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined,
+ style = elem.style;
+
+ if ( computed ) {
+
+ if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
+ ret = jQuery.style( elem, name );
+ }
+
+ // Support: Chrome <17, Safari 5.1
+ // A tribute to the "awesome hack by Dean Edwards"
+ // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
+ // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
+ // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
+ if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
+
+ // Remember the original values
+ width = style.width;
+ minWidth = style.minWidth;
+ maxWidth = style.maxWidth;
+
+ // Put in the new values to get a computed value out
+ style.minWidth = style.maxWidth = style.width = ret;
+ ret = computed.width;
+
+ // Revert the changed values
+ style.width = width;
+ style.minWidth = minWidth;
+ style.maxWidth = maxWidth;
+ }
+ }
+
+ return ret;
+};
+
+
+function setPositiveNumber( elem, value, subtract ) {
+ var matches = rnumsplit.exec( value );
+ return matches ?
+ // Guard against undefined "subtract", e.g., when used as in cssHooks
+ Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
+ value;
+}
+
+function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
+ var i = extra === ( isBorderBox ? "border" : "content" ) ?
+ // If we already have the right measurement, avoid augmentation
+ 4 :
+ // Otherwise initialize for horizontal or vertical properties
+ name === "width" ? 1 : 0,
+
+ val = 0;
+
+ for ( ; i < 4; i += 2 ) {
+ // both box models exclude margin, so add it if we want it
+ if ( extra === "margin" ) {
+ val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
+ }
+
+ if ( isBorderBox ) {
+ // border-box includes padding, so remove it if we want content
+ if ( extra === "content" ) {
+ val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
+ }
+
+ // at this point, extra isn't border nor margin, so remove border
+ if ( extra !== "margin" ) {
+ val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
+ }
+ } else {
+ // at this point, extra isn't content, so add padding
+ val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
+
+ // at this point, extra isn't content nor padding, so add border
+ if ( extra !== "padding" ) {
+ val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
+ }
+ }
+ }
+
+ return val;
+}
+
+function getWidthOrHeight( elem, name, extra ) {
+
+ // Start with offset property, which is equivalent to the border-box value
+ var valueIsBorderBox = true,
+ val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
+ styles = getStyles( elem ),
+ isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
+
+ // some non-html elements return undefined for offsetWidth, so check for null/undefined
+ // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
+ // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
+ if ( val <= 0 || val == null ) {
+ // Fall back to computed then uncomputed css if necessary
+ val = curCSS( elem, name, styles );
+ if ( val < 0 || val == null ) {
+ val = elem.style[ name ];
+ }
+
+ // Computed unit is not pixels. Stop here and return.
+ if ( rnumnonpx.test(val) ) {
+ return val;
+ }
+
+ // we need the check for style in case a browser which returns unreliable values
+ // for getComputedStyle silently falls back to the reliable elem.style
+ valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] );
+
+ // Normalize "", auto, and prepare for extra
+ val = parseFloat( val ) || 0;
+ }
+
+ // use the active box-sizing model to add/subtract irrelevant styles
+ return ( val +
+ augmentWidthOrHeight(
+ elem,
+ name,
+ extra || ( isBorderBox ? "border" : "content" ),
+ valueIsBorderBox,
+ styles
+ )
+ ) + "px";
+}
+
+// Try to determine the default display value of an element
+function css_defaultDisplay( nodeName ) {
+ var doc = document,
+ display = elemdisplay[ nodeName ];
+
+ if ( !display ) {
+ display = actualDisplay( nodeName, doc );
+
+ // If the simple way fails, read from inside an iframe
+ if ( display === "none" || !display ) {
+ // Use the already-created iframe if possible
+ iframe = ( iframe ||
+ jQuery("")
+ .css( "cssText", "display:block !important" )
+ ).appendTo( doc.documentElement );
+
+ // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
+ doc = ( iframe[0].contentWindow || iframe[0].contentDocument ).document;
+ doc.write("");
+ doc.close();
+
+ display = actualDisplay( nodeName, doc );
+ iframe.detach();
+ }
+
+ // Store the correct default display
+ elemdisplay[ nodeName ] = display;
+ }
+
+ return display;
+}
+
+// Called ONLY from within css_defaultDisplay
+function actualDisplay( name, doc ) {
+ var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
+ display = jQuery.css( elem[0], "display" );
+ elem.remove();
+ return display;
+}
+
+jQuery.each([ "height", "width" ], function( i, name ) {
+ jQuery.cssHooks[ name ] = {
+ get: function( elem, computed, extra ) {
+ if ( computed ) {
+ // certain elements can have dimension info if we invisibly show them
+ // however, it must have a current display style that would benefit from this
+ return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ?
+ jQuery.swap( elem, cssShow, function() {
+ return getWidthOrHeight( elem, name, extra );
+ }) :
+ getWidthOrHeight( elem, name, extra );
+ }
+ },
+
+ set: function( elem, value, extra ) {
+ var styles = extra && getStyles( elem );
+ return setPositiveNumber( elem, value, extra ?
+ augmentWidthOrHeight(
+ elem,
+ name,
+ extra,
+ jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
+ styles
+ ) : 0
+ );
+ }
+ };
+});
+
+// These hooks cannot be added until DOM ready because the support test
+// for it is not run until after DOM ready
+jQuery(function() {
+ if ( !jQuery.support.reliableMarginRight ) {
+ jQuery.cssHooks.marginRight = {
+ get: function( elem, computed ) {
+ if ( computed ) {
+ // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+ // Work around by temporarily setting element display to inline-block
+ return jQuery.swap( elem, { "display": "inline-block" },
+ curCSS, [ elem, "marginRight" ] );
+ }
+ }
+ };
+ }
+
+ // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
+ // getComputedStyle returns percent when specified for top/left/bottom/right
+ // rather than make the css module depend on the offset module, we just check for it here
+ if ( !jQuery.support.pixelPosition && jQuery.fn.position ) {
+ jQuery.each( [ "top", "left" ], function( i, prop ) {
+ jQuery.cssHooks[ prop ] = {
+ get: function( elem, computed ) {
+ if ( computed ) {
+ computed = curCSS( elem, prop );
+ // if curCSS returns percentage, fallback to offset
+ return rnumnonpx.test( computed ) ?
+ jQuery( elem ).position()[ prop ] + "px" :
+ computed;
+ }
+ }
+ };
+ });
+ }
+
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+ jQuery.expr.filters.hidden = function( elem ) {
+ // Support: Opera <= 12.12
+ // Opera reports offsetWidths and offsetHeights less than zero on some elements
+ return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
+ };
+
+ jQuery.expr.filters.visible = function( elem ) {
+ return !jQuery.expr.filters.hidden( elem );
+ };
+}
+
+// These hooks are used by animate to expand properties
+jQuery.each({
+ margin: "",
+ padding: "",
+ border: "Width"
+}, function( prefix, suffix ) {
+ jQuery.cssHooks[ prefix + suffix ] = {
+ expand: function( value ) {
+ var i = 0,
+ expanded = {},
+
+ // assumes a single number if not a string
+ parts = typeof value === "string" ? value.split(" ") : [ value ];
+
+ for ( ; i < 4; i++ ) {
+ expanded[ prefix + cssExpand[ i ] + suffix ] =
+ parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
+ }
+
+ return expanded;
+ }
+ };
+
+ if ( !rmargin.test( prefix ) ) {
+ jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
+ }
+});
+var r20 = /%20/g,
+ rbracket = /\[\]$/,
+ rCRLF = /\r?\n/g,
+ rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
+ rsubmittable = /^(?:input|select|textarea|keygen)/i;
+
+jQuery.fn.extend({
+ serialize: function() {
+ return jQuery.param( this.serializeArray() );
+ },
+ serializeArray: function() {
+ return this.map(function(){
+ // Can add propHook for "elements" to filter or add form elements
+ var elements = jQuery.prop( this, "elements" );
+ return elements ? jQuery.makeArray( elements ) : this;
+ })
+ .filter(function(){
+ var type = this.type;
+ // Use .is(":disabled") so that fieldset[disabled] works
+ return this.name && !jQuery( this ).is( ":disabled" ) &&
+ rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
+ ( this.checked || !manipulation_rcheckableType.test( type ) );
+ })
+ .map(function( i, elem ){
+ var val = jQuery( this ).val();
+
+ return val == null ?
+ null :
+ jQuery.isArray( val ) ?
+ jQuery.map( val, function( val ){
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+ }) :
+ { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+ }).get();
+ }
+});
+
+//Serialize an array of form elements or a set of
+//key/values into a query string
+jQuery.param = function( a, traditional ) {
+ var prefix,
+ s = [],
+ add = function( key, value ) {
+ // If value is a function, invoke it and return its value
+ value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
+ s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+ };
+
+ // Set traditional to true for jQuery <= 1.3.2 behavior.
+ if ( traditional === undefined ) {
+ traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
+ }
+
+ // If an array was passed in, assume that it is an array of form elements.
+ if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+ // Serialize the form elements
+ jQuery.each( a, function() {
+ add( this.name, this.value );
+ });
+
+ } else {
+ // If traditional, encode the "old" way (the way 1.3.2 or older
+ // did it), otherwise encode params recursively.
+ for ( prefix in a ) {
+ buildParams( prefix, a[ prefix ], traditional, add );
+ }
+ }
+
+ // Return the resulting serialization
+ return s.join( "&" ).replace( r20, "+" );
+};
+
+function buildParams( prefix, obj, traditional, add ) {
+ var name;
+
+ if ( jQuery.isArray( obj ) ) {
+ // Serialize array item.
+ jQuery.each( obj, function( i, v ) {
+ if ( traditional || rbracket.test( prefix ) ) {
+ // Treat each array item as a scalar.
+ add( prefix, v );
+
+ } else {
+ // Item is non-scalar (array or object), encode its numeric index.
+ buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
+ }
+ });
+
+ } else if ( !traditional && jQuery.type( obj ) === "object" ) {
+ // Serialize object item.
+ for ( name in obj ) {
+ buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+ }
+
+ } else {
+ // Serialize scalar item.
+ add( prefix, obj );
+ }
+}
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+ "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+ "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
+
+ // Handle event binding
+ jQuery.fn[ name ] = function( data, fn ) {
+ return arguments.length > 0 ?
+ this.on( name, null, data, fn ) :
+ this.trigger( name );
+ };
+});
+
+jQuery.fn.hover = function( fnOver, fnOut ) {
+ return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+};
+var
+ // Document location
+ ajaxLocParts,
+ ajaxLocation,
+
+ ajax_nonce = jQuery.now(),
+
+ ajax_rquery = /\?/,
+ rhash = /#.*$/,
+ rts = /([?&])_=[^&]*/,
+ rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
+ // #7653, #8125, #8152: local protocol detection
+ rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
+ rnoContent = /^(?:GET|HEAD)$/,
+ rprotocol = /^\/\//,
+ rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
+
+ // Keep a copy of the old load method
+ _load = jQuery.fn.load,
+
+ /* Prefilters
+ * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+ * 2) These are called:
+ * - BEFORE asking for a transport
+ * - AFTER param serialization (s.data is a string if s.processData is true)
+ * 3) key is the dataType
+ * 4) the catchall symbol "*" can be used
+ * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+ */
+ prefilters = {},
+
+ /* Transports bindings
+ * 1) key is the dataType
+ * 2) the catchall symbol "*" can be used
+ * 3) selection will start with transport dataType and THEN go to "*" if needed
+ */
+ transports = {},
+
+ // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+ allTypes = "*/".concat("*");
+
+// #8138, IE may throw an exception when accessing
+// a field from window.location if document.domain has been set
+try {
+ ajaxLocation = location.href;
+} catch( e ) {
+ // Use the href attribute of an A element
+ // since IE will modify it given document.location
+ ajaxLocation = document.createElement( "a" );
+ ajaxLocation.href = "";
+ ajaxLocation = ajaxLocation.href;
+}
+
+// Segment location into parts
+ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
+
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
+
+ // dataTypeExpression is optional and defaults to "*"
+ return function( dataTypeExpression, func ) {
+
+ if ( typeof dataTypeExpression !== "string" ) {
+ func = dataTypeExpression;
+ dataTypeExpression = "*";
+ }
+
+ var dataType,
+ i = 0,
+ dataTypes = dataTypeExpression.toLowerCase().match( core_rnotwhite ) || [];
+
+ if ( jQuery.isFunction( func ) ) {
+ // For each dataType in the dataTypeExpression
+ while ( (dataType = dataTypes[i++]) ) {
+ // Prepend if requested
+ if ( dataType[0] === "+" ) {
+ dataType = dataType.slice( 1 ) || "*";
+ (structure[ dataType ] = structure[ dataType ] || []).unshift( func );
+
+ // Otherwise append
+ } else {
+ (structure[ dataType ] = structure[ dataType ] || []).push( func );
+ }
+ }
+ }
+ };
+}
+
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
+
+ var inspected = {},
+ seekingTransport = ( structure === transports );
+
+ function inspect( dataType ) {
+ var selected;
+ inspected[ dataType ] = true;
+ jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
+ var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
+ if( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
+ options.dataTypes.unshift( dataTypeOrTransport );
+ inspect( dataTypeOrTransport );
+ return false;
+ } else if ( seekingTransport ) {
+ return !( selected = dataTypeOrTransport );
+ }
+ });
+ return selected;
+ }
+
+ return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
+}
+
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+ var key, deep,
+ flatOptions = jQuery.ajaxSettings.flatOptions || {};
+
+ for ( key in src ) {
+ if ( src[ key ] !== undefined ) {
+ ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
+ }
+ }
+ if ( deep ) {
+ jQuery.extend( true, target, deep );
+ }
+
+ return target;
+}
+
+jQuery.fn.load = function( url, params, callback ) {
+ if ( typeof url !== "string" && _load ) {
+ return _load.apply( this, arguments );
+ }
+
+ var selector, type, response,
+ self = this,
+ off = url.indexOf(" ");
+
+ if ( off >= 0 ) {
+ selector = url.slice( off, url.length );
+ url = url.slice( 0, off );
+ }
+
+ // If it's a function
+ if ( jQuery.isFunction( params ) ) {
+
+ // We assume that it's the callback
+ callback = params;
+ params = undefined;
+
+ // Otherwise, build a param string
+ } else if ( params && typeof params === "object" ) {
+ type = "POST";
+ }
+
+ // If we have elements to modify, make the request
+ if ( self.length > 0 ) {
+ jQuery.ajax({
+ url: url,
+
+ // if "type" variable is undefined, then "GET" method will be used
+ type: type,
+ dataType: "html",
+ data: params
+ }).done(function( responseText ) {
+
+ // Save response for use in complete callback
+ response = arguments;
+
+ self.html( selector ?
+
+ // If a selector was specified, locate the right elements in a dummy div
+ // Exclude scripts to avoid IE 'Permission Denied' errors
+ jQuery("").append( jQuery.parseHTML( responseText ) ).find( selector ) :
+
+ // Otherwise use the full result
+ responseText );
+
+ }).complete( callback && function( jqXHR, status ) {
+ self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
+ });
+ }
+
+ return this;
+};
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){
+ jQuery.fn[ type ] = function( fn ){
+ return this.on( type, fn );
+ };
+});
+
+jQuery.each( [ "get", "post" ], function( i, method ) {
+ jQuery[ method ] = function( url, data, callback, type ) {
+ // shift arguments if data argument was omitted
+ if ( jQuery.isFunction( data ) ) {
+ type = type || callback;
+ callback = data;
+ data = undefined;
+ }
+
+ return jQuery.ajax({
+ url: url,
+ type: method,
+ dataType: type,
+ data: data,
+ success: callback
+ });
+ };
+});
+
+jQuery.extend({
+
+ // Counter for holding the number of active queries
+ active: 0,
+
+ // Last-Modified header cache for next request
+ lastModified: {},
+ etag: {},
+
+ ajaxSettings: {
+ url: ajaxLocation,
+ type: "GET",
+ isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
+ global: true,
+ processData: true,
+ async: true,
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+ /*
+ timeout: 0,
+ data: null,
+ dataType: null,
+ username: null,
+ password: null,
+ cache: null,
+ throws: false,
+ traditional: false,
+ headers: {},
+ */
+
+ accepts: {
+ "*": allTypes,
+ text: "text/plain",
+ html: "text/html",
+ xml: "application/xml, text/xml",
+ json: "application/json, text/javascript"
+ },
+
+ contents: {
+ xml: /xml/,
+ html: /html/,
+ json: /json/
+ },
+
+ responseFields: {
+ xml: "responseXML",
+ text: "responseText",
+ json: "responseJSON"
+ },
+
+ // Data converters
+ // Keys separate source (or catchall "*") and destination types with a single space
+ converters: {
+
+ // Convert anything to text
+ "* text": String,
+
+ // Text to html (true = no transformation)
+ "text html": true,
+
+ // Evaluate text as a json expression
+ "text json": jQuery.parseJSON,
+
+ // Parse text as xml
+ "text xml": jQuery.parseXML
+ },
+
+ // For options that shouldn't be deep extended:
+ // you can add your own custom options here if
+ // and when you create one that shouldn't be
+ // deep extended (see ajaxExtend)
+ flatOptions: {
+ url: true,
+ context: true
+ }
+ },
+
+ // Creates a full fledged settings object into target
+ // with both ajaxSettings and settings fields.
+ // If target is omitted, writes into ajaxSettings.
+ ajaxSetup: function( target, settings ) {
+ return settings ?
+
+ // Building a settings object
+ ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
+
+ // Extending ajaxSettings
+ ajaxExtend( jQuery.ajaxSettings, target );
+ },
+
+ ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+ ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+ // Main method
+ ajax: function( url, options ) {
+
+ // If url is an object, simulate pre-1.5 signature
+ if ( typeof url === "object" ) {
+ options = url;
+ url = undefined;
+ }
+
+ // Force options to be an object
+ options = options || {};
+
+ var transport,
+ // URL without anti-cache param
+ cacheURL,
+ // Response headers
+ responseHeadersString,
+ responseHeaders,
+ // timeout handle
+ timeoutTimer,
+ // Cross-domain detection vars
+ parts,
+ // To know if global events are to be dispatched
+ fireGlobals,
+ // Loop variable
+ i,
+ // Create the final options object
+ s = jQuery.ajaxSetup( {}, options ),
+ // Callbacks context
+ callbackContext = s.context || s,
+ // Context for global events is callbackContext if it is a DOM node or jQuery collection
+ globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
+ jQuery( callbackContext ) :
+ jQuery.event,
+ // Deferreds
+ deferred = jQuery.Deferred(),
+ completeDeferred = jQuery.Callbacks("once memory"),
+ // Status-dependent callbacks
+ statusCode = s.statusCode || {},
+ // Headers (they are sent all at once)
+ requestHeaders = {},
+ requestHeadersNames = {},
+ // The jqXHR state
+ state = 0,
+ // Default abort message
+ strAbort = "canceled",
+ // Fake xhr
+ jqXHR = {
+ readyState: 0,
+
+ // Builds headers hashtable if needed
+ getResponseHeader: function( key ) {
+ var match;
+ if ( state === 2 ) {
+ if ( !responseHeaders ) {
+ responseHeaders = {};
+ while ( (match = rheaders.exec( responseHeadersString )) ) {
+ responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
+ }
+ }
+ match = responseHeaders[ key.toLowerCase() ];
+ }
+ return match == null ? null : match;
+ },
+
+ // Raw string
+ getAllResponseHeaders: function() {
+ return state === 2 ? responseHeadersString : null;
+ },
+
+ // Caches the header
+ setRequestHeader: function( name, value ) {
+ var lname = name.toLowerCase();
+ if ( !state ) {
+ name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
+ requestHeaders[ name ] = value;
+ }
+ return this;
+ },
+
+ // Overrides response content-type header
+ overrideMimeType: function( type ) {
+ if ( !state ) {
+ s.mimeType = type;
+ }
+ return this;
+ },
+
+ // Status-dependent callbacks
+ statusCode: function( map ) {
+ var code;
+ if ( map ) {
+ if ( state < 2 ) {
+ for ( code in map ) {
+ // Lazy-add the new callback in a way that preserves old ones
+ statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
+ }
+ } else {
+ // Execute the appropriate callbacks
+ jqXHR.always( map[ jqXHR.status ] );
+ }
+ }
+ return this;
+ },
+
+ // Cancel the request
+ abort: function( statusText ) {
+ var finalText = statusText || strAbort;
+ if ( transport ) {
+ transport.abort( finalText );
+ }
+ done( 0, finalText );
+ return this;
+ }
+ };
+
+ // Attach deferreds
+ deferred.promise( jqXHR ).complete = completeDeferred.add;
+ jqXHR.success = jqXHR.done;
+ jqXHR.error = jqXHR.fail;
+
+ // Remove hash character (#7531: and string promotion)
+ // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
+ // Handle falsy url in the settings object (#10093: consistency with old signature)
+ // We also use the url parameter if available
+ s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
+
+ // Alias method option to type as per ticket #12004
+ s.type = options.method || options.type || s.method || s.type;
+
+ // Extract dataTypes list
+ s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""];
+
+ // A cross-domain request is in order when we have a protocol:host:port mismatch
+ if ( s.crossDomain == null ) {
+ parts = rurl.exec( s.url.toLowerCase() );
+ s.crossDomain = !!( parts &&
+ ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
+ ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
+ ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
+ );
+ }
+
+ // Convert data if not already a string
+ if ( s.data && s.processData && typeof s.data !== "string" ) {
+ s.data = jQuery.param( s.data, s.traditional );
+ }
+
+ // Apply prefilters
+ inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+ // If request was aborted inside a prefilter, stop there
+ if ( state === 2 ) {
+ return jqXHR;
+ }
+
+ // We can fire global events as of now if asked to
+ fireGlobals = s.global;
+
+ // Watch for a new set of requests
+ if ( fireGlobals && jQuery.active++ === 0 ) {
+ jQuery.event.trigger("ajaxStart");
+ }
+
+ // Uppercase the type
+ s.type = s.type.toUpperCase();
+
+ // Determine if request has content
+ s.hasContent = !rnoContent.test( s.type );
+
+ // Save the URL in case we're toying with the If-Modified-Since
+ // and/or If-None-Match header later on
+ cacheURL = s.url;
+
+ // More options handling for requests with no content
+ if ( !s.hasContent ) {
+
+ // If data is available, append data to url
+ if ( s.data ) {
+ cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
+ // #9682: remove data so that it's not used in an eventual retry
+ delete s.data;
+ }
+
+ // Add anti-cache in url if needed
+ if ( s.cache === false ) {
+ s.url = rts.test( cacheURL ) ?
+
+ // If there is already a '_' parameter, set its value
+ cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) :
+
+ // Otherwise add one to the end
+ cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++;
+ }
+ }
+
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+ if ( s.ifModified ) {
+ if ( jQuery.lastModified[ cacheURL ] ) {
+ jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
+ }
+ if ( jQuery.etag[ cacheURL ] ) {
+ jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
+ }
+ }
+
+ // Set the correct header, if data is being sent
+ if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+ jqXHR.setRequestHeader( "Content-Type", s.contentType );
+ }
+
+ // Set the Accepts header for the server, depending on the dataType
+ jqXHR.setRequestHeader(
+ "Accept",
+ s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
+ s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+ s.accepts[ "*" ]
+ );
+
+ // Check for headers option
+ for ( i in s.headers ) {
+ jqXHR.setRequestHeader( i, s.headers[ i ] );
+ }
+
+ // Allow custom headers/mimetypes and early abort
+ if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
+ // Abort if not done already and return
+ return jqXHR.abort();
+ }
+
+ // aborting is no longer a cancellation
+ strAbort = "abort";
+
+ // Install callbacks on deferreds
+ for ( i in { success: 1, error: 1, complete: 1 } ) {
+ jqXHR[ i ]( s[ i ] );
+ }
+
+ // Get transport
+ transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+ // If no transport, we auto-abort
+ if ( !transport ) {
+ done( -1, "No Transport" );
+ } else {
+ jqXHR.readyState = 1;
+
+ // Send global event
+ if ( fireGlobals ) {
+ globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+ }
+ // Timeout
+ if ( s.async && s.timeout > 0 ) {
+ timeoutTimer = setTimeout(function() {
+ jqXHR.abort("timeout");
+ }, s.timeout );
+ }
+
+ try {
+ state = 1;
+ transport.send( requestHeaders, done );
+ } catch ( e ) {
+ // Propagate exception as error if not done
+ if ( state < 2 ) {
+ done( -1, e );
+ // Simply rethrow otherwise
+ } else {
+ throw e;
+ }
+ }
+ }
+
+ // Callback for when everything is done
+ function done( status, nativeStatusText, responses, headers ) {
+ var isSuccess, success, error, response, modified,
+ statusText = nativeStatusText;
+
+ // Called once
+ if ( state === 2 ) {
+ return;
+ }
+
+ // State is "done" now
+ state = 2;
+
+ // Clear timeout if it exists
+ if ( timeoutTimer ) {
+ clearTimeout( timeoutTimer );
+ }
+
+ // Dereference transport for early garbage collection
+ // (no matter how long the jqXHR object will be used)
+ transport = undefined;
+
+ // Cache response headers
+ responseHeadersString = headers || "";
+
+ // Set readyState
+ jqXHR.readyState = status > 0 ? 4 : 0;
+
+ // Determine if successful
+ isSuccess = status >= 200 && status < 300 || status === 304;
+
+ // Get response data
+ if ( responses ) {
+ response = ajaxHandleResponses( s, jqXHR, responses );
+ }
+
+ // Convert no matter what (that way responseXXX fields are always set)
+ response = ajaxConvert( s, response, jqXHR, isSuccess );
+
+ // If successful, handle type chaining
+ if ( isSuccess ) {
+
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+ if ( s.ifModified ) {
+ modified = jqXHR.getResponseHeader("Last-Modified");
+ if ( modified ) {
+ jQuery.lastModified[ cacheURL ] = modified;
+ }
+ modified = jqXHR.getResponseHeader("etag");
+ if ( modified ) {
+ jQuery.etag[ cacheURL ] = modified;
+ }
+ }
+
+ // if no content
+ if ( status === 204 ) {
+ statusText = "nocontent";
+
+ // if not modified
+ } else if ( status === 304 ) {
+ statusText = "notmodified";
+
+ // If we have data, let's convert it
+ } else {
+ statusText = response.state;
+ success = response.data;
+ error = response.error;
+ isSuccess = !error;
+ }
+ } else {
+ // We extract error from statusText
+ // then normalize statusText and status for non-aborts
+ error = statusText;
+ if ( status || !statusText ) {
+ statusText = "error";
+ if ( status < 0 ) {
+ status = 0;
+ }
+ }
+ }
+
+ // Set data for the fake xhr object
+ jqXHR.status = status;
+ jqXHR.statusText = ( nativeStatusText || statusText ) + "";
+
+ // Success/Error
+ if ( isSuccess ) {
+ deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+ } else {
+ deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+ }
+
+ // Status-dependent callbacks
+ jqXHR.statusCode( statusCode );
+ statusCode = undefined;
+
+ if ( fireGlobals ) {
+ globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
+ [ jqXHR, s, isSuccess ? success : error ] );
+ }
+
+ // Complete
+ completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
+
+ if ( fireGlobals ) {
+ globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+ // Handle the global AJAX counter
+ if ( !( --jQuery.active ) ) {
+ jQuery.event.trigger("ajaxStop");
+ }
+ }
+ }
+
+ return jqXHR;
+ },
+
+ getScript: function( url, callback ) {
+ return jQuery.get( url, undefined, callback, "script" );
+ },
+
+ getJSON: function( url, data, callback ) {
+ return jQuery.get( url, data, callback, "json" );
+ }
+});
+
+/* Handles responses to an ajax request:
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+ var ct, type, finalDataType, firstDataType,
+ contents = s.contents,
+ dataTypes = s.dataTypes;
+
+ // Remove auto dataType and get content-type in the process
+ while( dataTypes[ 0 ] === "*" ) {
+ dataTypes.shift();
+ if ( ct === undefined ) {
+ ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
+ }
+ }
+
+ // Check if we're dealing with a known content-type
+ if ( ct ) {
+ for ( type in contents ) {
+ if ( contents[ type ] && contents[ type ].test( ct ) ) {
+ dataTypes.unshift( type );
+ break;
+ }
+ }
+ }
+
+ // Check to see if we have a response for the expected dataType
+ if ( dataTypes[ 0 ] in responses ) {
+ finalDataType = dataTypes[ 0 ];
+ } else {
+ // Try convertible dataTypes
+ for ( type in responses ) {
+ if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
+ finalDataType = type;
+ break;
+ }
+ if ( !firstDataType ) {
+ firstDataType = type;
+ }
+ }
+ // Or just use first one
+ finalDataType = finalDataType || firstDataType;
+ }
+
+ // If we found a dataType
+ // We add the dataType to the list if needed
+ // and return the corresponding response
+ if ( finalDataType ) {
+ if ( finalDataType !== dataTypes[ 0 ] ) {
+ dataTypes.unshift( finalDataType );
+ }
+ return responses[ finalDataType ];
+ }
+}
+
+/* Chain conversions given the request and the original response
+ * Also sets the responseXXX fields on the jqXHR instance
+ */
+function ajaxConvert( s, response, jqXHR, isSuccess ) {
+ var conv2, current, conv, tmp, prev,
+ converters = {},
+ // Work with a copy of dataTypes in case we need to modify it for conversion
+ dataTypes = s.dataTypes.slice();
+
+ // Create converters map with lowercased keys
+ if ( dataTypes[ 1 ] ) {
+ for ( conv in s.converters ) {
+ converters[ conv.toLowerCase() ] = s.converters[ conv ];
+ }
+ }
+
+ current = dataTypes.shift();
+
+ // Convert to each sequential dataType
+ while ( current ) {
+
+ if ( s.responseFields[ current ] ) {
+ jqXHR[ s.responseFields[ current ] ] = response;
+ }
+
+ // Apply the dataFilter if provided
+ if ( !prev && isSuccess && s.dataFilter ) {
+ response = s.dataFilter( response, s.dataType );
+ }
+
+ prev = current;
+ current = dataTypes.shift();
+
+ if ( current ) {
+
+ // There's only work to do if current dataType is non-auto
+ if ( current === "*" ) {
+
+ current = prev;
+
+ // Convert response if prev dataType is non-auto and differs from current
+ } else if ( prev !== "*" && prev !== current ) {
+
+ // Seek a direct converter
+ conv = converters[ prev + " " + current ] || converters[ "* " + current ];
+
+ // If none found, seek a pair
+ if ( !conv ) {
+ for ( conv2 in converters ) {
+
+ // If conv2 outputs current
+ tmp = conv2.split( " " );
+ if ( tmp[ 1 ] === current ) {
+
+ // If prev can be converted to accepted input
+ conv = converters[ prev + " " + tmp[ 0 ] ] ||
+ converters[ "* " + tmp[ 0 ] ];
+ if ( conv ) {
+ // Condense equivalence converters
+ if ( conv === true ) {
+ conv = converters[ conv2 ];
+
+ // Otherwise, insert the intermediate dataType
+ } else if ( converters[ conv2 ] !== true ) {
+ current = tmp[ 0 ];
+ dataTypes.unshift( tmp[ 1 ] );
+ }
+ break;
+ }
+ }
+ }
+ }
+
+ // Apply converter (if not an equivalence)
+ if ( conv !== true ) {
+
+ // Unless errors are allowed to bubble, catch and return them
+ if ( conv && s[ "throws" ] ) {
+ response = conv( response );
+ } else {
+ try {
+ response = conv( response );
+ } catch ( e ) {
+ return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return { state: "success", data: response };
+}
+// Install script dataType
+jQuery.ajaxSetup({
+ accepts: {
+ script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
+ },
+ contents: {
+ script: /(?:java|ecma)script/
+ },
+ converters: {
+ "text script": function( text ) {
+ jQuery.globalEval( text );
+ return text;
+ }
+ }
+});
+
+// Handle cache's special case and crossDomain
+jQuery.ajaxPrefilter( "script", function( s ) {
+ if ( s.cache === undefined ) {
+ s.cache = false;
+ }
+ if ( s.crossDomain ) {
+ s.type = "GET";
+ }
+});
+
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function( s ) {
+ // This transport only deals with cross domain requests
+ if ( s.crossDomain ) {
+ var script, callback;
+ return {
+ send: function( _, complete ) {
+ script = jQuery("
{{ name.first }} {{ name.last }}
+