diff --git a/.build/bower.json b/.build/bower.json index 47138f5c29..c0ccff4dac 100644 --- a/.build/bower.json +++ b/.build/bower.json @@ -1,5 +1,5 @@ { - "name": "SickRage", + "name": "Medusa", "private": true, "ignore": [ "**/.*", @@ -24,9 +24,11 @@ "jquery-confirm": "~2.5.2", "bootstrap-formhelpers": "~2.3.0", "isotope": "~2.2.2", - "openSans": "https://google-fonts.azurewebsites.net/googleFonts/openSans?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic" + "openSans": "https://google-fonts.azurewebsites.net/googleFonts/openSans?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic", + "jquery-backstretch": "backstretch#^2.0.4" }, "resolutions": { - "bootstrap": "~3.3.5" + "bootstrap": "~3.3.5", + "jquery": "~2.1.4" } } diff --git a/.build/package.json b/.build/package.json index f7c0c0918b..37ca6e6f08 100644 --- a/.build/package.json +++ b/.build/package.json @@ -25,6 +25,7 @@ "grunt-contrib-cssmin": "^0.14.0", "grunt-contrib-jshint": "^1.0.0", "grunt-contrib-sass": "^0.9.2", + "grunt-contrib-watch": "^0.6.1", "grunt-contrib-uglify": "^0.11.1", "grunt-mocha": "^0.4.15", "grunt-sass": "^1.1.0", diff --git a/.pullapprove.yml b/.pullapprove.yml index 4265923062..68c106cee1 100644 --- a/.pullapprove.yml +++ b/.pullapprove.yml @@ -15,3 +15,4 @@ reviewers: - p0psicles - OmgImAlexis - adaur + - Thraxis diff --git a/SickBeard.py b/SickBeard.py index 936d2b71b3..0d4ee33b95 100755 --- a/SickBeard.py +++ b/SickBeard.py @@ -478,7 +478,7 @@ def load_shows_from_db(): for sql_show in sql_results: try: cur_show = TVShow(sql_show[b'indexer'], sql_show[b'indexer_id']) - cur_show.nextEpisode() + cur_show.next_episode() sickbeard.showList.append(cur_show) except Exception as error: # pylint: disable=broad-except logger.log('There was an error creating the show in {}: Error {}'.format diff --git a/gui/slick/css/browser.css b/gui/slick/css/browser.css index bdc1f3ab3d..56cd697714 100644 --- a/gui/slick/css/browser.css +++ b/gui/slick/css/browser.css @@ -20,7 +20,7 @@ } .fileBrowserDialog ul li a:hover { - color: #00f; + color: rgb(0, 0, 255); background: none; } diff --git a/gui/slick/css/country-flags.css b/gui/slick/css/country-flags.css index 44ca6e1976..1f9a424964 100644 --- a/gui/slick/css/country-flags.css +++ b/gui/slick/css/country-flags.css @@ -1,257 +1,508 @@ .country-flag { width: 16px; height: 11px; - background:url(../images/country-flags.png) no-repeat + background:url(../images/country-flags.png) no-repeat; } -.country-flag.flag-ad {background-position: -16px 0} -.country-flag.flag-ae {background-position: -32px 0} -.country-flag.flag-af {background-position: -48px 0} -.country-flag.flag-ag {background-position: -64px 0} -.country-flag.flag-ai {background-position: -80px 0} -.country-flag.flag-al {background-position: -96px 0} -.country-flag.flag-am {background-position: -112px 0} -.country-flag.flag-an {background-position: -128px 0} -.country-flag.flag-ao {background-position: -144px 0} -.country-flag.flag-ar {background-position: -160px 0} -.country-flag.flag-as {background-position: -176px 0} -.country-flag.flag-at {background-position: -192px 0} -.country-flag.flag-au {background-position: -208px 0} -.country-flag.flag-aw {background-position: -224px 0} -.country-flag.flag-az {background-position: -240px 0} -.country-flag.flag-ba {background-position: 0 -11px} -.country-flag.flag-bb {background-position: -16px -11px} -.country-flag.flag-bd {background-position: -32px -11px} -.country-flag.flag-be {background-position: -48px -11px} -.country-flag.flag-bf {background-position: -64px -11px} -.country-flag.flag-bg {background-position: -80px -11px} -.country-flag.flag-bh {background-position: -96px -11px} -.country-flag.flag-bi {background-position: -112px -11px} -.country-flag.flag-bj {background-position: -128px -11px} -.country-flag.flag-bm {background-position: -144px -11px} -.country-flag.flag-bn {background-position: -160px -11px} -.country-flag.flag-bo {background-position: -176px -11px} -.country-flag.flag-br {background-position: -192px -11px} -.country-flag.flag-bs {background-position: -208px -11px} -.country-flag.flag-bt {background-position: -224px -11px} -.country-flag.flag-bv {background-position: -240px -11px} -.country-flag.flag-bw {background-position: 0 -22px} -.country-flag.flag-by {background-position: -16px -22px} -.country-flag.flag-bz {background-position: -32px -22px} -.country-flag.flag-ca {background-position: -48px -22px} -.country-flag.flag-catalonia {background-position: -64px -22px} -.country-flag.flag-cd {background-position: -80px -22px} -.country-flag.flag-cf {background-position: -96px -22px} -.country-flag.flag-cg {background-position: -112px -22px} -.country-flag.flag-ch {background-position: -128px -22px} -.country-flag.flag-ci {background-position: -144px -22px} -.country-flag.flag-ck {background-position: -160px -22px} -.country-flag.flag-cl {background-position: -176px -22px} -.country-flag.flag-cm {background-position: -192px -22px} -.country-flag.flag-cn {background-position: -208px -22px} -.country-flag.flag-co {background-position: -224px -22px} -.country-flag.flag-cr {background-position: -240px -22px} -.country-flag.flag-cu {background-position: 0 -33px} -.country-flag.flag-cv {background-position: -16px -33px} -.country-flag.flag-cw {background-position: -32px -33px} -.country-flag.flag-cy {background-position: -48px -33px} -.country-flag.flag-cz {background-position: -64px -33px} -.country-flag.flag-de {background-position: -80px -33px} -.country-flag.flag-dj {background-position: -96px -33px} -.country-flag.flag-dk {background-position: -112px -33px} -.country-flag.flag-dm {background-position: -128px -33px} -.country-flag.flag-do {background-position: -144px -33px} -.country-flag.flag-dz {background-position: -160px -33px} -.country-flag.flag-ec {background-position: -176px -33px} -.country-flag.flag-ee {background-position: -192px -33px} -.country-flag.flag-eg {background-position: -208px -33px} -.country-flag.flag-eh {background-position: -224px -33px} -.country-flag.flag-england {background-position: -240px -33px} -.country-flag.flag-er {background-position: 0 -44px} -.country-flag.flag-es {background-position: -16px -44px} -.country-flag.flag-et {background-position: -32px -44px} -.country-flag.flag-eu {background-position: -48px -44px} -.country-flag.flag-fi {background-position: -64px -44px} -.country-flag.flag-fj {background-position: -80px -44px} -.country-flag.flag-fk {background-position: -96px -44px} -.country-flag.flag-fm {background-position: -112px -44px} -.country-flag.flag-fo {background-position: -128px -44px} -.country-flag.flag-fr {background-position: -144px -44px} -.country-flag.flag-ga {background-position: -160px -44px} -.country-flag.flag-gb {background-position: -176px -44px} -.country-flag.flag-gd {background-position: -192px -44px} -.country-flag.flag-ge {background-position: -208px -44px} -.country-flag.flag-gf {background-position: -224px -44px} -.country-flag.flag-gg {background-position: -240px -44px} -.country-flag.flag-gh {background-position: 0 -55px} -.country-flag.flag-gi {background-position: -16px -55px} -.country-flag.flag-gl {background-position: -32px -55px} -.country-flag.flag-gm {background-position: -48px -55px} -.country-flag.flag-gn {background-position: -64px -55px} -.country-flag.flag-gp {background-position: -80px -55px} -.country-flag.flag-gq {background-position: -96px -55px} -.country-flag.flag-gr {background-position: -112px -55px} -.country-flag.flag-gs {background-position: -128px -55px} -.country-flag.flag-gt {background-position: -144px -55px} -.country-flag.flag-gu {background-position: -160px -55px} -.country-flag.flag-gw {background-position: -176px -55px} -.country-flag.flag-gy {background-position: -192px -55px} -.country-flag.flag-hk {background-position: -208px -55px} -.country-flag.flag-hm {background-position: -224px -55px} -.country-flag.flag-hn {background-position: -240px -55px} -.country-flag.flag-hr {background-position: 0 -66px} -.country-flag.flag-ht {background-position: -16px -66px} -.country-flag.flag-hu {background-position: -32px -66px} -.country-flag.flag-ic {background-position: -48px -66px} -.country-flag.flag-id {background-position: -64px -66px} -.country-flag.flag-ie {background-position: -80px -66px} -.country-flag.flag-il {background-position: -96px -66px} -.country-flag.flag-im {background-position: -112px -66px} -.country-flag.flag-in {background-position: -128px -66px} -.country-flag.flag-io {background-position: -144px -66px} -.country-flag.flag-iq {background-position: -160px -66px} -.country-flag.flag-ir {background-position: -176px -66px} -.country-flag.flag-is {background-position: -192px -66px} -.country-flag.flag-it {background-position: -208px -66px} -.country-flag.flag-je {background-position: -224px -66px} -.country-flag.flag-jm {background-position: -240px -66px} -.country-flag.flag-jo {background-position: 0 -77px} -.country-flag.flag-jp {background-position: -16px -77px} -.country-flag.flag-ke {background-position: -32px -77px} -.country-flag.flag-kg {background-position: -48px -77px} -.country-flag.flag-kh {background-position: -64px -77px} -.country-flag.flag-ki {background-position: -80px -77px} -.country-flag.flag-km {background-position: -96px -77px} -.country-flag.flag-kn {background-position: -112px -77px} -.country-flag.flag-kp {background-position: -128px -77px} -.country-flag.flag-kr {background-position: -144px -77px} -.country-flag.flag-kurdistan {background-position: -160px -77px} -.country-flag.flag-kw {background-position: -176px -77px} -.country-flag.flag-ky {background-position: -192px -77px} -.country-flag.flag-kz {background-position: -208px -77px} -.country-flag.flag-la {background-position: -224px -77px} -.country-flag.flag-lb {background-position: -240px -77px} -.country-flag.flag-lc {background-position: 0 -88px} -.country-flag.flag-li {background-position: -16px -88px} -.country-flag.flag-lk {background-position: -32px -88px} -.country-flag.flag-lr {background-position: -48px -88px} -.country-flag.flag-ls {background-position: -64px -88px} -.country-flag.flag-lt {background-position: -80px -88px} -.country-flag.flag-lu {background-position: -96px -88px} -.country-flag.flag-lv {background-position: -112px -88px} -.country-flag.flag-ly {background-position: -128px -88px} -.country-flag.flag-ma {background-position: -144px -88px} -.country-flag.flag-mc {background-position: -160px -88px} -.country-flag.flag-md {background-position: -176px -88px} -.country-flag.flag-me {background-position: -192px -88px} -.country-flag.flag-mg {background-position: -208px -88px} -.country-flag.flag-mh {background-position: -224px -88px} -.country-flag.flag-mk {background-position: -240px -88px} -.country-flag.flag-ml {background-position: 0 -99px} -.country-flag.flag-mm {background-position: -16px -99px} -.country-flag.flag-mn {background-position: -32px -99px} -.country-flag.flag-mo {background-position: -48px -99px} -.country-flag.flag-mp {background-position: -64px -99px} -.country-flag.flag-mq {background-position: -80px -99px} -.country-flag.flag-mr {background-position: -96px -99px} -.country-flag.flag-ms {background-position: -112px -99px} -.country-flag.flag-mt {background-position: -128px -99px} -.country-flag.flag-mu {background-position: -144px -99px} -.country-flag.flag-mv {background-position: -160px -99px} -.country-flag.flag-mw {background-position: -176px -99px} -.country-flag.flag-mx {background-position: -192px -99px} -.country-flag.flag-my {background-position: -208px -99px} -.country-flag.flag-mz {background-position: -224px -99px} -.country-flag.flag-na {background-position: -240px -99px} -.country-flag.flag-nc {background-position: 0 -110px} -.country-flag.flag-ne {background-position: -16px -110px} -.country-flag.flag-nf {background-position: -32px -110px} -.country-flag.flag-ng {background-position: -48px -110px} -.country-flag.flag-ni {background-position: -64px -110px} -.country-flag.flag-nl {background-position: -80px -110px} -.country-flag.flag-no {background-position: -96px -110px} -.country-flag.flag-np {background-position: -112px -110px} -.country-flag.flag-nr {background-position: -128px -110px} -.country-flag.flag-nu {background-position: -144px -110px} -.country-flag.flag-nz {background-position: -160px -110px} -.country-flag.flag-om {background-position: -176px -110px} -.country-flag.flag-pa {background-position: -192px -110px} -.country-flag.flag-pe {background-position: -208px -110px} -.country-flag.flag-pf {background-position: -224px -110px} -.country-flag.flag-pg {background-position: -240px -110px} -.country-flag.flag-ph {background-position: 0 -121px} -.country-flag.flag-pk {background-position: -16px -121px} -.country-flag.flag-pl {background-position: -32px -121px} -.country-flag.flag-pm {background-position: -48px -121px} -.country-flag.flag-pn {background-position: -64px -121px} -.country-flag.flag-pr {background-position: -80px -121px} -.country-flag.flag-ps {background-position: -96px -121px} -.country-flag.flag-pt {background-position: -112px -121px} -.country-flag.flag-pw {background-position: -128px -121px} -.country-flag.flag-py {background-position: -144px -121px} -.country-flag.flag-qa {background-position: -160px -121px} -.country-flag.flag-re {background-position: -176px -121px} -.country-flag.flag-ro {background-position: -192px -121px} -.country-flag.flag-rs {background-position: -208px -121px} -.country-flag.flag-ru {background-position: -224px -121px} -.country-flag.flag-rw {background-position: -240px -121px} -.country-flag.flag-sa {background-position: 0 -132px} -.country-flag.flag-sb {background-position: -16px -132px} -.country-flag.flag-sc {background-position: -32px -132px} -.country-flag.flag-scotland {background-position: -48px -132px} -.country-flag.flag-sd {background-position: -64px -132px} -.country-flag.flag-se {background-position: -80px -132px} -.country-flag.flag-sg {background-position: -96px -132px} -.country-flag.flag-sh {background-position: -112px -132px} -.country-flag.flag-si {background-position: -128px -132px} -.country-flag.flag-sk {background-position: -144px -132px} -.country-flag.flag-sl {background-position: -160px -132px} -.country-flag.flag-sm {background-position: -176px -132px} -.country-flag.flag-sn {background-position: -192px -132px} -.country-flag.flag-so {background-position: -208px -132px} -.country-flag.flag-somaliland {background-position: -224px -132px} -.country-flag.flag-sr {background-position: -240px -132px} -.country-flag.flag-ss {background-position: 0 -143px} -.country-flag.flag-st {background-position: -16px -143px} -.country-flag.flag-sv {background-position: -32px -143px} -.country-flag.flag-sx {background-position: -48px -143px} -.country-flag.flag-sy {background-position: -64px -143px} -.country-flag.flag-sz {background-position: -80px -143px} -.country-flag.flag-tc {background-position: -96px -143px} -.country-flag.flag-td {background-position: -112px -143px} -.country-flag.flag-tf {background-position: -128px -143px} -.country-flag.flag-tg {background-position: -144px -143px} -.country-flag.flag-th {background-position: -160px -143px} -.country-flag.flag-tj {background-position: -176px -143px} -.country-flag.flag-tk {background-position: -192px -143px} -.country-flag.flag-tl {background-position: -208px -143px} -.country-flag.flag-tm {background-position: -224px -143px} -.country-flag.flag-tn {background-position: -240px -143px} -.country-flag.flag-to {background-position: 0 -154px} -.country-flag.flag-tr {background-position: -16px -154px} -.country-flag.flag-tt {background-position: -32px -154px} -.country-flag.flag-tv {background-position: -48px -154px} -.country-flag.flag-tw {background-position: -64px -154px} -.country-flag.flag-tz {background-position: -80px -154px} -.country-flag.flag-ua {background-position: -96px -154px} -.country-flag.flag-ug {background-position: -112px -154px} -.country-flag.flag-um {background-position: -128px -154px} -.country-flag.flag-us {background-position: -144px -154px} -.country-flag.flag-uy {background-position: -160px -154px} -.country-flag.flag-uz {background-position: -176px -154px} -.country-flag.flag-va {background-position: -192px -154px} -.country-flag.flag-vc {background-position: -208px -154px} -.country-flag.flag-ve {background-position: -224px -154px} -.country-flag.flag-vg {background-position: -240px -154px} -.country-flag.flag-vi {background-position: 0 -165px} -.country-flag.flag-vn {background-position: -16px -165px} -.country-flag.flag-vu {background-position: -32px -165px} -.country-flag.flag-wales {background-position: -48px -165px} -.country-flag.flag-wf {background-position: -64px -165px} -.country-flag.flag-ws {background-position: -80px -165px} -.country-flag.flag-ye {background-position: -96px -165px} -.country-flag.flag-yt {background-position: -112px -165px} -.country-flag.flag-za {background-position: -128px -165px} -.country-flag.flag-zanzibar {background-position: -144px -165px} -.country-flag.flag-zm {background-position: -160px -165px} -.country-flag.flag-zw {background-position: -176px -165px} +.country-flag.flag-ad {background-position: -16px 0; +} +.country-flag.flag-ae {background-position: -32px 0; +} +.country-flag.flag-af {background-position: -48px 0; +} +.country-flag.flag-ag {background-position: -64px 0; +} +.country-flag.flag-ai {background-position: -80px 0; +} +.country-flag.flag-al {background-position: -96px 0; +} +.country-flag.flag-am {background-position: -112px 0; +} +.country-flag.flag-an {background-position: -128px 0; +} +.country-flag.flag-ao {background-position: -144px 0; +} +.country-flag.flag-ar {background-position: -160px 0; +} +.country-flag.flag-as {background-position: -176px 0; +} +.country-flag.flag-at {background-position: -192px 0; +} +.country-flag.flag-au {background-position: -208px 0; +} +.country-flag.flag-aw {background-position: -224px 0; +} +.country-flag.flag-az {background-position: -240px 0; +} +.country-flag.flag-ba {background-position: 0 -11px; +} +.country-flag.flag-bb {background-position: -16px -11px; +} +.country-flag.flag-bd {background-position: -32px -11px; +} +.country-flag.flag-be {background-position: -48px -11px; +} +.country-flag.flag-bf {background-position: -64px -11px; +} +.country-flag.flag-bg {background-position: -80px -11px; +} +.country-flag.flag-bh {background-position: -96px -11px; +} +.country-flag.flag-bi {background-position: -112px -11px; +} +.country-flag.flag-bj {background-position: -128px -11px; +} +.country-flag.flag-bm {background-position: -144px -11px; +} +.country-flag.flag-bn {background-position: -160px -11px; +} +.country-flag.flag-bo {background-position: -176px -11px; +} +.country-flag.flag-br {background-position: -192px -11px; +} +.country-flag.flag-bs {background-position: -208px -11px; +} +.country-flag.flag-bt {background-position: -224px -11px; +} +.country-flag.flag-bv {background-position: -240px -11px; +} +.country-flag.flag-bw {background-position: 0 -22px; +} +.country-flag.flag-by {background-position: -16px -22px; +} +.country-flag.flag-bz {background-position: -32px -22px; +} +.country-flag.flag-ca {background-position: -48px -22px; +} +.country-flag.flag-catalonia {background-position: -64px -22px; +} +.country-flag.flag-cd {background-position: -80px -22px; +} +.country-flag.flag-cf {background-position: -96px -22px; +} +.country-flag.flag-cg {background-position: -112px -22px; +} +.country-flag.flag-ch {background-position: -128px -22px; +} +.country-flag.flag-ci {background-position: -144px -22px; +} +.country-flag.flag-ck {background-position: -160px -22px; +} +.country-flag.flag-cl {background-position: -176px -22px; +} +.country-flag.flag-cm {background-position: -192px -22px; +} +.country-flag.flag-cn {background-position: -208px -22px; +} +.country-flag.flag-co {background-position: -224px -22px; +} +.country-flag.flag-cr {background-position: -240px -22px; +} +.country-flag.flag-cu {background-position: 0 -33px; +} +.country-flag.flag-cv {background-position: -16px -33px; +} +.country-flag.flag-cw {background-position: -32px -33px; +} +.country-flag.flag-cy {background-position: -48px -33px; +} +.country-flag.flag-cz {background-position: -64px -33px; +} +.country-flag.flag-de {background-position: -80px -33px; +} +.country-flag.flag-dj {background-position: -96px -33px; +} +.country-flag.flag-dk {background-position: -112px -33px; +} +.country-flag.flag-dm {background-position: -128px -33px; +} +.country-flag.flag-do {background-position: -144px -33px; +} +.country-flag.flag-dz {background-position: -160px -33px; +} +.country-flag.flag-ec {background-position: -176px -33px; +} +.country-flag.flag-ee {background-position: -192px -33px; +} +.country-flag.flag-eg {background-position: -208px -33px; +} +.country-flag.flag-eh {background-position: -224px -33px; +} +.country-flag.flag-england {background-position: -240px -33px; +} +.country-flag.flag-er {background-position: 0 -44px; +} +.country-flag.flag-es {background-position: -16px -44px; +} +.country-flag.flag-et {background-position: -32px -44px; +} +.country-flag.flag-eu {background-position: -48px -44px; +} +.country-flag.flag-fi {background-position: -64px -44px; +} +.country-flag.flag-fj {background-position: -80px -44px; +} +.country-flag.flag-fk {background-position: -96px -44px; +} +.country-flag.flag-fm {background-position: -112px -44px; +} +.country-flag.flag-fo {background-position: -128px -44px; +} +.country-flag.flag-fr {background-position: -144px -44px; +} +.country-flag.flag-ga {background-position: -160px -44px; +} +.country-flag.flag-gb {background-position: -176px -44px; +} +.country-flag.flag-gd {background-position: -192px -44px; +} +.country-flag.flag-ge {background-position: -208px -44px; +} +.country-flag.flag-gf {background-position: -224px -44px; +} +.country-flag.flag-gg {background-position: -240px -44px; +} +.country-flag.flag-gh {background-position: 0 -55px; +} +.country-flag.flag-gi {background-position: -16px -55px; +} +.country-flag.flag-gl {background-position: -32px -55px; +} +.country-flag.flag-gm {background-position: -48px -55px; +} +.country-flag.flag-gn {background-position: -64px -55px; +} +.country-flag.flag-gp {background-position: -80px -55px; +} +.country-flag.flag-gq {background-position: -96px -55px; +} +.country-flag.flag-gr {background-position: -112px -55px; +} +.country-flag.flag-gs {background-position: -128px -55px; +} +.country-flag.flag-gt {background-position: -144px -55px; +} +.country-flag.flag-gu {background-position: -160px -55px; +} +.country-flag.flag-gw {background-position: -176px -55px; +} +.country-flag.flag-gy {background-position: -192px -55px; +} +.country-flag.flag-hk {background-position: -208px -55px; +} +.country-flag.flag-hm {background-position: -224px -55px; +} +.country-flag.flag-hn {background-position: -240px -55px; +} +.country-flag.flag-hr {background-position: 0 -66px; +} +.country-flag.flag-ht {background-position: -16px -66px; +} +.country-flag.flag-hu {background-position: -32px -66px; +} +.country-flag.flag-ic {background-position: -48px -66px; +} +.country-flag.flag-id {background-position: -64px -66px; +} +.country-flag.flag-ie {background-position: -80px -66px; +} +.country-flag.flag-il {background-position: -96px -66px; +} +.country-flag.flag-im {background-position: -112px -66px; +} +.country-flag.flag-in {background-position: -128px -66px; +} +.country-flag.flag-io {background-position: -144px -66px; +} +.country-flag.flag-iq {background-position: -160px -66px; +} +.country-flag.flag-ir {background-position: -176px -66px; +} +.country-flag.flag-is {background-position: -192px -66px; +} +.country-flag.flag-it {background-position: -208px -66px; +} +.country-flag.flag-je {background-position: -224px -66px; +} +.country-flag.flag-jm {background-position: -240px -66px; +} +.country-flag.flag-jo {background-position: 0 -77px; +} +.country-flag.flag-jp {background-position: -16px -77px; +} +.country-flag.flag-ke {background-position: -32px -77px; +} +.country-flag.flag-kg {background-position: -48px -77px; +} +.country-flag.flag-kh {background-position: -64px -77px; +} +.country-flag.flag-ki {background-position: -80px -77px; +} +.country-flag.flag-km {background-position: -96px -77px; +} +.country-flag.flag-kn {background-position: -112px -77px; +} +.country-flag.flag-kp {background-position: -128px -77px; +} +.country-flag.flag-kr {background-position: -144px -77px; +} +.country-flag.flag-kurdistan {background-position: -160px -77px; +} +.country-flag.flag-kw {background-position: -176px -77px; +} +.country-flag.flag-ky {background-position: -192px -77px; +} +.country-flag.flag-kz {background-position: -208px -77px; +} +.country-flag.flag-la {background-position: -224px -77px; +} +.country-flag.flag-lb {background-position: -240px -77px; +} +.country-flag.flag-lc {background-position: 0 -88px; +} +.country-flag.flag-li {background-position: -16px -88px; +} +.country-flag.flag-lk {background-position: -32px -88px; +} +.country-flag.flag-lr {background-position: -48px -88px; +} +.country-flag.flag-ls {background-position: -64px -88px; +} +.country-flag.flag-lt {background-position: -80px -88px; +} +.country-flag.flag-lu {background-position: -96px -88px; +} +.country-flag.flag-lv {background-position: -112px -88px; +} +.country-flag.flag-ly {background-position: -128px -88px; +} +.country-flag.flag-ma {background-position: -144px -88px; +} +.country-flag.flag-mc {background-position: -160px -88px; +} +.country-flag.flag-md {background-position: -176px -88px; +} +.country-flag.flag-me {background-position: -192px -88px; +} +.country-flag.flag-mg {background-position: -208px -88px; +} +.country-flag.flag-mh {background-position: -224px -88px; +} +.country-flag.flag-mk {background-position: -240px -88px; +} +.country-flag.flag-ml {background-position: 0 -99px; +} +.country-flag.flag-mm {background-position: -16px -99px; +} +.country-flag.flag-mn {background-position: -32px -99px; +} +.country-flag.flag-mo {background-position: -48px -99px; +} +.country-flag.flag-mp {background-position: -64px -99px; +} +.country-flag.flag-mq {background-position: -80px -99px; +} +.country-flag.flag-mr {background-position: -96px -99px; +} +.country-flag.flag-ms {background-position: -112px -99px; +} +.country-flag.flag-mt {background-position: -128px -99px; +} +.country-flag.flag-mu {background-position: -144px -99px; +} +.country-flag.flag-mv {background-position: -160px -99px; +} +.country-flag.flag-mw {background-position: -176px -99px; +} +.country-flag.flag-mx {background-position: -192px -99px; +} +.country-flag.flag-my {background-position: -208px -99px; +} +.country-flag.flag-mz {background-position: -224px -99px; +} +.country-flag.flag-na {background-position: -240px -99px; +} +.country-flag.flag-nc {background-position: 0 -110px; +} +.country-flag.flag-ne {background-position: -16px -110px; +} +.country-flag.flag-nf {background-position: -32px -110px; +} +.country-flag.flag-ng {background-position: -48px -110px; +} +.country-flag.flag-ni {background-position: -64px -110px; +} +.country-flag.flag-nl {background-position: -80px -110px; +} +.country-flag.flag-no {background-position: -96px -110px; +} +.country-flag.flag-np {background-position: -112px -110px; +} +.country-flag.flag-nr {background-position: -128px -110px; +} +.country-flag.flag-nu {background-position: -144px -110px; +} +.country-flag.flag-nz {background-position: -160px -110px; +} +.country-flag.flag-om {background-position: -176px -110px; +} +.country-flag.flag-pa {background-position: -192px -110px; +} +.country-flag.flag-pe {background-position: -208px -110px; +} +.country-flag.flag-pf {background-position: -224px -110px; +} +.country-flag.flag-pg {background-position: -240px -110px; +} +.country-flag.flag-ph {background-position: 0 -121px; +} +.country-flag.flag-pk {background-position: -16px -121px; +} +.country-flag.flag-pl {background-position: -32px -121px; +} +.country-flag.flag-pm {background-position: -48px -121px; +} +.country-flag.flag-pn {background-position: -64px -121px; +} +.country-flag.flag-pr {background-position: -80px -121px; +} +.country-flag.flag-ps {background-position: -96px -121px; +} +.country-flag.flag-pt {background-position: -112px -121px; +} +.country-flag.flag-pw {background-position: -128px -121px; +} +.country-flag.flag-py {background-position: -144px -121px; +} +.country-flag.flag-qa {background-position: -160px -121px; +} +.country-flag.flag-re {background-position: -176px -121px; +} +.country-flag.flag-ro {background-position: -192px -121px; +} +.country-flag.flag-rs {background-position: -208px -121px; +} +.country-flag.flag-ru {background-position: -224px -121px; +} +.country-flag.flag-rw {background-position: -240px -121px; +} +.country-flag.flag-sa {background-position: 0 -132px; +} +.country-flag.flag-sb {background-position: -16px -132px; +} +.country-flag.flag-sc {background-position: -32px -132px; +} +.country-flag.flag-scotland {background-position: -48px -132px; +} +.country-flag.flag-sd {background-position: -64px -132px; +} +.country-flag.flag-se {background-position: -80px -132px; +} +.country-flag.flag-sg {background-position: -96px -132px; +} +.country-flag.flag-sh {background-position: -112px -132px; +} +.country-flag.flag-si {background-position: -128px -132px; +} +.country-flag.flag-sk {background-position: -144px -132px; +} +.country-flag.flag-sl {background-position: -160px -132px; +} +.country-flag.flag-sm {background-position: -176px -132px; +} +.country-flag.flag-sn {background-position: -192px -132px; +} +.country-flag.flag-so {background-position: -208px -132px; +} +.country-flag.flag-somaliland {background-position: -224px -132px; +} +.country-flag.flag-sr {background-position: -240px -132px; +} +.country-flag.flag-ss {background-position: 0 -143px; +} +.country-flag.flag-st {background-position: -16px -143px; +} +.country-flag.flag-sv {background-position: -32px -143px; +} +.country-flag.flag-sx {background-position: -48px -143px; +} +.country-flag.flag-sy {background-position: -64px -143px; +} +.country-flag.flag-sz {background-position: -80px -143px; +} +.country-flag.flag-tc {background-position: -96px -143px; +} +.country-flag.flag-td {background-position: -112px -143px; +} +.country-flag.flag-tf {background-position: -128px -143px; +} +.country-flag.flag-tg {background-position: -144px -143px; +} +.country-flag.flag-th {background-position: -160px -143px; +} +.country-flag.flag-tj {background-position: -176px -143px; +} +.country-flag.flag-tk {background-position: -192px -143px; +} +.country-flag.flag-tl {background-position: -208px -143px; +} +.country-flag.flag-tm {background-position: -224px -143px; +} +.country-flag.flag-tn {background-position: -240px -143px; +} +.country-flag.flag-to {background-position: 0 -154px; +} +.country-flag.flag-tr {background-position: -16px -154px; +} +.country-flag.flag-tt {background-position: -32px -154px; +} +.country-flag.flag-tv {background-position: -48px -154px; +} +.country-flag.flag-tw {background-position: -64px -154px; +} +.country-flag.flag-tz {background-position: -80px -154px; +} +.country-flag.flag-ua {background-position: -96px -154px; +} +.country-flag.flag-ug {background-position: -112px -154px; +} +.country-flag.flag-um {background-position: -128px -154px; +} +.country-flag.flag-us {background-position: -144px -154px; +} +.country-flag.flag-uy {background-position: -160px -154px; +} +.country-flag.flag-uz {background-position: -176px -154px; +} +.country-flag.flag-va {background-position: -192px -154px; +} +.country-flag.flag-vc {background-position: -208px -154px; +} +.country-flag.flag-ve {background-position: -224px -154px; +} +.country-flag.flag-vg {background-position: -240px -154px; +} +.country-flag.flag-vi {background-position: 0 -165px; +} +.country-flag.flag-vn {background-position: -16px -165px; +} +.country-flag.flag-vu {background-position: -32px -165px; +} +.country-flag.flag-wales {background-position: -48px -165px; +} +.country-flag.flag-wf {background-position: -64px -165px; +} +.country-flag.flag-ws {background-position: -80px -165px; +} +.country-flag.flag-ye {background-position: -96px -165px; +} +.country-flag.flag-yt {background-position: -112px -165px; +} +.country-flag.flag-za {background-position: -128px -165px; +} +.country-flag.flag-zanzibar {background-position: -144px -165px; +} +.country-flag.flag-zm {background-position: -160px -165px; +} +.country-flag.flag-zw {background-position: -176px -165px; +} diff --git a/gui/slick/css/dark.css b/gui/slick/css/dark.css index 3036a9bd53..402920c417 100644 --- a/gui/slick/css/dark.css +++ b/gui/slick/css/dark.css @@ -4,34 +4,34 @@ inc_top.mako .ui-dialog, .ui-dialog-buttonpane { - background: #2a2a2a !important; + background: rgb(42, 42, 42) !important; } .ui-widget-content { - background: #606060; - border: 1px solid #111; - color: #fff; + background: rgb(96, 96, 96); + border: 1px solid rgb(17, 17, 17); + color: rgb(255, 255, 255); } .ui-widget-content a { - color: #fff; + color: rgb(255, 255, 255); } .ui-widget-content a:hover { - color: #09A2FF; + color: rgb(9, 162, 255); text-decoration: none; } .ui-widget-header { - background: #3d3d3d; - border: 1px solid #111; - color: #fff; + background: rgb(61, 61, 61); + border: 1px solid rgb(17, 17, 17); + color: rgb(255, 255, 255); } .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { - border: 1px solid #111; + border: 1px solid rgb(17, 17, 17); } .ui-state-hover, @@ -40,13 +40,13 @@ inc_top.mako .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { - background: #3d3d3d; + background: rgb(61, 61, 61); } .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { - background: #3d3d3d; + background: rgb(61, 61, 61); } .ui-icon, @@ -59,31 +59,31 @@ inc_top.mako } .ui-widget-overlay { - background: #000000 url("../css/lib/images/ui-bg_flat_0_000000_40x100.png") 50% 50% repeat-x; + background: rgb(0, 0, 0) url("../css/lib/images/ui-bg_flat_0_000000_40x100.png") 50% 50% repeat-x; } .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { - color: #fff; + color: rgb(255, 255, 255); text-decoration: none; } .ui-dialog .ui-dialog-titlebar-close { - background: #333; + background: rgb(51, 51, 51); } .ui-tabs { - padding: 0px; + padding: 0; background: none; - border-width: 0px; + border-width: 0; } .ui-tabs .ui-tabs-panel { - background-color: #3d3d3d !important; - border: 1px solid #111 !important; + background-color: rgb(61, 61, 61) !important; + border: 1px solid rgb(17, 17, 17) !important; } .ui-tabs-nav > :not(.ui-tabs-active){ - background: #333; + background: rgb(51, 51, 51); border-top-left-radius: 5px; border-top-right-radius: 5px; } @@ -95,13 +95,13 @@ inc_bottom.mako .footer { width: 100%; padding: 20px 0; - color: #fff; + color: rgb(255, 255, 255); text-align: center; font-size: 12px; } .footerhighlight { - color: #09A2FF; + color: rgb(9, 162, 255); display: inline; } @@ -110,10 +110,9 @@ home.mako ========================================================================== */ .imgbanner .banner { - border: 1px solid #111; + border: 1px solid rgb(17, 17, 17); overflow: hidden; height: 66px; - overflow: hidden; border-radius: 8px; vertical-align: top; width: 360px; @@ -128,7 +127,7 @@ home.mako border-radius: 3px; vertical-align: middle; width: 45px; - border: 1px solid #111; + border: 1px solid rgb(17, 17, 17); margin-right: 5px; } @@ -139,10 +138,10 @@ home.mako height: 100%; overflow: visible; text-align: center; - text-shadow: 0 0 0.1em #000; + text-shadow: 0 0 0.1em rgb(0, 0, 0); vertical-align: middle; font-size: 12px; - color: #fff; + color: rgb(255, 255, 255); } .loading-spinner { @@ -150,8 +149,8 @@ home.mako } .show-container { - background-color: #333; - border-color: #333; + background-color: rgb(51, 51, 51); + border-color: rgb(51, 51, 51); } .show-title:after { @@ -185,26 +184,26 @@ home.mako } td.tvShow a { - color: #fff; + color: rgb(255, 255, 255); text-decoration: none; } td.tvShow a:hover { cursor: pointer; - color: #09A2FF; + color: rgb(9, 162, 255); } .popover { margin-left: -50px; - background-color: #333; + background-color: rgb(51, 51, 51); } .popover-content { - background-color: #333; + background-color: rgb(51, 51, 51); } .popover.bottom .arrow:after { - border-bottom-color: #333; + border-bottom-color: rgb(51, 51, 51); } /* ======================================================================= @@ -220,8 +219,8 @@ home_newShow.mako padding: 8px; overflow: hidden; font-size: 14px; - background-color: #3d3d3d; - border: 1px solid #111; + background-color: rgb(61, 61, 61); + border: 1px solid rgb(17, 17, 17); } /* ======================================================================= @@ -233,7 +232,7 @@ ul#rootDirStaticList li { margin: 2px; list-style: none outside none; cursor: pointer; - background: #3d3d3d; + background: rgb(61, 61, 61); } /* ======================================================================= @@ -243,8 +242,8 @@ home_trendingShows.mako .traktContainer { margin: 12px; width: 188px; - background-color: #333; - border: 1px solid #111; + background-color: rgb(51, 51, 51); + border: 1px solid rgb(17, 17, 17); border-radius: 6px; } @@ -265,24 +264,24 @@ h1.title { line-height: 30px; text-align: left; text-rendering: optimizelegibility; - border-bottom: 1px solid #555; + border-bottom: 1px solid rgb(85, 85, 85); } ul.tags li { margin-right: 4px; margin-bottom: 5px; padding: 3px 4px 3px 25px; - background: url(../images/tag.png) no-repeat scroll 5px 4px #15528F; + background: url(../images/tag.png) no-repeat scroll 5px 4px rgb(21, 82, 143); border-radius: 3px; - border: 1px solid #111; - color: #FFF; + border: 1px solid rgb(17, 17, 17); + color: rgb(255, 255, 255); font: 14px/18px "Open Sans", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; - text-shadow: 0px 1px rgba(0, 0, 0, 0.8); + text-shadow: 0 1px rgba(0, 0, 0, 0.8); float: left; } .tvshowImg { - border: 1px solid #111; + border: 1px solid rgb(17, 17, 17); border-radius: 5px; height: 311px; width: auto; @@ -291,8 +290,8 @@ ul.tags li { #summary { padding: 10px; - background-color: #3d3d3d; - border: 1px solid #111; + background-color: rgb(61, 61, 61); + border: 1px solid rgb(17, 17, 17); width: 100%; height: 250px; overflow: auto; @@ -307,27 +306,27 @@ ul.tags li { text-align: center; border: none; empty-cells: show; - color: #000; + color: rgb(0, 0, 0); } .sickbeardTable th{ - color: #fff; + color: rgb(255, 255, 255); text-align: center; - background-color: #15528F; + background-color: rgb(21, 82, 143); white-space: nowrap; } .sickbeardTable th, .sickbeardTable td { - border-top: 1px solid #222; - border-left: 1px solid #222; + border-top: 1px solid rgb(34, 34, 34); + border-left: 1px solid rgb(34, 34, 34); padding: 4px; } th.row-seasonheader { border: none; - background-color: #222; - color: #fff; + background-color: rgb(34, 34, 34); + color: rgb(255, 255, 255); padding-top: 15px; text-align: left; } @@ -356,54 +355,54 @@ h2.day, h2.network { line-height: 36px; font-weight: bold; letter-spacing: 1px; - color: #FFF; + color: rgb(255, 255, 255); text-align: center; - text-shadow: -1px -1px 0px rgba(0, 0, 0, 0.3); - background-color: #15528F; + text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); + background-color: rgb(21, 82, 143); } .tvshowDiv { display: block; clear: both; - border: 1px solid #ccc; + border: 1px solid rgb(204, 204, 204); margin: auto; - padding: 0px; + padding: 0; text-align: left; width: 750px; border-radius: 5px; - background: #fff; + background: rgb(255, 255, 255); cursor: default; overflow: hidden; - color: #000; + color: rgb(0, 0, 0); } .tvshowDiv a:hover { - color: #09A2FF; + color: rgb(9, 162, 255); } #showListTable td.tvShow a { - color: #000; + color: rgb(0, 0, 0); } #showListTable td.tvShow a:hover { cursor: pointer; - color: #09A2FF; + color: rgb(9, 162, 255); } table.cal-odd { - background-color: #333; + background-color: rgb(51, 51, 51); } table.cal-even { - background-color: #3d3d3d; + background-color: rgb(61, 61, 61); } .calendarShow .text .airtime { - color:#fff + color: rgb(255, 255, 255); } .calendarShow .text .episode-title { - color:#aaa + color: rgb(170, 170, 170); } /* ======================================================================= @@ -412,14 +411,14 @@ config*.mako .component-group { padding: 15px 15px 25px; - border-bottom: 1px dotted #555; + border-bottom: 1px dotted rgb(85, 85, 85); min-height: 200px; } .component-group-desc p { width: 90%; margin: 10px 0; - color: #ddd; + color: rgb(221, 221, 221); } #provider_order_list li, @@ -427,16 +426,16 @@ config*.mako padding: 5px; margin: 5px 0; font-size: 14px; - background: #333 !important; - color: #fff; + background: rgb(51, 51, 51) !important; + color: rgb(255, 255, 255); } #provider_order_list .ui-state-default.torrent-provider { - background-color: #555 !important; + background-color: rgb(85, 85, 85) !important; } #provider_order_list .ui-state-default.nzb-provider { - background-color: #222 !important; + background-color: rgb(34, 34, 34) !important; } /* ======================================================================= @@ -445,16 +444,16 @@ config_postProcessing.mako #config div.example { padding: 10px; - background-color: #333333; - border: 1px solid #111; + background-color: rgb(51, 51, 51); + border: 1px solid rgb(17, 17, 17); } .Key { width: 100%; padding: 6px; font-size: 13px; - background-color: #3d3d3d; - border: 1px solid #111; + background-color: rgb(61, 61, 61); + border: 1px solid rgb(17, 17, 17); border-collapse: collapse; border-spacing: 0; } @@ -462,17 +461,17 @@ config_postProcessing.mako .Key th, .tableHeader { padding: 3px 9px; margin: 0; - color: #fff; + color: rgb(255, 255, 255); text-align: center; - background: #15528F; + background: rgb(21, 82, 143); } .Key tr { - border-bottom: 1px solid #111; + border-bottom: 1px solid rgb(17, 17, 17); } .Key tr.even { - background-color: #333; + background-color: rgb(51, 51, 51); } /* ======================================================================= @@ -482,14 +481,14 @@ config_notifications.mako div.metadata_options { padding: 7px; overflow: auto; - background: #333; - color: #fff; - border: 1px solid #111; + background: rgb(51, 51, 51); + color: rgb(255, 255, 255); + border: 1px solid rgb(17, 17, 17); } div.metadata_options label:hover { - color: #fff; - background-color: #15528F; + color: rgb(255, 255, 255); + background-color: rgb(21, 82, 143); cursor: pointer; } @@ -497,13 +496,13 @@ div.metadata_options label { display: block; padding-left: 7px; line-height: 20px; - color: #fff; + color: rgb(255, 255, 255); } div.metadata_example label { display: block; line-height: 21px; - color: #fff; + color: rgb(255, 255, 255); cursor: pointer; } @@ -513,7 +512,7 @@ manage*.mako .separator { font-size: 90%; - color: #fff; + color: rgb(255, 255, 255); } a.whitelink { @@ -525,8 +524,8 @@ Global span.path { padding: 3px 6px; - color: #09A2FF; - background-color: #333; + color: rgb(9, 162, 255); + background-color: rgb(51, 51, 51); } /* ======================================================================= @@ -537,71 +536,71 @@ body { padding-top: 60px; overflow-y: scroll; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; - color: #fff; - background-color: #222; + color: rgb(255, 255, 255); + background-color: rgb(34, 34, 34); } /* navbar styling */ .navbar-default { - background-color: #15528F; + background-color: rgb(21, 82, 143); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#297AB8', endColorstr='#15528F'); - background: -webkit-gradient(linear, left top, left bottom, from(#297AB8), to(#15528F)); - background: -moz-linear-gradient(top, #297AB8, #15528F); - border-color: #3e3f3a; + background: -webkit-gradient(linear, left top, left bottom, from(rgb(41, 122, 184)), to(rgb(21, 82, 143))); + background: -moz-linear-gradient(top, rgb(41, 122, 184), rgb(21, 82, 143)); + border-color: rgb(62, 63, 58); } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { - background-color: #124477; + background-color: rgb(18, 68, 119); } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { - color: #ffffff; - background-color: #124477; + color: rgb(255, 255, 255); + background-color: rgb(18, 68, 119); } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { - background-color: #124477; + background-color: rgb(18, 68, 119); } .navbar-default .navbar-toggle .icon-bar { - background-color: #124477; + background-color: rgb(18, 68, 119); } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { - background-color: #124477; - color: #ffffff; + background-color: rgb(18, 68, 119); + color: rgb(255, 255, 255); } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #ffffff; - background-color: #124477; + color: rgb(255, 255, 255); + background-color: rgb(18, 68, 119); } } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { - color: #fff; + color: rgb(255, 255, 255); text-decoration: none; - background-color: #15528F; + background-color: rgb(21, 82, 143); } .dropdown-menu > li > a { padding: 4px 36px 4px 20px; - color: #fff; + color: rgb(255, 255, 255); } .dropdown-menu { - background-color: #333; + background-color: rgb(51, 51, 51); border: 1px solid rgba(0, 0, 0, 0.15); - box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.176); + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176); } .btn { @@ -613,25 +612,25 @@ body { font-size: 12px; line-height: 16px; *line-height: 20px; - color: #fff; + color: rgb(255, 255, 255); text-align: center; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75); vertical-align: middle; cursor: pointer; - background-color: #2672B6; - *background-color: #2672B6; - background-image: -ms-linear-gradient(top, #297AB8, #15528F); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#297AB8), to(#15528F)); - background-image: -webkit-linear-gradient(top, #297AB8, #15528F); - background-image: -o-linear-gradient(top, #297AB8, #15528F); - background-image: linear-gradient(top, #297AB8, #15528F); - background-image: -moz-linear-gradient(top, #297AB8, #15528F); + background-color: rgb(38, 114, 182); + *background-color: rgb(38, 114, 182); + background-image: -ms-linear-gradient(top, rgb(41, 122, 184), rgb(21, 82, 143)); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(41, 122, 184)), to(rgb(21, 82, 143))); + background-image: -webkit-linear-gradient(top, rgb(41, 122, 184), rgb(21, 82, 143)); + background-image: -o-linear-gradient(top, rgb(41, 122, 184), rgb(21, 82, 143)); + background-image: linear-gradient(top, rgb(41, 122, 184), rgb(21, 82, 143)); + background-image: -moz-linear-gradient(top, rgb(41, 122, 184), rgb(21, 82, 143)); background-repeat: repeat-x; - border: 1px solid #111; + border: 1px solid rgb(17, 17, 17); *border: 0; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - border-color: #111 #111 #111; - border-bottom-color: #111; + border-color: rgb(17, 17, 17) rgb(17, 17, 17) rgb(17, 17, 17); + border-bottom-color: rgb(17, 17, 17); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; @@ -648,22 +647,22 @@ body { .btn.active, .btn.disabled, .btn[disabled] { - background-color: #2672B6; - *background-color: #2672B6; - color: #fff; + background-color: rgb(38, 114, 182); + *background-color: rgb(38, 114, 182); + color: rgb(255, 255, 255); } .btn:active, .btn.active { - background-color: #cccccc \9; - color: #fff; + background-color: rgb(204, 204, 204) \9; + color: rgb(255, 255, 255); } .btn:hover { - color: #fff; + color: rgb(255, 255, 255); text-decoration: none; - background-color: #2672B6; - *background-color: #2672B6; + background-color: rgb(38, 114, 182); + *background-color: rgb(38, 114, 182); background-position: 0 -150px; -webkit-transition: background-position 0.0s linear; -moz-transition: background-position 0.0s linear; @@ -673,18 +672,18 @@ body { } .btn:focus { - outline: thin dotted #333; + outline: thin dotted rgb(51, 51, 51); outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; - color: #fff; + color: rgb(255, 255, 255); } .btn.active, .btn:active { - background-color: #2672B6; - background-color: #2672B6 \9; + background-color: rgb(38, 114, 182); + background-color: rgb(38, 114, 182) \9; background-image: none; - color: #fff; + color: rgb(255, 255, 255); outline: 0; -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); @@ -694,7 +693,7 @@ body { .btn.disabled, .btn[disabled] { cursor: default; - background-color: #15528F; + background-color: rgb(21, 82, 143); background-image: none; opacity: 0.65; filter: alpha(opacity=65); @@ -710,16 +709,16 @@ body { right: 12px; display: inline-block; border-right: 6px solid transparent; - border-bottom: 6px solid #333; + border-bottom: 6px solid rgb(51, 51, 51); border-left: 6px solid transparent; content: ""; } } pre { - color: #fff; - background-color: #3d3d3d; - border-color: #111; + color: rgb(255, 255, 255); + background-color: rgb(61, 61, 61); + border-color: rgb(17, 17, 17); } /* ======================================================================= @@ -730,11 +729,11 @@ browser.css overrides margin: 2px 0; list-style-type: none; cursor: pointer; - background: #333 !important; + background: rgb(51, 51, 51) !important; } .fileBrowserDialog ul li a:hover { - color: #09a2ff; + color: rgb(9, 162, 255); background: none !important; } @@ -743,25 +742,25 @@ formWizard.css ========================================================================== */ legend.legendStep { - color: #ffffff; - margin-bottom: 0px; + color: rgb(255, 255, 255); + margin-bottom: 0; } div.stepsguide .step p { margin: 12px 0; - border-bottom: 4px solid #23AFDC; + border-bottom: 4px solid rgb(35, 175, 220); } div.stepsguide .disabledstep p { - border-bottom: 4px solid #1178B3; + border-bottom: 4px solid rgb(17, 120, 179); } div.formpaginate .prev, div.formpaginate .next { padding: 3px 6px; - color: #fff; + color: rgb(255, 255, 255); cursor: hand; cursor: pointer; - background: #2265A1; + background: rgb(34, 101, 161); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; @@ -772,25 +771,25 @@ pnotify.css ========================================================================== */ .ui-pnotify-container { - border: 1px solid #111; - background-image: -moz-linear-gradient(#333, #3d3d3d) !important; - background-image: linear-gradient(#333, #3d3d3d) !important; - background-image: -webkit-linear-gradient(#333, #3d3d3d) !important; - background-image: -o-linear-gradient(#333, #3d3d3d) !important; - filter: progid:dximagetransform.microsoft.gradient(startColorstr=#333, endColorstr=#3d3d3d) !important; - -ms-filter: progid:dximagetransform.microsoft.gradient(startColorstr=#333, endColorstr=#3d3d3d) !important; - -moz-box-shadow: 0px 0px 2px #000; - -webkit-box-shadow: 0px 0px 2px #000; - -o-box-shadow: 0px 0px 2px #000; - box-shadow: 0px 0px 2px #000; + border: 1px solid rgb(17, 17, 17); + background-image: -moz-linear-gradient(rgb(51, 51, 51), rgb(61, 61, 61)) !important; + background-image: linear-gradient(rgb(51, 51, 51), rgb(61, 61, 61)) !important; + background-image: -webkit-linear-gradient(rgb(51, 51, 51), rgb(61, 61, 61)) !important; + background-image: -o-linear-gradient(rgb(51, 51, 51), rgb(61, 61, 61)) !important; + filter: progid:dximagetransform.microsoft.gradient(startColorstr=rgb(51, 51, 51), endColorstr=rgb(61, 61, 61)) !important; + -ms-filter: progid:dximagetransform.microsoft.gradient(startColorstr=rgb(51, 51, 51), endColorstr=rgb(61, 61, 61)) !important; + -moz-box-shadow: 0 0 2px rgb(0, 0, 0); + -webkit-box-shadow: 0 0 2px rgb(0, 0, 0); + -o-box-shadow: 0 0 2px rgb(0, 0, 0); + box-shadow: 0 0 2px rgb(0, 0, 0); } .ui-pnotify-title { - color: #ffffff; + color: rgb(255, 255, 255); } .ui-pnotify-text { - color: #ffffff; + color: rgb(255, 255, 255); } /* ======================================================================= @@ -801,60 +800,60 @@ tablesorter.css width: 100%; margin-right: auto; margin-left: auto; - color: #fff; + color: rgb(255, 255, 255); text-align: left; - background-color: #333; + background-color: rgb(51, 51, 51); border-spacing: 0; } .tablesorter th, .tablesorter td { padding: 4px; - border-top: #222 1px solid; - border-left: #222 1px solid; + border-top: rgb(34, 34, 34) 1px solid; + border-left: rgb(34, 34, 34) 1px solid; vertical-align: middle; } .tablesorter th { - color: #fff; + color: rgb(255, 255, 255); text-align: center; text-shadow: -1px -1px 0 rgba(0,0,0,0.3); - background-color: #15528F; + background-color: rgb(21, 82, 143); border-collapse: collapse; font-weight: normal; } .tablesorter thead .tablesorter-headerDesc { - background-color: #297AB8; + background-color: rgb(41, 122, 184); background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); /* background-image: url(../images/tablesorter/asc.gif); */ } .tablesorter thead .tablesorter-headerAsc { - background-color: #297AB8; + background-color: rgb(41, 122, 184); background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); /* background-image: url(../images/tablesorter/desc.gif); */ } thead.tablesorter-stickyHeader { - border-top: 2px solid #222; - border-bottom: 2px solid #222; + border-top: 2px solid rgb(34, 34, 34); + border-bottom: 2px solid rgb(34, 34, 34); } /* Zebra Widget - row alternating colors */ .tablesorter tr.odd, .sickbeardTable tr.odd { - background-color: #333333; + background-color: rgb(51, 51, 51); } .tablesorter tr.even, .sickbeardTable tr.even { - background-color: #2e2e2e; + background-color: rgb(46, 46, 46); } .tablesorter tr.tablesorter-filter-row, .tablesorter tr.tablesorter-filter-row td { text-align: center; - background: #333; - border-bottom: 1px solid #111; + background: rgb(51, 51, 51); + border-bottom: 1px solid rgb(17, 17, 17); } /* hidden filter row */ @@ -881,7 +880,7 @@ thead.tablesorter-stickyHeader { } #showListTable tbody { - color: #000; + color: rgb(0, 0, 0); } /* ======================================================================= @@ -889,11 +888,11 @@ token-input.css ========================================================================== */ div.token-input-dropdown { - background-color: #fff; - color: #000; - border-left-color: #ccc; - border-right-color: #ccc; - border-bottom-color: #ccc; + background-color: rgb(255, 255, 255); + color: rgb(0, 0, 0); + border-left-color: rgb(204, 204, 204); + border-right-color: rgb(204, 204, 204); + border-bottom-color: rgb(204, 204, 204); } /* ======================================================================= @@ -901,29 +900,29 @@ jquery.confirm.css ========================================================================== */ #confirmBox{ - background: #222; + background: rgb(34, 34, 34); width: 460px; position: fixed; left: 50%; top: 50%; margin: -130px 0 0 -230px; - border: 1px solid #111; - box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.175); + border: 1px solid rgb(17, 17, 17); + box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.175); } #confirmBox h1 { - background-color: #15528F; - border-bottom: 1px solid #111; - color: #fff; + background-color: rgb(21, 82, 143); + border-bottom: 1px solid rgb(17, 17, 17); + color: rgb(255, 255, 255); margin: 0; font-size: 22px; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75); + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75); } #confirmBox p { padding-top: 20px; - color: #fff; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75); + color: rgb(255, 255, 255); + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75); } /* ======================================================================= @@ -931,17 +930,17 @@ bootstrap modal ========================================================================== */ .modal-content { - background-color: #3D3D3D; + background-color: rgb(61, 61, 61); } .modal-body { - background-color: #3D3D3D; + background-color: rgb(61, 61, 61); } .modal-header { padding:9px 15px; - border-bottom:1px solid #eee; - background-color: #15528F; + border-bottom:1px solid rgb(238, 238, 238); + background-color: rgb(21, 82, 143); -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-topleft: 5px; @@ -955,13 +954,13 @@ bootstrap panel ========================================================================== */ .panel-default { - background-color: #3D3D3D; - border-color: #111111; + background-color: rgb(61, 61, 61); + border-color: rgb(17, 17, 17); } .panel-heading { - background-color: #3D3D3D !important; - color: #FFFFFF !important; + background-color: rgb(61, 61, 61) !important; + color: rgb(255, 255, 255) !important; } @@ -975,22 +974,22 @@ new #confirmBox left: 50%; top: 50%; margin: -130px 0 0 -230px; - border: 1px solid #111; - box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.175); - border-radius: 0px; + border: 1px solid rgb(17, 17, 17); + box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.175); + border-radius: 0; } .modal-content { - border-radius: 0px; + border-radius: 0; } .modal-header { border-bottom: none; - border-radius: 0px; + border-radius: 0; } .modal-body, .modal-content{ - background: #222; + background: rgb(34, 34, 34); } .modal-footer { @@ -1007,7 +1006,7 @@ new #confirmBox } .modal-header .close { - display: none + display: none; } .modal-footer button { @@ -1015,11 +1014,11 @@ new #confirmBox padding: 2px 15px; text-decoration: none; display: inline-block; - color: #fff; + color: rgb(255, 255, 255); text-align:center; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75); + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75); background-clip: padding-box; - border: 1px solid #111; + border: 1px solid rgb(17, 17, 17); border-radius: 3px; cursor: pointer; -webkit-box-sizing: border-box; @@ -1038,17 +1037,17 @@ new #confirmBox } .modal-footer button.confirm { - background-color: #3F7636; + background-color: rgb(63, 118, 54); } .modal-footer button.confirm:hover { - background-color: #48873E; + background-color: rgb(72, 135, 62); } .modal-footer button.cancel { - background-color: #8D2D2B; + background-color: rgb(141, 45, 43); } .modal-footer button.cancel:hover { - background-color: #A13331; + background-color: rgb(161, 51, 49); } diff --git a/gui/slick/css/light.css b/gui/slick/css/light.css index 1fbaed69c0..762cd3337e 100644 --- a/gui/slick/css/light.css +++ b/gui/slick/css/light.css @@ -3,50 +3,50 @@ home.mako ========================================================================== */ .progress-100 { - background-image: -moz-linear-gradient(#a6cf41, #5b990d) !important; - background-image: linear-gradient(#a6cf41, #5b990d) !important; - background-image: -webkit-linear-gradient(#a6cf41, #5b990d) !important; - background-image: -o-linear-gradient(#a6cf41, #5b990d) !important; + background-image: -moz-linear-gradient(rgb(166, 207, 65), rgb(91, 153, 13)) !important; + background-image: linear-gradient(rgb(166, 207, 65), rgb(91, 153, 13)) !important; + background-image: -webkit-linear-gradient(rgb(166, 207, 65), rgb(91, 153, 13)) !important; + background-image: -o-linear-gradient(rgb(166, 207, 65), rgb(91, 153, 13)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .progress-80 { - background-image: -moz-linear-gradient(#e1ff97, #9db269) !important; - background-image: linear-gradient(#e1ff97, #9db269) !important; - background-image: -webkit-linear-gradient(#e1ff97, #9db269) !important; - background-image: -o-linear-gradient(#e1ff97, #9db269) !important; + background-image: -moz-linear-gradient(rgb(225, 255, 151), rgb(157, 178, 105)) !important; + background-image: linear-gradient(rgb(225, 255, 151), rgb(157, 178, 105)) !important; + background-image: -webkit-linear-gradient(rgb(225, 255, 151), rgb(157, 178, 105)) !important; + background-image: -o-linear-gradient(rgb(225, 255, 151), rgb(157, 178, 105)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .progress-60 { - background-image: -moz-linear-gradient(#fad440, #f2a70d) !important; - background-image: linear-gradient(#fad440, #f2a70d) !important; - background-image: -webkit-linear-gradient(#fad440, #f2a70d) !important; - background-image: -o-linear-gradient(#fad440, #f2a70d) !important; + background-image: -moz-linear-gradient(rgb(250, 212, 64), rgb(242, 167, 13)) !important; + background-image: linear-gradient(rgb(250, 212, 64), rgb(242, 167, 13)) !important; + background-image: -webkit-linear-gradient(rgb(250, 212, 64), rgb(242, 167, 13)) !important; + background-image: -o-linear-gradient(rgb(250, 212, 64), rgb(242, 167, 13)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .progress-40 { - background-image: -moz-linear-gradient(#fab543, #f2700d) !important; - background-image: linear-gradient(#fab543, #f2700d) !important; - background-image: -webkit-linear-gradient(#fab543, #f2700d) !important; - background-image: -o-linear-gradient(#fab543, #f2700d) !important; + background-image: -moz-linear-gradient(rgb(250, 181, 67), rgb(242, 112, 13)) !important; + background-image: linear-gradient(rgb(250, 181, 67), rgb(242, 112, 13)) !important; + background-image: -webkit-linear-gradient(rgb(250, 181, 67), rgb(242, 112, 13)) !important; + background-image: -o-linear-gradient(rgb(250, 181, 67), rgb(242, 112, 13)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .progress-20 { - background-image: -moz-linear-gradient(#da5945, #b11a10) !important; - background-image: linear-gradient(#da5945, #b11a10) !important; - background-image: -webkit-linear-gradient(#da5945, #b11a10) !important; - background-image: -o-linear-gradient(#da5945, #b11a10) !important; + background-image: -moz-linear-gradient(rgb(218, 89, 69), rgb(177, 26, 16)) !important; + background-image: linear-gradient(rgb(218, 89, 69), rgb(177, 26, 16)) !important; + background-image: -webkit-linear-gradient(rgb(218, 89, 69), rgb(177, 26, 16)) !important; + background-image: -o-linear-gradient(rgb(218, 89, 69), rgb(177, 26, 16)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; @@ -58,18 +58,30 @@ displayShow.mako .displayShowTable th.row-seasonheader { border: none !important; - background-color: #fff !important; - color: #000 !important; + background-color: rgb(255, 255, 255) !important; + color: rgb(0, 0, 0) !important; padding-top: 15px !important; text-align: left !important; } +.displayShowTableFanArt th.row-seasonheader { + border: none !important; + background-color: transparent !important; + color: rgb(0, 0, 0) !important; + padding-top: 15px !important; + text-align: left !important; +} + +.snatchTitle { + color: rgb(0, 0, 0) !important; +} + /* ======================================================================= testRename.mako ========================================================================== */ tr.seasonheader { - color: #000 !important; + color: rgb(0, 0, 0) !important; } /* ======================================================================= @@ -77,19 +89,19 @@ schedule.mako ========================================================================== */ table.cal-odd { - background-color: #ddd; + background-color: rgb(221, 221, 221); } table.cal-even { - background-color: #d2d2d2; + background-color: rgb(210, 210, 210); } .calendarShow .text .airtime { - color:#000 + color: rgb(0, 0, 0); } .calendarShow .text .episode-title { - color:#888 + color: rgb(136, 136, 136); } /* ======================================================================= @@ -98,33 +110,33 @@ bootstrap Overrides /* navbar styling */ .navbar-default { - background-color: #333333; + background-color: rgb(51, 51, 51); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555', endColorstr='#333333'); - background: -webkit-gradient(linear, left top, left bottom, from(#555), to(#333)); - background: -moz-linear-gradient(top, #555, #333); - border-color: #3e3f3a; + background: -webkit-gradient(linear, left top, left bottom, from(rgb(85, 85, 85)), to(rgb(51, 51, 51))); + background: -moz-linear-gradient(top, rgb(85, 85, 85), rgb(51, 51, 51)); + border-color: rgb(62, 63, 58); } .navbar-default .navbar-collapse, .navbar-default .navbar-form { - border-color: #3e3f3a; + border-color: rgb(62, 63, 58); } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { - background-color: #333; + background-color: rgb(51, 51, 51); } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { - color: #fff; + color: rgb(255, 255, 255); text-decoration: none; - background-color: #333; + background-color: rgb(51, 51, 51); } pre { - color: #000; - background-color: #F5F5F5; - border-color: #ccc; + color: rgb(0, 0, 0); + background-color: rgb(245, 245, 245); + border-color: rgb(204, 204, 204); } /* ======================================================================= @@ -135,9 +147,9 @@ tablesorter.css width: 100%; margin-right: auto; margin-left: auto; - color: #000; + color: rgb(0, 0, 0); text-align: left; - background-color: #ddd; + background-color: rgb(221, 221, 221); border-spacing: 0; } @@ -169,11 +181,11 @@ token-input.css ========================================================================== */ div.token-input-dropdown { - background-color: #fff; - color: #000; - border-left-color: #ccc; - border-right-color: #ccc; - border-bottom-color: #ccc; + background-color: rgb(255, 255, 255); + color: rgb(0, 0, 0); + border-left-color: rgb(204, 204, 204); + border-right-color: rgb(204, 204, 204); + border-bottom-color: rgb(204, 204, 204); } /* ======================================================================= @@ -182,8 +194,8 @@ bootstarp modal .modal-header { padding:9px 15px; - border-bottom:1px solid #eee; - background-color: #F5F1E4; + border-bottom:1px solid rgb(238, 238, 238); + background-color: rgb(245, 241, 228); -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-topleft: 5px; diff --git a/gui/slick/css/style.css b/gui/slick/css/style.css index be4e2d6002..89d849ed5f 100644 --- a/gui/slick/css/style.css +++ b/gui/slick/css/style.css @@ -1,3 +1,6 @@ +strong.warning { + color: red; +} /* ======================================================================= inc_top.mako ========================================================================== */ @@ -17,7 +20,7 @@ inc_top.mako .ui-autocomplete-loading { - background: white url("../images/loading16.gif") right center no-repeat; + background: rgb(255, 255, 255) url("../images/loading16.gif") right center no-repeat; } .browserDialog.busy .ui-dialog-buttonpane { @@ -30,7 +33,7 @@ inc_top.mako .ui-dialog, .ui-dialog-buttonpane { - background: #eceadf url("../css/lib/images/ui-bg_fine-grain_10_eceadf_60x60.png") 50% 50% repeat !important; + background: rgb(236, 234, 223) url("../css/lib/images/ui-bg_fine-grain_10_eceadf_60x60.png") 50% 50% repeat !important; } /* restore 1.8.x resize handle on dialog button pane */ @@ -44,7 +47,7 @@ inc_top.mako .ui-accordion-content, .ui-tabs-panel { - background: #ededed !important; + background: rgb(237, 237, 237) !important; background-image: none !important; } @@ -54,18 +57,18 @@ inc_top.mako } .ui-widget-content { - background: #dcdcdc url("../css/lib/images/ui-bg_highlight-soft_75_dcdcdc_1x100.png") 50% top repeat-x; + background: rgb(220, 220, 220) url("../css/lib/images/ui-bg_highlight-soft_75_dcdcdc_1x100.png") 50% top repeat-x; } .ui-widget-header { - background: #ffffff url("../css/lib/images/ui-bg_flat_0_ffffff_40x100.png") 50% 50% repeat-x; + background: rgb(255, 255, 255) url("../css/lib/images/ui-bg_flat_0_ffffff_40x100.png") 50% 50% repeat-x; } .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { - background: #ffffff; - border: 1px solid #CCCCCC; + background: rgb(255, 255, 255); + border: 1px solid rgb(204, 204, 204); } .ui-state-hover, @@ -74,25 +77,25 @@ inc_top.mako .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { - background: #ffffff; + background: rgb(255, 255, 255); } .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { - background: #F7F7F7; + background: rgb(247, 247, 247); } .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight { - background: #fbf9ee url("../css/lib/images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x; + background: rgb(251, 249, 238) url("../css/lib/images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x; } .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error { - background: #fef1ec url("../css/lib/images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x; + background: rgb(254, 241, 236) url("../css/lib/images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x; } .ui-icon, @@ -127,41 +130,41 @@ inc_top.mako } .ui-widget-overlay { - background: #aaaaaa url("../css/lib/images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x; + background: rgb(170, 170, 170) url("../css/lib/images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x; } .ui-widget-shadow { - background: #000000 url("../css/lib/images/ui-bg_flat_0_000000_40x100.png") 50% 50% repeat-x; + background: rgb(0, 0, 0) url("../css/lib/images/ui-bg_flat_0_000000_40x100.png") 50% 50% repeat-x; } .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { - color: #140F06; + color: rgb(20, 15, 6); text-decoration: none; } .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { - color: #222; + color: rgb(34, 34, 34); text-decoration: none; } .ui-tabs { - padding: 0px; + padding: 0; background: none; - border-width: 0px; + border-width: 0; } .ui-tabs .ui-tabs-nav { - padding-left: 0px; + padding-left: 0; background: transparent; - border-width: 0px 0px 0px 0px; - -moz-border-radius: 0px; - -webkit-border-radius: 0px; - border-radius: 0px; + border-width: 0 0 0 0; + -moz-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; } .ui-tabs .ui-tabs-panel { - background-color: #F7F7F7 !important; - border: 1px solid #CCCCCC !important; + background-color: rgb(247, 247, 247) !important; + border: 1px solid rgb(204, 204, 204) !important; padding: 1em; } @@ -197,7 +200,7 @@ inc_top.mako margin-left: auto; margin-right: auto; margin-top: 50px; - margin-bottom: 0px; + margin-bottom: 0; } [class^="menu-icon-"], [class*=" menu-icon-"] { @@ -211,155 +214,155 @@ inc_top.mako } .menu-icon-addshow { - background-position: 0px 0px; + background-position: 0 0; } .menu-icon-anime { - background-position: -21px 0px; + background-position: -21px 0; } .menu-icon-backlog-view { - background-position: -42px 0px; + background-position: -42px 0; } .menu-icon-backlog { - background-position: -63px 0px; + background-position: -63px 0; } .menu-icon-bittorrent { - background-position: -84px 0px; + background-position: -84px 0; } .menu-icon-config-index { - background-position: -105px 0px; + background-position: -105px 0; } .menu-icon-config { - background-position: -126px 0px; + background-position: -126px 0; } .menu-icon-failed-download { - background-position: -147px 0px; + background-position: -147px 0; } .menu-icon-home { - background-position: -168px 0px; + background-position: -168px 0; } .menu-icon-manage { - background-position: -189px 0px; + background-position: -189px 0; } .menu-icon-manage-searches { - background-position: -210px 0px; + background-position: -210px 0; } .menu-icon-poster { - background-position: -231px 0px; + background-position: -231px 0; } .menu-icon-postprocess { - background-position: -252px 0px; + background-position: -252px 0; } .menu-icon-restart { - background-position: -273px 0px; + background-position: -273px 0; } .menu-icon-shutdown { - background-position: -294px 0px; + background-position: -294px 0; } .menu-icon-update { - background-position: -315px 0px; + background-position: -315px 0; } .menu-icon-viewlog-errors { - background-position: -336px 0px; + background-position: -336px 0; } .menu-icon-viewlog { - background-position: -357px 0px; + background-position: -357px 0; } .menu-icon-kodi { - background-position: -378px 0px; + background-position: -378px 0; } .menu-icon-help { - background-position: -399px 0px; + background-position: -399px 0; } .menu-icon-info { - background-position: -418px 0px; + background-position: -418px 0; } .menu-icon-error { - background-position: -436px 0px; + background-position: -436px 0; } .menu-icon-news { - background-position: -456px 0px; + background-position: -456px 0; } .menu-icon-irc { - background-position: -478px 0px; + background-position: -478px 0; } .menu-icon-changelog { - background-position: -495px 0px; + background-position: -495px 0; } .menu-icon-support { - background-position: -516px 0px; + background-position: -516px 0; } .menu-icon-plex { - background-position: -536px 0px; + background-position: -536px 0; } .menu-icon-backup { - background-position: -556px 0px; + background-position: -556px 0; } .menu-icon-provider { - background-position: -576px 0px; + background-position: -576px 0; } .menu-icon-notification { - background-position: -597px 0px; + background-position: -597px 0; } .menu-icon-emby { - background-position: -614px 0px; + background-position: -614px 0; } .menu-icon-blackhole { - background-position: -632px 0px; + background-position: -632px 0; } .menu-icon-schedule { - background-position: -653px 0px; + background-position: -653px 0; } .menu-icon-manage2 { - background-position: -673px 0px; + background-position: -673px 0; } .menu-icon-history { - background-position: -695px 0px; + background-position: -695px 0; } .menu-icon-trash { - background-position: -711px 0px; + background-position: -711px 0; } .menu-icon-cut { - background-position: -727px 0px; + background-position: -727px 0; } .menu-icon-select { - background-position: -742px 0px; + background-position: -742px 0; } .enable-daily-search-icon { @@ -394,13 +397,13 @@ inc_bottom.mako .footer { width: 100%; padding: 20px 0; - color: #4e4e4e; + color: rgb(78, 78, 78); text-align: center; font-size: 12px; } .footerhighlight { - color: #111; + color: rgb(17, 17, 17); display: inline; } @@ -410,13 +413,13 @@ inc_rootDirs.mako .rootdir-selectbox, .rootdir-selectbox #rootDirs, .rootdir-controls { - width: 430px + width: 430px; } .rootdir-selectbox { - padding: 0 0 5px + padding: 0 0 5px; } .rootdir-controls { - text-align: center + text-align: center; } /* ======================================================================= @@ -424,10 +427,9 @@ home.mako ========================================================================== */ .imgbanner .banner { - border: 1px solid #ccc; + border: 1px solid rgb(204, 204, 204); overflow: hidden; height: 66px; - overflow: hidden; border-radius: 8px; vertical-align: top; width: 360px; @@ -442,7 +444,7 @@ home.mako border-radius: 3px; vertical-align: middle; width: 45px; - border: 1px solid #ccc; + border: 1px solid rgb(204, 204, 204); margin-right: 5px; } @@ -466,57 +468,57 @@ home.mako height: 100%; overflow: visible; text-align: center; - text-shadow: 0 0 0.1em #fff; + text-shadow: 0 0 0.1em rgb(255, 255, 255); vertical-align: middle; font-size: 12px; - color: #000000; + color: rgb(0, 0, 0); } .progress-100 { - background-image: -moz-linear-gradient(#395f07, #2a4705) !important; - background-image: linear-gradient(#395f07, #2a4705) !important; - background-image: -webkit-linear-gradient(#395f07, #2a4705) !important; - background-image: -o-linear-gradient(#395f07, #2a4705) !important; + background-image: -moz-linear-gradient(rgb(57, 95, 7), rgb(42, 71, 5)) !important; + background-image: linear-gradient(rgb(57, 95, 7), rgb(42, 71, 5)) !important; + background-image: -webkit-linear-gradient(rgb(57, 95, 7), rgb(42, 71, 5)) !important; + background-image: -o-linear-gradient(rgb(57, 95, 7), rgb(42, 71, 5)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .progress-80 { - background-image: -moz-linear-gradient(#a6cf41, #5b990d) !important; - background-image: linear-gradient(#a6cf41, #5b990d) !important; - background-image: -webkit-linear-gradient(#a6cf41, #5b990d) !important; - background-image: -o-linear-gradient(#a6cf41, #5b990d) !important; + background-image: -moz-linear-gradient(rgb(166, 207, 65), rgb(91, 153, 13)) !important; + background-image: linear-gradient(rgb(166, 207, 65), rgb(91, 153, 13)) !important; + background-image: -webkit-linear-gradient(rgb(166, 207, 65), rgb(91, 153, 13)) !important; + background-image: -o-linear-gradient(rgb(166, 207, 65), rgb(91, 153, 13)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .progress-60 { - background-image: -moz-linear-gradient(#fad440, #f2a70d) !important; - background-image: linear-gradient(#fad440, #f2a70d) !important; - background-image: -webkit-linear-gradient(#fad440, #f2a70d) !important; - background-image: -o-linear-gradient(#fad440, #f2a70d) !important; + background-image: -moz-linear-gradient(rgb(250, 212, 64), rgb(242, 167, 13)) !important; + background-image: linear-gradient(rgb(250, 212, 64), rgb(242, 167, 13)) !important; + background-image: -webkit-linear-gradient(rgb(250, 212, 64), rgb(242, 167, 13)) !important; + background-image: -o-linear-gradient(rgb(250, 212, 64), rgb(242, 167, 13)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .progress-40 { - background-image: -moz-linear-gradient(#fab543, #f2700d) !important; - background-image: linear-gradient(#fab543, #f2700d) !important; - background-image: -webkit-linear-gradient(#fab543, #f2700d) !important; - background-image: -o-linear-gradient(#fab543, #f2700d) !important; + background-image: -moz-linear-gradient(rgb(250, 181, 67), rgb(242, 112, 13)) !important; + background-image: linear-gradient(rgb(250, 181, 67), rgb(242, 112, 13)) !important; + background-image: -webkit-linear-gradient(rgb(250, 181, 67), rgb(242, 112, 13)) !important; + background-image: -o-linear-gradient(rgb(250, 181, 67), rgb(242, 112, 13)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .progress-20 { - background-image: -moz-linear-gradient(#da5945, #b11a10) !important; - background-image: linear-gradient(#da5945, #b11a10) !important; - background-image: -webkit-linear-gradient(#da5945, #b11a10) !important; - background-image: -o-linear-gradient(#da5945, #b11a10) !important; + background-image: -moz-linear-gradient(rgb(218, 89, 69), rgb(177, 26, 16)) !important; + background-image: linear-gradient(rgb(218, 89, 69), rgb(177, 26, 16)) !important; + background-image: -webkit-linear-gradient(rgb(218, 89, 69), rgb(177, 26, 16)) !important; + background-image: -o-linear-gradient(rgb(218, 89, 69), rgb(177, 26, 16)) !important; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; @@ -545,10 +547,10 @@ span.show-option { .show-container { margin: 4px; - background-color: #F3F3F3; - border: 5px solid #F3F3F3; + background-color: rgb(243, 243, 243); + border: 5px solid rgb(243, 243, 243); overflow: hidden; - box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.31); + box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.31); } .show-details { @@ -567,29 +569,29 @@ span.show-option { } .show-container .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { - border-bottom-right-radius: 0px; + border-bottom-right-radius: 0; } .show-container .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { - border-bottom-left-radius: 0px; + border-bottom-left-radius: 0; } .show-container .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { - border-top-right-radius: 0px; + border-top-right-radius: 0; } .show-container .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { - border-top-left-radius: 0px; + border-top-left-radius: 0; } .show-container .ui-widget-content { - border-top: 1px solid #111; - border-bottom: 1px solid #111; - border-left: 0px; - border-right: 0px; + border-top: 1px solid rgb(17, 17, 17); + border-bottom: 1px solid rgb(17, 17, 17); + border-left: 0; + border-right: 0; } .ui-progressbar .ui-progressbar-value { - height:20px + height:20px; } .ui-progressbar .progress-20 { border: none; @@ -598,8 +600,8 @@ span.show-option { .show-container .progress-40, .show-container .progress-60, .show-container .progress-80 { - border-radius: 0px; - height: 7px + border-radius: 0; + height: 7px; } .show-title { @@ -607,7 +609,7 @@ span.show-option { overflow: hidden; white-space: nowrap; font-size: 11px; - margin: 4px 4px 0px 4px; + margin: 4px 4px 0 4px; } .show-title:after { @@ -630,8 +632,8 @@ span.show-option { overflow: hidden; white-space: nowrap; font-size: 11px; - margin: 0px 4px 4px 4px; - color: #949494; + margin: 0 4px 4px 4px; + color: rgb(148, 148, 148); } .show-date:after { @@ -652,7 +654,7 @@ span.show-option { .show-table { text-align:center; vertical-align:middle; - width: 33% + width: 33%; } .show-add { @@ -704,13 +706,13 @@ span.show-option { } td.tvShow a { - color: #000; + color: rgb(0, 0, 0); text-decoration: none; } td.tvShow a:hover { cursor: pointer; - color: #428BCA; + color: rgb(66, 139, 202); } #popover-target label { @@ -773,23 +775,23 @@ div.buttontext p { } .add-list-icon-addnewshow { - background-position: 0px 0px; + background-position: 0 0; } .add-list-icon-addtrakt { - background-position: -37px 0px; + background-position: -37px 0; } .add-list-icon-addimdb { - background-position: -76px 0px; + background-position: -76px 0; } .add-list-icon-addexistingshow { - background-position: -113px 0px; + background-position: -113px 0; } .add-list-icon-addanime { - background-position: -150px 0px; + background-position: -150px 0; } /* ======================================================================= @@ -815,8 +817,8 @@ home_newShow.mako padding: 8px; overflow: hidden; font-size: 14px; - background-color: #efefef; - border: 1px solid #dfdede; + background-color: rgb(239, 239, 239); + border: 1px solid rgb(223, 222, 222); } #searchResults input[type="radio"] { @@ -842,7 +844,7 @@ ul#rootDirStaticList li { margin: 2px; list-style: none outside none; cursor: pointer; - background: url('../css/lib/images/ui-bg_highlight-soft_75_efefef_1x100.png') repeat-x scroll 50% 50% #EFEFEF; + background: url('../css/lib/images/ui-bg_highlight-soft_75_efefef_1x100.png') repeat-x scroll 50% 50% rgb(239, 239, 239); } ul#rootDirStaticList li label { @@ -885,8 +887,8 @@ home_trendingShows.mako .traktContainer { margin: 12px; width: 188px; - background-color: #DFDACF; - border: 1px solid #111; + background-color: rgb(223, 218, 207); + border: 1px solid rgb(17, 17, 17); border-radius: 6px; } @@ -895,7 +897,7 @@ home_trendingShows.mako width: 186px; border-top-left-radius: 5px; border-top-right-radius: 5px; - border-bottom: 1px solid #111; + border-bottom: 1px solid rgb(17, 17, 17); } /* ======================================================================= @@ -934,7 +936,7 @@ displayShow.mako #topcontrol { -webkit-filter: grayscale(100%); filter: grayscale(100%); - filter: gray; + filter: rgb(128, 128, 128); filter: url("data:image/svg+xml;utf8,#greyscale"); } @@ -944,7 +946,7 @@ h1.title { line-height: 30px; text-align: left; text-rendering: optimizelegibility; - border-bottom: 1px solid #888; + border-bottom: 1px solid rgb(136, 136, 136); } h1.title a { @@ -997,21 +999,21 @@ ul.tags li { margin-right: 4px; margin-bottom: 5px; padding: 3px 4px 3px 25px; - background: url(../images/tag.png) no-repeat scroll 5px 4px #555; + background: url(../images/tag.png) no-repeat scroll 5px 4px rgb(85, 85, 85); border-radius: 3px; - border: 1px solid #111; - color: #FFF; + border: 1px solid rgb(17, 17, 17); + color: rgb(255, 255, 255); font: 14px/18px "Open Sans", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; - text-shadow: 0px 1px rgba(0, 0, 0, 0.8); + text-shadow: 0 1px rgba(0, 0, 0, 0.8); float: left; } ul.tags li a{ - color: #FFF; + color: rgb(255, 255, 255); } .tvshowImg { - border: 1px solid #ccc; + border: 1px solid rgb(204, 204, 204); border-radius: 5px; height: 311px; width: auto; @@ -1020,8 +1022,8 @@ ul.tags li a{ #summary { padding: 10px; - background-color: #efefef; - border: 1px solid #dfdede; + background-color: rgb(239, 239, 239); + border: 1px solid rgb(223, 222, 222); width: 100%; height: 250px; overflow: auto; @@ -1054,47 +1056,52 @@ ul.tags li a{ } .unaired { - background-color: #f5f1e4; + background-color: rgb(245, 241, 228); } .skipped { - background-color: #bedeed; + background-color: rgb(190, 222, 237); } .good { - background-color: #c3e3c8; + background-color: rgb(195, 227, 200); } .qual { - background-color: #ffda8a; + background-color: rgb(255, 218, 138); } .wanted { - background-color: #ffb0b0; + background-color: rgb(255, 176, 176); } .snatched { - background-color: #ebc1ea; + background-color: rgb(235, 193, 234); +} +.failed { + text-decoration: line-through; + text-decoration-color: red; + background-color: grey; } span.unaired { - color: #584b20; - border: 1px solid #584b20; + color: rgb(88, 75, 32); + border: 1px solid rgb(88, 75, 32); } span.skipped { - color: #1d5068; - border: 1px solid #1d5068; + color: rgb(29, 80, 104); + border: 1px solid rgb(29, 80, 104); } span.good { - color: #295730; - border: 1px solid #295730; + color: rgb(41, 87, 48); + border: 1px solid rgb(41, 87, 48); } span.qual { - color: #765100; - border: 1px solid #765100; + color: rgb(118, 81, 0); + border: 1px solid rgb(118, 81, 0); } span.wanted { - color: #890000; - border: 1px solid #890000; + color: rgb(137, 0, 0); + border: 1px solid rgb(137, 0, 0); } span.snatched { - color: #652164; - border: 1px solid #652164; + color: rgb(101, 33, 100); + border: 1px solid rgb(101, 33, 100); } span.unaired b, @@ -1103,7 +1110,7 @@ span.good b, span.qual b, span.wanted b, span.snatched b { - color: #000000; + color: rgb(0, 0, 0); font-weight: 800; } @@ -1130,17 +1137,17 @@ span.snatched b { text-align: center; border: none; empty-cells: show; - color: #000 !important; + color: rgb(0, 0, 0) !important; } .displayShowTable.display_show { - clear:both + clear:both; } .displayShowTable th.row-seasonheader { border: none !important; - background-color: #222 !important; - color: #fff !important; + background-color: rgb(34, 34, 34) !important; + color: rgb(255, 255, 255) !important; padding-top: 15px !important; text-align: left !important; } @@ -1149,6 +1156,47 @@ span.snatched b { text-align: center; } + +.displayShowTableFanArt { + table-layout: auto; + width: 100%; + border-collapse: collapse; + border-spacing: 0; + text-align: center; + border: none; + empty-cells: show; + color: rgb(0, 0, 0) !important; +} + +.displayShowTableFanArt.display_show { + clear:both; + opacity: 0.9; +} + +.summaryFanArt { + opacity: 0.9; +} + +.displayShowTableFanArt th.row-seasonheader { + border: none !important; + background-color: transparent !important; + color: rgb(255, 255, 255) !important; + padding-top: 15px !important; + text-align: left !important; +} + +.displayShowTableFanArt td.col-search { + text-align: center; +} + +.snatchTitle { + color: rgb(255, 255, 255) !important; +} + +.tablesorterFanArt { + background-color: transparent !important; +} + .sickbeardTable { table-layout: auto; width: 100%; @@ -1160,27 +1208,27 @@ span.snatched b { } .sickbeardTable.display_show { - clear:both + clear:both; } .sickbeardTable th{ - color: #fff; + color: rgb(255, 255, 255); text-align: center; - background-color: #333; + background-color: rgb(51, 51, 51); white-space: nowrap; } .sickbeardTable th, .sickbeardTable td { - border-top: 1px solid #fff; - border-left: 1px solid #fff; + border-top: 1px solid rgb(255, 255, 255); + border-left: 1px solid rgb(255, 255, 255); padding: 4px; } th.row-seasonheader { border: none; - background-color: #fff; - color: #000; + background-color: rgb(255, 255, 255); + color: rgb(0, 0, 0); padding-top: 15px; text-align: left; } @@ -1190,7 +1238,7 @@ tr.seasonheader { padding-top: 10px; text-align: left; border: none; - color: #fff; + color: rgb(255, 255, 255); } th.col-checkbox, @@ -1231,6 +1279,10 @@ td.col-name { text-align: left; } +th.col-footer { + text-align: left !important; +} + th.col-subtitles, td.col-subtitles { width: 150px; @@ -1304,6 +1356,23 @@ div.season-scene-exception { display: inline; } +#showBanner { + float:right; + height:50px; + border:1px solid black; +} + +.fanart { + margin-top: -1px; + vertical-align:middle; +} + +.showOptions { + width:180px; + float: right; + vertical-align: middle; +} + /* ======================================================================= schedule.mako ========================================================================== */ @@ -1320,39 +1389,39 @@ schedule.mako } .listing-default { - background-color: #f5f1e4; + background-color: rgb(245, 241, 228); } .listing-current { - background-color: #dfd; + background-color: rgb(221, 255, 221); } .listing-overdue { - background-color: #fdd; + background-color: rgb(255, 221, 221); } .listing-toofar { - background-color: #bedeed; + background-color: rgb(190, 222, 237); } span.listing-default { - color: #826f30; - border: 1px solid #826f30; + color: rgb(130, 111, 48); + border: 1px solid rgb(130, 111, 48); } span.listing-current { - color: #295730; - border: 1px solid #295730; + color: rgb(41, 87, 48); + border: 1px solid rgb(41, 87, 48); } span.listing-overdue { - color: #890000; - border: 1px solid #890000; + color: rgb(137, 0, 0); + border: 1px solid rgb(137, 0, 0); } span.listing-toofar { - color: #1d5068; - border: 1px solid #1d5068; + color: rgb(29, 80, 104); + border: 1px solid rgb(29, 80, 104); } h2.day, h2.network { @@ -1361,28 +1430,28 @@ h2.day, h2.network { line-height: 36px; font-weight: bold; letter-spacing: 1px; - color: #FFF; + color: rgb(255, 255, 255); text-align: center; - text-shadow: -1px -1px 0px rgba(0, 0, 0, 0.3); - background-color: #333; + text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); + background-color: rgb(51, 51, 51); } .tvshowDiv { display: block; clear: both; - border: 1px solid #ccc; + border: 1px solid rgb(204, 204, 204); margin: auto; - padding: 0px; + padding: 0; text-align: left; width: 750px; border-radius: 5px; - background: #fff; + background: rgb(255, 255, 255); cursor: default; overflow: hidden; } .tvshowDiv a:hover { - color: #428BCA; + color: rgb(66, 139, 202); } .tvshowDiv a, .tvshowDiv a:link, .tvshowDiv a:visited, .tvshowDiv a:hover { @@ -1391,11 +1460,11 @@ h2.day, h2.network { } .tvshowTitle a { - color: #000000; + color: rgb(0, 0, 0); float: left; line-height: 1.4em; font-size: 1.4em; - text-shadow: -1px -1px 0 #FFF; + text-shadow: -1px -1px 0 rgb(255, 255, 255); } .tvshowTitleIcons { @@ -1410,28 +1479,28 @@ h2.day, h2.network { .tvshowDiv td.next_episode { width: 100%; height: 90%; - border-bottom: 1px solid #ccc; + border-bottom: 1px solid rgb(204, 204, 204); vertical-align: top; - color: #000; + color: rgb(0, 0, 0); } .bannerThumb { vertical-align: top; height: auto; width: 748px; - border-bottom: 1px solid #ccc; + border-bottom: 1px solid rgb(204, 204, 204); } .posterThumb { vertical-align: top; height: auto; width: 180px; - border-right: 1px solid #ccc; + border-right: 1px solid rgb(204, 204, 204); } .ep_listing { width: auto; - border: 1px solid #ccc; + border: 1px solid rgb(204, 204, 204); margin-bottom: 10px; padding: 10px; } @@ -1454,7 +1523,7 @@ h2.day, h2.network { .calendarWrapper { width:1000px; margin:0 auto; - padding:0 3px + padding:0 3px; } .calendarTable { @@ -1465,20 +1534,20 @@ h2.day, h2.network { } .calendarShow { - padding:0 !important + padding:0 !important; } .calendarShow .poster { - padding-bottom:2px + padding-bottom:2px; } .calendarShow .poster img { width:142px; - height:auto + height:auto; } .calendarShow .text { - padding:0 5px 10px 5px + padding:0 5px 10px 5px; } .calendarShow .text .airtime, @@ -1486,12 +1555,12 @@ h2.day, h2.network { overflow:hidden; text-overflow:ellipsis; display:block; - font-size:11px + font-size:11px; } .calendarShow .show-status { padding:5px 10px 10px; - text-align:center + text-align:center; } /* ======================================================================= @@ -1509,12 +1578,12 @@ config*.mako .component-group { padding: 15px 15px 25px; - border-bottom: 1px dotted #ccc; + border-bottom: 1px dotted rgb(204, 204, 204); min-height: 200px; } .component-item { - border-bottom: 1px dotted #666; + border-bottom: 1px dotted rgb(102, 102, 102); min-height: 200px; } @@ -1530,11 +1599,11 @@ config*.mako .component-group-desc p { width: 90%; margin: 10px 0; - color: #666; + color: rgb(102, 102, 102); } #config div.field-pair { - padding: 12px 0px; + padding: 12px 0; } #config div.field-pair select, @@ -1563,11 +1632,11 @@ config*.mako font-weight: normal; display:block; width:475px; - margin-left:182px + margin-left:182px; } #config label.space-right { - margin-right:10px + margin-right:10px; } #config .metadataDiv { @@ -1592,7 +1661,7 @@ select .selected { padding: 5px; margin-bottom: 10px; line-height: 20px; - border: 1px dotted #CCC; + border: 1px dotted rgb(204, 204, 204); } #providerOrderList { @@ -1616,16 +1685,16 @@ select .selected { } #provider_order_list .ui-state-default.torrent-provider { - background-color: #FFFFFF !important; + background-color: rgb(255, 255, 255) !important; } #provider_order_list .ui-state-default.nzb-provider { - background-color: #DDD !important; + background-color: rgb(221, 221, 221) !important; } #provider_order_list input, #service_order_list input { - margin: 0px 2px; + margin: 0 2px; } #config .tip_scale label span.component-title { @@ -1645,7 +1714,7 @@ select .selected { } .infoTableSeperator { - border-top: 1px dotted #666666; + border-top: 1px dotted rgb(102, 102, 102); } .infoTableHeader { @@ -1726,67 +1795,67 @@ select .selected { } .add-client-icon-sabnzbd { - background-position: 0px 0px; + background-position: 0 0; } .add-client-icon-nzbget { - background-position: -34px 0px; + background-position: -34px 0; } .add-client-icon-blackhole { - background-position: -71px 0px; + background-position: -71px 0; } .add-client-icon-deluge { - background-position: -106px 0px; + background-position: -106px 0; } .add-client-icon-deluged { - background-position: -106px 0px; + background-position: -106px 0; } .add-client-icon-qbittorrent { - background-position: -138px 0px; + background-position: -138px 0; } .add-client-icon-rtorrent { - background-position: -172px 0px; + background-position: -172px 0; } .add-client-icon-download-station { - background-position: -205px 0px; + background-position: -205px 0; } .add-client-icon-transmission { - background-position: -241px 0px; + background-position: -241px 0; } .add-client-icon-utorrent { - background-position: -273px 0px; + background-position: -273px 0; } .add-client-icon-spotnet { - background-position: -311px 0px; + background-position: -311px 0; } .add-client-icon-mlnet { - background-position: -344px 0px; + background-position: -344px 0; } .add-client-icon-rss { - background-position: -380px 0px; + background-position: -380px 0; } .add-client-icon-folder { - background-position: -416px 0px; + background-position: -416px 0; } .add-client-icon-ftp { - background-position: -452px 0px; + background-position: -452px 0; } .add-client-icon-irc { - background-position: -488px 0px; + background-position: -488px 0; } /* ======================================================================= @@ -1794,15 +1863,15 @@ config_postProcessing.mako ========================================================================== */ #config div.example { - padding: 10px; background-color: #efefef; + padding: 10px; background-color: rgb(239, 239, 239); } .Key { width: 100%; padding: 6px; font-size: 13px; - background-color: #f4f4f4; - border: 1px solid #ccc; + background-color: rgb(244, 244, 244); + border: 1px solid rgb(204, 204, 204); border-collapse: collapse; border-spacing: 0; } @@ -1810,9 +1879,9 @@ config_postProcessing.mako .Key th, .tableHeader { padding: 3px 9px; margin: 0; - color: #fff; + color: rgb(255, 255, 255); text-align: center; - background: none repeat scroll 0 0 #666; + background: none repeat scroll 0 0 rgb(102, 102, 102); } .Key td { @@ -1820,11 +1889,11 @@ config_postProcessing.mako } .Key tr { - border-bottom: 1px solid #ccc; + border-bottom: 1px solid rgb(204, 204, 204); } .Key tr.even { - background-color: #dfdede; + background-color: rgb(223, 222, 222); } .legend { @@ -1849,13 +1918,13 @@ div.metadata_example_wrapper { div.metadata_options { padding: 7px; overflow: auto; - background: #f5f1e4; - border: 1px solid #ccc; + background: rgb(245, 241, 228); + border: 1px solid rgb(204, 204, 204); } div.metadata_options label:hover { - color: #fff; - background-color: #57442b; + color: rgb(255, 255, 255); + background-color: rgb(87, 68, 43); cursor: pointer; } @@ -1863,7 +1932,7 @@ div.metadata_options label { display: block; padding-left: 7px; line-height: 20px; - color: #036; + color: rgb(0, 51, 102); } div.metadata_example { @@ -1873,22 +1942,22 @@ div.metadata_example { div.metadata_example label { display: block; line-height: 21px; - color: #000; + color: rgb(0, 0, 0); cursor: pointer; } div.metadataDiv .disabled { - color: #ccc; + color: rgb(204, 204, 204); } .notifier-icon { float: left; - margin: 6px 4px 0px 0px; + margin: 6px 4px 0 0; } .warning { - border-color: #F89406; - background: url("../images/warning16.png") no-repeat right 5px center #fff; + border-color: rgb(248, 148, 6); + background: url("../images/warning16.png") no-repeat right 5px center rgb(255, 255, 255); } [class^="icon-notifiers-"], [class*=" icon-notifiers-"] { @@ -1902,95 +1971,95 @@ div.metadataDiv .disabled { } .icon-notifiers-kodi { - background-position: 0px 0px; + background-position: 0 0; } .icon-notifiers-plex { - background-position: -35px 0px; + background-position: -35px 0; } .icon-notifiers-plexth { - background-position: -69px 0px; + background-position: -69px 0; } .icon-notifiers-emby { - background-position: -104px 0px; + background-position: -104px 0; } .icon-notifiers-nmj { - background-position: -136px 0px; + background-position: -136px 0; } .icon-notifiers-syno1 { - background-position: -168px 0px; + background-position: -168px 0; } .icon-notifiers-syno2 { - background-position: -202px 0px; + background-position: -202px 0; } .icon-notifiers-pytivo { - background-position: -237px 0px; + background-position: -237px 0; } .icon-notifiers-growl { - background-position: -272px 0px; + background-position: -272px 0; } .icon-notifiers-prowl { - background-position: -308px 0px; + background-position: -308px 0; } .icon-notifiers-libnotify { - background-position: -345px 0px; + background-position: -345px 0; } .icon-notifiers-pushover { - background-position: -377px 0px; + background-position: -377px 0; } .icon-notifiers-boxcar2 { - background-position: -414px 0px; + background-position: -414px 0; } .icon-notifiers-nma { - background-position: -450px 0px; + background-position: -450px 0; } .icon-notifiers-pushalot { - background-position: -486px 0px; + background-position: -486px 0; } .icon-notifiers-pushbullet { - background-position: -519px 0px; + background-position: -519px 0; } .icon-notifiers-freemobile { - background-position: -551px 0px; + background-position: -551px 0; } .icon-notifiers-telegram { - background-position: -587px 0px; + background-position: -587px 0; } .icon-notifiers-twitter { - background-position: -624px 0px; + background-position: -624px 0; } .icon-notifiers-trakt { - background-position: -659px 0px; + background-position: -659px 0; } .icon-notifiers-email { - background-position: -695px 0px; + background-position: -695px 0; } .icon-notifiers-anime { - background-position: -733px 0px; + background-position: -733px 0; } .icon-notifiers-look { - background-position: -769px 0px; + background-position: -769px 0; } /* ======================================================================= @@ -2022,7 +2091,7 @@ td.tableright { text-align: left; vertical-align: middle; width: 225px; - padding: 6px 0px; + padding: 6px 0; } .optionWrapper div.selectChoices { @@ -2043,11 +2112,11 @@ td.tableright { .separator { font-size: 90%; - color: #333333; + color: rgb(51, 51, 51); } a.whitelink { - color: #fff; + color: rgb(255, 255, 255); } /* ======================================================================= @@ -2056,8 +2125,8 @@ Global span.path { padding: 3px 6px; - color: #8b0000; - background-color: #f5f1e4; + color: rgb(139, 0, 0); + background-color: rgb(245, 241, 228); } .align-left { @@ -2077,8 +2146,8 @@ span.quality { background-image:linear-gradient(to bottom, rgba(255,255,255,0.08),rgba(255,255,255,0) 50%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.25)); -webkit-box-shadow:inset 0 1px rgba(255,255,255,0.1),inset 0 -1px 3px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(255,255,255,0.08),0 1px 2px rgba(0,0,0,0.15); box-shadow:inset 0 1px rgba(255,255,255,0.1),inset 0 -1px 3px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(255,255,255,0.08),0 1px 2px rgba(0,0,0,0.15); - text-shadow: 0px 1px rgba(0, 0, 0, 0.8); - color: #FFFFFF; + text-shadow: 0 1px rgba(0, 0, 0, 0.8); + color: rgb(255, 255, 255); display: inline-block; padding: 2px 4px; text-align: center; @@ -2090,89 +2159,108 @@ span.quality { } span.any-hd { - background-color: #2672b6; + background-color: rgb(38, 114, 182); background: repeating-linear-gradient( -45deg, - #2672b6, - #2672b6 10px, - #5b990d 10px, - #5b990d 20px + rgb(38, 114, 182), + rgb(38, 114, 182) 10px, + rgb(91, 153, 13) 10px, + rgb(91, 153, 13) 20px ); } span.Custom { - background-color: #621993; + background-color: rgb(98, 25, 147); } span.HD { - background-color: #2672B6; + background-color: rgb(38, 114, 182); } span.HDTV { - background-color: #2672B6; + background-color: rgb(38, 114, 182); } span.HD720p { - background-color: #5b990d; + background-color: rgb(91, 153, 13); } span.HD1080p { - background-color: #2672B6; + background-color: rgb(38, 114, 182); } span.UHD-4K { - background-color: #7500FF; + background-color: rgb(117, 0, 255); } span.UHD-8K { - background-color: #410077; + background-color: rgb(65, 0, 119); } span.RawHD { - background-color: #cd7300; + background-color: rgb(205, 115, 0); } span.RawHDTV { - background-color: #cd7300; + background-color: rgb(205, 115, 0); } span.SD { - background-color: #BE2625; + background-color: rgb(190, 38, 37); } span.SDTV { - background-color: #BE2625; + background-color: rgb(190, 38, 37); } span.SDDVD { - background-color: #BE2625; + background-color: rgb(190, 38, 37); } span.Any { - background-color: #666; + background-color: rgb(102, 102, 102); } span.Unknown { - background-color: #999; + background-color: rgb(153, 153, 153); } span.Proper { - background-color: #3F7F00; + background-color: rgb(63, 127, 0); } span.false { - color: #993333; + color: rgb(153, 51, 51); /* red */ } span.true { - color: #669966; + color: rgb(102, 153, 102); /* green */ } span.break-word { word-break: break-all; } +span.required { + color: green; +} +span.preferred { + color: blue; +} +span.undesired { + color: orange; +} +span.ignored { + color: red; +} + +a.wiki { + color: red; +} +a.wiki strong{ + color: red; +} option.flag { padding-left: 35px; @@ -2212,7 +2300,7 @@ div.blackwhitelist{ } div.blackwhitelist input { - margin: 5px 0px; + margin: 5px 0; } div.blackwhitelist.pool select{ @@ -2229,7 +2317,7 @@ div.blackwhitelist span { } div.blackwhitelist.anidb, div.blackwhitelist.manual { - margin: 7px 0px; + margin: 7px 0; } /* ======================================================================= @@ -2240,7 +2328,7 @@ body { padding-top: 60px; overflow-y: scroll; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; - color: #000; + color: rgb(0, 0, 0); } html * { @@ -2248,18 +2336,18 @@ html * { } input[type="checkbox"] { - margin: 2px 0px 0px; + margin: 2px 0 0; line-height: normal; } input[type="radio"] { - margin: 2px 0px 0px; + margin: 2px 0 0; line-height: normal; } input, textarea, select, .uneditable-input { width: auto; - color: #000; + color: rgb(0, 0, 0); } .container-fluid { @@ -2268,65 +2356,65 @@ input, textarea, select, .uneditable-input { } .navbar-brand { - padding: 0px; + padding: 0; } /* navbar styling */ .navbar-default .navbar-brand { - color: #ffffff; + color: rgb(255, 255, 255); } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { - color: #ffffff; + color: rgb(255, 255, 255); background-color: transparent; } .navbar-default .navbar-text { - color: #dddddd; + color: rgb(221, 221, 221); } .navbar-default .navbar-nav > li > a { - color: #dddddd; + color: rgb(221, 221, 221); } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { - color: #ffffff; + color: rgb(255, 255, 255); } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { - color: #ffffff; - background-color: #333333; + color: rgb(255, 255, 255); + background-color: rgb(51, 51, 51); } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { - color: #cccccc; + color: rgb(204, 204, 204); background-color: transparent; } .navbar-default .navbar-toggle { - border-color: #cccccc; + border-color: rgb(204, 204, 204); } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { - background-color: #333333; + background-color: rgb(51, 51, 51); } .navbar-default .navbar-toggle .icon-bar { - background-color: #333333; + background-color: rgb(51, 51, 51); } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { - background-color: #333333; - color: #ffffff; + background-color: rgb(51, 51, 51); + color: rgb(255, 255, 255); } .navbar-default .navbar-nav > li.navbar-split > a { @@ -2344,55 +2432,55 @@ input, textarea, select, .uneditable-input { @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { - color: #dddddd; + color: rgb(221, 221, 221); } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { - color: #ffffff; + color: rgb(255, 255, 255); background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #ffffff; - background-color: #333333; + color: rgb(255, 255, 255); + background-color: rgb(51, 51, 51); } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #cccccc; + color: rgb(204, 204, 204); background-color: transparent; } } .navbar-default .navbar-link { - color: #dddddd; + color: rgb(221, 221, 221); } .navbar-default .navbar-link:hover { - color: #ffffff; + color: rgb(255, 255, 255); } .navbar-default .btn-link { - color: #98978b; + color: rgb(152, 151, 139); } .navbar-default .btn-link:hover, .navbar-default .btn-link:focus { - color: #dddddd; + color: rgb(221, 221, 221); } .navbar-default .btn-link[disabled]:hover, fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { - color: #cccccc; + color: rgb(204, 204, 204); } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { - color: #262626; + color: rgb(38, 38, 38); text-decoration: none; - background-color: #F5F5F5; + background-color: rgb(245, 245, 245); } .dropdown-menu > li > a { @@ -2400,13 +2488,13 @@ fieldset[disabled] .navbar-default .btn-link:focus { } .dropdown-menu { - background-color: #F5F1E4; + background-color: rgb(245, 241, 228); border: 1px solid rgba(0, 0, 0, 0.15); - box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.176); + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176); } .form-control { - color: #000000; + color: rgb(0, 0, 0); } .form-control-inline { @@ -2424,25 +2512,25 @@ fieldset[disabled] .navbar-default .btn-link:focus { font-size: 12px; line-height: 16px; *line-height: 20px; - color: #333333; + color: rgb(51, 51, 51); text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); vertical-align: middle; cursor: pointer; - background-color: #f5f5f5; - *background-color: #e6e6e6; - background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); - background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); - background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); - background-image: linear-gradient(top, #ffffff, #e6e6e6); - background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); + background-color: rgb(245, 245, 245); + *background-color: rgb(230, 230, 230); + background-image: -ms-linear-gradient(top, rgb(255, 255, 255), rgb(230, 230, 230)); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(255, 255, 255)), to(rgb(230, 230, 230))); + background-image: -webkit-linear-gradient(top, rgb(255, 255, 255), rgb(230, 230, 230)); + background-image: -o-linear-gradient(top, rgb(255, 255, 255), rgb(230, 230, 230)); + background-image: linear-gradient(top, rgb(255, 255, 255), rgb(230, 230, 230)); + background-image: -moz-linear-gradient(top, rgb(255, 255, 255), rgb(230, 230, 230)); background-repeat: repeat-x; - border: 1px solid #cccccc; + border: 1px solid rgb(204, 204, 204); *border: 0; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - border-color: #e6e6e6 #e6e6e6 #bfbfbf; - border-bottom-color: #b3b3b3; + border-color: rgb(230, 230, 230) rgb(230, 230, 230) rgb(191, 191, 191); + border-bottom-color: rgb(179, 179, 179); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; @@ -2459,13 +2547,13 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn.active, .btn.disabled, .btn[disabled] { - background-color: #e6e6e6; - *background-color: #d9d9d9; + background-color: rgb(230, 230, 230); + *background-color: rgb(217, 217, 217); } .btn:active, .btn.active { - background-color: #cccccc \9; + background-color: rgb(204, 204, 204) \9; } .btn:first-child { @@ -2473,10 +2561,10 @@ fieldset[disabled] .navbar-default .btn-link:focus { } .btn:hover { - color: #333333; + color: rgb(51, 51, 51); text-decoration: none; - background-color: #e6e6e6; - *background-color: #d9d9d9; + background-color: rgb(230, 230, 230); + *background-color: rgb(217, 217, 217); background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; @@ -2486,15 +2574,15 @@ fieldset[disabled] .navbar-default .btn-link:focus { } .btn:focus { - outline: thin dotted #333; + outline: thin dotted rgb(51, 51, 51); outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn.active, .btn:active { - background-color: #e6e6e6; - background-color: #d9d9d9 \9; + background-color: rgb(230, 230, 230); + background-color: rgb(217, 217, 217) \9; background-image: none; outline: 0; -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); @@ -2505,7 +2593,7 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn.disabled, .btn[disabled] { cursor: default; - background-color: #e6e6e6; + background-color: rgb(230, 230, 230); background-image: none; opacity: 0.65; filter: alpha(opacity=65); @@ -2555,7 +2643,7 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn-info:hover, .btn-inverse, .btn-inverse:hover { - color: #ffffff; + color: rgb(255, 255, 255); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } @@ -2569,16 +2657,16 @@ fieldset[disabled] .navbar-default .btn-link:focus { } .btn-primary { - background-color: #0074cc; - *background-color: #0055cc; - background-image: -ms-linear-gradient(top, #0088cc, #0055cc); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc)); - background-image: -webkit-linear-gradient(top, #0088cc, #0055cc); - background-image: -o-linear-gradient(top, #0088cc, #0055cc); - background-image: -moz-linear-gradient(top, #0088cc, #0055cc); - background-image: linear-gradient(top, #0088cc, #0055cc); + background-color: rgb(0, 116, 204); + *background-color: rgb(0, 85, 204); + background-image: -ms-linear-gradient(top, rgb(0, 136, 204), rgb(0, 85, 204)); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(0, 136, 204)), to(rgb(0, 85, 204))); + background-image: -webkit-linear-gradient(top, rgb(0, 136, 204), rgb(0, 85, 204)); + background-image: -o-linear-gradient(top, rgb(0, 136, 204), rgb(0, 85, 204)); + background-image: -moz-linear-gradient(top, rgb(0, 136, 204), rgb(0, 85, 204)); + background-image: linear-gradient(top, rgb(0, 136, 204), rgb(0, 85, 204)); background-repeat: repeat-x; - border-color: #0055cc #0055cc #003580; + border-color: rgb(0, 85, 204) rgb(0, 85, 204) rgb(0, 53, 128); border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:dximagetransform.microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0); filter: progid:dximagetransform.microsoft.gradient(enabled=false); @@ -2589,26 +2677,26 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { - background-color: #0055cc; - *background-color: #004ab3; + background-color: rgb(0, 85, 204); + *background-color: rgb(0, 74, 179); } .btn-primary:active, .btn-primary.active { - background-color: #004099 \9; + background-color: rgb(0, 64, 153) \9; } .btn-warning { - background-color: #faa732; - *background-color: #f89406; - background-image: -ms-linear-gradient(top, #fbb450, #f89406); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); - background-image: -webkit-linear-gradient(top, #fbb450, #f89406); - background-image: -o-linear-gradient(top, #fbb450, #f89406); - background-image: -moz-linear-gradient(top, #fbb450, #f89406); - background-image: linear-gradient(top, #fbb450, #f89406); + background-color: rgb(250, 167, 50); + *background-color: rgb(248, 148, 6); + background-image: -ms-linear-gradient(top, rgb(251, 180, 80), rgb(248, 148, 6)); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(251, 180, 80)), to(rgb(248, 148, 6))); + background-image: -webkit-linear-gradient(top, rgb(251, 180, 80), rgb(248, 148, 6)); + background-image: -o-linear-gradient(top, rgb(251, 180, 80), rgb(248, 148, 6)); + background-image: -moz-linear-gradient(top, rgb(251, 180, 80), rgb(248, 148, 6)); + background-image: linear-gradient(top, rgb(251, 180, 80), rgb(248, 148, 6)); background-repeat: repeat-x; - border-color: #f89406 #f89406 #ad6704; + border-color: rgb(248, 148, 6) rgb(248, 148, 6) rgb(173, 103, 4); border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:dximagetransform.microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0); filter: progid:dximagetransform.microsoft.gradient(enabled=false); @@ -2619,26 +2707,26 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { - background-color: #f89406; - *background-color: #df8505; + background-color: rgb(248, 148, 6); + *background-color: rgb(223, 133, 5); } .btn-warning:active, .btn-warning.active { - background-color: #c67605 \9; + background-color: rgb(198, 118, 5) \9; } .btn-danger { - background-color: #da4f49; - *background-color: #bd362f; - background-image: -ms-linear-gradient(top, #ee5f5b, #bd362f); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f)); - background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f); - background-image: -o-linear-gradient(top, #ee5f5b, #bd362f); - background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f); - background-image: linear-gradient(top, #ee5f5b, #bd362f); + background-color: rgb(218, 79, 73); + *background-color: rgb(189, 54, 47); + background-image: -ms-linear-gradient(top, rgb(238, 95, 91), rgb(189, 54, 47)); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(238, 95, 91)), to(rgb(189, 54, 47))); + background-image: -webkit-linear-gradient(top, rgb(238, 95, 91), rgb(189, 54, 47)); + background-image: -o-linear-gradient(top, rgb(238, 95, 91), rgb(189, 54, 47)); + background-image: -moz-linear-gradient(top, rgb(238, 95, 91), rgb(189, 54, 47)); + background-image: linear-gradient(top, rgb(238, 95, 91), rgb(189, 54, 47)); background-repeat: repeat-x; - border-color: #bd362f #bd362f #802420; + border-color: rgb(189, 54, 47) rgb(189, 54, 47) rgb(128, 36, 32); border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0); filter: progid:dximagetransform.microsoft.gradient(enabled=false); @@ -2649,26 +2737,26 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { - background-color: #bd362f; - *background-color: #a9302a; + background-color: rgb(189, 54, 47); + *background-color: rgb(169, 48, 42); } .btn-danger:active, .btn-danger.active { - background-color: #942a25 \9; + background-color: rgb(148, 42, 37) \9; } .btn-success { - background-color: #5bb75b; - *background-color: #51a351; - background-image: -ms-linear-gradient(top, #62c462, #51a351); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); - background-image: -webkit-linear-gradient(top, #62c462, #51a351); - background-image: -o-linear-gradient(top, #62c462, #51a351); - background-image: -moz-linear-gradient(top, #62c462, #51a351); - background-image: linear-gradient(top, #62c462, #51a351); + background-color: rgb(91, 183, 91); + *background-color: rgb(81, 163, 81); + background-image: -ms-linear-gradient(top, rgb(98, 196, 98), rgb(81, 163, 81)); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(98, 196, 98)), to(rgb(81, 163, 81))); + background-image: -webkit-linear-gradient(top, rgb(98, 196, 98), rgb(81, 163, 81)); + background-image: -o-linear-gradient(top, rgb(98, 196, 98), rgb(81, 163, 81)); + background-image: -moz-linear-gradient(top, rgb(98, 196, 98), rgb(81, 163, 81)); + background-image: linear-gradient(top, rgb(98, 196, 98), rgb(81, 163, 81)); background-repeat: repeat-x; - border-color: #51a351 #51a351 #387038; + border-color: rgb(81, 163, 81) rgb(81, 163, 81) rgb(56, 112, 56); border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:dximagetransform.microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0); filter: progid:dximagetransform.microsoft.gradient(enabled=false); @@ -2679,26 +2767,26 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn-success.active, .btn-success.disabled, .btn-success[disabled] { - background-color: #51a351; - *background-color: #499249; + background-color: rgb(81, 163, 81); + *background-color: rgb(73, 146, 73); } .btn-success:active, .btn-success.active { - background-color: #408140 \9; + background-color: rgb(64, 129, 64) \9; } .btn-info { - background-color: #49afcd; - *background-color: #2f96b4; - background-image: -ms-linear-gradient(top, #5bc0de, #2f96b4); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4)); - background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4); - background-image: -o-linear-gradient(top, #5bc0de, #2f96b4); - background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4); - background-image: linear-gradient(top, #5bc0de, #2f96b4); + background-color: rgb(73, 175, 205); + *background-color: rgb(47, 150, 180); + background-image: -ms-linear-gradient(top, rgb(91, 192, 222), rgb(47, 150, 180)); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(91, 192, 222)), to(rgb(47, 150, 180))); + background-image: -webkit-linear-gradient(top, rgb(91, 192, 222), rgb(47, 150, 180)); + background-image: -o-linear-gradient(top, rgb(91, 192, 222), rgb(47, 150, 180)); + background-image: -moz-linear-gradient(top, rgb(91, 192, 222), rgb(47, 150, 180)); + background-image: linear-gradient(top, rgb(91, 192, 222), rgb(47, 150, 180)); background-repeat: repeat-x; - border-color: #2f96b4 #2f96b4 #1f6377; + border-color: rgb(47, 150, 180) rgb(47, 150, 180) rgb(31, 99, 119); border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:dximagetransform.microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0); filter: progid:dximagetransform.microsoft.gradient(enabled=false); @@ -2709,26 +2797,26 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn-info.active, .btn-info.disabled, .btn-info[disabled] { - background-color: #2f96b4; - *background-color: #2a85a0; + background-color: rgb(47, 150, 180); + *background-color: rgb(42, 133, 160); } .btn-info:active, .btn-info.active { - background-color: #24748c \9; + background-color: rgb(36, 116, 140) \9; } .btn-inverse { - background-color: #414141; - *background-color: #222222; - background-image: -ms-linear-gradient(top, #555555, #222222); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222)); - background-image: -webkit-linear-gradient(top, #555555, #222222); - background-image: -o-linear-gradient(top, #555555, #222222); - background-image: -moz-linear-gradient(top, #555555, #222222); - background-image: linear-gradient(top, #555555, #222222); + background-color: rgb(65, 65, 65); + *background-color: rgb(34, 34, 34); + background-image: -ms-linear-gradient(top, rgb(85, 85, 85), rgb(34, 34, 34)); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(85, 85, 85)), to(rgb(34, 34, 34))); + background-image: -webkit-linear-gradient(top, rgb(85, 85, 85), rgb(34, 34, 34)); + background-image: -o-linear-gradient(top, rgb(85, 85, 85), rgb(34, 34, 34)); + background-image: -moz-linear-gradient(top, rgb(85, 85, 85), rgb(34, 34, 34)); + background-image: linear-gradient(top, rgb(85, 85, 85), rgb(34, 34, 34)); background-repeat: repeat-x; - border-color: #222222 #222222 #000000; + border-color: rgb(34, 34, 34) rgb(34, 34, 34) rgb(0, 0, 0); border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:dximagetransform.microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0); filter: progid:dximagetransform.microsoft.gradient(enabled=false); @@ -2739,13 +2827,13 @@ fieldset[disabled] .navbar-default .btn-link:focus { .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { - background-color: #222222; - *background-color: #151515; + background-color: rgb(34, 34, 34); + *background-color: rgb(21, 21, 21); } .btn-inverse:active, .btn-inverse.active { - background-color: #080808 \9; + background-color: rgb(8, 8, 8) \9; } .btn-xs { @@ -2762,7 +2850,7 @@ fieldset[disabled] .navbar-default .btn-link:focus { right: 12px; display: inline-block; border-right: 6px solid transparent; - border-bottom: 6px solid #F5F1E4; + border-bottom: 6px solid rgb(245, 241, 228); border-left: 6px solid transparent; content: ""; } @@ -2843,8 +2931,8 @@ fieldset.sectionwrap { } legend.legendStep { - color: #57442b; - margin-bottom: 0px; + color: rgb(87, 68, 43); + margin-bottom: 0; } div.stepsguide { @@ -2862,15 +2950,15 @@ div.stepsguide .step { div.stepsguide .step p { margin: 12px 0; - border-bottom: 4px solid #57442b; + border-bottom: 4px solid rgb(87, 68, 43); } div.stepsguide .disabledstep { - color: #c4c4c4; + color: rgb(196, 196, 196); } div.stepsguide .disabledstep p { - border-bottom: 4px solid #8a775e; + border-bottom: 4px solid rgb(138, 119, 94); } div.stepsguide .step .smalltext { @@ -2888,10 +2976,10 @@ div.formpaginate { div.formpaginate .prev, div.formpaginate .next { padding: 3px 6px; - color: #fff; + color: rgb(255, 255, 255); cursor: hand; cursor: pointer; - background: #57442b; + background: rgb(87, 68, 43); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; @@ -2949,7 +3037,7 @@ div.field-pair input { width: 85%; margin: .8em 0; font-size: 1.13em; - color: #666; + color: rgb(102, 102, 102); } /* ======================================================================= @@ -2960,17 +3048,17 @@ tablesorter.css width: 100%; margin-right: auto; margin-left: auto; - color: #000; + color: rgb(0, 0, 0); text-align: left; - background-color: #fff; + background-color: rgb(255, 255, 255); border-spacing: 0; } .tablesorter th, .tablesorter td { padding: 4px; - border-top: #fff 1px solid; - border-left: #fff 1px solid; + border-top: rgb(255, 255, 255) 1px solid; + border-left: rgb(255, 255, 255) 1px solid; vertical-align: middle; } @@ -2981,10 +3069,10 @@ tablesorter.css } .tablesorter th { - color: #fff; + color: rgb(255, 255, 255); text-align: center; text-shadow: -1px -1px 0 rgba(0,0,0,0.3); - background-color: #333; + background-color: rgb(51, 51, 51); border-collapse: collapse; font-weight: normal; } @@ -2999,13 +3087,13 @@ tablesorter.css } .tablesorter thead .tablesorter-headerDesc { - background-color: #555; + background-color: rgb(85, 85, 85); background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); /* background-image: url(../images/tablesorter/asc.gif); */ } .tablesorter thead .tablesorter-headerAsc { - background-color: #555; + background-color: rgb(85, 85, 85); background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); /* background-image: url(../images/tablesorter/desc.gif); */ } @@ -3017,17 +3105,17 @@ tablesorter.css } thead.tablesorter-stickyHeader { - border-top: 2px solid #fff; - border-bottom: 2px solid #fff; + border-top: 2px solid rgb(255, 255, 255); + border-bottom: 2px solid rgb(255, 255, 255); } /* Zebra Widget - row alternating colors */ .tablesorter tr.odd, .sickbeardTable tr.odd { - background-color: #f5f1e4; + background-color: rgb(245, 241, 228); } .tablesorter tr.even, .sickbeardTable tr.even { - background-color: #dfdacf; + background-color: rgb(223, 218, 207); } /* filter widget */ @@ -3046,8 +3134,8 @@ thead.tablesorter-stickyHeader { .tablesorter tr.tablesorter-filter-row, .tablesorter tr.tablesorter-filter-row td { text-align: center; - background: #eee; - border-bottom: 1px solid #ddd; + background: rgb(238, 238, 238); + border-bottom: 1px solid rgb(221, 221, 221); } /* optional disabled input styling */ @@ -3061,15 +3149,15 @@ thead.tablesorter-stickyHeader { } .tablesorter tfoot tr { - color: #fff; + color: rgb(255, 255, 255); text-align: center; text-shadow: -1px -1px 0 rgba(0,0,0,0.3); - background-color: #333; + background-color: rgb(51, 51, 51); border-collapse: collapse; } .tablesorter tfoot a { - color:#fff; + color: rgb(255, 255, 255); text-decoration: none; } @@ -3082,14 +3170,14 @@ ul.token-input-list { height: auto !important; height: 1%; width: 273px; - border: 1px solid #ccc; + border: 1px solid rgb(204, 204, 204); cursor: text; font-size: 10px; - font-family: Verdana; + font-family: Verdana, sans-serif; z-index: 999; margin: 0; padding: 0 0 1px 0; - background-color: #fff; + background-color: rgb(255, 255, 255); list-style-type: none; /* clear: left; */ border-top-left-radius: 3px; @@ -3105,7 +3193,7 @@ ul.token-input-list li { ul.token-input-list li input { border: 0; padding: 3px 4px; - background-color: white; + background-color: rgb(255, 255, 255); /* -webkit-appearance: caret; */ } @@ -3115,8 +3203,8 @@ li.token-input-token { height: 1%; margin: 3px; padding: 3px 5px 0 5px; - background-color: #d0efa0; - color: #000; + background-color: rgb(208, 239, 160); + color: rgb(0, 0, 0); font-weight: bold; cursor: default; display: block; @@ -3142,17 +3230,17 @@ li.token-input-token p { li.token-input-token span { float: right; - color: #777; + color: rgb(119, 119, 119); cursor: pointer; } li.token-input-selected-token { - background-color: #08844e; - color: #fff; + background-color: rgb(8, 132, 78); + color: rgb(255, 255, 255); } li.token-input-selected-token span { - color: #bbb; + color: rgb(187, 187, 187); } li.token-input-input-token input { @@ -3168,7 +3256,7 @@ div.token-input-dropdown { border-bottom: 1px solid; cursor: default; font-size: 11px; - font-family: Verdana; + font-family: Verdana, sans-serif; z-index: 1; } @@ -3176,7 +3264,7 @@ div.token-input-dropdown p { margin: 0; padding: 3px; font-weight: bold; - color: #777; + color: rgb(119, 119, 119); } div.token-input-dropdown ul { @@ -3185,17 +3273,17 @@ div.token-input-dropdown ul { } div.token-input-dropdown ul li { - background-color: #fff; + background-color: rgb(255, 255, 255); padding: 3px; list-style-type: none; } div.token-input-dropdown ul li.token-input-dropdown-item { - background-color: #fafafa; + background-color: rgb(250, 250, 250); } div.token-input-dropdown ul li.token-input-dropdown-item2 { - background-color: #fff; + background-color: rgb(255, 255, 255); } div.token-input-dropdown ul li em { @@ -3204,21 +3292,24 @@ div.token-input-dropdown ul li em { } div.token-input-dropdown ul li.token-input-selected-dropdown-item { - background-color: #6196c2; + background-color: rgb(97, 150, 194); } span.token-input-delete-token { margin: 0 1px; } -.red-text {color:#d33} -.clear-left {clear:left} -.nextline-block {display:block} +.red-text {color: rgb(221, 51, 51); +} +.clear-left {clear:left; +} +.nextline-block {display:block; +} .trakt-image { display: block; z-index: 0; - background-image: url(/images/poster-dark.jpg) + background-image: url(/images/poster-dark.jpg); } /* ======================================================================= @@ -3238,14 +3329,14 @@ jquery.confirm.css } #confirmBox{ - background: #F5F1E4; + background: rgb(245, 241, 228); width: 460px; position: fixed; left: 50%; top: 50%; margin: -130px 0 0 -230px; - border: 1px solid #111; - box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.175); + border: 1px solid rgb(17, 17, 17); + box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.175); } #confirmBox h1, @@ -3254,18 +3345,18 @@ jquery.confirm.css } #confirmBox h1 { - background-color: #333; - border-bottom: 1px solid #111; - color: #fff; + background-color: rgb(51, 51, 51); + border-bottom: 1px solid rgb(17, 17, 17); + color: rgb(255, 255, 255); margin: 0; font-size: 22px; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75); + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75); } #confirmBox p { padding-top: 20px; - color: #000; - text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.75); + color: rgb(0, 0, 0); + text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); } #confirmButtons { @@ -3278,11 +3369,11 @@ jquery.confirm.css padding: 2px 20px; text-decoration: none; display: inline-block; - color: #fff; + color: rgb(255, 255, 255); text-align:center; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75); + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75); background-clip: padding-box; - border: 1px solid #111; + border: 1px solid rgb(17, 17, 17); border-radius: 3px; cursor: pointer; -webkit-box-sizing: border-box; @@ -3301,19 +3392,19 @@ jquery.confirm.css } #confirmBox .green { - background-color: #3F7636; + background-color: rgb(63, 118, 54); } #confirmBox .green:hover { - background-color: #48873E; + background-color: rgb(72, 135, 62); } #confirmBox .red { - background-color: #8D2D2B; + background-color: rgb(141, 45, 43); } #confirmBox .red:hover { - background-color: #A13331; + background-color: rgb(161, 51, 49); } /* ======================================================================= @@ -3340,7 +3431,7 @@ login.css .login h1 { padding: 0 0 10px; font-size: 60px; - font-family: Lobster; + font-family: Lobster, cursive; font-weight: normal; } @@ -3408,8 +3499,8 @@ IMDB Popular } .popularShow h3{ - padding:0px; - margin:0px; + padding:0; + margin:0; display:inline-block; margin-right:30px; } @@ -3438,11 +3529,11 @@ IMDB Popular .popularShow .rating{ font-size:90%; display:inline-block; - margin-left:0px; + margin-left:0; } .popularShow p{ - margin-bottom:0px; + margin-bottom:0; } table.home-header { @@ -3499,4 +3590,4 @@ viewLog.mako to configure the same for the columns which are used for the filter inputs.*/ .log-filter { margin-top: 20px; -} \ No newline at end of file +} diff --git a/gui/slick/images/fanart.tv.png b/gui/slick/images/fanart.tv.png new file mode 100644 index 0000000000..c5a5290cc3 Binary files /dev/null and b/gui/slick/images/fanart.tv.png differ diff --git a/gui/slick/js/addShowOptions.js b/gui/slick/js/addShowOptions.js index 223bf051e5..5bc5066199 100644 --- a/gui/slick/js/addShowOptions.js +++ b/gui/slick/js/addShowOptions.js @@ -2,10 +2,10 @@ $(document).ready(function () { $('#saveDefaultsButton').click(function () { var anyQualArray = []; var bestQualArray = []; - $('#anyQualities option:selected').each(function (i, d) { + $('#allowed_qualities option:selected').each(function (i, d) { anyQualArray.push($(d).val()); }); - $('#bestQualities option:selected').each(function (i, d) { + $('#preferred_qualities option:selected').each(function (i, d) { bestQualArray.push($(d).val()); }); @@ -28,7 +28,7 @@ $(document).ready(function () { }); }); - $('#statusSelect, #qualityPreset, #flatten_folders, #anyQualities, #bestQualities, #subtitles, #scene, #anime, #statusSelectAfter').change(function () { + $('#statusSelect, #qualityPreset, #flatten_folders, #allowed_qualities, #preferred_qualities, #subtitles, #scene, #anime, #statusSelectAfter').change(function () { $('#saveDefaultsButton').attr('disabled', false); }); diff --git a/gui/slick/js/core.js b/gui/slick/js/core.js index 805583f581..67ba928253 100644 --- a/gui/slick/js/core.js +++ b/gui/slick/js/core.js @@ -142,7 +142,7 @@ var SICKRAGE = { }); } - if(metaToBool('sickbeard.FUZZY_DATING')) { + if(metaToBool('FUZZY_DATING')) { $.timeago.settings.allowFuture = true; $.timeago.settings.strings = { prefixAgo: null, @@ -2017,8 +2017,8 @@ var SICKRAGE = { $('.loading-spinner').hide(); $('.show-grid').show().isotope({ itemSelector: '.show-container', - sortBy : getMeta('sickbeard.POSTER_SORTBY'), - sortAscending: getMeta('sickbeard.POSTER_SORTDIR'), + sortBy : getMeta('POSTER_SORTBY'), + sortAscending: getMeta('POSTER_SORTDIR'), layoutMode: 'masonry', masonry: { isFitWidth: true @@ -2026,7 +2026,7 @@ var SICKRAGE = { getSortData: { name: function (itemElem) { var name = $(itemElem).attr('data-name') || ''; - return (metaToBool('sickbeard.SORT_ARTICLE') ? name : name.replace(/^((?:The|A|An)\s)/i, '')).toLowerCase(); + return (metaToBool('SORT_ARTICLE') ? name : name.replace(/^((?:The|A|An)\s)/i, '')).toLowerCase(); }, network: '[data-network]', date: function (itemElem) { @@ -2115,13 +2115,17 @@ var SICKRAGE = { }).on('shown.bs.popover', function () { // bootstrap popover event triggered when the popover opens // call this function to copy the column selection code into the popover $.tablesorter.columnSelector.attachTo( $('#showListTableShows'), '#popover-target'); - if(metaToBool('sickbeard.ANIME_SPLIT_HOME')){ + if(metaToBool('ANIME_SPLIT_HOME')){ $.tablesorter.columnSelector.attachTo( $('#showListTableAnime'), '#popover-target'); } }); }, displayShow: function() { + if (metaToBool('FANART_BACKGROUND')) { + $.backstretch(srRoot + '/showPoster/?show=' + $('#showID').attr('value') + '&which=fanart'); + $('.backstretch').css("opacity", getMeta('FANART_BACKGROUND_OPACITY')).fadeIn("500"); + } $('#srRoot').ajaxEpSearch({'colorRow': true}); $('#srRoot').ajaxEpSubtitlesSearch(); @@ -2353,7 +2357,7 @@ var SICKRAGE = { $(this).val(value.replace(/[^0-9xX]*/g, '')); var forSeason = $(this).attr('data-for-season'); var forEpisode = $(this).attr('data-for-episode'); - + // If empty reset the field if (value === '') { setEpisodeSceneNumbering(forSeason, forEpisode, null, null); @@ -2376,11 +2380,11 @@ var SICKRAGE = { } else { isValid = setInputValidInvalid(false, $(this)); } - + if (isValid){ setEpisodeSceneNumbering(forSeason, forEpisode, sceneSeason, sceneEpisode); } - + }); $('.sceneAbsolute').on('change', function() { @@ -2497,6 +2501,10 @@ var SICKRAGE = { }); }, snatchSelection: function() { + if (metaToBool('FANART_BACKGROUND')) { + $.backstretch(srRoot + '/showPoster/?show=' + $('#showID').attr('value') + '&which=fanart'); + $('.backstretch').css("opacity", getMeta('FANART_BACKGROUND_OPACITY')).fadeIn("500"); + } var spinner = $('#searchNotification'); var updateSpinner = function(spinner, message, showSpinner) { if (showSpinner) { @@ -2524,7 +2532,7 @@ var SICKRAGE = { callback(); } }); - + }; // Click event for the download button for snatching a result @@ -2549,13 +2557,30 @@ var SICKRAGE = { }); }; + function initTableSorter(table) { + // Nasty hack to re-initialize tablesorter after refresh + $(table).tablesorter({ + widthFixed : true, + widgets: ['saveSort', 'stickyHeaders', 'columnSelector', 'filter'], + widgetOptions : { + filter_columnFilters : true, // jshint ignore:line + filter_hideFilters : true, // jshint ignore:line + filter_saveFilters : true, // jshint ignore:line + columnSelector_saveColumns : true, // jshint ignore:line + columnSelector_layout : '
', // jshint ignore:line + columnSelector_mediaquery : false, // jshint ignore:line + columnSelector_cssChecked : 'checked' // jshint ignore:line + } + }); + } + $('.imdbstars').generateStars(); function checkCacheUpdates(repeat) { var self = this; var pollInterval = 5000; repeat = repeat || true; - + var show = $('meta[data-last-prov-updates]').attr('data-show'); var season = $('meta[data-last-prov-updates]').attr('data-season'); var episode = $('meta[data-last-prov-updates]').attr('data-episode'); @@ -2586,30 +2611,35 @@ var SICKRAGE = { if (data.result === 'refresh') { self.refreshResults(); updateSpinner(spinner, 'Refreshed results...', true); + initTableSorter("#showTable"); } if (data.result === 'searching') { // ep is searched, you will get a results any minute now pollInterval = 5000; $('.manualSearchButton').attr("disabled", true); updateSpinner(spinner, 'The episode is being searched, please wait......', true); + initTableSorter("#showTable"); } if (data.result === 'queued') { // ep is queued, this might take some time to get results pollInterval = 7000; $('.manualSearchButton').attr("disabled", true); updateSpinner(spinner, 'The episode has been queued, because another search is taking place. please wait..', true); + initTableSorter("#showTable"); } if (data.result === 'finished') { // ep search is finished updateSpinner(spinner, 'Search finished', false); $('.manualSearchButton').removeAttr("disabled"); repeat = false; + initTableSorter("#showTable"); } if (data.result === 'error') { // ep search is finished console.log('Probably tried to call manualSelectCheckCache, while page was being refreshed.'); $('.manualSearchButton').removeAttr("disabled"); repeat = true; + initTableSorter("#showTable"); } }, error: function () { @@ -2654,6 +2684,25 @@ var SICKRAGE = { // Moved and rewritten this from displayShow. This changes the button when clicked for collapsing/expanding the // "Show History" button to show or hide the snatch/download/failed history for a manual searched episode or pack. + initTableSorter("#showTable"); + + $('#popover').popover({ + placement: 'bottom', + html: true, // required if content has HTML + content: '
' + }) + // bootstrap popover event triggered when the popover opens + .on('shown.bs.popover', function (){ + $.tablesorter.columnSelector.attachTo($("#showTable"), '#popover-target'); + }); + + $('#btnReset').click(function(){ + $("#showTable") + .trigger('saveSortReset') // clear saved sort + .trigger("sortReset"); // reset current table sort + return false; + }); + $(function() { $('body').on('hide.bs.collapse', '.collapse.toggle', function () { $('#showhistory').text('Show History'); @@ -2983,7 +3032,7 @@ var SICKRAGE = { widgets: ['zebra', 'filter'], sortList: [[0,1]], textExtraction: (function(){ - if(isMeta('sickbeard.HISTORY_LAYOUT', ['detailed'])){ + if(isMeta('HISTORY_LAYOUT', ['detailed'])){ return { 0: function(node) { return $(node).find('time').attr('datetime'); }, 4: function(node) { return $(node).find("span").text().toLowerCase(); } @@ -2998,7 +3047,7 @@ var SICKRAGE = { } }()), headers: (function(){ - if(isMeta('sickbeard.HISTORY_LAYOUT', ['detailed'])){ + if(isMeta('HISTORY_LAYOUT', ['detailed'])){ return { 0: { sorter: 'realISODate' }, 4: { sorter: 'quality' } @@ -3051,9 +3100,9 @@ var SICKRAGE = { }, index: function() { - if(isMeta('sickbeard.COMING_EPS_LAYOUT', ['list'])){ + if(isMeta('COMING_EPS_LAYOUT', ['list'])){ var sortCodes = {'date': 0, 'show': 2, 'network': 5}; - var sort = getMeta('sickbeard.COMING_EPS_SORT'); + var sort = getMeta('COMING_EPS_SORT'); var sortList = (sort in sortCodes) ? [[sortCodes[sort], 0]] : [[0, 0]]; $('#showListTable:has(tbody tr)').tablesorter({ @@ -3084,7 +3133,7 @@ var SICKRAGE = { $('#srRoot').ajaxEpSearch(); } - if(isMeta('sickbeard.COMING_EPS_LAYOUT', ['banner', 'poster'])){ + if(isMeta('COMING_EPS_LAYOUT', ['banner', 'poster'])){ $('#srRoot').ajaxEpSearch({'size': 16, 'loadingImage': 'loading16' + themeSpinner + '.gif'}); $('.ep_summary').hide(); $('.ep_summaryTrigger').click(function() { @@ -3110,7 +3159,7 @@ var SICKRAGE = { init: function() { $('#tabs').tabs({ collapsible: true, - selected: (metaToBool('sickbeard.SORT_ARTICLE') ? -1 : 0) + selected: (metaToBool('SORT_ARTICLE') ? -1 : 0) }); $.initRemoteShowGrid = function(){ @@ -3158,7 +3207,7 @@ var SICKRAGE = { getSortData: { name: function(itemElem) { var name = $(itemElem).attr('data-name') || ''; - return (metaToBool('sickbeard.SORT_ARTICLE') ? name : name.replace(/^((?:The|A|An)\s)/i, '')).toLowerCase(); + return (metaToBool('SORT_ARTICLE') ? name : name.replace(/^((?:The|A|An)\s)/i, '')).toLowerCase(); }, rating: '[data-rating] parseInt', votes: '[data-votes] parseInt', diff --git a/gui/slick/js/editShow.js b/gui/slick/js/editShow.js index 7201818490..ad83ea8248 100644 --- a/gui/slick/js/editShow.js +++ b/gui/slick/js/editShow.js @@ -1,8 +1,33 @@ var allExceptions = []; -$('#location').fileBrowser({ title: 'Select Show Location' }); +function metaToBool(pyVar){ + var meta = $("meta[data-var='" + pyVar + "']").data("content"); + if(typeof meta === "undefined"){ + console.log(pyVar + " is empty, did you forget to add this to main.mako?"); + return meta; + } else { + meta = (isNaN(meta) ? meta.toLowerCase() : meta.toString()); + return !(meta === "false" || meta === "none" || meta === "0"); + } +} + +function getMeta(pyVar){ + return $("meta[data-var='" + pyVar + "']").data("content"); +} + +var srRoot = getMeta("srRoot"); + + +$(document).ready(function(){ + if (metaToBool("FANART_BACKGROUND")) { + $.backstretch(srRoot + "/showPoster/?show=" + $("#show").attr("value") + "&which=fanart"); + $(".backstretch").css("opacity", getMeta("FANART_BACKGROUND_OPACITY")).fadeIn("500"); + } +}); + +$("#location").fileBrowser({ title: "Select Show Location" }); -$('#submit').click(function() { +$("#submit").click(function() { var allExceptions = []; $("#exceptions_list option").each(function() { @@ -11,10 +36,10 @@ $('#submit').click(function() { $("#exceptions_list").val(allExceptions); - if(metaToBool('show.is_anime')) { generateBlackWhiteList(); } + if(metaToBool("show.is_anime")) { generateBlackWhiteList(); } }); -$('#addSceneName').click(function() { - var sceneEx = $('#SceneName').val(); +$("#addSceneName").click(function() { + var sceneEx = $("#SceneName").val(); var option = $("');for(c in b)b.hasOwnProperty(c)&&(b[c].hasOwnProperty("name")?this.$element.append('"):this.$element.append('"));this.$element.val(a)},addBootstrapLanguages:function(){var a,b,c,d,e,f;d=this.options.language,a=this.$element.find('input[type="hidden"]'),b=this.$element.find(".bfh-selectbox-option"),c=this.$element.find("[role=option]"),e=this.getLanguages(),c.html(""),this.options.blank===!0&&c.append('
  • ');for(f in e)e.hasOwnProperty(f)&&(e[f].hasOwnProperty("name")?this.options.flags===!0?c.append('
  • '+e[f].name.toProperCase()+"
  • "):c.append('
  • '+e[f].name.toProperCase()+" ("+BFHCountriesList[e[f].country]+")
  • "):c.append('
  • '+e[f]+"
  • "));this.$element.val(d)},displayLanguage:function(){var a;a=this.options.language,-1!==a.indexOf("_")?(a=a.split("_"),this.options.flags===!0?this.$element.html(' '+BFHLanguagesList[a[0]].toProperCase()):this.$element.html(BFHLanguagesList[a[0]].toProperCase()+" ("+BFHCountriesList[a[1]]+")")):this.$element.html(BFHLanguagesList[a].toProperCase())}};var c=a.fn.bfhlanguages;a.fn.bfhlanguages=function(c){return this.each(function(){var d,e,f;d=a(this),e=d.data("bfhlanguages"),f="object"==typeof c&&c,e||d.data("bfhlanguages",e=new b(this,f)),"string"==typeof c&&e[c].call(d)})},a.fn.bfhlanguages.Constructor=b,a.fn.bfhlanguages.defaults={language:"",available:"",flags:!1,blank:!0},a.fn.bfhlanguages.noConflict=function(){return a.fn.bfhlanguages=c,this},a(document).ready(function(){a("form select.bfh-languages, span.bfh-languages, div.bfh-languages").each(function(){var b;b=a(this),b.hasClass("bfh-selectbox")&&b.bfhselectbox(b.data()),b.bfhlanguages(b.data())})}),String.prototype.toProperCase=function(){return this.replace(/\w\S*/g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()})}}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.options=a.extend({},a.fn.bfhnumber.defaults,c),this.$element=a(b),this.initInput()};b.prototype={constructor:b,initInput:function(){this.options.buttons===!0&&(this.$element.wrap('
    '),this.$element.parent().append(''),this.$element.parent().append('')),this.$element.on("change.bfhnumber.data-api",b.prototype.change),this.options.keyboard===!0&&this.$element.on("keydown.bfhnumber.data-api",b.prototype.keydown),this.options.buttons===!0&&this.$element.parent().on("mousedown.bfhnumber.data-api",".inc",b.prototype.btninc).on("mousedown.bfhnumber.data-api",".dec",b.prototype.btndec),this.formatNumber()},keydown:function(b){var c;if(c=a(this).data("bfhnumber"),c.$element.is(".disabled")||void 0!==c.$element.attr("disabled"))return!0;switch(b.which){case 38:c.increment();break;case 40:c.decrement()}return!0},mouseup:function(a){var b,c,d;b=a.data.btn,c=b.$element.data("timer"),d=b.$element.data("interval"),clearTimeout(c),clearInterval(d)},btninc:function(){var c,d;return c=a(this).parent().find(".bfh-number").data("bfhnumber"),c.$element.is(".disabled")||void 0!==c.$element.attr("disabled")?!0:(c.increment(),d=setTimeout(function(){var a;a=setInterval(function(){c.increment()},80),c.$element.data("interval",a)},750),c.$element.data("timer",d),a(document).one("mouseup",{btn:c},b.prototype.mouseup),!0)},btndec:function(){var c,d;return c=a(this).parent().find(".bfh-number").data("bfhnumber"),c.$element.is(".disabled")||void 0!==c.$element.attr("disabled")?!0:(c.decrement(),d=setTimeout(function(){var a;a=setInterval(function(){c.decrement()},80),c.$element.data("interval",a)},750),c.$element.data("timer",d),a(document).one("mouseup",{btn:c},b.prototype.mouseup),!0)},change:function(){var b;return b=a(this).data("bfhnumber"),b.$element.is(".disabled")||void 0!==b.$element.attr("disabled")?!0:(b.formatNumber(),!0)},increment:function(){var a;a=this.getValue(),a+=1,this.$element.val(a).change()},decrement:function(){var a;a=this.getValue(),a-=1,this.$element.val(a).change()},getValue:function(){var a;return a=this.$element.val(),"-1"!==a&&(a=String(a).replace(/\D/g,"")),0===String(a).length&&(a=this.options.min),parseInt(a)},formatNumber:function(){var a,b,c,d;if(a=this.getValue(),a>this.options.max&&(a=this.options.wrap===!0?this.options.min:this.options.max),ad;d+=1)a="0"+a;a!==this.$element.val()&&this.$element.val(a)}};var c=a.fn.bfhnumber;a.fn.bfhnumber=function(c){return this.each(function(){var d,e,f;d=a(this),e=d.data("bfhnumber"),f="object"==typeof c&&c,e||d.data("bfhnumber",e=new b(this,f)),"string"==typeof c&&e[c].call(d)})},a.fn.bfhnumber.Constructor=b,a.fn.bfhnumber.defaults={min:0,max:9999,zeros:!1,keyboard:!0,buttons:!0,wrap:!1},a.fn.bfhnumber.noConflict=function(){return a.fn.bfhnumber=c,this},a(document).ready(function(){a('form input[type="text"].bfh-number, form input[type="number"].bfh-number').each(function(){var b;b=a(this),b.bfhnumber(b.data())})})}(window.jQuery),+function(a){"use strict";function b(a,b){var c,d,e,f;for(c="",b=String(b).replace(/\D/g,""),d=0,e=0;d'+a(this).html()+""}),this.$element.html('
      '),this.$element.find("[role=option]").html(b),this.options.filter===!0&&this.$element.find(".bfh-selectbox-options").prepend('
      '),this.$element.val(this.options.value),this.$element.on("click.bfhselectbox.data-api touchstart.bfhselectbox.data-api",d,e.prototype.toggle).on("keydown.bfhselectbox.data-api",d+", [role=option]",e.prototype.keydown).on("mouseenter.bfhselectbox.data-api","[role=option] > li > a",e.prototype.mouseenter).on("click.bfhselectbox.data-api","[role=option] > li > a",e.prototype.select).on("click.bfhselectbox.data-api",".bfh-selectbox-filter",function(){return!1}).on("propertychange.bfhselectbox.data-api change.bfhselectbox.data-api input.bfhselectbox.data-api paste.bfhselectbox.data-api",".bfh-selectbox-filter",e.prototype.filter)},toggle:function(d){var e,f,g;if(e=a(this),f=c(e),f.is(".disabled")||void 0!==f.attr("disabled"))return!0;if(g=f.hasClass("open"),b(),!g){if(f.trigger(d=a.Event("show.bfhselectbox")),d.isDefaultPrevented())return!0;f.toggleClass("open").trigger("shown.bfhselectbox").find('[role=option] > li > [data-option="'+f.val()+'"]').focus()}return!1},filter:function(){var b,d,e;b=a(this),d=c(b),e=a("[role=option] li a",d),e.hide().filter(function(){return-1!==a(this).text().toUpperCase().indexOf(b.val().toUpperCase())}).show()},keydown:function(b){var f,g,h,i,j;return/(38|40|27)/.test(b.keyCode)?(f=a(this),b.preventDefault(),b.stopPropagation(),h=c(f),i=h.hasClass("open"),!i||i&&27===b.keyCode?(27===b.which&&h.find(d).focus(),f.click()):(g=a("[role=option] li:not(.divider) a:visible",h),g.length?(a("body").off("mouseenter.bfh-selectbox.data-api","[role=option] > li > a",e.prototype.mouseenter),j=g.index(g.filter(":focus")),38===b.keyCode&&j>0&&(j-=1),40===b.keyCode&&j li > a",e.prototype.mouseenter)):!0)):!0},mouseenter:function(){var b;b=a(this),b.focus()},select:function(d){var e,f;return e=a(this),d.preventDefault(),d.stopPropagation(),e.is(".disabled")||void 0!==e.attr("disabled")?!0:(f=c(e),f.val(e.data("option")),f.trigger("change.bfhselectbox"),void b())}};var f=a.fn.bfhselectbox;a.fn.bfhselectbox=function(b){return this.each(function(){var c,d,f;c=a(this),d=c.data("bfhselectbox"),f="object"==typeof b&&b,this.type="bfhselectbox",d||c.data("bfhselectbox",d=new e(this,f)),"string"==typeof b&&d[b].call(c)})},a.fn.bfhselectbox.Constructor=e,a.fn.bfhselectbox.defaults={icon:"caret",input:"form-control",name:"",value:"",filter:!1},a.fn.bfhselectbox.noConflict=function(){return a.fn.bfhselectbox=f,this};var g;a.valHooks.div&&(g=a.valHooks.div),a.valHooks.div={get:function(b){return a(b).hasClass("bfh-selectbox")?a(b).find('input[type="hidden"]').val():g?g.get(b):void 0},set:function(b,c){var d,e;if(a(b).hasClass("bfh-selectbox"))d=a(b),d.find("li a[data-option='"+c+"']").length>0?e=d.find("li a[data-option='"+c+"']").html():d.find("li a").length>0?e=d.find("li a").eq(0).html():(c="",e=""),d.find('input[type="hidden"]').val(c),d.find(".bfh-selectbox-option").html(e);else if(g)return g.set(b,c)}},a(document).ready(function(){a("div.bfh-selectbox").each(function(){var b;b=a(this),b.bfhselectbox(b.data())})}),a(document).on("click.bfhselectbox.data-api",b)}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.options=a.extend({},a.fn.bfhslider.defaults,c),this.$element=a(b),this.initSlider()};b.prototype={constructor:b,initSlider:function(){""===this.options.value&&(this.options.value=this.options.min),this.$element.html('
      '),this.$element.find('input[type="hidden"]').val(this.options.value),this.updateHandle(this.options.value),this.$element.on("mousedown.bfhslider.data-api",b.prototype.mouseDown)},updateHandle:function(a){var b,c,d,e;e=this.options.max-this.options.min,c=this.$element.width(),d=this.$element.position().left,b=Math.round((a-this.options.min)*(c-20)/e+d),this.$element.find(".bfh-slider-handle").css("left",b+"px"),this.$element.find(".bfh-slider-value").text(a)},updateVal:function(a){var b,c,d,e,f;return f=this.options.max-this.options.min,b=this.$element.width(),c=this.$element.offset().left,d=c+b,c>a&&(a=c),a+20>d&&(a=d),e=(a-c)/b,e=Math.ceil(e*f+this.options.min),e===this.$element.val()?!0:(this.$element.val(e),void this.$element.trigger("change.bfhslider"))},mouseDown:function(){var c;return c=a(this),c.is(".disabled")||void 0!==c.attr("disabled")?!0:void a(document).on("mousemove.bfhslider.data-api",{slider:c},b.prototype.mouseMove).one("mouseup.bfhslider.data-api",{slider:c},b.prototype.mouseUp)},mouseMove:function(a){var b;b=a.data.slider,b.data("bfhslider").updateVal(a.pageX)},mouseUp:function(b){var c;c=b.data.slider,c.data("bfhslider").updateVal(b.pageX),a(document).off("mousemove.bfhslider.data-api")}};var c=a.fn.bfhslider;a.fn.bfhslider=function(c){return this.each(function(){var d,e,f;d=a(this),e=d.data("bfhslider"),f="object"==typeof c&&c,this.type="bfhslider",e||d.data("bfhslider",e=new b(this,f)),"string"==typeof c&&e[c].call(d)})},a.fn.bfhslider.Constructor=b,a.fn.bfhslider.defaults={name:"",value:"",min:0,max:100},a.fn.bfhslider.noConflict=function(){return a.fn.bfhslider=c,this};var d;a.valHooks.div&&(d=a.valHooks.div),a.valHooks.div={get:function(b){return a(b).hasClass("bfh-slider")?a(b).find('input[type="hidden"]').val():d?d.get(b):void 0},set:function(b,c){if(a(b).hasClass("bfh-slider"))a(b).find('input[type="hidden"]').val(c),a(b).data("bfhslider").updateHandle(c);else if(d)return d.set(b,c)}},a(document).ready(function(){a("div.bfh-slider").each(function(){var b;b=a(this),b.bfhslider(b.data())})})}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.options=a.extend({},a.fn.bfhstates.defaults,c),this.$element=a(b),this.$element.is("select")&&this.addStates(),this.$element.hasClass("bfh-selectbox")&&this.addBootstrapStates(),this.$element.is("span")&&this.displayState()};b.prototype={constructor:b,addStates:function(){var b,c;b=this.options.country,""!==b&&(c=a(document).find("#"+b),0!==c.length&&(b=c.val(),c.on("change",{state:this},this.changeCountry))),this.loadStates(b)},loadStates:function(a){var b,c;b=this.options.state,this.$element.html(""),this.options.blank===!0&&this.$element.append('');for(c in BFHStatesList[a])BFHStatesList[a].hasOwnProperty(c)&&this.$element.append('");this.$element.val(b)},changeCountry:function(b){var c,d,e;c=a(this),d=b.data.state,e=c.val(),d.loadStates(e)},addBootstrapStates:function(){var b,c;b=this.options.country,""!==b&&(c=a(document).find("#"+b),0!==c.length&&(b=c.find('input[type="hidden"]').val(),c.on("change.bfhselectbox",{state:this},this.changeBootstrapCountry))),this.loadBootstrapStates(b)},loadBootstrapStates:function(a){var b,c,d,e,f,g;e=this.options.state,f="",b=this.$element.find('input[type="hidden"]'),c=this.$element.find(".bfh-selectbox-option"),d=this.$element.find("[role=option]"),d.html(""),this.options.blank===!0&&d.append('
    • ');for(g in BFHStatesList[a])BFHStatesList[a].hasOwnProperty(g)&&(d.append('
    • '+BFHStatesList[a][g].name+"
    • "),BFHStatesList[a][g].code===e&&(f=BFHStatesList[a][g].name));this.$element.val(e)},changeBootstrapCountry:function(b){var c,d,e;c=a(this),d=b.data.state,e=c.val(),d.loadBootstrapStates(e)},displayState:function(){var a,b,c,d;a=this.options.country,b=this.options.state,c="";for(d in BFHStatesList[a])if(BFHStatesList[a].hasOwnProperty(d)&&BFHStatesList[a][d].code===b){c=BFHStatesList[a][d].name;break}this.$element.html(c)}};var c=a.fn.bfhstates;a.fn.bfhstates=function(c){return this.each(function(){var d,e,f;d=a(this),e=d.data("bfhstates"),f="object"==typeof c&&c,e||d.data("bfhstates",e=new b(this,f)),"string"==typeof c&&e[c].call(d)})},a.fn.bfhstates.Constructor=b,a.fn.bfhstates.defaults={country:"",state:"",blank:!0},a.fn.bfhstates.noConflict=function(){return a.fn.bfhstates=c,this},a(document).ready(function(){a("form select.bfh-states, span.bfh-states, div.bfh-states").each(function(){var b;b=a(this),b.hasClass("bfh-selectbox")&&b.bfhselectbox(b.data()),b.bfhstates(b.data())})})}(window.jQuery),+function(a){"use strict";function b(a,b){return a=String(a),1===a.length&&(a="0"+a),b=String(b),1===b.length&&(b="0"+b),a+BFHTimePickerDelimiter+b}function c(){var b;a(e).each(function(c){return b=d(a(this)),b.hasClass("open")?(b.trigger(c=a.Event("hide.bfhtimepicker")),c.isDefaultPrevented()?!0:void b.removeClass("open").trigger("hidden.bfhtimepicker")):!0})}function d(a){return a.closest(".bfh-timepicker")}var e="[data-toggle=bfh-timepicker]",f=function(b,c){this.options=a.extend({},a.fn.bfhtimepicker.defaults,c),this.$element=a(b),this.initPopover()};f.prototype={constructor:f,setTime:function(){var a,c,d,e,f,g,h;a=this.options.time,g="",h="",""===a||"now"===a||void 0===a?(c=new Date,e=c.getHours(),f=c.getMinutes(),"12h"===this.options.mode&&(e>12?(e-=12,g=" "+BFHTimePickerModes.pm,h="pm"):(g=" "+BFHTimePickerModes.am,h="am")),"now"===a&&this.$element.find('.bfh-timepicker-toggle > input[type="text"]').val(b(e,f)+g),this.$element.data("hour",e),this.$element.data("minute",f),this.$element.data("mode",h)):(d=String(a).split(BFHTimePickerDelimiter),e=d[0],f=d[1],"12h"===this.options.mode&&(d=String(f).split(" "),f=d[0],h=d[1]===BFHTimePickerModes.pm?"pm":"am"),this.$element.find('.bfh-timepicker-toggle > input[type="text"]').val(a),this.$element.data("hour",e),this.$element.data("minute",f),this.$element.data("mode",h))},initPopover:function(){var b,c,d,g,h;b="",c="",d="",""!==this.options.icon&&("right"===this.options.align?c='':b='',d="input-group"),g="",h="23","12h"===this.options.mode&&(g='
      '+BFHTimePickerModes.am+'
      '+BFHTimePickerModes.pm+"
      ",h="11"),this.$element.html('
      '+b+''+c+'
      '+g+"
      '+BFHTimePickerDelimiter+'
      "),this.$element.on("click.bfhtimepicker.data-api touchstart.bfhtimepicker.data-api",e,f.prototype.toggle).on("click.bfhtimepicker.data-api touchstart.bfhtimepicker.data-api",".bfh-timepicker-popover > table",function(){return!1}),this.$element.find(".bfh-number").each(function(){var b;b=a(this),b.bfhnumber(b.data()),b.on("change",f.prototype.change)}),this.$element.find(".bfh-selectbox").each(function(){var b;b=a(this),b.bfhselectbox(b.data()),b.on("change.bfhselectbox",f.prototype.change)}),this.setTime(),this.updatePopover()},updatePopover:function(){var a,b,c;a=this.$element.data("hour"),b=this.$element.data("minute"),c=this.$element.data("mode"),this.$element.find(".hour input[type=text]").val(a).change(),this.$element.find(".minute input[type=text]").val(b).change(),this.$element.find(".bfh-selectbox").val(c)},change:function(){var b,c,e,f;return b=a(this),c=d(b),e=c.data("bfhtimepicker"),e&&"undefined"!==e&&(f="","12h"===e.options.mode&&(f=" "+BFHTimePickerModes[c.find(".bfh-selectbox").val()]),c.find('.bfh-timepicker-toggle > input[type="text"]').val(c.find(".hour input[type=text]").val()+BFHTimePickerDelimiter+c.find(".minute input[type=text]").val()+f),c.trigger("change.bfhtimepicker")),!1},toggle:function(b){var e,f,g;if(e=a(this),f=d(e),f.is(".disabled")||void 0!==f.attr("disabled"))return!0;if(g=f.hasClass("open"),c(),!g){if(f.trigger(b=a.Event("show.bfhtimepicker")),b.isDefaultPrevented())return!0;f.toggleClass("open").trigger("shown.bfhtimepicker"),e.focus()}return!1}};var g=a.fn.bfhtimepicker;a.fn.bfhtimepicker=function(b){return this.each(function(){var c,d,e;c=a(this),d=c.data("bfhtimepicker"),e="object"==typeof b&&b,this.type="bfhtimepicker",d||c.data("bfhtimepicker",d=new f(this,e)),"string"==typeof b&&d[b].call(c)})},a.fn.bfhtimepicker.Constructor=f,a.fn.bfhtimepicker.defaults={icon:"glyphicon glyphicon-time",align:"left",input:"form-control",placeholder:"",name:"",time:"now",mode:"24h"},a.fn.bfhtimepicker.noConflict=function(){return a.fn.bfhtimepicker=g,this};var h;a.valHooks.div&&(h=a.valHooks.div),a.valHooks.div={get:function(b){return a(b).hasClass("bfh-timepicker")?a(b).find('.bfh-timepicker-toggle > input[type="text"]').val():h?h.get(b):void 0},set:function(b,c){var d;if(a(b).hasClass("bfh-timepicker"))d=a(b).data("bfhtimepicker"),d.options.time=c,d.setTime(),d.updatePopover();else if(h)return h.set(b,c)}},a(document).ready(function(){a("div.bfh-timepicker").each(function(){var b;b=a(this),b.bfhtimepicker(b.data())})}),a(document).on("click.bfhtimepicker.data-api",c)}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.options=a.extend({},a.fn.bfhtimezones.defaults,c),this.$element=a(b),this.$element.is("select")&&this.addTimezones(),this.$element.hasClass("bfh-selectbox")&&this.addBootstrapTimezones()};b.prototype={constructor:b,addTimezones:function(){var b,c;b=this.options.country,""!==b&&(c=a(document).find("#"+b),0!==c.length&&(b=c.val(),c.on("change",{timezone:this},this.changeCountry))),this.loadTimezones(b)},loadTimezones:function(a){var b,c;b=this.options.timezone,this.$element.html(""),this.options.blank===!0&&this.$element.append('');for(c in BFHTimezonesList[a])BFHTimezonesList[a].hasOwnProperty(c)&&this.$element.append('");this.$element.val(b)},changeCountry:function(b){var c,d,e;c=a(this),d=b.data.timezone,e=c.val(),d.loadTimezones(e)},addBootstrapTimezones:function(){var b,c;b=this.options.country,""!==b&&(c=a(document).find("#"+b),0!==c.length&&(b=c.find('input[type="hidden"]').val(),c.on("change.bfhselectbox",{timezone:this},this.changeBootstrapCountry))),this.loadBootstrapTimezones(b)},loadBootstrapTimezones:function(a){var b,c,d,e,f;e=this.options.timezone,b=this.$element.find('input[type="hidden"]'),c=this.$element.find(".bfh-selectbox-option"),d=this.$element.find("[role=option]"),d.html(""),this.options.blank===!0&&d.append('
    • ');for(f in BFHTimezonesList[a])BFHTimezonesList[a].hasOwnProperty(f)&&d.append('
    • '+BFHTimezonesList[a][f]+"
    • ");this.$element.val(e)},changeBootstrapCountry:function(b){var c,d,e;c=a(this),d=b.data.timezone,e=c.val(),d.loadBootstrapTimezones(e)}};var c=a.fn.bfhtimezones;a.fn.bfhtimezones=function(c){return this.each(function(){var d,e,f;d=a(this),e=d.data("bfhtimezones"),f="object"==typeof c&&c,e||d.data("bfhtimezones",e=new b(this,f)),"string"==typeof c&&e[c].call(d)})},a.fn.bfhtimezones.Constructor=b,a.fn.bfhtimezones.defaults={country:"",timezone:"",blank:!0},a.fn.bfhtimezones.noConflict=function(){return a.fn.bfhtimezones=c,this},a(document).ready(function(){a("form select.bfh-timezones, div.bfh-timezones").each(function(){var b;b=a(this),b.hasClass("bfh-selectbox")&&b.bfhselectbox(b.data()),b.bfhtimezones(b.data())})})}(window.jQuery),function(a,b,c){var d=a();a.fn.dropdownHover=function(c){return"ontouchstart"in document?this:(d=d.add(this.parent()),this.each(function(){function e(a){b.clearTimeout(f),b.clearTimeout(g),g=b.setTimeout(function(){d.find(":focus").blur(),n.instantlyCloseOthers===!0&&d.removeClass("open"),b.clearTimeout(g),h.attr("aria-expanded","true"),i.addClass("open"),h.trigger(l)},n.hoverDelay)}var f,g,h=a(this),i=h.parent(),j={delay:500,hoverDelay:0,instantlyCloseOthers:!0},k={delay:a(this).data("delay"),hoverDelay:a(this).data("hover-delay"),instantlyCloseOthers:a(this).data("close-others")},l="show.bs.dropdown",m="hide.bs.dropdown",n=a.extend(!0,{},j,c,k);i.hover(function(a){return i.hasClass("open")||h.is(a.target)?void e(a):!0},function(){b.clearTimeout(g),f=b.setTimeout(function(){h.attr("aria-expanded","false"),i.removeClass("open"),h.trigger(m)},n.delay)}),h.hover(function(a){return i.hasClass("open")||i.is(a.target)?void e(a):!0}),i.find(".dropdown-submenu").each(function(){var c,d=a(this);d.hover(function(){b.clearTimeout(c),d.children(".dropdown-menu").show(),d.siblings().children(".dropdown-menu").hide()},function(){var a=d.children(".dropdown-menu");c=b.setTimeout(function(){a.hide()},n.delay)})})}))},a(document).ready(function(){a('[data-hover="dropdown"]').dropdownHover()})}(jQuery,window),function(a,b){"use strict";"undefined"!=typeof module&&module.exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):b(a.jQuery)}(this,function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.select=this.options.select||this.select,this.autoSelect="boolean"==typeof this.options.autoSelect?this.options.autoSelect:!0,this.highlighter=this.options.highlighter||this.highlighter,this.render=this.options.render||this.render,this.updater=this.options.updater||this.updater,this.displayText=this.options.displayText||this.displayText,this.source=this.options.source,this.delay=this.options.delay,this.$menu=a(this.options.menu),this.$appendTo=this.options.appendTo?a(this.options.appendTo):null,this.shown=!1,this.listen(),this.showHintOnFocus="boolean"==typeof this.options.showHintOnFocus?this.options.showHintOnFocus:!1,this.afterSelect=this.options.afterSelect,this.addItem=!1};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").data("value");if(this.$element.data("active",a),this.autoSelect||a){var b=this.updater(a);this.$element.val(this.displayText(b)||b).change(),this.afterSelect(b)}return this.hide()},updater:function(a){return a},setSource:function(a){this.source=a},show:function(){var b,c=a.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return b="function"==typeof this.options.scrollHeight?this.options.scrollHeight.call():this.options.scrollHeight,(this.$appendTo?this.$menu.appendTo(this.$appendTo):this.$menu.insertAfter(this.$element)).css({top:c.top+c.height+b,left:c.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){if("undefined"!=typeof b&&null!==b?this.query=b:this.query=this.$element.val()||"",this.query.length0?this.$element.data("active",b[0]):this.$element.data("active",null),this.options.addItem&&b.push(this.options.addItem),"all"==this.options.items?this.render(b).show():this.render(b.slice(0,this.options.items)).show()):this.shown?this.hide():this},matcher:function(a){var b=this.displayText(a);return~b.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){for(var b,c=[],d=[],e=[];b=a.shift();){var f=this.displayText(b);f.toLowerCase().indexOf(this.query.toLowerCase())?~f.indexOf(this.query)?d.push(b):e.push(b):c.push(b)}return c.concat(d,e)},highlighter:function(b){var c,d,e,f,g,h=a("
      "),i=this.query,j=b.toLowerCase().indexOf(i.toLowerCase());if(c=i.length,0===c)return h.text(b).html();for(;j>-1;)d=b.substr(0,j),e=b.substr(j,c),f=b.substr(j+c),g=a("").text(e),h.append(document.createTextNode(d)).append(g),b=f,j=b.toLowerCase().indexOf(i.toLowerCase());return h.append(document.createTextNode(b)).html()},render:function(b){var c=this,d=this,e=!1;return b=a(b).map(function(b,f){var g=d.displayText(f);return b=a(c.options.item).data("value",f),b.find("a").html(c.highlighter(g)),g==d.$element.val()&&(b.addClass("active"),d.$element.data("active",f),e=!0),b[0]}),this.autoSelect&&!e&&(b.first().addClass("active"),this.$element.data("active",b.first().data("value"))),this.$menu.html(b),this},displayText:function(a){return a.name||a},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("focus",a.proxy(this.focus,this)).on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",a.proxy(this.keydown,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this)).on("mouseleave","li",a.proxy(this.mouseleave,this))},destroy:function(){this.$element.data("typeahead",null),this.$element.data("active",null),this.$element.off("focus").off("blur").off("keypress").off("keyup"), this.eventSupported("keydown")&&this.$element.off("keydown"),this.$menu.remove()},eventSupported:function(a){var b=a in this.$element;return b||(this.$element.setAttribute(a,"return;"),b="function"==typeof this.$element[a]),b},move:function(a){if(this.shown){switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:if(a.shiftKey)return;a.preventDefault(),this.prev();break;case 40:if(a.shiftKey)return;a.preventDefault(),this.next()}a.stopPropagation()}},keydown:function(b){this.suppressKeyPressRepeat=~a.inArray(b.keyCode,[40,38,9,13,27]),this.shown||40!=b.keyCode?this.move(b):this.lookup()},keypress:function(a){this.suppressKeyPressRepeat||this.move(a)},keyup:function(a){switch(a.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},focus:function(a){this.focused||(this.focused=!0,this.options.showHintOnFocus&&this.lookup(""))},blur:function(a){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(a){a.stopPropagation(),a.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(b){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")},mouseleave:function(a){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var c=a.fn.typeahead;a.fn.typeahead=function(c){var d=arguments;return"string"==typeof c&&"getActive"==c?this.data("active"):this.each(function(){var e=a(this),f=e.data("typeahead"),g="object"==typeof c&&c;f||e.data("typeahead",f=new b(this,g)),"string"==typeof c&&(d.length>1?f[c].apply(f,Array.prototype.slice.call(d,1)):f[c]())})},a.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
    • ',minLength:1,scrollHeight:0,autoSelect:!0,afterSelect:a.noop,addItem:!1,delay:0},a.fn.typeahead.Constructor=b,a.fn.typeahead.noConflict=function(){return a.fn.typeahead=c,this},a(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);c.data("typeahead")||c.typeahead(c.data())})}),function(a){"use strict";function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define(f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(a){"use strict";function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define(["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){"use strict";function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define(function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){"use strict";var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a){"use strict";function b(a){if(a){if("string"==typeof d[a])return a;a=a.charAt(0).toUpperCase()+a.slice(1);for(var b,e=0,f=c.length;f>e;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define(function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a,b){"use strict";function c(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function d(){}function e(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=h.length;c>b;b++){var d=h[b];a[d]=0}return a}function f(b){function d(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||g("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=b("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var f=document.body||document.documentElement;f.appendChild(e);var h=j(e);l=200===c(h.width),f.removeChild(e)}}}function f(a){if(d(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var b=j(a);if("none"===b.display)return e();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var g=f.isBorderBox=!(!k||!b[k]||"border-box"!==b[k]),m=0,n=h.length;n>m;m++){var o=h[m],p=b[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=g&&l,y=c(b.width);y!==!1&&(f.width=y+(x?0:r+v));var z=c(b.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return f}var g="undefined"==typeof console?d:function(a){console.error(a)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define(["get-style-property/get-style-property"],f):"object"==typeof exports?module.exports=f(require("desandro-get-style-property")):a.getSize=f(a.getStyleProperty)}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;bb;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){"use strict";function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){"use strict";var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}),!function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;i>h;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){ b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;be;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a,b){function c(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function d(){}function e(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=h.length;c>b;b++){var d=h[b];a[d]=0}return a}function f(b){function d(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||g("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=b("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var f=document.body||document.documentElement;f.appendChild(e);var h=j(e);l=200===c(h.width),f.removeChild(e)}}}function f(a){if(d(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var b=j(a);if("none"===b.display)return e();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var g=f.isBorderBox=!(!k||!b[k]||"border-box"!==b[k]),m=0,n=h.length;n>m;m++){var o=h[m],p=b[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=g&&l,y=c(b.width);y!==!1&&(f.width=y+(x?0:r+v));var z=c(b.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return f}var g="undefined"==typeof console?d:function(a){console.error(a)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],f):"object"==typeof exports?module.exports=f(require("desandro-get-style-property")):a.getSize=f(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){"use strict";function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){"use strict";function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){"use strict";function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=b(a.Outlayer))}(window,function(a){"use strict";function b(){a.Item.apply(this,arguments)}b.prototype=new a.Item,b.prototype._create=function(){this.id=this.layout.itemGUID++,a.Item.prototype._create.call(this),this.sortData={}},b.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var a=this.layout.options.getSortData,b=this.layout._sorters;for(var c in a){var d=b[c];this.sortData[c]=d(this.element,this)}}};var c=b.prototype.destroy;return b.prototype.destroy=function(){c.apply(this,arguments),this.css({display:""})},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=b(a.getSize,a.Outlayer))}(window,function(a,b){"use strict";function c(a){this.isotope=a,a&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}return function(){function a(a){return function(){return b.prototype[a].apply(this.isotope,arguments)}}for(var d=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],e=0,f=d.length;f>e;e++){var g=d[e];c.prototype[g]=a(g)}}(),c.prototype.needsVerticalResizeLayout=function(){var b=a(this.isotope.element),c=this.isotope.size&&b;return c&&b.innerHeight!=this.isotope.size.innerHeight},c.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},c.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},c.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},c.prototype.getSegmentSize=function(a,b){var c=a+b,d="outer"+b;if(this._getMeasurement(c,d),!this[c]){var e=this.getFirstItemSize();this[c]=e&&e[d]||this.isotope.size["inner"+b]}},c.prototype.getFirstItemSize=function(){var b=this.isotope.filteredItems[0];return b&&b.element&&a(b.element)},c.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},c.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},c.modes={},c.create=function(a,b){function d(){c.apply(this,arguments)}return d.prototype=new c,b&&(d.options=b),d.prototype.namespace=a,c.modes[a]=d,d},c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],b):"object"==typeof exports?module.exports=b(require("../layout-mode"),require("masonry-layout")):b(a.Isotope.LayoutMode,a.Masonry)}(window,function(a,b){"use strict";function c(a,b){for(var c in b)a[c]=b[c];return a}var d=a.create("masonry"),e=d.prototype._getElementOffset,f=d.prototype.layout,g=d.prototype._getMeasurement;c(d.prototype,b.prototype),d.prototype._getElementOffset=e,d.prototype.layout=f,d.prototype._getMeasurement=g;var h=d.prototype.measureColumns;d.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)};var i=d.prototype._manageStamp;return d.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,i.apply(this,arguments)},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows");return b.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},b.prototype._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0});return b.prototype._resetLayout=function(){this.y=0},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},b.prototype._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(c,d,e,f,g,h){ -return b(a,c,d,e,f,g,h)}):"object"==typeof exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0,f=a.length;f>e;e++){var g=a[e],h=c.sortData[g],i=d.sortData[g];if(h>i||i>h){var j=void 0!==b[g]?b[g]:b,k=j?1:-1;return(h>i?1:-1)*k}}return 0}}var i=a.jQuery,j=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},k=document.documentElement,l=k.textContent?function(a){return a.textContent}:function(a){return a.innerText},m=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});m.Item=f,m.LayoutMode=g,m.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},m.prototype.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},m.prototype._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0,d=a.length;d>c;c++){var e=a[c];e.id=this.itemGUID++}return this._updateItemsSortData(a),a},m.prototype._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},m.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},m.prototype._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.prototype.arrange=function(a){function b(){d.reveal(c.needReveal),d.hide(c.needHide)}this.option(a),this._getIsInstant();var c=this._filter(this.items);this.filteredItems=c.matches;var d=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(b):b(),this._sort(),this._layout()},m.prototype._init=m.prototype.arrange,m.prototype._getIsInstant=function(){var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=a,a},m.prototype._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},m.prototype._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getFilterTest(b),g=0,h=a.length;h>g;g++){var i=a[g];if(!i.isIgnored){var j=f(i);j&&c.push(i),j&&i.isHidden?d.push(i):j||i.isHidden||e.push(i)}}return{matches:c,needReveal:d,needHide:e}},m.prototype._getFilterTest=function(a){return i&&this.options.isJQueryFiltering?function(b){return i(b.element).is(a)}:"function"==typeof a?function(b){return a(b.element)}:function(b){return d(b.element,a)}},m.prototype.updateSortData=function(a){var b;a?(a=e.makeArray(a),b=this.getItems(a)):b=this.items,this._getSorters(),this._updateItemsSortData(b)},m.prototype._getSorters=function(){var a=this.options.getSortData;for(var b in a){var c=a[b];this._sorters[b]=n(c)}},m.prototype._updateItemsSortData=function(a){for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.updateSortData()}};var n=function(){function a(a){if("string"!=typeof a)return a;var c=j(a).split(" "),d=c[0],e=d.match(/^\[(.+)\]$/),f=e&&e[1],g=b(f,d),h=m.sortDataParsers[c[1]];return a=h?function(a){return a&&h(g(a))}:function(a){return a&&g(a)}}function b(a,b){var c;return c=a?function(b){return b.getAttribute(a)}:function(a){var c=a.querySelector(b);return c&&l(c)}}return a}();m.sortDataParsers={parseInt:function(a){return parseInt(a,10)},parseFloat:function(a){return parseFloat(a)}},m.prototype._sort=function(){var a=this.options.sortBy;if(a){var b=[].concat.apply(a,this.sortHistory),c=h(b,this.options.sortAscending);this.filteredItems.sort(c),a!=this.sortHistory[0]&&this.sortHistory.unshift(a)}},m.prototype._mode=function(){var a=this.options.layoutMode,b=this.modes[a];if(!b)throw new Error("No layout mode: "+a);return b.options=this.options[a],b},m.prototype._resetLayout=function(){b.prototype._resetLayout.call(this),this._mode()._resetLayout()},m.prototype._getItemLayoutPosition=function(a){return this._mode()._getItemLayoutPosition(a)},m.prototype._manageStamp=function(a){this._mode()._manageStamp(a)},m.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},m.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},m.prototype.appended=function(a){var b=this.addItems(a);if(b.length){var c=this._filterRevealAdded(b);this.filteredItems=this.filteredItems.concat(c)}},m.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){this._resetLayout(),this._manageStamps();var c=this._filterRevealAdded(b);this.layoutItems(this.filteredItems),this.filteredItems=c.concat(this.filteredItems),this.items=b.concat(this.items)}},m.prototype._filterRevealAdded=function(a){var b=this._filter(a);return this.hide(b.needHide),this.reveal(b.matches),this.layoutItems(b.matches,!0),b.matches},m.prototype.insert=function(a){var b=this.addItems(a);if(b.length){var c,d,e=b.length;for(c=0;e>c;c++)d=b[c],this.element.appendChild(d.element);var f=this._filter(b).matches;for(c=0;e>c;c++)b[c].isLayoutInstant=!0;for(this.arrange(),c=0;e>c;c++)delete b[c].isLayoutInstant;this.reveal(f)}};var o=m.prototype.remove;return m.prototype.remove=function(a){a=e.makeArray(a);var b=this.getItems(a);o.call(this,a);var c=b&&b.length;if(c)for(var d=0;c>d;d++){var f=b[d];e.removeFrom(this.filteredItems,f)}},m.prototype.shuffle=function(){for(var a=0,b=this.items.length;b>a;a++){var c=this.items[a];c.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},m.prototype._noTransition=function(a){var b=this.options.transitionDuration;this.options.transitionDuration=0;var c=a.call(this);return this.options.transitionDuration=b,c},m.prototype.getFilteredItemElements=function(){for(var a=[],b=0,c=this.filteredItems.length;c>b;b++)a.push(this.filteredItems[b].element);return a},m}),function(a){a.fn.confirm=function(b){return"undefined"==typeof b&&(b={}),this.click(function(c){c.preventDefault();var d=a.extend({button:a(this)},b);a.confirm(d,c)}),this},a.confirm=function(b,c){if(!(a(".confirmation-modal").length>0)){var d={};if(b.button){var e={title:"title",text:"text","confirm-button":"confirmButton","cancel-button":"cancelButton","confirm-button-class":"confirmButtonClass","cancel-button-class":"cancelButtonClass","dialog-class":"dialogClass"};a.each(e,function(a,c){var e=b.button.data(a);e&&(d[c]=e)})}var f=a.extend({},a.confirm.options,{confirm:function(){var d=c&&("string"==typeof c&&c||c.currentTarget&&c.currentTarget.attributes.href.value);if(d)if(b.post){var e=a('
      ');a("body").append(e),e.submit()}else window.location=d},cancel:function(a){},button:null},d,b),g="";""!==f.title&&(g='");var h='",i=a(h);i.on("shown.bs.modal",function(){i.find(".btn-primary:first").focus()}),i.on("hidden.bs.modal",function(){i.remove()}),i.find(".confirm").click(function(){f.confirm(f.button)}),i.find(".cancel").click(function(){f.cancel(f.button)}),a("body").append(i),i.modal("show")}},a.confirm.options={text:"Are you sure?",title:"",confirmButton:"Yes",cancelButton:"Cancel",post:!1,confirmButtonClass:"btn-primary",cancelButtonClass:"btn-default",dialogClass:"modal-dialog"}}(jQuery),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&"object"==typeof module.exports?require("jquery"):jQuery)}(function(a){function b(){if(!a.contains(document.documentElement,this))return a(this).timeago("dispose"),this;var b=c(this),g=f.settings;return isNaN(b.datetime)||(0==g.cutoff||Math.abs(e(b.datetime))0)||f.isTime(b)&&b.attr("title")||b.attr("title",c)}return b.data("timeago")}function d(a){return f.inWords(e(a))}function e(a){return(new Date).getTime()-a.getTime()}a.timeago=function(b){return d(b instanceof Date?b:"string"==typeof b?a.timeago.parse(b):"number"==typeof b?new Date(b):a.timeago.datetime(b))};var f=a.timeago;a.extend(a.timeago,{settings:{refreshMillis:6e4,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:"any moment now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(b){function c(c,e){var f=a.isFunction(c)?c(e,b):c,g=d.numbers&&d.numbers[e]||e;return f.replace(/%d/i,g)}if(!this.settings.allowPast&&!this.settings.allowFuture)throw"timeago allowPast and allowFuture settings can not both be set to false.";var d=this.settings.strings,e=d.prefixAgo,f=d.suffixAgo;if(this.settings.allowFuture&&0>b&&(e=d.prefixFromNow,f=d.suffixFromNow),!this.settings.allowPast&&b>=0)return this.settings.strings.inPast;var g=Math.abs(b)/1e3,h=g/60,i=h/60,j=i/24,k=j/365,l=45>g&&c(d.seconds,Math.round(g))||90>g&&c(d.minute,1)||45>h&&c(d.minutes,Math.round(h))||90>h&&c(d.hour,1)||24>i&&c(d.hours,Math.round(i))||42>i&&c(d.day,1)||30>j&&c(d.days,Math.round(j))||45>j&&c(d.month,1)||365>j&&c(d.months,Math.round(j/30))||1.5>k&&c(d.year,1)||c(d.years,Math.round(k)),m=d.wordSeparator||"";return void 0===d.wordSeparator&&(m=" "),a.trim([e,l,f].join(m))},parse:function(b){var c=a.trim(b);return c=c.replace(/\.\d+/,""),c=c.replace(/-/,"/").replace(/-/,"/"),c=c.replace(/T/," ").replace(/Z/," UTC"),c=c.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),c=c.replace(/([\+\-]\d\d)$/," $100"),new Date(c)},datetime:function(b){var c=f.isTime(b)?a(b).attr("datetime"):a(b).attr("title");return f.parse(c)},isTime:function(b){return"time"===a(b).get(0).tagName.toLowerCase()}});var g={init:function(){var c=a.proxy(b,this);c();var d=f.settings;d.refreshMillis>0&&(this._timeagoInterval=setInterval(c,d.refreshMillis))},update:function(c){var d=f.parse(c);a(this).data("timeago",{datetime:d}),f.settings.localeTitle&&a(this).attr("title",d.toLocaleString()),b.apply(this)},updateFromDOM:function(){a(this).data("timeago",{datetime:f.parse(f.isTime(this)?a(this).attr("datetime"):a(this).attr("title"))}),b.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};a.fn.timeago=function(a,b){var c=a?g[a]:g.init;if(!c)throw new Error("Unknown function name '"+a+"' for timeago");return this.each(function(){c.call(this,b)}),this},document.createElement("abbr"),document.createElement("time")}),function(a){function b(a){return String(null===a||void 0===a?"":a)}function c(a){return b(a).replace(i,function(a){return h[a]})}var d={method:"GET",queryParam:"q",searchDelay:300,minChars:1,propertyToSearch:"name",jsonContainer:null,contentType:"json",excludeCurrent:!1,excludeCurrentParameter:"x",prePopulate:null,processPrePopulate:!1,hintText:"Type in a search term",noResultsText:"No results",searchingText:"Searching...",deleteText:"×",animateDropdown:!0,placeholder:null,theme:null,zindex:999,resultsLimit:null,enableHTML:!1,resultsFormatter:function(a){var b=a[this.propertyToSearch];return"
    • "+(this.enableHTML?b:c(b))+"
    • "},tokenFormatter:function(a){var b=a[this.propertyToSearch];return"
    • "+(this.enableHTML?b:c(b))+"

    • "},tokenLimit:null,tokenDelimiter:",",preventDuplicates:!1,tokenValue:"id",allowFreeTagging:!1,allowTabOut:!1,autoSelectFirstResult:!1,onResult:null,onCachedResult:null,onAdd:null,onFreeTaggingAdd:null,onDelete:null,onReady:null,idPrefix:"token-input-",disabled:!1},e={tokenList:"token-input-list",token:"token-input-token",tokenReadOnly:"token-input-token-readonly",tokenDelete:"token-input-delete-token",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"token-input-dropdown",dropdownItem:"token-input-dropdown-item",dropdownItem2:"token-input-dropdown-item2",selectedDropdownItem:"token-input-selected-dropdown-item",inputToken:"token-input-input-token",focused:"token-input-focused",disabled:"token-input-disabled"},f={BEFORE:0,AFTER:1,END:2},g={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUMPAD_ENTER:108,COMMA:188},h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},i=/[&<>"'\/]/g,j={init:function(b,c){var e=a.extend({},d,c||{});return this.each(function(){a(this).data("settings",e),a(this).data("tokenInputObject",new a.TokenList(this,b,e))})},clear:function(){return this.data("tokenInputObject").clear(),this},add:function(a){return this.data("tokenInputObject").add(a),this},remove:function(a){return this.data("tokenInputObject").remove(a),this},get:function(){return this.data("tokenInputObject").getTokens()},toggleDisabled:function(a){return this.data("tokenInputObject").toggleDisabled(a),this},setOptions:function(b){return a(this).data("settings",a.extend({},a(this).data("settings"),b||{})),this},destroy:function(){if(this.data("tokenInputObject")){this.data("tokenInputObject").clear();var a=this,b=this.parent();return b.empty(),a.show(),b.append(a),a}}};a.fn.tokenInput=function(a){return j[a]?j[a].apply(this,Array.prototype.slice.call(arguments,1)):j.init.apply(this,arguments)},a.TokenList=function(b,d,h){function i(d){return a(b).data("settings").enableHTML?d:c(d)}function j(c){"boolean"==typeof c?a(b).data("settings").disabled=c:a(b).data("settings").disabled=!a(b).data("settings").disabled,P.attr("disabled",a(b).data("settings").disabled),U.toggleClass(a(b).data("settings").classes.disabled,a(b).data("settings").disabled),R&&q(a(R),f.END),Q.attr("disabled",a(b).data("settings").disabled)}function k(){return null!==a(b).data("settings").tokenLimit&&N>=a(b).data("settings").tokenLimit?(P.hide(),void u()):void 0}function l(){if(L!==(L=P.val())){var a=U.width()-P.offset().left-U.offset().left;X.html(c(L)||c(h.placeholder)),P.width(Math.min(U.width(),Math.max(a,X.width()+30)))}}function m(){var c=a.trim(P.val()),d=c.split(a(b).data("settings").tokenDelimiter);a.each(d,function(c,d){if(d){a.isFunction(a(b).data("settings").onFreeTaggingAdd)&&(d=a(b).data("settings").onFreeTaggingAdd.call(Q,d));var e={};e[a(b).data("settings").tokenValue]=e[a(b).data("settings").propertyToSearch]=d,o(e)}})}function n(c){var d=a(a(b).data("settings").tokenFormatter(c)),e=c.readonly===!0;e&&d.addClass(a(b).data("settings").classes.tokenReadOnly),d.addClass(a(b).data("settings").classes.token).insertBefore(V),e||a(""+a(b).data("settings").deleteText+"").addClass(a(b).data("settings").classes.tokenDelete).appendTo(d).click(function(){return a(b).data("settings").disabled?void 0:(s(a(this).parent()),Q.change(),!1)});var f=c;return a.data(d.get(0),"tokeninput",c),M=M.slice(0,S).concat([f]).concat(M.slice(S)),S++,t(M,Q),N+=1,null!==a(b).data("settings").tokenLimit&&N>=a(b).data("settings").tokenLimit&&(P.hide(),u()),d}function o(c){var d=a(b).data("settings").onAdd;if(N>0&&a(b).data("settings").preventDuplicates){var e=null;if(U.children().each(function(){var b=a(this),d=a.data(b.get(0),"tokeninput");return d&&d[h.tokenValue]===c[h.tokenValue]?(e=b,!1):void 0}),e)return p(e),V.insertAfter(e),void I(P)}P.width(1),(null==a(b).data("settings").tokenLimit||NS&&f--,c.remove(),R=null,I(P),M=M.slice(0,f).concat(M.slice(f+1)),0==M.length&&P.attr("placeholder",h.placeholder),S>f&&S--,t(M,Q),N-=1,null!==a(b).data("settings").tokenLimit&&(P.show().val(""),I(P)),a.isFunction(e)&&e.call(Q,d)}function t(c,d){var e=a.map(c,function(c){return"function"==typeof a(b).data("settings").tokenValue?a(b).data("settings").tokenValue.call(this,c):c[a(b).data("settings").tokenValue]});d.val(e.join(a(b).data("settings").tokenDelimiter))}function u(){W.hide().empty(),T=null}function v(){W.css({position:"absolute",top:U.offset().top+U.outerHeight(!0),left:U.offset().left,width:U.width(),"z-index":a(b).data("settings").zindex}).show()}function w(){a(b).data("settings").searchingText&&(W.html("

      "+i(a(b).data("settings").searchingText)+"

      "),v())}function x(){a(b).data("settings").hintText&&(W.html("

      "+i(a(b).data("settings").hintText)+"

      "),v())}function y(a){return a.replace(Z,"\\$&")}function z(a,b){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+y(b)+")(?![^<>]*>)(?![^&;]+;)","gi"),function(a,b){return""+i(b)+""})}function A(a,b,c){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+y(b)+")(?![^<>]*>)(?![^&;]+;)","g"),z(b,c))}function B(c){if(a(b).data("settings").excludeCurrent){var d=a(b).data("tokenInputObject").getTokens(),e=[];d.length&&(a.each(c,function(c,f){var g=!0;a.each(d,function(c,d){return f[a(b).data("settings").propertyToSearch]==d[a(b).data("settings").propertyToSearch]?(g=!1,!1):void 0}),g&&e.push(f)}),c=e)}return c}function C(c,d){if(d=B(d),d&&d.length){W.empty();var e=a("