diff --git a/README.md b/README.md new file mode 100644 index 00000000..a393eb98 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +## Site moved + +The Joomla Coding Standards can now be found at https://developer.joomla.org/coding-standards + +Contributions and corrections should be made in the master branch. diff --git a/assets/css/manual.css b/assets/css/manual.css deleted file mode 100644 index 7938417f..00000000 --- a/assets/css/manual.css +++ /dev/null @@ -1,59 +0,0 @@ -table -{ - border: 1px solid gray; -} - -td -{ - border: 1px solid gray; - padding: 10px; -} - -th -{ - border: 1px solid gray; - padding: 10px; -} -.manual-image { - margin: .5em 0 2em 0; - text-align: center; -} -h1,h2,h3 { - line-height:36px; -} -h1 { - font-size:34.5px; -} -h2 { - font-size:28.5px; -} -h3 { - font-size:22.5px; -} -h4 { - font-size:18.5px; -} -h5 { - font-size:14px; -} -h6 { - font-size:11.9px; -} -h1 small { - font-size:22.5px; -} -h2 small { - font-size:18.5px; -} -h3 small { - font-size:14px; -} -h4 small { - font-size:14px; -} -#version { - float:right; - font-size:.85em; - font-weight:bold; -} -} \ No newline at end of file diff --git a/assets/css/themes/all-hallows-eve.css b/assets/css/themes/all-hallows-eve.css deleted file mode 100644 index de10f135..00000000 --- a/assets/css/themes/all-hallows-eve.css +++ /dev/null @@ -1,50 +0,0 @@ -/** - * All Hallows Eve theme - * - * Adapted from Ultraviolet RubyGem - * - * @author Flinn Mueller - * @version 1.0.1 - */ -pre { - background: #000; - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #fff; - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #9933CC; -} - -pre .constant { - color: #3387CC; -} - -pre .storage { - color: #CC7833; -} - -pre .string { - color: #66CC33; -} - -pre .keyword, pre .selector { - color: #CC7833; -} - -pre .inherited-class { - font-style: italic; -} - -pre .support { - color: #C83730; -} diff --git a/assets/css/themes/blackboard.css b/assets/css/themes/blackboard.css deleted file mode 100644 index dbad8477..00000000 --- a/assets/css/themes/blackboard.css +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Blackboard theme - * - * Adapted from Domenico Carbotta's TextMate theme of the same name - * - * @author Domenico Carbotta - * @author Craig Campbell - * @version 1.0.2 - */ -pre { - background: #0B1022; - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #fff; - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #727272; -} - -pre .constant { - color: #D8FA3C; -} - -pre .storage { - color: #FBDE2D; -} - -pre .string, pre .comment.docstring { - color: #61CE3C; -} - -pre .string.regexp, pre .support.tag.script, pre .support.tag.style { - color: #fff; -} - -pre .keyword, pre .selector { - color: #FBDE2D; -} - -pre .inherited-class { - font-style: italic; -} - -pre .entity { - color: #FF6400; -} - -pre .support, *[data-language="c"] .function.call { - color: #8DA6CE; -} - -pre .variable.global, pre .variable.class, pre .variable.instance { - color: #FF6400; -} diff --git a/assets/css/themes/espresso-libre.css b/assets/css/themes/espresso-libre.css deleted file mode 100644 index 1625d13e..00000000 --- a/assets/css/themes/espresso-libre.css +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Espresso Libre theme - * - * Adapted from Ultraviolet RubyGem - * - * @author Flinn Mueller - * @version 1.0 - */ -pre { - background-color: #2a211c; - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #bdae9d; - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .support.class, pre .support.type { - color: #6d79de; -} - -pre .support.constant { - color: #00af0e; -} - -pre .constant.language { - color: #585cf6; -} - -pre .support.function { - font-weight: bold; - color: #7290d9; -} - -pre .string { - color: #049b0a; -} - -pre .constant.numeric { - color: #44aa43; -} - -pre .keyword, pre .storage { - color: #43a8ed; -} - -pre .entity.function { - color: #ff9358; -} - -pre .comment { - color: #0066ff; - font-style: italic; -} - -pre .constant.symbol { - color:#c5656b; -} - -pre .variable.instance, pre .variable.language, pre .constant { - color: #318495; -} diff --git a/assets/css/themes/github.css b/assets/css/themes/github.css deleted file mode 100644 index b83adbd3..00000000 --- a/assets/css/themes/github.css +++ /dev/null @@ -1,97 +0,0 @@ -/** - * GitHub theme - * - * @author Craig Campbell - * @version 1.0.4 - */ -pre { - border: 1px solid #ccc; - word-wrap: break-word; - padding: 6px 10px; - line-height: 19px; - margin-bottom: 20px; -} - -code { - border: 1px solid #eaeaea; - margin: 0px 2px; - padding: 0px 5px; - font-size: 12px; -} - -pre code { - border: 0px; - padding: 0px; - margin: 0px; - -moz-border-radius: 0px; - -webkit-border-radius: 0px; - border-radius: 0px; -} - -pre, code { - font-family: Consolas, 'Liberation Mono', Courier, monospace; - color: #333; - background: #f8f8f8; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -pre, pre code { - font-size: 13px; -} - -pre .comment { - color: #998; -} - -pre .support { - color: #0086B3; -} - -pre .tag, pre .tag-name { - color: navy; -} - -pre .close { - float: none; - font-size: 13px; - font-weight: normal; - line-height: 19px; - opacity: 1; - text-shadow: none; -} - -pre .keyword, pre .css-property, pre .vendor-prefix, pre .sass, pre .class, pre .id, pre .css-value, pre .entity.function, pre .storage.function { - font-weight: bold; -} - -pre .css-property, pre .css-value, pre .vendor-prefix, pre .support.namespace { - color: #333; -} - -pre .constant.numeric, pre .keyword.unit, pre .hex-color { - font-weight: normal; - color: #099; -} - -pre .entity.class { - color: #458; -} - -pre .entity.id, pre .entity.function { - color: #900; -} - -pre .attribute, pre .variable { - color: teal; -} - -pre .string, pre .support.value { - font-weight: normal; - color: #d14; -} - -pre .regexp { - color: #009926; -} diff --git a/assets/css/themes/obsidian.css b/assets/css/themes/obsidian.css deleted file mode 100644 index f02ffed2..00000000 --- a/assets/css/themes/obsidian.css +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Obsidian theme - * - * Adapted from a theme based on: - * http://studiostyl.es/schemes/son-of-obsidian - * - * @author Dan Stewart - * @version 1.0 - */ -pre { - background: #22282A; - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #F1F2F3; - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #66747B; -} - -pre .constant { - color: #EC7600; -} - -pre .storage { - color: #EC7600; -} - -pre .string, pre .comment.docstring { - color: #EC7600; -} - -pre .string.regexp, pre .support.tag.script, pre .support.tag.style { - color: #fff; -} - - -pre .keyword, pre .selector { - color: #93C763; -} - -pre .inherited-class { - font-style: italic; -} - -pre .entity { - color: #93C763; -} - -pre .integer { - color: #FFCD22; -} - -pre .support, *[data-language="csharp"] .function.call { - color: #FACD22; -} - -pre .variable.global, pre .variable.class, pre .variable.instance { - color: #CCC; -} - -/* C# specific rule */ -pre .preprocessor { - color: #66747B; -} diff --git a/assets/css/themes/pastie.css b/assets/css/themes/pastie.css deleted file mode 100644 index f9f360cb..00000000 --- a/assets/css/themes/pastie.css +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pastie theme - * - * @author pygments.org - * @author pastie.org - * @author Simon Potter - * @version 1.0 - */ - -pre { - /* original is white background with no border */ - background-color: #F8F8FF; - border: 1px solid #DEDEDE; - word-wrap: break-word; - margin: 0; - padding: 0; - color: #000; - font-size: 13px; - line-height: 16px; - margin-bottom: 20px -} - -pre, code { - font-family: monospace; -} - -pre .comment { - color: #888; -} - -pre .keyword, pre .selector, pre .storage.module, pre .storage.class, pre .storage.function { - color: #080; - font-weight: bold; -} - -pre .keyword.operator { - color: #000; - font-weight: normal; -} - -pre .constant.language { - color: #038; - font-weight:bold; -} - -pre .constant.symbol, pre .class, pre .constant { - color: #036; - font-weight: bold; -} - -pre .keyword.namespace, pre .entity.name.class { - color: #B06; - font-weight: bold; -} - -pre .constant.numeric { - color: #00D; - font-weight: bold; -} - -pre .string, pre .comment.docstring { - color: #D20; - background-color: #FFF0F0; -} - -pre .string.regexp { - background-color: #FFF0FF; - color: #808; -} - -pre .variable.instance { - color: #33B; -} - -pre .entity.name.function { - color: #06B; - font-weight: bold; -} - -pre .support.tag-name, pre .entity.tag.script, pre .entity.tag.style { - color: #070; -} - -pre .support.attribute { - color: #007; - font-style: italic; -} - -pre .entity.name.tag, pre .storage.type { - color: #070; - font-weight: bold; -} - -pre .variable.self, pre .support.function { - color: #038; - font-weight: bold; -} - -pre .entity.function, pre .support.magic, pre.support.method { - color: #C00; - font-weight: bold; -} diff --git a/assets/css/themes/solarized-dark.css b/assets/css/themes/solarized-dark.css deleted file mode 100644 index e69f504b..00000000 --- a/assets/css/themes/solarized-dark.css +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Solarized Dark theme - * - * Adaptation of Solarized Dark from ethanschoonover.com/solarized - * - * @author Ethan Schoonover - * @author David Litmark - * @version 1.0.0 - */ -pre { - background: #002b36; /* base03 */ - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #839496; /* base0 */ - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #586e75; /* base01 */ -} - -pre .constant { - color: #839496; /* base0 */ -} - -pre .constant.language { - color: #268bd2; /* blue */ -} - -pre .constant.regexp { - color: #2aa198; /* cyan */ -} - -pre .storage { - color: #268bd2; /* blue */ -} - -pre .string, pre .comment.docstring { - color: #2aa198; /* cyan */ -} - -pre .support.tag.script, pre .support.tag.style { - color: #2aa198; /* cyan */ -} - -pre .string.regexp { - color: #2aa198; /* cyan */ -} - -pre .string.regexp.open, pre .string.regexp.close { - color: #2aa198; /* cyan */ -} - -pre .keyword, pre .selector { - color: #859900; /* green */ -} - -pre .inherited-class { - font-style: italic; -} - -pre .entity { - color: #b58900; /* yellow */ -} - -pre .support, *[data-language="c"] .function.call { - color: #859900; /* green */ -} - -pre .support.method { - color: #839496; /* base0 */ -} - -pre .support.property { - color: #839496; /* base0 */ -} - -pre .variable.global, pre .variable.class, pre .variable.instance { - color: #839496; /* base0 */ -} diff --git a/assets/css/themes/solarized-light.css b/assets/css/themes/solarized-light.css deleted file mode 100644 index 1eede07e..00000000 --- a/assets/css/themes/solarized-light.css +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Solarized Light theme - * - * Adaptation of Solarized Light from ethanschoonover.com/solarized - * - * @author Ethan Schoonover - * @author David Litmark - * @version 1.0.0 - */ -pre { - background: #fdf6e3; /* base3 */ - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #657b83; /* base00 */ - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #93a1a1; /* base1 */ -} - -pre .constant { - color: #657b83; /* base00 */ -} - -pre .constant.language { - color: #268bd2; /* blue */ -} - -pre .constant.regexp { - color: #2aa198; /* cyan */ -} - -pre .storage { - color: #268bd2; /* blue */ -} - -pre .string, pre .comment.docstring { - color: #2aa198; /* cyan */ -} - -pre .support.tag.script, pre .support.tag.style { - color: #2aa198; /* cyan */ -} - -pre .string.regexp { - color: #2aa198; /* cyan */ -} - -pre .string.regexp.open, pre .string.regexp.close { - color: #2aa198; /* cyan */ -} - -pre .keyword, pre .selector { - color: #859900; /* green */ -} - -pre .inherited-class { - font-style: italic; -} - -pre .entity { - color: #b58900; /* yellow */ -} - -pre .support, *[data-language="c"] .function.call { - color: #859900; /* green */ -} - -pre .support.method { - color: #657b83; /* base00 */ -} - -pre .support.property { - color: #657b83; /* base00 */ -} - -pre .variable.global, pre .variable.class, pre .variable.instance { - color: #657b83; /* base00 */ -} diff --git a/assets/css/themes/sunburst.css b/assets/css/themes/sunburst.css deleted file mode 100644 index 9db2583c..00000000 --- a/assets/css/themes/sunburst.css +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sunburst theme - * - * Adapted from the Textmate Sunburst theme by Stanley Rost - * - * @author Stanley Rost - * @author Rachel Baker - * @version 1.0.0 - */ -pre { - background-color: #000; - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #fff; - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #AEAEAE; font-style: italic; -} - -pre .constant { - color: #3387CC; -} - -pre .storage { - color: #99CF50; -} - -pre .string, pre .entity.name.class, pre .comment.docstring { -color: #65B042; -/* green */ -} - -pre .string.regexp { - color: #E9C062; - } - -pre .string.constant { - color: #DDF2A4; -} - -pre .constant.hex-color { - color: #DD7B3B; - /* orange */ -} -pre .support, pre .tag.script, pre .function.call { - color: #dad085; -} -pre .support.css-property { - color: #C5AF75; -} -pre .support.tag.style { - color: #fff; -} -pre .keyword, pre .selector { - color: #E28964; - /* dark pink */ -} - -pre .keyword.namespace { - color: #3387CC; - font-weight: bold; -} - -pre .inherited-class { - font-style: italic; -} - -pre .entity, pre .variable.instance, pre .support.namespace, pre .support.tag, pre .support.tag-name { - color: #89BDFF; -} - -pre .entity.name.id { - color: #8693A5; -} - -*[data-language="c"] .function.call { - color: #8DA6CE; -} - -pre .variable, pre .variable.global { - color: #3E87E3; - } -pre .variable.class { - - } - diff --git a/assets/css/themes/tomorrow-night.css b/assets/css/themes/tomorrow-night.css deleted file mode 100644 index 270b4b33..00000000 --- a/assets/css/themes/tomorrow-night.css +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Tomorrow Night theme - * - * @author Chris Kempson - * @author skim - * @version 1.0.0 - */ -pre { - background-color: #1d1f21; - word-wrap: break-word; - margin: 0px; - padding: 0 10px; - color: #c5c8c6; - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #969896; -} - -pre .variable.global, pre .variable.class, pre .variable.instance { - color: #cc6666; /* red */ -} - -pre .constant.numeric, pre .constant.language, pre .constant.hex-color, pre .keyword.unit { - color: #de935f; /* orange */ -} - -pre .constant, pre .entity, pre .entity.class, pre .support { - color: #f0c674; /* yellow */ -} - -pre .constant.symbol, pre .string { - color: #b5bd68; /* green */ -} - -pre .entity.function, pre .support.css-property, pre .selector { - color: #81a2be; /* blue */ -} - -pre .keyword, pre .storage { - color: #b294bb; /* purple */ -} diff --git a/assets/css/themes/tricolore.css b/assets/css/themes/tricolore.css deleted file mode 100644 index 48f3c26f..00000000 --- a/assets/css/themes/tricolore.css +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Tricolore theme - * - * @author Jean Nicolas - * @version 1.0.1 - */ -pre { - background: #FFF; - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #000; - font-size: 12px; - margin-bottom: 20px; - line-height: 16px; -} - -pre, code { - font-family: 'Monaco', 'Consolas', monospace; -} - -pre .comment { - color: #7E7E7E; - font-style: italic; -} - -pre .constant { - color: #18838A; - font-weight: bold; -} - -pre .storage { - color: #0000A1; -} - -pre .string { - color: #8E0022; -} - -pre .keyword, pre .selector { - color: #0000A1; - font-weight: bold; -} - -pre .inherited-class { - font-style: italic; -} - -pre .entity { - color: #3E853F; -} - -pre .support { - color: #192140; -} - -pre .variable.global, pre .variable.class, pre .variable.instance { - color: #3E853F; -} diff --git a/assets/css/themes/twilight.css b/assets/css/themes/twilight.css deleted file mode 100644 index 367d85bc..00000000 --- a/assets/css/themes/twilight.css +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Twilight theme - * - * Adapted from Michael Sheets' TextMate theme of the same name - * - * @author Michael Sheets - * @author Jesse Farmer - * @version 1.0.1 - */ -pre { - background: #141414; - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #F8F8F8; - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #5F5A60; -} - -pre .constant.numeric { - color: #D87D50; -} - -pre .constant { - color: #889AB4; -} - -pre .constant.symbol, pre .constant.language { - color: #D87D50; -} - -pre .storage { - color: #F9EE98; -} - -pre .string { - color: #8F9D6A; -} - -pre .string.regexp { - color: #E9C062; -} - -pre .keyword, pre .selector, pre .storage { - color: #CDA869; -} - -pre .inherited-class { - color: #9B5C2E; -} - -pre .entity { - color: #FF6400; -} - -pre .support { - color: #9B859D; -} - -pre .support.magic { - color: #DAD69A; -} - -pre .variable { - color: #7587A6; -} - -pre .function, pre .entity.class { - color: #9B703F; -} - -pre .support.class-name, pre .support.type { - color: #AB99AC; -} diff --git a/assets/css/themes/zenburnesque.css b/assets/css/themes/zenburnesque.css deleted file mode 100644 index 1b824e09..00000000 --- a/assets/css/themes/zenburnesque.css +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Zenburnesque theme - * - * Adapted from Ultraviolet RubyGem - * - * @author Flinn Mueller - * @version 1.0 - */ -pre { - background: #404040; - word-wrap: break-word; - margin: 0px; - padding: 0px; - padding: 10px; - color: #dedede; - font-size: 14px; - margin-bottom: 20px; -} - -pre, code { - font-family: 'Monaco', courier, monospace; -} - -pre .comment { - color: #709070; - font-style: italic; -} - -pre .integer { - color: #22C0FF; -} - -pre .storage { - color: #6080FF; -} - -/* This includes regexes */ -pre .string { - color: #FF2020; -} - -pre .keyword, pre .selector { - color: #ffffa0; -} - -pre .inherited-class { - font-style: italic; -} - -pre .entity { - color: #F09040; -} - -pre .support { - color: #C83730; -} - -pre .variable.class { - color: #FF8000; -} diff --git a/assets/img/glyphicons-halflings-white.png b/assets/img/glyphicons-halflings-white.png deleted file mode 100644 index 3bf6484a..00000000 Binary files a/assets/img/glyphicons-halflings-white.png and /dev/null differ diff --git a/assets/img/glyphicons-halflings.png b/assets/img/glyphicons-halflings.png deleted file mode 100644 index a9969993..00000000 Binary files a/assets/img/glyphicons-halflings.png and /dev/null differ diff --git a/assets/img/joomla_coding_standards_manual.png b/assets/img/joomla_coding_standards_manual.png deleted file mode 100644 index a1c99094..00000000 Binary files a/assets/img/joomla_coding_standards_manual.png and /dev/null differ diff --git a/assets/js/bootstrap.js b/assets/js/bootstrap.js deleted file mode 100644 index f73fcb8e..00000000 --- a/assets/js/bootstrap.js +++ /dev/null @@ -1,2027 +0,0 @@ -/* =================================================== - * bootstrap-transition.js v2.1.1 - * http://twitter.github.com/bootstrap/javascript.html#transitions - * =================================================== - * Copyright 2012 Twitter, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ========================================================== */ - - -!function ($) { - - $(function () { - - "use strict"; // jshint ;_; - - - /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) - * ======================================================= */ - - $.support.transition = (function () { - - var transitionEnd = (function () { - - var el = document.createElement('bootstrap') - , transEndEventNames = { - 'WebkitTransition' : 'webkitTransitionEnd' - , 'MozTransition' : 'transitionend' - , 'OTransition' : 'oTransitionEnd otransitionend' - , 'transition' : 'transitionend' - } - , name - - for (name in transEndEventNames){ - if (el.style[name] !== undefined) { - return transEndEventNames[name] - } - } - - }()) - - return transitionEnd && { - end: transitionEnd - } - - })() - - }) - -}(window.jQuery);/* ========================================================== - * bootstrap-alert.js v2.1.1 - * http://twitter.github.com/bootstrap/javascript.html#alerts - * ========================================================== - * Copyright 2012 Twitter, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ========================================================== */ - - -!function ($) { - - "use strict"; // jshint ;_; - - - /* ALERT CLASS DEFINITION - * ====================== */ - - var dismiss = '[data-dismiss="alert"]' - , Alert = function (el) { - $(el).on('click', dismiss, this.close) - } - - Alert.prototype.close = function (e) { - var $this = $(this) - , selector = $this.attr('data-target') - , $parent - - if (!selector) { - selector = $this.attr('href') - selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 - } - - $parent = $(selector) - - e && e.preventDefault() - - $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent()) - - $parent.trigger(e = $.Event('close')) - - if (e.isDefaultPrevented()) return - - $parent.removeClass('in') - - function removeElement() { - $parent - .trigger('closed') - .remove() - } - - $.support.transition && $parent.hasClass('fade') ? - $parent.on($.support.transition.end, removeElement) : - removeElement() - } - - - /* ALERT PLUGIN DEFINITION - * ======================= */ - - $.fn.alert = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('alert') - if (!data) $this.data('alert', (data = new Alert(this))) - if (typeof option == 'string') data[option].call($this) - }) - } - - $.fn.alert.Constructor = Alert - - - /* ALERT DATA-API - * ============== */ - - $(function () { - $('body').on('click.alert.data-api', dismiss, Alert.prototype.close) - }) - -}(window.jQuery);/* ============================================================ - * bootstrap-button.js v2.1.1 - * http://twitter.github.com/bootstrap/javascript.html#buttons - * ============================================================ - * Copyright 2012 Twitter, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============================================================ */ - - -!function ($) { - - "use strict"; // jshint ;_; - - - /* BUTTON PUBLIC CLASS DEFINITION - * ============================== */ - - var Button = function (element, options) { - this.$element = $(element) - this.options = $.extend({}, $.fn.button.defaults, options) - } - - Button.prototype.setState = function (state) { - var d = 'disabled' - , $el = this.$element - , data = $el.data() - , val = $el.is('input') ? 'val' : 'html' - - state = state + 'Text' - data.resetText || $el.data('resetText', $el[val]()) - - $el[val](data[state] || this.options[state]) - - // push to event loop to allow forms to submit - setTimeout(function () { - state == 'loadingText' ? - $el.addClass(d).attr(d, d) : - $el.removeClass(d).removeAttr(d) - }, 0) - } - - Button.prototype.toggle = function () { - var $parent = this.$element.closest('[data-toggle="buttons-radio"]') - - $parent && $parent - .find('.active') - .removeClass('active') - - this.$element.toggleClass('active') - } - - - /* BUTTON PLUGIN DEFINITION - * ======================== */ - - $.fn.button = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('button') - , options = typeof option == 'object' && option - if (!data) $this.data('button', (data = new Button(this, options))) - if (option == 'toggle') data.toggle() - else if (option) data.setState(option) - }) - } - - $.fn.button.defaults = { - loadingText: 'loading...' - } - - $.fn.button.Constructor = Button - - - /* BUTTON DATA-API - * =============== */ - - $(function () { - $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { - var $btn = $(e.target) - if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') - $btn.button('toggle') - }) - }) - -}(window.jQuery);/* ========================================================== - * bootstrap-carousel.js v2.1.1 - * http://twitter.github.com/bootstrap/javascript.html#carousel - * ========================================================== - * Copyright 2012 Twitter, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ========================================================== */ - - -!function ($) { - - "use strict"; // jshint ;_; - - - /* CAROUSEL CLASS DEFINITION - * ========================= */ - - var Carousel = function (element, options) { - this.$element = $(element) - this.options = options - this.options.slide && this.slide(this.options.slide) - this.options.pause == 'hover' && this.$element - .on('mouseenter', $.proxy(this.pause, this)) - .on('mouseleave', $.proxy(this.cycle, this)) - } - - Carousel.prototype = { - - cycle: function (e) { - if (!e) this.paused = false - this.options.interval - && !this.paused - && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) - return this - } - - , to: function (pos) { - var $active = this.$element.find('.item.active') - , children = $active.parent().children() - , activePos = children.index($active) - , that = this - - if (pos > (children.length - 1) || pos < 0) return - - if (this.sliding) { - return this.$element.one('slid', function () { - that.to(pos) - }) - } - - if (activePos == pos) { - return this.pause().cycle() - } - - return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos])) - } - - , pause: function (e) { - if (!e) this.paused = true - if (this.$element.find('.next, .prev').length && $.support.transition.end) { - this.$element.trigger($.support.transition.end) - this.cycle() - } - clearInterval(this.interval) - this.interval = null - return this - } - - , next: function () { - if (this.sliding) return - return this.slide('next') - } - - , prev: function () { - if (this.sliding) return - return this.slide('prev') - } - - , slide: function (type, next) { - var $active = this.$element.find('.item.active') - , $next = next || $active[type]() - , isCycling = this.interval - , direction = type == 'next' ? 'left' : 'right' - , fallback = type == 'next' ? 'first' : 'last' - , that = this - , e = $.Event('slide', { - relatedTarget: $next[0] - }) - - this.sliding = true - - isCycling && this.pause() - - $next = $next.length ? $next : this.$element.find('.item')[fallback]() - - if ($next.hasClass('active')) return - - if ($.support.transition && this.$element.hasClass('slide')) { - this.$element.trigger(e) - if (e.isDefaultPrevented()) return - $next.addClass(type) - $next[0].offsetWidth // force reflow - $active.addClass(direction) - $next.addClass(direction) - this.$element.one($.support.transition.end, function () { - $next.removeClass([type, direction].join(' ')).addClass('active') - $active.removeClass(['active', direction].join(' ')) - that.sliding = false - setTimeout(function () { that.$element.trigger('slid') }, 0) - }) - } else { - this.$element.trigger(e) - if (e.isDefaultPrevented()) return - $active.removeClass('active') - $next.addClass('active') - this.sliding = false - this.$element.trigger('slid') - } - - isCycling && this.cycle() - - return this - } - - } - - - /* CAROUSEL PLUGIN DEFINITION - * ========================== */ - - $.fn.carousel = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('carousel') - , options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option) - , action = typeof option == 'string' ? option : options.slide - if (!data) $this.data('carousel', (data = new Carousel(this, options))) - if (typeof option == 'number') data.to(option) - else if (action) data[action]() - else if (options.interval) data.cycle() - }) - } - - $.fn.carousel.defaults = { - interval: 5000 - , pause: 'hover' - } - - $.fn.carousel.Constructor = Carousel - - - /* CAROUSEL DATA-API - * ================= */ - - $(function () { - $('body').on('click.carousel.data-api', '[data-slide]', function ( e ) { - var $this = $(this), href - , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 - , options = !$target.data('modal') && $.extend({}, $target.data(), $this.data()) - $target.carousel(options) - e.preventDefault() - }) - }) - -}(window.jQuery);/* ============================================================= - * bootstrap-collapse.js v2.1.1 - * http://twitter.github.com/bootstrap/javascript.html#collapse - * ============================================================= - * Copyright 2012 Twitter, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============================================================ */ - - -!function ($) { - - "use strict"; // jshint ;_; - - - /* COLLAPSE PUBLIC CLASS DEFINITION - * ================================ */ - - var Collapse = function (element, options) { - this.$element = $(element) - this.options = $.extend({}, $.fn.collapse.defaults, options) - - if (this.options.parent) { - this.$parent = $(this.options.parent) - } - - this.options.toggle && this.toggle() - } - - Collapse.prototype = { - - constructor: Collapse - - , dimension: function () { - var hasWidth = this.$element.hasClass('width') - return hasWidth ? 'width' : 'height' - } - - , show: function () { - var dimension - , scroll - , actives - , hasData - - if (this.transitioning) return - - dimension = this.dimension() - scroll = $.camelCase(['scroll', dimension].join('-')) - actives = this.$parent && this.$parent.find('> .accordion-group > .in') - - if (actives && actives.length) { - hasData = actives.data('collapse') - if (hasData && hasData.transitioning) return - actives.collapse('hide') - hasData || actives.data('collapse', null) - } - - this.$element[dimension](0) - this.transition('addClass', $.Event('show'), 'shown') - $.support.transition && this.$element[dimension](this.$element[0][scroll]) - } - - , hide: function () { - var dimension - if (this.transitioning) return - dimension = this.dimension() - this.reset(this.$element[dimension]()) - this.transition('removeClass', $.Event('hide'), 'hidden') - this.$element[dimension](0) - } - - , reset: function (size) { - var dimension = this.dimension() - - this.$element - .removeClass('collapse') - [dimension](size || 'auto') - [0].offsetWidth - - this.$element[size !== null ? 'addClass' : 'removeClass']('collapse') - - return this - } - - , transition: function (method, startEvent, completeEvent) { - var that = this - , complete = function () { - if (startEvent.type == 'show') that.reset() - that.transitioning = 0 - that.$element.trigger(completeEvent) - } - - this.$element.trigger(startEvent) - - if (startEvent.isDefaultPrevented()) return - - this.transitioning = 1 - - this.$element[method]('in') - - $.support.transition && this.$element.hasClass('collapse') ? - this.$element.one($.support.transition.end, complete) : - complete() - } - - , toggle: function () { - this[this.$element.hasClass('in') ? 'hide' : 'show']() - } - - } - - - /* COLLAPSIBLE PLUGIN DEFINITION - * ============================== */ - - $.fn.collapse = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('collapse') - , options = typeof option == 'object' && option - if (!data) $this.data('collapse', (data = new Collapse(this, options))) - if (typeof option == 'string') data[option]() - }) - } - - $.fn.collapse.defaults = { - toggle: true - } - - $.fn.collapse.Constructor = Collapse - - - /* COLLAPSIBLE DATA-API - * ==================== */ - - $(function () { - $('body').on('click.collapse.data-api', '[data-toggle=collapse]', function (e) { - var $this = $(this), href - , target = $this.attr('data-target') - || e.preventDefault() - || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 - , option = $(target).data('collapse') ? 'toggle' : $this.data() - $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed') - $(target).collapse(option) - }) - }) - -}(window.jQuery);/* ============================================================ - * bootstrap-dropdown.js v2.1.1 - * http://twitter.github.com/bootstrap/javascript.html#dropdowns - * ============================================================ - * Copyright 2012 Twitter, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============================================================ */ - - -!function ($) { - - "use strict"; // jshint ;_; - - - /* DROPDOWN CLASS DEFINITION - * ========================= */ - - var toggle = '[data-toggle=dropdown]' - , Dropdown = function (element) { - var $el = $(element).on('click.dropdown.data-api', this.toggle) - $('html').on('click.dropdown.data-api', function () { - $el.parent().removeClass('open') - }) - } - - Dropdown.prototype = { - - constructor: Dropdown - - , toggle: function (e) { - var $this = $(this) - , $parent - , isActive - - if ($this.is('.disabled, :disabled')) return - - $parent = getParent($this) - - isActive = $parent.hasClass('open') - - clearMenus() - - if (!isActive) { - $parent.toggleClass('open') - $this.focus() - } - - return false - } - - , keydown: function (e) { - var $this - , $items - , $active - , $parent - , isActive - , index - - if (!/(38|40|27)/.test(e.keyCode)) return - - $this = $(this) - - e.preventDefault() - e.stopPropagation() - - if ($this.is('.disabled, :disabled')) return - - $parent = getParent($this) - - isActive = $parent.hasClass('open') - - if (!isActive || (isActive && e.keyCode == 27)) return $this.click() - - $items = $('[role=menu] li:not(.divider) a', $parent) - - if (!$items.length) return - - index = $items.index($items.filter(':focus')) - - if (e.keyCode == 38 && index > 0) index-- // up - if (e.keyCode == 40 && index < $items.length - 1) index++ // down - if (!~index) index = 0 - - $items - .eq(index) - .focus() - } - - } - - function clearMenus() { - getParent($(toggle)) - .removeClass('open') - } - - function getParent($this) { - var selector = $this.attr('data-target') - , $parent - - if (!selector) { - selector = $this.attr('href') - selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 - } - - $parent = $(selector) - $parent.length || ($parent = $this.parent()) - - return $parent - } - - - /* DROPDOWN PLUGIN DEFINITION - * ========================== */ - - $.fn.dropdown = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('dropdown') - if (!data) $this.data('dropdown', (data = new Dropdown(this))) - if (typeof option == 'string') data[option].call($this) - }) - } - - $.fn.dropdown.Constructor = Dropdown - - - /* APPLY TO STANDARD DROPDOWN ELEMENTS - * =================================== */ - - $(function () { - $('html') - .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus) - $('body') - .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) - .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle) - .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown) - }) - -}(window.jQuery);/* ========================================================= - * bootstrap-modal.js v2.1.1 - * http://twitter.github.com/bootstrap/javascript.html#modals - * ========================================================= - * Copyright 2012 Twitter, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ========================================================= */ - - -!function ($) { - - "use strict"; // jshint ;_; - - - /* MODAL CLASS DEFINITION - * ====================== */ - - var Modal = function (element, options) { - this.options = options - this.$element = $(element) - .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this)) - this.options.remote && this.$element.find('.modal-body').load(this.options.remote) - } - - Modal.prototype = { - - constructor: Modal - - , toggle: function () { - return this[!this.isShown ? 'show' : 'hide']() - } - - , show: function () { - var that = this - , e = $.Event('show') - - this.$element.trigger(e) - - if (this.isShown || e.isDefaultPrevented()) return - - $('body').addClass('modal-open') - - this.isShown = true - - this.escape() - - this.backdrop(function () { - var transition = $.support.transition && that.$element.hasClass('fade') - - if (!that.$element.parent().length) { - that.$element.appendTo(document.body) //don't move modals dom position - } - - that.$element - .show() - - if (transition) { - that.$element[0].offsetWidth // force reflow - } - - that.$element - .addClass('in') - .attr('aria-hidden', false) - .focus() - - that.enforceFocus() - - transition ? - that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) : - that.$element.trigger('shown') - - }) - } - - , hide: function (e) { - e && e.preventDefault() - - var that = this - - e = $.Event('hide') - - this.$element.trigger(e) - - if (!this.isShown || e.isDefaultPrevented()) return - - this.isShown = false - - $('body').removeClass('modal-open') - - this.escape() - - $(document).off('focusin.modal') - - this.$element - .removeClass('in') - .attr('aria-hidden', true) - - $.support.transition && this.$element.hasClass('fade') ? - this.hideWithTransition() : - this.hideModal() - } - - , enforceFocus: function () { - var that = this - $(document).on('focusin.modal', function (e) { - if (that.$element[0] !== e.target && !that.$element.has(e.target).length) { - that.$element.focus() - } - }) - } - - , escape: function () { - var that = this - if (this.isShown && this.options.keyboard) { - this.$element.on('keyup.dismiss.modal', function ( e ) { - e.which == 27 && that.hide() - }) - } else if (!this.isShown) { - this.$element.off('keyup.dismiss.modal') - } - } - - , hideWithTransition: function () { - var that = this - , timeout = setTimeout(function () { - that.$element.off($.support.transition.end) - that.hideModal() - }, 500) - - this.$element.one($.support.transition.end, function () { - clearTimeout(timeout) - that.hideModal() - }) - } - - , hideModal: function (that) { - this.$element - .hide() - .trigger('hidden') - - this.backdrop() - } - - , removeBackdrop: function () { - this.$backdrop.remove() - this.$backdrop = null - } - - , backdrop: function (callback) { - var that = this - , animate = this.$element.hasClass('fade') ? 'fade' : '' - - if (this.isShown && this.options.backdrop) { - var doAnimate = $.support.transition && animate - - this.$backdrop = $('