├── bootstrap ├── css │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ └── bootstrap.min.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regulard41d.eot └── js │ ├── bootstrap.js │ └── bootstrap.min.js ├── home.php ├── index.php ├── js ├── valida_login.js └── valida_registro.js ├── login.php ├── php ├── conexion.php ├── login.php ├── logout.php ├── navbar.php └── registro.php ├── registro.php └── registro.sql /bootstrap/css/bootstrap-theme.min.css: -------------------------------------------------------------------------------- 1 | .btn-default,.btn-primary,.btn-success,.btn-info,.btn-warning,.btn-danger{text-shadow:0 -1px 0 rgba(0,0,0,0.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075)}.btn-default:active,.btn-primary:active,.btn-success:active,.btn-info:active,.btn-warning:active,.btn-danger:active,.btn-default.active,.btn-primary.active,.btn-success.active,.btn-info.active,.btn-warning.active,.btn-danger.active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn:active,.btn.active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left 0,left 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,0%,#e6e6e6,100%);background-image:-moz-linear-gradient(top,#fff 0,#e6e6e6 100%);background-image:linear-gradient(to bottom,#fff 0,#e6e6e6 100%);background-repeat:repeat-x;border-color:#e0e0e0;border-color:#ccc;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0)}.btn-default:active,.btn-default.active{background-color:#e6e6e6;border-color:#e0e0e0}.btn-primary{background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#3071a9));background-image:-webkit-linear-gradient(top,#428bca,0%,#3071a9,100%);background-image:-moz-linear-gradient(top,#428bca 0,#3071a9 100%);background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%);background-repeat:repeat-x;border-color:#2d6ca2;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff3071a9',GradientType=0)}.btn-primary:active,.btn-primary.active{background-color:#3071a9;border-color:#2d6ca2}.btn-success{background-image:-webkit-gradient(linear,left 0,left 100%,from(#5cb85c),to(#449d44));background-image:-webkit-linear-gradient(top,#5cb85c,0%,#449d44,100%);background-image:-moz-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);background-repeat:repeat-x;border-color:#419641;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c',endColorstr='#ff449d44',GradientType=0)}.btn-success:active,.btn-success.active{background-color:#449d44;border-color:#419641}.btn-warning{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f0ad4e),to(#ec971f));background-image:-webkit-linear-gradient(top,#f0ad4e,0%,#ec971f,100%);background-image:-moz-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);background-repeat:repeat-x;border-color:#eb9316;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e',endColorstr='#ffec971f',GradientType=0)}.btn-warning:active,.btn-warning.active{background-color:#ec971f;border-color:#eb9316}.btn-danger{background-image:-webkit-gradient(linear,left 0,left 100%,from(#d9534f),to(#c9302c));background-image:-webkit-linear-gradient(top,#d9534f,0%,#c9302c,100%);background-image:-moz-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);background-repeat:repeat-x;border-color:#c12e2a;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f',endColorstr='#ffc9302c',GradientType=0)}.btn-danger:active,.btn-danger.active{background-color:#c9302c;border-color:#c12e2a}.btn-info{background-image:-webkit-gradient(linear,left 0,left 100%,from(#5bc0de),to(#31b0d5));background-image:-webkit-linear-gradient(top,#5bc0de,0%,#31b0d5,100%);background-image:-moz-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);background-repeat:repeat-x;border-color:#2aabd2;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff31b0d5',GradientType=0)}.btn-info:active,.btn-info.active{background-color:#31b0d5;border-color:#2aabd2}.thumbnail,.img-thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.075);box-shadow:0 1px 2px rgba(0,0,0,0.075)}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus,.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{background-color:#357ebd;background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#357ebd));background-image:-webkit-linear-gradient(top,#428bca,0%,#357ebd,100%);background-image:-moz-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff357ebd',GradientType=0)}.navbar{background-image:-webkit-gradient(linear,left 0,left 100%,from(#fff),to(#f8f8f8));background-image:-webkit-linear-gradient(top,#fff,0%,#f8f8f8,100%);background-image:-moz-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);background-repeat:repeat-x;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#fff8f8f8',GradientType=0);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.15),0 1px 5px rgba(0,0,0,0.075);box-shadow:inset 0 1px 0 rgba(255,255,255,0.15),0 1px 5px rgba(0,0,0,0.075)}.navbar .navbar-nav>.active>a{background-color:#f8f8f8}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,0.25)}.navbar-inverse{background-image:-webkit-gradient(linear,left 0,left 100%,from(#3c3c3c),to(#222));background-image:-webkit-linear-gradient(top,#3c3c3c,0%,#222,100%);background-image:-moz-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c',endColorstr='#ff222222',GradientType=0)}.navbar-inverse .navbar-nav>.active>a{background-color:#222}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.navbar-static-top,.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}.alert{text-shadow:0 1px 0 rgba(255,255,255,0.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.25),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 1px 0 rgba(255,255,255,0.25),0 1px 2px rgba(0,0,0,0.05)}.alert-success{background-image:-webkit-gradient(linear,left 0,left 100%,from(#dff0d8),to(#c8e5bc));background-image:-webkit-linear-gradient(top,#dff0d8,0%,#c8e5bc,100%);background-image:-moz-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);background-repeat:repeat-x;border-color:#b2dba1;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8',endColorstr='#ffc8e5bc',GradientType=0)}.alert-info{background-image:-webkit-gradient(linear,left 0,left 100%,from(#d9edf7),to(#b9def0));background-image:-webkit-linear-gradient(top,#d9edf7,0%,#b9def0,100%);background-image:-moz-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);background-repeat:repeat-x;border-color:#9acfea;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7',endColorstr='#ffb9def0',GradientType=0)}.alert-warning{background-image:-webkit-gradient(linear,left 0,left 100%,from(#fcf8e3),to(#f8efc0));background-image:-webkit-linear-gradient(top,#fcf8e3,0%,#f8efc0,100%);background-image:-moz-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);background-repeat:repeat-x;border-color:#f5e79e;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3',endColorstr='#fff8efc0',GradientType=0)}.alert-danger{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f2dede),to(#e7c3c3));background-image:-webkit-linear-gradient(top,#f2dede,0%,#e7c3c3,100%);background-image:-moz-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);background-repeat:repeat-x;border-color:#dca7a7;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede',endColorstr='#ffe7c3c3',GradientType=0)}.progress{background-image:-webkit-gradient(linear,left 0,left 100%,from(#ebebeb),to(#f5f5f5));background-image:-webkit-linear-gradient(top,#ebebeb,0%,#f5f5f5,100%);background-image:-moz-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb',endColorstr='#fff5f5f5',GradientType=0)}.progress-bar{background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#3071a9));background-image:-webkit-linear-gradient(top,#428bca,0%,#3071a9,100%);background-image:-moz-linear-gradient(top,#428bca 0,#3071a9 100%);background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff3071a9',GradientType=0)}.progress-bar-success{background-image:-webkit-gradient(linear,left 0,left 100%,from(#5cb85c),to(#449d44));background-image:-webkit-linear-gradient(top,#5cb85c,0%,#449d44,100%);background-image:-moz-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c',endColorstr='#ff449d44',GradientType=0)}.progress-bar-info{background-image:-webkit-gradient(linear,left 0,left 100%,from(#5bc0de),to(#31b0d5));background-image:-webkit-linear-gradient(top,#5bc0de,0%,#31b0d5,100%);background-image:-moz-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff31b0d5',GradientType=0)}.progress-bar-warning{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f0ad4e),to(#ec971f));background-image:-webkit-linear-gradient(top,#f0ad4e,0%,#ec971f,100%);background-image:-moz-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e',endColorstr='#ffec971f',GradientType=0)}.progress-bar-danger{background-image:-webkit-gradient(linear,left 0,left 100%,from(#d9534f),to(#c9302c));background-image:-webkit-linear-gradient(top,#d9534f,0%,#c9302c,100%);background-image:-moz-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f',endColorstr='#ffc9302c',GradientType=0)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.075);box-shadow:0 1px 2px rgba(0,0,0,0.075)}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{text-shadow:0 -1px 0 #3071a9;background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#3278b3));background-image:-webkit-linear-gradient(top,#428bca,0%,#3278b3,100%);background-image:-moz-linear-gradient(top,#428bca 0,#3278b3 100%);background-image:linear-gradient(to bottom,#428bca 0,#3278b3 100%);background-repeat:repeat-x;border-color:#3278b3;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff3278b3',GradientType=0)}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 2px rgba(0,0,0,0.05)}.panel-default>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f5f5f5),to(#e8e8e8));background-image:-webkit-linear-gradient(top,#f5f5f5,0%,#e8e8e8,100%);background-image:-moz-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#ffe8e8e8',GradientType=0)}.panel-primary>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#357ebd));background-image:-webkit-linear-gradient(top,#428bca,0%,#357ebd,100%);background-image:-moz-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff357ebd',GradientType=0)}.panel-success>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#dff0d8),to(#d0e9c6));background-image:-webkit-linear-gradient(top,#dff0d8,0%,#d0e9c6,100%);background-image:-moz-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8',endColorstr='#ffd0e9c6',GradientType=0)}.panel-info>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#d9edf7),to(#c4e3f3));background-image:-webkit-linear-gradient(top,#d9edf7,0%,#c4e3f3,100%);background-image:-moz-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7',endColorstr='#ffc4e3f3',GradientType=0)}.panel-warning>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#fcf8e3),to(#faf2cc));background-image:-webkit-linear-gradient(top,#fcf8e3,0%,#faf2cc,100%);background-image:-moz-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3',endColorstr='#fffaf2cc',GradientType=0)}.panel-danger>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f2dede),to(#ebcccc));background-image:-webkit-linear-gradient(top,#f2dede,0%,#ebcccc,100%);background-image:-moz-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede',endColorstr='#ffebcccc',GradientType=0)}.well{background-image:-webkit-gradient(linear,left 0,left 100%,from(#e8e8e8),to(#f5f5f5));background-image:-webkit-linear-gradient(top,#e8e8e8,0%,#f5f5f5,100%);background-image:-moz-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);background-repeat:repeat-x;border-color:#dcdcdc;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8',endColorstr='#fff5f5f5',GradientType=0);-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1)} -------------------------------------------------------------------------------- /bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/rl-php/86e8e7b3072723d3b6f5eb1e9125768b7fd80593/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /bootstrap/fonts/glyphicons-halflings-regular.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 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 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | -------------------------------------------------------------------------------- /bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/rl-php/86e8e7b3072723d3b6f5eb1e9125768b7fd80593/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/rl-php/86e8e7b3072723d3b6f5eb1e9125768b7fd80593/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /bootstrap/fonts/glyphicons-halflings-regulard41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/rl-php/86e8e7b3072723d3b6f5eb1e9125768b7fd80593/bootstrap/fonts/glyphicons-halflings-regulard41d.eot -------------------------------------------------------------------------------- /bootstrap/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /** 2 | * bootstrap.js v3.0.0 by @fat and @mdo 3 | * Copyright 2013 Twitter Inc. 4 | * http://www.apache.org/licenses/LICENSE-2.0 5 | */ 6 | if (!jQuery) { throw new Error("Bootstrap requires jQuery") } 7 | 8 | /* ======================================================================== 9 | * Bootstrap: transition.js v3.0.0 10 | * http://twbs.github.com/bootstrap/javascript.html#transitions 11 | * ======================================================================== 12 | * Copyright 2013 Twitter, Inc. 13 | * 14 | * Licensed under the Apache License, Version 2.0 (the "License"); 15 | * you may not use this file except in compliance with the License. 16 | * You may obtain a copy of the License at 17 | * 18 | * http://www.apache.org/licenses/LICENSE-2.0 19 | * 20 | * Unless required by applicable law or agreed to in writing, software 21 | * distributed under the License is distributed on an "AS IS" BASIS, 22 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 23 | * See the License for the specific language governing permissions and 24 | * limitations under the License. 25 | * ======================================================================== */ 26 | 27 | 28 | +function ($) { "use strict"; 29 | 30 | // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) 31 | // ============================================================ 32 | 33 | function transitionEnd() { 34 | var el = document.createElement('bootstrap') 35 | 36 | var transEndEventNames = { 37 | 'WebkitTransition' : 'webkitTransitionEnd' 38 | , 'MozTransition' : 'transitionend' 39 | , 'OTransition' : 'oTransitionEnd otransitionend' 40 | , 'transition' : 'transitionend' 41 | } 42 | 43 | for (var name in transEndEventNames) { 44 | if (el.style[name] !== undefined) { 45 | return { end: transEndEventNames[name] } 46 | } 47 | } 48 | } 49 | 50 | // http://blog.alexmaccaw.com/css-transitions 51 | $.fn.emulateTransitionEnd = function (duration) { 52 | var called = false, $el = this 53 | $(this).one($.support.transition.end, function () { called = true }) 54 | var callback = function () { if (!called) $($el).trigger($.support.transition.end) } 55 | setTimeout(callback, duration) 56 | return this 57 | } 58 | 59 | $(function () { 60 | $.support.transition = transitionEnd() 61 | }) 62 | 63 | }(window.jQuery); 64 | 65 | /* ======================================================================== 66 | * Bootstrap: alert.js v3.0.0 67 | * http://twbs.github.com/bootstrap/javascript.html#alerts 68 | * ======================================================================== 69 | * Copyright 2013 Twitter, Inc. 70 | * 71 | * Licensed under the Apache License, Version 2.0 (the "License"); 72 | * you may not use this file except in compliance with the License. 73 | * You may obtain a copy of the License at 74 | * 75 | * http://www.apache.org/licenses/LICENSE-2.0 76 | * 77 | * Unless required by applicable law or agreed to in writing, software 78 | * distributed under the License is distributed on an "AS IS" BASIS, 79 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 80 | * See the License for the specific language governing permissions and 81 | * limitations under the License. 82 | * ======================================================================== */ 83 | 84 | 85 | +function ($) { "use strict"; 86 | 87 | // ALERT CLASS DEFINITION 88 | // ====================== 89 | 90 | var dismiss = '[data-dismiss="alert"]' 91 | var Alert = function (el) { 92 | $(el).on('click', dismiss, this.close) 93 | } 94 | 95 | Alert.prototype.close = function (e) { 96 | var $this = $(this) 97 | var selector = $this.attr('data-target') 98 | 99 | if (!selector) { 100 | selector = $this.attr('href') 101 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 102 | } 103 | 104 | var $parent = $(selector) 105 | 106 | if (e) e.preventDefault() 107 | 108 | if (!$parent.length) { 109 | $parent = $this.hasClass('alert') ? $this : $this.parent() 110 | } 111 | 112 | $parent.trigger(e = $.Event('close.bs.alert')) 113 | 114 | if (e.isDefaultPrevented()) return 115 | 116 | $parent.removeClass('in') 117 | 118 | function removeElement() { 119 | $parent.trigger('closed.bs.alert').remove() 120 | } 121 | 122 | $.support.transition && $parent.hasClass('fade') ? 123 | $parent 124 | .one($.support.transition.end, removeElement) 125 | .emulateTransitionEnd(150) : 126 | removeElement() 127 | } 128 | 129 | 130 | // ALERT PLUGIN DEFINITION 131 | // ======================= 132 | 133 | var old = $.fn.alert 134 | 135 | $.fn.alert = function (option) { 136 | return this.each(function () { 137 | var $this = $(this) 138 | var data = $this.data('bs.alert') 139 | 140 | if (!data) $this.data('bs.alert', (data = new Alert(this))) 141 | if (typeof option == 'string') data[option].call($this) 142 | }) 143 | } 144 | 145 | $.fn.alert.Constructor = Alert 146 | 147 | 148 | // ALERT NO CONFLICT 149 | // ================= 150 | 151 | $.fn.alert.noConflict = function () { 152 | $.fn.alert = old 153 | return this 154 | } 155 | 156 | 157 | // ALERT DATA-API 158 | // ============== 159 | 160 | $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) 161 | 162 | }(window.jQuery); 163 | 164 | /* ======================================================================== 165 | * Bootstrap: button.js v3.0.0 166 | * http://twbs.github.com/bootstrap/javascript.html#buttons 167 | * ======================================================================== 168 | * Copyright 2013 Twitter, Inc. 169 | * 170 | * Licensed under the Apache License, Version 2.0 (the "License"); 171 | * you may not use this file except in compliance with the License. 172 | * You may obtain a copy of the License at 173 | * 174 | * http://www.apache.org/licenses/LICENSE-2.0 175 | * 176 | * Unless required by applicable law or agreed to in writing, software 177 | * distributed under the License is distributed on an "AS IS" BASIS, 178 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 179 | * See the License for the specific language governing permissions and 180 | * limitations under the License. 181 | * ======================================================================== */ 182 | 183 | 184 | +function ($) { "use strict"; 185 | 186 | // BUTTON PUBLIC CLASS DEFINITION 187 | // ============================== 188 | 189 | var Button = function (element, options) { 190 | this.$element = $(element) 191 | this.options = $.extend({}, Button.DEFAULTS, options) 192 | } 193 | 194 | Button.DEFAULTS = { 195 | loadingText: 'loading...' 196 | } 197 | 198 | Button.prototype.setState = function (state) { 199 | var d = 'disabled' 200 | var $el = this.$element 201 | var val = $el.is('input') ? 'val' : 'html' 202 | var data = $el.data() 203 | 204 | state = state + 'Text' 205 | 206 | if (!data.resetText) $el.data('resetText', $el[val]()) 207 | 208 | $el[val](data[state] || this.options[state]) 209 | 210 | // push to event loop to allow forms to submit 211 | setTimeout(function () { 212 | state == 'loadingText' ? 213 | $el.addClass(d).attr(d, d) : 214 | $el.removeClass(d).removeAttr(d); 215 | }, 0) 216 | } 217 | 218 | Button.prototype.toggle = function () { 219 | var $parent = this.$element.closest('[data-toggle="buttons"]') 220 | 221 | if ($parent.length) { 222 | var $input = this.$element.find('input') 223 | .prop('checked', !this.$element.hasClass('active')) 224 | .trigger('change') 225 | if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active') 226 | } 227 | 228 | this.$element.toggleClass('active') 229 | } 230 | 231 | 232 | // BUTTON PLUGIN DEFINITION 233 | // ======================== 234 | 235 | var old = $.fn.button 236 | 237 | $.fn.button = function (option) { 238 | return this.each(function () { 239 | var $this = $(this) 240 | var data = $this.data('bs.button') 241 | var options = typeof option == 'object' && option 242 | 243 | if (!data) $this.data('bs.button', (data = new Button(this, options))) 244 | 245 | if (option == 'toggle') data.toggle() 246 | else if (option) data.setState(option) 247 | }) 248 | } 249 | 250 | $.fn.button.Constructor = Button 251 | 252 | 253 | // BUTTON NO CONFLICT 254 | // ================== 255 | 256 | $.fn.button.noConflict = function () { 257 | $.fn.button = old 258 | return this 259 | } 260 | 261 | 262 | // BUTTON DATA-API 263 | // =============== 264 | 265 | $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) { 266 | var $btn = $(e.target) 267 | if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') 268 | $btn.button('toggle') 269 | e.preventDefault() 270 | }) 271 | 272 | }(window.jQuery); 273 | 274 | /* ======================================================================== 275 | * Bootstrap: carousel.js v3.0.0 276 | * http://twbs.github.com/bootstrap/javascript.html#carousel 277 | * ======================================================================== 278 | * Copyright 2012 Twitter, Inc. 279 | * 280 | * Licensed under the Apache License, Version 2.0 (the "License"); 281 | * you may not use this file except in compliance with the License. 282 | * You may obtain a copy of the License at 283 | * 284 | * http://www.apache.org/licenses/LICENSE-2.0 285 | * 286 | * Unless required by applicable law or agreed to in writing, software 287 | * distributed under the License is distributed on an "AS IS" BASIS, 288 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 289 | * See the License for the specific language governing permissions and 290 | * limitations under the License. 291 | * ======================================================================== */ 292 | 293 | 294 | +function ($) { "use strict"; 295 | 296 | // CAROUSEL CLASS DEFINITION 297 | // ========================= 298 | 299 | var Carousel = function (element, options) { 300 | this.$element = $(element) 301 | this.$indicators = this.$element.find('.carousel-indicators') 302 | this.options = options 303 | this.paused = 304 | this.sliding = 305 | this.interval = 306 | this.$active = 307 | this.$items = null 308 | 309 | this.options.pause == 'hover' && this.$element 310 | .on('mouseenter', $.proxy(this.pause, this)) 311 | .on('mouseleave', $.proxy(this.cycle, this)) 312 | } 313 | 314 | Carousel.DEFAULTS = { 315 | interval: 5000 316 | , pause: 'hover' 317 | , wrap: true 318 | } 319 | 320 | Carousel.prototype.cycle = function (e) { 321 | e || (this.paused = false) 322 | 323 | this.interval && clearInterval(this.interval) 324 | 325 | this.options.interval 326 | && !this.paused 327 | && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) 328 | 329 | return this 330 | } 331 | 332 | Carousel.prototype.getActiveIndex = function () { 333 | this.$active = this.$element.find('.item.active') 334 | this.$items = this.$active.parent().children() 335 | 336 | return this.$items.index(this.$active) 337 | } 338 | 339 | Carousel.prototype.to = function (pos) { 340 | var that = this 341 | var activeIndex = this.getActiveIndex() 342 | 343 | if (pos > (this.$items.length - 1) || pos < 0) return 344 | 345 | if (this.sliding) return this.$element.one('slid', function () { that.to(pos) }) 346 | if (activeIndex == pos) return this.pause().cycle() 347 | 348 | return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos])) 349 | } 350 | 351 | Carousel.prototype.pause = function (e) { 352 | e || (this.paused = true) 353 | 354 | if (this.$element.find('.next, .prev').length && $.support.transition.end) { 355 | this.$element.trigger($.support.transition.end) 356 | this.cycle(true) 357 | } 358 | 359 | this.interval = clearInterval(this.interval) 360 | 361 | return this 362 | } 363 | 364 | Carousel.prototype.next = function () { 365 | if (this.sliding) return 366 | return this.slide('next') 367 | } 368 | 369 | Carousel.prototype.prev = function () { 370 | if (this.sliding) return 371 | return this.slide('prev') 372 | } 373 | 374 | Carousel.prototype.slide = function (type, next) { 375 | var $active = this.$element.find('.item.active') 376 | var $next = next || $active[type]() 377 | var isCycling = this.interval 378 | var direction = type == 'next' ? 'left' : 'right' 379 | var fallback = type == 'next' ? 'first' : 'last' 380 | var that = this 381 | 382 | if (!$next.length) { 383 | if (!this.options.wrap) return 384 | $next = this.$element.find('.item')[fallback]() 385 | } 386 | 387 | this.sliding = true 388 | 389 | isCycling && this.pause() 390 | 391 | var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction }) 392 | 393 | if ($next.hasClass('active')) return 394 | 395 | if (this.$indicators.length) { 396 | this.$indicators.find('.active').removeClass('active') 397 | this.$element.one('slid', function () { 398 | var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()]) 399 | $nextIndicator && $nextIndicator.addClass('active') 400 | }) 401 | } 402 | 403 | if ($.support.transition && this.$element.hasClass('slide')) { 404 | this.$element.trigger(e) 405 | if (e.isDefaultPrevented()) return 406 | $next.addClass(type) 407 | $next[0].offsetWidth // force reflow 408 | $active.addClass(direction) 409 | $next.addClass(direction) 410 | $active 411 | .one($.support.transition.end, function () { 412 | $next.removeClass([type, direction].join(' ')).addClass('active') 413 | $active.removeClass(['active', direction].join(' ')) 414 | that.sliding = false 415 | setTimeout(function () { that.$element.trigger('slid') }, 0) 416 | }) 417 | .emulateTransitionEnd(600) 418 | } else { 419 | this.$element.trigger(e) 420 | if (e.isDefaultPrevented()) return 421 | $active.removeClass('active') 422 | $next.addClass('active') 423 | this.sliding = false 424 | this.$element.trigger('slid') 425 | } 426 | 427 | isCycling && this.cycle() 428 | 429 | return this 430 | } 431 | 432 | 433 | // CAROUSEL PLUGIN DEFINITION 434 | // ========================== 435 | 436 | var old = $.fn.carousel 437 | 438 | $.fn.carousel = function (option) { 439 | return this.each(function () { 440 | var $this = $(this) 441 | var data = $this.data('bs.carousel') 442 | var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) 443 | var action = typeof option == 'string' ? option : options.slide 444 | 445 | if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) 446 | if (typeof option == 'number') data.to(option) 447 | else if (action) data[action]() 448 | else if (options.interval) data.pause().cycle() 449 | }) 450 | } 451 | 452 | $.fn.carousel.Constructor = Carousel 453 | 454 | 455 | // CAROUSEL NO CONFLICT 456 | // ==================== 457 | 458 | $.fn.carousel.noConflict = function () { 459 | $.fn.carousel = old 460 | return this 461 | } 462 | 463 | 464 | // CAROUSEL DATA-API 465 | // ================= 466 | 467 | $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) { 468 | var $this = $(this), href 469 | var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 470 | var options = $.extend({}, $target.data(), $this.data()) 471 | var slideIndex = $this.attr('data-slide-to') 472 | if (slideIndex) options.interval = false 473 | 474 | $target.carousel(options) 475 | 476 | if (slideIndex = $this.attr('data-slide-to')) { 477 | $target.data('bs.carousel').to(slideIndex) 478 | } 479 | 480 | e.preventDefault() 481 | }) 482 | 483 | $(window).on('load', function () { 484 | $('[data-ride="carousel"]').each(function () { 485 | var $carousel = $(this) 486 | $carousel.carousel($carousel.data()) 487 | }) 488 | }) 489 | 490 | }(window.jQuery); 491 | 492 | /* ======================================================================== 493 | * Bootstrap: collapse.js v3.0.0 494 | * http://twbs.github.com/bootstrap/javascript.html#collapse 495 | * ======================================================================== 496 | * Copyright 2012 Twitter, Inc. 497 | * 498 | * Licensed under the Apache License, Version 2.0 (the "License"); 499 | * you may not use this file except in compliance with the License. 500 | * You may obtain a copy of the License at 501 | * 502 | * http://www.apache.org/licenses/LICENSE-2.0 503 | * 504 | * Unless required by applicable law or agreed to in writing, software 505 | * distributed under the License is distributed on an "AS IS" BASIS, 506 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 507 | * See the License for the specific language governing permissions and 508 | * limitations under the License. 509 | * ======================================================================== */ 510 | 511 | 512 | +function ($) { "use strict"; 513 | 514 | // COLLAPSE PUBLIC CLASS DEFINITION 515 | // ================================ 516 | 517 | var Collapse = function (element, options) { 518 | this.$element = $(element) 519 | this.options = $.extend({}, Collapse.DEFAULTS, options) 520 | this.transitioning = null 521 | 522 | if (this.options.parent) this.$parent = $(this.options.parent) 523 | if (this.options.toggle) this.toggle() 524 | } 525 | 526 | Collapse.DEFAULTS = { 527 | toggle: true 528 | } 529 | 530 | Collapse.prototype.dimension = function () { 531 | var hasWidth = this.$element.hasClass('width') 532 | return hasWidth ? 'width' : 'height' 533 | } 534 | 535 | Collapse.prototype.show = function () { 536 | if (this.transitioning || this.$element.hasClass('in')) return 537 | 538 | var startEvent = $.Event('show.bs.collapse') 539 | this.$element.trigger(startEvent) 540 | if (startEvent.isDefaultPrevented()) return 541 | 542 | var actives = this.$parent && this.$parent.find('> .panel > .in') 543 | 544 | if (actives && actives.length) { 545 | var hasData = actives.data('bs.collapse') 546 | if (hasData && hasData.transitioning) return 547 | actives.collapse('hide') 548 | hasData || actives.data('bs.collapse', null) 549 | } 550 | 551 | var dimension = this.dimension() 552 | 553 | this.$element 554 | .removeClass('collapse') 555 | .addClass('collapsing') 556 | [dimension](0) 557 | 558 | this.transitioning = 1 559 | 560 | var complete = function () { 561 | this.$element 562 | .removeClass('collapsing') 563 | .addClass('in') 564 | [dimension]('auto') 565 | this.transitioning = 0 566 | this.$element.trigger('shown.bs.collapse') 567 | } 568 | 569 | if (!$.support.transition) return complete.call(this) 570 | 571 | var scrollSize = $.camelCase(['scroll', dimension].join('-')) 572 | 573 | this.$element 574 | .one($.support.transition.end, $.proxy(complete, this)) 575 | .emulateTransitionEnd(350) 576 | [dimension](this.$element[0][scrollSize]) 577 | } 578 | 579 | Collapse.prototype.hide = function () { 580 | if (this.transitioning || !this.$element.hasClass('in')) return 581 | 582 | var startEvent = $.Event('hide.bs.collapse') 583 | this.$element.trigger(startEvent) 584 | if (startEvent.isDefaultPrevented()) return 585 | 586 | var dimension = this.dimension() 587 | 588 | this.$element 589 | [dimension](this.$element[dimension]()) 590 | [0].offsetHeight 591 | 592 | this.$element 593 | .addClass('collapsing') 594 | .removeClass('collapse') 595 | .removeClass('in') 596 | 597 | this.transitioning = 1 598 | 599 | var complete = function () { 600 | this.transitioning = 0 601 | this.$element 602 | .trigger('hidden.bs.collapse') 603 | .removeClass('collapsing') 604 | .addClass('collapse') 605 | } 606 | 607 | if (!$.support.transition) return complete.call(this) 608 | 609 | this.$element 610 | [dimension](0) 611 | .one($.support.transition.end, $.proxy(complete, this)) 612 | .emulateTransitionEnd(350) 613 | } 614 | 615 | Collapse.prototype.toggle = function () { 616 | this[this.$element.hasClass('in') ? 'hide' : 'show']() 617 | } 618 | 619 | 620 | // COLLAPSE PLUGIN DEFINITION 621 | // ========================== 622 | 623 | var old = $.fn.collapse 624 | 625 | $.fn.collapse = function (option) { 626 | return this.each(function () { 627 | var $this = $(this) 628 | var data = $this.data('bs.collapse') 629 | var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) 630 | 631 | if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) 632 | if (typeof option == 'string') data[option]() 633 | }) 634 | } 635 | 636 | $.fn.collapse.Constructor = Collapse 637 | 638 | 639 | // COLLAPSE NO CONFLICT 640 | // ==================== 641 | 642 | $.fn.collapse.noConflict = function () { 643 | $.fn.collapse = old 644 | return this 645 | } 646 | 647 | 648 | // COLLAPSE DATA-API 649 | // ================= 650 | 651 | $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) { 652 | var $this = $(this), href 653 | var target = $this.attr('data-target') 654 | || e.preventDefault() 655 | || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 656 | var $target = $(target) 657 | var data = $target.data('bs.collapse') 658 | var option = data ? 'toggle' : $this.data() 659 | var parent = $this.attr('data-parent') 660 | var $parent = parent && $(parent) 661 | 662 | if (!data || !data.transitioning) { 663 | if ($parent) $parent.find('[data-toggle=collapse][data-parent="' + parent + '"]').not($this).addClass('collapsed') 664 | $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed') 665 | } 666 | 667 | $target.collapse(option) 668 | }) 669 | 670 | }(window.jQuery); 671 | 672 | /* ======================================================================== 673 | * Bootstrap: dropdown.js v3.0.0 674 | * http://twbs.github.com/bootstrap/javascript.html#dropdowns 675 | * ======================================================================== 676 | * Copyright 2012 Twitter, Inc. 677 | * 678 | * Licensed under the Apache License, Version 2.0 (the "License"); 679 | * you may not use this file except in compliance with the License. 680 | * You may obtain a copy of the License at 681 | * 682 | * http://www.apache.org/licenses/LICENSE-2.0 683 | * 684 | * Unless required by applicable law or agreed to in writing, software 685 | * distributed under the License is distributed on an "AS IS" BASIS, 686 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 687 | * See the License for the specific language governing permissions and 688 | * limitations under the License. 689 | * ======================================================================== */ 690 | 691 | 692 | +function ($) { "use strict"; 693 | 694 | // DROPDOWN CLASS DEFINITION 695 | // ========================= 696 | 697 | var backdrop = '.dropdown-backdrop' 698 | var toggle = '[data-toggle=dropdown]' 699 | var Dropdown = function (element) { 700 | var $el = $(element).on('click.bs.dropdown', this.toggle) 701 | } 702 | 703 | Dropdown.prototype.toggle = function (e) { 704 | var $this = $(this) 705 | 706 | if ($this.is('.disabled, :disabled')) return 707 | 708 | var $parent = getParent($this) 709 | var isActive = $parent.hasClass('open') 710 | 711 | clearMenus() 712 | 713 | if (!isActive) { 714 | if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { 715 | // if mobile we we use a backdrop because click events don't delegate 716 | $('