diff --git a/css/fonts/curlythemes.eot b/css/fonts/curlythemes.eot new file mode 100644 index 0000000..6ebf5fd Binary files /dev/null and b/css/fonts/curlythemes.eot differ diff --git a/css/fonts/curlythemes.svg b/css/fonts/curlythemes.svg new file mode 100644 index 0000000..1eb629c --- /dev/null +++ b/css/fonts/curlythemes.svg @@ -0,0 +1,51 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/css/fonts/curlythemes.ttf b/css/fonts/curlythemes.ttf new file mode 100644 index 0000000..c0353a9 Binary files /dev/null and b/css/fonts/curlythemes.ttf differ diff --git a/css/fonts/curlythemes.woff b/css/fonts/curlythemes.woff new file mode 100644 index 0000000..67443e3 Binary files /dev/null and b/css/fonts/curlythemes.woff differ diff --git a/css/lightbox.css b/css/lightbox.css new file mode 100644 index 0000000..bb5225c --- /dev/null +++ b/css/lightbox.css @@ -0,0 +1,206 @@ +/* line 11, ../sass/lightbox.sass */ +.lightboxOverlay { + position: absolute; + top: 0; + left: 0; + z-index: 9999; + background-color: black; + filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); + opacity: 0.8; + display: none; +} + +/* line 20, ../sass/lightbox.sass */ +.lightbox { + position: absolute; + left: 0; + width: 100%; + z-index: 10000; + text-align: center; + line-height: 0; + font-weight: normal; +} +/* line 28, ../sass/lightbox.sass */ +.lightbox .lb-image { + display: block; + height: auto; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -ms-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; +} +.lb-image{ + max-width: inherit; +} +/* line 32, ../sass/lightbox.sass */ +.lightbox a img { + border: none; +} + +/* line 35, ../sass/lightbox.sass */ +.lb-outerContainer { + position: relative; + background-color: white; + *zoom: 1; + width: 250px; + height: 250px; + margin: 0 auto; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + -ms-border-radius: 4px; + -o-border-radius: 4px; + border-radius: 4px; +} +/* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */ +.lb-outerContainer:after { + content: ""; + display: table; + clear: both; +} + +/* line 44, ../sass/lightbox.sass */ +.lb-container { + padding: 4px; +} + +/* line 47, ../sass/lightbox.sass */ +.lb-loader { + position: absolute; + top: 43%; + left: 0%; + height: 25%; + width: 100%; + text-align: center; + line-height: 0; +} + + +/* line 63, ../sass/lightbox.sass */ +.lb-nav { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + z-index: 10; +} + +/* line 71, ../sass/lightbox.sass */ +.lb-container > .nav { + left: 0; +} + +/* line 74, ../sass/lightbox.sass */ +.lb-nav a { + outline: none; +} + +/* line 77, ../sass/lightbox.sass */ +.lb-prev, .lb-next { + width: 49%; + height: 100%; + cursor: pointer; + /* Trick IE into showing hover */ + display: block; + position: relative; +} + +/* line 84, ../sass/lightbox.sass */ +.lb-prev { + left: 0; + float: left; +} +/* line 87, ../sass/lightbox.sass */ +.lb-prev:hover:after { + content: '\F104'; + font-family: 'FontAwesome'; + text-shadow: 0px 0px 3px #000000; + color: #fff; + font-size: 64px; + position: absolute; + top: 50%; + left: 10px; +} + +/* line 90, ../sass/lightbox.sass */ +.lb-next { + right: 0; + float: right; +} +/* line 93, ../sass/lightbox.sass */ +.lb-next:hover:after { + content: '\F105'; + font-family: 'FontAwesome'; + text-shadow: 0px 0px 3px #000000; + color: #fff; + font-size: 64px; + position: absolute; + top: 50%; + right: 10px; +} + +/* line 96, ../sass/lightbox.sass */ +.lb-dataContainer { + margin: 0 auto; + padding-top: 5px; + *zoom: 1; + width: 100%; + -moz-border-radius-bottomleft: 4px; + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; + -moz-border-radius-bottomright: 4px; + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; +} +/* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */ +.lb-dataContainer:after { + content: ""; + display: table; + clear: both; +} + +/* line 103, ../sass/lightbox.sass */ +.lb-data { + padding: 0 4px; + color: #bbbbbb; +} +/* line 106, ../sass/lightbox.sass */ +.lb-data .lb-details { + width: 85%; + float: left; + text-align: left; + line-height: 1.1em; +} +/* line 111, ../sass/lightbox.sass */ +.lb-data .lb-caption { + font-size: 13px; + font-weight: bold; + line-height: 1em; +} +/* line 115, ../sass/lightbox.sass */ +.lb-data .lb-number { + display: none !important; + clear: left; + padding-bottom: 1em; + font-size: 12px; + color: #999999; +} +/* line 121, ../sass/lightbox.sass */ +.lb-data .lb-close:after { + display: block; + float: right; + content: '\F00D'; + font-family: 'FontAwesome'; + margin-top: 10px; + font-size: 24px; + color: #fff; + outline: none; + cursor: pointer; +} +/* line 130, ../sass/lightbox.sass */ +.lb-data .lb-close:hover { + cursor: pointer; + filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); + opacity: 1; +} diff --git a/css/render.css.php b/css/render.css.php new file mode 100644 index 0000000..45bed2e --- /dev/null +++ b/css/render.css.php @@ -0,0 +1,303 @@ +_color_header = + new CurlyThemesColor( get_theme_mod( 'header_text_color', '#ffffff' ) ); + $this->_color_header_bg = + new CurlyThemesColor( get_theme_mod( 'header_shading_color', 'rgba(0,0,0, 0.55)' ) ); + */ + $curly_color_footer_text = + new CurlyThemesColor( get_theme_mod( 'footer_text_color', '#9C9996' ) ); + /** + $this->_color_footer_bg = + new CurlyThemesColor( get_theme_mod( 'footer_bg_color', '#0E0905' ) ); + */ + $curly_color_footer_link = + new CurlyThemesColor( get_theme_mod( 'footer_link_color', '#9C9996' ) ); + $curly_color_footer_title = + new CurlyThemesColor( get_theme_mod( 'footer_title_color', '#FFFFFF' ) ); + $curly_color_h1 = + new CurlyThemesColor( get_theme_mod( 'color_h1', '#1E1E1E' ) ); + $curly_color_h2 = + new CurlyThemesColor( get_theme_mod( 'color_h2', '#1E1E1E' ) ); + $curly_color_h3 = + new CurlyThemesColor( get_theme_mod( 'color_h3', '#1E1E1E' ) ); + $curly_color_h4 = + new CurlyThemesColor( get_theme_mod( 'color_h4', '#1E1E1E' ) ); + $curly_color_h5 = + new CurlyThemesColor( get_theme_mod( 'color_h5', '#1E1E1E' ) ); + $curly_color_h6 = + new CurlyThemesColor( get_theme_mod( 'color_h6', '#1E1E1E' ) ); + $curly_color_menu = + new CurlyThemesColor( get_theme_mod( 'color_menu_bg', '#C0392B' ) ); + $curly_color_menu_link = + new CurlyThemesColor( get_theme_mod( 'color_menu_text', '#FFFFFF' ) ); + $curly_color_menu_hover = + new CurlyThemesColor( get_theme_mod( 'color_menu_hover_text', '#E09C95' ) ); + $curly_color_submenu = + new CurlyThemesColor( get_theme_mod( 'color_submenu_bg', '#ffffff' ) ); + $curly_color_submenu_link = + new CurlyThemesColor( get_theme_mod( 'color_submenu_text', '#33332E' ) ); + $curly_color_submenu_hover = + new CurlyThemesColor( get_theme_mod( 'color_submenu_hover_text', '#c0392b' ) ); + +/* Shortcodes + ================================================= */ + $curly_css_output = null; + +/* Shortcodes - Accordion + ================================================= */ + $curly_css_output .= '.panel{ + border-bottom: 1px solid '.$curly_color_text->opacity(0.15).'; + } + footer .panel{ + border-bottom: 1px solid '.$curly_color_footer_text->opacity(0.15).'; + }'; + +/* Shortcodes - Button + ================================================= */ + $curly_css_output .= '.btn, + .btn:visited, + .btn:active, + .btn:focus, + input[type="button"], + input[type="submit"], + .button{ + background: '.$curly_color_primary.'; + color: '.$curly_color_primary->contrast().'; + } + .btn:hover, + input[type="button"]:hover, + input[type="submit"]:hover, + .button:hover{ + background: '.$curly_color_primary->darken().'; + color: '.$curly_color_primary->contrast().'; + }'; + +/* Shortcodes - Action Boxes + ================================================= */ + $curly_css_output .= '.action-box{ + background: '.$curly_color_text->opacity(0.075).'; + } + .action-box.style-1{ + border-color: '.$curly_color_text->opacity(0.25).'; + border-top-color: '.$curly_color_primary.'; + } + .action-box.style-2{ + border-left-color: '.$curly_color_primary.'; + } + .action-box.style-3{ + border-color: '.$curly_color_text->opacity(0.25).'; + } + .action-box.style-4{ + border-color: '.$curly_color_text->opacity(0.25).'; + } + .action-box.style-5{ + border-color: '.$curly_color_text->opacity(0.25).'; + }'; + +/* Shortcodes - Event Agenda + ================================================= */ + $curly_css_output .= '.event-agenda .row{ + border-bottom: 1px solid '.$curly_color_text->opacity(0.15).'; + } + .event-agenda .row:hover{ + background: '.$curly_color_text->opacity(0.05).'; + }'; + +/* Shortcodes - Box + ================================================= */ + $curly_css_output .= '.well{ + border-top: 3px solid '.$curly_color_text->opacity(0.25).'; + } + .well-1{ + border-top: 3px solid '.$curly_color_primary.' + } + .well-2:hover .fa{ + background-color: '.$curly_color_primary.'; + color: '.$curly_color_primary->contrast().' + } + .well-2:hover h3{ + border-color: '.$curly_color_primary.'; + color: '.$curly_color_primary.' + } + .well-3 .fa{ + border-color: '.$curly_color_text.'; + color: '.$curly_color_text.' + } + .well-3:hover .fa, + .well-3:hover h3{ + border-color: '.$curly_color_primary.'; + color: '.$curly_color_primary.' + } + .well-4:hover .fa{ + background-color: '.$curly_color_primary.'; + color: '.$curly_color_primary->contrast().' + } + .well-4:hover h3{ + border-color: '.$curly_color_primary.'; + color: '.$curly_color_primary.' + } + .well-5 .fa{ + background-color: '.$curly_color_text.'; + color: '.$curly_color_text->contrast().' + } + .well-5:hover .fa{ + background-color: '.$curly_color_primary.'; + color: '.$curly_color_primary->contrast().' + } + .well-5:hover h3{ + color: '.$curly_color_primary.' + } + .well-5 > div{ + background: '.$curly_color_text->opacity(0.075).'; + }'; + +/* Shortcodes - Slider + ================================================= */ + $curly_css_output .= '.carousel .carousel-control{ + background: '.$curly_color_text->opacity(0.45).'; + }'; + +/* Shortcodes - Divider + ================================================= */ + $curly_css_output .= '.divider.one { border-top: 1px solid '.$curly_color_text->opacity(0.25).'; height: 1px; } + .divider.two { border-top: 1px dotted '.$curly_color_text->opacity(0.25).'; height: 1px; } + .divider.three { border-top: 1px dashed '.$curly_color_text->opacity(0.25).'; height: 1px; } + .divider.four { border-top: 3px solid '.$curly_color_text->opacity(0.25) .'; height: 1px; } + .divider.fire { border-top: 1px solid '.$curly_color_text->opacity(0.25) .'; height: 1px; }'; + +/* Shortcodes - Tabs + ================================================= */ + $curly_css_output .= '.tab-content{ + border-bottom: 1px solid '.$curly_color_text->opacity(0.15).'; + border-top: 3px solid '.$curly_color_primary.'; + } + .nav-tabs .active>a, + .nav-tabs .active>a:hover, + .nav-tabs .active>a:focus{ + background: '.$curly_color_primary.' !important; + border-bottom: 1px solid red; + color: '.$curly_color_primary->contrast().' !important; + } + .nav-tabs li a:hover{ + background: '.$curly_color_text->opacity(0.07).'; + }'; + +/* Shortcodes - Toggle + ================================================= */ + $curly_css_output .= 'h6[data-toggle="collapse"] i{ + color: '.$curly_color_primary.'; + margin-right: 10px + }'; + +/* Shortcodes - Progress + ================================================= */ + $curly_css_output .= ' + .progress{ + background-color: '.$curly_color_text->opacity(0.1).'; + } + .progress .progress-bar-default{ + background-color: '.$curly_color_primary.'; + color: '.$curly_color_primary->contrast().'; + }'; + +/* Shortcodes - Blockquote + ================================================= */ + $curly_css_output .= 'blockquote{ + border-color: '.$curly_color_primary.'; + } + .blockquote i:before{ + color: '.$curly_color_link.'; + } + .blockquote cite{ + color: '.$curly_color_link.'; + } + .blockquote img{ + border: 5px solid '.$curly_color_text->opacity(0.2).'; + }'; + +/* Shortcodes - Testimonials + ================================================= */ + $curly_css_output .= '.testimonials blockquote{ + background: '.$curly_color_text->opacity(0.07).'; + } + .testimonials blockquote:before, + .testimonials cite{ color: '.$curly_color_primary.'; }'; + +/* Shortcodes - Lists + ================================================= */ + $curly_css_output .= '*[class*=\'list-\'] li:before{ + color: '.$curly_color_primary.'; + }'; + +/* Shortcodes - Person + ================================================= */ + $curly_css_output .= '.person img{ + border: 5px solid '.$curly_color_text->opacity(0.2).'; + }'; + +/* Shortcodes - Clients Carousel + ================================================= */ + $curly_css_output .= '.clients-carousel-container .next, + .clients-carousel-container .prev{ + background-color: '.$curly_color_text->opacity(0.5).'; + color: '.$curly_color_text->contrast().'; + } + .clients-carousel-container:hover .next, + .clients-carousel-container:hover .prev{ + background-color: '.$curly_color_primary.'; + color: '.$curly_color_primary->contrast().'; + }'; + +/* Shortcodes - Pricing Tables + ================================================= */ + $curly_css_output .= '.wl-pricing-table .content-column{ + background-color: '.$curly_color_text->opacity(0.05).'; + } + .wl-pricing-table .content-column h4 *:after, + .wl-pricing-table .content-column h4 *:before{ + border-top: 3px double '.$curly_color_text->opacity(0.2).'; + } + + .wl-pricing-table.light .content-column.highlight-column{ + background-color: '.$curly_color_primary.'; + color: '.$curly_color_primary->contrast().'; + } + .wl-pricing-table.light .content-column.highlight-column h3, + .wl-pricing-table.light .content-column.highlight-column h4{ + color: '.$curly_color_text->contrast().'; + } + .wl-pricing-table.light .content-column.highlight-column h4 *:after, + .wl-pricing-table.light .content-column.highlight-column h4 *:before{ + border-top: 3px double '.$curly_color_text->contrast(0.2).' + }'; + +/* Widget + ================================================= */ + $curly_css_output .= " + .recent-posts time{ + background-color: {$curly_color_text->contrast()}; + color: {$curly_color_text->opacity(0.5)} + } + .recent-posts time em{ + color: $curly_color_primary + } + "; +?> \ No newline at end of file diff --git a/css/sidebars.css b/css/sidebars.css new file mode 100644 index 0000000..7301ac8 --- /dev/null +++ b/css/sidebars.css @@ -0,0 +1,102 @@ +#sidebars-wrapper{ + font-family: 'Roboto'; + padding: 40px 0px 40px 40px; + max-width: 450px; + position: relative; + -webkit-transition: all 150ms ease-in; + -moz-transition: all 150ms ease-in; + -ms-transition: all 150ms ease-in; + -o-transition: all 150ms ease-in; + transition: all 150ms ease-in; + text-decoration: none; +} +#sidebars-wrapper h1, +#sidebars-wrapper h3{ + color: #444; +} +#sidebars-wrapper h3{ + margin-top: 80px; +} +#sidebars-wrapper input[type=text]{ + width: 100%; + box-shadow: none; + height: 34px; + line-height: 34px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + padding: 0 10px; + margin: 0; + font-size: 14px; +} +#sidebars-wrapper input[type=submit]{ + display: inline-block; + background: #DDD; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + color: #5E5E5E; + border: none; + height: 34px; + line-height: 34px; + outline: none; + padding: 0 30px; + margin: 8px 8px 0 0; + cursor: pointer; + text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.15); + font-size: 14px; + font-weight: bold; +} +#sidebars-wrapper form{ + position: relative; +} +#sidebars-wrapper #messages p{ + background: rgba(0, 0, 0, .055); + font-size: 12px; + padding: 10px 15px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + margin: 10px 0 0 0; + position: relative; +} +#sidebar-list{ + border-top: 1px solid #DDD; + border-bottom: 1px solid #FAFAFA; +} +#sidebar-list li{ + border-top: 1px solid #FAFAFA; + border-bottom: 1px solid #DDD; + padding: 8px 0; + margin: 0; + position: relative; +} +#sidebar-list li a{ + float: right; + display: inline-block; + background: #DDD; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + border: none; + height: 18px; + line-height: 18px; + outline: none; + padding: 0 10px; + cursor: pointer; + font-size: 11px; + text-decoration: none; + color: #444; +} +#sidebar-list li a:hover{ + background: #444; + color: #fff; +} +#sidebar-list code{ + background: none; + font-size: 11px; + padding: 0; + margin: 0; + position: absolute; + right: 80px; +} \ No newline at end of file diff --git a/css/slider-ios.css b/css/slider-ios.css new file mode 100644 index 0000000..6a8871e --- /dev/null +++ b/css/slider-ios.css @@ -0,0 +1,135 @@ +.wl-slider-ios { + /* defaults for resposive height container */ + position: relative; + width: 100%; + height: 0; + + /* 39% being the ratio we are maintaining + * calculated by looking at the image + * ratio: 400/1024 = ~0.39 */ + padding: 0 0 39% 0; +} + +.iosSlider { + width: 100%; + + /* this height ends up being your maximum height, + * if you want it to scale forever, set it to + * a very high number */ + height: 1500px; +} + +.iosSlider .slider { + width: 100%; + height: 100%; +} + +.iosSlider .slider .item { + float: left; + width: 100%; +} + +.iosSlider .slider .item img { + width: 100%; + height: auto; +} +.wl-slider-ios-container{ + display: block; + width: 100%; + height: auto; + +} +.iosSlider .slider .item .text1 { + position: absolute; + bottom: 0; + right: -100%; + opacity: 0; + margin-bottom: 8em; +} +.iosSlider .slider .item .text1 h3{ + padding: .2em .5em; + white-space: nowrap; + margin: 0; +} +.iosSlider .slider .item .text2 { + position: absolute; + bottom: 0; + right: -100%; + opacity: 0; + margin-bottom: 5em; +} +.iosSlider .slider .item .text2 h4 { + padding: .2em 1em; + white-space: nowrap; + margin: 0; +} + +.iosSlider .next, .iosSlider .prev{ + display: block; + background-repeat: no-repeat; + background-size: 100%; + width: 30px; + height: 50px; + position: absolute; + z-index: 3; + -webkit-transition: all 300ms ease; + -moz-transition: all 300ms ease; + -ms-transition: all 300ms ease; + -o-transition: all 300ms ease; + transition: all 300ms ease; + opacity: 0.5; + filter: alpha(opacity=50); +} +.iosSlider .next{ + +} +.iosSlider .prev{ + +} +.iosSlider .next:hover, .iosSlider .prev:hover{ + opacity: 1; + filter: alpha(opacity=100); +} +.iosSlider .next{ + background-position: 0 0; + right: -150px; +} +.iosSlider .next:hover:after, .iosSlider .prev:hover:after{ + content: attr(title); + padding: 2px 6px; + color: #fff; + position: absolute; + white-space: nowrap; + z-index: 20px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + -moz-box-shadow: 0px 0px 4px #222; + -webkit-box-shadow: 0px 0px 4px #222; + box-shadow: 0px 0px 4px #222; + background: rgba(0,0,0, .6); + -webkit-transition: all 300ms ease; + -moz-transition: all 300ms ease; + -ms-transition: all 300ms ease; + -o-transition: all 300ms ease; + transition: all 300ms ease; + font-size: .8em; + font-weight: bold; + text-transform: uppercase; + top: 30%; +} +.iosSlider .next:hover:after{ + right: 40px; +} +.iosSlider .prev:hover:after{ + left: 40px; +} +.iosSlider .prev{ + left: -150px; +} +.iosSlider:hover .next{ + right: 50px; +} +.iosSlider:hover .prev{ + left: 50px; +} diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..393a0a2 --- /dev/null +++ b/css/style.css @@ -0,0 +1,1010 @@ +@charset "UTF-8"; +/** + * Table of Contents: + * + * 8.0 - Shortcodes + * 8.1 - Accordion + * 8.2 - Slider + * 8.3 - Action Boxes + * 8.4 - Lists + * 8.5 - Buttons + * 8.6 - Toggle Box + * 8.7 - Clients Slider + * 8.8 - Columns + * 8.9 - Dividers + * 8.10 - Boxes + * 8.11 - Tabs + * 8.12 - Marker + * 8.13 - Drop cap + * 8.14 - Person + * 8.15 - Icons + * 8.16 - Zoomify + * 8.17 - Blockquote + * 8.18 - Testimonials + * 8.19 - Map Maker + * 8.20 - Pricing Table + * 8.21 - Event Agenda + * 8.22 - Countdown + * 8.23 - Alerts + * 8.24 - Progress Bar + * 8.25 - Full Width + * ----------------------------------------------------------------------------- + */ +/* Photo Frame */ +.photo-frame { + position: relative; + box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.25); + border: 4px solid #fff; + display: block; } + .photo-frame::before { + content: ""; + height: 100%; + width: 100%; + background: #fff; + border: 4px solid #fff; + position: absolute; + z-index: -1; + top: -5px; + left: -10px; + box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.25); + border-radius: 3px; + -webkit-transform: rotate(-2deg); + -ms-transform: rotate(-2deg); + transform: rotate(-2deg); + box-sizing: border-box; } + .photo-frame::after { + content: ""; + height: 100%; + width: 100%; + background: #fff; + border: 4px solid #fff; + position: absolute; + z-index: -1; + bottom: -3px; + right: -5px; + box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.25); + border-radius: 3px; + -webkit-transform: rotate(3deg); + -ms-transform: rotate(3deg); + transform: rotate(3deg); + box-sizing: border-box; } + .photo-frame img { + border-radius: 0; } + +/** + * 8.0 - Shortcodes + * ----------------------------------------------------------------------------- + */ +/** + * 8.1 - Accordion + * ----------------------------------------------------------------------------- + */ +.panel { + background: transparent; + margin: 0 !important; } + +.panel .accordion-toggle { + display: block; } + +.panel .accordion-toggle:before { + content: '\F056'; + font-family: 'FontAwesome'; + float: left; + margin-right: 10px; + font-weight: normal; + font-size: 14px; } + +.panel .accordion-toggle.collapsed:before { + content: '\F055' !important; } + +.panel-heading h6 { + line-height: 3em; } +.panel-heading a { + text-decoration: none; } + +.panel-body { + padding-bottom: 1rem; } + +.panel-group { + margin: 1.4rem 0; } + +/** + * 8.2 - Slider + * ----------------------------------------------------------------------------- + */ +.carousel { + margin-bottom: 20px; } + +.carousel-control { + width: 40px; + height: 40px; + line-height: 35px; + font-size: 45px; + border-radius: 300px; + display: none; } + +.carousel:hover .carousel-control { + display: block; } + +/** + * 8.3 - Action Boxes + * ----------------------------------------------------------------------------- + */ +.action-box { + padding: 20px; + margin: 0 0 20px 0; + border-radius: 3px; } + +.action-box h3 { + margin-top: 0; + margin-bottom: 10px; + line-height: 1em; } + +.action-box .btn:first-child { + float: right; } + +.action-box p:last-of-type { + margin-bottom: 0; } + +.action-box .btn:last-of-type { + margin-top: 20px; } + +.action-box.style-1 { + background: transparent; + border-width: 1px; + border-top-width: 3px; + border-style: solid; } + +.action-box.style-2 { + border-left-width: 3px; + border-left-style: solid; } + +.action-box.style-3 { + border-width: 3px; + border-style: solid; } + +.action-box.style-4 { + background: transparent; + border-width: 3px; + border-style: solid; } + +.action-box.style-5 { + background: transparent; + border-width: 1px; + border-style: solid; } + +/** + * 8.4 - Lists + * ----------------------------------------------------------------------------- + */ +.list-none ul { + list-style: none; + padding: 0 !important; } + +.list-none li { + margin-bottom: 0.5em; } + +*[class*='list-'] ul { + list-style: none; + padding: 0 0 0 20px; } + +*[class*='list-'] li:before { + font-family: 'FontAwesome'; + font-size: 14px; + margin: 0 10px 0 0; + display: inline-block; } + +.list-bullets ul, +.list-circle ul, +.list-square ul, +.list-crosslist ul, +.list-checklist ul, +.list-default-list ul { + padding: 0; } + +.list-bullets li:before { + content: '\F111'; } + +.list-circle li:before { + content: "ï„Œ"; } + +.list-square li:before { + content: ""; } + +.list-crosslist li:before { + content: "ï€"; } + +.list-checklist li:before { + content: '\F00C'; } + +.list-default-list li:before { + content: '\F178'; } + +.list-bullets li, +.list-circle li, +.list-square li, +.list-crosslist li, +.list-checklist li, +.list-default-list li { + padding-bottom: 0.5em; } + +/** + * 8.5 - Buttons + * ----------------------------------------------------------------------------- + */ +.btn, +input[type="button"], +input[type="submit"] { + border: none; + text-shadow: none; + border-radius: 3px; + outline: none !important; } + +.btn.btn-red { + color: #FFF; + background: #e74c3c; } + +.btn.btn-red:hover { + color: #FFF; + background: #c0392b; } + +.btn.btn-green { + color: #FFF; + background: #2ecc71; } + +.btn.btn-green:hover { + color: #FFF; + background: #27ae60; } + +.btn.btn-blue { + color: #FFF; + background: #3498db; } + +.btn.btn-blue:hover { + color: #FFF; + background: #2980b9; } + +.btn.btn-violet { + color: #FFF; + background: #9b59b6; } + +.btn.btn-violet:hover { + color: #FFF; + background: #8e44ad; } + +.btn.btn-navy { + color: #FFF; + background: #2c3e50; } + +.btn.btn-navy:hover { + color: #FFF; + background: #34495e; } + +.btn.btn-gray { + color: #FFF; + background: #bdc3c7; } + +.btn.btn-gray:hover { + color: #FFF; + background: #95a5a6; } + +/** + * 8.6 - Toggle Box + * ----------------------------------------------------------------------------- + */ +.toggle-box h6 { + cursor: pointer; + line-height: 1.425em; } + +.toggle-box .collapse { + padding: 0.5rem 0; } + +/** + * 8.7 - Clients Slider + * ----------------------------------------------------------------------------- + */ +.clients-carousel-container { + position: relative; + margin-bottom: 30px; + padding: 0 30px; + box-sizing: border-box; } + +.clients-carousel { + overflow: hidden; + padding: 0; } + +.clients-carousel ul { + margin: 0; + padding: 0; + list-style: none; + height: auto; } + +.caroufredsel_wrapper { + margin: 0 30px; } + +.clients-carousel ul li { + float: left; + text-align: center; + margin: 0; + padding: 0 5px; } + +.clients-carousel ul a { + padding: 1px; + display: block; + overflow: hidden; } + +.clients-carousel img { + -webkit-transition: opacity 160ms ease-in-out; + transition: opacity 160ms ease-in-out; + -webkit-backface-visibility: hidden; + -webkit-transform: rotate(0); + -ms-transform: rotate(0); + transform: rotate(0); + position: relative; + opacity: 0.4; + filter: alpha(opacity=40); } + +.clients-carousel img:hover { + opacity: 1; + filter: alpha(opacity=100); } + +.clients-carousel .next:after, +.clients-carousel .prev:after { + -webkit-transition: opacity 160ms ease-in-out; + transition: opacity 160ms ease-in-out; } + +.clients-carousel-container .controls { + position: absolute; + top: 50%; + margin-top: -12px; + width: 100%; + left: 0; } + +.clients-carousel-container .next, +.clients-carousel-container .prev { + position: absolute; + width: 24px; + height: 24px; + line-height: 24px; + text-align: center; + border-radius: 2px; } + +.clients-carousel-container .next { + right: 0; } + +/** + * 8.8 - Columns + * ----------------------------------------------------------------------------- + */ +.content-column { + float: left; + margin-right: 3.22555%; + margin-bottom: 40px; } + +.content-column.half { + width: 48.387224%; } + +.content-column.one-three { + width: 31.182966%; } + +.content-column.one-four { + width: 22.580837%; } + +.content-column.two-three { + width: 65.591482%; } + +.content-column.two-four { + width: 48.387226%; } + +.content-column.three-four { + width: 74.193611%; } + +.content-column.last { + margin-right: 0 !important; } + +.clear { + clear: both; } + +.clearfix { + clear: none !important; } + +@media (max-width: 992px) { + .content-column { + float: left; + width: 48.387224% !important; } } +@media (max-width: 768px) { + .content-column { + float: none; + width: 100% !important; + margin: 2rem 0 !important; } } +/** + * 8.9 - Dividers + * ----------------------------------------------------------------------------- + */ +.divider { + clear: both; + color: transparent; + height: 20px; + background-position: center center; + margin: 0 0 40px; + background-repeat: no-repeat; + border-bottom: none; } + +/** + * 8.10 - Boxes + * ----------------------------------------------------------------------------- + */ +.well { + padding: 35px 0 0 0; + border: none; + background: transparent; + box-shadow: none; + border-radius: 0px; + margin-bottom: 35px; } + +.well.well-2 { + padding: 0; + border-top: none; } + +.well.well-2 .fa { + margin-right: 10px; } + +.well.well-3 { + text-align: center; + padding: 0; + border-top: none; } + +.well.well-3 .fa { + margin-bottom: 0px; } + +.well.well-4 { + padding: 0 0 0 42px; + border-top: none; + position: relative; } + +.well.well-4 .fa { + position: absolute; + left: 0; } + +.well.well-5 { + text-align: center; + border-top: none; + position: relative; } + +.well.well-5 .fa { + position: absolute; + margin-left: -46px; } + +.well.well-5 > div { + padding: 40px 20px 20px; + margin-top: 40px; + border-radius: 3px; } + +.content-column .well { + margin-bottom: 0; } + +/** + * 8.11 - Tabs + * ----------------------------------------------------------------------------- + */ +.tabs-container { + margin-bottom: 20px; } + +.nav-tabs { + border: none !important; } + +.nav-tabs a { + border: none !important; } + +.nav-tabs .active > a, +.nav-tabs .active > a:hover, +.nav-tabs .active > a:focus { + background-color: transparent; } + +.tab-content { + padding: 20px 0; + margin-top: -2px; } + +.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { + border: none; } + +/** + * 8.12 - Marker + * ----------------------------------------------------------------------------- + */ +.label { + font-size: small; } + +/** + * 8.13 - Dropcap + * ----------------------------------------------------------------------------- + */ +.dropcap { + font-size: 40px; + float: left; + line-height: 1em; + min-width: 30px; + font-weight: bold; + display: inline-block; + margin: 0 5px 0px 0; } + +/** + * 8.14 - Person + * ----------------------------------------------------------------------------- + */ +.person.mini { + padding-left: 110px; + position: relative; } + +.person.mini img { + position: absolute; + left: 0; + top: 0; } + +.person img { + margin: 0 20px 20px 0; + width: 90px; + height: 90px; + border-radius: 300px; } + +.person p:first-child img { + border-radius: 300px; + width: 160px; + height: 160px; } + +.person h5 { + margin: 30px 0 0; } + +/** + * 8.15 - Icons + * ----------------------------------------------------------------------------- + */ +/** + * 8.16 - Zoomify + * ----------------------------------------------------------------------------- + */ +.zoom-picture:after { + content: '\F002'; + font-family: 'FontAwesome'; + text-shadow: 0px 0px 3px #000000; + color: #fff; + font-size: 18px; + position: absolute; + top: 10px; + right: 10px; } + +/** + * 8.17 - Blockquote + * ----------------------------------------------------------------------------- + */ +.blockquote { + border: none; + padding: 0 0 0 70px; + position: relative; } + +.blockquote i:before { + float: left; + margin-left: -70px; + display: inline-block; + position: absolute; + font-style: normal; + top: 0; } + +.blockquote img { + border-radius: 300px; + margin: 0 0 10px 10px; + width: 90px; + height: 90px; } + +.blockquote cite:before { + content: '\2014'; + margin-right: 10px; } + +.blockquote cite { + display: block; + font-weight: bold; + margin-top: 10px; } + +/** + * 8.18 - Testimonials + * ----------------------------------------------------------------------------- + */ +.testimonials { + margin-bottom: 20px; } + +.testimonials blockquote { + border-radius: 3px; + padding: 20px 20px 20px 60px; + border: none; + position: relative; + margin: 0; + font-size: 1em; + line-height: 1.4em; } + +.testimonials blockquote p { + font-size: 1em; + line-height: 1.4em; + margin: 0; } + +.testimonials blockquote p + p { + margin-top: 20px; } + +.testimonials blockquote:before { + content: '\F10D'; + font-family: 'FontAwesome'; + font-size: 26px; + line-height: 26px; + margin-left: -40px; + display: inline-block; + position: absolute; } + +.testimonials cite { + padding: 10px 0 10px 60px; + display: block; + font-weight: normal; } + +.testimonials cite:before { + content: '\2014'; + margin-right: 10px; } + +.testimonials blockquote i { + font-size: 30px; } + +.testimonials blockquote i:after, +.testimonials blockquote i:before { + margin: 0 10px 10px 0; } + +/** + * 8.19 - Map Maker + * ----------------------------------------------------------------------------- + */ +.map-container { + position: relative; + z-index: 1; } + +#map_controls { + list-style: none; + position: absolute; + right: 30px; + bottom: 30px; } + +#map_controls li { + margin: 5px; } + +/** + * 8.20 - Pricing Table + * ----------------------------------------------------------------------------- + */ +.wl-pricing-table { + text-align: center; + margin-bottom: 60px; + overflow: hidden; } + +.wl-pricing-table .pricing-footer a { + margin: 0; } + +.wl-pricing-table.light { + padding: 30px 0; } + +.wl-pricing-table.light .content-column { + margin: 0; + padding: 30px; + box-sizing: border-box; } + +.wl-pricing-table.light .half { + width: 50%; } + +.wl-pricing-table.light .one-three { + width: 33.33333%; } + +.wl-pricing-table.light .one-four { + width: 25%; } + +.wl-pricing-table.light .pricing-header { + position: relative; + margin-bottom: 10px; } + +.wl-pricing-table .pricing-header h3 { + margin: 0px 0 10px; } + +.wl-pricing-table h4 { + position: relative; + overflow: hidden; + margin: 0; + padding: 0; + line-height: 1em; } + +.wl-pricing-table h4 * { + position: relative; + font-weight: bold; + font-size: 42px !important; + line-height: 50px; + display: inline-block !important; + padding: 0; + margin: 0; + letter-spacing: -1px; } + +.wl-pricing-table h4 *:after, +.wl-pricing-table h4 *:before { + margin: 0px 15px; + position: absolute; + top: 50%; + content: ''; + width: 200em; + height: 0px; + display: block; } + +.wl-pricing-table h4 *:before { + right: 100%; } + +.wl-pricing-table h4 *:after { + left: 100%; } + +.wl-pricing-table .pricing-header em { + font-style: normal; + text-transform: uppercase; + opacity: 0.8; + font-weight: normal; } + +.wl-pricing-table.light span { + display: block; + padding: 2px 0; + margin-bottom: 10px; } + +.wl-pricing-table.light .pricing-footer { + padding: 30px 0 0; } + +.wl-pricing-table.light .highlight-column { + padding: 50px 30px; + margin-top: -20px; + position: relative; + z-index: 2; + border-radius: 3px; } + +.wl-pricing-table.light .content-column:first-child { + -webkit-border-top-left-radius: 3px; + -webkit-border-bottom-left-radius: 3px; + -moz-border-radius-topleft: 3px; + -moz-border-radius-bottomleft: 3px; + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; } + +.wl-pricing-table.light .content-column:last-child { + -webkit-border-top-right-radius: 3px; + -webkit-border-bottom-right-radius: 3px; + -moz-border-radius-topright: 3px; + -moz-border-radius-bottomright: 3px; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; } + +.wl-pricing-table.light .highlight-column:first-child, .wl-pricing-table.light .highlight-column:last-child { + box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.3); } + +.pricing-row h4 { + border-bottom: none; } + .pricing-row h4::after { + display: none; } + +/** + * 8.21 - Event Agenda + * ----------------------------------------------------------------------------- + */ +.event-agenda { + line-height: 1.425em; } + .event-agenda .event-agenda-day { + margin-top: 4rem; } + +.event-agenda-event span { + font-size: 0.9em; } + +.event-agenda .toggle-box { + margin-bottom: 0; } + +.event-agenda .row.event-agenda-day:hover { + background: transparent; } + +.event-agenda p { + margin-bottom: 0; } + +.event-agenda *[class*="col-"] { + padding: 8px 5px; } + +.event-agenda .event-agenda-day span { + line-height: 2em; } + +.event-agenda h3 { + margin: 0; } + +.event-agenda h6 { + margin: 0 0 0; } + +.event-agenda h6 + div.in { + margin: 0 0 0; } + +.event-agenda-event i.fa-clock-o { + margin-right: 5px; } + +.event-agenda-event i.fa-map-marker { + margin-left: 5px; } + +.event-agenda-day i.fa-calendar { + margin-right: 5px; } + +/** + * 8.22 - Countdown + * ----------------------------------------------------------------------------- + */ +.curly-counter { + margin-bottom: 20px; } + +#counter > div { + display: inline-block; + padding-right: 6%; + width: 20.5%; + max-width: 100px; + box-sizing: content-box; } + +#counter > div:last-child { + padding-right: 0; } + +.countdown_descr { + display: block; + border-top-style: solid; + border-top-width: 1px; + padding-top: 7px; } + +.countdown_amount { + font-size: 44px; + font-weight: bold; + padding-bottom: 7px; + display: block; + line-height: 44px; + height: auto; } + +/** + * 8.23 - Alerts + * ----------------------------------------------------------------------------- + */ +.alert .fa { + background: transparent; + border: none; + padding: 0; + margin: 0 0 30px 30px; + float: right; + outline: none; } + +.alert h1, +.alert h2, +.alert h3, +.alert h4, +.alert h5, +.alert h6 { + margin-bottom: 0; + margin-top: 10px; } + +.alert.alert-warning h1, +.alert.alert-warning h2, +.alert.alert-warning h3, +.alert.alert-warning h4, +.alert.alert-warning h5, +.alert.alert-warning h6, +.alert.alert-warning .fa::before { + color: #C09853; } + +.alert.alert-success h1, +.alert.alert-success h2, +.alert.alert-success h3, +.alert.alert-success h4, +.alert.alert-success h5, +.alert.alert-success h6, +.alert.alert-success .fa::before { + color: #468847; } + +.alert.alert-info h1, +.alert.alert-info h2, +.alert.alert-info h3, +.alert.alert-info h4, +.alert.alert-info h5, +.alert.alert-info h6, +.alert.alert-info .fa::before { + color: #3A87AD; } + +.alert.alert-danger h1, +.alert.alert-danger h2, +.alert.alert-danger h3, +.alert.alert-danger h4, +.alert.alert-danger h5, +.alert.alert-danger h6, +.alert.alert-danger .fa::before { + color: #B94A48; } + +/** + * 8.25 - FullWidth + * ----------------------------------------------------------------------------- + */ +.fullwidth-row .col-lg-12 *:last-child { + margin-bottom: 0; } + +/** + * 8.26 - Progress + * ----------------------------------------------------------------------------- + */ +.progress { + box-shadow: none; + height: 3rem; + line-height: 3rem; } + +.progress .progress-bar { + font-weight: bold; + box-shadow: none; + line-height: inherit; + height: inherit; } + +/** + * Recent Posts Widget + * ----------------------------------------------------------------------------- + */ +.custom_recent_posts .recent-posts { + list-style: none; + padding: 0; + margin: 0; } + .custom_recent_posts .recent-posts li { + padding: 0; + margin: 0 0 2rem 0; } + .custom_recent_posts .recent-posts li::before { + display: none; } + .custom_recent_posts .recent-posts li h6 { + margin-bottom: 0.5em; + margin-top: 0; } + .custom_recent_posts .recent-posts.type-thumbnail li { + padding: 20px 0 20px 100px; + margin: 0 0 1.4rem 0; + min-height: 80px; } + .custom_recent_posts .recent-posts.type-thumbnail li:hover .wp-post-image { + opacity: 1; } + .custom_recent_posts .recent-posts.type-thumbnail .wp-post-image { + max-width: 80px; + height: auto; + position: absolute; + left: 0; + top: 20px; + -webkit-transition: opacity 200ms; + transition: opacity 200ms; + opacity: 0; } + .custom_recent_posts .recent-posts.type-thumbnail time { + display: block; + width: 80px; + height: 80px; + position: absolute; + left: 0; + top: 20px; + text-align: center; + border-radius: 3px; } + .custom_recent_posts .recent-posts.type-thumbnail time span { + font-size: 2.5em; + display: block; + padding-top: 0.25em; + line-height: 1.2em; } + .custom_recent_posts .recent-posts.type-thumbnail time em { + font-style: normal; } + .custom_recent_posts .recent-posts.type-fullwidth .wp-post-image { + max-width: 100%; + height: auto; + margin-bottom: 1em; } + .custom_recent_posts .recent-posts.type-fullwidth time { + display: none; } + .custom_recent_posts .recent-posts .cols-1 { + width: 100%; } + .custom_recent_posts .recent-posts .cols-2 { + width: 50%; } + .custom_recent_posts .recent-posts .cols-3 { + width: 33.3333333%; } + .custom_recent_posts .recent-posts .cols-4 { + width: 25%; } + +@media (max-width: 992px) { + .custom_recent_posts .recent-posts .cols-1, + .custom_recent_posts .recent-posts .cols-2, + .custom_recent_posts .recent-posts .cols-3, + .custom_recent_posts .recent-posts .cols-4 { + width: 100%; } } diff --git a/css/style.scss b/css/style.scss new file mode 100644 index 0000000..68bb2ef --- /dev/null +++ b/css/style.scss @@ -0,0 +1,1056 @@ +/** + * Table of Contents: + * + * 8.0 - Shortcodes + * 8.1 - Accordion + * 8.2 - Slider + * 8.3 - Action Boxes + * 8.4 - Lists + * 8.5 - Buttons + * 8.6 - Toggle Box + * 8.7 - Clients Slider + * 8.8 - Columns + * 8.9 - Dividers + * 8.10 - Boxes + * 8.11 - Tabs + * 8.12 - Marker + * 8.13 - Drop cap + * 8.14 - Person + * 8.15 - Icons + * 8.16 - Zoomify + * 8.17 - Blockquote + * 8.18 - Testimonials + * 8.19 - Map Maker + * 8.20 - Pricing Table + * 8.21 - Event Agenda + * 8.22 - Countdown + * 8.23 - Alerts + * 8.24 - Progress Bar + * 8.25 - Full Width + * ----------------------------------------------------------------------------- + */ + +$screen-xs-max: 768px; +$screen-sm-max: 992px; + +/* Photo Frame */ +.photo-frame{ + position: relative; + box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.25); + border: 4px solid #fff; + display: block; + + &::before{ + content: ""; + height: 100%; width: 100%; + background: #fff; + border: 4px solid #fff; + position: absolute; + z-index: -1; + top: -5px; + left: -10px; + box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.25); + border-radius: 3px; + transform: rotate(-2deg); + box-sizing: border-box; + } + &::after{ + content: ""; + height: 100%; width: 100%; + background: #fff; + border: 4px solid #fff; + position: absolute; + z-index: -1; + bottom: -3px; + right: -5px; + box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.25); + border-radius: 3px; + transform: rotate(3deg); + box-sizing: border-box; + } + img{ + border-radius: 0; + } +} + +/** + * 8.0 - Shortcodes + * ----------------------------------------------------------------------------- + */ + +/** + * 8.1 - Accordion + * ----------------------------------------------------------------------------- + */ + +.panel{ + background: transparent; + margin: 0 !important; +} +.panel .accordion-toggle{ + display: block; +} +.panel .accordion-toggle:before{ + content: '\F056'; + font-family: 'FontAwesome'; + float: left; + margin-right: 10px; + font-weight: normal; + font-size: 14px; +} +.panel .accordion-toggle.collapsed:before{ + content: '\F055' !important; +} +.panel-heading { + h6{ + line-height: 3em; + } + a{ + text-decoration: none; + } +} +.panel-body{ + padding-bottom: 1rem; +} +.panel-group{ + margin: 1.4rem 0; +} + +/** + * 8.2 - Slider + * ----------------------------------------------------------------------------- + */ + +.carousel{ + margin-bottom: 20px; +} +.carousel-control{ + width: 40px; + height: 40px; + line-height: 35px; + font-size: 45px; + -webkit-border-radius: 300px; + -moz-border-radius: 300px; + border-radius: 300px; + display: none; +} +.carousel:hover .carousel-control{ + display: block; +} + +/** + * 8.3 - Action Boxes + * ----------------------------------------------------------------------------- + */ + +.action-box{ + padding: 20px; + margin: 0 0 20px 0; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.action-box h3{ + margin-top: 0; + margin-bottom: 10px; + line-height: 1em; +} +.action-box .btn:first-child{ + float: right; +} +.action-box p:last-of-type{ + margin-bottom: 0; +} +.action-box .btn:last-of-type{ + margin-top: 20px; +} +.action-box.style-1{ + background: transparent; + border-width: 1px; + border-top-width: 3px; + border-style: solid; +} +.action-box.style-2{ + border-left-width: 3px; + border-left-style: solid; +} +.action-box.style-3{ + border-width: 3px; + border-style: solid; +} +.action-box.style-4{ + background: transparent; + border-width: 3px; + border-style: solid; +} +.action-box.style-5{ + background: transparent; + border-width: 1px; + border-style: solid; +} + +/** + * 8.4 - Lists + * ----------------------------------------------------------------------------- + */ + +.list-none ul{ + list-style: none; + padding: 0 !important; +} +.list-none li{ + margin-bottom: 0.5em; +} +*[class*='list-'] ul{list-style: none; padding: 0 0 0 20px } +*[class*='list-'] li:before{ + font-family: 'FontAwesome'; + font-size: 14px; + margin: 0 10px 0 0; + display: inline-block; +} +.list-bullets ul, +.list-circle ul, +.list-square ul, +.list-crosslist ul, +.list-checklist ul, +.list-default-list ul{ + padding: 0; +} +.list-bullets li:before{ content: '\F111'; } +.list-circle li:before{ content: '\F10C' } +.list-square li:before{ content: '\F0C8' } +.list-crosslist li:before{ content: '\F00D' } +.list-checklist li:before{ content: '\F00C'} +.list-default-list li:before{ content: '\F178'; } + +.list-bullets li, +.list-circle li, +.list-square li, +.list-crosslist li, +.list-checklist li, +.list-default-list li{ + padding-bottom: 0.5em; +} + + +/** + * 8.5 - Buttons + * ----------------------------------------------------------------------------- + */ + +.btn, +input[type="button"], +input[type="submit"]{ + border: none; + text-shadow: none; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + outline: none !important; +} +.btn.btn-red{ color: #FFF; background: #e74c3c } +.btn.btn-red:hover{ color: #FFF; background: #c0392b } +.btn.btn-green{color: #FFF; background: #2ecc71 } +.btn.btn-green:hover{ color: #FFF; background: #27ae60 } +.btn.btn-blue{ color: #FFF; background: #3498db } +.btn.btn-blue:hover{color: #FFF; background: #2980b9} +.btn.btn-violet{color: #FFF;background: #9b59b6} +.btn.btn-violet:hover{color: #FFF;background: #8e44ad} +.btn.btn-navy{color: #FFF;background: #2c3e50} +.btn.btn-navy:hover{color: #FFF;background: #34495e} +.btn.btn-gray{color: #FFF;background: #bdc3c7} +.btn.btn-gray:hover{color: #FFF;background: #95a5a6} + +/** + * 8.6 - Toggle Box + * ----------------------------------------------------------------------------- + */ + +.toggle-box h6{ + cursor: pointer; + line-height: 1.425em; +} +.toggle-box .collapse{ + padding: 0.5rem 0; +} + +/** + * 8.7 - Clients Slider + * ----------------------------------------------------------------------------- + */ + +.clients-carousel-container{ + position: relative; + margin-bottom: 30px; + padding: 0 30px; + box-sizing: border-box; +} +.clients-carousel { + overflow: hidden; + padding: 0; +} +.clients-carousel ul { + margin:0; + padding:0 ; + list-style:none; + height:auto; +} +.caroufredsel_wrapper{ + margin: 0 30px; +} +.clients-carousel ul li { + float: left; + text-align: center; + margin: 0; + padding: 0 5px; +} +.clients-carousel ul a{ + padding: 1px; + display: block; + overflow: hidden; +} +.clients-carousel img{ + -webkit-transition: opacity 160ms ease-in-out; + -moz-transition: opacity 160ms ease-in-out; + -ms-transition: opacity 160ms ease-in-out; + -o-transition: opacity 160ms ease-in-out; + transition: opacity 160ms ease-in-out; + -webkit-backface-visibility: hidden; + -webkit-transform: rotate(0); + -moz-transform: rotate(0); + transform: rotate(0); + position: relative; + opacity: 0.4; + filter:alpha(opacity=40); +} +.clients-carousel img:hover{ + opacity: 1; + filter:alpha(opacity=100); +} +.clients-carousel .next:after, +.clients-carousel .prev:after{ + -webkit-transition: opacity 160ms ease-in-out; + -moz-transition: opacity 160ms ease-in-out; + -ms-transition: opacity 160ms ease-in-out; + -o-transition: opacity 160ms ease-in-out; + transition: opacity 160ms ease-in-out; +} +.clients-carousel-container .controls{ + position: absolute; + top: 50%; + margin-top: -12px; + width: 100%; + left: 0; +} +.clients-carousel-container .next, +.clients-carousel-container .prev{ + position: absolute; + width: 24px; + height: 24px; + line-height: 24px; + text-align: center; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} +.clients-carousel-container .next { + right: 0; +} + +/** + * 8.8 - Columns + * ----------------------------------------------------------------------------- + */ + +.content-column { float:left; margin-right:3.22555%; margin-bottom: 40px } +.content-column.half { width: 48.387224% } +.content-column.one-three { width: 31.182966% } +.content-column.one-four { width: 22.580837% } +.content-column.two-three { width: 65.591482% } +.content-column.two-four { width: 48.387226% } +.content-column.three-four { width: 74.193611% } +.content-column.last { margin-right: 0 !important } +.clear { clear:both } +.clearfix { clear: none !important; } +@media (max-width: $screen-sm-max) { + .content-column{ + float: left; + width: 48.387224% !important; + } +} +@media (max-width: $screen-xs-max) { + .content-column{ + float: none; + width: 100% !important; + margin: 2rem 0 !important; + } +} + +/** + * 8.9 - Dividers + * ----------------------------------------------------------------------------- + */ + +.divider{ + clear:both; + color: transparent; + height: 20px; + background-position: center center; + margin: 0 0 40px; + background-repeat: no-repeat; + border-bottom: none; +} + +/** + * 8.10 - Boxes + * ----------------------------------------------------------------------------- + */ + +.well{ + padding: 35px 0 0 0; + border: none; + background: transparent; + -webkit-box-shadow: none; + box-shadow: none; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + border-radius: 0px; + margin-bottom: 35px; +} +.well.well-2{ + padding: 0; + border-top: none; +} +.well.well-2 .fa{ + margin-right: 10px; +} +.well.well-3{ + text-align: center; + padding: 0; + border-top: none; +} +.well.well-3 .fa{ + margin-bottom: 0px; +} +.well.well-4{ + padding: 0 0 0 42px; + border-top: none; + position: relative; +} +.well.well-4 .fa{ + position: absolute; + left: 0; +} +.well.well-5{ + text-align: center; + border-top: none; + position: relative; +} +.well.well-5 .fa{ + position: absolute; + margin-left: -46px; +} +.well.well-5 > div{ + padding: 40px 20px 20px; + margin-top: 40px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.content-column .well{ + margin-bottom: 0; +} + +/** + * 8.11 - Tabs + * ----------------------------------------------------------------------------- + */ + +.tabs-container{ + margin-bottom: 20px; +} +.nav-tabs{ + border: none !important; +} +.nav-tabs a{ + border: none !important; +} +.nav-tabs .active>a, +.nav-tabs .active>a:hover, +.nav-tabs .active>a:focus{ + background-color: transparent; +} +.tab-content{ + padding: 20px 0; + margin-top: -2px; +} +.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus{ + border: none; +} + +/** + * 8.12 - Marker + * ----------------------------------------------------------------------------- + */ + +.label{ + font-size: small; +} + +/** + * 8.13 - Dropcap + * ----------------------------------------------------------------------------- + */ + +.dropcap{ + font-size: 40px; + float: left; + line-height: 1em; + min-width: 30px; + font-weight: bold; + display: inline-block; + margin: 0 5px 0px 0; +} + +/** + * 8.14 - Person + * ----------------------------------------------------------------------------- + */ + +.person.mini{ + padding-left: 110px; + position: relative; +} +.person.mini img{ + position: absolute; + left: 0; + top: 0; +} +.person img{ + margin: 0 20px 20px 0; + width: 90px; + height: 90px; + -webkit-border-radius: 300px; + -moz-border-radius: 300px; + border-radius: 300px; +} +.person p:first-child img{ + -webkit-border-radius: 300px; + -moz-border-radius: 300px; + border-radius: 300px; + width: 160px; + height: 160px; +} +.person h5{ + margin: 30px 0 0; +} + +/** + * 8.15 - Icons + * ----------------------------------------------------------------------------- + */ + + +/** + * 8.16 - Zoomify + * ----------------------------------------------------------------------------- + */ + +.zoom-picture:after{ + content: '\F002'; + font-family: 'FontAwesome'; + text-shadow: 0px 0px 3px #000000; + color: #fff; + font-size: 18px; + position: absolute; + top: 10px; + right: 10px; +} + +/** + * 8.17 - Blockquote + * ----------------------------------------------------------------------------- + */ + +.blockquote{ + border:none; + padding: 0 0 0 70px; + position: relative; +} +.blockquote i:before{ + float: left; + margin-left: -70px; + display: inline-block; + position: absolute; + font-style: normal; + top: 0; +} +.blockquote img{ + border-radius: 300px; + margin: 0 0 10px 10px; + width: 90px; + height: 90px +} +.blockquote cite:before{ + content: '\2014'; + margin-right: 10px +} +.blockquote cite{ + display: block; + font-weight:bold; + margin-top: 10px +} + +/** + * 8.18 - Testimonials + * ----------------------------------------------------------------------------- + */ + +.testimonials{ + margin-bottom: 20px; +} +.testimonials blockquote{ + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + padding: 20px 20px 20px 60px; + border: none; + position: relative; + margin: 0; + font-size: 1em; + line-height: 1.4em; +} +.testimonials blockquote p{ + font-size: 1em; + line-height: 1.4em; + margin: 0; +} +.testimonials blockquote p + p{ + margin-top: 20px; +} +.testimonials blockquote:before{ + content: '\F10D'; + font-family: 'FontAwesome'; + font-size: 26px; + line-height: 26px; + margin-left: -40px; + display: inline-block; + position: absolute; +} +.testimonials cite{ + padding: 10px 0 10px 60px; + display: block; + font-weight: normal; +} +.testimonials cite:before{ + content: '\2014'; + margin-right: 10px +} +.testimonials blockquote i{ + font-size: 30px; +} +.testimonials blockquote i:after, +.testimonials blockquote i:before{ + margin: 0 10px 10px 0; +} + +/** + * 8.19 - Map Maker + * ----------------------------------------------------------------------------- + */ + +.map-container{ + position: relative; + z-index: 1; +} +#map_controls{ + list-style: none; + position: absolute; + right: 30px; + bottom: 30px; +} +#map_controls li{ + margin: 5px; +} + +/** + * 8.20 - Pricing Table + * ----------------------------------------------------------------------------- + */ + +.wl-pricing-table { + text-align:center; + margin-bottom: 60px; + overflow: hidden; +} +.wl-pricing-table .pricing-footer a{ + margin: 0; +} +.wl-pricing-table.light{ + padding: 30px 0; +} +.wl-pricing-table.light .content-column{ + margin: 0; + padding: 30px; + box-sizing: border-box; +} +.wl-pricing-table.light .half{ + width: 50%; +} +.wl-pricing-table.light .one-three{ + width: 33.33333%; +} +.wl-pricing-table.light .one-four{ + width: 25%; +} +.wl-pricing-table.light .pricing-header{ + position: relative; + margin-bottom: 10px; +} +.wl-pricing-table .pricing-header h3{ + margin: 0px 0 10px; +} +.wl-pricing-table h4{ + position: relative; + overflow: hidden; + margin: 0; + padding: 0; + line-height: 1em; +} +.wl-pricing-table h4 *{ + position: relative; + font-weight: bold; + font-size: 42px !important; + line-height: 50px; + display: inline-block !important; + padding: 0; + margin: 0; + letter-spacing: -1px; +} +.wl-pricing-table h4 *:after, +.wl-pricing-table h4 *:before{ + margin: 0px 15px; + position: absolute; + top: 50%; + content: ''; + width: 200em; + height: 0px; + display: block; +} +.wl-pricing-table h4 *:before{ + right: 100%; +} +.wl-pricing-table h4 *:after{ + left: 100%; +} + +.wl-pricing-table .pricing-header em{ + font-style: normal; + text-transform: uppercase; + opacity: 0.8; + font-weight: normal; +} +.wl-pricing-table.light span{ + display: block; + padding: 2px 0; + margin-bottom: 10px; +} +.wl-pricing-table.light .pricing-footer{ + padding: 30px 0 0; +} +.wl-pricing-table.light .highlight-column{ + padding: 50px 30px; + margin-top: -20px; + position: relative; + z-index: 2; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.wl-pricing-table.light .content-column:first-child{ + -webkit-border-top-left-radius: 3px; + -webkit-border-bottom-left-radius: 3px; + -moz-border-radius-topleft: 3px; + -moz-border-radius-bottomleft: 3px; + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} +.wl-pricing-table.light .content-column:last-child{ + -webkit-border-top-right-radius: 3px; + -webkit-border-bottom-right-radius: 3px; + -moz-border-radius-topright: 3px; + -moz-border-radius-bottomright: 3px; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} +.wl-pricing-table.light .highlight-column:first-child, .wl-pricing-table.light .highlight-column:last-child{ + -webkit-box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.3); + -moz-box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.3); + box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.3); +} +.pricing-row h4{ + border-bottom: none; + + &::after{ + display: none; + } +} + +/** + * 8.21 - Event Agenda + * ----------------------------------------------------------------------------- + */ + +.event-agenda{ + line-height: 1.425em; + + .event-agenda-day{ + margin-top: 4rem; + } +} +.event-agenda-event span{ + font-size: 0.9em; +} +.event-agenda .toggle-box{ + margin-bottom: 0; +} +.event-agenda .row.event-agenda-day:hover{ + background: transparent +} +.event-agenda p{ margin-bottom: 0 } +.event-agenda *[class*="col-"]{ padding: 8px 5px } +.event-agenda .event-agenda-day span{ + line-height: 2em; +} +.event-agenda h3{ margin: 0 } +.event-agenda h6{ margin: 0 0 0} +.event-agenda h6 + div.in{ margin: 0 0 0 } +.event-agenda-event i.fa-clock-o{ + margin-right: 5px; +} +.event-agenda-event i.fa-map-marker{ + margin-left: 5px; +} +.event-agenda-day i.fa-calendar{ + margin-right: 5px; +} + +/** + * 8.22 - Countdown + * ----------------------------------------------------------------------------- + */ + +.curly-counter{ + margin-bottom: 20px; +} +#counter > div{ + display: inline-block; + padding-right: 6%; + width: 20.5%; + max-width: 100px; + box-sizing: content-box; +} +#counter > div:last-child{ + padding-right: 0; +} +.countdown_descr{ + display: block; + border-top-style: solid; + border-top-width: 1px; + padding-top: 7px; +} +.countdown_amount{ + font-size: 44px; + font-weight: bold; + padding-bottom: 7px; + display: block; + line-height: 44px; + height: auto; +} + +/** + * 8.23 - Alerts + * ----------------------------------------------------------------------------- + */ + +.alert .fa{ + background: transparent; + border: none; + padding: 0; + margin: 0 0 30px 30px; + float: right; + outline: none; +} +.alert h1, +.alert h2, +.alert h3, +.alert h4, +.alert h5, +.alert h6{ + margin-bottom: 0; + margin-top: 10px; +} +.alert.alert-warning h1, +.alert.alert-warning h2, +.alert.alert-warning h3, +.alert.alert-warning h4, +.alert.alert-warning h5, +.alert.alert-warning h6, +.alert.alert-warning .fa::before{ + color: #C09853; +} +.alert.alert-success h1, +.alert.alert-success h2, +.alert.alert-success h3, +.alert.alert-success h4, +.alert.alert-success h5, +.alert.alert-success h6, +.alert.alert-success .fa::before{ + color: #468847; +} +.alert.alert-info h1, +.alert.alert-info h2, +.alert.alert-info h3, +.alert.alert-info h4, +.alert.alert-info h5, +.alert.alert-info h6, +.alert.alert-info .fa::before{ + color: #3A87AD; +} +.alert.alert-danger h1, +.alert.alert-danger h2, +.alert.alert-danger h3, +.alert.alert-danger h4, +.alert.alert-danger h5, +.alert.alert-danger h6, +.alert.alert-danger .fa::before{ + color: #B94A48; +} + +/** + * 8.25 - FullWidth + * ----------------------------------------------------------------------------- + */ + + .fullwidth-row .col-lg-12 *:last-child{ + margin-bottom: 0; + } + +/** + * 8.26 - Progress + * ----------------------------------------------------------------------------- + */ + +.progress{ + box-shadow: none; + height: 3rem; + line-height: 3rem; +} +.progress .progress-bar{ + font-weight: bold; + box-shadow: none; + line-height: inherit; + height: inherit; +} + + +/** + * Recent Posts Widget + * ----------------------------------------------------------------------------- + */ +.custom_recent_posts{ + .recent-posts{ + list-style: none; + padding: 0; + margin: 0; + + li{ + padding: 0; + margin: 0 0 2rem 0; + + &::before{ + display: none; + } + h6{ + margin-bottom: 0.5em; + margin-top: 0; + } + } + &.type-thumbnail{ + li{ + padding: 20px 0 20px 100px; + margin: 0 0 1.4rem 0; + min-height: 80px; + + &:hover{ + .wp-post-image{ + opacity: 1; + } + } + } + .wp-post-image{ + max-width: 80px; + height: auto; + position: absolute; + left: 0; + top: 20px; + transition: opacity 200ms; + opacity: 0; + } + time{ + display: block; + width: 80px; + height: 80px; + position: absolute; + left: 0; + top: 20px; + text-align: center; + border-radius: 3px; + + span{ + font-size: 2.5em; + display: block; + padding-top: 0.25em; + line-height: 1.2em; + } + em{ + font-style: normal + } + } + } + &.type-fullwidth{ + .wp-post-image{ + max-width: 100%; + height: auto; + margin-bottom: 1em; + } + time{ + display: none; + } + } + .cols-1{ + width: 100%; + } + .cols-2{ + width: 50%; + } + .cols-3{ + width: 33.3333333%; + } + .cols-4{ + width: 25%; + } + } +} +@media (max-width: $screen-sm-max) { + .custom_recent_posts{ + .recent-posts{ + .cols-1, + .cols-2, + .cols-3, + .cols-4{ + width: 100%; + } + } + } +} \ No newline at end of file diff --git a/css/wp-editor.css b/css/wp-editor.css new file mode 100644 index 0000000..20ecf2e --- /dev/null +++ b/css/wp-editor.css @@ -0,0 +1,305 @@ +@font-face { + font-family: 'curlythemes'; + src:url('fonts/curlythemes.eot?-9fe6bk'); + src:url('fonts/curlythemes.eot?#iefix-9fe6bk') format('embedded-opentype'), + url('fonts/curlythemes.woff?-9fe6bk') format('woff'), + url('fonts/curlythemes.ttf?-9fe6bk') format('truetype'), + url('fonts/curlythemes.svg?-9fe6bk#curlythemes') format('svg'); + font-weight: normal; + font-style: normal; +} + +[class^="curly-icon-"]:before, [class*=" curly-icon-"]:before { + font-family: 'curlythemes'; + font-size: 32px; + line-height: 56px; + top: 0px; + right: 10px; + position: absolute; + text-align: center; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + color: rgba(127, 140, 141, 0.45); + text-shadow: 0px 1px rgba(255, 255, 255, 1); + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +:hover[class^="curly-icon-"]:before, :hover[class*=" curly-icon-"]:before { + color: rgba(255, 255, 255, .45); + text-shadow: none; +} + +.curly-icon-half:before { + content: "\e605"; +} +.curly-icon-third:before { + content: "\e606"; +} +.curly-icon-quarter:before { + content: "\e607"; +} +.curly-icon-two-thirds:before { + content: "\e604"; +} +.curly-icon-two-quarters:before { + content: "\e602"; +} +.curly-icon-three-quarters:before { + content: "\e603"; +} +.curly-icon-clear:before { + content: "\e61f"; +} +.curly-icon-divider:before { + content: "\e61c"; +} +.curly-icon-button:before { + content: "\e621"; +} +.curly-icon-alert-box:before { + content: "\e624"; +} +.curly-icon-blockquote:before { + content: "\e623"; +} +.curly-icon-list:before { + content: "\e617"; +} +.curly-icon-abbreviation:before { + content: "\e627"; +} +.curly-icon-dropcap:before { + content: "\e61b"; +} +.curly-icon-highlighted:before { + content: "\e61a"; +} +.curly-icon-call-to-action:before { + content: "\e620"; +} +.curly-icon-accordion:before { + content: "\e626"; +} +.curly-icon-tabs:before { + content: "\e60d"; +} +.curly-icon-team:before { + content: "\e601"; +} +.curly-icon-testimonials:before { + content: "\e60c"; +} +.curly-icon-you-tube:before { + content: "\e609"; +} +.curly-icon-vimeo:before { + content: "\e60a"; +} +.curly-icon-toggle:before { + content: "\e60b"; +} +.curly-icon-slider:before { + content: "\e60e"; +} +.curly-icon-marker:before { + content: "\e615"; +} +.curly-icon-box:before { + content: "\e622"; +} +.curly-icon-progress-bar:before { + content: "\e612"; +} +.curly-icon-pricing-table:before { + content: "\e613"; +} +.curly-icon-icon:before { + content: "\e619"; +} +.curly-icon-clients:before { + content: "\e61e"; +} +.curly-icon-lightbox:before { + content: "\e618"; +} +.curly-icon-photo-frame:before { + content: "\e614"; +} +.curly-icon-zoomify:before { + content: "\e608"; +} +.curly-icon-agenda:before { + content: "\e625"; +} +.curly-icon-countdown:before { + content: "\e61d"; +} +.curly-icon-map:before { + content: "\e616"; +} +.curly-icon-weather:before { + content: "\e60f"; +} +.curly-icon-text-rotator:before { + content: "\e610"; +} +.curly-icon-qr-code:before { + content: "\e611"; +} +.curly-icon-full-width:before { + content: "\e628"; +} +.curly-icon-logo:before { + content: "\e600"; +} + + +#curly_shortcode_builder{ + background: rgba(0, 0, 0, .85); + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + z-index: 999999; + display: none; +} +#curly_shortcode_builder > div{ + background: #fff; + margin: 50px; + position: absolute; + padding: 30px; + box-sizing: border-box; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.5); + -moz-box-shadow: 1px 2px 6px rgba(0,0,0, 0.5); + -webkit-box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.5); + z-index: 9999999; +} +#curly_shortcodes{ + margin: 0; + padding: 0; +} +#curly_shortcodes li{ + display: inline-block; + float: left; + width: 20%; + box-sizing: border-box; + margin: 0; +} +#curly_shortcodes a{ + text-decoration: none; + font-weight: bold; + background: #ecf0f1; + display: block; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + padding: 10px 35px 10px 15px; + margin: 2px; + overflow: auto; + position: relative; + font-size: 14px; +} +#curly_shortcodes a:hover{ + background: #3498db; + color: #fff; +} +#curly_shortcodes a:hover small{ + color: #fff; +} +#curly_shortcodes a i{ + float: left; + height: 32px; + width: 32px; + line-height: 32px; + display: block; + margin-right: 10px; + color: #95a5a6; +} +#curly_shortcodes a small{ + display: block; + color: #95a5a6; + font-weight: normal; +} + + +.mce-i-curly{ + font: 400 20px/20px 'curlythemes' !important; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + text-align: center !important; + width: auto; + height: auto; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + +} +.mce-i-curly:before{ + margin: 0; + padding: 0; + display: block !important; + height: 20px; + width: 20px; + line-height: 20px; + overflow: hidden; + text-align: center; + content: "\e600"; +} + +/* Small devices (tablets, 768px and up) */ +@media (max-width: 767px) { + #curly_shortcode_builder{ + position: absolute; + } + #curly_shortcode_builder > div{ + margin: 0; + padding: 20px; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + border-radius: 0px; + } + + #curly_shortcodes li{ + width: 100%; + } +} + +@media (min-width: 768px) { + #curly_shortcode_builder{ + position: absolute; + } + #curly_shortcodes li{ + width: 33%; + } +} + +/* Medium devices (desktops, 992px and up) */ +@media (min-width: 992px) { + #curly_shortcodes li{ + width: 25%; + } +} + +/* Large devices (large desktops, 1200px and up) */ +@media (min-width: 1300px) { + #curly_shortcode_builder{ + position: fixed; + } + #curly_shortcodes li{ + width: 20%; + } +} + diff --git a/curly-extension.php b/curly-extension.php new file mode 100644 index 0000000..bbc68c0 --- /dev/null +++ b/curly-extension.php @@ -0,0 +1,677 @@ + __('[DEPRECATED]Pre-Footer Left' , 'CURLYTHEME'), + 'id' => 'pre_footer_sidebar_left', + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', + )); + + if ( function_exists('register_sidebar')) + register_sidebar(array( + 'name' => __('[DEPRECATED]Pre-Footer Right' , 'CURLYTHEME'), + 'id' => 'pre_footer_sidebar_right', + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', + )); + + if ( function_exists('register_sidebar')) + register_sidebar(array( + 'name' => __('[DEPRECATED]Footer Left Sidebar' , 'CURLYTHEME'), + 'id' => 'footer_sidebar_left', + 'before_widget' => '', + 'before_title' => '
', + 'after_title' => '
', + )); + + if ( function_exists('register_sidebar')) + register_sidebar(array( + 'name' => __('[DEPRECATED]Footer Center Sidebar' , 'CURLYTHEME'), + 'id' => 'footer_sidebar_center', + 'before_widget' => '', + 'before_title' => '
', + 'after_title' => '
', + )); + + if ( function_exists('register_sidebar')) + register_sidebar(array( + 'name' => __('[DEPRECATED]Footer Right Sidebar', 'CURLYTHEME'), + 'id' => 'footer_sidebar_right', + 'before_widget' => '', + 'before_title' => '
', + 'after_title' => '
', + )); + + if ( function_exists('register_sidebar')) + register_sidebar(array( + 'name' => '[DEPRECATED]Absolute Footer', + 'id' => 'absolute_footer', + 'before_widget' => '', + 'after_widget' => '', + 'before_title' => '', + 'after_title' => '', + )); + } + +/* Frontend Scripts + ================================================= */ + function load_shortcodes_scripts() { + if ( !is_admin() ) { + + // Register Scripts + wp_register_script('curly-carousel', plugins_url( '/js/jquery.carouFredSel-6.2.1-packed.js' , __FILE__ ), null, null, true); + wp_register_script('curly-fitvid', plugins_url( '/js/jquery.fitvids.js' , __FILE__ ), null, null, true); + wp_register_script('curly-picture-zoom', plugins_url( '/js/jquery.zoom-min.js' , __FILE__ ), null , null, true); + wp_register_script('curly-roundabout', plugins_url( '/js/jquery.roundabout.min.js', __FILE__ ), null, null, true); + wp_register_script('curly-easing', plugins_url( '/js/jquery.easing.1.3.js', __FILE__ ), null, null, true); + wp_register_script('curly-drag', plugins_url( '/js/jquery.event.drag-2.2.js', __FILE__ ), null, null, true); + wp_register_script('curly-drop', plugins_url( '/js/jquery.event.drop-2.2.js', __FILE__ ), null, null, true); + wp_register_script('curly-ios', plugins_url( '/js/jquery.iosslider.min.js', __FILE__ ), null, true); + wp_register_script('curly-countdown', plugins_url( '/js/jquery.countdown.min.js' , __FILE__ ), null, null, true); + + // Register Styles + wp_register_style('curly-ios-css', plugins_url( '/css/slider-ios.css', __FILE__ ), null, null, 'all'); + wp_register_style('curly-lightbox-css', plugins_url('/css/lightbox.css', __FILE__ ), null, null, 'all'); + + // Enqueue Scripts + wp_enqueue_script( + 'curly-shortcodes', + plugins_url( '/js/main.js' , __FILE__ ), + array( 'jquery', 'curly-main' ), + null, + true + ); + wp_enqueue_script('curly-lightbox', plugins_url( '/js/lightbox-2.6.min.js', __FILE__ ), 'jquery', null, true); + + // Enqueue Styles + wp_enqueue_style('curly-shortcodes', plugins_url( '/css/style.css' , __FILE__ ), array('curly-style') , null); + wp_enqueue_style('curly-lightbox-css'); + + // Dynamic CSS - $output + include('css/render.css.php'); + + /// Minify CSS + wp_add_inline_style( 'curly-shortcodes', apply_filters( 'curly_minify_css', htmlspecialchars_decode( $curly_css_output ) ) ); + } + } + +/* Shortcodes + ================================================= */ + function includes() { + include ( 'shortcodes/columns.php' ); + include ( 'shortcodes/dividers.php' ); + include ( 'shortcodes/buttons.php' ); + include ( 'shortcodes/alert.php' ); + include ( 'shortcodes/quotes.php' ); + include ( 'shortcodes/lists.php' ); + include ( 'shortcodes/abbr.php' ); + include ( 'shortcodes/dropcap.php' ); + include ( 'shortcodes/highlight.php' ); + include ( 'shortcodes/action.php' ); + include ( 'shortcodes/tabs.php' ); + include ( 'shortcodes/toggle-box.php' ); + include ( 'shortcodes/accordion.php' ); + include ( 'shortcodes/youtube.php' ); + include ( 'shortcodes/vimeo.php' ); + include ( 'shortcodes/boxes.php' ); + include ( 'shortcodes/marker.php' ); + include ( 'shortcodes/testimonials.php' ); + include ( 'shortcodes/slider.php' ); + include ( 'shortcodes/person.php' ); + include ( 'shortcodes/clear.php' ); + include ( 'shortcodes/progress.php' ); + include ( 'shortcodes/icon.php' ); + include ( 'shortcodes/client-list.php' ); + include ( 'shortcodes/pretty-photo.php' ); + include ( 'shortcodes/agenda.php' ); + include ( 'shortcodes/pricing.php' ); + include ( 'shortcodes/map-maker.php' ); + include ( 'shortcodes/picture-zoom.php' ); + include ( 'shortcodes/fullwidth.php' ); + include ( 'shortcodes/slider-ios.php' ); + include ( 'shortcodes/slider-roundabout.php' ); + include ( 'shortcodes/photo-frame.php' ); + include ( 'shortcodes/countdown.php' ); + } + + function widgets() { + // Widgets + include ('widgets/recent.php' ); + include ('widgets/search.php' ); + } + + +/* Add Shortcodes Buttons to TinyMCE + ================================================= */ + function add_button() { + if ( current_user_can('edit_posts') && current_user_can('edit_pages') ) + { + add_filter('mce_external_plugins', array($this, 'add_plugin')); + add_filter('mce_buttons', array($this, 'register_button')); + } + } + + function register_button($buttons) { + array_push($buttons, "curly"); + return $buttons; + } + + function add_plugin($plugin_array) { + $plugin_array['curly'] = plugins_url('/shortcodes/tinymce/buttons.js', __FILE__ ); + return $plugin_array; + } + + +/* Shortcode Sanitizer + ================================================= */ + function shortcode_sanitizer( $content ) { + $needle = join("|",array("column", '\/column', "list", "\/list", "tabs", "\/tabs", "tab", "\/tab", "toggle", "\/toggle", "accordion", "\/accordion", "testimonials", "\/testimonials", "testimonial", "\/testimonial", "clear", "divider", "button", "\/button", "blockquote", "\/blockquote", "highlight", "\/highlight", "call2action", "\/call2action", "toggle-box", "\/toggle-box", "slider", "slide", "youtube", "vimeo", "progress", "icon", "clients", "\/clients", "client", "\/client", "pretty-photo", "agenda", "\/agenda", "event-day", "\/event-day", "event", "\/event", "pricing-table", "\/pricing-table", "pricing-column", "\/pricing-column", "pricing-header", "\/pricing-header", "pricing-row", "\/pricing-row", "pricing-footer", "\/pricing-footer", "map-maker", "\/map-maker", "picture-zoom", "full-width-box", '\/full-width-box', "box", "\/box", "alert", "\/alert", "ios-slider", "ios-slide", "roundabout-slider", "roundabout-slide", "person", "\/person", "photo-frame", "\/photo-frame", "gallery", "countdown", "location", "simple-weather", "simple-text-rotator", "\/simple-text-rotator", "simple-qr")); + + $html = preg_replace("/(

)?\[($needle)(\s[^\]]+)?\](<\/p>|
)?/","[$2$3]",$content); + $html = preg_replace("/(

)?\[\/($needle)](<\/p>|
)/","[/$2]",$html); + + return $html; + } + + function activate_plugins() { + + include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); + + if ( ! is_plugin_active( 'simple-text-rotator/simple-text-rotator.php' ) ) { + include_once ('plugins/simple-text-rotator/simple-text-rotator.php' ); + } + + if ( ! is_plugin_active( 'simple-qr/simple-qr.php' ) ) { + include_once ('plugins/simple-qr/simple-qr.php' ); + } + } + +} + +class CurlyThemesShortcodeBuilder { + + public function __construct( $prefix = null ) { + + if ( !defined( 'THEMEPREFIX' ) ) { + define( 'THEMEPREFIX' , $prefix ); + } + + add_action('admin_footer', array($this, 'shortcode_builder')); + add_action('admin_enqueue_scripts', array($this, 'load_shortcodes_admin_scripts')); + + } + + function shortcode_builder() { + + $html = '

'; + + echo $html; + } + + function load_shortcodes_admin_scripts() { + + wp_enqueue_style('curly-wp-editor', plugins_url( '/css/wp-editor.css' , __FILE__ ), null, null); + wp_enqueue_script('curly-shortcode-builder', plugins_url( '/js/builder.js' , __FILE__ ), null, null); + + // Get Current Color Scheme + global $_wp_admin_css_colors; + $admin_colors = $_wp_admin_css_colors; + $color_scheme = $admin_colors[get_user_option('admin_color')]->colors; + + $color_scheme = ' + #curly_shortcodes a:hover{ + background: '.$color_scheme[3].' + } + '; + + wp_add_inline_style('curly-wp-editor', $color_scheme); + } +} + +class CurlySidebars { + + public function __construct( $prefix = null ) { + + if ( !defined( 'THEMEPREFIX' ) ) { + define( 'THEMEPREFIX' , $prefix ); + } + + add_action('admin_enqueue_scripts', array($this, 'load_scripts')); + add_action('admin_menu', array($this, 'add_submenu_page')); + add_action('wp_ajax_update_sidebars', array($this, 'update_sidebars')); + add_action('widgets_init', array($this, 'create_sidebars')); + + add_shortcode('sidebar', array($this, 'sidebar_shortcode')); + + } + + function load_scripts() { + + // Get Current Color Scheme + global $_wp_admin_css_colors; + $admin_colors = $_wp_admin_css_colors; + $color_scheme = $admin_colors[get_user_option('admin_color')]->colors; + + if (get_current_screen()->id == 'appearance_page_sidebars') { + + wp_enqueue_style('curly-google-font-roboto', 'http://fonts.googleapis.com/css?family=Roboto:400,300,700,900', true); + wp_enqueue_style('curly-sidebars-css', plugins_url( '/css/sidebars.css', __FILE__ ), null, null, null); + wp_enqueue_script('curly-sidebars-js', plugins_url( '/js/sidebars.js', __FILE__ ) , 'jquery', null, true); + + $js_data = array( + __('Remove','CURLYTHEME'), + __('Are you sure you want to delete this sidebar?','CURLYTHEME'), + __('Sidebar name cannot be empty. Please provide a valid name for your sidebar.','CURLYTHEME'), + __('You already have a sidebar with that name. Please provide a valid name for your sidebar.','CURLYTHEME'), + __('Your sidebar has been succesfully created.','CURLYTHEME'), + __('You currently have no sidebars created.
Use the form above to create your first sidebar.','CURLYTHEME') + ); + + wp_localize_script('curly-sidebars-js', 'js_data', $js_data); + + $color_scheme = ' + #sidebars-wrapper input[type=submit], + #sidebar-list li a:hover{ + background-color: '.$color_scheme[3].'; + color: #fff; + }'; + + wp_add_inline_style('curly-sidebars-css', $color_scheme); + } + } + + function update_sidebars() { + + $name = sanitize_text_field( $_POST['name'] ); + $id = sanitize_text_field( $_POST['id'] ); + $method = sanitize_text_field( $_POST['method'] ); + + $sidebars = self::get_sidebars(); + $count = self::get_sidebars_count() + 1; + + if ( $method == 'update' ) { + + if ( !empty($name) ) { + + if ( !$sidebars ) { + + $sidebars = array( $count => $name ); + $sidebars = json_encode($sidebars); + update_option( THEMEPREFIX . '_sidebars_list' , $sidebars ); + update_option( THEMEPREFIX . '_sidebars_list_count' , $count ); + + echo json_encode( array( $count, $name ) ); + + } else { + + if ( !in_array( $name , $sidebars ) ) { + + $sidebars[$count] = $name ; + $sidebars = json_encode($sidebars); + update_option( THEMEPREFIX . '_sidebars_list' , $sidebars ); + update_option( THEMEPREFIX . '_sidebars_list_count' , $count ); + + echo json_encode( array( $count, $name ) ); + + } else { + echo 'duplicate'; + } + } + + } else { + echo 'empty'; + } + + } + + if ( $method == 'delete' ) { + unset( $sidebars[$id] ); + $sidebars = json_encode($sidebars); + update_option( THEMEPREFIX . '_sidebars_list' , $sidebars ); + echo 'success'; + } + + die(); + } + + function add_submenu_page(){ + add_submenu_page( 'themes.php', __('Sidebars', 'CURLYTHEME'), __('Sidebars', 'CURLYTHEME'), 'manage_options', 'sidebars', array($this, 'add_submenu_page_cb')); + } + + function add_submenu_page_cb( $html = null ) { + + $sidebars = self::get_sidebars(); + + $html .= ''; + + echo $html; + } + + public static function get_sidebars() { + $sidebars = get_option( THEMEPREFIX . '_sidebars_list' ); + $sidebars = json_decode($sidebars, true); + + return $sidebars; + } + + function get_sidebars_count() { + $count = get_option( THEMEPREFIX . '_sidebars_list_count', 0 ); + + return $count; + } + + function create_sidebars() { + $sidebars = self::get_sidebars(); + if ( $sidebars ) { + foreach ($sidebars as $id => $name) { + register_sidebar( array( + 'name' => $name, + 'id' => 'sidebar_'.$id, + 'before_widget'=> '', + 'before_title' => '
', + 'after_title' => '
', + ) ); + } + } + + } + + public static function sidebar( $default = null ) { + + global $post; + + $sidebar = get_post_meta( $post->ID, THEMEPREFIX . '_sidebar', true); + + if ( $sidebar ) { + dynamic_sidebar( $sidebar ); + } else { + dynamic_sidebar( $default ); + } + } + + function sidebar_shortcode( $atts ) { + + ob_start(); + dynamic_sidebar( 'sidebar_'.$atts['id'] ); + $sidebar = ob_get_contents(); + ob_end_clean(); + + return $sidebar; + } + +} + +$sidebar = new CurlySidebars('eque'); +$extension = new CurlyThemesExtension('eque'); +$builder = new CurlyThemesShortcodeBuilder('eque'); + +?> \ No newline at end of file diff --git a/js/builder.js b/js/builder.js new file mode 100644 index 0000000..6e04171 --- /dev/null +++ b/js/builder.js @@ -0,0 +1,306 @@ +jQuery(document).ready(function(){ + "use strict"; + + // Bind Hide Builder + jQuery('#curly_shortcode_builder').on('click', function () { + curly_hide_builder(); + }); + + // Bind Shortcode Buttons + curly_bind_shortcode_buttons(); +}); + +// Show Builder +function curly_show_builder() { + jQuery('#curly_shortcode_builder').fadeIn(); + +} + +// Hide Builder +function curly_hide_builder() { + jQuery('#curly_shortcode_builder').fadeOut(); +} + +// Bind Shortcode Buttons +function curly_bind_shortcode_buttons() { + + // 1/2 Column + jQuery('#curly-sc-col-12').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[column size="1/2" margin="" last="no"]...[/column]'); + curly_hide_builder(); + }); + + // 1/3 Column + jQuery('#curly-sc-col-13').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[column size="1/3" margin="" last="no"]...[/column]'); + curly_hide_builder(); + }); + + // 1/4 Column + jQuery('#curly-sc-col-14').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[column size="1/4" margin="" last="no"]...[/column]'); + curly_hide_builder(); + }); + + // 2/3 Column + jQuery('#curly-sc-col-23').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[column size="2/3" margin="" last="no"]...[/column]'); + curly_hide_builder(); + }); + + // 2/4 Column + jQuery('#curly-sc-col-24').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[column size="2/4" margin="" last="no"]...[/column]'); + curly_hide_builder(); + }); + + // 3/4 Column + jQuery('#curly-sc-col-34').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[column size="3/4" margin="" last="no"]...[/column]'); + curly_hide_builder(); + }); + + // Full Width Box + jQuery('#curly-sc-fullwidth').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[full-width-box size="" image="" background="" background_position="" background_repeat="" background_size="" background_attachment="" border="" border_color="" padding_top="" padding_bottom=""]...[/full-width-box]'); + curly_hide_builder(); + }); + + // Featured Box + jQuery('#curly-sc-featured-box').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[box style="default, 1, 2, 3, 4, 5" icon="" title="" background=""]...[/box]'); + curly_hide_builder(); + }); + + // Call 2 Action + jQuery('#curly-sc-action').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[call2action title="" link="" button="" style="default, 1, 2, 3, 4, 5"]...[/call2action]'); + curly_hide_builder(); + }); + + // Divider + jQuery('#curly-sc-divider').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[divider style="1, 2, 3, 4, 5" before="" after=""]'); + curly_hide_builder(); + }); + + // Dropcap + jQuery('#curly-sc-dropcap').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[dropcap]D[/dropcap]'); + curly_hide_builder(); + }); + + // Abbreviation + jQuery('#curly-sc-abbr').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[abbr title=""]...[/abbr]'); + curly_hide_builder(); + }); + + // Featured Paragraph + jQuery('#curly-sc-highlight').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[highlight align="left, right, center" style="default, different"]...[/highlight]'); + curly_hide_builder(); + }); + + // Blockquote + jQuery('#curly-sc-blockquote').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[blockquote cite="Person Name" image=""]...[/blockquote]'); + curly_hide_builder(); + }); + + // Lists + jQuery('#curly-sc-lists').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[list type="default, bullets, square, circle, checklist, crosslist"][/list]'); + curly_hide_builder(); + }); + + // Text Rotator + jQuery('#curly-sc-text-rotator').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[simple-text-rotator animation="fade" separator="|" speed="2000"]Text 1 | Text 2 | Text 3[/simple-text-rotator]'); + curly_hide_builder(); + }); + + // Text Marker + jQuery('#curly-sc-text-marker').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[marker color="default, red, blue, orange, green, black"]...[/marker]'); + curly_hide_builder(); + }); + + // Alert Box + jQuery('#curly-sc-alert').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[alert color="yellow, red, blue, green"]...[/alert]'); + curly_hide_builder(); + }); + + // Clear + jQuery('#curly-sc-clear').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[clear]'); + curly_hide_builder(); + }); + + // Icon + jQuery('#curly-sc-icon').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[icon icon="" position="left, right" boxed="no" size="2x, 3x, 4x, 5x" color="" bg="" border=""]'); + curly_hide_builder(); + }); + + // Button + jQuery('#curly-sc-button').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[button link="#" color="default, red, green, blue, violet, navy, gray" size="mini, small, normal, large" title="Add a Button Title" target="_self" rel="nofollow"] Button Text [/button]'); + curly_hide_builder(); + }); + + // Accordion + jQuery('#curly-sc-accordion').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[accordion]
[toggle title="Some title" opened="yes"] Description [/toggle]
[toggle title="Some title" opened="no"] Description [/toggle]
[/accordion]'); + curly_hide_builder(); + }); + + // Tabs + jQuery('#curly-sc-tabs').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[tabs tab1="Title Tab 1" tab2="Title Tab 2"]
[tab id="1"] Content tab 1 [/tab]
[tab id="2"] Content tab 2 [/tab]
[/tabs]'); + curly_hide_builder(); + }); + + // Progress + jQuery('#curly-sc-progress').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[progress color="red, blue, green, orange" percent="50"]...[/progress]'); + curly_hide_builder(); + }); + + // Toggle + jQuery('#curly-sc-toggle').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[toggle-box title="Toggle Title"]...[/toggle-box]'); + curly_hide_builder(); + }); + + // Testimonials + jQuery('#curly-sc-testimonials').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[testimonials speed="5000" height="auto, equal"]
[testimonial name="" image=""] Testimonial Body [/testimonial]
[/testimonials]'); + curly_hide_builder(); + }); + + // Team / Person + jQuery('#curly-sc-team').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[person name="" position="" picture="" style="default, mini" facebook="" twitter="" linkedin="" email=""] Descriptive text [/person]'); + curly_hide_builder(); + }); + + // Clients + jQuery('#curly-sc-clients').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[clients]
[client name="" link="" image=""]
[client name="" link="" image=""]
[/clients]'); + curly_hide_builder(); + }); + + // Slider + jQuery('#curly-sc-slider').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[slider speed="5000" height="auto, equal"]
[slide] Slide 1 Content [/slide]
[slide] Slide 2 Content [/slide]
[/slider]'); + curly_hide_builder(); + }); + + // Countdown + jQuery('#curly-sc-countdown').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[countdown year="" month="" day="" hour="" minutes="" lang="" align="left, center, right"]'); + curly_hide_builder(); + }); + + // Google Map + jQuery('#curly-sc-map').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[map-maker latitude="" longitude="" type="roadmap" zoom="15" height="400"][/map-maker]'); + curly_hide_builder(); + }); + + // Vimeo + jQuery('#curly-sc-vimeo').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[vimeo id="(e.g. video id number 61589662)" width="700" height="390" fullwidth="yes"]'); + curly_hide_builder(); + }); + + // YouTube + jQuery('#curly-sc-youtube').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[youtube id="(e.g. video id number R4em3LKQCAQ)" width="700" height="390" fullwidth="yes"]'); + curly_hide_builder(); + }); + + // Zoomify + jQuery('#curly-sc-zoomify').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[picture-zoom image="image file"]'); + curly_hide_builder(); + }); + + // Photo Frame + jQuery('#curly-sc-photo-frame').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[photo-frame]...[/photo-frame]'); + curly_hide_builder(); + }); + + // Lightbox + jQuery('#curly-sc-lightbox').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[pretty-photo gallery="" title="" image="image file" visible="yes"]...[/pretty-photo]'); + curly_hide_builder(); + }); + + // Weather + jQuery('#curly-sc-weather').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[simple-weather location="London, Uk" latitude="" longitude="" days="2" night="no" units="metric" date="l"]'); + curly_hide_builder(); + }); + + // QR Code + jQuery('#curly-sc-qr').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[simple-qr size="" align="" type="" margin="" pointer_text="" pointer_color="" pointer_position=""]'); + curly_hide_builder(); + }); + + // Pricing Table + jQuery('#curly-sc-pricing').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[pricing-table]
[pricing-column size="1/2, 1/3, 1/4" last="no" highlight="no"]
[pricing-header currency="" price="" frequency=""] Title [/pricing-header]
[pricing-row] Description [/pricing-row]
[pricing-footer][button link="#" color="default, red, green, blue, violet, navy, gray" size="mini, small, large"] Button Text [/button][/pricing-footer]
[/pricing-column]
[/pricing-table]'); + curly_hide_builder(); + }); + + // Event Agenda + jQuery('#curly-sc-agenda').click(function (e) { + e.preventDefault(); + tinyMCE.activeEditor.execCommand( "mceInsertContent", false, '[agenda]
[event-day date=""] Day Name [/event-day]
[event time="" room=""] [/event]
[/agenda]'); + curly_hide_builder(); + }); +} \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-ar.js b/js/countdown-localisation/jquery.countdown-ar.js new file mode 100644 index 0000000..3272524 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-ar.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Arabic (عربي) initialisation for the jQuery countdown extension + Translated by Talal Al Asmari (talal@psdgroups.com), April 2009. */ +(function($) { + $.countdown.regional['ar'] = { + labels: ['سنوات','أشهر','أسابيع','أيام','ساعات','دقائق','ثواني'], + labels1: ['سنة','شهر','أسبوع','يوم','ساعة','دقيقة','ثانية'], + compactLabels: ['س', 'Ø´', 'Ø£', 'ÙŠ'], + whichLabels: null, + digits: ['Ù ', 'Ù¡', 'Ù¢', 'Ù£', 'Ù¤', 'Ù¥', 'Ù¦', 'Ù§', 'Ù¨', 'Ù©'], + timeSeparator: ':', isRTL: true}; + $.countdown.setDefaults($.countdown.regional['ar']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-bg.js b/js/countdown-localisation/jquery.countdown-bg.js new file mode 100644 index 0000000..c194813 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-bg.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Bulgarian initialisation for the jQuery countdown extension + * Written by Manol Trendafilov manol@rastermania.com (2010) */ +(function($) { + $.countdown.regional['bg'] = { + labels: ['Години', 'МеÑеца', 'Седмица', 'Дни', 'ЧаÑа', 'Минути', 'Секунди'], + labels1: ['Година', 'МеÑец', 'Седмица', 'Ден', 'ЧаÑ', 'Минута', 'Секунда'], + compactLabels: ['l', 'm', 'n', 'd'], compactLabels1: ['g', 'm', 'n', 'd'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['bg']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-bn.js b/js/countdown-localisation/jquery.countdown-bn.js new file mode 100644 index 0000000..68b5369 Binary files /dev/null and b/js/countdown-localisation/jquery.countdown-bn.js differ diff --git a/js/countdown-localisation/jquery.countdown-bs.js b/js/countdown-localisation/jquery.countdown-bs.js new file mode 100644 index 0000000..212c70c --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-bs.js @@ -0,0 +1,16 @@ +/* http://keith-wood.name/countdown.html + * Bosnian Latin initialisation for the jQuery countdown extension + * Written by Miralem Mehic miralem@mehic.info (2011) */ +(function($) { + $.countdown.regional['bs'] = { + labels: ['Godina', 'Mjeseci', 'Sedmica', 'Dana', 'Sati', 'Minuta', 'Sekundi'], + labels1: ['Godina', 'Mjesec', 'Sedmica', 'Dan', 'Sat', 'Minuta', 'Sekunda'], + labels2: ['Godine', 'Mjeseca', 'Sedmica', 'Dana', 'Sata', 'Minute', 'Sekunde'], + compactLabels: ['g', 'm', 't', 'd'], + whichLabels: function(amount) { + return (amount == 1 ? 1 : (amount >= 2 && amount <= 4 ? 2 : 0)); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['bs']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-ca.js b/js/countdown-localisation/jquery.countdown-ca.js new file mode 100644 index 0000000..2d65336 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-ca.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Catalan initialisation for the jQuery countdown extension + Written by Amanida Media www.amanidamedia.com (2010) */ +(function($) { + $.countdown.regional['ca'] = { + labels: ['Anys', 'Mesos', 'Setmanes', 'Dies', 'Hores', 'Minuts', 'Segons'], + labels1: ['Anys', 'Mesos', 'Setmanes', 'Dies', 'Hores', 'Minuts', 'Segons'], + compactLabels: ['a', 'm', 's', 'g'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['ca']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-cs.js b/js/countdown-localisation/jquery.countdown-cs.js new file mode 100644 index 0000000..5c3813c --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-cs.js @@ -0,0 +1,16 @@ +/* http://keith-wood.name/countdown.html + * Czech initialisation for the jQuery countdown extension + * Written by Roman Chlebec (creamd@c64.sk) (2008) */ +(function($) { + $.countdown.regional['cs'] = { + labels: ['Roků', 'MÄ›síců', 'Týdnů', 'Dní', 'Hodin', 'Minut', 'Sekund'], + labels1: ['Rok', 'MÄ›síc', 'Týden', 'Den', 'Hodina', 'Minuta', 'Sekunda'], + labels2: ['Roky', 'MÄ›síce', 'Týdny', 'Dny', 'Hodiny', 'Minuty', 'Sekundy'], + compactLabels: ['r', 'm', 't', 'd'], + whichLabels: function(amount) { + return (amount == 1 ? 1 : (amount >= 2 && amount <= 4 ? 2 : 0)); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['cs']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-cy.js b/js/countdown-localisation/jquery.countdown-cy.js new file mode 100644 index 0000000..e26c477 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-cy.js @@ -0,0 +1 @@ +/* http://keith-wood.name/countdown.html Welsh initialisation for the jQuery countdown extension Written by Gareth Jones | http://garethvjones.com | October 2011. */(function($) { $.countdown.regional['cy'] = { labels: ['Blynyddoedd', 'Mis', 'Wythnosau', 'Diwrnodau', 'Oriau', 'Munudau', 'Eiliadau'], labels1: ['Blwyddyn', 'Mis', 'Wythnos', 'Diwrnod', 'Awr', 'Munud', 'Eiliad'], compactLabels: ['b', 'm', 'w', 'd'], whichLabels: null, digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], timeSeparator: ':', isRTL: false}; $.countdown.setDefaults($.countdown.regional['cy']);})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-da.js b/js/countdown-localisation/jquery.countdown-da.js new file mode 100644 index 0000000..1cba376 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-da.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Danish initialisation for the jQuery countdown extension + Written by Buch (admin@buch90.dk). */ +(function($) { + $.countdown.regional['da'] = { + labels: ['Ã…r', 'MÃ¥neder', 'Uger', 'Dage', 'Timer', 'Minutter', 'Sekunder'], + labels1: ['Ã…r', 'MÃ¥nad', 'Uge', 'Dag', 'Time', 'Minut', 'Sekund'], + compactLabels: ['Ã…', 'M', 'U', 'D'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['da']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-de.js b/js/countdown-localisation/jquery.countdown-de.js new file mode 100644 index 0000000..fbe48f2 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-de.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + German initialisation for the jQuery countdown extension + Written by Samuel Wulf. */ +(function($) { + $.countdown.regional['de'] = { + labels: ['Jahre', 'Monate', 'Wochen', 'Tage', 'Stunden', 'Minuten', 'Sekunden'], + labels1: ['Jahr', 'Monat', 'Woche', 'Tag', 'Stunde', 'Minute', 'Sekunde'], + compactLabels: ['J', 'M', 'W', 'T'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['de']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-el.js b/js/countdown-localisation/jquery.countdown-el.js new file mode 100644 index 0000000..e09d29c --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-el.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Greek initialisation for the jQuery countdown extension + Written by Philip. */ +(function($) { + $.countdown.regional['el'] = { + labels: ['ΧÏόνια', 'Μήνες', 'Εβδομάδες', 'ΜέÏες', 'ÎÏες', 'Λεπτά', 'ΔευτεÏόλεπτα'], + labels1: ['ΧÏόνος', 'Μήνας', 'Εβδομάδα', 'ΗμέÏα', 'ÎÏα', 'Λεπτό', 'ΔευτεÏόλεπτο'], + compactLabels: ['ΧÏ.', 'Μην.', 'Εβδ.', 'Ημ.'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['el']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-es.js b/js/countdown-localisation/jquery.countdown-es.js new file mode 100644 index 0000000..f98b8f6 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-es.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Spanish initialisation for the jQuery countdown extension + * Written by Sergio Carracedo Martinez webmaster@neodisenoweb.com (2008) */ +(function($) { + $.countdown.regional['es'] = { + labels: ['Años', 'Meses', 'Semanas', 'Días', 'Horas', 'Minutos', 'Segundos'], + labels1: ['Año', 'Mes', 'Semana', 'Día', 'Hora', 'Minuto', 'Segundo'], + compactLabels: ['a', 'm', 's', 'g'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['es']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-et.js b/js/countdown-localisation/jquery.countdown-et.js new file mode 100644 index 0000000..261a3d4 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-et.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Estonian initialisation for the jQuery countdown extension + Written by Helmer */ +(function($) { + $.countdown.regional['et'] = { + labels: ['Aastat', 'Kuud', 'Nädalat', 'Päeva', 'Tundi', 'Minutit', 'Sekundit'], + labels1: ['Aasta', 'Kuu', 'Nädal', 'Päev', 'Tund', 'Minut', 'Sekund'], + compactLabels: ['a', 'k', 'n', 'p'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['et']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-fa.js b/js/countdown-localisation/jquery.countdown-fa.js new file mode 100644 index 0000000..1290a92 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-fa.js @@ -0,0 +1,14 @@ +/* http://keith-wood.name/countdown.html + Persian (Ùارسی) initialisation for the jQuery countdown extension + Written by Alireza Ziaie (ziai@magfa.com) Oct 2008. + Digits corrected by Hamed Ramezanian Feb 2013. */ +(function($) { + $.countdown.regional['fa'] = { + labels: ['‌سال', 'ماه', 'Ù‡Ùته', 'روز', 'ساعت', 'دقیقه', 'ثانیه'], + labels1: ['سال', 'ماه', 'Ù‡Ùته', 'روز', 'ساعت', 'دقیقه', 'ثانیه'], + compactLabels: ['س', 'Ù…', 'Ù‡', 'ر'], + whichLabels: null, + digits: ['Û°', 'Û±', 'Û²', 'Û³', 'Û´', 'Ûµ', 'Û¶', 'Û·', 'Û¸', 'Û¹'], + timeSeparator: ':', isRTL: true}; + $.countdown.setDefaults($.countdown.regional['fa']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-fi.js b/js/countdown-localisation/jquery.countdown-fi.js new file mode 100644 index 0000000..780cbe6 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-fi.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Finnish initialisation for the jQuery countdown extension + Written by Kalle Vänskä and Juha Suni (juhis.suni@gmail.com). Corrected by Olli. */ +(function($) { + $.countdown.regional['fi'] = { + labels: ['vuotta', 'kuukautta', 'viikkoa', 'päivää', 'tuntia', 'minuuttia', 'sekuntia'], + labels1: ['vuosi', 'kuukausi', 'viikko', 'päivä', 'tunti', 'minuutti', 'sekunti'], + compactLabels: ['v', 'kk', 'vk', 'pv'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['fi']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-fr.js b/js/countdown-localisation/jquery.countdown-fr.js new file mode 100644 index 0000000..2e28e07 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-fr.js @@ -0,0 +1,15 @@ +/* http://keith-wood.name/countdown.html + French initialisation for the jQuery countdown extension + Written by Keith Wood (kbwood{at}iinet.com.au) Jan 2008. */ +(function($) { + $.countdown.regional['fr'] = { + labels: ['Années', 'Mois', 'Semaines', 'Jours', 'Heures', 'Minutes', 'Secondes'], + labels1: ['Année', 'Mois', 'Semaine', 'Jour', 'Heure', 'Minute', 'Seconde'], + compactLabels: ['a', 'm', 's', 'j'], + whichLabels: function(amount) { + return (amount > 1 ? 0 : 1); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['fr']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-gl.js b/js/countdown-localisation/jquery.countdown-gl.js new file mode 100644 index 0000000..a2d9d9b --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-gl.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Galician initialisation for the jQuery countdown extension + * Written by Moncho Pena ramon.pena.rodriguez@gmail.com (2009) and Angel Farrapeira */ +(function($) { + $.countdown.regional['gl'] = { + labels: ['Anos', 'Meses', 'Semanas', 'Días', 'Horas', 'Minutos', 'Segundos'], + labels1: ['Ano', 'Mes', 'Semana', 'Día', 'Hora', 'Minuto', 'Segundo'], + compactLabels: ['a', 'm', 's', 'g'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['gl']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-gu.js b/js/countdown-localisation/jquery.countdown-gu.js new file mode 100644 index 0000000..576abe6 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-gu.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Gujarati initialization for the jQuery countdown extension + * Written by Sahil Jariwala jariwala.sahil@gmail.com (2012) */ +(function($) { + $.countdown.regional['gu'] = { + labels: ['વરà«àª·', 'મહિનો', 'અઠવાડિયા', 'દિવસ', 'કલાક', 'મિનિટ','સેકનà«àª¡'], + labels1: ['વરà«àª·','મહિનો','અઠવાડિયા','દિવસ','કલાક','મિનિટ', 'સેકનà«àª¡'], + compactLabels: ['વ', 'મ', 'અ', 'દિ'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['gu']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-he.js b/js/countdown-localisation/jquery.countdown-he.js new file mode 100644 index 0000000..d235086 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-he.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Hebrew initialisation for the jQuery countdown extension + * Translated by Nir Livne, Dec 2008 */ +(function($) { + $.countdown.regional['he'] = { + labels: ['שני×', 'חודשי×', 'שבועות', 'ימי×', 'שעות', 'דקות', 'שניות'], + labels1: ['שנה', 'חודש', 'שבוע', 'יו×', 'שעה', 'דקה', 'שנייה'], + compactLabels: ['שנ', '×—', 'שב', '×™'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: true}; + $.countdown.setDefaults($.countdown.regional['he']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-hr.js b/js/countdown-localisation/jquery.countdown-hr.js new file mode 100644 index 0000000..4fa618f --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-hr.js @@ -0,0 +1,16 @@ +/* http://keith-wood.name/countdown.html + * Croatian Latin initialisation for the jQuery countdown extension + * Written by Dejan Broz info@hqfactory.com (2011) */ +(function($) { + $.countdown.regional['hr'] = { + labels: ['Godina', 'Mjeseci', 'Tjedana', 'Dana', 'Sati', 'Minuta', 'Sekundi'], + labels1: ['Godina', 'Mjesec', 'Tjedan', 'Dan', 'Sat', 'Minuta', 'Sekunda'], + labels2: ['Godine', 'Mjeseca', 'Tjedna', 'Dana', 'Sata', 'Minute', 'Sekunde'], + compactLabels: ['g', 'm', 't', 'd'], + whichLabels: function(amount) { + return (amount == 1 ? 1 : (amount >= 2 && amount <= 4 ? 2 : 0)); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['hr']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-hu.js b/js/countdown-localisation/jquery.countdown-hu.js new file mode 100644 index 0000000..3cb55a1 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-hu.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Hungarian initialisation for the jQuery countdown extension + * Written by Edmond L. (webmond@gmail.com). */ +(function($) { + $.countdown.regional['hu'] = { + labels: ['Év', 'Hónap', 'Hét', 'Nap', 'Óra', 'Perc', 'Másodperc'], + labels1: ['Év', 'Hónap', 'Hét', 'Nap', 'Óra', 'Perc', 'Másodperc'], + compactLabels: ['É', 'H', 'Hé', 'N'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['hu']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-hy.js b/js/countdown-localisation/jquery.countdown-hy.js new file mode 100644 index 0000000..4529dc2 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-hy.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Armenian initialisation for the jQuery countdown extension + * Written by Artur Martirosyan. (artur{at}zoom.am) October 2011. */ +(function($) { + $.countdown.regional['hy'] = { + labels: ['ÕÕ¡Ö€Õ«', 'Ô±Õ´Õ«Õ½', 'Õ‡Õ¡Õ¢Õ¡Õ©', 'Õ•Ö€', 'ÔºÕ¡Õ´', 'ÕÕ¸ÕºÕ¥', 'ÕŽÕ¡Ö€Õ¯ÕµÕ¡Õ¶'], + labels1: ['ÕÕ¡Ö€Õ«', 'Ô±Õ´Õ«Õ½', 'Õ‡Õ¡Õ¢Õ¡Õ©', 'Õ•Ö€', 'ÔºÕ¡Õ´', 'ÕÕ¸ÕºÕ¥', 'ÕŽÕ¡Ö€Õ¯ÕµÕ¡Õ¶'], + compactLabels: ['Õ¿', 'Õ¡', 'Õ·', 'Ö…'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['hy']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-id.js b/js/countdown-localisation/jquery.countdown-id.js new file mode 100644 index 0000000..a205790 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-id.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Indonesian initialisation for the jQuery countdown extension + Written by Erwin Yonathan Jan 2009. */ +(function($) { + $.countdown.regional['id'] = { + labels: ['tahun', 'bulan', 'minggu', 'hari', 'jam', 'menit', 'detik'], + labels1: ['tahun', 'bulan', 'minggu', 'hari', 'jam', 'menit', 'detik'], + compactLabels: ['t', 'b', 'm', 'h'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['id']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-it.js b/js/countdown-localisation/jquery.countdown-it.js new file mode 100644 index 0000000..bf872f1 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-it.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Italian initialisation for the jQuery countdown extension + * Written by Davide Bellettini (davide.bellettini@gmail.com) and Roberto Chiaveri Feb 2008. */ +(function($) { + $.countdown.regional['it'] = { + labels: ['Anni', 'Mesi', 'Settimane', 'Giorni', 'Ore', 'Minuti', 'Secondi'], + labels1: ['Anno', 'Mese', 'Settimana', 'Giorno', 'Ora', 'Minuto', 'Secondo'], + compactLabels: ['a', 'm', 's', 'g'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['it']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-ja.js b/js/countdown-localisation/jquery.countdown-ja.js new file mode 100644 index 0000000..7451c84 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-ja.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Japanese initialisation for the jQuery countdown extension + Written by Ken Ishimoto (ken@ksroom.com) Aug 2009. */ +(function($) { + $.countdown.regional['ja'] = { + labels: ['å¹´', '月', '週', 'æ—¥', '時', '分', '秒'], + labels1: ['å¹´', '月', '週', 'æ—¥', '時', '分', '秒'], + compactLabels: ['å¹´', '月', '週', 'æ—¥'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['ja']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-kn.js b/js/countdown-localisation/jquery.countdown-kn.js new file mode 100644 index 0000000..d663045 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-kn.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Kannada initialization for the jQuery countdown extension + * Written by Guru Chaturvedi guru@gangarasa.com (2011) */ +(function($) { + $.countdown.regional['kn'] = { + labels: ['ವರà³à²·à²—ಳà³', 'ತಿಂಗಳà³', 'ವಾರಗಳà³', 'ದಿನಗಳà³', 'ಘಂಟೆಗಳà³', 'ನಿಮಿಷಗಳà³', 'ಕà³à²·à²£à²—ಳà³'], + labels1: ['ವರà³à²·', 'ತಿಂಗಳà³', 'ವಾರ', 'ದಿನ', 'ಘಂಟೆ', 'ನಿಮಿಷ', 'ಕà³à²·à²£'], + compactLabels: ['ವ', 'ತಿ', 'ವಾ', 'ದಿ'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['kn']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-ko.js b/js/countdown-localisation/jquery.countdown-ko.js new file mode 100644 index 0000000..46cbb1b --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-ko.js @@ -0,0 +1,14 @@ +/* http://keith-wood.name/countdown.html + Korean initialisation for the jQuery countdown extension + Written by Ryan Yu (ryanyu79@gmail.com). */ +(function($) { + $.countdown.regional['ko'] = { + labels: ['ë…„', 'ì›”', '주', 'ì¼', 'ì‹œ', '분', 'ì´ˆ'], + labels1: ['ë…„', 'ì›”', '주', 'ì¼', 'ì‹œ', '분', 'ì´ˆ'], + compactLabels: ['ë…„', 'ì›”', '주', 'ì¼'], + compactLabels1: ['ë…„', 'ì›”', '주', 'ì¼'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['ko']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-lt.js b/js/countdown-localisation/jquery.countdown-lt.js new file mode 100644 index 0000000..8076f16 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-lt.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Lithuanian localisation for the jQuery countdown extension + * Written by Moacir P. de Sá Pereira (moacir{at}gmail.com) (2009) */ +(function($) { + $.countdown.regional['lt'] = { + labels: ['Metų', 'MÄ—nesių', 'SavaiÄių', 'Dienų', 'Valandų', 'MinuÄių', 'Sekundžių'], + labels1: ['Metai', 'MÄ—nuo', 'SavaitÄ—', 'Diena', 'Valanda', 'MinutÄ—', 'SekundÄ—'], + compactLabels: ['m', 'm', 's', 'd'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['lt']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-lv.js b/js/countdown-localisation/jquery.countdown-lv.js new file mode 100644 index 0000000..2a3b407 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-lv.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Latvian initialisation for the jQuery countdown extension + * Written by JÄnis Peisenieks janis.peisenieks@gmail.com (2010) */ +(function($) { + $.countdown.regional['lv'] = { + labels: ['Gadi', 'MÄ“neÅ¡i', 'Nedēļas', 'Dienas', 'Stundas', 'MinÅ«tes', 'Sekundes'], + labels1: ['Gads', 'MÄ“nesis', 'Nedēļa', 'Diena', 'Stunda', 'MinÅ«te', 'Sekunde'], + compactLabels: ['l', 'm', 'n', 'd'], compactLabels1: ['g', 'm', 'n', 'd'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['lv']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-ml.js b/js/countdown-localisation/jquery.countdown-ml.js new file mode 100644 index 0000000..c9b503d --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-ml.js @@ -0,0 +1,14 @@ +/* http://keith-wood.name/countdown.html + * Malayalam/(Indian>>Kerala) initialisation for the jQuery countdown extension + * Written by Harilal.B (harilal1234@gmail.com) Feb 2013. */ +(function($) { + $.countdown.regional['ml'] = { + labels: ['വരàµâ€à´·à´™àµà´™à´³àµâ€', 'മാസങàµà´™à´³àµâ€', 'ആഴàµà´šà´•à´³àµâ€', 'ദിവസങàµà´™à´³àµâ€', 'മണികàµà´•àµ‚à´±àµà´•à´³àµâ€', 'മിനിറàµà´±àµà´•à´³àµâ€', 'സെകàµà´•à´¨àµà´±àµà´•à´³àµâ€'], + labels1: ['വരàµâ€à´·à´‚', 'മാസം', 'ആഴàµà´š', 'ദിവസം', 'മണികàµà´•àµ‚à´°àµâ€', 'മിനിറàµà´±àµ', 'സെകàµà´•à´¨àµà´±àµ'], + compactLabels: ['à´µ', 'à´®', 'à´†', 'ദി'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], +// digits: ['൦', '൧', '൨', '൩', '൪', '൫', '൬', '൭', '൮', '൯'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['ml']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-ms.js b/js/countdown-localisation/jquery.countdown-ms.js new file mode 100644 index 0000000..ef463d3 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-ms.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Malay initialisation for the jQuery countdown extension + Written by Jason Ong (jason{at}portalgroove.com) May 2010. */ +(function($) { + $.countdown.regional['ms'] = { + labels: ['Tahun', 'Bulan', 'Minggu', 'Hari', 'Jam', 'Minit', 'Saat'], + labels1: ['Tahun', 'Bulan', 'Minggu', 'Hari', 'Jam', 'Minit', 'Saat'], + compactLabels: ['t', 'b', 'm', 'h'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['ms']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-my.js b/js/countdown-localisation/jquery.countdown-my.js new file mode 100644 index 0000000..fcf5b16 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-my.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Burmese initialisation for the jQuery countdown extension + Written by Win Lwin Moe (winnlwinmoe@gmail.com) Dec 2009. */ +(function($) { + $.countdown.regional['my'] = { + labels: ['နွစ္', 'လ', 'ရက္သá€á€¿á€á€•á€á€¹', 'ရက္', 'နာရီ', 'မိနစ္', 'စကဿကန့္'], + labels1: ['နွစ္', 'လ', 'ရက္သá€á€¿á€á€•á€á€¹', 'ရက္', 'နာရီ', 'မိနစ္', 'စကဿကန့္'], + compactLabels: ['နွစ္', 'လ', 'ရက္သá€á€¿á€á€•á€á€¹', 'ရက္'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['my']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-nb.js b/js/countdown-localisation/jquery.countdown-nb.js new file mode 100644 index 0000000..fecb43f --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-nb.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Norwegian BokmÃ¥l translation + Written by Kristian Ravnevand */ +(function($) { + $.countdown.regional['nb'] = { + labels: ['Ã…r', 'MÃ¥neder', 'Uker', 'Dager', 'Timer', 'Minutter', 'Sekunder'], + labels1: ['Ã…r', 'MÃ¥ned', 'Uke', 'Dag', 'Time', 'Minutt', 'Sekund'], + compactLabels: ['Ã…', 'M', 'U', 'D'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['nb']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-nl.js b/js/countdown-localisation/jquery.countdown-nl.js new file mode 100644 index 0000000..59ebeae --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-nl.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Dutch initialisation for the jQuery countdown extension + Written by Mathias Bynens Mar 2008. */ +(function($) { + $.countdown.regional['nl'] = { + labels: ['Jaren', 'Maanden', 'Weken', 'Dagen', 'Uren', 'Minuten', 'Seconden'], + labels1: ['Jaar', 'Maand', 'Week', 'Dag', 'Uur', 'Minuut', 'Seconde'], + compactLabels: ['j', 'm', 'w', 'd'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['nl']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-pl.js b/js/countdown-localisation/jquery.countdown-pl.js new file mode 100644 index 0000000..47ea969 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-pl.js @@ -0,0 +1,18 @@ +/* http://keith-wood.name/countdown.html + * Polish initialisation for the jQuery countdown extension + * Written by Pawel Lewtak lewtak@gmail.com (2008) */ +(function($) { + $.countdown.regional['pl'] = { + labels: ['lat', 'miesiÄ™cy', 'tygodni', 'dni', 'godzin', 'minut', 'sekund'], + labels1: ['rok', 'miesiÄ…c', 'tydzieÅ„', 'dzieÅ„', 'godzina', 'minuta', 'sekunda'], + labels2: ['lata', 'miesiÄ…ce', 'tygodnie', 'dni', 'godziny', 'minuty', 'sekundy'], + compactLabels: ['l', 'm', 't', 'd'], compactLabels1: ['r', 'm', 't', 'd'], + whichLabels: function(amount) { + var units = amount % 10; + var tens = Math.floor((amount % 100) / 10); + return (amount == 1 ? 1 : (units >= 2 && units <= 4 && tens != 1 ? 2 : 0)); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['pl']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-pt-BR.js b/js/countdown-localisation/jquery.countdown-pt-BR.js new file mode 100644 index 0000000..f4dc748 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-pt-BR.js @@ -0,0 +1,14 @@ +/* http://keith-wood.name/countdown.html + Brazilian initialisation for the jQuery countdown extension + Translated by Marcelo Pellicano de Oliveira (pellicano@gmail.com) Feb 2008. + and Juan Roldan (juan.roldan[at]relayweb.com.br) Mar 2012. */ +(function($) { + $.countdown.regional['pt-BR'] = { + labels: ['Anos', 'Meses', 'Semanas', 'Dias', 'Horas', 'Minutos', 'Segundos'], + labels1: ['Ano', 'Mês', 'Semana', 'Dia', 'Hora', 'Minuto', 'Segundo'], + compactLabels: ['a', 'm', 's', 'd'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['pt-BR']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-ro.js b/js/countdown-localisation/jquery.countdown-ro.js new file mode 100644 index 0000000..45b6a1c --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-ro.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Romanian initialisation for the jQuery countdown extension + * Written by Edmond L. (webmond@gmail.com). */ +(function($) { + $.countdown.regional['ro'] = { + labels: ['Ani', 'Luni', 'Saptamani', 'Zile', 'Ore', 'Minute', 'Secunde'], + labels1: ['An', 'Luna', 'Saptamana', 'Ziua', 'Ora', 'Minutul', 'Secunda'], + compactLabels: ['A', 'L', 'S', 'Z'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['ro']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-ru.js b/js/countdown-localisation/jquery.countdown-ru.js new file mode 100644 index 0000000..61d02d9 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-ru.js @@ -0,0 +1,19 @@ +/* http://keith-wood.name/countdown.html + * Russian initialisation for the jQuery countdown extension + * Written by Sergey K. (xslade{at}gmail.com) June 2010. */ +(function($) { + $.countdown.regional['ru'] = { + labels: ['Лет', 'МеÑÑцев', 'Ðедель', 'Дней', 'ЧаÑов', 'Минут', 'Секунд'], + labels1: ['Год', 'МеÑÑц', 'ÐеделÑ', 'День', 'ЧаÑ', 'Минута', 'Секунда'], + labels2: ['Года', 'МеÑÑца', 'Ðедели', 'ДнÑ', 'ЧаÑа', 'Минуты', 'Секунды'], + compactLabels: ['л', 'м', 'н', 'д'], compactLabels1: ['г', 'м', 'н', 'д'], + whichLabels: function(amount) { + var units = amount % 10; + var tens = Math.floor((amount % 100) / 10); + return (amount == 1 ? 1 : (units >= 2 && units <= 4 && tens != 1 ? 2 : + (units == 1 && tens != 1 ? 1 : 0))); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['ru']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-sk.js b/js/countdown-localisation/jquery.countdown-sk.js new file mode 100644 index 0000000..acd1953 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-sk.js @@ -0,0 +1,16 @@ +/* http://keith-wood.name/countdown.html + * Slovak initialisation for the jQuery countdown extension + * Written by Roman Chlebec (creamd@c64.sk) (2008) */ +(function($) { + $.countdown.regional['sk'] = { + labels: ['Rokov', 'Mesiacov', 'Týždňov', 'Dní', 'Hodín', 'Minút', 'Sekúnd'], + labels1: ['Rok', 'Mesiac', 'Týždeň', 'Deň', 'Hodina', 'Minúta', 'Sekunda'], + labels2: ['Roky', 'Mesiace', 'Týždne', 'Dni', 'Hodiny', 'Minúty', 'Sekundy'], + compactLabels: ['r', 'm', 't', 'd'], + whichLabels: function(amount) { + return (amount == 1 ? 1 : (amount >= 2 && amount <= 4 ? 2 : 0)); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['sk']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-sl.js b/js/countdown-localisation/jquery.countdown-sl.js new file mode 100644 index 0000000..8d59fd5 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-sl.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Slovenian localisation for the jQuery countdown extension + * Written by Borut Tomažin (debijan{at}gmail.com) (2011) */ +(function($) { + $.countdown.regional['sl'] = { + labels: ['Let', 'Mesecev', 'Tednov', 'Dni', 'Ur', 'Minut', 'Sekund'], + labels1: ['Leto', 'Mesec', 'Teden', 'Dan', 'Ura', 'Minuta', 'Sekunda'], + compactLabels: ['l', 'm', 't', 'd'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['sl']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-sq.js b/js/countdown-localisation/jquery.countdown-sq.js new file mode 100644 index 0000000..410b89e --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-sq.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Albanian initialisation for the jQuery countdown extension + Written by Erzen Komoni. */ +(function($) { + $.countdown.regional['sq'] = { + labels: ['Vite', 'Muaj', 'Javë', 'Ditë', 'Orë', 'Minuta', 'Sekonda'], + labels1: ['Vit', 'Muaj', 'Javë', 'Dit', 'Orë', 'Minutë', 'Sekond'], + compactLabels: ['V', 'M', 'J', 'D'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['sq']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-sr-SR.js b/js/countdown-localisation/jquery.countdown-sr-SR.js new file mode 100644 index 0000000..bc5bbed --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-sr-SR.js @@ -0,0 +1,16 @@ +/* http://keith-wood.name/countdown.html + * Serbian Latin initialisation for the jQuery countdown extension + * Written by Predrag Leka lp@lemurcake.com (2010) */ +(function($) { + $.countdown.regional['sr-SR'] = { + labels: ['Godina', 'Meseci', 'Nedelja', 'Dana', 'ÄŒasova', 'Minuta', 'Sekundi'], + labels1: ['Godina', 'Mesec', 'Nedelja', 'Dan', 'ÄŒas', 'Minut', 'Sekunda'], + labels2: ['Godine', 'Meseca', 'Nedelje', 'Dana', 'ÄŒasa', 'Minuta', 'Sekunde'], + compactLabels: ['g', 'm', 'n', 'd'], + whichLabels: function(amount) { + return (amount == 1 ? 1 : (amount >= 2 && amount <= 4 ? 2 : 0)); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['sr-SR']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-sr.js b/js/countdown-localisation/jquery.countdown-sr.js new file mode 100644 index 0000000..302c3b0 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-sr.js @@ -0,0 +1,16 @@ +/* http://keith-wood.name/countdown.html + * Serbian Cyrillic initialisation for the jQuery countdown extension + * Written by Predrag Leka lp@lemurcake.com (2010) */ +(function($) { + $.countdown.regional['sr'] = { + labels: ['Година', 'МеÑеци', 'Ðедеља', 'Дана', 'ЧаÑова', 'Минута', 'Секунди'], + labels1: ['Година', 'меÑец', 'Ðедеља', 'Дан', 'ЧаÑ', 'Минут', 'Секунда'], + labels2: ['Године', 'МеÑеца', 'Ðедеље', 'Дана', 'ЧаÑа', 'Минута', 'Секунде'], + compactLabels: ['г', 'м', 'н', 'д'], + whichLabels: function(amount) { + return (amount == 1 ? 1 : (amount >= 2 && amount <= 4 ? 2 : 0)); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['sr']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-sv.js b/js/countdown-localisation/jquery.countdown-sv.js new file mode 100644 index 0000000..77e5eb2 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-sv.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Swedish initialisation for the jQuery countdown extension + Written by Carl (carl@nordenfelt.com). */ +(function($) { + $.countdown.regional['sv'] = { + labels: ['Ã…r', 'MÃ¥nader', 'Veckor', 'Dagar', 'Timmar', 'Minuter', 'Sekunder'], + labels1: ['Ã…r', 'MÃ¥nad', 'Vecka', 'Dag', 'Timme', 'Minut', 'Sekund'], + compactLabels: ['Ã…', 'M', 'V', 'D'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['sv']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-th.js b/js/countdown-localisation/jquery.countdown-th.js new file mode 100644 index 0000000..778f9d2 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-th.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Thai initialisation for the jQuery countdown extension + Written by Pornchai Sakulsrimontri (li_sin_th@yahoo.com). */ +(function($) { + $.countdown.regional['th'] = { + labels: ['ปี', 'เดือน', 'สัปดาห์', 'วัน', 'ชั่วโมง', 'นาที', 'วินาที'], + labels1: ['ปี', 'เดือน', 'สัปดาห์', 'วัน', 'ชั่วโมง', 'นาที', 'วินาที'], + compactLabels: ['ปี', 'เดือน', 'สัปดาห์', 'วัน'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['th']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-tr.js b/js/countdown-localisation/jquery.countdown-tr.js new file mode 100644 index 0000000..b3de40f --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-tr.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html +* Turkish initialisation for the jQuery countdown extension +* Written by Bekir AhmetoÄŸlu (bekir@cerek.com) Aug 2008. */ +(function($) { + $.countdown.regional['tr'] = { + labels: ['Yıl', 'Ay', 'Hafta', 'Gün', 'Saat', 'Dakika', 'Saniye'], + labels1: ['Yıl', 'Ay', 'Hafta', 'Gün', 'Saat', 'Dakika', 'Saniye'], + compactLabels: ['y', 'a', 'h', 'g'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['tr']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-uk.js b/js/countdown-localisation/jquery.countdown-uk.js new file mode 100644 index 0000000..79449b8 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-uk.js @@ -0,0 +1,16 @@ +/* http://keith-wood.name/countdown.html + * Ukrainian initialisation for the jQuery countdown extension + * Written by Goloborodko M misha.gm@gmail.com (2009), corrections by Iгор Kоновал */ +(function($) { + $.countdown.regional['uk'] = { + labels: ['Років', 'МіÑÑців', 'Тижнів', 'Днів', 'Годин', 'Хвилин', 'Секунд'], + labels1: ['Рік', 'МіÑÑць', 'Тиждень', 'День', 'Година', 'Хвилина', 'Секунда'], + labels2: ['Роки', 'МіÑÑці', 'Тижні', 'Дні', 'Години', 'Хвилини', 'Секунди'], + compactLabels: ['r', 'm', 't', 'd'], + whichLabels: function(amount) { + return (amount == 1 ? 1 : (amount >=2 && amount <= 4 ? 2 : 0)); + }, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['uk']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-uz.js b/js/countdown-localisation/jquery.countdown-uz.js new file mode 100644 index 0000000..7e6fa7c --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-uz.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Uzbek initialisation for the jQuery countdown extension + * Written by Alisher U. (ulugbekov{at}gmail.com) August 2012. */ +(function($) { + $.countdown.regional['uz'] = { + labels: ['Yil', 'Oy', 'Hafta', 'Kun', 'Soat', 'Daqiqa', 'Soniya'], + labels1: ['Yil', 'Oy', 'Hafta', 'Kun', 'Soat', 'Daqiqa', 'Soniya'], + compactLabels: ['y', 'o', 'h', 'k'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['uz']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-vi.js b/js/countdown-localisation/jquery.countdown-vi.js new file mode 100644 index 0000000..9b0bd31 --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-vi.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + * Vietnamese initialisation for the jQuery countdown extension + * Written by Pham Tien Hung phamtienhung@gmail.com (2010) */ +(function($) { + $.countdown.regional['vi'] = { + labels: ['Năm', 'Tháng', 'Tuần', 'Ngày', 'Giá»', 'Phút', 'Giây'], + labels1: ['Năm', 'Tháng', 'Tuần', 'Ngày', 'Giá»', 'Phút', 'Giây'], + compactLabels: ['năm', 'th', 'tu', 'ng'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['vi']); +})(jQuery); \ No newline at end of file diff --git a/js/countdown-localisation/jquery.countdown-zh-CN.js b/js/countdown-localisation/jquery.countdown-zh-CN.js new file mode 100644 index 0000000..bc442cb --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-zh-CN.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Simplified Chinese initialisation for the jQuery countdown extension + Written by Cloudream (cloudream@gmail.com). */ +(function($) { + $.countdown.regional['zh-CN'] = { + labels: ['å¹´', '月', '周', '天', 'æ—¶', '分', '秒'], + labels1: ['å¹´', '月', '周', '天', 'æ—¶', '分', '秒'], + compactLabels: ['å¹´', '月', '周', '天'], compactLabels1: ['å¹´', '月', '周', '天'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['zh-CN']); +})(jQuery); diff --git a/js/countdown-localisation/jquery.countdown-zh-TW.js b/js/countdown-localisation/jquery.countdown-zh-TW.js new file mode 100644 index 0000000..24d50bd --- /dev/null +++ b/js/countdown-localisation/jquery.countdown-zh-TW.js @@ -0,0 +1,13 @@ +/* http://keith-wood.name/countdown.html + Traditional Chinese initialisation for the jQuery countdown extension + Written by Cloudream (cloudream@gmail.com). */ +(function($) { + $.countdown.regional['zh-TW'] = { + labels: ['å¹´', '月', '周', '天', '時', '分', '秒'], + labels1: ['å¹´', '月', '周', '天', '時', '分', '秒'], + compactLabels: ['å¹´', '月', '周', '天'], compactLabels1: ['å¹´', '月', '周', '天'], + whichLabels: null, + digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['zh-TW']); +})(jQuery); diff --git a/js/jquery.carouFredSel-6.2.1-packed.js b/js/jquery.carouFredSel-6.2.1-packed.js new file mode 100644 index 0000000..b7e3ec3 --- /dev/null +++ b/js/jquery.carouFredSel-6.2.1-packed.js @@ -0,0 +1,16 @@ +/* + * jQuery carouFredSel 6.2.1 + * Demo's and documentation: + * caroufredsel.dev7studios.com + * + * Copyright (c) 2013 Fred Heusschen + * www.frebsite.nl + * + * Dual licensed under the MIT and GPL licenses. + * http://en.wikipedia.org/wiki/MIT_License + * http://en.wikipedia.org/wiki/GNU_General_Public_License + */ + + +(function($){function sc_setScroll(a,b,c){return"transition"==c.transition&&"swing"==b&&(b="ease"),{anims:[],duration:a,orgDuration:a,easing:b,startTime:getTime()}}function sc_startScroll(a,b){for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e&&e[0][b.transition](e[1],a.duration,a.easing,e[2])}}function sc_stopScroll(a,b){is_boolean(b)||(b=!0),is_object(a.pre)&&sc_stopScroll(a.pre,b);for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e[0].stop(!0),b&&(e[0].css(e[1]),is_function(e[2])&&e[2]())}is_object(a.post)&&sc_stopScroll(a.post,b)}function sc_afterScroll(a,b,c){switch(b&&b.remove(),c.fx){case"fade":case"crossfade":case"cover-fade":case"uncover-fade":a.css("opacity",1),a.css("filter","")}}function sc_fireCallbacks(a,b,c,d,e){if(b[c]&&b[c].call(a,d),e[c].length)for(var f=0,g=e[c].length;g>f;f++)e[c][f].call(a,d);return[]}function sc_fireQueue(a,b,c){return b.length&&(a.trigger(cf_e(b[0][0],c),b[0][1]),b.shift()),b}function sc_hideHiddenItems(a){a.each(function(){var a=$(this);a.data("_cfs_isHidden",a.is(":hidden")).hide()})}function sc_showHiddenItems(a){a&&a.each(function(){var a=$(this);a.data("_cfs_isHidden")||a.show()})}function sc_clearTimers(a){return a.auto&&clearTimeout(a.auto),a.progress&&clearInterval(a.progress),a}function sc_mapCallbackArguments(a,b,c,d,e,f,g){return{width:g.width,height:g.height,items:{old:a,skipped:b,visible:c},scroll:{items:d,direction:e,duration:f}}}function sc_getDuration(a,b,c,d){var e=a.duration;return"none"==a.fx?0:("auto"==e?e=b.scroll.duration/b.scroll.items*c:10>e&&(e=d/e),1>e?0:("fade"==a.fx&&(e/=2),Math.round(e)))}function nv_showNavi(a,b,c){var d=is_number(a.items.minimum)?a.items.minimum:a.items.visible+1;if("show"==b||"hide"==b)var e=b;else if(d>b){debug(c,"Not enough items ("+b+" total, "+d+" needed): Hiding navigation.");var e="hide"}else var e="show";var f="show"==e?"removeClass":"addClass",g=cf_c("hidden",c);a.auto.button&&a.auto.button[e]()[f](g),a.prev.button&&a.prev.button[e]()[f](g),a.next.button&&a.next.button[e]()[f](g),a.pagination.container&&a.pagination.container[e]()[f](g)}function nv_enableNavi(a,b,c){if(!a.circular&&!a.infinite){var d="removeClass"==b||"addClass"==b?b:!1,e=cf_c("disabled",c);if(a.auto.button&&d&&a.auto.button[d](e),a.prev.button){var f=d||0==b?"addClass":"removeClass";a.prev.button[f](e)}if(a.next.button){var f=d||b==a.items.visible?"addClass":"removeClass";a.next.button[f](e)}}}function go_getObject(a,b){return is_function(b)?b=b.call(a):is_undefined(b)&&(b={}),b}function go_getItemsObject(a,b){return b=go_getObject(a,b),is_number(b)?b={visible:b}:"variable"==b?b={visible:b,width:b,height:b}:is_object(b)||(b={}),b}function go_getScrollObject(a,b){return b=go_getObject(a,b),is_number(b)?b=50>=b?{items:b}:{duration:b}:is_string(b)?b={easing:b}:is_object(b)||(b={}),b}function go_getNaviObject(a,b){if(b=go_getObject(a,b),is_string(b)){var c=cf_getKeyCode(b);b=-1==c?$(b):c}return b}function go_getAutoObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_boolean(b)?b={play:b}:is_number(b)&&(b={timeoutDuration:b}),b.progress&&(is_string(b.progress)||is_jquery(b.progress))&&(b.progress={bar:b.progress}),b}function go_complementAutoObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_boolean(b.play)||(b.play=!0),is_number(b.delay)||(b.delay=0),is_undefined(b.pauseOnEvent)&&(b.pauseOnEvent=!0),is_boolean(b.pauseOnResize)||(b.pauseOnResize=!0),is_number(b.timeoutDuration)||(b.timeoutDuration=10>b.duration?2500:5*b.duration),b.progress&&(is_function(b.progress.bar)&&(b.progress.bar=b.progress.bar.call(a)),is_string(b.progress.bar)&&(b.progress.bar=$(b.progress.bar)),b.progress.bar?(is_function(b.progress.updater)||(b.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(b.progress.interval)||(b.progress.interval=50)):b.progress=!1),b}function go_getPrevNextObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_number(b)&&(b={key:b}),b}function go_complementPrevNextObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_string(b.key)&&(b.key=cf_getKeyCode(b.key)),b}function go_getPaginationObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={container:b}:is_boolean(b)&&(b={keys:b}),b}function go_complementPaginationObject(a,b){return is_function(b.container)&&(b.container=b.container.call(a)),is_string(b.container)&&(b.container=$(b.container)),is_number(b.items)||(b.items=!1),is_boolean(b.keys)||(b.keys=!1),is_function(b.anchorBuilder)||is_false(b.anchorBuilder)||(b.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(b.deviation)||(b.deviation=0),b}function go_getSwipeObject(a,b){return is_function(b)&&(b=b.call(a)),is_undefined(b)&&(b={onTouch:!1}),is_true(b)?b={onTouch:b}:is_number(b)&&(b={items:b}),b}function go_complementSwipeObject(a,b){return is_boolean(b.onTouch)||(b.onTouch=!0),is_boolean(b.onMouse)||(b.onMouse=!1),is_object(b.options)||(b.options={}),is_boolean(b.options.triggerOnTouchEnd)||(b.options.triggerOnTouchEnd=!1),b}function go_getMousewheelObject(a,b){return is_function(b)&&(b=b.call(a)),is_true(b)?b={}:is_number(b)?b={items:b}:is_undefined(b)&&(b=!1),b}function go_complementMousewheelObject(a,b){return b}function gn_getItemIndex(a,b,c,d,e){if(is_string(a)&&(a=$(a,e)),is_object(a)&&(a=$(a,e)),is_jquery(a)?(a=e.children().index(a),is_boolean(c)||(c=!1)):is_boolean(c)||(c=!0),is_number(a)||(a=0),is_number(b)||(b=0),c&&(a+=d.first),a+=b,d.total>0){for(;a>=d.total;)a-=d.total;for(;0>a;)a+=d.total}return a}function gn_getVisibleItemsPrev(a,b,c){for(var d=0,e=0,f=c;f>=0;f--){var g=a.eq(f);if(d+=g.is(":visible")?g[b.d.outerWidth](!0):0,d>b.maxDimension)return e;0==f&&(f=a.length),e++}}function gn_getVisibleItemsPrevFilter(a,b,c){return gn_getItemsPrevFilter(a,b.items.filter,b.items.visibleConf.org,c)}function gn_getScrollItemsPrevFilter(a,b,c,d){return gn_getItemsPrevFilter(a,b.items.filter,d,c)}function gn_getItemsPrevFilter(a,b,c,d){for(var e=0,f=0,g=d,h=a.length;g>=0;g--){if(f++,f==h)return f;var i=a.eq(g);if(i.is(b)&&(e++,e==c))return f;0==g&&(g=h)}}function gn_getVisibleOrg(a,b){return b.items.visibleConf.org||a.children().slice(0,b.items.visible).filter(b.items.filter).length}function gn_getVisibleItemsNext(a,b,c){for(var d=0,e=0,f=c,g=a.length-1;g>=f;f++){var h=a.eq(f);if(d+=h.is(":visible")?h[b.d.outerWidth](!0):0,d>b.maxDimension)return e;if(e++,e==g+1)return e;f==g&&(f=-1)}}function gn_getVisibleItemsNextTestCircular(a,b,c,d){var e=gn_getVisibleItemsNext(a,b,c);return b.circular||c+e>d&&(e=d-c),e}function gn_getVisibleItemsNextFilter(a,b,c){return gn_getItemsNextFilter(a,b.items.filter,b.items.visibleConf.org,c,b.circular)}function gn_getScrollItemsNextFilter(a,b,c,d){return gn_getItemsNextFilter(a,b.items.filter,d+1,c,b.circular)-1}function gn_getItemsNextFilter(a,b,c,d){for(var f=0,g=0,h=d,i=a.length-1;i>=h;h++){if(g++,g>=i)return g;var j=a.eq(h);if(j.is(b)&&(f++,f==c))return g;h==i&&(h=-1)}}function gi_getCurrentItems(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsPrev(a,b,c){return a.slice(c,b.items.visibleConf.old+c)}function gi_getNewItemsPrev(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsNext(a,b){return a.slice(0,b.items.visibleConf.old)}function gi_getNewItemsNext(a,b,c){return a.slice(c,b.items.visible+c)}function sz_storeMargin(a,b,c){b.usePadding&&(is_string(c)||(c="_cfs_origCssMargin"),a.each(function(){var a=$(this),d=parseInt(a.css(b.d.marginRight),10);is_number(d)||(d=0),a.data(c,d)}))}function sz_resetMargin(a,b,c){if(b.usePadding){var d=is_boolean(c)?c:!1;is_number(c)||(c=0),sz_storeMargin(a,b,"_cfs_tempCssMargin"),a.each(function(){var a=$(this);a.css(b.d.marginRight,d?a.data("_cfs_tempCssMargin"):c+a.data("_cfs_origCssMargin"))})}}function sz_storeOrigCss(a){a.each(function(){var a=$(this);a.data("_cfs_origCss",a.attr("style")||"")})}function sz_restoreOrigCss(a){a.each(function(){var a=$(this);a.attr("style",a.data("_cfs_origCss")||"")})}function sz_setResponsiveSizes(a,b){var d=(a.items.visible,a.items[a.d.width]),e=a[a.d.height],f=is_percentage(e);b.each(function(){var b=$(this),c=d-ms_getPaddingBorderMargin(b,a,"Width");b[a.d.width](c),f&&b[a.d.height](ms_getPercentage(c,e))})}function sz_setSizes(a,b){var c=a.parent(),d=a.children(),e=gi_getCurrentItems(d,b),f=cf_mapWrapperSizes(ms_getSizes(e,b,!0),b,!1);if(c.css(f),b.usePadding){var g=b.padding,h=g[b.d[1]];b.align&&0>h&&(h=0);var i=e.last();i.css(b.d.marginRight,i.data("_cfs_origCssMargin")+h),a.css(b.d.top,g[b.d[0]]),a.css(b.d.left,g[b.d[3]])}return a.css(b.d.width,f[b.d.width]+2*ms_getTotalSize(d,b,"width")),a.css(b.d.height,ms_getLargestSize(d,b,"height")),f}function ms_getSizes(a,b,c){return[ms_getTotalSize(a,b,"width",c),ms_getLargestSize(a,b,"height",c)]}function ms_getLargestSize(a,b,c,d){return is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d?b[b.d[c]]:is_number(b.items[b.d[c]])?b.items[b.d[c]]:(c=c.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",ms_getTrueLargestSize(a,b,c))}function ms_getTrueLargestSize(a,b,c){for(var d=0,e=0,f=a.length;f>e;e++){var g=a.eq(e),h=g.is(":visible")?g[b.d[c]](!0):0;h>d&&(d=h)}return d}function ms_getTotalSize(a,b,c,d){if(is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d)return b[b.d[c]];if(is_number(b.items[b.d[c]]))return b.items[b.d[c]]*a.length;for(var e=c.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",f=0,g=0,h=a.length;h>g;g++){var i=a.eq(g);f+=i.is(":visible")?i[b.d[e]](!0):0}return f}function ms_getParentSize(a,b,c){var d=a.is(":visible");d&&a.hide();var e=a.parent()[b.d[c]]();return d&&a.show(),e}function ms_getMaxDimension(a,b){return is_number(a[a.d.width])?a[a.d.width]:b}function ms_hasVariableSizes(a,b,c){for(var d=!1,e=!1,f=0,g=a.length;g>f;f++){var h=a.eq(f),i=h.is(":visible")?h[b.d[c]](!0):0;d===!1?d=i:d!=i&&(e=!0),0==d&&(e=!0)}return e}function ms_getPaddingBorderMargin(a,b,c){return a[b.d["outer"+c]](!0)-a[b.d[c.toLowerCase()]]()}function ms_getPercentage(a,b){if(is_percentage(b)){if(b=parseInt(b.slice(0,-1),10),!is_number(b))return a;a*=b/100}return a}function cf_e(a,b,c,d,e){return is_boolean(c)||(c=!0),is_boolean(d)||(d=!0),is_boolean(e)||(e=!1),c&&(a=b.events.prefix+a),d&&(a=a+"."+b.events.namespace),d&&e&&(a+=b.serialNumber),a}function cf_c(a,b){return is_string(b.classnames[a])?b.classnames[a]:a}function cf_mapWrapperSizes(a,b,c){is_boolean(c)||(c=!0);var d=b.usePadding&&c?b.padding:[0,0,0,0],e={};return e[b.d.width]=a[0]+d[1]+d[3],e[b.d.height]=a[1]+d[0]+d[2],e}function cf_sortParams(a,b){for(var c=[],d=0,e=a.length;e>d;d++)for(var f=0,g=b.length;g>f;f++)if(b[f].indexOf(typeof a[d])>-1&&is_undefined(c[f])){c[f]=a[d];break}return c}function cf_getPadding(a){if(is_undefined(a))return[0,0,0,0];if(is_number(a))return[a,a,a,a];if(is_string(a)&&(a=a.split("px").join("").split("em").join("").split(" ")),!is_array(a))return[0,0,0,0];for(var b=0;4>b;b++)a[b]=parseInt(a[b],10);switch(a.length){case 0:return[0,0,0,0];case 1:return[a[0],a[0],a[0],a[0]];case 2:return[a[0],a[1],a[0],a[1]];case 3:return[a[0],a[1],a[2],a[1]];default:return[a[0],a[1],a[2],a[3]]}}function cf_getAlignPadding(a,b){var c=is_number(b[b.d.width])?Math.ceil(b[b.d.width]-ms_getTotalSize(a,b,"width")):0;switch(b.align){case"left":return[0,c];case"right":return[c,0];case"center":default:return[Math.ceil(c/2),Math.floor(c/2)]}}function cf_getDimensions(a){for(var b=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],c=b[0].length,d="right"==a.direction||"left"==a.direction?0:1,e={},f=0;c>f;f++)e[b[0][f]]=b[d][f];return e}function cf_getAdjust(a,b,c,d){var e=a;if(is_function(c))e=c.call(d,e);else if(is_string(c)){var f=c.split("+"),g=c.split("-");if(g.length>f.length)var h=!0,i=g[0],j=g[1];else var h=!1,i=f[0],j=f[1];switch(i){case"even":e=1==a%2?a-1:a;break;case"odd":e=0==a%2?a-1:a;break;default:e=a}j=parseInt(j,10),is_number(j)&&(h&&(j=-j),e+=j)}return(!is_number(e)||1>e)&&(e=1),e}function cf_getItemsAdjust(a,b,c,d){return cf_getItemAdjustMinMax(cf_getAdjust(a,b,c,d),b.items.visibleConf)}function cf_getItemAdjustMinMax(a,b){return is_number(b.min)&&b.min>a&&(a=b.min),is_number(b.max)&&a>b.max&&(a=b.max),1>a&&(a=1),a}function cf_getSynchArr(a){is_array(a)||(a=[[a]]),is_array(a[0])||(a=[a]);for(var b=0,c=a.length;c>b;b++)is_string(a[b][0])&&(a[b][0]=$(a[b][0])),is_boolean(a[b][1])||(a[b][1]=!0),is_boolean(a[b][2])||(a[b][2]=!0),is_number(a[b][3])||(a[b][3]=0);return a}function cf_getKeyCode(a){return"right"==a?39:"left"==a?37:"up"==a?38:"down"==a?40:-1}function cf_setCookie(a,b,c){if(a){var d=b.triggerHandler(cf_e("currentPosition",c));$.fn.carouFredSel.cookie.set(a,d)}}function cf_getCookie(a){var b=$.fn.carouFredSel.cookie.get(a);return""==b?0:b}function in_mapCss(a,b){for(var c={},d=0,e=b.length;e>d;d++)c[b[d]]=a.css(b[d]);return c}function in_complementItems(a,b,c,d){return is_object(a.visibleConf)||(a.visibleConf={}),is_object(a.sizesConf)||(a.sizesConf={}),0==a.start&&is_number(d)&&(a.start=d),is_object(a.visible)?(a.visibleConf.min=a.visible.min,a.visibleConf.max=a.visible.max,a.visible=!1):is_string(a.visible)?("variable"==a.visible?a.visibleConf.variable=!0:a.visibleConf.adjust=a.visible,a.visible=!1):is_function(a.visible)&&(a.visibleConf.adjust=a.visible,a.visible=!1),is_string(a.filter)||(a.filter=c.filter(":hidden").length>0?":visible":"*"),a[b.d.width]||(b.responsive?(debug(!0,"Set a "+b.d.width+" for the items!"),a[b.d.width]=ms_getTrueLargestSize(c,b,"outerWidth")):a[b.d.width]=ms_hasVariableSizes(c,b,"outerWidth")?"variable":c[b.d.outerWidth](!0)),a[b.d.height]||(a[b.d.height]=ms_hasVariableSizes(c,b,"outerHeight")?"variable":c[b.d.outerHeight](!0)),a.sizesConf.width=a.width,a.sizesConf.height=a.height,a}function in_complementVisibleItems(a,b){return"variable"==a.items[a.d.width]&&(a.items.visibleConf.variable=!0),a.items.visibleConf.variable||(is_number(a[a.d.width])?a.items.visible=Math.floor(a[a.d.width]/a.items[a.d.width]):(a.items.visible=Math.floor(b/a.items[a.d.width]),a[a.d.width]=a.items.visible*a.items[a.d.width],a.items.visibleConf.adjust||(a.align=!1)),("Infinity"==a.items.visible||1>a.items.visible)&&(debug(!0,'Not a valid number of visible items: Set to "variable".'),a.items.visibleConf.variable=!0)),a}function in_complementPrimarySize(a,b,c){return"auto"==a&&(a=ms_getTrueLargestSize(c,b,"outerWidth")),a}function in_complementSecondarySize(a,b,c){return"auto"==a&&(a=ms_getTrueLargestSize(c,b,"outerHeight")),a||(a=b.items[b.d.height]),a}function in_getAlignPadding(a,b){var c=cf_getAlignPadding(gi_getCurrentItems(b,a),a);return a.padding[a.d[1]]=c[1],a.padding[a.d[3]]=c[0],a}function in_getResponsiveValues(a,b){var d=cf_getItemAdjustMinMax(Math.ceil(a[a.d.width]/a.items[a.d.width]),a.items.visibleConf);d>b.length&&(d=b.length);var e=Math.floor(a[a.d.width]/d);return a.items.visible=d,a.items[a.d.width]=e,a[a.d.width]=d*e,a}function bt_pauseOnHoverConfig(a){if(is_string(a))var b=a.indexOf("immediate")>-1?!0:!1,c=a.indexOf("resume")>-1?!0:!1;else var b=c=!1;return[b,c]}function bt_mousesheelNumber(a){return is_number(a)?a:null}function is_null(a){return null===a}function is_undefined(a){return is_null(a)||a===void 0||""===a||"undefined"===a}function is_array(a){return a instanceof Array}function is_jquery(a){return a instanceof jQuery}function is_object(a){return(a instanceof Object||"object"==typeof a)&&!is_null(a)&&!is_jquery(a)&&!is_array(a)&&!is_function(a)}function is_number(a){return(a instanceof Number||"number"==typeof a)&&!isNaN(a)}function is_string(a){return(a instanceof String||"string"==typeof a)&&!is_undefined(a)&&!is_true(a)&&!is_false(a)}function is_function(a){return a instanceof Function||"function"==typeof a}function is_boolean(a){return a instanceof Boolean||"boolean"==typeof a||is_true(a)||is_false(a)}function is_true(a){return a===!0||"true"===a}function is_false(a){return a===!1||"false"===a}function is_percentage(a){return is_string(a)&&"%"==a.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(a,b){debug(!0,a+" is DEPRECATED, support for it will be removed. Use "+b+" instead.")}function debug(a,b){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){if(is_object(a)){var c=" ("+a.selector+")";a=a.debug}else var c="";if(!a)return!1;b=is_string(b)?"carouFredSel"+c+": "+b:["carouFredSel"+c+":",b],window.console.log(b)}return!1}$.fn.carouFredSel||($.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if(0==this.length)return debug(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){$(this).carouFredSel(options,configs)});var $cfs=this,$tt0=this[0],starting_position=!1;$cfs.data("_cfs_isCarousel")&&(starting_position=$cfs.triggerHandler("_cfs_triggerEvent","currentPosition"),$cfs.trigger("_cfs_triggerEvent",["destroy",!0]));var FN={};FN._init=function(a,b,c){a=go_getObject($tt0,a),a.items=go_getItemsObject($tt0,a.items),a.scroll=go_getScrollObject($tt0,a.scroll),a.auto=go_getAutoObject($tt0,a.auto),a.prev=go_getPrevNextObject($tt0,a.prev),a.next=go_getPrevNextObject($tt0,a.next),a.pagination=go_getPaginationObject($tt0,a.pagination),a.swipe=go_getSwipeObject($tt0,a.swipe),a.mousewheel=go_getMousewheelObject($tt0,a.mousewheel),b&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,a)),opts=$.extend(!0,{},$.fn.carouFredSel.defaults,a),opts.d=cf_getDimensions(opts),crsl.direction="up"==opts.direction||"left"==opts.direction?"next":"prev";var d=$cfs.children(),e=ms_getParentSize($wrp,opts,"width");if(is_true(opts.cookie)&&(opts.cookie="caroufredsel_cookie_"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,e),opts.items=in_complementItems(opts.items,opts,d,c),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,d),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,d),opts.responsive&&(is_percentage(opts[opts.d.width])||(opts[opts.d.width]="100%")),is_percentage(opts[opts.d.width])&&(crsl.upDateOnWindowResize=!0,crsl.primarySizePercentage=opts[opts.d.width],opts[opts.d.width]=ms_getPercentage(e,crsl.primarySizePercentage),opts.items.visible||(opts.items.visibleConf.variable=!0)),opts.responsive?(opts.usePadding=!1,opts.padding=[0,0,0,0],opts.align=!1,opts.items.visibleConf.variable=!1):(opts.items.visible||(opts=in_complementVisibleItems(opts,e)),opts[opts.d.width]||(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&"*"==opts.items.filter?(opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width],opts.align=!1):opts[opts.d.width]="variable"),is_undefined(opts.align)&&(opts.align=is_number(opts[opts.d.width])?"center":!1),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(d,opts,0))),"*"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(d,opts,0)),opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts.responsive)opts.items.visibleConf.min||(opts.items.visibleConf.min=opts.items.visible),opts.items.visibleConf.max||(opts.items.visibleConf.max=opts.items.visible),opts=in_getResponsiveValues(opts,d,e);else switch(opts.padding=cf_getPadding(opts.padding),"top"==opts.align?opts.align="left":"bottom"==opts.align&&(opts.align="right"),opts.align){case"center":case"left":case"right":"variable"!=opts[opts.d.width]&&(opts=in_getAlignPadding(opts,d),opts.usePadding=!0);break;default:opts.align=!1,opts.usePadding=0==opts.padding[0]&&0==opts.padding[1]&&0==opts.padding[2]&&0==opts.padding[3]?!1:!0}is_number(opts.scroll.duration)||(opts.scroll.duration=500),is_undefined(opts.scroll.items)&&(opts.scroll.items=opts.responsive||opts.items.visibleConf.variable||"*"!=opts.items.filter?"visible":opts.items.visible),opts.auto=$.extend(!0,{},opts.scroll,opts.auto),opts.prev=$.extend(!0,{},opts.scroll,opts.prev),opts.next=$.extend(!0,{},opts.scroll,opts.next),opts.pagination=$.extend(!0,{},opts.scroll,opts.pagination),opts.auto=go_complementAutoObject($tt0,opts.auto),opts.prev=go_complementPrevNextObject($tt0,opts.prev),opts.next=go_complementPrevNextObject($tt0,opts.next),opts.pagination=go_complementPaginationObject($tt0,opts.pagination),opts.swipe=go_complementSwipeObject($tt0,opts.swipe),opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel),opts.synchronise&&(opts.synchronise=cf_getSynchArr(opts.synchronise)),opts.auto.onPauseStart&&(opts.auto.onTimeoutStart=opts.auto.onPauseStart,deprecated("auto.onPauseStart","auto.onTimeoutStart")),opts.auto.onPausePause&&(opts.auto.onTimeoutPause=opts.auto.onPausePause,deprecated("auto.onPausePause","auto.onTimeoutPause")),opts.auto.onPauseEnd&&(opts.auto.onTimeoutEnd=opts.auto.onPauseEnd,deprecated("auto.onPauseEnd","auto.onTimeoutEnd")),opts.auto.pauseDuration&&(opts.auto.timeoutDuration=opts.auto.pauseDuration,deprecated("auto.pauseDuration","auto.timeoutDuration"))},FN._build=function(){$cfs.data("_cfs_isCarousel",!0);var a=$cfs.children(),b=in_mapCss($cfs,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),c="relative";switch(b.position){case"absolute":case"fixed":c=b.position}"parent"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(b),$wrp.css({overflow:"hidden",position:c}),sz_storeOrigCss($cfs),$cfs.data("_cfs_origCssZindex",b.zIndex),$cfs.css({textAlign:"left","float":"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),sz_storeMargin(a,opts),sz_storeOrigCss(a),opts.responsive&&sz_setResponsiveSizes(opts,a)},FN._bind_events=function(){FN._unbind_events(),$cfs.bind(cf_e("stop",conf),function(a,b){return a.stopPropagation(),crsl.isStopped||opts.auto.button&&opts.auto.button.addClass(cf_c("stopped",conf)),crsl.isStopped=!0,opts.auto.play&&(opts.auto.play=!1,$cfs.trigger(cf_e("pause",conf),b)),!0}),$cfs.bind(cf_e("finish",conf),function(a){return a.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0}),$cfs.bind(cf_e("pause",conf),function(a,b,c){if(a.stopPropagation(),tmrs=sc_clearTimers(tmrs),b&&crsl.isScrolling){scrl.isStopped=!0;var d=getTime()-scrl.startTime;scrl.duration-=d,scrl.pre&&(scrl.pre.duration-=d),scrl.post&&(scrl.post.duration-=d),sc_stopScroll(scrl,!1)}if(crsl.isPaused||crsl.isScrolling||c&&(tmrs.timePassed+=getTime()-tmrs.startTime),crsl.isPaused||opts.auto.button&&opts.auto.button.addClass(cf_c("paused",conf)),crsl.isPaused=!0,opts.auto.onTimeoutPause){var e=opts.auto.timeoutDuration-tmrs.timePassed,f=100-Math.ceil(100*e/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,f,e)}return!0}),$cfs.bind(cf_e("play",conf),function(a,b,c,d){a.stopPropagation(),tmrs=sc_clearTimers(tmrs);var e=[b,c,d],f=["string","number","boolean"],g=cf_sortParams(e,f);if(b=g[0],c=g[1],d=g[2],"prev"!=b&&"next"!=b&&(b=crsl.direction),is_number(c)||(c=0),is_boolean(d)||(d=!1),d&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return a.stopImmediatePropagation(),debug(conf,"Carousel stopped: Not scrolling.");crsl.isPaused&&opts.auto.button&&(opts.auto.button.removeClass(cf_c("stopped",conf)),opts.auto.button.removeClass(cf_c("paused",conf))),crsl.isPaused=!1,tmrs.startTime=getTime();var h=opts.auto.timeoutDuration+c;return dur2=h-tmrs.timePassed,perc=100-Math.ceil(100*dur2/h),opts.auto.progress&&(tmrs.progress=setInterval(function(){var a=getTime()-tmrs.startTime+tmrs.timePassed,b=Math.ceil(100*a/h);opts.auto.progress.updater.call(opts.auto.progress.bar[0],b)},opts.auto.progress.interval)),tmrs.auto=setTimeout(function(){opts.auto.progress&&opts.auto.progress.updater.call(opts.auto.progress.bar[0],100),opts.auto.onTimeoutEnd&&opts.auto.onTimeoutEnd.call($tt0,perc,dur2),crsl.isScrolling?$cfs.trigger(cf_e("play",conf),b):$cfs.trigger(cf_e(b,conf),opts.auto)},dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0}),$cfs.bind(cf_e("resume",conf),function(a){return a.stopPropagation(),scrl.isStopped?(scrl.isStopped=!1,crsl.isPaused=!1,crsl.isScrolling=!0,scrl.startTime=getTime(),sc_startScroll(scrl,conf)):$cfs.trigger(cf_e("play",conf)),!0}),$cfs.bind(cf_e("prev",conf)+" "+cf_e("next",conf),function(a,b,c,d,e){if(a.stopPropagation(),crsl.isStopped||$cfs.is(":hidden"))return a.stopImmediatePropagation(),debug(conf,"Carousel stopped or hidden: Not scrolling.");var f=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(f>itms.total)return a.stopImmediatePropagation(),debug(conf,"Not enough items ("+itms.total+" total, "+f+" needed): Not scrolling.");var g=[b,c,d,e],h=["object","number/string","function","boolean"],i=cf_sortParams(g,h);b=i[0],c=i[1],d=i[2],e=i[3];var j=a.type.slice(conf.events.prefix.length);if(is_object(b)||(b={}),is_function(d)&&(b.onAfter=d),is_boolean(e)&&(b.queue=e),b=$.extend(!0,{},opts[j],b),b.conditions&&!b.conditions.call($tt0,j))return a.stopImmediatePropagation(),debug(conf,'Callback "conditions" returned false.');if(!is_number(c)){if("*"!=opts.items.filter)c="visible";else for(var k=[c,b.items,opts[j].items],i=0,l=k.length;l>i;i++)if(is_number(k[i])||"page"==k[i]||"visible"==k[i]){c=k[i];break}switch(c){case"page":return a.stopImmediatePropagation(),$cfs.triggerHandler(cf_e(j+"Page",conf),[b,d]);case"visible":opts.items.visibleConf.variable||"*"!=opts.items.filter||(c=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e("resume",conf)),$cfs.trigger(cf_e("queue",conf),[j,[b,c,d]]),a.stopImmediatePropagation(),debug(conf,"Carousel resumed scrolling.");if(b.duration>0&&crsl.isScrolling)return b.queue&&("last"==b.queue&&(queu=[]),("first"!=b.queue||0==queu.length)&&$cfs.trigger(cf_e("queue",conf),[j,[b,c,d]])),a.stopImmediatePropagation(),debug(conf,"Carousel currently scrolling.");if(tmrs.timePassed=0,$cfs.trigger(cf_e("slide_"+j,conf),[b,c]),opts.synchronise)for(var m=opts.synchronise,n=[b,c],o=0,l=m.length;l>o;o++){var p=j;m[o][2]||(p="prev"==p?"next":"prev"),m[o][1]||(n[0]=m[o][0].triggerHandler("_cfs_triggerEvent",["configuration",p])),n[1]=c+m[o][3],m[o][0].trigger("_cfs_triggerEvent",["slide_"+p,n])}return!0}),$cfs.bind(cf_e("slide_prev",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e("next",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if(opts.items.visibleConf.variable)c=gn_getVisibleItemsPrev(d,opts,itms.total-1);else if("*"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsPrevFilter(d,opts,itms.total-1,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}if(opts.circular||itms.total-c=opts.items.visible+c&&itms.total>c&&(c++,f=cf_getItemsAdjust(gn_getVisibleItemsNext(d,opts,itms.total-c),opts,opts.items.visibleConf.adjust,$tt0)),opts.items.visible=f}else if("*"!=opts.items.filter){var f=gn_getVisibleItemsNextFilter(d,opts,itms.total-c);opts.items.visible=cf_getItemsAdjust(f,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(d,opts,!0),0==c)return a.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+c+" items backward."),itms.first+=c;itms.first>=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&b.onEnd&&b.onEnd.call($tt0,"prev"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-c,itms.total).prependTo($cfs),itms.totall?opts.padding[opts.d[3]]:0,p=!1,q=$();if(c>opts.items.visible&&(q=d.slice(opts.items.visibleConf.old,c),"directscroll"==b.fx)){var r=opts.items[opts.d.width];p=q,i=k,sc_hideHiddenItems(p),opts.items[opts.d.width]="variable"}var s=!1,t=ms_getTotalSize(d.slice(0,c),opts,"width"),u=cf_mapWrapperSizes(ms_getSizes(h,opts,!0),opts,!opts.usePadding),v=0,w={},x={},y={},z={},A={},B={},C={},D=sc_getDuration(b,opts,c,t);switch(b.fx){case"cover":case"cover-fade":v=ms_getTotalSize(d.slice(0,opts.items.visible),opts,"width")}p&&(opts.items[opts.d.width]=r),sz_resetMargin(d,opts,!0),m>=0&&sz_resetMargin(j,opts,opts.padding[opts.d[1]]),l>=0&&sz_resetMargin(i,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=m,opts.padding[opts.d[3]]=l),B[opts.d.left]=-(t-o),C[opts.d.left]=-(v-o),x[opts.d.left]=u[opts.d.width];var E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){},L=function(){},M=function(){},N=function(){},O=function(){};switch(b.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":s=$cfs.clone(!0).appendTo($wrp)}switch(b.fx){case"crossfade":case"uncover":case"uncover-fade":s.children().slice(0,c).remove(),s.children().slice(opts.items.visibleConf.old).remove();break;case"cover":case"cover-fade":s.children().slice(opts.items.visible).remove(),s.css(C)}if($cfs.css(B),scrl=sc_setScroll(D,b.easing,conf),w[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(E=function(){$wrp.css(u)},F=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){switch(k.not(i).length&&(y[opts.d.marginRight]=i.data("_cfs_origCssMargin"),0>l?i.css(y):(K=function(){i.css(y)},L=function(){scrl.anims.push([i,y])})),b.fx){case"cover":case"cover-fade":s.children().eq(c-1).css(y)}k.not(j).length&&(z[opts.d.marginRight]=j.data("_cfs_origCssMargin"),G=function(){j.css(z)},H=function(){scrl.anims.push([j,z])}),m>=0&&(A[opts.d.marginRight]=k.data("_cfs_origCssMargin")+opts.padding[opts.d[1]],I=function(){k.css(A)},J=function(){scrl.anims.push([k,A])})}O=function(){$cfs.css(w)};var P=opts.items.visible+c-itms.total;N=function(){if(P>0&&($cfs.children().slice(itms.total).remove(),g=$($cfs.children().slice(itms.total-(opts.items.visible-P)).get().concat($cfs.children().slice(0,P).get()))),sc_showHiddenItems(p),opts.usePadding){var a=$cfs.children().eq(opts.items.visible+c-1);a.css(opts.d.marginRight,a.data("_cfs_origCssMargin"))}};var Q=sc_mapCallbackArguments(g,q,h,c,"prev",D,u);switch(M=function(){sc_afterScroll($cfs,s,b),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,b,"onAfter",Q,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,b,"onBefore",Q,clbk),b.fx){case"none":$cfs.css(w),E(),G(),I(),K(),O(),N(),M();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){E(),G(),I(),K(),O(),N(),scrl=sc_setScroll(D,b.easing,conf),scrl.anims.push([$cfs,{opacity:1},M]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},M]),F(),G(),I(),K(),O(),N();break;case"cover":scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case"cover-fade":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case"uncover":scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;default:scrl.anims.push([$cfs,w,function(){N(),M()}]),F(),H(),J(),L()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,u]),!0 +}),$cfs.bind(cf_e("slide_next",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e("prev",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if("*"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsNextFilter(d,opts,0,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}var f=0==itms.first?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable)var g=gn_getVisibleItemsNext(d,opts,c),e=gn_getVisibleItemsPrev(d,opts,f-1);else var g=opts.items.visible,e=opts.items.visible;c+g>f&&(c=f-e)}if(opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(var g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-c>=g&&itms.total>c;)c++,g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible=g}else if("*"!=opts.items.filter){var g=gn_getVisibleItemsNextFilter(d,opts,c);opts.items.visible=cf_getItemsAdjust(g,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(d,opts,!0),0==c)return a.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+c+" items forward."),itms.first-=c;0>itms.first;)itms.first+=itms.total;opts.circular||(itms.first==opts.items.visible&&b.onEnd&&b.onEnd.call($tt0,"next"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),itms.totalopts.items.visibleConf.old&&(q=d.slice(opts.items.visibleConf.old,c),"directscroll"==b.fx)){var r=opts.items[opts.d.width];p=q,j=k,sc_hideHiddenItems(p),opts.items[opts.d.width]="variable"}var s=!1,t=ms_getTotalSize(d.slice(0,c),opts,"width"),u=cf_mapWrapperSizes(ms_getSizes(i,opts,!0),opts,!opts.usePadding),v=0,w={},x={},y={},z={},A={},B=sc_getDuration(b,opts,c,t);switch(b.fx){case"uncover":case"uncover-fade":v=ms_getTotalSize(d.slice(0,opts.items.visibleConf.old),opts,"width")}p&&(opts.items[opts.d.width]=r),opts.align&&0>opts.padding[opts.d[1]]&&(opts.padding[opts.d[1]]=0),sz_resetMargin(d,opts,!0),sz_resetMargin(k,opts,opts.padding[opts.d[1]]),opts.align&&(opts.padding[opts.d[1]]=n,opts.padding[opts.d[3]]=m),A[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0;var C=function(){},D=function(){},E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){};switch(b.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":s=$cfs.clone(!0).appendTo($wrp),s.children().slice(opts.items.visibleConf.old).remove()}switch(b.fx){case"crossfade":case"cover":case"cover-fade":$cfs.css("zIndex",1),s.css("zIndex",0)}if(scrl=sc_setScroll(B,b.easing,conf),w[opts.d.left]=-t,x[opts.d.left]=-v,0>m&&(w[opts.d.left]+=m),("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(C=function(){$wrp.css(u)},D=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){var L=l.data("_cfs_origCssMargin");n>=0&&(L+=opts.padding[opts.d[1]]),l.css(opts.d.marginRight,L),j.not(k).length&&(z[opts.d.marginRight]=k.data("_cfs_origCssMargin")),E=function(){k.css(z)},F=function(){scrl.anims.push([k,z])};var M=j.data("_cfs_origCssMargin");m>0&&(M+=opts.padding[opts.d[3]]),y[opts.d.marginRight]=M,G=function(){j.css(y)},H=function(){scrl.anims.push([j,y])}}K=function(){$cfs.css(A)};var N=opts.items.visible+c-itms.total;J=function(){N>0&&$cfs.children().slice(itms.total).remove();var a=$cfs.children().slice(0,c).appendTo($cfs).last();if(N>0&&(i=gi_getCurrentItems(d,opts)),sc_showHiddenItems(p),opts.usePadding){if(itms.total=b?"next":"prev":0==itms.first||itms.first>b?"next":"prev"),"prev"==f&&(b=itms.total-b),$cfs.trigger(cf_e(f,conf),[e,b,g]),!0)}),$cfs.bind(cf_e("prevPage",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[d-1,b,"prev",c])}),$cfs.bind(cf_e("nextPage",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[d+1,b,"next",c])}),$cfs.bind(cf_e("slideToPage",conf),function(a,b,c,d,e){a.stopPropagation(),is_number(b)||(b=$cfs.triggerHandler(cf_e("currentPage",conf)));var f=opts.pagination.items||opts.items.visible,g=Math.ceil(itms.total/f)-1;return 0>b&&(b=g),b>g&&(b=0),$cfs.triggerHandler(cf_e("slideTo",conf),[b*f,0,!0,c,d,e])}),$cfs.bind(cf_e("jumpToStart",conf),function(a,b){if(a.stopPropagation(),b=b?gn_getItemIndex(b,0,!0,itms,$cfs):0,b+=itms.first,0!=b){if(itms.total>0)for(;b>itms.total;)b-=itms.total;$cfs.prepend($cfs.children().slice(b,itms.total))}return!0}),$cfs.bind(cf_e("synchronise",conf),function(a,b){if(a.stopPropagation(),b)b=cf_getSynchArr(b);else{if(!opts.synchronise)return debug(conf,"No carousel to synchronise.");b=opts.synchronise}for(var c=$cfs.triggerHandler(cf_e("currentPosition",conf)),d=!0,e=0,f=b.length;f>e;e++)b[e][0].triggerHandler(cf_e("slideTo",conf),[c,b[e][3],!0])||(d=!1);return d}),$cfs.bind(cf_e("queue",conf),function(a,b,c){return a.stopPropagation(),is_function(b)?b.call($tt0,queu):is_array(b)?queu=b:is_undefined(b)||queu.push([b,c]),queu}),$cfs.bind(cf_e("insertItem",conf),function(a,b,c,d,e){a.stopPropagation();var f=[b,c,d,e],g=["string/object","string/number/object","boolean","number"],h=cf_sortParams(f,g);if(b=h[0],c=h[1],d=h[2],e=h[3],is_object(b)&&!is_jquery(b)?b=$(b):is_string(b)&&(b=$(b)),!is_jquery(b)||0==b.length)return debug(conf,"Not a valid object.");is_undefined(c)&&(c="end"),sz_storeMargin(b,opts),sz_storeOrigCss(b);var i=c,j="before";"end"==c?d?(0==itms.first?(c=itms.total-1,j="after"):(c=itms.first,itms.first+=b.length),0>c&&(c=0)):(c=itms.total-1,j="after"):c=gn_getItemIndex(c,e,d,itms,$cfs);var k=$cfs.children().eq(c);return k.length?k[j](b):(debug(conf,"Correct insert-position not found! Appending item to the end."),$cfs.append(b)),"end"==i||d||itms.first>c&&(itms.first+=b.length),itms.total=$cfs.children().length,itms.first>=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e("updateSizes",conf)),$cfs.trigger(cf_e("linkAnchors",conf)),!0}),$cfs.bind(cf_e("removeItem",conf),function(a,b,c,d){a.stopPropagation();var e=[b,c,d],f=["string/number/object","boolean","number"],g=cf_sortParams(e,f);if(b=g[0],c=g[1],d=g[2],b instanceof $&&b.length>1)return i=$(),b.each(function(){var e=$cfs.trigger(cf_e("removeItem",conf),[$(this),c,d]);e&&(i=i.add(e))}),i;if(is_undefined(b)||"end"==b)i=$cfs.children().last();else{b=gn_getItemIndex(b,d,c,itms,$cfs);var i=$cfs.children().eq(b);i.length&&itms.first>b&&(itms.first-=i.length)}return i&&i.length&&(i.detach(),itms.total=$cfs.children().length,$cfs.trigger(cf_e("updateSizes",conf))),i}),$cfs.bind(cf_e("onBefore",conf)+" "+cf_e("onAfter",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length);return is_array(b)&&(clbk[c]=b),is_function(b)&&clbk[c].push(b),clbk[c]}),$cfs.bind(cf_e("currentPosition",conf),function(a,b){if(a.stopPropagation(),0==itms.first)var c=0;else var c=itms.total-itms.first;return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e("currentPage",conf),function(a,b){a.stopPropagation();var e,c=opts.pagination.items||opts.items.visible,d=Math.ceil(itms.total/c-1);return e=0==itms.first?0:itms.firste&&(e=0),e>d&&(e=d),is_function(b)&&b.call($tt0,e),e}),$cfs.bind(cf_e("currentVisible",conf),function(a,b){a.stopPropagation();var c=gi_getCurrentItems($cfs.children(),opts);return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e("slice",conf),function(a,b,c,d){if(a.stopPropagation(),0==itms.total)return!1;var e=[b,c,d],f=["number","number","function"],g=cf_sortParams(e,f);if(b=is_number(g[0])?g[0]:0,c=is_number(g[1])?g[1]:itms.total,d=g[2],b+=itms.first,c+=itms.first,items.total>0){for(;b>itms.total;)b-=itms.total;for(;c>itms.total;)c-=itms.total;for(;0>b;)b+=itms.total;for(;0>c;)c+=itms.total}var i,h=$cfs.children();return i=c>b?h.slice(b,c):$(h.slice(b,itms.total).get().concat(h.slice(0,c).get())),is_function(d)&&d.call($tt0,i),i}),$cfs.bind(cf_e("isPaused",conf)+" "+cf_e("isStopped",conf)+" "+cf_e("isScrolling",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length),d=crsl[c];return is_function(b)&&b.call($tt0,d),d}),$cfs.bind(cf_e("configuration",conf),function(e,a,b,c){e.stopPropagation();var reInit=!1;if(is_function(a))a.call($tt0,opts);else if(is_object(a))opts_orig=$.extend(!0,{},opts_orig,a),b!==!1?reInit=!0:opts=$.extend(!0,{},opts,a);else if(!is_undefined(a))if(is_function(b)){var val=eval("opts."+a);is_undefined(val)&&(val=""),b.call($tt0,val)}else{if(is_undefined(b))return eval("opts."+a);"boolean"!=typeof c&&(c=!0),eval("opts_orig."+a+" = b"),c!==!1?reInit=!0:eval("opts."+a+" = b")}if(reInit){sz_resetMargin($cfs.children(),opts),FN._init(opts_orig),FN._bind_buttons();var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e("updatePageStatus",conf),[!0,sz])}return opts}),$cfs.bind(cf_e("linkAnchors",conf),function(a,b,c){return a.stopPropagation(),is_undefined(b)?b=$("body"):is_string(b)&&(b=$(b)),is_jquery(b)&&0!=b.length?(is_string(c)||(c="a.caroufredsel"),b.find(c).each(function(){var a=this.hash||"";a.length>0&&-1!=$cfs.children().index($(a))&&$(this).unbind("click").click(function(b){b.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),a)})}),!0):debug(conf,"Not a valid object.")}),$cfs.bind(cf_e("updatePageStatus",conf),function(a,b){if(a.stopPropagation(),opts.pagination.container){var d=opts.pagination.items||opts.items.visible,e=Math.ceil(itms.total/d);b&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each(function(){for(var a=0;e>a;a++){var b=$cfs.children().eq(gn_getItemIndex(a*d,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(b[0],a+1))}})),opts.pagination.container.each(function(){$(this).children().unbind(opts.pagination.event).each(function(a){$(this).bind(opts.pagination.event,function(b){b.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[a*d,-opts.pagination.deviation,!0,opts.pagination])})})}));var f=$cfs.triggerHandler(cf_e("currentPage",conf))+opts.pagination.deviation;return f>=e&&(f=0),0>f&&(f=e-1),opts.pagination.container.each(function(){$(this).children().removeClass(cf_c("selected",conf)).eq(f).addClass(cf_c("selected",conf))}),!0}}),$cfs.bind(cf_e("updateSizes",conf),function(){var b=opts.items.visible,c=$cfs.children(),d=ms_getParentSize($wrp,opts,"width");if(itms.total=c.length,crsl.primarySizePercentage?(opts.maxDimension=d,opts[opts.d.width]=ms_getPercentage(d,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,d),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,opts=in_getResponsiveValues(opts,c,d),b=opts.items.visible,sz_setResponsiveSizes(opts,c)):opts.items.visibleConf.variable?b=gn_getVisibleItemsNext(c,opts,0):"*"!=opts.items.filter&&(b=gn_getVisibleItemsNextFilter(c,opts,0)),!opts.circular&&0!=itms.first&&b>itms.first){if(opts.items.visibleConf.variable)var e=gn_getVisibleItemsPrev(c,opts,itms.first)-itms.first;else if("*"!=opts.items.filter)var e=gn_getVisibleItemsPrevFilter(c,opts,itms.first)-itms.first;else var e=opts.items.visible-itms.first;debug(conf,"Preventing non-circular: sliding "+e+" items backward."),$cfs.trigger(cf_e("prev",conf),e)}opts.items.visible=cf_getItemsAdjust(b,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,c);var f=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e("updatePageStatus",conf),[!0,f]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),f}),$cfs.bind(cf_e("destroy",conf),function(a,b){return a.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data("_cfs_isCarousel",!1),$cfs.trigger(cf_e("finish",conf)),b&&$cfs.trigger(cf_e("jumpToStart",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),"parent"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e("debug",conf),function(){return debug(conf,"Carousel width: "+opts.width),debug(conf,"Carousel height: "+opts.height),debug(conf,"Item widths: "+opts.items.width),debug(conf,"Item heights: "+opts.items.height),debug(conf,"Number of items visible: "+opts.items.visible),opts.auto.play&&debug(conf,"Number of items scrolled automatically: "+opts.auto.items),opts.prev.button&&debug(conf,"Number of items scrolled backward: "+opts.prev.items),opts.next.button&&debug(conf,"Number of items scrolled forward: "+opts.next.items),conf.debug}),$cfs.bind("_cfs_triggerEvent",function(a,b,c){return a.stopPropagation(),$cfs.triggerHandler(cf_e(b,conf),c)})},FN._unbind_events=function(){$cfs.unbind(cf_e("",conf)),$cfs.unbind(cf_e("",conf,!1)),$cfs.unbind("_cfs_triggerEvent")},FN._bind_buttons=function(){if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(a){a.preventDefault();var b=!1,c=null;crsl.isPaused?b="play":opts.auto.pauseOnEvent&&(b="pause",c=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),b&&$cfs.trigger(cf_e(b,conf),c)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e("prev",conf))}),opts.prev.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e("next",conf))}),opts.next.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.pagination.container&&opts.pagination.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if((opts.prev.key||opts.next.key)&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(a){var b=a.keyCode;b==opts.next.key&&(a.preventDefault(),$cfs.trigger(cf_e("next",conf))),b==opts.prev.key&&(a.preventDefault(),$cfs.trigger(cf_e("prev",conf)))}),opts.pagination.keys&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(a){var b=a.keyCode;b>=49&&58>b&&(b=(b-49)*opts.items.visible,itms.total>=b&&(a.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[b,0,!0,opts.pagination])))}),$.fn.swipe){var b="ontouchstart"in window;if(b&&opts.swipe.onTouch||!b&&opts.swipe.onMouse){var c=$.extend(!0,{},opts.prev,opts.swipe),d=$.extend(!0,{},opts.next,opts.swipe),e=function(){$cfs.trigger(cf_e("prev",conf),[c])},f=function(){$cfs.trigger(cf_e("next",conf),[d])};switch(opts.direction){case"up":case"down":opts.swipe.options.swipeUp=f,opts.swipe.options.swipeDown=e;break;default:opts.swipe.options.swipeLeft=f,opts.swipe.options.swipeRight=e}crsl.swipe&&$cfs.swipe("destroy"),$wrp.swipe(opts.swipe.options),$wrp.css("cursor","move"),crsl.swipe=!0}}if($.fn.mousewheel&&opts.mousewheel){var g=$.extend(!0,{},opts.prev,opts.mousewheel),h=$.extend(!0,{},opts.next,opts.mousewheel);crsl.mousewheel&&$wrp.unbind(cf_e("mousewheel",conf,!1)),$wrp.bind(cf_e("mousewheel",conf,!1),function(a,b){a.preventDefault(),b>0?$cfs.trigger(cf_e("prev",conf),[g]):$cfs.trigger(cf_e("next",conf),[h])}),crsl.mousewheel=!0}if(opts.auto.play&&$cfs.trigger(cf_e("play",conf),opts.auto.delay),crsl.upDateOnWindowResize){var i=function(){$cfs.trigger(cf_e("finish",conf)),opts.auto.pauseOnResize&&!crsl.isPaused&&$cfs.trigger(cf_e("play",conf)),sz_resetMargin($cfs.children(),opts),$cfs.trigger(cf_e("updateSizes",conf))},j=$(window),k=null;if($.debounce&&"debounce"==conf.onWindowResize)k=$.debounce(200,i);else if($.throttle&&"throttle"==conf.onWindowResize)k=$.throttle(300,i);else{var l=0,m=0;k=function(){var a=j.width(),b=j.height();(a!=l||b!=m)&&(i(),l=a,m=b)}}j.bind(cf_e("resize",conf,!1,!0,!0),k)}},FN._unbind_buttons=function(){var b=(cf_e("",conf),cf_e("",conf,!1));ns3=cf_e("",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(b),opts.auto.button&&opts.auto.button.unbind(b),opts.prev.button&&opts.prev.button.unbind(b),opts.next.button&&opts.next.button.unbind(b),opts.pagination.container&&(opts.pagination.container.unbind(b),opts.pagination.anchorBuilder&&opts.pagination.container.children().remove()),crsl.swipe&&($cfs.swipe("destroy"),$wrp.css("cursor","default"),crsl.swipe=!1),crsl.mousewheel&&(crsl.mousewheel=!1),nv_showNavi(opts,"hide",conf),nv_enableNavi(opts,"removeClass",conf)},is_boolean(configs)&&(configs={debug:configs});var crsl={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(!0,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(!0,{},options),$wrp="parent"==conf.wrapper?$cfs.parent():$cfs.wrap("<"+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />').parent();if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?"transition":"animate",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start))var start_arr=opts.items.start;else{var start_arr=[];0!=opts.items.start&&start_arr.push(opts.items.start)}if(opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),start_arr.length>0)for(var a=0,l=start_arr.length;l>a;a++){var s=start_arr[a];if(0!=s){if(s===!0){if(s=window.location.hash,1>s.length)continue}else"random"===s&&(s=Math.floor(Math.random()*itms.total));if($cfs.triggerHandler(cf_e("slideTo",conf),[s,0,!0,{fx:"none"}]))break}}var siz=sz_setSizes($cfs,opts),itm=gi_getCurrentItems($cfs.children(),opts);return opts.onCreate&&opts.onCreate.call($tt0,{width:siz.width,height:siz.height,items:itm}),$cfs.trigger(cf_e("updatePageStatus",conf),[!0,siz]),$cfs.trigger(cf_e("linkAnchors",conf)),conf.debug&&$cfs.trigger(cf_e("debug",conf)),$cfs},$.fn.carouFredSel.serialNumber=1,$.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,direction:"left",items:{start:0},scroll:{easing:"swing",duration:500,pauseOnHover:!1,event:"click",queue:!1}},$.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:"throttle",events:{prefix:"",namespace:"cfs"},wrapper:{element:"div",classname:"caroufredsel_wrapper"},classnames:{}},$.fn.carouFredSel.pageAnchorBuilder=function(a){return''+a+""},$.fn.carouFredSel.progressbarUpdater=function(a){$(this).css("width",a+"%")},$.fn.carouFredSel.cookie={get:function(a){a+="=";for(var b=document.cookie.split(";"),c=0,d=b.length;d>c;c++){for(var e=b[c];" "==e.charAt(0);)e=e.slice(1);if(0==e.indexOf(a))return e.slice(a.length)}return 0},set:function(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+1e3*60*60*24*c),d="; expires="+e.toGMTString()}document.cookie=a+"="+b+d+"; path=/"},remove:function(a){$.fn.carouFredSel.cookie.set(a,"",-1)}},$.extend($.easing,{quadratic:function(a){var b=a*a;return a*(-b*a+4*b-6*a+4)},cubic:function(a){return a*(4*a*a-9*a+6)},elastic:function(a){var b=a*a;return a*(33*b*b-106*b*a+126*b-67*a+15)}}))})(jQuery); \ No newline at end of file diff --git a/js/jquery.countdown.min.js b/js/jquery.countdown.min.js new file mode 100644 index 0000000..d60a999 --- /dev/null +++ b/js/jquery.countdown.min.js @@ -0,0 +1,6 @@ +/* http://keith-wood.name/countdown.html + Countdown for jQuery v1.6.2. + Written by Keith Wood (kbwood{at}iinet.com.au) January 2008. + Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license. + Please attribute the author if you use it. */ +(function($){function Countdown(){this.regional=[];this.regional['']={labels:['Years','Months','Weeks','Days','Hours','Minutes','Seconds'],labels1:['Year','Month','Week','Day','Hour','Minute','Second'],compactLabels:['y','m','w','d'],whichLabels:null,digits:['0','1','2','3','4','5','6','7','8','9'],timeSeparator:':',isRTL:false};this._defaults={until:null,since:null,timezone:null,serverSync:null,format:'dHMS',layout:'',compact:false,significant:0,description:'',expiryUrl:'',expiryText:'',alwaysExpire:false,onExpiry:null,onTick:null,tickInterval:1};$.extend(this._defaults,this.regional['']);this._serverSyncs=[];function timerCallBack(a){var b=(a<1e12?(b=performance.now?(performance.now()+performance.timing.navigationStart):Date.now()):a||new Date().getTime());if(b-d>=1000){x._updateTargets();d=b}c(timerCallBack)}var c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;var d=0;if(!c||$.noRequestAnimationFrame){$.noRequestAnimationFrame=null;setInterval(function(){x._updateTargets()},980)}else{d=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||new Date().getTime();c(timerCallBack)}}var Y=0;var O=1;var W=2;var D=3;var H=4;var M=5;var S=6;$.extend(Countdown.prototype,{markerClassName:'hasCountdown',propertyName:'countdown',_rtlClass:'countdown_rtl',_sectionClass:'countdown_section',_amountClass:'countdown_amount',_rowClass:'countdown_row',_holdingClass:'countdown_holding',_showClass:'countdown_show',_descrClass:'countdown_descr',_timerTargets:[],setDefaults:function(a){this._resetExtraLabels(this._defaults,a);$.extend(this._defaults,a||{})},UTCDate:function(a,b,c,e,f,g,h,i){if(typeof b=='object'&&b.constructor==Date){i=b.getMilliseconds();h=b.getSeconds();g=b.getMinutes();f=b.getHours();e=b.getDate();c=b.getMonth();b=b.getFullYear()}var d=new Date();d.setUTCFullYear(b);d.setUTCDate(1);d.setUTCMonth(c||0);d.setUTCDate(e||1);d.setUTCHours(f||0);d.setUTCMinutes((g||0)-(Math.abs(a)<30?a*60:a));d.setUTCSeconds(h||0);d.setUTCMilliseconds(i||0);return d},periodsToSeconds:function(a){return a[0]*31557600+a[1]*2629800+a[2]*604800+a[3]*86400+a[4]*3600+a[5]*60+a[6]},_attachPlugin:function(a,b){a=$(a);if(a.hasClass(this.markerClassName)){return}var c={options:$.extend({},this._defaults),_periods:[0,0,0,0,0,0,0]};a.addClass(this.markerClassName).data(this.propertyName,c);this._optionPlugin(a,b)},_addTarget:function(a){if(!this._hasTarget(a)){this._timerTargets.push(a)}},_hasTarget:function(a){return($.inArray(a,this._timerTargets)>-1)},_removeTarget:function(b){this._timerTargets=$.map(this._timerTargets,function(a){return(a==b?null:a)})},_updateTargets:function(){for(var i=this._timerTargets.length-1;i>=0;i--){this._updateCountdown(this._timerTargets[i])}},_optionPlugin:function(a,b,c){a=$(a);var d=a.data(this.propertyName);if(!b||(typeof b=='string'&&c==null)){var e=b;b=(d||{}).options;return(b&&e?b[e]:b)}if(!a.hasClass(this.markerClassName)){return}b=b||{};if(typeof b=='string'){var e=b;b={};b[e]=c}this._resetExtraLabels(d.options,b);var f=(d.options.timezone!=b.timezone);$.extend(d.options,b);this._adjustSettings(a,d,b.until!=null||b.since!=null||f);var g=new Date();if((d._since&&d._sinceg)){this._addTarget(a[0])}this._updateCountdown(a,d)},_updateCountdown:function(a,b){var c=$(a);b=b||c.data(this.propertyName);if(!b){return}c.html(this._generateHTML(b)).toggleClass(this._rtlClass,b.options.isRTL);if($.isFunction(b.options.onTick)){var d=b._hold!='lap'?b._periods:this._calculatePeriods(b,b._show,b.options.significant,new Date());if(b.options.tickInterval==1||this.periodsToSeconds(d)%b.options.tickInterval==0){b.options.onTick.apply(a,[d])}}var e=b._hold!='pause'&&(b._since?b._now.getTime()=b._until.getTime());if(e&&!b._expiring){b._expiring=true;if(this._hasTarget(a)||b.options.alwaysExpire){this._removeTarget(a);if($.isFunction(b.options.onExpiry)){b.options.onExpiry.apply(a,[])}if(b.options.expiryText){var f=b.options.layout;b.options.layout=b.options.expiryText;this._updateCountdown(a,b);b.options.layout=f}if(b.options.expiryUrl){window.location=b.options.expiryUrl}}b._expiring=false}else if(b._hold=='pause'){this._removeTarget(a)}c.data(this.propertyName,b)},_resetExtraLabels:function(a,b){var c=false;for(var n in b){if(n!='whichLabels'&&n.match(/[Ll]abels/)){c=true;break}}if(c){for(var n in a){if(n.match(/[Ll]abels[02-9]|compactLabels1/)){a[n]=null}}}},_adjustSettings:function(a,b,c){var d;var e=0;var f=null;for(var i=0;i0);h[i]=(c._show[i]=='?'&&!e?null:c._show[i]);f+=(h[i]?1:0);g-=(c._periods[i]>0?1:0)}var j=[false,false,false,false,false,false,false];for(var i=S;i>=Y;i--){if(c._show[i]){if(c._periods[i]){j[i]=true}else{j[i]=g>0;g--}}}var k=(c.options.compact?c.options.compactLabels:c.options.labels);var l=c.options.whichLabels||this._normalLabels;var m=function(a){var b=c.options['compactLabels'+l(c._periods[a])];return(h[a]?d._translateDigits(c,c._periods[a])+(b?b[a]:k[a])+' ':'')};var n=function(a){var b=c.options['labels'+l(c._periods[a])];return((!c.options.significant&&h[a])||(c.options.significant&&j[a])?''+''+d._translateDigits(c,c._periods[a])+'
'+(b?b[a]:k[a])+'
':'')};return(c.options.layout?this._buildLayout(c,h,c.options.layout,c.options.compact,c.options.significant,j):((c.options.compact?''+m(Y)+m(O)+m(W)+m(D)+(h[H]?this._minDigits(c,c._periods[H],2):'')+(h[M]?(h[H]?c.options.timeSeparator:'')+this._minDigits(c,c._periods[M],2):'')+(h[S]?(h[H]||h[M]?c.options.timeSeparator:'')+this._minDigits(c,c._periods[S],2):''):''+n(Y)+n(O)+n(W)+n(D)+n(H)+n(M)+n(S))+''+(c.options.description?''+c.options.description+'':'')))},_buildLayout:function(c,d,e,f,g,h){var j=c.options[f?'compactLabels':'labels'];var k=c.options.whichLabels||this._normalLabels;var l=function(a){return(c.options[(f?'compactLabels':'labels')+k(c._periods[a])]||j)[a]};var m=function(a,b){return c.options.digits[Math.floor(a/b)%10]};var o={desc:c.options.description,sep:c.options.timeSeparator,yl:l(Y),yn:this._minDigits(c,c._periods[Y],1),ynn:this._minDigits(c,c._periods[Y],2),ynnn:this._minDigits(c,c._periods[Y],3),y1:m(c._periods[Y],1),y10:m(c._periods[Y],10),y100:m(c._periods[Y],100),y1000:m(c._periods[Y],1000),ol:l(O),on:this._minDigits(c,c._periods[O],1),onn:this._minDigits(c,c._periods[O],2),onnn:this._minDigits(c,c._periods[O],3),o1:m(c._periods[O],1),o10:m(c._periods[O],10),o100:m(c._periods[O],100),o1000:m(c._periods[O],1000),wl:l(W),wn:this._minDigits(c,c._periods[W],1),wnn:this._minDigits(c,c._periods[W],2),wnnn:this._minDigits(c,c._periods[W],3),w1:m(c._periods[W],1),w10:m(c._periods[W],10),w100:m(c._periods[W],100),w1000:m(c._periods[W],1000),dl:l(D),dn:this._minDigits(c,c._periods[D],1),dnn:this._minDigits(c,c._periods[D],2),dnnn:this._minDigits(c,c._periods[D],3),d1:m(c._periods[D],1),d10:m(c._periods[D],10),d100:m(c._periods[D],100),d1000:m(c._periods[D],1000),hl:l(H),hn:this._minDigits(c,c._periods[H],1),hnn:this._minDigits(c,c._periods[H],2),hnnn:this._minDigits(c,c._periods[H],3),h1:m(c._periods[H],1),h10:m(c._periods[H],10),h100:m(c._periods[H],100),h1000:m(c._periods[H],1000),ml:l(M),mn:this._minDigits(c,c._periods[M],1),mnn:this._minDigits(c,c._periods[M],2),mnnn:this._minDigits(c,c._periods[M],3),m1:m(c._periods[M],1),m10:m(c._periods[M],10),m100:m(c._periods[M],100),m1000:m(c._periods[M],1000),sl:l(S),sn:this._minDigits(c,c._periods[S],1),snn:this._minDigits(c,c._periods[S],2),snnn:this._minDigits(c,c._periods[S],3),s1:m(c._periods[S],1),s10:m(c._periods[S],10),s100:m(c._periods[S],100),s1000:m(c._periods[S],1000)};var p=e;for(var i=Y;i<=S;i++){var q='yowdhms'.charAt(i);var r=new RegExp('\\{'+q+'<\\}(.*)\\{'+q+'>\\}','g');p=p.replace(r,((!g&&d[i])||(g&&h[i])?'$1':''))}$.each(o,function(n,v){var a=new RegExp('\\{'+n+'\\}','g');p=p.replace(a,v)});return p},_minDigits:function(a,b,c){b=''+b;if(b.length>=c){return this._translateDigits(a,b)}b='0000000000'+b;return this._translateDigits(a,b.substr(b.length-c))},_translateDigits:function(b,c){return(''+c).replace(/[0-9]/g,function(a){return b.options.digits[a]})},_determineShow:function(a){var b=a.options.format;var c=[];c[Y]=(b.match('y')?'?':(b.match('Y')?'!':null));c[O]=(b.match('o')?'?':(b.match('O')?'!':null));c[W]=(b.match('w')?'?':(b.match('W')?'!':null));c[D]=(b.match('d')?'?':(b.match('D')?'!':null));c[H]=(b.match('h')?'?':(b.match('H')?'!':null));c[M]=(b.match('m')?'?':(b.match('M')?'!':null));c[S]=(b.match('s')?'?':(b.match('S')?'!':null));return c},_calculatePeriods:function(c,d,e,f){c._now=f;c._now.setMilliseconds(0);var g=new Date(c._now.getTime());if(c._since){if(f.getTime()c._until.getTime()){c._now=f=g}}var h=[0,0,0,0,0,0,0];if(d[Y]||d[O]){var i=x._getDaysInMonth(f.getFullYear(),f.getMonth());var j=x._getDaysInMonth(g.getFullYear(),g.getMonth());var k=(g.getDate()==f.getDate()||(g.getDate()>=Math.min(i,j)&&f.getDate()>=Math.min(i,j)));var l=function(a){return(a.getHours()*60+a.getMinutes())*60+a.getSeconds()};var m=Math.max(0,(g.getFullYear()-f.getFullYear())*12+g.getMonth()-f.getMonth()+((g.getDate()o){f.setDate(o)}f.setFullYear(f.getFullYear()+h[Y]);f.setMonth(f.getMonth()+h[O]);if(n){f.setDate(o)}}var p=Math.floor((g.getTime()-f.getTime())/1000);var q=function(a,b){h[a]=(d[a]?Math.floor(p/b):0);p-=h[a]*b};q(W,604800);q(D,86400);q(H,3600);q(M,60);q(S,1);if(p>0&&!c._since){var r=[1,12,4.3482,7,24,60,60];var s=S;var t=1;for(var u=S;u>=Y;u--){if(d[u]){if(h[s]>=t){h[s]=0;p=1}if(p>0){h[u]++;p=0;s=u;t=1}}t*=r[u]}}if(e){for(var u=Y;u<=S;u++){if(e&&h[u]){e--}else if(!e){h[u]=0}}}return h}});var w=['getTimes'];function isNotChained(a,b){if(a=='option'&&(b.length==0||(b.length==1&&typeof b[0]=='string'))){return true}return $.inArray(a,w)>-1}$.fn.countdown=function(a){var b=Array.prototype.slice.call(arguments,1);if(isNotChained(a,b)){return x['_'+a+'Plugin'].apply(x,[this[0]].concat(b))}return this.each(function(){if(typeof a=='string'){if(!x['_'+a+'Plugin']){throw'Unknown command: '+a;}x['_'+a+'Plugin'].apply(x,[this].concat(b))}else{x._attachPlugin(this,a||{})}})};var x=$.countdown=new Countdown()})(jQuery); \ No newline at end of file diff --git a/js/jquery.easing.1.3.js b/js/jquery.easing.1.3.js new file mode 100644 index 0000000..ef74321 --- /dev/null +++ b/js/jquery.easing.1.3.js @@ -0,0 +1,205 @@ +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +jQuery.easing['jswing'] = jQuery.easing['swing']; + +jQuery.extend( jQuery.easing, +{ + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert(jQuery.easing.default); + return jQuery.easing[jQuery.easing.def](x, t, b, c, d); + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright © 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ \ No newline at end of file diff --git a/js/jquery.event.drag-2.2.js b/js/jquery.event.drag-2.2.js new file mode 100644 index 0000000..1cda0e2 --- /dev/null +++ b/js/jquery.event.drag-2.2.js @@ -0,0 +1,402 @@ +/*! + * jquery.event.drag - v 2.2 + * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com + * Open Source MIT License - http://threedubmedia.com/code/license + */ +// Created: 2008-06-04 +// Updated: 2012-05-21 +// REQUIRES: jquery 1.7.x + +;(function( $ ){ + +// add the jquery instance method +$.fn.drag = function( str, arg, opts ){ + // figure out the event type + var type = typeof str == "string" ? str : "", + // figure out the event handler... + fn = $.isFunction( str ) ? str : $.isFunction( arg ) ? arg : null; + // fix the event type + if ( type.indexOf("drag") !== 0 ) + type = "drag"+ type; + // were options passed + opts = ( str == fn ? arg : opts ) || {}; + // trigger or bind event handler + return fn ? this.bind( type, opts, fn ) : this.trigger( type ); +}; + +// local refs (increase compression) +var $event = $.event, +$special = $event.special, +// configure the drag special event +drag = $special.drag = { + + // these are the default settings + defaults: { + which: 1, // mouse button pressed to start drag sequence + distance: 0, // distance dragged before dragstart + not: ':input', // selector to suppress dragging on target elements + handle: null, // selector to match handle target elements + relative: false, // true to use "position", false to use "offset" + drop: true, // false to suppress drop events, true or selector to allow + click: false // false to suppress click events after dragend (no proxy) + }, + + // the key name for stored drag data + datakey: "dragdata", + + // prevent bubbling for better performance + noBubble: true, + + // count bound related events + add: function( obj ){ + // read the interaction data + var data = $.data( this, drag.datakey ), + // read any passed options + opts = obj.data || {}; + // count another realted event + data.related += 1; + // extend data options bound with this event + // don't iterate "opts" in case it is a node + $.each( drag.defaults, function( key, def ){ + if ( opts[ key ] !== undefined ) + data[ key ] = opts[ key ]; + }); + }, + + // forget unbound related events + remove: function(){ + $.data( this, drag.datakey ).related -= 1; + }, + + // configure interaction, capture settings + setup: function(){ + // check for related events + if ( $.data( this, drag.datakey ) ) + return; + // initialize the drag data with copied defaults + var data = $.extend({ related:0 }, drag.defaults ); + // store the interaction data + $.data( this, drag.datakey, data ); + // bind the mousedown event, which starts drag interactions + $event.add( this, "touchstart mousedown", drag.init, data ); + // prevent image dragging in IE... + if ( this.attachEvent ) + this.attachEvent("ondragstart", drag.dontstart ); + }, + + // destroy configured interaction + teardown: function(){ + var data = $.data( this, drag.datakey ) || {}; + // check for related events + if ( data.related ) + return; + // remove the stored data + $.removeData( this, drag.datakey ); + // remove the mousedown event + $event.remove( this, "touchstart mousedown", drag.init ); + // enable text selection + drag.textselect( true ); + // un-prevent image dragging in IE... + if ( this.detachEvent ) + this.detachEvent("ondragstart", drag.dontstart ); + }, + + // initialize the interaction + init: function( event ){ + // sorry, only one touch at a time + if ( drag.touched ) + return; + // the drag/drop interaction data + var dd = event.data, results; + // check the which directive + if ( event.which != 0 && dd.which > 0 && event.which != dd.which ) + return; + // check for suppressed selector + if ( $( event.target ).is( dd.not ) ) + return; + // check for handle selector + if ( dd.handle && !$( event.target ).closest( dd.handle, event.currentTarget ).length ) + return; + + drag.touched = event.type == 'touchstart' ? this : null; + dd.propagates = 1; + dd.mousedown = this; + dd.interactions = [ drag.interaction( this, dd ) ]; + dd.target = event.target; + dd.pageX = event.pageX; + dd.pageY = event.pageY; + dd.dragging = null; + // handle draginit event... + results = drag.hijack( event, "draginit", dd ); + // early cancel + if ( !dd.propagates ) + return; + // flatten the result set + results = drag.flatten( results ); + // insert new interaction elements + if ( results && results.length ){ + dd.interactions = []; + $.each( results, function(){ + dd.interactions.push( drag.interaction( this, dd ) ); + }); + } + // remember how many interactions are propagating + dd.propagates = dd.interactions.length; + // locate and init the drop targets + if ( dd.drop !== false && $special.drop ) + $special.drop.handler( event, dd ); + // disable text selection + drag.textselect( false ); + // bind additional events... + if ( drag.touched ) + $event.add( drag.touched, "touchmove touchend", drag.handler, dd ); + else + $event.add( document, "mousemove mouseup", drag.handler, dd ); + // helps prevent text selection or scrolling + if ( !drag.touched || dd.live ) + return false; + }, + + // returns an interaction object + interaction: function( elem, dd ){ + var offset = $( elem )[ dd.relative ? "position" : "offset" ]() || { top:0, left:0 }; + return { + drag: elem, + callback: new drag.callback(), + droppable: [], + offset: offset + }; + }, + + // handle drag-releatd DOM events + handler: function( event ){ + // read the data before hijacking anything + var dd = event.data; + // handle various events + switch ( event.type ){ + // mousemove, check distance, start dragging + case !dd.dragging && 'touchmove': + event.preventDefault(); + case !dd.dragging && 'mousemove': + // drag tolerance, x² + y² = distance² + if ( Math.pow( event.pageX-dd.pageX, 2 ) + Math.pow( event.pageY-dd.pageY, 2 ) < Math.pow( dd.distance, 2 ) ) + break; // distance tolerance not reached + event.target = dd.target; // force target from "mousedown" event (fix distance issue) + drag.hijack( event, "dragstart", dd ); // trigger "dragstart" + if ( dd.propagates ) // "dragstart" not rejected + dd.dragging = true; // activate interaction + // mousemove, dragging + case 'touchmove': + event.preventDefault(); + case 'mousemove': + if ( dd.dragging ){ + // trigger "drag" + drag.hijack( event, "drag", dd ); + if ( dd.propagates ){ + // manage drop events + if ( dd.drop !== false && $special.drop ) + $special.drop.handler( event, dd ); // "dropstart", "dropend" + break; // "drag" not rejected, stop + } + event.type = "mouseup"; // helps "drop" handler behave + } + // mouseup, stop dragging + case 'touchend': + case 'mouseup': + default: + if ( drag.touched ) + $event.remove( drag.touched, "touchmove touchend", drag.handler ); // remove touch events + else + $event.remove( document, "mousemove mouseup", drag.handler ); // remove page events + if ( dd.dragging ){ + if ( dd.drop !== false && $special.drop ) + $special.drop.handler( event, dd ); // "drop" + drag.hijack( event, "dragend", dd ); // trigger "dragend" + } + drag.textselect( true ); // enable text selection + // if suppressing click events... + if ( dd.click === false && dd.dragging ) + $.data( dd.mousedown, "suppress.click", new Date().getTime() + 5 ); + dd.dragging = drag.touched = false; // deactivate element + break; + } + }, + + // re-use event object for custom events + hijack: function( event, type, dd, x, elem ){ + // not configured + if ( !dd ) + return; + // remember the original event and type + var orig = { event:event.originalEvent, type:event.type }, + // is the event drag related or drog related? + mode = type.indexOf("drop") ? "drag" : "drop", + // iteration vars + result, i = x || 0, ia, $elems, callback, + len = !isNaN( x ) ? x : dd.interactions.length; + // modify the event type + event.type = type; + // remove the original event + event.originalEvent = null; + // initialize the results + dd.results = []; + // handle each interacted element + do if ( ia = dd.interactions[ i ] ){ + // validate the interaction + if ( type !== "dragend" && ia.cancelled ) + continue; + // set the dragdrop properties on the event object + callback = drag.properties( event, dd, ia ); + // prepare for more results + ia.results = []; + // handle each element + $( elem || ia[ mode ] || dd.droppable ).each(function( p, subject ){ + // identify drag or drop targets individually + callback.target = subject; + // force propagtion of the custom event + event.isPropagationStopped = function(){ return false; }; + // handle the event + result = subject ? $event.dispatch.call( subject, event, callback ) : null; + // stop the drag interaction for this element + if ( result === false ){ + if ( mode == "drag" ){ + ia.cancelled = true; + dd.propagates -= 1; + } + if ( type == "drop" ){ + ia[ mode ][p] = null; + } + } + // assign any dropinit elements + else if ( type == "dropinit" ) + ia.droppable.push( drag.element( result ) || subject ); + // accept a returned proxy element + if ( type == "dragstart" ) + ia.proxy = $( drag.element( result ) || ia.drag )[0]; + // remember this result + ia.results.push( result ); + // forget the event result, for recycling + delete event.result; + // break on cancelled handler + if ( type !== "dropinit" ) + return result; + }); + // flatten the results + dd.results[ i ] = drag.flatten( ia.results ); + // accept a set of valid drop targets + if ( type == "dropinit" ) + ia.droppable = drag.flatten( ia.droppable ); + // locate drop targets + if ( type == "dragstart" && !ia.cancelled ) + callback.update(); + } + while ( ++i < len ) + // restore the original event & type + event.type = orig.type; + event.originalEvent = orig.event; + // return all handler results + return drag.flatten( dd.results ); + }, + + // extend the callback object with drag/drop properties... + properties: function( event, dd, ia ){ + var obj = ia.callback; + // elements + obj.drag = ia.drag; + obj.proxy = ia.proxy || ia.drag; + // starting mouse position + obj.startX = dd.pageX; + obj.startY = dd.pageY; + // current distance dragged + obj.deltaX = event.pageX - dd.pageX; + obj.deltaY = event.pageY - dd.pageY; + // original element position + obj.originalX = ia.offset.left; + obj.originalY = ia.offset.top; + // adjusted element position + obj.offsetX = obj.originalX + obj.deltaX; + obj.offsetY = obj.originalY + obj.deltaY; + // assign the drop targets information + obj.drop = drag.flatten( ( ia.drop || [] ).slice() ); + obj.available = drag.flatten( ( ia.droppable || [] ).slice() ); + return obj; + }, + + // determine is the argument is an element or jquery instance + element: function( arg ){ + if ( arg && ( arg.jquery || arg.nodeType == 1 ) ) + return arg; + }, + + // flatten nested jquery objects and arrays into a single dimension array + flatten: function( arr ){ + return $.map( arr, function( member ){ + return member && member.jquery ? $.makeArray( member ) : + member && member.length ? drag.flatten( member ) : member; + }); + }, + + // toggles text selection attributes ON (true) or OFF (false) + textselect: function( bool ){ + $( document )[ bool ? "unbind" : "bind" ]("selectstart", drag.dontstart ) + .css("MozUserSelect", bool ? "" : "none" ); + // .attr("unselectable", bool ? "off" : "on" ) + document.unselectable = bool ? "off" : "on"; + }, + + // suppress "selectstart" and "ondragstart" events + dontstart: function(){ + return false; + }, + + // a callback instance contructor + callback: function(){} + +}; + +// callback methods +drag.callback.prototype = { + update: function(){ + if ( $special.drop && this.available.length ) + $.each( this.available, function( i ){ + $special.drop.locate( this, i ); + }); + } +}; + +// patch $.event.$dispatch to allow suppressing clicks +var $dispatch = $event.dispatch; +$event.dispatch = function( event ){ + if ( $.data( this, "suppress."+ event.type ) - new Date().getTime() > 0 ){ + $.removeData( this, "suppress."+ event.type ); + return; + } + return $dispatch.apply( this, arguments ); +}; + +// event fix hooks for touch events... +var touchHooks = +$event.fixHooks.touchstart = +$event.fixHooks.touchmove = +$event.fixHooks.touchend = +$event.fixHooks.touchcancel = { + props: "clientX clientY pageX pageY screenX screenY".split( " " ), + filter: function( event, orig ) { + if ( orig ){ + var touched = ( orig.touches && orig.touches[0] ) + || ( orig.changedTouches && orig.changedTouches[0] ) + || null; + // iOS webkit: touchstart, touchmove, touchend + if ( touched ) + $.each( touchHooks.props, function( i, prop ){ + event[ prop ] = touched[ prop ]; + }); + } + return event; + } +}; + +// share the same special event configuration with related events... +$special.draginit = $special.dragstart = $special.dragend = drag; + +})( jQuery ); \ No newline at end of file diff --git a/js/jquery.event.drop-2.2.js b/js/jquery.event.drop-2.2.js new file mode 100644 index 0000000..7599ef9 --- /dev/null +++ b/js/jquery.event.drop-2.2.js @@ -0,0 +1,302 @@ +/*! + * jquery.event.drop - v 2.2 + * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com + * Open Source MIT License - http://threedubmedia.com/code/license + */ +// Created: 2008-06-04 +// Updated: 2012-05-21 +// REQUIRES: jquery 1.7.x, event.drag 2.2 + +;(function($){ // secure $ jQuery alias + +// Events: drop, dropstart, dropend + +// add the jquery instance method +$.fn.drop = function( str, arg, opts ){ + // figure out the event type + var type = typeof str == "string" ? str : "", + // figure out the event handler... + fn = $.isFunction( str ) ? str : $.isFunction( arg ) ? arg : null; + // fix the event type + if ( type.indexOf("drop") !== 0 ) + type = "drop"+ type; + // were options passed + opts = ( str == fn ? arg : opts ) || {}; + // trigger or bind event handler + return fn ? this.bind( type, opts, fn ) : this.trigger( type ); +}; + +// DROP MANAGEMENT UTILITY +// returns filtered drop target elements, caches their positions +$.drop = function( opts ){ + opts = opts || {}; + // safely set new options... + drop.multi = opts.multi === true ? Infinity : + opts.multi === false ? 1 : !isNaN( opts.multi ) ? opts.multi : drop.multi; + drop.delay = opts.delay || drop.delay; + drop.tolerance = $.isFunction( opts.tolerance ) ? opts.tolerance : + opts.tolerance === null ? null : drop.tolerance; + drop.mode = opts.mode || drop.mode || 'intersect'; +}; + +// local refs (increase compression) +var $event = $.event, +$special = $event.special, +// configure the drop special event +drop = $.event.special.drop = { + + // these are the default settings + multi: 1, // allow multiple drop winners per dragged element + delay: 20, // async timeout delay + mode: 'overlap', // drop tolerance mode + + // internal cache + targets: [], + + // the key name for stored drop data + datakey: "dropdata", + + // prevent bubbling for better performance + noBubble: true, + + // count bound related events + add: function( obj ){ + // read the interaction data + var data = $.data( this, drop.datakey ); + // count another realted event + data.related += 1; + }, + + // forget unbound related events + remove: function(){ + $.data( this, drop.datakey ).related -= 1; + }, + + // configure the interactions + setup: function(){ + // check for related events + if ( $.data( this, drop.datakey ) ) + return; + // initialize the drop element data + var data = { + related: 0, + active: [], + anyactive: 0, + winner: 0, + location: {} + }; + // store the drop data on the element + $.data( this, drop.datakey, data ); + // store the drop target in internal cache + drop.targets.push( this ); + }, + + // destroy the configure interaction + teardown: function(){ + var data = $.data( this, drop.datakey ) || {}; + // check for related events + if ( data.related ) + return; + // remove the stored data + $.removeData( this, drop.datakey ); + // reference the targeted element + var element = this; + // remove from the internal cache + drop.targets = $.grep( drop.targets, function( target ){ + return ( target !== element ); + }); + }, + + // shared event handler + handler: function( event, dd ){ + // local vars + var results, $targets; + // make sure the right data is available + if ( !dd ) + return; + // handle various events + switch ( event.type ){ + // draginit, from $.event.special.drag + case 'mousedown': // DROPINIT >> + case 'touchstart': // DROPINIT >> + // collect and assign the drop targets + $targets = $( drop.targets ); + if ( typeof dd.drop == "string" ) + $targets = $targets.filter( dd.drop ); + // reset drop data winner properties + $targets.each(function(){ + var data = $.data( this, drop.datakey ); + data.active = []; + data.anyactive = 0; + data.winner = 0; + }); + // set available target elements + dd.droppable = $targets; + // activate drop targets for the initial element being dragged + $special.drag.hijack( event, "dropinit", dd ); + break; + // drag, from $.event.special.drag + case 'mousemove': // TOLERATE >> + case 'touchmove': // TOLERATE >> + drop.event = event; // store the mousemove event + if ( !drop.timer ) + // monitor drop targets + drop.tolerate( dd ); + break; + // dragend, from $.event.special.drag + case 'mouseup': // DROP >> DROPEND >> + case 'touchend': // DROP >> DROPEND >> + drop.timer = clearTimeout( drop.timer ); // delete timer + if ( dd.propagates ){ + $special.drag.hijack( event, "drop", dd ); + $special.drag.hijack( event, "dropend", dd ); + } + break; + + } + }, + + // returns the location positions of an element + locate: function( elem, index ){ + var data = $.data( elem, drop.datakey ), + $elem = $( elem ), + posi = $elem.offset() || {}, + height = $elem.outerHeight(), + width = $elem.outerWidth(), + location = { + elem: elem, + width: width, + height: height, + top: posi.top, + left: posi.left, + right: posi.left + width, + bottom: posi.top + height + }; + // drag elements might not have dropdata + if ( data ){ + data.location = location; + data.index = index; + data.elem = elem; + } + return location; + }, + + // test the location positions of an element against another OR an X,Y coord + contains: function( target, test ){ // target { location } contains test [x,y] or { location } + return ( ( test[0] || test.left ) >= target.left && ( test[0] || test.right ) <= target.right + && ( test[1] || test.top ) >= target.top && ( test[1] || test.bottom ) <= target.bottom ); + }, + + // stored tolerance modes + modes: { // fn scope: "$.event.special.drop" object + // target with mouse wins, else target with most overlap wins + 'intersect': function( event, proxy, target ){ + return this.contains( target, [ event.pageX, event.pageY ] ) ? // check cursor + 1e9 : this.modes.overlap.apply( this, arguments ); // check overlap + }, + // target with most overlap wins + 'overlap': function( event, proxy, target ){ + // calculate the area of overlap... + return Math.max( 0, Math.min( target.bottom, proxy.bottom ) - Math.max( target.top, proxy.top ) ) + * Math.max( 0, Math.min( target.right, proxy.right ) - Math.max( target.left, proxy.left ) ); + }, + // proxy is completely contained within target bounds + 'fit': function( event, proxy, target ){ + return this.contains( target, proxy ) ? 1 : 0; + }, + // center of the proxy is contained within target bounds + 'middle': function( event, proxy, target ){ + return this.contains( target, [ proxy.left + proxy.width * .5, proxy.top + proxy.height * .5 ] ) ? 1 : 0; + } + }, + + // sort drop target cache by by winner (dsc), then index (asc) + sort: function( a, b ){ + return ( b.winner - a.winner ) || ( a.index - b.index ); + }, + + // async, recursive tolerance execution + tolerate: function( dd ){ + // declare local refs + var i, drp, drg, data, arr, len, elem, + // interaction iteration variables + x = 0, ia, end = dd.interactions.length, + // determine the mouse coords + xy = [ drop.event.pageX, drop.event.pageY ], + // custom or stored tolerance fn + tolerance = drop.tolerance || drop.modes[ drop.mode ]; + // go through each passed interaction... + do if ( ia = dd.interactions[x] ){ + // check valid interaction + if ( !ia ) + return; + // initialize or clear the drop data + ia.drop = []; + // holds the drop elements + arr = []; + len = ia.droppable.length; + // determine the proxy location, if needed + if ( tolerance ) + drg = drop.locate( ia.proxy ); + // reset the loop + i = 0; + // loop each stored drop target + do if ( elem = ia.droppable[i] ){ + data = $.data( elem, drop.datakey ); + drp = data.location; + if ( !drp ) continue; + // find a winner: tolerance function is defined, call it + data.winner = tolerance ? tolerance.call( drop, drop.event, drg, drp ) + // mouse position is always the fallback + : drop.contains( drp, xy ) ? 1 : 0; + arr.push( data ); + } while ( ++i < len ); // loop + // sort the drop targets + arr.sort( drop.sort ); + // reset the loop + i = 0; + // loop through all of the targets again + do if ( data = arr[ i ] ){ + // winners... + if ( data.winner && ia.drop.length < drop.multi ){ + // new winner... dropstart + if ( !data.active[x] && !data.anyactive ){ + // check to make sure that this is not prevented + if ( $special.drag.hijack( drop.event, "dropstart", dd, x, data.elem )[0] !== false ){ + data.active[x] = 1; + data.anyactive += 1; + } + // if false, it is not a winner + else + data.winner = 0; + } + // if it is still a winner + if ( data.winner ) + ia.drop.push( data.elem ); + } + // losers... + else if ( data.active[x] && data.anyactive == 1 ){ + // former winner... dropend + $special.drag.hijack( drop.event, "dropend", dd, x, data.elem ); + data.active[x] = 0; + data.anyactive -= 1; + } + } while ( ++i < len ); // loop + } while ( ++x < end ) // loop + // check if the mouse is still moving or is idle + if ( drop.last && xy[0] == drop.last.pageX && xy[1] == drop.last.pageY ) + delete drop.timer; // idle, don't recurse + else // recurse + drop.timer = setTimeout(function(){ + drop.tolerate( dd ); + }, drop.delay ); + // remember event, to compare idleness + drop.last = drop.event; + } + +}; + +// share the same special event configuration with related events... +$special.dropinit = $special.dropstart = $special.dropend = drop; + +})(jQuery); // confine scope \ No newline at end of file diff --git a/js/jquery.fitvids.js b/js/jquery.fitvids.js new file mode 100644 index 0000000..b9b8d5d --- /dev/null +++ b/js/jquery.fitvids.js @@ -0,0 +1,67 @@ +/*global jQuery */ +/*jshint browser:true */ +/*! +* FitVids 1.1 +* +* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com +* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ +* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ +* +*/ + +(function( $ ){ + + "use strict"; + + $.fn.fitVids = function( options ) { + var settings = { + customSelector: null + }; + + if(!document.getElementById('fit-vids-style')) { + // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js + var head = document.head || document.getElementsByTagName('head')[0]; + var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; + var div = document.createElement('div'); + div.innerHTML = '

x

'; + head.appendChild(div.childNodes[1]); + } + + if ( options ) { + $.extend( settings, options ); + } + + return this.each(function(){ + var selectors = [ + "iframe[src*='player.vimeo.com']", + "iframe[src*='youtube.com']", + "iframe[src*='youtube-nocookie.com']", + "iframe[src*='kickstarter.com'][src*='video.html']", + "object", + "embed" + ]; + + if (settings.customSelector) { + selectors.push(settings.customSelector); + } + + var $allVideos = $(this).find(selectors.join(',')); + $allVideos = $allVideos.not("object object"); // SwfObj conflict patch + + $allVideos.each(function(){ + var $this = $(this); + if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } + var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), + width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), + aspectRatio = height / width; + if(!$this.attr('id')){ + var videoID = 'fitvid' + Math.floor(Math.random()*999999); + $this.attr('id', videoID); + } + $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); + $this.removeAttr('height').removeAttr('width'); + }); + }); + }; +// Works with either jQuery or Zepto +})( window.jQuery || window.Zepto ); diff --git a/js/jquery.iosslider.min.js b/js/jquery.iosslider.min.js new file mode 100644 index 0000000..587223f --- /dev/null +++ b/js/jquery.iosslider.min.js @@ -0,0 +1,42 @@ +/* + * iosSlider - http://iosscripts.com/iosslider/ + * + * Touch Enabled, Responsive jQuery Horizontal Content Slider/Carousel/Image Gallery Plugin + * + * A jQuery plugin which allows you to integrate a customizable, cross-browser + * content slider into your web presence. Designed for use as a content slider, carousel, + * scrolling website banner, or image gallery. + * + * Copyright (c) 2013 Marc Whitbread + * + * Version: v1.2.27 (06/03/2013) + * Minimum requirements: jQuery v1.4+ + * + * Advanced requirements: + * 1) jQuery bind() click event override on slide requires jQuery v1.6+ + * + * Terms of use: + * + * 1) iosSlider is licensed under the Creative Commons – Attribution-NonCommercial 3.0 License. + * 2) You may use iosSlider free for personal or non-profit purposes, without restriction. + * Attribution is not required but always appreciated. For commercial projects, you + * must purchase a license. You may download and play with the script before deciding to + * fully implement it in your project. Making sure you are satisfied, and knowing iosSlider + * is the right script for your project is paramount. + * 3) You are not permitted to make the resources found on iosscripts.com available for + * distribution elsewhere "as is" without prior consent. If you would like to feature + * iosSlider on your site, please do not link directly to the resource zip files. Please + * link to the appropriate page on iosscripts.com where users can find the download. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +(function(a){var na=0,W=0,da=0,M=0,Ba="ontouchstart"in window,Ca="onorientationchange"in window,ea=!1,aa=!1,X=!1,oa=!1,ha="pointer",sa="pointer",ia=[],S=[],ta=[],$=[],x=[],ba=[],F=[],j=[],q=[],ua=[],fa=[],e={showScrollbar:function(c,e){c.scrollbarHide&&a("."+e).css({opacity:c.scrollbarOpacity,filter:"alpha(opacity:"+100*c.scrollbarOpacity+")"})},hideScrollbar:function(a,f,b,u,d,g,j,q,z,w){if(a.scrollbar&&a.scrollbarHide)for(var x=b;x=-1*j[n]||0<=b){C=a(c).width();if(0<=b){p=-1*K[0];a(f).each(function(b){e.setSliderOffset(a(f)[b],p+k);bA&&(A=e.getSliderOffset(this,"x"),v=b)});r=j[n]-H[v];e.setSliderOffset(a(f)[v],r);s.splice(0,0,-1*r+k);s.splice(s.length-1,1);j[n]=-1*s[0]+k;q[n]=j[n]+C-g;F[n]--;x[n]++}}0>b&&(v=0,A=e.getSliderOffset(a(f[0]),"x"),a(f).each(function(b){e.getSliderOffset(this,"x")>A&&(A=e.getSliderOffset(this,"x"),v=b)}),r=j[n]-H[v],e.setSliderOffset(a(f)[v],r),s.splice(0,0,-1*r+k),s.splice(s.length-1,1),j[n]=-1*s[0]+k,q[n]=j[n]+C-g,F[n]--)}}K=!1;g=e.calcActiveOffset(h, b,s,g,F[n],t,w,n);r=(g+F[n]+t)%t;h.infiniteSlider?r!=ba[n]&&(K=!0):g!=x[n]&&(K=!0);if(K&&(t=new e.args("change",h,c,a(c).children(":eq("+r+")"),r,y),a(c).parent().data("args",t),""!=h.onSlideChange))h.onSlideChange(t);x[n]=g;ba[n]=r;b=Math.floor(b);e.setSliderOffset(c,b);h.scrollbar&&(M=Math.floor((-1*b-j[n]+k)/(q[n]-j[n]+k)*(T-N-d)),c=d-z,b>=-1*j[n]+k?(c=d-z- -1*M,e.setSliderOffset(a("."+u),0)):(b<=-1*q[n]+1&&(c=T-N-z-M),e.setSliderOffset(a("."+u),M)),a("."+u).css({width:c+"px"}))},slowScrollHorizontal:function(c, f,b,u,d,g,T,N,z,w,K,s,r,t,H,n,k,y,h,C,p){var m=e.getSliderOffset(c,"x");g=[];var I=0,v=25/1024*N;frictionCoefficient=p.frictionCoefficient;elasticFrictionCoefficient=p.elasticFrictionCoefficient;snapFrictionCoefficient=p.snapFrictionCoefficient;d>p.snapVelocityThreshold&&p.snapToChildren&&!h?I=1:d<-1*p.snapVelocityThreshold&&(p.snapToChildren&&!h)&&(I=-1);d<-1*v?d=-1*v:d>v&&(d=v);a(c)[0]!==a(y)[0]&&(I*=-1,d*=-2);y=F[H];if(p.infiniteSlider)var A=j[H],l=q[H];h=[];for(var v=[],D=0;Dd;){d*=frictionCoefficient;m+=d;if((m>-1*j[H]||m<-1*q[H])&&!p.infiniteSlider)d*=elasticFrictionCoefficient,m+=d;if(p.infiniteSlider){if(m<=-1*l){for(var l=a(c).width(),M=0,P=v[0],D=0;D=-1*A){l=a(c).width();M=0;P=v[0];for(D=0;DP&&(P=v[D],M=D);D=A-t[M];v[M]=D;h.splice(0,0,-1*D+C);h.splice(h.length- 1,1);A=-1*h[0]+C;l=A+l-N;y--}}g[g.length]=m}v=!1;d=e.calcActiveOffset(p,m,h,N,y,k,x[H],H);A=(d+y+k)%k;p.snapToChildren&&(p.infiniteSlider?A!=ba[H]&&(v=!0):d!=x[H]&&(v=!0),0>I&&!v?(d++,d>=r.length&&!p.infinteSlider&&(d=r.length-1)):0d&&!p.infinteSlider&&(d=0)));if(p.snapToChildren||(m>-1*j[H]||m<-1*q[H])&&!p.infiniteSlider){(m>-1*j[H]||m<-1*q[H])&&!p.infiniteSlider?g.splice(0,g.length):(g.splice(0.1*g.length,g.length),m=0h[d]+0.5;)m=(m-h[d])* snapFrictionCoefficient+h[d],g[g.length]=m;g[g.length]=h[d]}I=1;0!=g.length%2&&(I=0);for(m=0;m=g.length-2)A=g[m],b[b.length]=e.slowScrollHorizontalIntervalTimer(10*m,c,f,g[m],u,T,N,z,w,K,d,s,r,n,k,t,H,C,y,p);A=(d+F[H]+k)%k;""!=p.onSlideComplete&&1").css({webkitTransform:"matrix(1,1,1,1,1,1)", MozTransform:"matrix(1,1,1,1,1,1)",transform:"matrix(1,1,1,1,1,1)"});""==e.attr("style")?c=!1:void 0!=e.attr("style")&&(c=!0);return c},getSlideNumber:function(a,e,b){return(a-F[e]+b)%b},calcActiveOffset:function(a,e,b,u,d,g){d=!1;a=[];var j;e>b[0]&&(j=0);ee-u&&(!d&&b[g]!=e&&(a[a.length]=b[g-1]),a[a.length]=b[g],d=!0);0==a.length&&(a[0]=b[b.length-1]);for(g=d=0;gm&&-1==I?m+=a(f).width():0=I.length-2)p=I[h],u[h]=e.slowScrollHorizontalIntervalTimer(10*(h+1),f,b,I[h],d,g,j,q,z,w,c,K,s,H,n,r,t,k,C,y);0==h&&""!=y.onSlideStart&&(C=(x[t]+F[t]+n)%n,y.onSlideStart(new e.args("start",y,f,a(f).children(":eq("+C+")"),C,c)))}p=!1;y.infiniteSlider?C!=ba[t]&&(p=!0):c!=x[t]&&(p= !0);p&&""!=y.onSlideComplete&&(u[u.length]=e.onSlideCompleteTimer(10*(h+1),y,f,a(f).children(":eq("+C+")"),C,t));$[t]=u;e.hideScrollbar(y,u,h,I,d,g,j,z,w,t);e.autoSlide(f,b,u,d,g,j,q,z,w,K,s,r,t,H,n,k,y)},autoSlide:function(a,f,b,u,d,g,j,q,z,w,K,s,r,t,H,n,k){if(!S[r].autoSlide)return!1;e.autoSlidePause(r);ia[r]=setTimeout(function(){!k.infiniteSlider&&x[r]>K.length-1&&(x[r]-=H);e.changeSlide((x[r]+F[r]+K.length+1)%K.length,a,f,b,u,d,g,j,q,z,w,K,s,r,t,H,n,k);e.autoSlide(a,f,b,u,d,g,j,q,z,w,K,s,r,t, H,n,k)},k.autoSlideTimer+k.autoSlideTransTimer)},autoSlidePause:function(a){clearTimeout(ia[a])},isUnselectable:function(c,e){return""!=e.unselectableSelector&&1==a(c).closest(e.unselectableSelector).size()?!0:!1},slowScrollHorizontalIntervalTimer:function(a,f,b,u,d,g,j,q,x,w,F,s,r,t,H,n,k,y,h,C){return setTimeout(function(){e.slowScrollHorizontalInterval(f,b,u,d,g,j,q,x,w,F,s,r,t,H,n,k,y,h,C)},a)},onSlideCompleteTimer:function(a,f,b,u,d,g){return setTimeout(function(){e.onSlideComplete(f,b,u,d,g)}, a)},hideScrollbarIntervalTimer:function(a,f,b,u,d,g,j,q,x,w){return setTimeout(function(){e.hideScrollbarInterval(f,b,u,d,g,j,q,x,w)},a)},args:function(c,f,b,j,d,g){this.prevSlideNumber=void 0==a(b).parent().data("args")?void 0:a(b).parent().data("args").prevSlideNumber;this.prevSlideObject=void 0==a(b).parent().data("args")?void 0:a(b).parent().data("args").prevSlideObject;this.targetSlideNumber=g+1;this.targetSlideObject=a(b).children(":eq("+this.targetSlideOffset+")");this.slideChanged=!1;"load"== c?this.targetSlideObject=this.targetSlideNumber=void 0:"start"==c?this.targetSlideObject=this.targetSlideNumber=void 0:"change"==c?(this.slideChanged=!0,this.prevSlideNumber=void 0==a(b).parent().data("args")?f.startAtSlide:a(b).parent().data("args").currentSlideNumber,this.prevSlideObject=a(b).children(":eq("+this.prevSlideNumber+")")):"complete"==c&&(this.slideChanged=a(b).parent().data("args").slideChanged);this.settings=f;this.data=a(b).parent().data("iosslider");this.sliderObject=b;this.sliderContainerObject= a(b).parent();this.currentSlideObject=j;this.currentSlideNumber=d+1;this.currentSliderOffset=-1*e.getSliderOffset(b,"x")},preventDrag:function(a){a.preventDefault()},preventClick:function(a){a.stopImmediatePropagation();return!1},enableClick:function(){return!0}};e.setBrowserInfo();var V={init:function(c,f){ea=e.has3DTransform();var b=a.extend(!0,{elasticPullResistance:0.6,frictionCoefficient:0.92,elasticFrictionCoefficient:0.6,snapFrictionCoefficient:0.92,snapToChildren:!1,snapSlideCenter:!1,startAtSlide:1, scrollbar:!1,scrollbarDrag:!1,scrollbarHide:!0,scrollbarLocation:"top",scrollbarContainer:"",scrollbarOpacity:0.4,scrollbarHeight:"4px",scrollbarBorder:"0",scrollbarMargin:"5px",scrollbarBackground:"#000",scrollbarBorderRadius:"100px",scrollbarShadow:"0 0 0 #000",scrollbarElasticPullResistance:0.9,desktopClickDrag:!1,keyboardControls:!1,tabToAdvance:!1,responsiveSlideContainer:!0,responsiveSlides:!0,navSlideSelector:"",navPrevSelector:"",navNextSelector:"",autoSlideToggleSelector:"",autoSlide:!1, autoSlideTimer:5E3,autoSlideTransTimer:750,autoSlideHoverPause:!0,infiniteSlider:!1,snapVelocityThreshold:5,slideStartVelocityThreshold:0,horizontalSlideLockThreshold:5,verticalSlideLockThreshold:3,stageCSS:{position:"relative",top:"0",left:"0",overflow:"hidden",zIndex:1},unselectableSelector:"",onSliderLoaded:"",onSliderUpdate:"",onSliderResize:"",onSlideStart:"",onSlideChange:"",onSlideComplete:""},c);void 0==f&&(f=this);return a(f).each(function(){function c(){e.autoSlidePause(d);va=a(E).find("a"); za=a(E).find("[onclick]");pa=a(E).find("*");a(y).css("width","");a(y).css("height","");a(E).css("width","");B=a(E).children().not("script").get();ga=[];L=[];a(B).css("width","");q[d]=0;l=[];H=a(y).parent().width();h=a(y).outerWidth(!0);b.responsiveSlideContainer&&(h=a(y).outerWidth(!0)>H?H:a(y).outerWidth(!0));a(y).css({position:b.stageCSS.position,top:b.stageCSS.top,left:b.stageCSS.left,overflow:b.stageCSS.overflow,zIndex:b.stageCSS.zIndex,webkitPerspective:1E3,webkitBackfaceVisibility:"hidden", msTouchAction:"pan-y",width:h});a(b.unselectableSelector).css({cursor:"default"});for(var G=0;Gh?(u=h+-1*(L[G]-ga[G]),ga[G]=u,L[G]=h):u=ga[G],a(B[G]).css({width:u}));a(B[G]).css({webkitBackfaceVisibility:"hidden",position:"absolute",top:0});l[G]=-1*q[d];q[d]=q[d]+u+(L[G]-ga[G])}b.snapSlideCenter&&(k=0.5*(h-L[0]),b.responsiveSlides&&L[0]>h&&(k=0));ua[d]=2*q[d];for(G=0;Gl.length?l.length:S[d].startAtSlide,b.infiniteSlider?(b.startAtSlide=(S[d].startAtSlide-1+J)%J,x[d]=S[d].startAtSlide):(b.startAtSlide=0>S[d].startAtSlide-1?l.length-1:S[d].startAtSlide,x[d]=S[d].startAtSlide-1),ba[d]=x[d]);j[d]=q[d]+k;a(E).css({position:"relative", cursor:ha,webkitPerspective:"0",webkitBackfaceVisibility:"hidden",width:q[d]+"px"});Q=q[d];q[d]=2*q[d]-h+2*k;(Y=Qn?n:C);a(y).css({height:C});e.setSliderOffset(E,l[x[d]]);if(b.infiniteSlider&&!Y){G=e.getSliderOffset(a(E),"x");for(u=-1*((F[d]+J)%J);0>u;){var A=0,ja=e.getSliderOffset(a(B[0]),"x");a(B).each(function(a){e.getSliderOffset(this,"x")N&&(N=e.getSliderOffset(this,"x"),M=a)});I=j[d]-L[M];e.setSliderOffset(a(B)[M],I);l.splice(0,0,-1*I+k);l.splice(l.length-1,1);j[d]=-1*l[0]+k;q[d]=j[d]+Q-h;F[d]--;x[d]++}for(;G<=-1*q[d];)A=0,ja=e.getSliderOffset(a(B[0]),"x"),a(B).each(function(a){e.getSliderOffset(this, "x")
"):a(E).parent().append("
"));if(!c())return!0;a(this).find("a").bind("mousedown",e.preventDrag);a(this).find("[onclick]").bind("click",e.preventDrag).each(function(){a(this).data("onclick", this.onclick)});A=e.calcActiveOffset(b,e.getSliderOffset(a(E),"x"),l,h,F[d],J,void 0,d);A=(A+F[d]+J)%J;A=new e.args("load",b,E,a(E).children(":eq("+A+")"),A,A);a(y).data("args",A);if(""!=b.onSliderLoaded)b.onSliderLoaded(A);if(S[d].responsiveSlides||S[d].responsiveSlideContainer)A=Ca?"orientationchange":"resize",a(window).bind(A+".iosSliderEvent-"+d,function(){if(!c())return!0;var d=a(y).data("args");if(""!=b.onSliderResize)b.onSliderResize(d)});(b.keyboardControls||b.tabToAdvance)&&!Y&&a(document).bind("keydown.iosSliderEvent", function(a){!aa&&!X&&(a=a.originalEvent);if(37==a.keyCode&&b.keyboardControls)a.preventDefault(),a=(x[d]+F[d]+J)%J,(0-1*j[d]+k+Q?(c=-1*j[d]+k+Q,e.setSliderOffset(a("."+w),c),a("."+w).css({width:t-m+"px"})):c<-1*q[d]&&(e.setSliderOffset(a("."+w),r-p-t),a("."+w).css({width:t-m+"px"}));c=a(this)[0]===a(K)[0]?j[d]: 0;P=-1*(e.getSliderOffset(this,"x")-eventX-c);e.getSliderOffset(this,"y");T[1]=eventX;N[1]=eventY;ka=!1});a(ma).bind("touchmove.iosSliderEvent mousemove.iosSliderEvent",function(c){!aa&&!X&&(c=c.originalEvent);if(fa[d]||Y||ya)return!0;var f=0;if("touchmove"==c.type)eventX=c.touches[0].pageX,eventY=c.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty||window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(X)try{document.selection.empty()}catch(u){}else document.selection.empty(); eventX=c.pageX;eventY=c.pageY;if(!xa||!oa&&("undefined"!=typeof c.webkitMovementX||"undefined"!=typeof c.webkitMovementY)&&0===c.webkitMovementY&&0===c.webkitMovementX)return!0}T[0]=T[1];T[1]=eventX;W=(T[1]-T[0])/2;N[0]=N[1];N[1]=eventY;da=(N[1]-N[0])/2;if(!U){var g=(x[d]+F[d]+J)%J,g=new e.args("start",b,E,a(E).children(":eq("+g+")"),g,void 0);a(y).data("args",g);if(""!=b.onSlideStart)b.onSlideStart(g)}if((da>b.verticalSlideLockThreshold||da<-1*b.verticalSlideLockThreshold)&&"touchmove"==c.type&& !U)ra=!0;(W>b.horizontalSlideLockThreshold||W<-1*b.horizontalSlideLockThreshold)&&"touchmove"==c.type&&c.preventDefault();if(W>b.slideStartVelocityThreshold||W<-1*b.slideStartVelocityThreshold)U=!0;if(U&&!ra){var g=e.getSliderOffset(E,"x"),n=a(Z)[0]===a(K)[0]?j[d]:k,v=a(Z)[0]===a(K)[0]?(j[d]-q[d]-k)/(scrollbarStageHeight-p-scrollbarHeight):1,s=a(Z)[0]===a(K)[0]?b.scrollbarElasticPullResistance:b.elasticPullResistance,A=b.snapSlideCenter&&a(Z)[0]===a(K)[0]?0:k,H=b.snapSlideCenter&&a(Z)[0]===a(K)[0]? k:0;"touchmove"==c.type&&(ea!=c.touches.length&&(P=-1*g+eventX),ea=c.touches.length);if(b.infiniteSlider){if(g<=-1*q[d]){var z=a(E).width();if(g<=-1*ua[d]){var C=-1*D[0];a(B).each(function(b){e.setSliderOffset(a(B)[b],C+k);b=-1*j[d]||0<=g)if(z=a(E).width(),0<=g){C=-1*D[0];a(B).each(function(b){e.setSliderOffset(a(B)[b],C+k);bQ&&(Q=e.getSliderOffset(this,"x"),O=a)});s=j[d]-L[O];e.setSliderOffset(a(B)[O],s);l.splice(0,0,-1*s+k);l.splice(l.length-1,1);j[d]=-1*l[0]+k;q[d]=j[d]+ z-h;F[d]--;x[d]++}}else O=0,Q=e.getSliderOffset(a(B[0]),"x"),a(B).each(function(a){e.getSliderOffset(this,"x")>Q&&(Q=e.getSliderOffset(this,"x"),O=a)}),s=j[d]-L[O],e.setSliderOffset(a(B)[O],s),l.splice(0,0,-1*s+k),l.splice(l.length-1,1),j[d]=-1*l[0]+k,q[d]=j[d]+z-h,F[d]--}else z=a(E).width(),g>-1*j[d]+k&&(f=-1*(j[d]+-1*(P-n-eventX+A)*v-n)*s/v),g<-1*q[d]&&(f=-1*(q[d]+H+-1*(P-n-eventX)*v-n)*s/v);e.setSliderOffset(E,-1*(P-n-eventX-f)*v-n+H);b.scrollbar&&(e.showScrollbar(b,w),M=Math.floor((P-eventX-f- j[d]+A)/(q[d]-j[d]+k)*(r-p-t)*v),g=t,0>=M?(g=t-m- -1*M,e.setSliderOffset(a("."+w),0),a("."+w).css({width:g+"px"})):M>=r-p-m-t?(g=r-p-m-M,e.setSliderOffset(a("."+w),M),a("."+w).css({width:g+"px"})):e.setSliderOffset(a("."+w),M));"touchmove"==c.type&&(I=c.touches[0].pageX);c=!1;f=e.calcActiveOffset(b,-1*(P-eventX-f),l,h,F[d],J,void 0,d);g=(f+F[d]+J)%J;b.infiniteSlider?g!=ba[d]&&(c=!0):f!=x[d]&&(c=!0);if(c&&(x[d]=f,ba[d]=g,ka=!0,g=new e.args("change",b,E,a(E).children(":eq("+g+")"),g,g),a(y).data("args", g),""!=b.onSlideChange))b.onSlideChange(g)}ca=!1});A=a(window);if(X||aa)A=a(document);a(la).bind("touchend.iosSliderEvent",function(a){a=a.originalEvent;if(fa[d]||Y||ya)return!0;if(0!=a.touches.length)for(var c=0;cF[j.sliderNumber]&&x[j.sliderNumber]--,b.data("args").currentSlideNumber>= e&&x[j.sliderNumber]++):(e<=j.numberOfSlides?a(j.scrollerNode).children(":eq("+(e-1)+")").before(c):a(j.scrollerNode).children(":eq("+(e-2)+")").after(c),b.data("args").currentSlideNumber>=e&&b.data("args").currentSlideNumber++);b.data("iosslider").numberOfSlides++;V.update(this)})},removeSlide:function(c){return this.each(function(){var e=a(this).data("iosslider");if(void 0==e)return!1;a(e.scrollerNode).children(":eq("+(c-1)+")").remove();x[e.sliderNumber]>c-1&&x[e.sliderNumber]--;V.update(this)})}, goToSlide:function(c,f){void 0==f&&(f=this);return a(f).each(function(){var b=a(this).data("iosslider");if(void 0==b)return!1;c=c>b.childrenOffsets.length?b.childrenOffsets.length-1:c-1;e.changeSlide(c,a(b.scrollerNode),a(b.slideNodes),$[b.sliderNumber],b.scrollbarClass,b.scrollbarWidth,b.stageWidth,b.scrollbarStageWidth,b.scrollMargin,b.scrollBorder,b.originalOffsets,b.childrenOffsets,b.slideNodeOuterWidths,b.sliderNumber,b.infiniteSliderWidth,b.numberOfSlides,b.centeredSlideOffset,b.settings);x[b.sliderNumber]= c})},prevSlide:function(){return this.each(function(){var c=a(this).data("iosslider");if(void 0==c)return!1;var f=(x[c.sliderNumber]+F[c.sliderNumber]+c.numberOfSlides)%c.numberOfSlides;(0c-1?c-1:h.startingChild,j=h.startingChild===null?h.bearing:360-i*e,k=b.css("position")!=="static"?b.css("position"):"relative";b.css({padding:0,position:k}).addClass("roundabout-holder").data("roundabout",a.extend({},h,{startingChild:i,bearing:j,oppositeOfFocusBearing:d.normalize.apply(null,[h.focusBearing-180]),dragBearing:j,period:e}));if(g){b.unbind(".roundabout").children(h.childSelector).unbind(".roundabout")}else{if(h.responsive){a(window).bind("resize",function(){d.stopAutoplay.apply(b);d.relayoutChildren.apply(b)})}}if(h.clickToFocus){b.children(h.childSelector).each(function(c){a(this).bind("click.roundabout",function(){var e=d.getPlacement.apply(b,[c]);if(!d.isInFocus.apply(b,[e])){d.stopAnimation.apply(a(this));if(!b.data("roundabout").animating){d.animateBearingToFocus.apply(b,[e,b.data("roundabout").clickToFocusCallback])}return false}})})}if(h.btnNext){a(h.btnNext).bind("click.roundabout",function(){if(!b.data("roundabout").animating){d.animateToNextChild.apply(b,[b.data("roundabout").btnNextCallback])}return false})}if(h.btnPrev){a(h.btnPrev).bind("click.roundabout",function(){d.animateToPreviousChild.apply(b,[b.data("roundabout").btnPrevCallback]);return false})}if(h.btnToggleAutoplay){a(h.btnToggleAutoplay).bind("click.roundabout",function(){d.toggleAutoplay.apply(b);return false})}if(h.btnStartAutoplay){a(h.btnStartAutoplay).bind("click.roundabout",function(){d.startAutoplay.apply(b);return false})}if(h.btnStopAutoplay){a(h.btnStopAutoplay).bind("click.roundabout",function(){d.stopAutoplay.apply(b);return false})}if(h.autoplayPauseOnHover){b.bind("mouseenter.roundabout.autoplay",function(){d.stopAutoplay.apply(b,[true])}).bind("mouseleave.roundabout.autoplay",function(){d.startAutoplay.apply(b)})}if(h.enableDrag){if(!a.isFunction(b.drag)){if(h.debug){alert("You do not have the drag plugin loaded.")}}else if(!a.isFunction(b.drop)){if(h.debug){alert("You do not have the drop plugin loaded.")}}else{b.drag(function(a,c){var e=b.data("roundabout"),f=e.dragAxis.toLowerCase()==="x"?"deltaX":"deltaY";d.stopAnimation.apply(b);d.setBearing.apply(b,[e.dragBearing+c[f]/e.dragFactor])}).drop(function(a){var c=b.data("roundabout"),e=d.getAnimateToMethod(c.dropAnimateTo);d.allowAnimation.apply(b);d[e].apply(b,[c.dropDuration,c.dropEasing,c.dropCallback]);c.dragBearing=c.period*d.getNearestChild.apply(b)})}b.each(function(){var b=a(this).get(0),c=a(this).data("roundabout"),e=c.dragAxis.toLowerCase()==="x"?"pageX":"pageY",f=d.getAnimateToMethod(c.dropAnimateTo);if(b.addEventListener){b.addEventListener("touchstart",function(a){c.touchMoveStartPosition=a.touches[0][e]},false);b.addEventListener("touchmove",function(b){var f=(b.touches[0][e]-c.touchMoveStartPosition)/c.dragFactor;b.preventDefault();d.stopAnimation.apply(a(this));d.setBearing.apply(a(this),[c.dragBearing+f])},false);b.addEventListener("touchend",function(b){b.preventDefault();d.allowAnimation.apply(a(this));f=d.getAnimateToMethod(c.dropAnimateTo);d[f].apply(a(this),[c.dropDuration,c.dropEasing,c.dropCallback]);c.dragBearing=c.period*d.getNearestChild.apply(a(this))},false)}})}d.initChildren.apply(b,[f,g])})},initChildren:function(b,c){var e=a(this),f=e.data("roundabout");b=b||function(){};e.children(f.childSelector).each(function(b){var f,g,h,i=d.getPlacement.apply(e,[b]);if(c&&a(this).data("roundabout")){f=a(this).data("roundabout").startWidth;g=a(this).data("roundabout").startHeight;h=a(this).data("roundabout").startFontSize}a(this).addClass("roundabout-moveable-item").css("position","absolute");a(this).data("roundabout",{startWidth:f||a(this).width(),startHeight:g||a(this).height(),startFontSize:h||parseInt(a(this).css("font-size"),10),degrees:i,backDegrees:d.normalize.apply(null,[i-180]),childNumber:b,currentScale:1,parent:e})});d.updateChildren.apply(e);if(f.autoplay){f.autoplayStartTimeout=setTimeout(function(){d.startAutoplay.apply(e)},f.autoplayInitialDelay)}e.trigger("ready");b.apply(e);return e},updateChildren:function(){return this.each(function(){var b=a(this),c=b.data("roundabout"),e=-1,f={bearing:c.bearing,tilt:c.tilt,stage:{width:Math.floor(a(this).width()*.9),height:Math.floor(a(this).height()*.9)},animating:c.animating,inFocus:c.childInFocus,focusBearingRadian:d.degToRad.apply(null,[c.focusBearing]),shape:a.roundaboutShapes[c.shape]||a.roundaboutShapes[a.roundaboutShapes.def]};f.midStage={width:f.stage.width/2,height:f.stage.height/2};f.nudge={width:f.midStage.width+f.stage.width*.05,height:f.midStage.height+f.stage.height*.05};f.zValues={min:c.minZ,max:c.maxZ,diff:c.maxZ-c.minZ};f.opacity={min:c.minOpacity,max:c.maxOpacity,diff:c.maxOpacity-c.minOpacity};f.scale={min:c.minScale,max:c.maxScale,diff:c.maxScale-c.minScale};b.children(c.childSelector).each(function(g){if(d.updateChild.apply(b,[a(this),f,g,function(){a(this).trigger("ready")}])&&(!f.animating||c.lastAnimationStep)){e=g;a(this).addClass("roundabout-in-focus")}else{a(this).removeClass("roundabout-in-focus")}});if(e!==f.inFocus){if(c.triggerBlurEvents){b.children(c.childSelector).eq(f.inFocus).trigger("blur")}c.childInFocus=e;if(c.triggerFocusEvents&&e!==-1){b.children(c.childSelector).eq(e).trigger("focus")}}b.trigger("childrenUpdated")})},updateChild:function(b,c,e,f){var g,h=this,i=a(b),j=i.data("roundabout"),k=[],l=d.degToRad.apply(null,[360-j.degrees+c.bearing]);f=f||function(){};l=d.normalizeRad.apply(null,[l]);g=c.shape(l,c.focusBearingRadian,c.tilt);g.scale=g.scale>1?1:g.scale;g.adjustedScale=(c.scale.min+c.scale.diff*g.scale).toFixed(4);g.width=(g.adjustedScale*j.startWidth).toFixed(4);g.height=(g.adjustedScale*j.startHeight).toFixed(4);i.css({left:(g.x*c.midStage.width+c.nudge.width-g.width/2).toFixed(0)+"px",top:(g.y*c.midStage.height+c.nudge.height-g.height/2).toFixed(0)+"px",width:g.width+"px",height:g.height+"px",opacity:(c.opacity.min+c.opacity.diff*g.scale).toFixed(2),zIndex:Math.round(c.zValues.min+c.zValues.diff*g.z),fontSize:(g.adjustedScale*j.startFontSize).toFixed(1)+"px"});j.currentScale=g.adjustedScale;if(h.data("roundabout").debug){k.push('
');k.push('Child '+e+"
");k.push("left: "+i.css("left")+"
");k.push("top: "+i.css("top")+"
");k.push("width: "+i.css("width")+"
");k.push("opacity: "+i.css("opacity")+"
");k.push("height: "+i.css("height")+"
");k.push("z-index: "+i.css("z-index")+"
");k.push("font-size: "+i.css("font-size")+"
");k.push("scale: "+i.data("roundabout").currentScale);k.push("
");i.html(k.join(""))}i.trigger("reposition");f.apply(h);return d.isInFocus.apply(h,[j.degrees])},setBearing:function(b,c){c=c||function(){};b=d.normalize.apply(null,[b]);this.each(function(){var c,e,f,g=a(this),h=g.data("roundabout"),i=h.bearing;h.bearing=b;g.trigger("bearingSet");d.updateChildren.apply(g);c=Math.abs(i-b);if(!h.animating||c>180){return}c=Math.abs(i-b);g.children(h.childSelector).each(function(c){var e;if(d.isChildBackDegreesBetween.apply(a(this),[b,i])){e=i>b?"Clockwise":"Counterclockwise";a(this).trigger("move"+e+"ThroughBack")}})});c.apply(this);return this},adjustBearing:function(b,c){c=c||function(){};if(b===0){return this}this.each(function(){d.setBearing.apply(a(this),[a(this).data("roundabout").bearing+b])});c.apply(this);return this},setTilt:function(b,c){c=c||function(){};this.each(function(){a(this).data("roundabout").tilt=b;d.updateChildren.apply(a(this))});c.apply(this);return this},adjustTilt:function(b,c){c=c||function(){};this.each(function(){d.setTilt.apply(a(this),[a(this).data("roundabout").tilt+b])});c.apply(this);return this},animateToBearing:function(b,c,e,f,g){var h=(new Date).getTime();g=g||function(){};if(a.isFunction(f)){g=f;f=null}else if(a.isFunction(e)){g=e;e=null}else if(a.isFunction(c)){g=c;c=null}this.each(function(){var i,j,k,l=a(this),m=l.data("roundabout"),n=!c?m.duration:c,o=e?e:m.easing||"swing";if(!f){f={timerStart:h,start:m.bearing,totalTime:n}}i=h-f.timerStart;if(m.stopAnimation){d.allowAnimation.apply(l);m.animating=false;return}if(i=0&&!a.easing["easeOutBack"]){k=f.start+(b-f.start)*k}k=d.normalize.apply(null,[k]);m.dragBearing=k;d.setBearing.apply(l,[k,function(){setTimeout(function(){d.animateToBearing.apply(l,[b,n,o,f,g])},0)}])}else{m.lastAnimationStep=true;b=d.normalize.apply(null,[b]);d.setBearing.apply(l,[b,function(){l.trigger("animationEnd")}]);m.animating=false;m.lastAnimationStep=false;m.dragBearing=b;g.apply(l)}});return this},animateToNearbyChild:function(b,c){var e=b[0],f=b[1],g=b[2]||function(){};if(a.isFunction(f)){g=f;f=null}else if(a.isFunction(e)){g=e;e=null}return this.each(function(){var b,h,i=a(this),j=i.data("roundabout"),k=!j.reflect?j.bearing%360:j.bearing,l=i.children(j.childSelector).length;if(!j.animating){if(j.reflect&&c==="previous"||!j.reflect&&c==="next"){k=Math.abs(k)=Math.floor(h.lower)){if(l===2&&k===360){d.animateToDelta.apply(i,[-180,e,f,g])}else{d.animateBearingToFocus.apply(i,[h.lower,e,f,g])}break}}}else{k=Math.abs(k)=0;b-=1){h={lower:j.period*b,upper:j.period*(b+1)};h.upper=b===l-1?360:h.upper;if(k>=Math.floor(h.lower)&&k180?-(360-g):g;if(g!==0){d.animateToDelta.apply(a(this),[g,c,e,f])}})},stopAnimation:function(){return this.each(function(){a(this).data("roundabout").stopAnimation=true})},allowAnimation:function(){return this.each(function(){a(this).data("roundabout").stopAnimation=false})},startAutoplay:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");b=b||e.autoplayCallback||function(){};clearInterval(e.autoplayInterval);e.autoplayInterval=setInterval(function(){d.animateToNextChild.apply(c,[b])},e.autoplayDuration);e.autoplayIsRunning=true;c.trigger("autoplayStart")})},stopAutoplay:function(b){return this.each(function(){clearInterval(a(this).data("roundabout").autoplayInterval);a(this).data("roundabout").autoplayInterval=null;a(this).data("roundabout").autoplayIsRunning=false;if(!b){a(this).unbind(".autoplay")}a(this).trigger("autoplayStop")})},toggleAutoplay:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");b=b||e.autoplayCallback||function(){};if(!d.isAutoplaying.apply(a(this))){d.startAutoplay.apply(a(this),[b])}else{d.stopAutoplay.apply(a(this),[b])}})},isAutoplaying:function(){return this.data("roundabout").autoplayIsRunning},changeAutoplayDuration:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");e.autoplayDuration=b;if(d.isAutoplaying.apply(c)){d.stopAutoplay.apply(c);setTimeout(function(){d.startAutoplay.apply(c)},10)}})},normalize:function(a){var b=a%360;return b<0?360+b:b},normalizeRad:function(a){while(a<0){a+=Math.PI*2}while(a>Math.PI*2){a-=Math.PI*2}return a},isChildBackDegreesBetween:function(b,c){var d=a(this).data("roundabout").backDegrees;if(b>c){return d>=c&&d=b}},getAnimateToMethod:function(a){a=a.toLowerCase();if(a==="next"){return"animateToNextChild"}else if(a==="previous"){return"animateToPreviousChild"}return"animateToNearestChild"},relayoutChildren:function(){return this.each(function(){var b=a(this),c=a.extend({},b.data("roundabout"));c.startingChild=b.data("roundabout").childInFocus;d.init.apply(b,[c,null,true])})},getNearestChild:function(){var b=a(this),c=b.data("roundabout"),d=b.children(c.childSelector).length;if(!c.reflect){return(d-Math.round(c.bearing/c.period)%d)%d}else{return Math.round(c.bearing/c.period)%d}},degToRad:function(a){return d.normalize.apply(null,[a])*Math.PI/180},getPlacement:function(a){var b=this.data("roundabout");return!b.reflect?360-b.period*a:b.period*a},isInFocus:function(a){var b,c=this,e=c.data("roundabout"),f=d.normalize.apply(null,[e.bearing]);a=d.normalize.apply(null,[a]);b=Math.abs(f-a);return b<=e.floatComparisonThreshold||b>=360-e.floatComparisonThreshold},getChildInFocus:function(){var b=a(this).data("roundabout");return b.childInFocus>-1?b.childInFocus:false},compareVersions:function(a,b){var c,d=a.split(/\./i),e=b.split(/\./i),f=d.length>e.length?d.length:e.length;for(c=0;c<=f;c++){if(d[c]&&!e[c]&&parseInt(d[c],10)!==0){return 1}else if(e[c]&&!d[c]&&parseInt(e[c],10)!==0){return-1}else if(d[c]===e[c]){continue}if(d[c]&&e[c]){if(parseInt(d[c],10)>parseInt(e[c],10)){return 1}else{return-1}}}return 0}};a.fn.roundabout=function(b){if(d[b]){return d[b].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof b==="object"||a.isFunction(b)||!b){return d.init.apply(this,arguments)}else{a.error("Method "+b+" does not exist for jQuery.roundabout.")}}})(jQuery) \ No newline at end of file diff --git a/js/jquery.zoom-min.js b/js/jquery.zoom-min.js new file mode 100644 index 0000000..ea4cdc5 --- /dev/null +++ b/js/jquery.zoom-min.js @@ -0,0 +1,6 @@ +/* + jQuery Zoom v1.7.1 - 2013-03-12 + (c) 2013 Jack Moore - jacklmoore.com/zoom + license: http://www.opensource.org/licenses/mit-license.php +*/ +(function(o){var t={url:!1,callback:!1,target:!1,duration:120,on:"mouseover"};o.zoom=function(t,n,e){var i,u,a,c,r,m=o(t).css("position");return o(t).css({position:/(absolute|fixed)/.test()?m:"relative",overflow:"hidden"}),o(e).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:e.width,height:e.height,border:"none",maxWidth:"none"}).appendTo(t),{init:function(){i=o(t).outerWidth(),u=o(t).outerHeight(),a=(e.width-i)/o(n).outerWidth(),c=(e.height-u)/o(n).outerHeight(),r=o(n).offset()},move:function(o){var t=o.pageX-r.left,n=o.pageY-r.top;n=Math.max(Math.min(n,u),0),t=Math.max(Math.min(t,i),0),e.style.left=t*-a+"px",e.style.top=n*-c+"px"}}},o.fn.zoom=function(n){return this.each(function(){var e=o.extend({},t,n||{}),i=e.target||this,u=this,a=new Image,c=o(a),r="mousemove",m=!1;(e.url||(e.url=o(u).find("img").attr("src"),e.url))&&(a.onload=function(){function t(t){s.init(),s.move(t),c.stop().fadeTo(o.support.opacity?e.duration:0,1)}function n(){c.stop().fadeTo(e.duration,0)}var s=o.zoom(i,u,a);"grab"===e.on?o(u).on("mousedown",function(e){o(document).one("mouseup",function(){n(),o(document).off(r,s.move)}),t(e),o(document).on(r,s.move),e.preventDefault()}):"click"===e.on?o(u).on("click",function(e){return m?void 0:(m=!0,t(e),o(document).on(r,s.move),o(document).one("click",function(){n(),m=!1,o(document).off(r,s.move)}),!1)}):"toggle"===e.on?o(u).on("click",function(o){m?n():t(o),m=!m}):(s.init(),o(u).on("mouseenter",t).on("mouseleave",n).on(r,s.move)),o.isFunction(e.callback)&&e.callback.call(a)},a.src=e.url)})},o.fn.zoom.defaults=t})(window.jQuery); \ No newline at end of file diff --git a/js/lightbox-2.6.min.js b/js/lightbox-2.6.min.js new file mode 100644 index 0000000..9c98bfb --- /dev/null +++ b/js/lightbox-2.6.min.js @@ -0,0 +1 @@ +(function(){var b,d,c;b=jQuery;c=(function(){function b(){this.fadeDuration=0;this.fitImagesInViewport=true;this.resizeDuration=700;this.showImageNumberLabel=true;this.wrapAround=false}b.prototype.albumLabel=function(b,c){return"Image "+b+" of "+c};return b})();d=(function(){function c(b){this.options=b;this.album=[];this.currentImageIndex=void 0;this.init()}c.prototype.init=function(){this.enable();return this.build()};c.prototype.enable=function(){var c=this;return b('body').on('click','a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]',function(d){c.start(b(d.currentTarget));return false})};c.prototype.build=function(){var c=this;b("
").appendTo(b('body'));this.$lightbox=b('#lightbox');this.$overlay=b('#lightboxOverlay');this.$outerContainer=this.$lightbox.find('.lb-outerContainer');this.$container=this.$lightbox.find('.lb-container');this.containerTopPadding=parseInt(this.$container.css('padding-top'),10);this.containerRightPadding=parseInt(this.$container.css('padding-right'),10);this.containerBottomPadding=parseInt(this.$container.css('padding-bottom'),10);this.containerLeftPadding=parseInt(this.$container.css('padding-left'),10);this.$overlay.hide().on('click',function(){c.end();return false});this.$lightbox.hide().on('click',function(d){if(b(d.target).attr('id')==='lightbox'){c.end()}return false});this.$outerContainer.on('click',function(d){if(b(d.target).attr('id')==='lightbox'){c.end()}return false});this.$lightbox.find('.lb-prev').on('click',function(){if(c.currentImageIndex===0){c.changeImage(c.album.length-1)}else{c.changeImage(c.currentImageIndex-1)}return false});this.$lightbox.find('.lb-next').on('click',function(){if(c.currentImageIndex===c.album.length-1){c.changeImage(0)}else{c.changeImage(c.currentImageIndex+1)}return false});return this.$lightbox.find('.lb-loader, .lb-close').on('click',function(){c.end();return false})};c.prototype.start=function(c){var f,e,j,d,g,n,o,k,l,m,p,h,i;b(window).on("resize",this.sizeOverlay);b('select, object, embed').css({visibility:"hidden"});this.$overlay.width(b(document).width()).height(b(document).height()).fadeIn(this.options.fadeDuration);this.album=[];g=0;j=c.attr('data-lightbox');if(j){h=b(c.prop("tagName")+'[data-lightbox="'+j+'"]');for(d=k=0,m=h.length;kj)||(c.height>i)){if((c.width/j)>(c.height/i)){h=j;g=parseInt(c.height/(c.width/h),10);d.width(h);d.height(g)}else{g=i;h=parseInt(c.width/(c.height/g),10);d.width(h);d.height(g)}}}return e.sizeContainer(d.width(),d.height())};c.src=this.album[f].link;this.currentImageIndex=f};c.prototype.sizeOverlay=function(){return b('#lightboxOverlay').width(b(document).width()).height(b(document).height())};c.prototype.sizeContainer=function(f,g){var b,d,e,h,c=this;h=this.$outerContainer.outerWidth();e=this.$outerContainer.outerHeight();d=f+this.containerLeftPadding+this.containerRightPadding;b=g+this.containerTopPadding+this.containerBottomPadding;this.$outerContainer.animate({width:d,height:b},this.options.resizeDuration,'swing');setTimeout(function(){c.$lightbox.find('.lb-dataContainer').width(d);c.$lightbox.find('.lb-prevLink').height(b);c.$lightbox.find('.lb-nextLink').height(b);c.showImage()},this.options.resizeDuration)};c.prototype.showImage=function(){this.$lightbox.find('.lb-loader').hide();this.$lightbox.find('.lb-image').fadeIn('slow');this.updateNav();this.updateDetails();this.preloadNeighboringImages();this.enableKeyboardNav()};c.prototype.updateNav=function(){this.$lightbox.find('.lb-nav').show();if(this.album.length>1){if(this.options.wrapAround){this.$lightbox.find('.lb-prev, .lb-next').show()}else{if(this.currentImageIndex>0){this.$lightbox.find('.lb-prev').show()}if(this.currentImageIndex1&&this.options.showImageNumberLabel){this.$lightbox.find('.lb-number').text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn('fast')}else{this.$lightbox.find('.lb-number').hide()}this.$outerContainer.removeClass('animating');this.$lightbox.find('.lb-dataContainer').fadeIn(this.resizeDuration,function(){return b.sizeOverlay()})};c.prototype.preloadNeighboringImages=function(){var c,b;if(this.album.length>this.currentImageIndex+1){c=new Image();c.src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){b=new Image();b.src=this.album[this.currentImageIndex-1].link}};c.prototype.enableKeyboardNav=function(){b(document).on('keyup.keyboard',b.proxy(this.keyboardAction,this))};c.prototype.disableKeyboardNav=function(){b(document).off('.keyboard')};c.prototype.keyboardAction=function(g){var d,e,f,c,b;d=27;e=37;f=39;b=g.keyCode;c=String.fromCharCode(b).toLowerCase();if(b===d||c.match(/x|o|c/)){this.end()}else if(c==='p'||b===e){if(this.currentImageIndex!==0){this.changeImage(this.currentImageIndex-1)}}else if(c==='n'||b===f){if(this.currentImageIndex!==this.album.length-1){this.changeImage(this.currentImageIndex+1)}}};c.prototype.end=function(){this.disableKeyboardNav();b(window).off("resize",this.sizeOverlay);this.$lightbox.fadeOut(this.options.fadeDuration);this.$overlay.fadeOut(this.options.fadeDuration);return b('select, object, embed').css({visibility:"visible"})};return c})();b(function(){var e,b;b=new c();return e=new d(b)})}).call(this); \ No newline at end of file diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..3fee676 --- /dev/null +++ b/js/main.js @@ -0,0 +1,51 @@ +jQuery(document).ready(function(){ + "use strict"; + + if ( jQuery('.video-container').length > 0 ) { + jQuery(".video-container").fitVids(); + } + + // Accordion + if ( jQuery('.panel-group').length > 0 ) { + jQuery('.panel-group').each(function () { + if ( jQuery(this).find('.in').length == 0 ) { + jQuery('.panel:first-child .panel-collapse' , jQuery(this)).addClass('in'); + jQuery('.panel:first-child .accordion-toggle' , jQuery(this)).removeClass('collapsed'); + } + }); + } + + if( jQuery('.zoom-picture').length > 0 ) { + jQuery('.zoom-picture').zoom(); + } + +}); + +(function($) { + "use strict"; + + /** Gallery Isotope */ + $(function() { + if ( $('.recent-posts .recent-post').length > 0 ) { + var $recent = $('.recent-posts'); + $recent.imagesLoaded(function(){ + $recent.masonry({ + itemSelector: '.recent-post' + }); + }); + } + }); + +})(jQuery); + + +if ( jQuery('.fullwidth-row').length >0 ) { + jQuery('.fullwidth-row').each(function () { + if ( jQuery.trim(jQuery(this).prev().not('div.fullwidth-row').children('.row').children('.col-lg-12').html()).length == 0 ) { + jQuery(this).prev().not('div.fullwidth-row').remove(); + } + if ( jQuery.trim(jQuery(this).next().not('div.fullwidth-row').children('.row').children('.col-lg-12').html()).length == 0) { + jQuery(this).next().not('div.fullwidth-row').remove(); + } + }); +} \ No newline at end of file diff --git a/js/min/main-min.js b/js/min/main-min.js new file mode 100644 index 0000000..c5c1475 --- /dev/null +++ b/js/min/main-min.js @@ -0,0 +1 @@ +jQuery(document).ready(function(){"use strict";jQuery(".video-container").length>0&&jQuery(".video-container").fitVids(),jQuery(".panel-group").length>0&&jQuery(".panel-group").each(function(){0==jQuery(this).find(".in").length&&(jQuery(".panel:first-child .panel-collapse",jQuery(this)).addClass("in"),jQuery(".panel:first-child .accordion-toggle",jQuery(this)).removeClass("collapsed"))}),jQuery(".zoom-picture").length>0&&jQuery(".zoom-picture").zoom()}),function($){"use strict";$(function(){if($(".recent-posts .recent-post").length>0){var e=$(".recent-posts");e.imagesLoaded(function(){e.masonry({itemSelector:".recent-post"})})}})}(jQuery),jQuery(".fullwidth-row").length>0&&jQuery(".fullwidth-row").each(function(){0==jQuery.trim(jQuery(this).prev().not("div.fullwidth-row").children(".row").children(".col-lg-12").html()).length&&jQuery(this).prev().not("div.fullwidth-row").remove(),0==jQuery.trim(jQuery(this).next().not("div.fullwidth-row").children(".row").children(".col-lg-12").html()).length&&jQuery(this).next().not("div.fullwidth-row").remove()}); \ No newline at end of file diff --git a/js/sidebars.js b/js/sidebars.js new file mode 100644 index 0000000..a3a546a --- /dev/null +++ b/js/sidebars.js @@ -0,0 +1,84 @@ +(function($) { + "use strict"; + + jQuery(document).ready(function($){ + "use strict"; + + $('a[data-sidebar-id]').off('click').on('click', remove_sidebar); + + }); + + $('#add-sidebar').submit(function (e) { + + e.preventDefault(); + + jQuery.post( + ajaxurl, + { + 'action': 'update_sidebars', + 'name' : $('#add-sidebar-field').val(), + 'id' : '', + 'method': 'update' + }, + function(response){ + + if ( response == 'duplicate' ) { + + $('#messages').append('

' + js_data[3] + '

'); + + } else if ( response == 'empty' ) { + + $('#messages').append('

' + js_data[2] + '

'); + + } else { + + var response_obj = jQuery.parseJSON( response ); + $('#no-sidebar').remove(); + $('#sidebar-list').append('
  • ' + response_obj[1] + '[sidebar id="' + response_obj[0] + '"] ' + js_data[0] + '
  • '); + $('a[data-sidebar-id]').off('click').on('click', remove_sidebar); + $('#add-sidebar-field').val(null); + + $('#messages').append('

    ' + js_data[4] + '

    '); + + } + + setTimeout(function(){ $('#messages > p').fadeOut(); }, 4000); + } + ); + }); + + + function remove_sidebar() { + + var sidebar = $(this); + + if ( confirm( js_data[1] ) == true ) { + + jQuery.post( + ajaxurl, + { + 'action': 'update_sidebars', + 'name' : '', + 'id' : sidebar.data('sidebar-id'), + 'method': 'delete' + }, + function(response){ + + if ( response == 'success' ) { + + if ( sidebar.parents('#sidebar-list').children().length == 1 ) { + $('#sidebar-list').append('
  • ' + js_data[5] + '
  • '); + } + + sidebar.parent().remove(); + + } + } + ); + } + + return false; + + } + +})(jQuery); \ No newline at end of file diff --git a/plugins/simple-qr/css/arrow-icons.css b/plugins/simple-qr/css/arrow-icons.css new file mode 100644 index 0000000..f65e9e8 --- /dev/null +++ b/plugins/simple-qr/css/arrow-icons.css @@ -0,0 +1,13 @@ +.simple-qr { + position: relative; +} +.simple-qr span{ + font-family: 'Pacifico'; + font-size: 20px; + position: absolute; + display: block; + white-space: nowrap; + z-index: 2; + top: 100%; + width: 100%; +} diff --git a/plugins/simple-qr/qr-generator.php b/plugins/simple-qr/qr-generator.php new file mode 100644 index 0000000..bf02577 --- /dev/null +++ b/plugins/simple-qr/qr-generator.php @@ -0,0 +1,42 @@ +url($url); break; + case 'contact' : $qr->contact($name, $address, $phone, $email); break; + case 'email' : $qr->email($email, $subject, $message); break; + case 'geo' : $qr->geo($lat, $lon, $height); break; + case 'phone' : $qr->phone($phone); break; + case 'sms' : $qr->sms($phone, $message); break; + case 'text' : $qr->text($text); break; + case 'wifi' : $qr->wifi($wifi_type, $ssid, $password); break; + case 'bookmark' : $qr->bookmark($text, $url); break; + +} + +$qr->draw($size); + +?> \ No newline at end of file diff --git a/plugins/simple-qr/qr.php b/plugins/simple-qr/qr.php new file mode 100644 index 0000000..4e5ccb7 --- /dev/null +++ b/plugins/simple-qr/qr.php @@ -0,0 +1,165 @@ +_data = "MEBKM:TITLE:{$title};URL:{$url};;"; + } + + /** + * MECARD code + * + * @param string $name + * @param string $address + * @param string $phone + * @param string $email + */ + public function contact($name = null, $address = null, $phone = null, $email = null) { + $this->_data = "MECARD:N:{$name};ADR:{$address};TEL:{$phone};EMAIL:{$email};;"; + } + + /** + * Create code with GIF, JPG, etc. + * + * @param string $type + * @param string $size + * @param string $content + */ + public function content($type = null, $size = null, $content = null) { + $this->_data = "CNTS:TYPE:{$type};LNG:{$size};BODY:{$content};;"; + } + + /** + * Generate QR code image + * + * @param int $size + * @param string $filename + * @return bool + */ + public function draw($size = 150, $filename = null) { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, self::API_CHART_URL); + curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_POSTFIELDS, "chs={$size}x{$size}&cht=qr&chld=|0&chl=" . urlencode($this->_data)); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_HEADER, false); + curl_setopt($ch, CURLOPT_TIMEOUT, 30); + $img = curl_exec($ch); + curl_close($ch); + + if($img) { + if($filename) { + if(!preg_match("#\.png$#i", $filename)) { + $filename .= ".png"; + } + + return file_put_contents($filename, $img); + } else { + header("Content-type: image/png"); + print $img; + return true; + } + } + + return false; + } + + /** + * Email address code + * + * @param string $email + * @param string $subject + * @param string $message + */ + public function email($email = null, $subject = null, $message = null) { + $this->_data = "MATMSG:TO:{$email};SUB:{$subject};BODY:{$message};;"; + } + + /** + * Geo location code + * + * @param string $lat + * @param string $lon + * @param string $height + */ + public function geo($lat = null, $lon = null, $height = null) { + $this->_data = "GEO:{$lat},{$lon},{$height}"; + } + + /** + * Telephone number code + * + * @param string $phone + */ + public function phone($phone = null) { + $this->_data = "TEL:{$phone}"; + } + + /** + * SMS code + * + * @param string $phone + * @param string $text + */ + public function sms($phone = null, $text = null) { + $this->_data = "SMSTO:{$phone}:{$text}"; + } + + /** + * Text code + * + * @param string $text + */ + public function text($text = null) { + $this->_data = $text; + } + + /** + * URL code + * + * @param string $url + */ + public function url($url = null) { + $this->_data = preg_match("#^https?\:\/\/#", $url) ? $url : "http://{$url}"; + } + + /** + * Wifi code + * + * @param string $type + * @param string $ssid + * @param string $password + */ + public function wifi($type = null, $ssid = null, $password = null) { + $this->_data = "WIFI:T:{$type};S:{$ssid};P:{$password};;"; + } +} +?> \ No newline at end of file diff --git a/plugins/simple-qr/simple-qr.php b/plugins/simple-qr/simple-qr.php new file mode 100644 index 0000000..8b5bf1c --- /dev/null +++ b/plugins/simple-qr/simple-qr.php @@ -0,0 +1,102 @@ + null, + 'title' => null, + 'url' => null, + 'name' => null, + 'address' => null, + 'phone' => null, + 'email' => null, + 'message' => null, + 'wifi_type' => null, + 'ssid' => null, + 'password' => null, + 'text' => null, + 'lat' => null, + 'lon' => null, + 'height' => null, + 'align' => null, + 'size' => '200', + 'alt' => get_the_title(), + 'pointer_text' => null, + 'pointer_color' => '#CC0000', + 'pointer_position' => 'left', + 'margin' => 20 + + ), $atts)); + + switch($type){ + + case 'url' : + $out = 'type=url&url='.$atts['url']; + break; + case 'contact' : + $out = 'type=contact&name='.$atts['name'].'&address='.$atts['address'].'&phone='.$atts['phone'].'&email='.$atts['email']; + break; + case 'email' : + $out = 'type=email&email='.$atts['email'].'&subject='.$atts['subject'].'&message='.$atts['message']; + break; + case 'geo' : + $out = 'type=geo&lat='.$atts['lat'].'&lon='.$atts['lon'].'&height='.$atts['height']; + break; + case 'phone' : + $out = 'type=phone&phone='.$atts['phone']; + break; + case 'sms' : + $out = 'type=sms&phone='.$atts['phone'].'&message='.$atts['message']; + break; + case 'text' : + $out = 'type=text&text='.$text; + break; + case 'wifi' : + $out = 'type=wifi&wifi_type='.$atts['wifi_type'].'&ssid='.$atts['ssid'].'&password='.$atts['password']; + break; + case 'bookmark' : + $out = 'type=bookmark&text='.$title.'&url='.$url; + break; + case 'auto' : + $out = 'type=url&url='.get_permalink(); + break; + } + + $css = 'alignnone'; + + switch($align){ + case 'right' : $css = 'alignright'; break; + case 'left' : $css = 'alignleft'; break; + case 'center' : $css = 'aligncenter'; break; + } + $arrow = null; + if(isset($pointer_text)){ + $arrow = ''; + $arrow .= $pointer_text.''; + } + + $inline = ($margin) ? ' style="margin-bottom: '.$margin.'px" ' : null; + + $html = '
    '.$alt.''.$arrow.'
    '; + + return $html; + +} +add_shortcode( 'simple-qr', 'curly_qr' ); + +?> \ No newline at end of file diff --git a/plugins/simple-text-rotator/css/simpletextrotator.css b/plugins/simple-text-rotator/css/simpletextrotator.css new file mode 100755 index 0000000..72ef6c4 --- /dev/null +++ b/plugins/simple-text-rotator/css/simpletextrotator.css @@ -0,0 +1,6 @@ +@charset "UTF-8";/*! +Animate.css - http://daneden.me/animate +Licensed under the MIT license - http://opensource.org/licenses/MIT + +Copyright (c) 2014 Daniel Eden +*/.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}@-webkit-keyframes bounce{0%,100%,20%,53%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,100%,20%,53%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);-ms-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);-ms-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);-ms-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;-ms-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);-ms-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);-ms-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);-ms-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);-ms-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);-ms-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);-ms-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);-ms-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);-ms-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);-ms-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);-ms-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);-ms-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);-ms-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);-ms-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}.swing{-webkit-transform-origin:top center;-ms-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);-ms-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);-ms-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);-ms-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}100%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}100%{-webkit-transform:none;transform:none}}@keyframes wobble{0%{-webkit-transform:none;-ms-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);-ms-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);-ms-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);-ms-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);-ms-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);-ms-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}100%{-webkit-transform:none;-ms-transform:none;transform:none}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes bounceIn{0%,100%,20%,40%,60%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes bounceIn{0%,100%,20%,40%,60%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);-ms-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);-ms-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);-ms-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);-ms-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);-ms-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn;-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounceInDown{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInDown{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);-ms-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);-ms-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);-ms-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);-ms-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}100%{-webkit-transform:none;-ms-transform:none;transform:none}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInLeft{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);-ms-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);-ms-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);-ms-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);-ms-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;-ms-transform:none;transform:none}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInRight{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0);-ms-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);-ms-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);-ms-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);-ms-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}100%{-webkit-transform:none;-ms-transform:none;transform:none}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes bounceInUp{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0);-ms-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);-ms-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);-ms-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);-ms-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}100%{-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);-ms-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);-ms-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);-ms-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-name:bounceOut;animation-name:bounceOut;-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);-ms-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);-ms-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);-ms-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);-ms-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);-ms-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);-ms-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);-ms-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);-ms-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);-ms-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);-ms-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);-ms-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);-ms-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);-ms-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);-ms-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);-ms-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);-ms-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,100%,0);-ms-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);-ms-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);-ms-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);-ms-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-100%,0);-ms-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);-ms-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);-ms-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-ms-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-ms-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);-ms-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;-ms-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);-ms-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);-ms-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);-ms-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);-ms-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);-ms-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);-ms-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);-ms-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);-ms-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);-ms-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);-ms-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}.flipOutX{-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);-ms-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);-ms-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}.flipOutY{-webkit-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY;-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}100%{-webkit-transform:none;transform:none;opacity:1}}@keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);-ms-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);-ms-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);-ms-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}100%{-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.lightSpeedIn{-webkit-animation-name:lightSpeedIn;animation-name:lightSpeedIn;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOut{0%{opacity:1}100%{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}@keyframes lightSpeedOut{0%{opacity:1}100%{-webkit-transform:translate3d(100%,0,0) skewX(30deg);-ms-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}.lightSpeedOut{-webkit-animation-name:lightSpeedOut;animation-name:lightSpeedOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateIn{0%{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);-ms-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}100%{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);-ms-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}100%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);-ms-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);-ms-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);-ms-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}100%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight}@-webkit-keyframes rotateOut{0%{-webkit-transform-origin:center;transform-origin:center;opacity:1}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;opacity:1}100%{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);-ms-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut}@-webkit-keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);-ms-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft}@-webkit-keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);-ms-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight}@-webkit-keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);-ms-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft}@-webkit-keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);-ms-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight}@-webkit-keyframes hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}100%{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);-ms-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);-ms-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}100%{-webkit-transform:translate3d(0,700px,0);-ms-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-name:hinge;animation-name:hinge}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);-ms-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);-ms-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);-ms-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-ms-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-ms-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-ms-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-ms-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-ms-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-ms-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-ms-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-ms-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}100%{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);-ms-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}100%{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-ms-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-ms-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;-ms-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;transform-origin:left center}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);-ms-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);-ms-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;-ms-transform-origin:left center;transform-origin:left center}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;transform-origin:right center}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);-ms-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);-ms-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;-ms-transform-origin:right center;transform-origin:right center}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-ms-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-ms-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;-ms-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp}.morphext>span{display:none}.morphext>.animated{display:inline-block}.morphist>*{display:none}.morphist>.animated{display:inline-block} \ No newline at end of file diff --git a/plugins/simple-text-rotator/js/morphext.min.js b/plugins/simple-text-rotator/js/morphext.min.js new file mode 100755 index 0000000..698dd2b --- /dev/null +++ b/plugins/simple-text-rotator/js/morphext.min.js @@ -0,0 +1 @@ +!function(e){function t(t,i){this.element=e(t),this.settings=e.extend({},r,i),this._defaults=r,this._name=n,this.init()}var n="Morphext",r={animation:"bounceIn",separator:",",speed:2e3};t.prototype={init:function(){var t=this;this.phrases=[],this.element.addClass("morphext"),e.each(this.element.text().split(this.settings.separator),function(e,n){t.phrases.push(n)}),this.element.html(""+this.phrases.join("")+""),this.index=-1,this.animate(),setInterval(function(){t.animate()},this.settings.speed)},animate:function(){this.index+1===this.phrases.length&&(this.index=-1),++this.index,this.element.find("span").removeClass().eq(this.index).addClass("animated "+this.settings.animation)}},e.fn[n]=function(r){return this.each(function(){e.data(this,"plugin_"+n)||e.data(this,"plugin_"+n,new t(this,r))})}}(jQuery,window,document);(function(e){"use strict";jQuery(document).ready(function(){jQuery(".str-rotate").each(function(){jQuery(this).Morphext({animation:jQuery(this).data("str-animation"),separator:jQuery(this).data("str-separator"),speed:jQuery(this).data("str-speed")})})})})(jQuery);!function(e){function t(t,i){this.element=e(t),this.settings=e.extend({},r,i),this._defaults=r,this._name=n,this.init()}var n="Morphist",r={animateIn:"bounceIn",animateOut:"rollOut",speed:2e3};t.prototype={init:function(){this.children=this.element.children(),this.element.addClass("morphist"),this.index=-1,this.cycle()},animate:function(){var e=this;++this.index,this.prev=this.index,this.children.eq(this.index).addClass("animated "+this.settings.animateIn),setTimeout(function(){e.cycle()},this.settings.speed)},cycle:function(){var t=this;return this.index+1===this.children.length&&(this.index=-1),"undefined"!=typeof this.prev&&null!==this.prev?void this.children.eq(this.prev).addClass(this.settings.animateOut).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e(this).removeClass(),t.animate()}):void this.animate()}},e.fn[n]=function(r){return this.each(function(){e.data(this,"plugin_"+n)||e.data(this,"plugin_"+n,new t(this,r))})}}(jQuery,window,document);(function(e){"use strict";jQuery(document).ready(function(){jQuery(".scr-rotate").each(function(){e(this).children(":empty").remove();jQuery(this).Morphist({animateIn:jQuery(this).data("scr-animation"),animateOut:jQuery(this).data("scr-animation-out"),speed:jQuery(this).data("scr-speed")})})})})(jQuery) \ No newline at end of file diff --git a/plugins/simple-text-rotator/readme.txt b/plugins/simple-text-rotator/readme.txt new file mode 100644 index 0000000..a12cc9e --- /dev/null +++ b/plugins/simple-text-rotator/readme.txt @@ -0,0 +1,22 @@ +Simple Text Rotator - WordPress Shortcode + +Simple Text Rotator is a beautiful and elegant text rotation solution via WordPress shortcodes. Attract your visitors attention by animating the key words of your business in a few seconds and without any programming skills. Your visitor’s attention will be exactly where you want it to be in seconds. + + +Features: +- Easy to use +- Unlimited Color Options +- 7 Text Effects +- Works anywhere + +Shortcode Usage: +[simple-text-rotator animation=Ҡseparator=Ҡspeed=“â€][/simple-text-rotator] +animation - Available animations are: bounce, flash, pulse, rubberBand, shake, swing, tada, wobble, bounceIn, bounceInDown, bounceInLeft, bounceInRight, bounceInUp, fadeIn, fadeInDown, fadeInDownBig, fadeInLeft, fadeInLeftBig, fadeInRight, fadeInRightBig, fadeInUp, fadeInUpBig, flip, flipInX, flipInY, lightSpeedIn, rotateIn, rotateInDownLeft, rotateInDownRight, rotateInUpLeft, rotateInUpRight, rollIn, zoomIn, zoomInDown, zoomInRight, zoomInUp, zoomInLeft +separator - Choose a character as separator. Any character is allowed. Default is: “|†+speed - Choose the animation speed in milliseconds. Default is: 2000 + + +Installation: + Upload the plugin then activate it. + +Please see online documentation here: http://docs.curlythemes.com/simple-text-rotator/ diff --git a/plugins/simple-text-rotator/simple-text-rotator.php b/plugins/simple-text-rotator/simple-text-rotator.php new file mode 100644 index 0000000..9163c0b --- /dev/null +++ b/plugins/simple-text-rotator/simple-text-rotator.php @@ -0,0 +1,51 @@ + 'bounceIn', + 'separator' => '|', + 'speed' => 2000 + ), $atts ) ); + + $html = ''; + $html .= $content; + $html .= ''; + + return $html; + +} +function curly_simple_content_rotator( $atts , $content = null ) { + extract( shortcode_atts( array( + 'animation' => 'bounceIn', + 'animation_out' => 'bounceOut', + 'speed' => 2000 + ), $atts ) ); + + $html = '
    '; + $html .= do_shortcode($content); + $html .= '
    '; + + return $html; + +} +add_shortcode( 'simple-text-rotator', 'curly_simple_text_rotator'); +add_shortcode( 'simple-content-rotator', 'curly_simple_content_rotator'); + +?> \ No newline at end of file diff --git a/shortcodes/abbr.php b/shortcodes/abbr.php new file mode 100644 index 0000000..413e694 --- /dev/null +++ b/shortcodes/abbr.php @@ -0,0 +1,7 @@ +'.$content.''; +} +?> \ No newline at end of file diff --git a/shortcodes/accordion.php b/shortcodes/accordion.php new file mode 100644 index 0000000..0124322 --- /dev/null +++ b/shortcodes/accordion.php @@ -0,0 +1,54 @@ +'; + $html .= do_shortcode($content).''; + return $html; +} + +// Accodrion Toggle +add_shortcode('toggle', 'curly_toggle'); + function curly_toggle( $atts, $content = null ) { + + // Extract Shortcode Atts + extract(shortcode_atts(array( + 'title' => null, + 'opened' => null + ), $atts)); + + // Global Panel ID + $GLOBALS['accordionPanelID']++; + + if ( $opened == "yes" ) { + $opened = ' in'; + $collapsed = null; + } else { + $opened = null; + $collapsed = ' collapsed'; + } + + // Output + $html = null; + + if ( $title ) { + $html .= '
    '; + $html .= ''; + $html .= '
    + '.do_shortcode($content).'
    '; + $html .= '
    '; + } + + return $html; +} +?> \ No newline at end of file diff --git a/shortcodes/action.php b/shortcodes/action.php new file mode 100644 index 0000000..37942ac --- /dev/null +++ b/shortcodes/action.php @@ -0,0 +1,30 @@ + null, + 'button' => null, + 'link' => null, + 'style' => null + ), $atts)); + + switch ( $style ) { + case '1' : $style = ' style-1'; break; + case '2' : $style = ' style-2'; break; + case '3' : $style = ' style-3'; break; + case '4' : $style = ' style-4'; break; + case '5' : $style = ' style-5'; break; + default: $style = null; break; + } + + $html = '
    '; + $html .= ($button) ? do_shortcode('[button link="'.$link.'" size="large" class="hidden-xs"]'.$button.'[/button]') : null ; + $html .= ($title) ? '

    '.$title.'

    ' : null; + $html .= do_shortcode($content); + $html .= ($button) ? do_shortcode('[button link="'.$link.'" class="visible-xs btn-large btn-block btn-default"]'.$button.'[/button]') : null; + $html .= '
    '; + + return $html; +} +?> \ No newline at end of file diff --git a/shortcodes/agenda.php b/shortcodes/agenda.php new file mode 100644 index 0000000..8e162ac --- /dev/null +++ b/shortcodes/agenda.php @@ -0,0 +1,49 @@ +'.do_shortcode($content).'' : null; +} + +add_shortcode("event-day", "curly_day"); + +function curly_day( $atts, $content = null ) { + extract(shortcode_atts(array( + 'date' => null + ), $atts)); + + $html = null; + + if ( $content || $date ) { + $html .= '
    '; + $html .= ( $content ) ? '

    '.do_shortcode($content).'

    ' : null; + $html .= ( $date ) ? ' '.$date.'' : null; + $html .= '
    '; + } + + return $html; +} + +add_shortcode("event", "curly_event"); + +function curly_event( $atts, $content = null ) { + extract(shortcode_atts(array( + 'time' => null, + 'room' => null + ), $atts)); + + $html = null; + + if ( $content || $room || $time ) { + $html .= '
    '; + $html .= ( $time ) ? ' '.$time.'' : null; + $html .= ( $content ) ? '
    '.do_shortcode($content).'
    ' : null; + $html .= ( $room ) ? ''.$room.' ' : null; + $html .= '
    '; + } + return $html; +} + + +?> \ No newline at end of file diff --git a/shortcodes/alert.php b/shortcodes/alert.php new file mode 100644 index 0000000..82af8b4 --- /dev/null +++ b/shortcodes/alert.php @@ -0,0 +1,21 @@ + null + ), $atts ) ); + + switch ( $color ) { + case 'green' : $css = ' alert-success'; break; + case 'blue' : $css = ' alert-info'; break; + case 'red' : $css = ' alert-danger'; break; + case 'green' : $css = ' alert-success'; break; + default : $css = ' alert-warning'; + } + + return '
    '.$content.'
    '; +} + +?> \ No newline at end of file diff --git a/shortcodes/boxes.php b/shortcodes/boxes.php new file mode 100644 index 0000000..2355f14 --- /dev/null +++ b/shortcodes/boxes.php @@ -0,0 +1,64 @@ + null, + 'icon' => null, + 'title' => null, + 'background' => null + ), $atts ) ); + $html = null; + + $css = ( $background ) ? 'style="background-color: '.$background.'"' : null; + + switch ( $style ) { + case '1' : { + $html .= '
    '; + $html .= do_shortcode($content); + $html .= '
    '; + } break; + case '2' : { + $html .= '
    '; + $html .= ( $icon ) ? do_shortcode('[icon icon="'.$icon.'" boxed="yes" position="left"]') : null; + $html .= ( $title ) ? '

    '.$title.'

    ' : null; + $html .= do_shortcode($content); + $html .= '
    '; + } break; + case '3' : { + $html .= '
    '; + $html .= ( $icon ) ? do_shortcode('[icon icon="'.$icon.'" size="3x" boxed="yes" bg="transparent"]') : null; + $html .= ( $title ) ? '

    '.$title.'

    ' : null; + $html .= do_shortcode($content); + $html .= '
    '; + } break; + case '4' : { + $html .= '
    '; + $html .= ( $icon ) ? do_shortcode('[icon icon="'.$icon.'" boxed="yes"]') : null; + $html .= ( $title ) ? '

    '.$title.'

    ' : null; + $html .= do_shortcode($content); + $html .= '
    '; + } break; + case '5' : { + $html .= '
    '; + $html .= ( $icon ) ? do_shortcode('[icon icon="'.$icon.'" boxed="yes" size="4x"]') : null; + $html .= '
    '; + $html .= ( $title ) ? '

    '.$title.'

    ' : null; + $html .= do_shortcode($content); + $html .= '
    '; + $html .= '
    '; + } break; + default : { + $html .= '
    '; + $html .= do_shortcode($content); + $html .= '
    '; + } + } + + + + return $html; +} + + +?> \ No newline at end of file diff --git a/shortcodes/buttons.php b/shortcodes/buttons.php new file mode 100644 index 0000000..2b8eca7 --- /dev/null +++ b/shortcodes/buttons.php @@ -0,0 +1,41 @@ + '#', + "color" => null, + "size" => null, + 'title' => null, + 'target' => '_self', + 'rel' => null, + 'class' => null + ), $atts)); + + $css = 'btn '; + $css .= $class; + + // Size + switch ( $size ){ + case 'mini' : $css .= ' btn-xs'; break; + case 'small' : $css .= ' btn-sm'; break; + case 'large' : $css .= ' btn-lg'; break; + } + + // Color + switch ( $color ){ + case 'red' : $css .= ' btn-red'; break; + case 'green' : $css .= ' btn-green'; break; + case 'blue' : $css .= ' btn-blue'; break; + case 'violet' : $css .= ' btn-violet'; break; + case 'navy' : $css .= ' btn-navy'; break; + case 'gray' : $css .= ' btn-gray'; break; + } + + // Rel + $rel_val = ( isset($rel) ) ? 'rel="'.$rel.'"' : null; + + // Return + return ''.do_shortcode( $content ).''; +} +?> \ No newline at end of file diff --git a/shortcodes/clear.php b/shortcodes/clear.php new file mode 100644 index 0000000..6ce9d81 --- /dev/null +++ b/shortcodes/clear.php @@ -0,0 +1,6 @@ +'; +} +?> \ No newline at end of file diff --git a/shortcodes/client-list.php b/shortcodes/client-list.php new file mode 100644 index 0000000..82caeb8 --- /dev/null +++ b/shortcodes/client-list.php @@ -0,0 +1,62 @@ +'; + $html .= '
    + + +
    '; + $html .= ''; + + $html .= ''; + + return $html; + +} + +add_shortcode("client", "curly_client"); + +function curly_client( $atts, $content = null ) { + extract(shortcode_atts(array( + 'link' => "#", + 'image' => null, + 'name' => null + ), $atts)); + + return '
  • '.$name.'
  • '; +} + +?> \ No newline at end of file diff --git a/shortcodes/columns.php b/shortcodes/columns.php new file mode 100644 index 0000000..6cc8709 --- /dev/null +++ b/shortcodes/columns.php @@ -0,0 +1,29 @@ + '1/2', + "last" => 'no', + "margin" => null + ), $atts)); + + $css = 'content-column'; + + if ($last == 'yes') $css .= " last clearfix"; + + switch ($size){ + case '1/2' : $css .= ' half'; break; + case '1/3' : $css .= ' one-three'; break; + case '1/4' : $css .= ' one-four'; break; + case '2/3' : $css .= ' two-three'; break; + case '2/4' : $css .= ' two-four'; break; + case '3/4' : $css .= ' three-four'; break; + } + + $inline = ($margin != null) ? ' style="margin-bottom: '.$margin.'px" ' : null; + + return ( $last == 'yes' ) ? '
    '.do_shortcode($content).'
    ' : '
    '.do_shortcode($content).'
    '; +} + +?> \ No newline at end of file diff --git a/shortcodes/countdown.php b/shortcodes/countdown.php new file mode 100644 index 0000000..e6c15a9 --- /dev/null +++ b/shortcodes/countdown.php @@ -0,0 +1,129 @@ + null, + 'month' => null, + 'day' => null, + 'hour' => 0, + 'minutes' => 00, + 'lang' => 'en', + 'align' => 'left' + ), $atts)); + + wp_enqueue_script('curly-countdown', 'jquery'); + + switch ($lang) { + case 'ar' : wp_enqueue_script('countdown-ar', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-ar.js'); break; + case 'bg' : wp_enqueue_script('countdown-bg', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-bg.js'); break; + case 'bn' : wp_enqueue_script('countdown-bn', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-bn.js'); break; + case 'bs' : wp_enqueue_script('countdown-bs', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-bs.js'); break; + case 'ca' : wp_enqueue_script('countdown-ca', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-ca.js'); break; + case 'cs' : wp_enqueue_script('countdown-cs', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-cs.js'); break; + case 'cy' : wp_enqueue_script('countdown-cy', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-cy.js'); break; + case 'da' : wp_enqueue_script('countdown-da', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-da.js'); break; + case 'de' : wp_enqueue_script('countdown-de', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-de.js'); break; + case 'el' : wp_enqueue_script('countdown-el', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-el.js'); break; + case 'es' : wp_enqueue_script('countdown-es', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-es.js'); break; + case 'et' : wp_enqueue_script('countdown-et', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-et.js'); break; + case 'fa' : wp_enqueue_script('countdown-fa', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-fa.js'); break; + case 'fi' : wp_enqueue_script('countdown-fi', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-fi.js'); break; + case 'fr' : wp_enqueue_script('countdown-fr', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-fr.js'); break; + case 'gl' : wp_enqueue_script('countdown-gl', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-gl.js'); break; + case 'gu' : wp_enqueue_script('countdown-gu', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-gu.js'); break; + case 'he' : wp_enqueue_script('countdown-he', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-he.js'); break; + case 'hr' : wp_enqueue_script('countdown-hr', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-hr.js'); break; + case 'hu' : wp_enqueue_script('countdown-hu', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-hu.js'); break; + case 'hy' : wp_enqueue_script('countdown-hy', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-hy.js'); break; + case 'id' : wp_enqueue_script('countdown-id', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-id.js'); break; + case 'it' : wp_enqueue_script('countdown-it', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-it.js'); break; + case 'ja' : wp_enqueue_script('countdown-ja', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-ja.js'); break; + case 'kn' : wp_enqueue_script('countdown-kn', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-kn.js'); break; + case 'ko' : wp_enqueue_script('countdown-ko', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-ko.js'); break; + case 'lt' : wp_enqueue_script('countdown-lt', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-lt.js'); break; + case 'lv' : wp_enqueue_script('countdown-lv', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-lv.js'); break; + case 'ml' : wp_enqueue_script('countdown-ml', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-ml.js'); break; + case 'ms' : wp_enqueue_script('countdown-ms', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-ms.js'); break; + case 'my' : wp_enqueue_script('countdown-my', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-my.js'); break; + case 'nb' : wp_enqueue_script('countdown-nb', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-nb.js'); break; + case 'nl' : wp_enqueue_script('countdown-nl', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-nl.js'); break; + case 'pl' : wp_enqueue_script('countdown-pl', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-pl.js'); break; + case 'pt-BR' : wp_enqueue_script('countdown-pt-BR', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-pt-BR.js'); break; + case 'ro' : wp_enqueue_script('countdown-ro', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-ro.js'); break; + case 'ru' : wp_enqueue_script('countdown-ru', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-ru.js'); break; + case 'sk' : wp_enqueue_script('countdown-sk', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-sk.js'); break; + case 'sl' : wp_enqueue_script('countdown-sl', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-sl.js'); break; + case 'sq' : wp_enqueue_script('countdown-sq', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-sq.js'); break; + case 'sr-SR' : wp_enqueue_script('countdown-sr-SR', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-sr-SR.js'); break; + case 'sr' : wp_enqueue_script('countdown-sr', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-sr.js'); break; + case 'sv' : wp_enqueue_script('countdown-sv', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-sv.js'); break; + case 'th' : wp_enqueue_script('countdown-th', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-th.js'); break; + case 'tr' : wp_enqueue_script('countdown-tr', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-tr.js'); break; + case 'uk' : wp_enqueue_script('countdown-uk', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-uk.js'); break; + case 'uz' : wp_enqueue_script('countdown-uz', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-uz.js'); break; + case 'vi' : wp_enqueue_script('countdown-vi', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-vi.js'); break; + case 'zh-CN' : wp_enqueue_script('countdown-zh-CN', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-zh-CN.js'); break; + case 'zh-TW' : wp_enqueue_script('countdown-zh-TW', get_template_directory_uri() . '/js/countdown-localisation/jquery.countdown-zh-TW.js'); break; + } + + + + $start = strtotime(current_time('mysql')); + $end = strtotime(''.$year.'-'.$month.'-'.$day.' '.$hour.':'.$minutes); + + function diff($x,$y,$interval){ + return (int)(($x-$y)/$interval); + } + + $days=diff($end,$start,86400); + $hours=diff($end,$start+$days*86400,3600); + $minutes=diff($end,$start+$days*86400+$hours*3600,60); + $seconds=$end-$start-$days*86400-$hours*3600-$minutes*60; + + if($days <= 0) $days="00"; elseif($days < 10) $days = '0'.$days; + if($hours <= 0) $hours="00"; elseif($hours < 10) $hours = '0'.$hours; + if($minutes <= 0) $minutes="00"; elseif($minutes < 10) $minutes = '0'.$minutes; + if($seconds <= 0) $seconds="00"; elseif($seconds < 10) $seconds = '0'.$seconds; + + $time = $days.':'.$hours.':'.$minutes.':'.$seconds; + + if ( $year ) { + + $html = ""; + + $html .= '
    '; + + } else { + $html = null; + } + + return $html; +} + +?> \ No newline at end of file diff --git a/shortcodes/dividers.php b/shortcodes/dividers.php new file mode 100644 index 0000000..9877a40 --- /dev/null +++ b/shortcodes/dividers.php @@ -0,0 +1,31 @@ + null, + "before"=> 0, + "after" => 40 + ), $atts)); + + $css = 'divider'; + + switch ($style){ + case '1' : $css .= ' one'; break; + case '2' : $css .= ' two'; break; + case '3' : $css .= ' three'; break; + case '4' : $css .= ' four'; break; + case '5' : $css .= ' five'; break; + } + + $inline = null; + + $inline .= ( $before ) ? 'margin-top: '.$before.'px;' : null; + $inline .= ( $after ) ? 'margin-bottom: '.$after.'px;' : null; + + $inline = ( $before || $after ) ? 'style="'.$inline.'"' : null; + + return '
    '; +} + +?> \ No newline at end of file diff --git a/shortcodes/dropcap.php b/shortcodes/dropcap.php new file mode 100644 index 0000000..258257b --- /dev/null +++ b/shortcodes/dropcap.php @@ -0,0 +1,8 @@ +'.$content.'
    '; +} + +?> \ No newline at end of file diff --git a/shortcodes/fullwidth.php b/shortcodes/fullwidth.php new file mode 100644 index 0000000..3dda7fb --- /dev/null +++ b/shortcodes/fullwidth.php @@ -0,0 +1,47 @@ + null, + 'size' => null, + 'background' => null, + 'background_position' => null, + 'background_repeat' => null, + 'background_size' => null, + 'background_attachment' => null, + 'border' => null, + 'border_color' => null, + 'padding_top' => null, + 'padding_bottom' => null + ), $atts)); + + $style = null; + $style_inner = null; + $style_row = null; + + $style .= ( $background ) ? 'background-color:'.$background.';' : null; + $style .= ( $image ) ? 'background-image: url('.$image.');' : null; + $style .= ( $background_position ) ? 'background-position:'.$background_position.';' : 'background-position: top center;'; + $style .= ( $background_repeat ) ? 'background-repeat:'.$background_repeat.';' : 'background-repeat: repeat;'; + $style .= ( $background_size ) ? 'background-size:'.$background_size.';' : 'background-size: cover;'; + $style .= ( $background_attachment ) ? 'background-attachment:'.$background_attachment.';' : 'background-attachment: fixed;'; + $style .= ( $border ) ? 'border-top-style: solid; border-bottom-style: solid; border-top-width: '.$border.'px; border-bottom-width: '.$border.'px;' : null; + $style .= ( $border_color ) ? 'border-color:'.$border_color.';' : null; + + $style_inner .= ( isset($size) && !empty($size) ) ? 'padding-left: '.( ( 100 - $size ) / 2 ).'%; padding-right: '.( ( 100 - $size ) / 2 ).'%;' : null; + $style_row .= ( isset($padding_top) ) ? 'padding-top:'.$padding_top.'px;' : null; + $style_row .= ( isset($padding_bottom) ) ? 'padding-bottom:'.$padding_bottom.'px;' : null; + + $html = ''; + $html .= '
    '; + $html .= do_shortcode($content); + $html .= '
    '; + $html .= '
    '; + + return $html; +} + + +?> \ No newline at end of file diff --git a/shortcodes/highlight.php b/shortcodes/highlight.php new file mode 100644 index 0000000..a31fd7a --- /dev/null +++ b/shortcodes/highlight.php @@ -0,0 +1,22 @@ + null, + 'align' => null + ), $atts)); + + + $css = ' default'; if( $style == 'different' ) $css = ' different'; + + switch ( $align ) { + case 'center' : $style = ' style="text-align:center"'; break; + case 'right' : $style = ' style="text-align:right"'; break; + default : $style = null; + } + + return '
    '.do_shortcode($content).'
    '; +} + +?> \ No newline at end of file diff --git a/shortcodes/icon.php b/shortcodes/icon.php new file mode 100644 index 0000000..6690ef0 --- /dev/null +++ b/shortcodes/icon.php @@ -0,0 +1,39 @@ + null, + 'boxed' => 'no', + 'size' => null, + 'position' => null + ), $atts)); + + $css = null; + + if ($boxed != "no") $css = ' fa-boxed fa-fw'; + + switch ($size){ + case '2x' : $css .= ' fa-2x'; break; + case '3x' : $css .= ' fa-3x'; break; + case '4x' : $css .= ' fa-4x'; break; + case '5x' : $css .= ' fa-5x'; break; + } + + switch ($position){ + case 'left' : $css .= ' pull-left'; break; + case 'right' : $css .= ' pull-right'; break; + } + + $inline = null; + if(isset($atts['color']) || isset($atts['bg']) || isset($atts['border'])){ + $inline = 'style="'; + $inline .= (isset($atts['bg']) && $atts['bg'] != null) ? 'background-color: '.$atts['bg'].';' : null; + $inline .= (isset($atts['border']) && $atts['border'] != null) ? 'border-color: '.$atts['border'].';' : null; + $inline .= (isset($atts['color']) && $atts['color'] != null) ? 'color: '.$atts['color'].';' : null; + $inline .= '"'; + } + + return ''; +} +?> \ No newline at end of file diff --git a/shortcodes/lists.php b/shortcodes/lists.php new file mode 100644 index 0000000..0a23da1 --- /dev/null +++ b/shortcodes/lists.php @@ -0,0 +1,24 @@ + null + ), $atts)); + + switch ($type){ + case 'bullets' : $css = 'list-bullets'; break; + case 'square' : $css = 'list-square'; break; + case 'circle' : $css = 'list-circle'; break; + case 'checklist' : $css = 'list-checklist'; break; + case 'crosslist' : $css = 'list-crosslist'; break; + case 'default' : $css = 'list-default-list'; break; + case 'none' : $css = 'list-none'; break; + default : $css = 'list-none'; + } + + return '
    '.do_shortcode($content).'
    '; +} + +?> \ No newline at end of file diff --git a/shortcodes/map-maker.php b/shortcodes/map-maker.php new file mode 100644 index 0000000..1951138 --- /dev/null +++ b/shortcodes/map-maker.php @@ -0,0 +1,140 @@ + null, + 'longitude' => null, + 'color' => null, + 'height' => 400, + 'zoom' => 15, + 'type' => 'roadmap', + 'marker' => null, + 'title' => null, + 'draggable' => 'false', + 'controls' => 'true', + 'address' => null, + 'border' => 'true' + ), $atts ) ); + + if ( $latitude && $longitude || $address ) { + + if( !wp_script_is('curly-google-maps') ) { + wp_enqueue_script('curly-google-maps'); + } + if( !wp_script_is('curly-gmap3') ) { + wp_enqueue_script('curly-gmap3'); + } + + if ( isset( $GLOBALS['mapID'] ) ) { + $GLOBALS['mapID']++; + } else { + $GLOBALS['mapID'] = 0; + } + + + $html = '
    '; + + if ( $content ) { + $markers = 'marker:{ + values:['.do_shortcode( $content ).'], + events:{ + mouseover: function(marker, event, context){ + var map = jQuery(this).gmap3("get"), + infowindow = jQuery(this).gmap3({get:{name:"infowindow"}}); + if (infowindow){ + infowindow.open(map, marker); + infowindow.setContent(context.data); + } else { + jQuery(this).gmap3({ + infowindow:{ + anchor:marker, + options:{content: context.data} + } + }); + } + }, + mouseout: function(){ + var infowindow = jQuery(this).gmap3({get:{name:"infowindow"}}); + if (infowindow){ + infowindow.close(); + } + } + } + }'; + } else { + $markers = 'marker:{ + values:[{ + '.( ( $address ) ? 'address:"'.$address.'", ' : null ).' + '.( ( $latitude && $longitude ) ? 'latLng:['.$latitude.', '.$longitude.'],' : null ).' + '.( ( $title ) ? 'data:"'.$title.'",' : null ).' + '.( ( $marker ) ? 'options:{icon: "'.$marker.'"}' : null ).' + }], + events:{ + mouseover: function(marker, event, context){ + var map = jQuery(this).gmap3("get"), + infowindow = jQuery(this).gmap3({get:{name:"infowindow"}}); + if (infowindow){ + infowindow.open(map, marker); + infowindow.setContent(context.data); + } else { + jQuery(this).gmap3({ + infowindow:{ + anchor:marker, + options:{content: context.data} + } + }); + } + }, + mouseout: function(){ + var infowindow = jQuery(this).gmap3({get:{name:"infowindow"}}); + if (infowindow){ + infowindow.close(); + } + } + } + }'; + } + + $html .= + ''; + + return $html; + } +} + +add_shortcode("location", "curly_map_location"); + +function curly_map_location( $atts, $content = null ) { + extract( shortcode_atts( array( + 'latitude' => null, + 'longitude' => null, + 'title' => null, + 'marker' => null, + 'address' => null + ), $atts ) ); + return '{' .( ( $address ) ? 'address:"'.$address.'", ' : null ) + .( ( $latitude && $longitude ) ? 'latLng:['.$latitude.', '.$longitude.'], ' : null ) + .( ( $title ) ? 'data:"'.$title.'", ' : null ) + .( ( $marker ) ? 'options:{ icon: "'.$marker.'"}' : null ). + '},'; +} +?> \ No newline at end of file diff --git a/shortcodes/marker.php b/shortcodes/marker.php new file mode 100644 index 0000000..ed9a1e2 --- /dev/null +++ b/shortcodes/marker.php @@ -0,0 +1,22 @@ + null + ), $atts ) ); + + switch ( $color ) { + case 'green' : $css = 'label-success'; break; + case 'orange' : $css = 'label-warning'; break; + case 'red' : $css = 'label-danger'; break; + case 'blue' : $css = 'label-info'; break; + case 'black' : $css = 'label-default'; break; + default : $css = 'label-primary'; + } + + return ''.do_shortcode($content).''; +} + + +?> \ No newline at end of file diff --git a/shortcodes/person.php b/shortcodes/person.php new file mode 100644 index 0000000..d88a785 --- /dev/null +++ b/shortcodes/person.php @@ -0,0 +1,46 @@ + null, + 'picture' => null, + 'name' => null, + 'facebook' => null, + 'twitter' => null, + 'linkedin' => null, + 'position' => null, + 'email' => null + ), $atts)); + + $html = '
    '; + + if ( $style ) { + if($style == 'mini') { + $html .= ( $picture ) ? ''.$name.'' : null; + $html .= '
    '; + $html .= ( $name ) ? ''.$name.'
    ' : null; + $html .= ( $position ) ? $position.'
    ' : null; + $html .= ( $content ) ? do_shortcode($content) : null; + $html .= '
    '; + } else{ + $html .= ( $picture ) ? '

    '.$name.'

    ' : null; + $html .= '
    '; + $html .= ( $name ) ? '
    '.$name.'
    ' : null; + $html .= ( $position ) ? $position.'

    ' : null; + $html .= ( $content ) ? '

    '.do_shortcode($content).'

    ' : null; + $html .= ( $facebook || $twitter || $linkedin || $email ) ? '

    ' : null; + $html .= ( $facebook ) ? ''.do_shortcode('[icon icon="facebook" boxed="yes"]').' ' : null; + $html .= ( $twitter ) ? ''.do_shortcode('[icon icon="twitter" boxed="yes"]').' ' : null; + $html .= ( $linkedin ) ? ''.do_shortcode('[icon icon="linkedin" boxed="yes"]').' ' : null; + $html .= ( $email ) ? ''.do_shortcode('[icon icon="envelope" boxed="yes"]').' ' : null; + $html .= ( $facebook || $twitter || $linkedin || $email ) ? '

    ' : null; + $html .= '
    '; + } + } + + $html .= '
    '; + return $html; +} +?> \ No newline at end of file diff --git a/shortcodes/photo-frame.php b/shortcodes/photo-frame.php new file mode 100644 index 0000000..046babe --- /dev/null +++ b/shortcodes/photo-frame.php @@ -0,0 +1,6 @@ +'.do_shortcode($content).'
    '; +} +?> \ No newline at end of file diff --git a/shortcodes/picture-zoom.php b/shortcodes/picture-zoom.php new file mode 100644 index 0000000..ba3ae94 --- /dev/null +++ b/shortcodes/picture-zoom.php @@ -0,0 +1,22 @@ + null, + ), $atts)); + + if( !wp_script_is('curly-picture-zoom') ) { + wp_enqueue_script('curly-picture-zoom'); + } + + global $post; + + $html = ( $image ) ? '
    '.get_the_title($post->ID).'
    ' : null; + + return $html; +} + + +?> \ No newline at end of file diff --git a/shortcodes/pretty-photo.php b/shortcodes/pretty-photo.php new file mode 100644 index 0000000..f0998de --- /dev/null +++ b/shortcodes/pretty-photo.php @@ -0,0 +1,18 @@ + null, + 'image' => null, + 'gallery'=> null, + 'visible'=> 'yes' + ), $atts)); + + $display = ( $visible == 'no' ) ? ' style="display:none"' : null; + + return ''.do_shortcode($content).''; +} + + +?> \ No newline at end of file diff --git a/shortcodes/pricing.php b/shortcodes/pricing.php new file mode 100644 index 0000000..98074c0 --- /dev/null +++ b/shortcodes/pricing.php @@ -0,0 +1,72 @@ + '1', + "last" => 'no' + ), $atts)); + + $css = 'wl-pricing-table light'; + + return '
    '.do_shortcode($content).'
    '; +} + +add_shortcode("pricing-header", "curly_pricing_table_header"); + +function curly_pricing_table_header( $atts, $content = null ) { + extract(shortcode_atts(array( + "currency" => '$', + "price" => '55', + "frequency" => 'monthly' + ), $atts)); + + $html = '
    '; + $html .= ( $content ) ? '

    '.$content.'

    ' : null; + $html .= '
    '; + $html .= ( $price ) ? '

    '.$currency.$price.'

    ' : null; + $html .= ( $frequency ) ? ''.$frequency.'' : null; + $html .= '
    '; + $html .= '
    '; + + return $html; +} + +add_shortcode("pricing-column", "curly_pricing_table_column"); + +function curly_pricing_table_column( $atts, $content = null ) { + extract(shortcode_atts(array( + "size" => '1/4', + "last" => 'no', + "highlight" => 'no' + ), $atts)); + + $css = null; + + switch ( $size ){ + case '1/2' : $css .= ' half'; break; + case '1/3' : $css .= ' one-three'; break; + case '1/4' : $css .= ' one-four'; break; + default : $css .= ' one-four'; + } + + $css .= ( $highlight == "yes" ) ? " highlight-column" : null; + + $css .= ( $last == "yes" ) ? " last" : null; + + return ( $content ) ? '
    '.do_shortcode($content).'
    ' : null; +} + +add_shortcode("pricing-row", "curly_pricing_table_row"); + +function curly_pricing_table_row( $atts, $content = null ) { + return ( $content ) ? ''.$content.'' : null; +} + +add_shortcode("pricing-footer", "curly_pricing_table_footer"); + +function curly_pricing_table_footer( $atts, $content = null ) { + return ( $content ) ? '' : null; +} + +?> \ No newline at end of file diff --git a/shortcodes/progress.php b/shortcodes/progress.php new file mode 100644 index 0000000..69cce2c --- /dev/null +++ b/shortcodes/progress.php @@ -0,0 +1,25 @@ + 'default', + 'percent' => null + ), $atts)); + + $css = null; + + switch ($color){ + case 'red' : $css = ' progress-bar-danger';break; + case 'blue' : $css = ' progress-bar-info';break; + case 'green' : $css = ' progress-bar-success';break; + case 'orange' : $css = ' progress-bar-warning';break; + default : $css = ' progress-bar-default'; + } + + return '
      '.$content.''.$percent.'%  
    '; + +} + + +?> \ No newline at end of file diff --git a/shortcodes/quotes.php b/shortcodes/quotes.php new file mode 100644 index 0000000..18add36 --- /dev/null +++ b/shortcodes/quotes.php @@ -0,0 +1,15 @@ + null, + 'cite' => null + ), $atts)); + + $img = ( $image ) ? '' : null; + + return ( $content ) ? '
    '.$img.$content.( ( $cite ) ? ''.$cite.'' : null ).'
    ' : null; +} +?> \ No newline at end of file diff --git a/shortcodes/slider-ios.php b/shortcodes/slider-ios.php new file mode 100644 index 0000000..bad2bd9 --- /dev/null +++ b/shortcodes/slider-ios.php @@ -0,0 +1,118 @@ +
    '; + + // Populate Slider + $html .= '
    '.do_shortcode($content).'
    '; + + // Navigation Arrows + $html .= ''; + + // Close Slider + $html .= '
    '; + + // Load Javascript + $html .= ""; + + return $html; +} + +add_shortcode("ios-slide", "curly_iosslide"); + +function curly_iosslide( $atts, $content = null ) { + extract(shortcode_atts(array(), $atts)); + + return ''; +} +?> \ No newline at end of file diff --git a/shortcodes/slider-roundabout.php b/shortcodes/slider-roundabout.php new file mode 100644 index 0000000..8b59afc --- /dev/null +++ b/shortcodes/slider-roundabout.php @@ -0,0 +1,52 @@ +'.do_shortcode($content).''; + + function curly_shortcode_roundabout() { + $html = ""; + echo $html; + } + add_action('wp_footer', 'curly_shortcode_roundabout', 20); + + return $html; +} +add_shortcode("roundabout-slide", "curly_roundaboutslide"); + +function curly_roundaboutslide( $atts, $content = null ) { + + $html = '
  • '; + $html .= ($atts['title']) ? '
    '.$atts['title'].'
    ' : null; + $html .='
  • '; + + return $html; +} +?> \ No newline at end of file diff --git a/shortcodes/slider.php b/shortcodes/slider.php new file mode 100644 index 0000000..4b39038 --- /dev/null +++ b/shortcodes/slider.php @@ -0,0 +1,31 @@ + 5000, + "height" => null + ), $atts)); + + if(isset($GLOBALS['carouselID'])) $GLOBALS['carouselID']++; else $GLOBALS['carouselID'] = 0; + $GLOBALS['carouselSlideID'] = $GLOBALS['carouselID'] * 100; + + $html = ''; + + if ( $height && $height == "equal" ) { + $html .= ""; + } + + return $html; +} + +add_shortcode("slide", "curly_slide"); + +function curly_slide( $atts, $content = null ) { + $GLOBALS['carouselSlideID']++; + if($GLOBALS['carouselSlideID'] % 100 == 1) $css = ' active'; else $css = null; + return '
  • '.do_shortcode($content).'
  • '; +} + +?> \ No newline at end of file diff --git a/shortcodes/tabs.php b/shortcodes/tabs.php new file mode 100644 index 0000000..50330ed --- /dev/null +++ b/shortcodes/tabs.php @@ -0,0 +1,45 @@ +'; + + $html .= ''; + + $html .= '
    '; + $html .= do_shortcode($content); + $html .= '
    '; + + $html .= '
    '; + + return $html; +} + +add_shortcode('tab', 'curly_tab'); + function curly_tab( $atts, $content = null ) { + $GLOBALS['tabsSlideID']++; + extract(shortcode_atts(array(), $atts)); + if( $GLOBALS['tabsSlideID'] % 100 == 1 ) { + $css = ' active'; + } else { + $css = null; + } + $html = '
    ' . do_shortcode($content) .'
    '; + + return $html; +} + +?> \ No newline at end of file diff --git a/shortcodes/testimonials.php b/shortcodes/testimonials.php new file mode 100644 index 0000000..06c9038 --- /dev/null +++ b/shortcodes/testimonials.php @@ -0,0 +1,41 @@ + 5000, + "height" => null + ), $atts)); + + $GLOBALS['carouselID'] = ( isset($GLOBALS['carouselID']) ) ? +1 : 0; + $GLOBALS['carouselSlideID'] = $GLOBALS['carouselID'] * 100; + + $html = ''; + + if ( $height && $height == "equal" ) { + $html .= ""; + } + + return $html; +} + +add_shortcode("testimonial", "curly_testimonial"); + +function curly_testimonial( $atts, $content = null ) { + + extract(shortcode_atts(array( + "name" => null, + "image" => null + ), $atts)); + + $GLOBALS['carouselSlideID'] += ( isset($GLOBALS['carouselSlideID']) ) ? 1 : 0; + + $css = ( $GLOBALS['carouselSlideID'] % 100 == 1) ? 'active ': null; + + $img = ( $image ) ? '' : null; + + return '
    '.$img.$content.'
    '.( ( isset($name) ) ? ''.$name.'' : null ).'
    '; +} + +?> diff --git a/shortcodes/tinymce/buttons.js b/shortcodes/tinymce/buttons.js new file mode 100644 index 0000000..8614567 --- /dev/null +++ b/shortcodes/tinymce/buttons.js @@ -0,0 +1,17 @@ +/* Curly Button */ +(function() { + tinymce.create('tinymce.plugins.curly', { + init : function(ed, url) { + ed.addButton('curly', { + title : 'Curly Themes Shortcodes', + onclick : function() { + curly_show_builder(); + } + }); + }, + createControl : function(n, cm) { + return null; + }, + }); + tinymce.PluginManager.add('curly', tinymce.plugins.curly); +})(); \ No newline at end of file diff --git a/shortcodes/toggle-box.php b/shortcodes/toggle-box.php new file mode 100644 index 0000000..ea7b520 --- /dev/null +++ b/shortcodes/toggle-box.php @@ -0,0 +1,14 @@ + null + ), $atts)); + + $GLOBALS['toggleID'] = ( isset($GLOBALS['toggleID']) ) ? $GLOBALS['toggleID'] + 1 : 0; + + return '
    '.$title.'
    '.do_shortcode($content).'
    '; +} + +?> \ No newline at end of file diff --git a/shortcodes/vimeo.php b/shortcodes/vimeo.php new file mode 100644 index 0000000..ffd1c75 --- /dev/null +++ b/shortcodes/vimeo.php @@ -0,0 +1,16 @@ + null, + 'width' => 700, + 'height' => 390, + 'fullwidth' => 'yes' + ), $atts)); + + return ($fullwidth == 'yes') ? '
    ' : '
    '; +} + +?> \ No newline at end of file diff --git a/shortcodes/youtube.php b/shortcodes/youtube.php new file mode 100644 index 0000000..a12d421 --- /dev/null +++ b/shortcodes/youtube.php @@ -0,0 +1,16 @@ + null, + 'width' => 700, + 'height' => 390, + 'fullwidth' => 'yes' + ), $atts)); + + return ($fullwidth == 'yes') ? '
    ' : '
    '; +} + +?> \ No newline at end of file diff --git a/widgets/recent.php b/widgets/recent.php new file mode 100644 index 0000000..c5bf0be --- /dev/null +++ b/widgets/recent.php @@ -0,0 +1,156 @@ + 'custom_recent_posts', 'description' => __('A widget that displays the recent posts', 'CURLYTHEME') ); + parent::__construct( 'curly_recent_widget', __('Curly Themes: Recent Posts', 'CURLYTHEME'), $widget_ops); + } + + function widget( $args, $instance ) { + extract( $args ); + + //Our variables from the widget settings. + $title = apply_filters('widget_title', $instance['title'] ); + $limit = $instance['limit']; + $picture = $instance['picture']; + $exclude = $instance['exclude']; + $cat = $instance['cat']; + $cols = isset( $instance['cols'] ) ? $instance['cols'] : 1; + + echo $before_widget; + + if ( $title ) echo $before_title . $title . $after_title; + + $args = array( + 'posts_per_page' => $limit, + 'exclude' => $exclude, + 'category' => $cat, + 'post_type' => 'post' + ); + + $posts = get_posts($args); + + $html = "
      "; + $count = 0; + foreach( $posts as $post ){ + setup_postdata( $post ); $count++; + + if ( $count%2 == 0 ) $css = 'recent-news-even'; else $css = 'recent-news-odd'; + + $css .= ' recent-post cols-' . $cols; + + $html .= '
    • '; + + if($picture != 'none'){ + if(has_post_thumbnail($post->ID)){ + $html .= ''; + $html .= ''; + $html .= get_the_post_thumbnail($post->ID, $picture, array('class' => 'img-responsive')); + $html .= ''; + } else { + $html .= ''; + } + } + + $html .= '
      '.get_the_title($post).'
      '; + $html .= ''.get_the_category_list(' - ',null, $post->ID).''; + + $html .= '
    • '; + } + $html .= '
    '; + + echo $html; + + echo $after_widget; + } + + //Update the widget + + function update( $new_instance, $old_instance ) { + $instance = $old_instance; + + //Strip tags from title and name to remove HTML + $instance['title'] = strip_tags( $new_instance['title'] ); + $instance['limit'] = strip_tags( $new_instance['limit'] ); + $instance['picture'] = strip_tags( $new_instance['picture'] ); + $instance['exclude'] = strip_tags( $new_instance['exclude'] ); + $instance['cat'] = strip_tags( $new_instance['cat'] ); + $instance['cols'] = strip_tags( $new_instance['cols'] ); + + return $instance; + } + + + function form( $instance ) { + $defaults = array( + 'title' => null, + 'limit' => null, + 'picture' => 'thumbnail', + 'exclude' => null, + 'cat' => null, + 'cols' => '1' + ); + + //Set up some default widget settings. + $instance = wp_parse_args( (array) $instance, $defaults); ?> +
    +

    + + +

    + + +

    + + +

    + +

    + + + +

    + +

    + + + Comma separated ID's you want to exclude +

    + +

    + + + Comma separated ID's you want to include +

    + +

    + + + +

    + +
    + + \ No newline at end of file diff --git a/widgets/search.php b/widgets/search.php new file mode 100644 index 0000000..fe8361a --- /dev/null +++ b/widgets/search.php @@ -0,0 +1,64 @@ + 'custom_search', 'description' => __('A widget that displays the custom search', 'CURLYTHEME') ); + parent::__construct( 'curly_search_widget', __('Curly Themes: Custom Search', 'CURLYTHEME'), $widget_ops); + } + + function widget( $args, $instance ) { + extract( $args ); + + //Our variables from the widget settings. + if (isset($title)) { + $title = apply_filters('widget_title', $instance['title'] ); + } + + echo $before_widget; + + if (isset($title)) echo $before_title . $title . $after_title; + + $out = ''; + + echo $out; + echo $after_widget; + } + + //Update the widget + function update( $new_instance, $old_instance ) { + $instance = $old_instance; + //Strip tags from title and name to remove HTML + $instance['title'] = strip_tags( $new_instance['title'] ); + return $instance; + } + + + function form( $instance ) { + $defaults = array( + 'title' => null + ); + + //Set up some default widget settings. + $instance = wp_parse_args( (array) $instance, $defaults); ?> +
    +

    + + +

    +
    + + \ No newline at end of file