diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..5d6f25d3b3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,21 @@ +[submodule "public/vendor/bootstrap-datepicker"] + path = public/vendor/bootstrap-datepicker + url = https://github.com/eternicode/bootstrap-datepicker.git +[submodule "public/vendor/bootstrap-growl"] + path = public/vendor/bootstrap-growl + url = https://github.com/ifightcrime/bootstrap-growl.git +[submodule "public/vendor/bootstrap"] + path = public/vendor/bootstrap + url = https://github.com/twitter/bootstrap.git +[submodule "public/vendor/github-buttons"] + path = public/vendor/github-buttons + url = https://github.com/mdo/github-buttons.git +[submodule "public/vendor/jquery-cookie"] + path = public/vendor/jquery-cookie + url = https://github.com/carhartl/jquery-cookie.git +[submodule "public/vendor/jquery-ui"] + path = public/vendor/jquery-ui + url = https://github.com/jquery/jquery-ui.git +[submodule "public/vendor/BrowserQuest"] + path = public/vendor/BrowserQuest + url = https://github.com/mozilla/BrowserQuest.git diff --git a/config.json.example b/config.json.example index ceb4fc07da..0dafb95956 100644 --- a/config.json.example +++ b/config.json.example @@ -11,5 +11,6 @@ "SMTP_PASS":"password", "SMTP_SERVICE":"Gmail", "STRIPE_API_KEY":"aaaabbbbccccddddeeeeffff00001111", - "STRIPE_PUB_KEY":"22223333444455556666777788889999" + "STRIPE_PUB_KEY":"22223333444455556666777788889999", + "NODETIME_KEY":"abcdefg" } \ No newline at end of file diff --git a/package.json b/package.json index 6b05205679..6831086ac0 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0-150", "main": "./server.js", "dependencies": { - "derby": "git://github.com/codeparty/derby#master", + "derby": "git://github.com/lefnire/derby#habitrpg", "racer": "git://github.com/lefnire/racer#habitrpg", "racer-db-mongo": "git://github.com/lefnire/racer-db-mongo#habitrpg", "derby-ui-boot": "git://github.com/codeparty/derby-ui-boot#master", @@ -21,7 +21,9 @@ "coffee-script": "*", "underscore": "*", "mongoskin": "*", - "nconf": "*" + "nconf": "*", + "icalendar": "git://github.com/lefnire/node-icalendar#master", + "nodetime": "*" }, "private": true, "subdomain": "habitrpg", diff --git a/public/500.html b/public/500.html index 545c202c02..3d6b161835 100644 --- a/public/500.html +++ b/public/500.html @@ -5,9 +5,9 @@ - - - + + + - - - - - - - - diff --git a/public/github-btns/index.html b/public/github-btns/index.html deleted file mode 100644 index c70124e767..0000000000 --- a/public/github-btns/index.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - The Unofficial GitHub Watch & Fork Buttons - - - - - - - - - - - -
-
-
- -
- -

Introducing the unofficial

-

GitHub Buttons

-

Showcase your GitHub repo's success with these three simple, static buttons featuring dynamic watch, fork, and follower counts.

-
-
-
-
-

Star

- -
    -
  • Real-time stars count
  • -
  • Link to any public GitHub repo
  • -
  • Two available sizes
  • -
-
-
-

Fork

- -
    -
  • Real-time forks count
  • -
  • Link to any public GitHub repo
  • -
  • Two available sizes
  • -
-
-
-

Follow

- -
    -
  • Real-time followers count
  • -
  • Link to any public GitHub user
  • -
  • Two available sizes
  • -
-
-
-

- Download on GitHub -

-
- -
- - - \ No newline at end of file diff --git a/public/github-btns/page.css b/public/github-btns/page.css deleted file mode 100644 index 1a334c4ade..0000000000 --- a/public/github-btns/page.css +++ /dev/null @@ -1,212 +0,0 @@ -/* DOCS RESET --------------------------------------------------- */ -body { - padding: 40px 20px; - color: #555; - text-shadow: 0 1px 0 #fff; - background-color: #fff; - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#eee), color-stop(25%, #fff), to(#fff)); - background-image: -webkit-linear-gradient(#eee, #fff 25%, #fff); - background-image: -moz-linear-gradient(top, #eee, #fff 25%, #fff); - background-image: -ms-linear-gradient(#eee, #fff 25%, #fff); - background-image: -o-linear-gradient(#eee, #fff 25%, #fff); - background-image: linear-gradient(#eee, #fff 25%, #fff); - background-repeat: no-repeat; - background-attachment: fixed; - overflow: auto; -} -body, -p, -li { - font-size: 14px; - line-height: 20px; -} -h1, h2, h3, h4, h5, h6 { - text-rendering: optimizeLegibility; -} - -/* Set width of site */ -.container { - width: auto; - max-width: 820px; -} - -/* Clearfix */ -.clearfix:before, -.clearfix:after { - content:""; - display:table; -} -.clearfix:after { - clear:both; -} - -/* Change up the buttons to match GitHub */ -.primary.btn { - color: #fff; - text-decoration: none; - text-shadow: 0 -1px 0 rgba(0,0,0,.5); - background-color: #3072b3; /* Old browsers */ - background-repeat: repeat-x; /* Repeat the gradient */ - background-image: -moz-linear-gradient(top, #599bdc 0%, #3072b3 100%); /* FF3.6+ */ - background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#599bdc), color-stop(100%,#3072b3)); /* Chrome,Safari4+ */ - background-image: -webkit-linear-gradient(top, #599bdc 0%,#3072b3 100%); /* Chrome 10+,Safari 5.1+ */ - background-image: -ms-linear-gradient(top, #599bdc 0%,#3072b3 100%); /* IE10+ */ - background-image: -o-linear-gradient(top, #599bdc 0%,#3072b3 100%); /* Opera 11.10+ */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#599bdc', endColorstr='#3072b3',GradientType=0 ); /* IE6-9 */ - background-image: linear-gradient(top, #599bdc 0%,#3072b3 100%); /* W3C */ - border: 1px solid #2967a4; - -webkit-transition: none; - -moz-transition: none; - transition: none; - -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 2px rgba(0,0,0,.2); - -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 2px rgba(0,0,0,.2); - box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 2px rgba(0,0,0,.2); -} -.primary.btn:hover { - background-position: 0 -15px; -} -.primary.btn:active { - background-image: none; - background-color: #3072b3; /* Old browsers */ - -webkit-box-shadow: inset 0 5px 10px rgba(0,0,0,.125), 0 1px 2px rgba(0,0,0,.2); - -moz-box-shadow: inset 0 5px 10px rgba(0,0,0,.125), 0 1px 2px rgba(0,0,0,.2); - box-shadow: inset 0 5px 10px rgba(0,0,0,.125), 0 1px 2px rgba(0,0,0,.2); -} - - -/* MASTHEAD --------------------------------------------------- */ -.masthead { - margin-bottom: 30px; -} -.masthead h1, -.masthead p { - text-align: center; -} -.masthead h1 { - margin-bottom: 10px; - font-size: 80px; - line-height: 1; -} -.masthead p { - font-size: 18px; - line-height: 30px; -} -.masthead .introducing { - margin-bottom: 20px; - color: #999; -} -.masthead .tagline { - margin-bottom: 30px; - font-size: 24px; -} -.masthead .tweet-button { - width: 55px; - margin: 0 auto 20px; -} - - -/* BODY --------------------------------------------------- */ - -/* Two-column buttons */ -.about-buttons { - text-align: center; -} -.about-star, -.about-fork, -.about-follow { - width: 32%; - float: left; -} -.about-buttons div + div { - margin-left: 2%; -} -.about-buttons ul { - margin-left: 0; - list-style: none; -} -.about-buttons iframe { - margin: 10px 0; -} - -/* Download button */ -.download { - margin: 30px 0 50px; - text-align: center; -} -.download .btn { - font-size: 20px; - padding: 12px 24px; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; -} - - -/* FOOTER --------------------------------------------------- */ -.footer { - margin-top: 40px; - padding: 0; - border-top: 0; -} -.footer p { - text-align: center; -} -iframe + iframe { - margin-left: 10px; -} - - -/* MISC --------------------------------------------------- */ - -/* Small lines after each section */ -.masthead:after, -.body:after { - display: block; - content: ''; - width: 100px; - height: 1px; - margin: 0 auto; - background-color: #eee; -} - - -/* RESPONSIVE --------------------------------------------------- */ - -@media (max-width: 840px) { - .masthead h1 { - font-size: 60px; - } - .masthead p, - .masthead .tagline { - font-size: 18px; - line-height: 24px; - } - - .about-watch, - .about-fork, - .about-follow { - width: auto; - float: none; - margin-bottom: 20px; - } - .about-buttons div + div { - margin-left: 0; - } -} - -@media (max-width: 480px) { - .masthead h1 { - font-size: 40px; - } - .masthead p, - .masthead .tagline { - font-size: 16px; - line-height: 20px; - } -} \ No newline at end of file diff --git a/public/img/BrowserQuest/habitrpg_mods/Mount-PolarBear-Base.png b/public/img/BrowserQuest/habitrpg_mods/Mount-PolarBear-Base.png new file mode 100644 index 0000000000..8653816cfc Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Mount-PolarBear-Base.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-CottonCandyBlue.png new file mode 100644 index 0000000000..6e84fe081c Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-CottonCandyPink.png new file mode 100644 index 0000000000..50d68cdfb6 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-CottonCandyPink.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Desert.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Desert.png new file mode 100644 index 0000000000..31a713f900 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Desert.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Golden.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Golden.png new file mode 100644 index 0000000000..af8a82aba2 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Golden.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Red.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Red.png new file mode 100644 index 0000000000..a41271921c Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Red.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Shade.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Shade.png new file mode 100644 index 0000000000..e2ab5d71bd Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Shade.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Skeleton.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Skeleton.png new file mode 100644 index 0000000000..204392a22e Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Skeleton.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-White.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-White.png new file mode 100644 index 0000000000..d062f9e3f3 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-White.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Zombie.png b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Zombie.png new file mode 100644 index 0000000000..0d009887ba Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-BearCub-Zombie.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Chocolate.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Chocolate.png new file mode 100644 index 0000000000..64e5d16122 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Chocolate.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-CottonCandyBlue.png new file mode 100644 index 0000000000..7bb7a228ec Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-CottonCandyPink.png new file mode 100644 index 0000000000..3479ecbe44 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-CottonCandyPink.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Cream.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Cream.png new file mode 100644 index 0000000000..cd5ab8a75a Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Cream.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Golden.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Golden.png new file mode 100644 index 0000000000..678b8afd36 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Golden.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Licorice.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Licorice.png new file mode 100644 index 0000000000..c870cd98a8 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Licorice.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Rotten.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Rotten.png new file mode 100644 index 0000000000..404036c981 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Rotten.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Strawberry.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Strawberry.png new file mode 100644 index 0000000000..52c6a40c35 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-Strawberry.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-SugarCube.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-SugarCube.png new file mode 100644 index 0000000000..35003eaa20 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Cactus-SugarCube.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-CottonCandyBlue.png new file mode 100644 index 0000000000..01ce0fa208 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-CottonCandyPink.png new file mode 100644 index 0000000000..3a7dc098c7 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-CottonCandyPink.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Desert.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Desert.png new file mode 100644 index 0000000000..5b8d2e8437 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Desert.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Golden.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Golden.png new file mode 100644 index 0000000000..2ba6af05a2 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Golden.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Red.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Red.png new file mode 100644 index 0000000000..107ec77714 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Red.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Shade.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Shade.png new file mode 100644 index 0000000000..4d7177045d Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Shade.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Skeleton.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Skeleton.png new file mode 100644 index 0000000000..6970466f34 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Skeleton.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-White.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-White.png new file mode 100644 index 0000000000..130e89500c Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-White.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Zombie.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Zombie.png new file mode 100644 index 0000000000..a6f13078b8 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Dragon-Zombie.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-CottonCandyBlue.png new file mode 100644 index 0000000000..1660ca63b6 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-CottonCandyPink.png new file mode 100644 index 0000000000..33393e0f18 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-CottonCandyPink.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Desert.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Desert.png new file mode 100644 index 0000000000..ba69e561f1 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Desert.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Golden.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Golden.png new file mode 100644 index 0000000000..4e10454ca4 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Golden.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Red.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Red.png new file mode 100644 index 0000000000..0996625130 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Red.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Shade.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Shade.png new file mode 100644 index 0000000000..dbc53bf557 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Shade.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Skeleton.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Skeleton.png new file mode 100644 index 0000000000..80d229dc65 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Skeleton.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-White.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-White.png new file mode 100644 index 0000000000..f067e1f476 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-White.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Zombie.png b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Zombie.png new file mode 100644 index 0000000000..09fc882d23 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-FlyingPig-Zombie.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-CottonCandyBlue.png new file mode 100644 index 0000000000..e83e857494 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-CottonCandyPink.png new file mode 100644 index 0000000000..0bf2768165 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-CottonCandyPink.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Desert.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Desert.png new file mode 100644 index 0000000000..e112a3b0d4 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Desert.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Golden.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Golden.png new file mode 100644 index 0000000000..03749e8a70 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Golden.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Red.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Red.png new file mode 100644 index 0000000000..de9018d8f1 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Red.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Shade.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Shade.png new file mode 100644 index 0000000000..b109fc3717 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Shade.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Skeleton.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Skeleton.png new file mode 100644 index 0000000000..780bb0c292 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Skeleton.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-White.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-White.png new file mode 100644 index 0000000000..bfb4bb2901 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-White.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Zombie.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Zombie.png new file mode 100644 index 0000000000..d3957fe293 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Fox-Zombie.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-CottonCandyBlue.png new file mode 100644 index 0000000000..c3eccd4938 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-CottonCandyPink.png new file mode 100644 index 0000000000..00dfbf6b1e Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-CottonCandyPink.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Desert.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Desert.png new file mode 100644 index 0000000000..42f8a64b58 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Desert.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Golden.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Golden.png new file mode 100644 index 0000000000..da2c9ee25d Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Golden.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Red.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Red.png new file mode 100644 index 0000000000..297a20f81a Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Red.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Shade.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Shade.png new file mode 100644 index 0000000000..9314b2b9ce Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Shade.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Skeleton.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Skeleton.png new file mode 100644 index 0000000000..e3f640d34a Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Skeleton.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-White.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-White.png new file mode 100644 index 0000000000..e09a0aca09 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-White.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Zombie.png b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Zombie.png new file mode 100644 index 0000000000..b27425622d Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-LionCub-Zombie.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-CottonCandyBlue.png new file mode 100644 index 0000000000..fcaa0d243d Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-CottonCandyPink.png new file mode 100644 index 0000000000..530a58ed7d Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-CottonCandyPink.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Desert.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Desert.png new file mode 100644 index 0000000000..3a18a095dd Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Desert.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Golden.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Golden.png new file mode 100644 index 0000000000..056da19e4a Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Golden.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Red.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Red.png new file mode 100644 index 0000000000..ac7aec96c7 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Red.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Shade.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Shade.png new file mode 100644 index 0000000000..8c2492bee9 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Shade.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Skeleton.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Skeleton.png new file mode 100644 index 0000000000..0735a345d0 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Skeleton.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-White.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-White.png new file mode 100644 index 0000000000..8baf058db6 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-White.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Zombie.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Zombie.png new file mode 100644 index 0000000000..fa83fd893c Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PandaCub-Zombie.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-PolarBearCub-Base.png b/public/img/BrowserQuest/habitrpg_mods/Pet-PolarBearCub-Base.png new file mode 100644 index 0000000000..10a49bbb80 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-PolarBearCub-Base.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-CottonCandyBlue.png new file mode 100644 index 0000000000..5e7f6e489d Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-CottonCandyPink.png new file mode 100644 index 0000000000..da07c91e01 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-CottonCandyPink.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Desert.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Desert.png new file mode 100644 index 0000000000..b6e3e9c78b Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Desert.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Golden.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Golden.png new file mode 100644 index 0000000000..2c8d4afa0f Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Golden.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Red.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Red.png new file mode 100644 index 0000000000..1a381963c3 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Red.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Shade.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Shade.png new file mode 100644 index 0000000000..6e29602b8e Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Shade.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Skeleton.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Skeleton.png new file mode 100644 index 0000000000..4120915f8d Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Skeleton.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-White.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-White.png new file mode 100644 index 0000000000..0e5a6dcf53 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-White.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Zombie.png b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Zombie.png new file mode 100644 index 0000000000..a2329dbc19 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-TigerCub-Zombie.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Wolf-CottonCandyBlue.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Wolf-CottonCandyBlue.png new file mode 100644 index 0000000000..1447a765c3 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Wolf-CottonCandyBlue.png differ diff --git a/public/img/BrowserQuest/habitrpg_mods/Pet-Wolf-CottonCandyPink.png b/public/img/BrowserQuest/habitrpg_mods/Pet-Wolf-CottonCandyPink.png new file mode 100644 index 0000000000..4942612982 Binary files /dev/null and b/public/img/BrowserQuest/habitrpg_mods/Pet-Wolf-CottonCandyPink.png differ diff --git a/public/img/calendar_google.png b/public/img/calendar_google.png new file mode 100644 index 0000000000..d362e93fa1 Binary files /dev/null and b/public/img/calendar_google.png differ diff --git a/public/img/calendar_ical.png b/public/img/calendar_ical.png new file mode 100644 index 0000000000..f4094b56a4 Binary files /dev/null and b/public/img/calendar_ical.png differ diff --git a/public/img/logo/habitrpg.jpg b/public/img/logo/habitrpg.jpg new file mode 100644 index 0000000000..d4025bd194 Binary files /dev/null and b/public/img/logo/habitrpg.jpg differ diff --git a/public/img/logo/habitrpg_pixel.png b/public/img/logo/habitrpg_pixel.png new file mode 100644 index 0000000000..4bd1c43f3b Binary files /dev/null and b/public/img/logo/habitrpg_pixel.png differ diff --git a/public/img/original_user.png b/public/img/original_user.png new file mode 100644 index 0000000000..6bf1987738 Binary files /dev/null and b/public/img/original_user.png differ diff --git a/public/js/bootstrap.min.js b/public/js/bootstrap.min.js deleted file mode 100644 index 6eeb15ce3b..0000000000 --- a/public/js/bootstrap.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! -* Bootstrap.js by @fat & @mdo -* Copyright 2012 Twitter, Inc. -* http://www.apache.org/licenses/LICENSE-2.0.txt -*/ -!function($){"use strict";$(function(){$.support.transition=function(){var transitionEnd=function(){var name,el=document.createElement("bootstrap"),transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(name in transEndEventNames)if(void 0!==el.style[name])return transEndEventNames[name]}();return transitionEnd&&{end:transitionEnd}}()})}(window.jQuery),!function($){"use strict";var dismiss='[data-dismiss="alert"]',Alert=function(el){$(el).on("click",dismiss,this.close)};Alert.prototype.close=function(e){function removeElement(){$parent.trigger("closed").remove()}var $parent,$this=$(this),selector=$this.attr("data-target");selector||(selector=$this.attr("href"),selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,"")),$parent=$(selector),e&&e.preventDefault(),$parent.length||($parent=$this.hasClass("alert")?$this:$this.parent()),$parent.trigger(e=$.Event("close")),e.isDefaultPrevented()||($parent.removeClass("in"),$.support.transition&&$parent.hasClass("fade")?$parent.on($.support.transition.end,removeElement):removeElement())};var old=$.fn.alert;$.fn.alert=function(option){return this.each(function(){var $this=$(this),data=$this.data("alert");data||$this.data("alert",data=new Alert(this)),"string"==typeof option&&data[option].call($this)})},$.fn.alert.Constructor=Alert,$.fn.alert.noConflict=function(){return $.fn.alert=old,this},$(document).on("click.alert.data-api",dismiss,Alert.prototype.close)}(window.jQuery),!function($){"use strict";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+="Text",data.resetText||$el.data("resetText",$el[val]()),$el[val](data[state]||this.options[state]),setTimeout(function(){"loadingText"==state?$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")};var old=$.fn.button;$.fn.button=function(option){return this.each(function(){var $this=$(this),data=$this.data("button"),options="object"==typeof option&&option;data||$this.data("button",data=new Button(this,options)),"toggle"==option?data.toggle():option&&data.setState(option)})},$.fn.button.defaults={loadingText:"loading..."},$.fn.button.Constructor=Button,$.fn.button.noConflict=function(){return $.fn.button=old,this},$(document).on("click.button.data-api","[data-toggle^=button]",function(e){var $btn=$(e.target);$btn.hasClass("btn")||($btn=$btn.closest(".btn")),$btn.button("toggle")})}(window.jQuery),!function($){"use strict";var Carousel=function(element,options){this.$element=$(element),this.options=options,"hover"==this.options.pause&&this.$element.on("mouseenter",$.proxy(this.pause,this)).on("mouseleave",$.proxy(this.cycle,this))};Carousel.prototype={cycle:function(e){return e||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval)),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||0>pos))return this.sliding?this.$element.one("slid",function(){that.to(pos)}):activePos==pos?this.pause().cycle():this.slide(pos>activePos?"next":"prev",$(children[pos]))},pause:function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&$.support.transition.end&&(this.$element.trigger($.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(type,next){var e,$active=this.$element.find(".item.active"),$next=next||$active[type](),isCycling=this.interval,direction="next"==type?"left":"right",fallback="next"==type?"first":"last",that=this;if(this.sliding=!0,isCycling&&this.pause(),$next=$next.length?$next:this.$element.find(".item")[fallback](),e=$.Event("slide",{relatedTarget:$next[0]}),!$next.hasClass("active")){if($.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;$next.addClass(type),$next[0].offsetWidth,$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=!1,setTimeout(function(){that.$element.trigger("slid")},0)})}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;$active.removeClass("active"),$next.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return isCycling&&this.cycle(),this}}};var old=$.fn.carousel;$.fn.carousel=function(option){return this.each(function(){var $this=$(this),data=$this.data("carousel"),options=$.extend({},$.fn.carousel.defaults,"object"==typeof option&&option),action="string"==typeof option?option:options.slide;data||$this.data("carousel",data=new Carousel(this,options)),"number"==typeof option?data.to(option):action?data[action]():options.interval&&data.cycle()})},$.fn.carousel.defaults={interval:5e3,pause:"hover"},$.fn.carousel.Constructor=Carousel,$.fn.carousel.noConflict=function(){return $.fn.carousel=old,this},$(document).on("click.carousel.data-api","[data-slide]",function(e){var href,$this=$(this),$target=$($this.attr("data-target")||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,"")),options=$.extend({},$target.data(),$this.data());$target.carousel(options),e.preventDefault()})}(window.jQuery),!function($){"use strict";var Collapse=function(element,options){this.$element=$(element),this.options=$.extend({},$.fn.collapse.defaults,options),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){if(dimension=this.dimension(),scroll=$.camelCase(["scroll",dimension].join("-")),actives=this.$parent&&this.$parent.find("> .accordion-group > .in"),actives&&actives.length){if(hasData=actives.data("collapse"),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;this.transitioning||(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();return this.$element.removeClass("collapse")[dimension](size||"auto")[0].offsetWidth,this.$element[null!==size?"addClass":"removeClass"]("collapse"),this},transition:function(method,startEvent,completeEvent){var that=this,complete=function(){"show"==startEvent.type&&that.reset(),that.transitioning=0,that.$element.trigger(completeEvent)};this.$element.trigger(startEvent),startEvent.isDefaultPrevented()||(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"]()}};var old=$.fn.collapse;$.fn.collapse=function(option){return this.each(function(){var $this=$(this),data=$this.data("collapse"),options="object"==typeof option&&option;data||$this.data("collapse",data=new Collapse(this,options)),"string"==typeof option&&data[option]()})},$.fn.collapse.defaults={toggle:!0},$.fn.collapse.Constructor=Collapse,$.fn.collapse.noConflict=function(){return $.fn.collapse=old,this},$(document).on("click.collapse.data-api","[data-toggle=collapse]",function(e){var href,$this=$(this),target=$this.attr("data-target")||e.preventDefault()||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,""),option=$(target).data("collapse")?"toggle":$this.data();$this[$(target).hasClass("in")?"addClass":"removeClass"]("collapsed"),$(target).collapse(option)})}(window.jQuery),!function($){"use strict";function clearMenus(){$(toggle).each(function(){getParent($(this)).removeClass("open")})}function getParent($this){var $parent,selector=$this.attr("data-target");return selector||(selector=$this.attr("href"),selector=selector&&/#/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,"")),$parent=$(selector),$parent.length||($parent=$this.parent()),$parent}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(){var $parent,isActive,$this=$(this);if(!$this.is(".disabled, :disabled"))return $parent=getParent($this),isActive=$parent.hasClass("open"),clearMenus(),isActive||$parent.toggleClass("open"),$this.focus(),!1},keydown:function(e){var $this,$items,$parent,isActive,index;if(/(38|40|27)/.test(e.keyCode)&&($this=$(this),e.preventDefault(),e.stopPropagation(),!$this.is(".disabled, :disabled"))){if($parent=getParent($this),isActive=$parent.hasClass("open"),!isActive||isActive&&27==e.keyCode)return $this.click();$items=$("[role=menu] li:not(.divider):visible a",$parent),$items.length&&(index=$items.index($items.filter(":focus")),38==e.keyCode&&index>0&&index--,40==e.keyCode&&$items.length-1>index&&index++,~index||(index=0),$items.eq(index).focus())}}};var old=$.fn.dropdown;$.fn.dropdown=function(option){return this.each(function(){var $this=$(this),data=$this.data("dropdown");data||$this.data("dropdown",data=new Dropdown(this)),"string"==typeof option&&data[option].call($this)})},$.fn.dropdown.Constructor=Dropdown,$.fn.dropdown.noConflict=function(){return $.fn.dropdown=old,this},$(document).on("click.dropdown.data-api touchstart.dropdown.data-api",clearMenus).on("click.dropdown touchstart.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("touchstart.dropdown.data-api",".dropdown-menu",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),!function($){"use strict";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?"hide":"show"]()},show:function(){var that=this,e=$.Event("show");this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass("fade");that.$element.parent().length||that.$element.appendTo(document.body),that.$element.show(),transition&&that.$element[0].offsetWidth,that.$element.addClass("in").attr("aria-hidden",!1),that.enforceFocus(),transition?that.$element.one($.support.transition.end,function(){that.$element.focus().trigger("shown")}):that.$element.focus().trigger("shown")}))},hide:function(e){e&&e.preventDefault(),e=$.Event("hide"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),$(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),$.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var that=this;$(document).on("focusin.modal",function(e){that.$element[0]===e.target||that.$element.has(e.target).length||that.$element.focus()})},escape:function(){var that=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(e){27==e.which&&that.hide()}):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(){this.$element.hide().trigger("hidden"),this.backdrop()},removeBackdrop:function(){this.$backdrop.remove(),this.$backdrop=null},backdrop:function(callback){var animate=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate;this.$backdrop=$('