├── VERSION ├── .gitignore ├── images ├── tn.png └── screenshot.png ├── archetypes └── default.md ├── layouts ├── _default │ ├── list.html │ └── single.html ├── index.html └── partials │ ├── footer.html │ ├── services.html │ ├── head.html │ ├── template.css │ ├── js.html │ ├── header.html │ └── nav.html ├── static ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.svg ├── css │ └── landing-page.css └── js │ ├── bootstrap.min.js │ └── bootstrap.js ├── exampleSite ├── content │ ├── post │ │ ├── first.md │ │ ├── second.md │ │ └── third.md │ └── img │ │ └── intro-bg.svg └── config.toml ├── theme.toml ├── LICENSE.md └── README.md /VERSION: -------------------------------------------------------------------------------- 1 | 0.1 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | public/ 2 | -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsomar/github-project-landing-page/HEAD/images/tn.png -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | +++ 2 | Description = "" 3 | Keywords = [] 4 | Tags = [] 5 | Categories = [] 6 | +++ 7 | -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsomar/github-project-landing-page/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ partial "head.html" . }} 2 | {{ partial "header.html" . }} 3 | {{ partial "services.html" . }} 4 | {{ partial "footer.html" . }} 5 | -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsomar/github-project-landing-page/HEAD/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsomar/github-project-landing-page/HEAD/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsomar/github-project-landing-page/HEAD/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ partial "head.html" . }} 2 | {{ partial "nav.html" . }} 3 | {{ partial "header.html" . }} 4 | {{ partial "services.html" . }} 5 | {{ partial "footer.html" . }} 6 | -------------------------------------------------------------------------------- /exampleSite/content/post/first.md: -------------------------------------------------------------------------------- 1 | +++ 2 | date = "2015-12-2T14:10:00+03:00" 3 | draft = false 4 | title = "First Post" 5 | weight = 1 6 | +++ 7 | 8 | First post 9 | Where you talk about how to install your project 10 | 11 | ``` 12 | brew install amazing-tool 13 | ``` 14 | -------------------------------------------------------------------------------- /exampleSite/content/post/second.md: -------------------------------------------------------------------------------- 1 | +++ 2 | date = "2015-12-2T14:10:00+03:00" 3 | draft = false 4 | title = "Second Post" 5 | weight = 2 6 | +++ 7 | 8 | Second post 9 | Usage maybe? 10 | 11 | ``` 12 | DoSomething() 13 | ``` 14 | 15 | And the output would be: 16 | 17 | ``` 18 | Something 19 | ``` 20 | -------------------------------------------------------------------------------- /exampleSite/content/post/third.md: -------------------------------------------------------------------------------- 1 | +++ 2 | date = "2015-12-2T14:10:00+03:00" 3 | draft = false 4 | title = "Third Post" 5 | weight = 3 6 | +++ 7 | 8 | Third post 9 | Get help 10 | 11 | - Ask questions here .... 12 | - Read this doc file 13 | - Concat me twitter [@ifnottrue](https://twitter.com/@ifnottrue) 14 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ partial "head.html" . }} 2 | {{ partial "nav.html" . }} 3 | 4 |
5 |
6 | 7 |
8 | 9 |
10 |
11 |
12 |
13 |

{{ .Title }}

14 | {{ .Content }} 15 |
16 |
17 | 18 |
19 |
20 | 21 |
22 | {{ partial "footer.html" . }} 23 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 16 | {{ partial "js.html" . }} 17 | 18 | 19 | -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | name = "Github project Page" 2 | license = "MIT" 3 | licenselink = "https://github.com/nsomar/github-project-landing-page/blob/master/LICENSE.md" 4 | description = "An easy to use landing page theme for github hosted project." 5 | homepage = "https://github.com/nsomar/github-project-landing-page" 6 | tags = ["company", "products", "landing page", "opensource"] 7 | features = ["github", "images" ] 8 | min_version= 0.1 9 | 10 | [author] 11 | name = "Omar Abdelhafith" 12 | 13 | [original] 14 | author = "Omar Abdelhafith" 15 | homepage = "https://github.com/nsomar/github-project-landing-page" 16 | repo = "https://github.com/nsomar/github-project-landing-page" 17 | 18 | -------------------------------------------------------------------------------- /exampleSite/config.toml: -------------------------------------------------------------------------------- 1 | baseurl = "http://swiftline.github.io" 2 | languageCode = "en-us" 3 | title = "Swiftline" 4 | 5 | [params] 6 | description = "Amazing project." 7 | author_url = "http://nsomar.com" 8 | project_url = "http://github.com/swiftline/swiftline" 9 | project_documentation = "http://swiftline.github.io/docs" 10 | github_project_name = "swiftline" 11 | github_user_name = "swiftline" 12 | 13 | first_color="#f8f8f8" 14 | first_border_color="#e7e7e7" 15 | first_text_color="#333" 16 | 17 | second_color="white" 18 | second_text_color="#333" 19 | 20 | header_color="#f8f8f8" 21 | header_text_color="rgb(51, 51, 51)" 22 | 23 | header_link_color="#777" 24 | header_link_hover_color="rgb(51, 51, 51)" 25 | -------------------------------------------------------------------------------- /layouts/partials/services.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | {{ range $index, $element := where .Data.Pages "Section" "in" "post" }} 5 | {{ if modBool $index 2 }} 6 |
7 | {{ else }} 8 |
9 | {{ end }} 10 | 11 |
12 | 13 |
14 |
15 |
16 |
17 |

{{ .Title }}

18 | {{ .Content }} 19 |
20 |
21 | 22 |
23 | 24 | 25 |
26 | {{ end }} 27 | 28 |
29 | -------------------------------------------------------------------------------- /layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ .Title }} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /layouts/partials/template.css: -------------------------------------------------------------------------------- 1 | .navbar { 2 | border-color: {{ .Site.Params.first_border_color }}; 3 | } 4 | 5 | .content-section-a, 6 | footer, 7 | .navbar { 8 | background-color: {{ .Site.Params.first_color }}; 9 | color: {{ .Site.Params.first_text_color }}; 10 | } 11 | 12 | .navbar a:link, 13 | .navbar-default .navbar-nav>li>a { 14 | color: {{ .Site.Params.header_link_color }}; 15 | } 16 | 17 | .navbar a:hover, 18 | .navbar-default .navbar-nav>li>a:hover { 19 | color: {{ .Site.Params.header_link_hover_color }}; 20 | } 21 | 22 | .content-section-b { 23 | background-color: {{ .Site.Params.second_color }}; 24 | color: {{ .Site.Params.second_text_color }}; 25 | } 26 | 27 | body { 28 | color: {{ .Site.Params.header_text_color }}; 29 | } 30 | 31 | .header-container h1, 32 | .header-container h2, 33 | .header-container h3, 34 | .header-container h4 { 35 | color: {{ .Site.Params.header_text_color }}; 36 | } 37 | -------------------------------------------------------------------------------- /layouts/partials/js.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | {{ if isset .Site.Params "googleAnalytics" }} 14 | 15 | 16 | 26 | 27 | {{ end }} 28 | -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |
6 | 7 |
8 |
9 |
10 |

{{ .Site.Title }}

11 |

{{ .Site.Params.description }}

12 | 13 | {{ if (isset .Site.Params "github_project_name") }} 14 | {{ $user := .Site.Params.github_user_name }} 15 | {{ $repo := .Site.Params.github_project_name }} 16 | 17 | 18 | {{ end }} 19 | 20 |
21 |
22 |
23 | 24 |
25 | 26 | 27 |
28 | 29 |
30 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 YOUR_NAME_HERE 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /layouts/partials/nav.html: -------------------------------------------------------------------------------- 1 | 2 | 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Github project landing page 2 | 3 | Github landing page is a theme for [Hugo](http://gohugo.io) to create landing pages for github projects. This theme is based on [landing-page-hugo](https://github.com/crakjie/landing-page-hugo) 4 | 5 | # Demo 6 | A demo can be find here [Swiftline](http://swiftline.github.io) 7 | 8 | # Screenshot 9 | ![screenshot](https://raw.githubusercontent.com/nsomar/github-project-landing-page/master/images/screenshot.png) 10 | 11 | # Costumization 12 | Check [config.toml](https://github.com/nsomar/github-project-landing-page/blob/master/exampleSite/config.toml) for available configuration. 13 | Below is a description for each of them. 14 | 15 | Project description appears after project name 16 | ``` 17 | description = "Amazing project." 18 | ``` 19 | 20 | `author_url` a link of the project author. 21 | `project_url` link to project url 22 | `project_documentation` link to project documentation 23 | 24 | ``` 25 | author_url = "http://nsomar.com" 26 | project_url = "http://github.com/swiftline/swiftline" 27 | project_documentation = "http://swiftline.github.io/docs" 28 | 29 | ``` 30 | 31 | `github_user_name` github author account name 32 | `github_project_name` github project name 33 | ``` 34 | github_project_name = "swiftline" 35 | github_user_name = "swiftline" 36 | ``` 37 | 38 | Theme colors 39 | ``` 40 | first_color="#f8f8f8" 41 | first_border_color="#e7e7e7" 42 | first_text_color="#333" 43 | 44 | second_color="white" 45 | second_text_color="#333" 46 | 47 | header_color="#f8f8f8" 48 | header_text_color="rgb(51, 51, 51)" 49 | 50 | header_link_color="#777" 51 | header_link_hover_color="rgb(51, 51, 51)" 52 | 53 | ``` 54 | 55 | -------------------------------------------------------------------------------- /static/css/landing-page.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Start Bootstrap - Landing Page Bootstrap Theme (http://startbootstrap.com) 3 | * Code licensed under the Apache License v2.0. 4 | * For details, see http://www.apache.org/licenses/LICENSE-2.0. 5 | */ 6 | 7 | body, 8 | html { 9 | width: 100%; 10 | height: 100%; 11 | font-size: 16px; 12 | } 13 | 14 | body, 15 | h1, 16 | h2, 17 | h3, 18 | h4, 19 | h5, 20 | h6 { 21 | font-family: -apple-system-headline, 'Helvetica Neue', Helvetica, sans-serif; 22 | } 23 | 24 | .lead { 25 | font-size: 18px; 26 | font-weight: 400; 27 | } 28 | 29 | .intro-header { 30 | padding-top: 40px; 31 | text-align: center; 32 | color: #f8f8f8; 33 | } 34 | 35 | .intro-message { 36 | margin-top: 100px; 37 | color: rgb(51, 51, 51); 38 | text-align: left; 39 | } 40 | 41 | .intro-message > h3 { 42 | font-family: -apple-system-headline, 'HelveticaNeue-Light', 'Helvetica Neue', Helvetica, sans-serif; 43 | } 44 | 45 | .intro-message > h1 { 46 | font-family: -apple-system-subheadline, 'HelveticaNeue-UltraLight', 'Helvetica Neue', Helvetica, sans-serif; 47 | font-size: 5em; 48 | } 49 | 50 | .intro-divider { 51 | width: 400px; 52 | border-top: 1px solid #f8f8f8; 53 | border-bottom: 1px solid rgba(0,0,0,0.2); 54 | } 55 | 56 | .network-name { 57 | text-transform: uppercase; 58 | font-size: 14px; 59 | font-weight: 400; 60 | letter-spacing: 2px; 61 | } 62 | 63 | .container { 64 | width: 900px; 65 | line-height: 1.2em; 66 | } 67 | 68 | .header-container { 69 | width: 100%; 70 | } 71 | 72 | .container ul { 73 | line-height: 1.6em; 74 | } 75 | 76 | .container pre { 77 | margin-top: 20px; 78 | margin-bottom: 20px; 79 | line-height: 1.6em; 80 | } 81 | 82 | .container h3 { 83 | margin-top: 20px; 84 | margin-bottom: 10px; 85 | } 86 | 87 | .content-section-a { 88 | padding: 50px 0; 89 | background-color: #f8f8f8; 90 | } 91 | 92 | .content-section-b { 93 | padding: 50px 0; 94 | border-top: 1px solid #e7e7e7; 95 | border-bottom: 1px solid #e7e7e7; 96 | } 97 | 98 | .section-heading { 99 | margin-bottom: 30px; 100 | } 101 | 102 | .section-heading-spacer { 103 | float: left; 104 | width: 200px; 105 | border-top: 3px solid #e7e7e7; 106 | } 107 | 108 | .contact { 109 | padding: 100px 0; 110 | color: #f8f8f8; 111 | background: url(../img/contact-bg.jpg) no-repeat center center; 112 | background-size: cover; 113 | } 114 | 115 | .contact h2 { 116 | margin: 0; 117 | text-shadow: 2px 2px 3px rgba(0,0,0,0.6); 118 | font-size: 3em; 119 | } 120 | 121 | .contact ul { 122 | margin-bottom: 0; 123 | } 124 | 125 | .contact-social-buttons { 126 | float: right; 127 | margin-top: 0; 128 | } 129 | 130 | @media(max-width:1199px) { 131 | ul.contact-social-buttons { 132 | float: left; 133 | margin-top: 15px; 134 | } 135 | } 136 | 137 | @media(max-width:767px) { 138 | .contact h2 { 139 | margin: 0; 140 | text-shadow: 2px 2px 3px rgba(0,0,0,0.6); 141 | font-size: 3em; 142 | } 143 | 144 | ul.contact-social-buttons > li { 145 | display: block; 146 | margin-bottom: 20px; 147 | padding: 0; 148 | } 149 | 150 | ul.contact-social-buttons > li:last-child { 151 | margin-bottom: 0; 152 | } 153 | } 154 | 155 | footer { 156 | padding: 50px 0; 157 | background-color: #f8f8f8; 158 | } 159 | 160 | p.copyright { 161 | margin: 15px 0 0; 162 | } 163 | 164 | 165 | @media(max-width:1000px) { 166 | .intro-message { 167 | padding-bottom: 10%; 168 | margin-top: -30px; 169 | } 170 | 171 | .intro-message > h1 { 172 | font-size: 3em; 173 | } 174 | 175 | ul.intro-social-buttons > li { 176 | display: block; 177 | margin-bottom: 20px; 178 | padding: 0; 179 | } 180 | 181 | ul.intro-social-buttons > li:last-child { 182 | margin-bottom: 0; 183 | } 184 | 185 | .intro-divider { 186 | width: 100%; 187 | } 188 | 189 | .container { 190 | width: 80%; 191 | } 192 | 193 | .intro-message { 194 | text-align: center; 195 | } 196 | } 197 | 198 | .intro-image { 199 | height: 100%; 200 | min-height: 380px; 201 | margin-top: 20px; 202 | background: url(../img/intro-bg.svg) no-repeat center center; 203 | background-size: 280px; 204 | } 205 | 206 | .github-btn { 207 | margin-top: 10px; 208 | } 209 | -------------------------------------------------------------------------------- /exampleSite/content/img/intro-bg.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | app-icon-board 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /static/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.2.0 (http://getbootstrap.com) 3 | * Copyright 2011-2014 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.2.0",d.prototype.close=function(b){function c(){f.detach().trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",c).emulateTransitionEnd(150):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.2.0",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),d[e](null==f[b]?this.options[b]:f[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b).on("keydown.bs.carousel",a.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.2.0",c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},c.prototype.keydown=function(a){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.to=function(b){var c=this,d=this.getItemIndex(this.$active=this.$element.find(".item.active"));return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=e[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:g});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,f&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(e)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:g});return a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one("bsTransitionEnd",function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger(m)),f&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b);!e&&f.toggle&&"show"==b&&(b=!b),e||d.data("bs.collapse",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};c.VERSION="3.2.0",c.DEFAULTS={toggle:!0},c.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},c.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var c=a.Event("show.bs.collapse");if(this.$element.trigger(c),!c.isDefaultPrevented()){var d=this.$parent&&this.$parent.find("> .panel > .in");if(d&&d.length){var e=d.data("bs.collapse");if(e&&e.transitioning)return;b.call(d,"hide"),e||d.data("bs.collapse",null)}var f=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[f](0),this.transitioning=1;var g=function(){this.$element.removeClass("collapsing").addClass("collapse in")[f](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return g.call(this);var h=a.camelCase(["scroll",f].join("-"));this.$element.one("bsTransitionEnd",a.proxy(g,this)).emulateTransitionEnd(350)[f](this.$element[0][h])}}},c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},c.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var d=a.fn.collapse;a.fn.collapse=b,a.fn.collapse.Constructor=c,a.fn.collapse.noConflict=function(){return a.fn.collapse=d,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(c){var d,e=a(this),f=e.attr("data-target")||c.preventDefault()||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),g=a(f),h=g.data("bs.collapse"),i=h?"toggle":e.data(),j=e.attr("data-parent"),k=j&&a(j);h&&h.transitioning||(k&&k.find('[data-toggle="collapse"][data-parent="'+j+'"]').not(e).addClass("collapsed"),e[g.hasClass("in")?"addClass":"removeClass"]("collapsed")),b.call(g,i)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.2.0",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('