kirgudu_base 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kirgudu_base/{bootstrap-3.0.0.js → bootstrap/bootstrap-3.0.0.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-alert.js → bootstrap/bootstrap-alert-2.1.0.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-button.js → bootstrap/bootstrap-button.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-carousel.js → bootstrap/bootstrap-carousel.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-collapse.js → bootstrap/bootstrap-collapse.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-colorpicker.js → bootstrap/bootstrap-colorpicker.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-datepicker.js → bootstrap/bootstrap-datepicker.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-dropdown.js → bootstrap/bootstrap-dropdown.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-modal.js → bootstrap/bootstrap-modal.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-popover.js → bootstrap/bootstrap-popover.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-scrollspy.js → bootstrap/bootstrap-scrollspy.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-tab.js → bootstrap/bootstrap-tab.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-tooltip.js → bootstrap/bootstrap-tooltip.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-transition.js → bootstrap/bootstrap-transition.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-typeahead.js → bootstrap/bootstrap-typeahead.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap-wysihtml5.js → bootstrap/bootstrap-wysihtml5.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{bootstrap.js → bootstrap/bootstrap.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{intro.js → intro-0.4.0.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.js → jquery-2.0.3.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/jquery-2.1.1.js +9190 -0
- data/app/assets/javascripts/kirgudu_base/jquery-2.1.1.min.js +4 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.blockUI.js → jquery.blockUI-2.45.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.bookblock.js → jquery.bookblock-1.0.2.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/jquery.carouFredSel-6.2.1.js +4255 -0
- data/app/assets/javascripts/kirgudu_base/{chosen.jquery.min.js → jquery.chosen.min-0.9.8.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.colorbox.js → jquery.colorbox-1.4.37.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.container-management.js → jquery.containerManagement-1.0.js} +1 -1
- data/app/assets/javascripts/kirgudu_base/{jquery.cookie.js → jquery.cookie-1.3.1.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{fileinput.jquery.js → jquery.custom-file-input.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.dataTables.js → jquery.dataTables-1.9.3.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.easing.min.js → jquery.easing-1.3.min.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.endless-scroll.js → jquery.endlessScroll-1.8.0.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.fancybox copia.js → jquery.fancybox-2.1.5.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.fancybox-buttons.js → jquery.fancybox-buttons-1.0.5.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.fancybox-media.js → jquery.fancybox-media-1.0.6.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.fancybox-thumbs.js → jquery.fancybox-thumbs-1.0.7.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.flot.js → jquery.flot-0.7.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.flot.min.js → jquery.flot-0.7.min.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{fullcalendar.js → jquery.fullCalendar-1.5.4.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{fullcalendar.min.js → jquery.fullCalendar.min-1.6.4.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/jquery.jcarousel-0.3.js +1411 -0
- data/app/assets/javascripts/kirgudu_base/jquery.jcarousel.min-0.3.1.js +4 -0
- data/app/assets/javascripts/kirgudu_base/jquery.jigowatt.js +1 -1
- data/app/assets/javascripts/kirgudu_base/{jquery.json.min.js → jquery.json-2.0.3.min.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{scripts_nrg.js → jquery.kirguduBase.js} +17 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.maskedinput-1.3.js → jquery.maskedInput-1.3.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.simplemodal-1.4.4.js → jquery.simpleModal-1.4.4.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.smartWizard.js → jquery.smartWizard-3.3.1.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/jquery.snippet-2.0.0.js +814 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.sparkline.min.js → jquery.sparkline-2.1.2.min.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.tagsinput.js → jquery.tagsInput-1.3.3.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{textarea-autogrow.js → jquery.textareaAutogrow.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.tools.min.js → jquery.tools.min-1.2.7.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery-ui.js → jquery.ui-1.10.4.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/jquery.ui-1.10.4.min.js +12 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.uploadify.min.js → jquery.uploadify-3.2.min.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{jquery.validate.min.js → jquery.validate-1.10.0.min.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{justgage.1.0.1.min.js → justgage-1.0.1.min.js} +0 -0
- data/app/assets/javascripts/kirgudu_base/{modernizr.custom.32549.js → modernizr-2.6.2.js} +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/404-fry.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ajax-loader.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/alpha.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/alpha2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/arrow.png +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/chosen-sprite.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/company_pxg.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/back_disabled.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/back_enabled.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/back_enabled_hover.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/forward_disabled.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/forward_enabled.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/forward_enabled_hover.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_asc.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_asc_disabled.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_both.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_desc.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_desc_disabled.png +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/blank.gif +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/fancybox_buttons.png +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/fancybox_loading.gif +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/fancybox_overlay.png +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/fancybox_sprite.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/favicon.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/clock.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/clock2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/coffee.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/coffee2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/flipchart.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/flipchart2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/sun.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/sun2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/glyphicons-halflings-white.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/glyphicons-halflings.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/gradient1.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/hue2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/icons-sa7c41345d9.png +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/error.png +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/loading.gif +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/play-pause.png +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/progressbar.gif +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/video-play.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/login-corner.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/login-corner2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/logo.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/maps/m1.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/maps/m2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/maps/m3.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/calendar.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/dashboard.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/forms.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/gallery.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/grid.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/maps.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/others.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/statistics.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/tables.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/widgets.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_top/profile-avatar.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_top/profile-messages.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar1.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar3.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar4.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar5.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar6.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar7.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/patterns/bg_dark.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/patterns/bg_dark2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/patterns/bg_dark3.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/patterns/whitey.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/sample_avatar_big.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/saturation2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/search.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/toggle.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_fine-grain_10_e7e7e7_60x60.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_flat_0_ef4622_40x100.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_highlight-hard_100_e1e1e1_1x100.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_highlight-hard_75_dddddd_1x100.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-icons_454545_256x240.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-icons_525d66_256x240.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/uploadify-cancel.png +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/chosen.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/fullcalendar.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/info-message.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery-ui-1.8.23.custom.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery.fancybox-buttons.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery.fancybox-thumbs.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery.fancybox.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery.tagsinput.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/original.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/popbox.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/responsive.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/twitter/bootstrap.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/uploadify.css +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/breadcrumb_divider.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/btn_submit.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/btn_submit_2.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/btn_view_site.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/header_bg.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/header_shadow.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_add_user.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_alert_error.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_alert_info.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_alert_success.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_alert_warning.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_audio.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_categories.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_edit.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_edit_article.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_folder.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_jump_back.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_logout.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_new_article.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_photo.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_profile.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_search.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_security.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_settings.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_tags.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_trash.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_user.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_video.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_view_users.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/module_footer_bg.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/post_message.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/secondary_bar.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/secondary_bar_shadow.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/sidebar.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/sidebar_divider.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/sidebar_shadow.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/images/table_sorter_header.png +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/stylesheets/ie.css +43 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/medialoot/stylesheets}/jquery.fancybox-buttons.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/medialoot/stylesheets}/jquery.fancybox-thumbs.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/medialoot/stylesheets}/jquery.fancybox.css +0 -0
- data/app/assets/templates/kirgudu_base/admin/medialoot/stylesheets/layout.css +883 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good/jquery-file-upload → templates/kirgudu_base/admin/zapanel}/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good/jquery-file-upload → templates/kirgudu_base/admin/zapanel}/fonts/glyphicons-halflings-regular.svg +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good/jquery-file-upload → templates/kirgudu_base/admin/zapanel}/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good/jquery-file-upload → templates/kirgudu_base/admin/zapanel}/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/404.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/500x600.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/PhotoShare(1).png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/PhotoShare(2).png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/PhotoShare(3).png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/ajax-loader.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/arrow.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/arrows-active.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/arrows-normal.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/asd.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/avatar-1.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/avatar-2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/avatar-4.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/avatar-8.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/banner.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/bg-texture.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/bg.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/bg1.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/blue-btn.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/body-bg.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/brown-btn.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-10.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-11.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-12.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-13.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-14.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-15.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-16.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-17.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-18.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-19.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-20.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-21.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-22.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-23.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-24.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-25.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-26.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-27.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-28.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-29.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-30.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-31.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-32.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-33.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-34.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-35.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-36.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-37.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-38.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-39.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-40.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-41.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-42.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-43.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-44.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-45.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-46.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-47.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-48.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-49.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-50.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-51.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-52.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-53.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-54.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-55.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-56.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-57.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-58.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-59.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-60.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-61.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-62.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-63.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-8.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-9.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/cal.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/chat-user1.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/chrome-icon.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/clockface.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/clockface.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/crop.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/cyan-btn.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/dark-theme-thumb.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/dark_leather.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/darkdenim3.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/dialogs.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images/elfinder}/logo.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/email-thumb.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/error.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/fb.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/firefox-icon.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/globe.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/gray-btn.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/gray-gradient.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/green-btn.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/group.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/header-bg.jpg +0 -0
- data/app/assets/images/kirgudu_base/admin/good/hosting pic.png b/data/app/assets/templates/kirgudu_base/admin/zapanel/images/hosting → pic.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/hourhand.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/icons-big.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/icons-small.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/ie-icon.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/light-theme-thumb.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/loader.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/logo.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/logo2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/loud.png +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/mCSB_buttons.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/minhand.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/next_mon.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/next_year.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/no_cal.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/opera-icon.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern1.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern1.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern10.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern11.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern12.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern13.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern14.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern15.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern16.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern17.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern18.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern19.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern2.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern20.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern21.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern22.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern23.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern24.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern25.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern26.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern27.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern28.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern29.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern3.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern30.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern31.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern32.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern33.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern34.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern4.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern5.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern6.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern7.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern8.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern9.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern9.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/photo-profile.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/prev_mon.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/prev_year.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/price-gray.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/price-red.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product1.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product2.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product3.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product4.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product5.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/progress.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/purple-btn.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/quicklook-bg.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/quicklook-icons.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/red-btn.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/resize.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/rocket.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/rss.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/safari-icon.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen1.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen3.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen4.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen5.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/search-bg.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/search-icon.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/sechand.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/section-pattern-bg.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/signup1.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/signup2.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/slider-img-1.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/slider-img-2.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/slider-img-3.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/spinner-mini.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/sprite-skin-flat.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/sprite-skin-nice.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/sprite-skin-simple.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/success.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/tag-arrow.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/tag-arrow2.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb1.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb2.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb3.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb4.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/toggle.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/toolbar.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/triangles.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/twitter.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/typing-loading.gif +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/usd.png +0 -0
- data/app/assets/images/kirgudu_base/admin/good/user (2).jpg b/data/app/assets/templates/kirgudu_base/admin/zapanel/images/user → (2).jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user-log-in.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user.png +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user2.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user3.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user4.jpg +0 -0
- data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/world-map.png +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/bootstrap.css +2 -2
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/chosen.css +17 -17
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/elfinder-theme.css +1 -1
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/elfinder.min.css +21 -21
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/font-awesome-ie7.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/font-awesome-ie7.min.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/font-awesome.css +2 -2
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/font-awesome.min.css +1 -1
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/fullcalendar.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/fullcalendar.print.css +0 -0
- data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/google-fonts-opensans.css +34 -0
- data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/google-fonts-raleway.css +62 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/ion.rangeSlider.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/ion.rangeSlider.skinFlat.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/ion.rangeSlider.skinNice.css +1 -1
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/blueimp-gallery.min.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/bootstrap.min.css +2 -2
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/demo-ie8.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/demo.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/jquery.fileupload-noscript.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/jquery.fileupload-ui-noscript.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/jquery.fileupload-ui.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/jquery.fileupload.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/style.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-ui.css +9 -9
- data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/jquery.fancybox-buttons.css +96 -0
- data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/jquery.fancybox-thumbs.css +54 -0
- data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/jquery.fancybox.css +249 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery.mCustomScrollbar.css +0 -0
- data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/jquery.snippet.css +116 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery.switchButton.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/purple.css +0 -0
- data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/range-slider.normalize.min.css +236 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/responsive.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/style.css +29 -29
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCore.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreDefault.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreDjango.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreEclipse.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreEmacs.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreFadeToGrey.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreMDUltra.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreMidnight.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreRDark.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeDefault.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeDjango.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeEclipse.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeEmacs.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeFadeToGrey.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeMDUltra.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeMidnight.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeRDark.css +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/uploadify.css +1 -1
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/common}/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good/fonts/FontAwesome.otf → templates/kirgudu_base/common/fonts/fontawesome-webfont.otf} +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/common}/fonts/fontawesome-webfont.svg +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/common}/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/common}/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/opensans-bold.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/opensans-extrabold.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/opensans-light.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/opensans-semibold.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/opensans.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway-bold.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway-extrabold.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway-extralight.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway-heavy.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway-light.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway-medium.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway-semibold.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway-thin.woff +0 -0
- data/app/assets/templates/kirgudu_base/common/fonts/raleway.woff +0 -0
- data/app/controllers/kirgudu_base/admin_controller.rb +8 -15
- data/app/controllers/kirgudu_base/application_controller.rb +254 -322
- data/app/controllers/kirgudu_base/cabinet_controller.rb +3 -41
- data/app/controllers/kirgudu_base/dynamic_pages_controller.rb +1209 -0
- data/app/controllers/kirgudu_base/facade_controller.rb +3 -3
- data/app/controllers/kirgudu_base/security/authentications_controller.rb +178 -216
- data/app/controllers/kirgudu_base/security/login_providers_controller.rb +9 -0
- data/app/helpers/kirgudu_base/application_helper.rb +37 -75
- data/app/helpers/kirgudu_base/configuration_helper.rb +12 -0
- data/app/helpers/kirgudu_base/controllers/basic_actions.rb +243 -246
- data/app/helpers/kirgudu_base/controllers/container_items_management_actions.rb +12 -12
- data/app/helpers/kirgudu_base/controllers/dynamic_pages.rb +150 -130
- data/app/helpers/kirgudu_base/controllers/dynamic_transactions.rb +1 -1
- data/app/helpers/kirgudu_base/controllers/obligatory_filters.rb +1 -1
- data/app/helpers/kirgudu_base/gui_helper.rb +24 -0
- data/app/helpers/kirgudu_base/models/basic_properties.rb +135 -135
- data/app/helpers/kirgudu_base/models/before_query.rb +16 -0
- data/app/helpers/kirgudu_base/models/data_filter.rb +11 -93
- data/app/helpers/kirgudu_base/models/methods.rb +55 -55
- data/app/helpers/kirgudu_base/models/scopes.rb +70 -109
- data/app/helpers/kirgudu_base/system_prepare.rb +17 -0
- data/app/models/kirgudu_base/base_model.rb +70 -77
- data/app/models/kirgudu_base/common/portal.rb +4 -4
- data/app/models/kirgudu_base/common/portal_user.rb +2 -2
- data/app/models/kirgudu_base/concerns/models/administrated_by.rb +27 -0
- data/app/models/kirgudu_base/concerns/models/created_at.rb +36 -0
- data/app/models/kirgudu_base/concerns/models/created_by.rb +25 -0
- data/app/models/kirgudu_base/concerns/models/deletion_status_id.rb +28 -0
- data/app/models/kirgudu_base/concerns/models/managed_by.rb +25 -0
- data/app/models/kirgudu_base/concerns/models/name.rb +36 -0
- data/app/models/kirgudu_base/concerns/models/owned_by.rb +26 -0
- data/app/models/kirgudu_base/concerns/models/person_age.rb +49 -0
- data/app/models/kirgudu_base/concerns/models/person_full_name.rb +41 -0
- data/app/models/kirgudu_base/concerns/models/portal_id.rb +26 -0
- data/app/models/kirgudu_base/concerns/models/portal_user_id.rb +26 -0
- data/app/models/kirgudu_base/concerns/models/slug.rb +43 -0
- data/app/models/kirgudu_base/concerns/models/status_id.rb +28 -0
- data/app/models/kirgudu_base/concerns/models/title.rb +40 -0
- data/app/models/kirgudu_base/concerns/models/updated_at.rb +41 -0
- data/app/models/kirgudu_base/concerns/models/updated_by.rb +29 -0
- data/app/models/kirgudu_base/concerns/models/user_id.rb +35 -0
- data/app/models/kirgudu_base/dynamic/base_builder.rb +45 -0
- data/app/models/kirgudu_base/dynamic/base_model.rb +18 -0
- data/app/models/kirgudu_base/dynamic/breadcrumbs/item.rb +79 -0
- data/app/models/kirgudu_base/dynamic/data_filters/obligatory_filter.rb +22 -0
- data/app/models/kirgudu_base/dynamic/data_filters/obligatory_filter_builder.rb +46 -0
- data/app/models/kirgudu_base/dynamic/properties/interpret_as_builder.rb +21 -0
- data/app/models/kirgudu_base/dynamic/properties/interprete_as.rb +14 -0
- data/app/models/kirgudu_base/dynamic/transactions/enums.rb +11 -0
- data/app/models/kirgudu_base/dynamic/transactions/injection.rb +24 -0
- data/app/models/kirgudu_base/{dynamic_transactions/transaction_injection_builder.rb → dynamic/transactions/injection_builder.rb} +2 -8
- data/app/models/kirgudu_base/dynamic_pages/builder.rb +49 -50
- data/app/models/kirgudu_base/dynamic_pages/data_source.rb +56 -57
- data/app/models/kirgudu_base/dynamic_pages/data_source_builder.rb +63 -59
- data/app/models/kirgudu_base/dynamic_pages/element.rb +3 -6
- data/app/models/kirgudu_base/dynamic_pages/entry.rb +23 -25
- data/app/models/kirgudu_base/dynamic_pages/entry_builder.rb +32 -34
- data/app/models/kirgudu_base/dynamic_pages/entry_properties_block_builder.rb +2 -4
- data/app/models/kirgudu_base/dynamic_pages/entry_property.rb +1 -3
- data/app/models/kirgudu_base/dynamic_pages/entry_property_builder.rb +28 -30
- data/app/models/kirgudu_base/dynamic_pages/enums.rb +56 -59
- data/app/models/kirgudu_base/dynamic_pages/event.rb +19 -21
- data/app/models/kirgudu_base/dynamic_pages/event_action.rb +35 -38
- data/app/models/kirgudu_base/dynamic_pages/event_action_builder.rb +37 -39
- data/app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb +19 -21
- data/app/models/kirgudu_base/dynamic_pages/event_action_constraint_builder.rb +27 -29
- data/app/models/kirgudu_base/dynamic_pages/event_builder.rb +30 -32
- data/app/models/kirgudu_base/dynamic_pages/event_if_block_builder.rb +21 -23
- data/app/models/kirgudu_base/dynamic_pages/filter.rb +19 -21
- data/app/models/kirgudu_base/dynamic_pages/filter_builder.rb +23 -25
- data/app/models/kirgudu_base/dynamic_pages/form.rb +27 -26
- data/app/models/kirgudu_base/dynamic_pages/form_builder.rb +55 -48
- data/app/models/kirgudu_base/dynamic_pages/form_elements_block_builder.rb +21 -23
- data/app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb +16 -18
- data/app/models/kirgudu_base/dynamic_pages/form_properties_named_set.rb +11 -12
- data/app/models/kirgudu_base/dynamic_pages/form_properties_named_set_builder.rb +12 -13
- data/app/models/kirgudu_base/dynamic_pages/form_property.rb +31 -32
- data/app/models/kirgudu_base/dynamic_pages/form_property_builder.rb +35 -36
- data/app/models/kirgudu_base/dynamic_pages/form_tab.rb +9 -10
- data/app/models/kirgudu_base/dynamic_pages/form_tab_builder.rb +2 -3
- data/app/models/kirgudu_base/dynamic_pages/group.rb +15 -17
- data/app/models/kirgudu_base/dynamic_pages/group_builder.rb +18 -22
- data/app/models/kirgudu_base/dynamic_pages/html_css.rb +13 -0
- data/app/models/kirgudu_base/dynamic_pages/html_css_builder.rb +24 -0
- data/app/models/kirgudu_base/dynamic_pages/html_header.rb +15 -0
- data/app/models/kirgudu_base/dynamic_pages/html_header_builder.rb +40 -0
- data/app/models/kirgudu_base/dynamic_pages/html_meta.rb +15 -0
- data/app/models/kirgudu_base/dynamic_pages/html_meta_builder.rb +36 -0
- data/app/models/kirgudu_base/dynamic_pages/html_script.rb +21 -0
- data/app/models/kirgudu_base/dynamic_pages/html_script_builder.rb +25 -0
- data/app/models/kirgudu_base/dynamic_pages/http_client.rb +47 -0
- data/app/models/kirgudu_base/dynamic_pages/http_client_builder.rb +80 -0
- data/app/models/kirgudu_base/dynamic_pages/input_type.rb +18 -16
- data/app/models/kirgudu_base/dynamic_pages/link.rb +17 -0
- data/app/models/kirgudu_base/dynamic_pages/link_builder.rb +5 -0
- data/app/models/kirgudu_base/dynamic_pages/list.rb +32 -31
- data/app/models/kirgudu_base/dynamic_pages/list_builder.rb +9 -3
- data/app/models/kirgudu_base/dynamic_pages/list_cell.rb +20 -22
- data/app/models/kirgudu_base/dynamic_pages/list_cell_builder.rb +29 -31
- data/app/models/kirgudu_base/dynamic_pages/list_cells_block_builder.rb +11 -13
- data/app/models/kirgudu_base/dynamic_pages/list_filters_block_builder.rb +12 -13
- data/app/models/kirgudu_base/dynamic_pages/list_properties_block_builder.rb +11 -13
- data/app/models/kirgudu_base/dynamic_pages/list_property.rb +20 -22
- data/app/models/kirgudu_base/dynamic_pages/list_property_builder.rb +27 -29
- data/app/models/kirgudu_base/dynamic_pages/management_settings.rb +20 -21
- data/app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb +30 -32
- data/app/models/kirgudu_base/dynamic_pages/menu.rb +26 -28
- data/app/models/kirgudu_base/dynamic_pages/menu_builder.rb +34 -33
- data/app/models/kirgudu_base/dynamic_pages/menu_item.rb +30 -62
- data/app/models/kirgudu_base/dynamic_pages/menu_item_builder.rb +28 -39
- data/app/models/kirgudu_base/dynamic_pages/menu_items_block_builder.rb +19 -19
- data/app/models/kirgudu_base/dynamic_pages/menu_section.rb +23 -25
- data/app/models/kirgudu_base/dynamic_pages/menu_section_builder.rb +23 -25
- data/app/models/kirgudu_base/dynamic_pages/page.rb +7 -5
- data/app/models/kirgudu_base/dynamic_pages/page_builder.rb +94 -80
- data/app/models/kirgudu_base/dynamic_pages/page_element.rb +42 -42
- data/app/models/kirgudu_base/dynamic_pages/page_element_builder.rb +7 -5
- data/app/models/kirgudu_base/dynamic_pages/page_elements_block_builder.rb +51 -57
- data/app/models/kirgudu_base/dynamic_pages/page_tab.rb +18 -19
- data/app/models/kirgudu_base/dynamic_pages/page_tab_builder.rb +46 -47
- data/app/models/kirgudu_base/dynamic_pages/parent_element.rb +19 -21
- data/app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb +24 -28
- data/app/models/kirgudu_base/dynamic_pages/property.rb +30 -32
- data/app/models/kirgudu_base/dynamic_pages/property_builder.rb +49 -53
- data/app/models/kirgudu_base/dynamic_pages/property_events_block_builder.rb +21 -22
- data/app/models/kirgudu_base/dynamic_pages/relation.rb +13 -14
- data/app/models/kirgudu_base/dynamic_pages/relation_builder.rb +24 -26
- data/app/models/kirgudu_base/dynamic_pages/sorting_settings.rb +19 -20
- data/app/models/kirgudu_base/dynamic_pages/sorting_settings_builder.rb +30 -32
- data/app/models/kirgudu_base/dynamic_pages/url.rb +61 -0
- data/app/models/kirgudu_base/dynamic_pages/{controller_link_builder.rb → url_builder.rb} +8 -8
- data/app/models/kirgudu_base/dynamic_pages/url_parameter.rb +42 -0
- data/app/models/kirgudu_base/dynamic_pages/url_parameter_builder.rb +40 -0
- data/app/models/kirgudu_base/dynamic_pages/widget.rb +4 -6
- data/app/models/kirgudu_base/dynamic_pages/widget_builder.rb +10 -12
- data/app/models/kirgudu_base/security/authentication.rb +4 -4
- data/app/models/kirgudu_base/security/email_confirmation.rb +1 -1
- data/app/models/kirgudu_base/security/login_provider.rb +64 -0
- data/app/models/kirgudu_base/security/restore_password_code.rb +1 -1
- data/app/models/kirgudu_base/security/user.rb +34 -15
- data/app/models/kirgudu_base/settings/group.rb +3 -3
- data/app/models/kirgudu_base/settings/option.rb +3 -3
- data/app/models/kirgudu_base/settings/value.rb +3 -3
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/dashboard/index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/dashboard/modules.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/dashboard/stats.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/layouts/application.html.erb +25 -23
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/_attach_file_uploader.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_images/managing_items_index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_images/managing_items_manage.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_images/managing_items_sort_index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_images/managing_upload_images.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_items/managing_items_index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_items/managing_items_manage.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_items/managing_items_sort_index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/groups/edit.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/groups/index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/groups/new.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/groups/show.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/options/edit.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/options/index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/options/new.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/options/show.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/values/edit.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/values/index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/values/new.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/values/show.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/layouts/application.html.erb +1 -1
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_body_javascripts_files.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_body_javascripts_scripts.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_breadcrumbs.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_head_javascripts.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_head_stylesheets.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_index_page_filter.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_left_menu_standard_actions.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_services_top_line.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_top_nav_bar.html.erb +3 -3
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_edit_form_renderer.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_index_renderer.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_new_form_renderer.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_not_found_renderer.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_show_renderer.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_images/managing_items_index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_images/managing_items_manage.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_images/managing_items_sort_index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_items/managing_items_index.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_items/managing_items_manage.html.erb +0 -0
- data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_items/managing_items_sort_index.html.erb +0 -0
- data/app/views/{admin_templates/good/admin/shared/_left_menu_item.html.erb → kirgudu_base/admin/medialoot/common/dashboard.html.erb} +0 -0
- data/app/views/kirgudu_base/admin/medialoot/common/edit.html.erb +68 -0
- data/app/views/kirgudu_base/admin/medialoot/common/index.html.erb +121 -0
- data/app/views/kirgudu_base/admin/medialoot/common/new.html.erb +62 -0
- data/app/views/kirgudu_base/admin/medialoot/common/show.html.erb +146 -0
- data/app/views/kirgudu_base/admin/medialoot/layouts/application.html.erb +143 -0
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/medialoot}/shared/_breadcrumbs.html.erb +8 -6
- data/app/views/kirgudu_base/admin/medialoot/shared/_left_menu.html.erb +13 -0
- data/app/views/kirgudu_base/admin/medialoot/shared/entry_not_found.html.erb +3 -0
- data/app/views/{admin_templates/good/admin/shared/renderer_delete.html.erb → kirgudu_base/admin/medialoot/sso/dashboard/index.html.erb} +0 -0
- data/app/views/{admin_templates/good/admin/dashboard/index.html.erb → kirgudu_base/admin/zapanel/common/dashboard.html.erb} +246 -245
- data/app/views/{admin_templates/good/kirgudu_base/old/restore.html.erb → kirgudu_base/admin/zapanel/common/delete.html.erb} +0 -0
- data/app/views/{admin_templates/good/admin/shared/renderer_edit.html.erb → kirgudu_base/admin/zapanel/common/edit.html.erb} +45 -25
- data/app/views/{admin_templates/good_flexy/admin/common/files/upload.html.erb → kirgudu_base/admin/zapanel/common/file_upload.html.erb} +6 -6
- data/app/views/{admin_templates/good/admin/common/images/mass_upload.html.erb → kirgudu_base/admin/zapanel/common/image_upload.html.erb} +0 -0
- data/app/views/kirgudu_base/admin/zapanel/common/index.html.erb +174 -0
- data/app/views/kirgudu_base/admin/zapanel/common/index_temp.html.erb +192 -0
- data/app/views/{admin_templates/good/admin/shared/renderer_management.html.erb → kirgudu_base/admin/zapanel/common/management.html.erb} +0 -0
- data/app/views/{admin_templates/good/admin/shared/renderer_new.html.erb → kirgudu_base/admin/zapanel/common/new.html.erb} +10 -8
- data/app/views/kirgudu_base/admin/zapanel/common/show.html.erb +270 -0
- data/app/views/{admin_templates/good/admin/shared/renderer_show.html.erb → kirgudu_base/admin/zapanel/common/show_temp.html.erb} +98 -86
- data/app/views/{admin_templates/good/admin/shared/renderer_sorting.html.erb → kirgudu_base/admin/zapanel/common/sorting.html.erb} +0 -0
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/layouts/application.html.erb +97 -82
- data/app/views/{admin_templates/good_flexy/admin → kirgudu_base/admin/zapanel}/shared/_breadcrumbs.html.erb +1 -1
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_chat.html.erb +1 -1
- data/app/views/kirgudu_base/admin/zapanel/shared/_left_menu.html.erb +46 -0
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_left_menu_emails.html.erb +1 -1
- data/app/views/{admin_templates/good_flexy/admin/shared/renderer_delete.html.erb → kirgudu_base/admin/zapanel/shared/_left_menu_item.html.erb} +0 -0
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_left_menu_section.html.erb +1 -1
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_left_menu_social_stats.html.erb +3 -3
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_left_menu_tags.html.erb +0 -0
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_sticky_notification.html.erb +0 -0
- data/app/views/kirgudu_base/admin/zapanel/shared/_top_menu_complex.html.erb +7 -0
- data/app/views/kirgudu_base/admin/zapanel/shared/_top_menu_simple.html.erb +5 -0
- data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/entry_not_found.html.erb +0 -0
- data/app/views/{admin_templates/good/admin/shared/404.html.erb → kirgudu_base/admin/zapanel/shared/page_404.html.erb} +0 -0
- data/app/views/{admin_templates/good/kirgudu_base/authentications → kirgudu_base/authentications/zapanel}/login.html.erb +0 -0
- data/app/views/{admin_templates/good/kirgudu_base/authentications → kirgudu_base/authentications/zapanel}/register.html.erb +0 -0
- data/config/locales/kirgudu_base.en.yml +138 -1
- data/config/locales/kirgudu_base.es.yml +138 -1
- data/config/locales/kirgudu_base.ru.yml +70 -1
- data/db/migrate/20130913084129_create_kirgudu_base_security_users.rb +10 -3
- data/db/migrate/20140413134252_create_kirgudu_base_security_authentications.rb +2 -2
- data/db/migrate/20140413201121_add_confirmations_kirgudu_base_security_users.rb +2 -2
- data/db/migrate/20140517202608_create_kirgudu_base_security_login_providers.rb +24 -0
- data/db/migrate/20140712073938_change_deletion_statsus_in_security_user.rb +5 -0
- data/db/migrate/20140712074215_change_deletion_statsus_in_common_portal.rb +5 -0
- data/db/migrate/20140712074220_change_deletion_statsus_in_common_portal_user.rb +5 -0
- data/lib/kirgudu_base/engine.rb +1 -0
- data/test/fixtures/kirgudu_base/security/login_providers.yml +13 -0
- data/test/fixtures/kirgudu_base/sso/login_providers.yml +13 -0
- data/test/models/kirgudu_base/security/login_provider_test.rb +9 -0
- data/test/models/kirgudu_base/sso/login_provider_test.rb +9 -0
- metadata +638 -642
- data/app/assets/images/kirgudu_base/web/banner.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/black.png +0 -0
- data/app/assets/images/kirgudu_base/web/body.png +0 -0
- data/app/assets/images/kirgudu_base/web/col_img1.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/col_img2.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/coll_campaign.png +0 -0
- data/app/assets/images/kirgudu_base/web/coll_list_head.png +0 -0
- data/app/assets/images/kirgudu_base/web/coll_new.png +0 -0
- data/app/assets/images/kirgudu_base/web/coll_no_img.png +0 -0
- data/app/assets/images/kirgudu_base/web/coll_podr.png +0 -0
- data/app/assets/images/kirgudu_base/web/factory.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/fancybox/blank.gif +0 -0
- data/app/assets/images/kirgudu_base/web/fancybox/fancybox_buttons.png +0 -0
- data/app/assets/images/kirgudu_base/web/fancybox/fancybox_loading.gif +0 -0
- data/app/assets/images/kirgudu_base/web/fancybox/fancybox_overlay.png +0 -0
- data/app/assets/images/kirgudu_base/web/fancybox/fancybox_sprite.png +0 -0
- data/app/assets/images/kirgudu_base/web/fancybox/fancybox_sprite1.png +0 -0
- data/app/assets/images/kirgudu_base/web/flag1.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/flag2.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.css +0 -8
- data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.eot +0 -0
- data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.svg +0 -7555
- data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.ttf +0 -0
- data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.woff +0 -0
- data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadprocond.eot +0 -0
- data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.css +0 -8
- data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.eot +0 -0
- data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.svg +0 -7887
- data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.ttf +0 -0
- data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.woff +0 -0
- data/app/assets/images/kirgudu_base/web/green.png +0 -0
- data/app/assets/images/kirgudu_base/web/grey.png +0 -0
- data/app/assets/images/kirgudu_base/web/header_black.png +0 -0
- data/app/assets/images/kirgudu_base/web/kolonna.png +0 -0
- data/app/assets/images/kirgudu_base/web/li_1.png +0 -0
- data/app/assets/images/kirgudu_base/web/li_2.png +0 -0
- data/app/assets/images/kirgudu_base/web/li_3.png +0 -0
- data/app/assets/images/kirgudu_base/web/li_4.png +0 -0
- data/app/assets/images/kirgudu_base/web/li_5.png +0 -0
- data/app/assets/images/kirgudu_base/web/logo.png +0 -0
- data/app/assets/images/kirgudu_base/web/map.png +0 -0
- data/app/assets/images/kirgudu_base/web/map_2.png +0 -0
- data/app/assets/images/kirgudu_base/web/nav_active.png +0 -0
- data/app/assets/images/kirgudu_base/web/nognicy.png +0 -0
- data/app/assets/images/kirgudu_base/web/orange.png +0 -0
- data/app/assets/images/kirgudu_base/web/pagination.png +0 -0
- data/app/assets/images/kirgudu_base/web/pdf.png +0 -0
- data/app/assets/images/kirgudu_base/web/plit_1.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/plit_2.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/plit_3.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/plit_4.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/post_img.jpg +0 -0
- data/app/assets/images/kirgudu_base/web/red_line.png +0 -0
- data/app/assets/images/kirgudu_base/web/shadow_bottom.png +0 -0
- data/app/assets/images/kirgudu_base/web/shadow_top.png +0 -0
- data/app/assets/images/kirgudu_base/web/show-room.php +0 -71
- data/app/assets/images/kirgudu_base/web/slider.png +0 -0
- data/app/assets/images/kirgudu_base/web/slider_bg.png +0 -0
- data/app/assets/images/kirgudu_base/web/slider_but.png +0 -0
- data/app/assets/images/kirgudu_base/web/sprite_index.png +0 -0
- data/app/assets/images/kirgudu_base/web/sprite_vert.png +0 -0
- data/app/assets/images/kirgudu_base/web/top_nav.png +0 -0
- data/app/assets/images/kirgudu_base/web/transperent_bg.png +0 -0
- data/app/assets/images/kirgudu_base/web/transperent_bg1.png +0 -0
- data/app/assets/images/kirgudu_base/web/up_down.png +0 -0
- data/app/assets/images/kirgudu_base/web/yellow.png +0 -0
- data/app/assets/javascripts/kirgudu_base/application.js +0 -15
- data/app/assets/javascripts/kirgudu_base/delete.js +0 -67
- data/app/assets/javascripts/kirgudu_base/jquery-ui-1.8.23.custom.min.js +0 -125
- data/app/assets/javascripts/kirgudu_base/jquery-ui-1.8.23.custom.min_d9931121.js +0 -125
- data/app/assets/javascripts/kirgudu_base/jquery.fancybox.js +0 -2020
- data/app/assets/javascripts/kirgudu_base/jquery.jcarousel.min.js +0 -16
- data/app/assets/javascripts/kirgudu_base/jquery.json-2.3.min.js +0 -23
- data/app/assets/javascripts/kirgudu_base/jquery.uploadify.js +0 -986
- data/app/assets/javascripts/kirgudu_base/movie_data.js +0 -2347
- data/app/assets/javascripts/kirgudu_base/scripts_OLD.js +0 -204
- data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont.svg +0 -255
- data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont_2d2816fe.eot +0 -0
- data/app/assets/stylesheets/kirgudu_base/admin/good/range-slider.normalize.min.css +0 -50
- data/app/helpers/kirgudu_base/controllers/OLD_basic_actions.rb +0 -449
- data/app/helpers/kirgudu_base/controllers/basic_actions_with_subordinates.rb +0 -67
- data/app/models/kirgudu_base/dynamic_filters/obligatory_filter.rb +0 -24
- data/app/models/kirgudu_base/dynamic_filters/obligatory_filter_builder.rb +0 -47
- data/app/models/kirgudu_base/dynamic_pages/controller_link.rb +0 -40
- data/app/models/kirgudu_base/dynamic_pages/controller_link_id.rb +0 -35
- data/app/models/kirgudu_base/dynamic_pages/controller_link_id_builder.rb +0 -38
- data/app/models/kirgudu_base/dynamic_transactions/enums.rb +0 -13
- data/app/models/kirgudu_base/dynamic_transactions/transaction_injection.rb +0 -25
- data/app/models/kirgudu_base/security/autheintication.rb +0 -4
- data/app/views/admin_templates/good/admin/common/files/upload.html.erb +0 -203
- data/app/views/admin_templates/good/admin/layouts/OLD_application.html.erb +0 -518
- data/app/views/admin_templates/good/admin/shared/_left_menu.html.erb +0 -148
- data/app/views/admin_templates/good/admin/shared/render_new_OLD.html.erb +0 -90
- data/app/views/admin_templates/good/admin/shared/renderer_edit_OLD.html.erb +0 -106
- data/app/views/admin_templates/good/admin/shared/renderer_entries_list.html.erb +0 -178
- data/app/views/admin_templates/good/admin/shared/renderer_entries_list_with_parent.html.erb +0 -149
- data/app/views/admin_templates/good/admin/shared/renderer_show_OLD.html.erb +0 -159
- data/app/views/admin_templates/good/kirgudu_base/old/login_page.html.erb +0 -253
- data/app/views/admin_templates/good/kirgudu_base/old/show.html.erb +0 -39
- data/app/views/admin_templates/good_flexy/admin/common/images/mass_upload.html.erb +0 -9
- data/app/views/admin_templates/good_flexy/admin/dashboard/index.html.erb +0 -568
- data/app/views/admin_templates/good_flexy/admin/layouts/OLD_application.html.erb +0 -518
- data/app/views/admin_templates/good_flexy/admin/layouts/application.html.erb +0 -1297
- data/app/views/admin_templates/good_flexy/admin/shared/404.html.erb +0 -29
- data/app/views/admin_templates/good_flexy/admin/shared/_chat.html.erb +0 -49
- data/app/views/admin_templates/good_flexy/admin/shared/_left_menu.html.erb +0 -144
- data/app/views/admin_templates/good_flexy/admin/shared/_left_menu_emails.html.erb +0 -20
- data/app/views/admin_templates/good_flexy/admin/shared/_left_menu_social_stats.html.erb +0 -20
- data/app/views/admin_templates/good_flexy/admin/shared/_left_menu_tags.html.erb +0 -3
- data/app/views/admin_templates/good_flexy/admin/shared/_sticky_notification.html.erb +0 -11
- data/app/views/admin_templates/good_flexy/admin/shared/entry_not_found.html.erb +0 -1
- data/app/views/admin_templates/good_flexy/admin/shared/renderer_entries_list.html.erb +0 -165
- data/app/views/admin_templates/good_flexy/admin/shared/renderer_entries_list_with_parent.html.erb +0 -149
- data/app/views/admin_templates/good_flexy/admin/shared/renderer_form_edit.html.erb +0 -119
- data/app/views/admin_templates/good_flexy/admin/shared/renderer_form_new.html.erb +0 -90
- data/app/views/admin_templates/good_flexy/admin/shared/renderer_page_elements.html.erb +0 -11
- data/app/views/admin_templates/good_flexy/admin/shared/renderer_show.html.erb +0 -149
- data/app/views/security/authentications/login_page.html.erb +0 -253
- data/app/views/security/authentications/restore.html.erb +0 -0
- data/app/views/security/authentications/show.html.erb +0 -35
- data/app/views/shared/kirgudu_base/manage_images/managing_items_index.html.erb +0 -34
- data/app/views/shared/kirgudu_base/manage_images/managing_items_manage.html.erb +0 -72
- data/app/views/shared/kirgudu_base/manage_images/managing_items_sort_index.html.erb +0 -33
- data/app/views/shared/kirgudu_base/manage_items/managing_items_index.html.erb +0 -42
- data/app/views/shared/kirgudu_base/manage_items/managing_items_manage.html.erb +0 -66
- data/app/views/shared/kirgudu_base/manage_items/managing_items_sort_index.html.erb +0 -33
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
|
2
|
+
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=lb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=mb(b);function pb(){}pb.prototype=d.filters=d.pseudos,d.setFilters=new pb,g=fb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fb.error(a):z(a,i).slice(0)};function qb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)
|
3
|
+
},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ib={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qb[0].contentDocument,b.write(),b.close(),c=sb(a,b),qb.detach()),rb[a]=c),c}var ub=/^margin/,vb=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),vb.test(g)&&ub.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function yb(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var zb=/^(none|table(?!-c[ea]).+)/,Ab=new RegExp("^("+Q+")(.*)$","i"),Bb=new RegExp("^([+-])=("+Q+")","i"),Cb={position:"absolute",visibility:"hidden",display:"block"},Db={letterSpacing:"0",fontWeight:"400"},Eb=["Webkit","O","Moz","ms"];function Fb(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Eb.length;while(e--)if(b=Eb[e]+c,b in a)return b;return d}function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wb(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xb(a,b,f),(0>e||null==e)&&(e=a.style[b]),vb.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Hb(a,b,c||(g?"border":"content"),d,f)+"px"}function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",tb(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Bb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xb(a,b,d)),"normal"===e&&b in Db&&(e=Db[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?zb.test(n.css(a,"display"))&&0===a.offsetWidth?n.swap(a,Cb,function(){return Ib(a,b,d)}):Ib(a,b,d):void 0},set:function(a,c,d){var e=d&&wb(a);return Gb(a,c,d?Hb(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=yb(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ub.test(a)||(n.cssHooks[a+b].set=Gb)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Jb(this,!0)},hide:function(){return Jb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Kb(a,b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}n.Tween=Kb,Kb.prototype={constructor:Kb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Kb.propHooks[this.prop];return a&&a.get?a.get(this):Kb.propHooks._default.get(this)},run:function(a){var b,c=Kb.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Kb.propHooks._default.set(this),this}},Kb.prototype.init.prototype=Kb.prototype,Kb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Kb.propHooks.scrollTop=Kb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=Kb.prototype.init,n.fx.step={};var Lb,Mb,Nb=/^(?:toggle|show|hide)$/,Ob=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pb=/queueHooks$/,Qb=[Vb],Rb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Ob.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Ob.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sb(){return setTimeout(function(){Lb=void 0}),Lb=n.now()}function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Vb(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||tb(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Nb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?tb(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ub(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Lb||Sb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Lb||Sb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wb(k,j.opts.specialEasing);g>f;f++)if(d=Qb[f].call(j,a,k,j.opts))return d;return n.map(k,Ub,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xb,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Rb[c]=Rb[c]||[],Rb[c].unshift(b)},prefilter:function(a,b){b?Qb.unshift(a):Qb.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xb(this,n.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Tb(b,!0),a,d,e)}}),n.each({slideDown:Tb("show"),slideUp:Tb("hide"),slideToggle:Tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Lb=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Lb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Mb||(Mb=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Mb),Mb=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement("input"),b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox",k.checkOn=""!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement("input"),a.value="t",a.type="radio",k.radioValue="t"===a.value}();var Yb,Zb,$b=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Zb:Yb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))
|
4
|
+
},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||n.find.attr;$b[b]=function(a,b,d){var e,f;return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});var _b=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_b.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ac=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ac," ").indexOf(b)>=0)return!0;return!1}});var bc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cc=n.now(),dc=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var ec,fc,gc=/#.*$/,hc=/([?&])_=[^&]*/,ic=/^(.*?):[ \t]*([^\r\n]*)$/gm,jc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kc=/^(?:GET|HEAD)$/,lc=/^\/\//,mc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,nc={},oc={},pc="*/".concat("*");try{fc=location.href}catch(qc){fc=l.createElement("a"),fc.href="",fc=fc.href}ec=mc.exec(fc.toLowerCase())||[];function rc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function sc(a,b,c,d){var e={},f=a===oc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function tc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function uc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function vc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fc,type:"GET",isLocal:jc.test(ec[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?tc(tc(a,n.ajaxSettings),b):tc(n.ajaxSettings,a)},ajaxPrefilter:rc(nc),ajaxTransport:rc(oc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=ic.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||fc)+"").replace(gc,"").replace(lc,ec[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=mc.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===ec[1]&&h[2]===ec[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(ec[3]||("http:"===ec[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),sc(nc,k,b,v),2===t)return v;i=k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!kc.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(dc.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=hc.test(d)?d.replace(hc,"$1_="+cc++):d+(dc.test(d)?"&":"?")+"_="+cc++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+pc+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=sc(oc,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=uc(k,v,f)),u=vc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var wc=/%20/g,xc=/\[\]$/,yc=/\r?\n/g,zc=/^(?:submit|button|image|reset|file)$/i,Ac=/^(?:input|select|textarea|keygen)/i;function Bc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||xc.test(a)?d(a,e):Bc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Bc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Bc(c,a[c],b,e);return d.join("&").replace(wc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Ac.test(this.nodeName)&&!zc.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(yc,"\r\n")}}):{name:b.name,value:c.replace(yc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Cc=0,Dc={},Ec={0:200,1223:204},Fc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Dc)Dc[a]()}),k.cors=!!Fc&&"withCredentials"in Fc,k.ajax=Fc=!!Fc,n.ajaxTransport(function(a){var b;return k.cors||Fc&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Dc[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Ec[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Dc[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Gc=[],Hc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Gc.pop()||n.expando+"_"+cc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Hc.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Hc,"$1"+e):b.jsonp!==!1&&(b.url+=(dc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Gc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Ic=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Ic)return Ic.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Jc=a.document.documentElement;function Kc(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Kc(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Jc;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Jc})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Kc(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=yb(k.pixelPosition,function(a,c){return c?(c=xb(a,b),vb.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Lc=a.jQuery,Mc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Mc),b&&a.jQuery===n&&(a.jQuery=Lc),n},typeof b===U&&(a.jQuery=a.$=n),n});
|
File without changes
|
File without changes
|
@@ -0,0 +1,4255 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery carouFredSel 6.2.1
|
3
|
+
* Demo's and documentation:
|
4
|
+
* caroufredsel.dev7studios.com
|
5
|
+
*
|
6
|
+
* Copyright (c) 2013 Fred Heusschen
|
7
|
+
* www.frebsite.nl
|
8
|
+
*
|
9
|
+
* Dual licensed under the MIT and GPL licenses.
|
10
|
+
* http://en.wikipedia.org/wiki/MIT_License
|
11
|
+
* http://en.wikipedia.org/wiki/GNU_General_Public_License
|
12
|
+
*/
|
13
|
+
|
14
|
+
|
15
|
+
(function($) {
|
16
|
+
|
17
|
+
|
18
|
+
// LOCAL
|
19
|
+
|
20
|
+
if ( $.fn.carouFredSel )
|
21
|
+
{
|
22
|
+
return;
|
23
|
+
}
|
24
|
+
|
25
|
+
$.fn.caroufredsel = $.fn.carouFredSel = function(options, configs)
|
26
|
+
{
|
27
|
+
|
28
|
+
// no element
|
29
|
+
if (this.length == 0)
|
30
|
+
{
|
31
|
+
debug( true, 'No element found for "' + this.selector + '".' );
|
32
|
+
return this;
|
33
|
+
}
|
34
|
+
|
35
|
+
// multiple elements
|
36
|
+
if (this.length > 1)
|
37
|
+
{
|
38
|
+
return this.each(function() {
|
39
|
+
$(this).carouFredSel(options, configs);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
var $cfs = this,
|
45
|
+
$tt0 = this[0],
|
46
|
+
starting_position = false;
|
47
|
+
|
48
|
+
if ($cfs.data('_cfs_isCarousel'))
|
49
|
+
{
|
50
|
+
starting_position = $cfs.triggerHandler('_cfs_triggerEvent', 'currentPosition');
|
51
|
+
$cfs.trigger('_cfs_triggerEvent', ['destroy', true]);
|
52
|
+
}
|
53
|
+
|
54
|
+
var FN = {};
|
55
|
+
|
56
|
+
FN._init = function(o, setOrig, start)
|
57
|
+
{
|
58
|
+
o = go_getObject($tt0, o);
|
59
|
+
|
60
|
+
o.items = go_getItemsObject($tt0, o.items);
|
61
|
+
o.scroll = go_getScrollObject($tt0, o.scroll);
|
62
|
+
o.auto = go_getAutoObject($tt0, o.auto);
|
63
|
+
o.prev = go_getPrevNextObject($tt0, o.prev);
|
64
|
+
o.next = go_getPrevNextObject($tt0, o.next);
|
65
|
+
o.pagination = go_getPaginationObject($tt0, o.pagination);
|
66
|
+
o.swipe = go_getSwipeObject($tt0, o.swipe);
|
67
|
+
o.mousewheel = go_getMousewheelObject($tt0, o.mousewheel);
|
68
|
+
|
69
|
+
if (setOrig)
|
70
|
+
{
|
71
|
+
opts_orig = $.extend(true, {}, $.fn.carouFredSel.defaults, o);
|
72
|
+
}
|
73
|
+
|
74
|
+
opts = $.extend(true, {}, $.fn.carouFredSel.defaults, o);
|
75
|
+
opts.d = cf_getDimensions(opts);
|
76
|
+
|
77
|
+
crsl.direction = (opts.direction == 'up' || opts.direction == 'left') ? 'next' : 'prev';
|
78
|
+
|
79
|
+
var a_itm = $cfs.children(),
|
80
|
+
avail_primary = ms_getParentSize($wrp, opts, 'width');
|
81
|
+
|
82
|
+
if (is_true(opts.cookie))
|
83
|
+
{
|
84
|
+
opts.cookie = 'caroufredsel_cookie_' + conf.serialNumber;
|
85
|
+
}
|
86
|
+
|
87
|
+
opts.maxDimension = ms_getMaxDimension(opts, avail_primary);
|
88
|
+
|
89
|
+
// complement items and sizes
|
90
|
+
opts.items = in_complementItems(opts.items, opts, a_itm, start);
|
91
|
+
opts[opts.d['width']] = in_complementPrimarySize(opts[opts.d['width']], opts, a_itm);
|
92
|
+
opts[opts.d['height']] = in_complementSecondarySize(opts[opts.d['height']], opts, a_itm);
|
93
|
+
|
94
|
+
// primary size not set for a responsive carousel
|
95
|
+
if (opts.responsive)
|
96
|
+
{
|
97
|
+
if (!is_percentage(opts[opts.d['width']]))
|
98
|
+
{
|
99
|
+
opts[opts.d['width']] = '100%';
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
// primary size is percentage
|
104
|
+
if (is_percentage(opts[opts.d['width']]))
|
105
|
+
{
|
106
|
+
crsl.upDateOnWindowResize = true;
|
107
|
+
crsl.primarySizePercentage = opts[opts.d['width']];
|
108
|
+
opts[opts.d['width']] = ms_getPercentage(avail_primary, crsl.primarySizePercentage);
|
109
|
+
if (!opts.items.visible)
|
110
|
+
{
|
111
|
+
opts.items.visibleConf.variable = true;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
if (opts.responsive)
|
116
|
+
{
|
117
|
+
opts.usePadding = false;
|
118
|
+
opts.padding = [0, 0, 0, 0];
|
119
|
+
opts.align = false;
|
120
|
+
opts.items.visibleConf.variable = false;
|
121
|
+
}
|
122
|
+
else
|
123
|
+
{
|
124
|
+
// visible-items not set
|
125
|
+
if (!opts.items.visible)
|
126
|
+
{
|
127
|
+
opts = in_complementVisibleItems(opts, avail_primary);
|
128
|
+
}
|
129
|
+
|
130
|
+
// primary size not set -> calculate it or set to "variable"
|
131
|
+
if (!opts[opts.d['width']])
|
132
|
+
{
|
133
|
+
if (!opts.items.visibleConf.variable && is_number(opts.items[opts.d['width']]) && opts.items.filter == '*')
|
134
|
+
{
|
135
|
+
opts[opts.d['width']] = opts.items.visible * opts.items[opts.d['width']];
|
136
|
+
opts.align = false;
|
137
|
+
}
|
138
|
+
else
|
139
|
+
{
|
140
|
+
opts[opts.d['width']] = 'variable';
|
141
|
+
}
|
142
|
+
}
|
143
|
+
// align not set -> set to center if primary size is number
|
144
|
+
if (is_undefined(opts.align))
|
145
|
+
{
|
146
|
+
opts.align = (is_number(opts[opts.d['width']]))
|
147
|
+
? 'center'
|
148
|
+
: false;
|
149
|
+
}
|
150
|
+
// set variabe visible-items
|
151
|
+
if (opts.items.visibleConf.variable)
|
152
|
+
{
|
153
|
+
opts.items.visible = gn_getVisibleItemsNext(a_itm, opts, 0);
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
// set visible items by filter
|
158
|
+
if (opts.items.filter != '*' && !opts.items.visibleConf.variable)
|
159
|
+
{
|
160
|
+
opts.items.visibleConf.org = opts.items.visible;
|
161
|
+
opts.items.visible = gn_getVisibleItemsNextFilter(a_itm, opts, 0);
|
162
|
+
}
|
163
|
+
|
164
|
+
opts.items.visible = cf_getItemsAdjust(opts.items.visible, opts, opts.items.visibleConf.adjust, $tt0);
|
165
|
+
opts.items.visibleConf.old = opts.items.visible;
|
166
|
+
|
167
|
+
if (opts.responsive)
|
168
|
+
{
|
169
|
+
if (!opts.items.visibleConf.min)
|
170
|
+
{
|
171
|
+
opts.items.visibleConf.min = opts.items.visible;
|
172
|
+
}
|
173
|
+
if (!opts.items.visibleConf.max)
|
174
|
+
{
|
175
|
+
opts.items.visibleConf.max = opts.items.visible;
|
176
|
+
}
|
177
|
+
opts = in_getResponsiveValues(opts, a_itm, avail_primary);
|
178
|
+
}
|
179
|
+
else
|
180
|
+
{
|
181
|
+
opts.padding = cf_getPadding(opts.padding);
|
182
|
+
|
183
|
+
if (opts.align == 'top')
|
184
|
+
{
|
185
|
+
opts.align = 'left';
|
186
|
+
}
|
187
|
+
else if (opts.align == 'bottom')
|
188
|
+
{
|
189
|
+
opts.align = 'right';
|
190
|
+
}
|
191
|
+
|
192
|
+
switch (opts.align)
|
193
|
+
{
|
194
|
+
// align: center, left or right
|
195
|
+
case 'center':
|
196
|
+
case 'left':
|
197
|
+
case 'right':
|
198
|
+
if (opts[opts.d['width']] != 'variable')
|
199
|
+
{
|
200
|
+
opts = in_getAlignPadding(opts, a_itm);
|
201
|
+
opts.usePadding = true;
|
202
|
+
}
|
203
|
+
break;
|
204
|
+
|
205
|
+
// padding
|
206
|
+
default:
|
207
|
+
opts.align = false;
|
208
|
+
opts.usePadding = (
|
209
|
+
opts.padding[0] == 0 &&
|
210
|
+
opts.padding[1] == 0 &&
|
211
|
+
opts.padding[2] == 0 &&
|
212
|
+
opts.padding[3] == 0
|
213
|
+
) ? false : true;
|
214
|
+
break;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
if (!is_number(opts.scroll.duration))
|
219
|
+
{
|
220
|
+
opts.scroll.duration = 500;
|
221
|
+
}
|
222
|
+
if (is_undefined(opts.scroll.items))
|
223
|
+
{
|
224
|
+
opts.scroll.items = (opts.responsive || opts.items.visibleConf.variable || opts.items.filter != '*')
|
225
|
+
? 'visible'
|
226
|
+
: opts.items.visible;
|
227
|
+
}
|
228
|
+
|
229
|
+
opts.auto = $.extend(true, {}, opts.scroll, opts.auto);
|
230
|
+
opts.prev = $.extend(true, {}, opts.scroll, opts.prev);
|
231
|
+
opts.next = $.extend(true, {}, opts.scroll, opts.next);
|
232
|
+
opts.pagination = $.extend(true, {}, opts.scroll, opts.pagination);
|
233
|
+
// swipe and mousewheel extend later on, per direction
|
234
|
+
|
235
|
+
opts.auto = go_complementAutoObject($tt0, opts.auto);
|
236
|
+
opts.prev = go_complementPrevNextObject($tt0, opts.prev);
|
237
|
+
opts.next = go_complementPrevNextObject($tt0, opts.next);
|
238
|
+
opts.pagination = go_complementPaginationObject($tt0, opts.pagination);
|
239
|
+
opts.swipe = go_complementSwipeObject($tt0, opts.swipe);
|
240
|
+
opts.mousewheel = go_complementMousewheelObject($tt0, opts.mousewheel);
|
241
|
+
|
242
|
+
if (opts.synchronise)
|
243
|
+
{
|
244
|
+
opts.synchronise = cf_getSynchArr(opts.synchronise);
|
245
|
+
}
|
246
|
+
|
247
|
+
|
248
|
+
// DEPRECATED
|
249
|
+
if (opts.auto.onPauseStart)
|
250
|
+
{
|
251
|
+
opts.auto.onTimeoutStart = opts.auto.onPauseStart;
|
252
|
+
deprecated('auto.onPauseStart', 'auto.onTimeoutStart');
|
253
|
+
}
|
254
|
+
if (opts.auto.onPausePause)
|
255
|
+
{
|
256
|
+
opts.auto.onTimeoutPause = opts.auto.onPausePause;
|
257
|
+
deprecated('auto.onPausePause', 'auto.onTimeoutPause');
|
258
|
+
}
|
259
|
+
if (opts.auto.onPauseEnd)
|
260
|
+
{
|
261
|
+
opts.auto.onTimeoutEnd = opts.auto.onPauseEnd;
|
262
|
+
deprecated('auto.onPauseEnd', 'auto.onTimeoutEnd');
|
263
|
+
}
|
264
|
+
if (opts.auto.pauseDuration)
|
265
|
+
{
|
266
|
+
opts.auto.timeoutDuration = opts.auto.pauseDuration;
|
267
|
+
deprecated('auto.pauseDuration', 'auto.timeoutDuration');
|
268
|
+
}
|
269
|
+
// /DEPRECATED
|
270
|
+
|
271
|
+
|
272
|
+
}; // /init
|
273
|
+
|
274
|
+
|
275
|
+
FN._build = function() {
|
276
|
+
$cfs.data('_cfs_isCarousel', true);
|
277
|
+
|
278
|
+
var a_itm = $cfs.children(),
|
279
|
+
orgCSS = in_mapCss($cfs, ['textAlign', 'float', 'position', 'top', 'right', 'bottom', 'left', 'zIndex', 'width', 'height', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft']),
|
280
|
+
newPosition = 'relative';
|
281
|
+
|
282
|
+
switch (orgCSS.position)
|
283
|
+
{
|
284
|
+
case 'absolute':
|
285
|
+
case 'fixed':
|
286
|
+
newPosition = orgCSS.position;
|
287
|
+
break;
|
288
|
+
}
|
289
|
+
|
290
|
+
if (conf.wrapper == 'parent')
|
291
|
+
{
|
292
|
+
sz_storeOrigCss($wrp);
|
293
|
+
}
|
294
|
+
else
|
295
|
+
{
|
296
|
+
$wrp.css(orgCSS);
|
297
|
+
}
|
298
|
+
$wrp.css({
|
299
|
+
'overflow' : 'hidden',
|
300
|
+
'position' : newPosition
|
301
|
+
});
|
302
|
+
|
303
|
+
sz_storeOrigCss($cfs);
|
304
|
+
$cfs.data('_cfs_origCssZindex', orgCSS.zIndex);
|
305
|
+
$cfs.css({
|
306
|
+
'textAlign' : 'left',
|
307
|
+
'float' : 'none',
|
308
|
+
'position' : 'absolute',
|
309
|
+
'top' : 0,
|
310
|
+
'right' : 'auto',
|
311
|
+
'bottom' : 'auto',
|
312
|
+
'left' : 0,
|
313
|
+
'marginTop' : 0,
|
314
|
+
'marginRight' : 0,
|
315
|
+
'marginBottom' : 0,
|
316
|
+
'marginLeft' : 0
|
317
|
+
});
|
318
|
+
|
319
|
+
sz_storeMargin(a_itm, opts);
|
320
|
+
sz_storeOrigCss(a_itm);
|
321
|
+
if (opts.responsive)
|
322
|
+
{
|
323
|
+
sz_setResponsiveSizes(opts, a_itm);
|
324
|
+
}
|
325
|
+
|
326
|
+
}; // /build
|
327
|
+
|
328
|
+
|
329
|
+
FN._bind_events = function() {
|
330
|
+
FN._unbind_events();
|
331
|
+
|
332
|
+
|
333
|
+
// stop event
|
334
|
+
$cfs.bind(cf_e('stop', conf), function(e, imm) {
|
335
|
+
e.stopPropagation();
|
336
|
+
|
337
|
+
// button
|
338
|
+
if (!crsl.isStopped)
|
339
|
+
{
|
340
|
+
if (opts.auto.button)
|
341
|
+
{
|
342
|
+
opts.auto.button.addClass(cf_c('stopped', conf));
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
// set stopped
|
347
|
+
crsl.isStopped = true;
|
348
|
+
|
349
|
+
if (opts.auto.play)
|
350
|
+
{
|
351
|
+
opts.auto.play = false;
|
352
|
+
$cfs.trigger(cf_e('pause', conf), imm);
|
353
|
+
}
|
354
|
+
return true;
|
355
|
+
});
|
356
|
+
|
357
|
+
|
358
|
+
// finish event
|
359
|
+
$cfs.bind(cf_e('finish', conf), function(e) {
|
360
|
+
e.stopPropagation();
|
361
|
+
if (crsl.isScrolling)
|
362
|
+
{
|
363
|
+
sc_stopScroll(scrl);
|
364
|
+
}
|
365
|
+
return true;
|
366
|
+
});
|
367
|
+
|
368
|
+
|
369
|
+
// pause event
|
370
|
+
$cfs.bind(cf_e('pause', conf), function(e, imm, res) {
|
371
|
+
e.stopPropagation();
|
372
|
+
tmrs = sc_clearTimers(tmrs);
|
373
|
+
|
374
|
+
// immediately pause
|
375
|
+
if (imm && crsl.isScrolling)
|
376
|
+
{
|
377
|
+
scrl.isStopped = true;
|
378
|
+
var nst = getTime() - scrl.startTime;
|
379
|
+
scrl.duration -= nst;
|
380
|
+
if (scrl.pre)
|
381
|
+
{
|
382
|
+
scrl.pre.duration -= nst;
|
383
|
+
}
|
384
|
+
if (scrl.post)
|
385
|
+
{
|
386
|
+
scrl.post.duration -= nst;
|
387
|
+
}
|
388
|
+
sc_stopScroll(scrl, false);
|
389
|
+
}
|
390
|
+
|
391
|
+
// update remaining pause-time
|
392
|
+
if (!crsl.isPaused && !crsl.isScrolling)
|
393
|
+
{
|
394
|
+
if (res)
|
395
|
+
{
|
396
|
+
tmrs.timePassed += getTime() - tmrs.startTime;
|
397
|
+
}
|
398
|
+
}
|
399
|
+
|
400
|
+
// button
|
401
|
+
if (!crsl.isPaused)
|
402
|
+
{
|
403
|
+
if (opts.auto.button)
|
404
|
+
{
|
405
|
+
opts.auto.button.addClass(cf_c('paused', conf));
|
406
|
+
}
|
407
|
+
}
|
408
|
+
|
409
|
+
// set paused
|
410
|
+
crsl.isPaused = true;
|
411
|
+
|
412
|
+
// pause pause callback
|
413
|
+
if (opts.auto.onTimeoutPause)
|
414
|
+
{
|
415
|
+
var dur1 = opts.auto.timeoutDuration - tmrs.timePassed,
|
416
|
+
perc = 100 - Math.ceil( dur1 * 100 / opts.auto.timeoutDuration );
|
417
|
+
|
418
|
+
opts.auto.onTimeoutPause.call($tt0, perc, dur1);
|
419
|
+
}
|
420
|
+
return true;
|
421
|
+
});
|
422
|
+
|
423
|
+
|
424
|
+
// play event
|
425
|
+
$cfs.bind(cf_e('play', conf), function(e, dir, del, res) {
|
426
|
+
e.stopPropagation();
|
427
|
+
tmrs = sc_clearTimers(tmrs);
|
428
|
+
|
429
|
+
// sort params
|
430
|
+
var v = [dir, del, res],
|
431
|
+
t = ['string', 'number', 'boolean'],
|
432
|
+
a = cf_sortParams(v, t);
|
433
|
+
|
434
|
+
dir = a[0];
|
435
|
+
del = a[1];
|
436
|
+
res = a[2];
|
437
|
+
|
438
|
+
if (dir != 'prev' && dir != 'next')
|
439
|
+
{
|
440
|
+
dir = crsl.direction;
|
441
|
+
}
|
442
|
+
if (!is_number(del))
|
443
|
+
{
|
444
|
+
del = 0;
|
445
|
+
}
|
446
|
+
if (!is_boolean(res))
|
447
|
+
{
|
448
|
+
res = false;
|
449
|
+
}
|
450
|
+
|
451
|
+
// stopped?
|
452
|
+
if (res)
|
453
|
+
{
|
454
|
+
crsl.isStopped = false;
|
455
|
+
opts.auto.play = true;
|
456
|
+
}
|
457
|
+
if (!opts.auto.play)
|
458
|
+
{
|
459
|
+
e.stopImmediatePropagation();
|
460
|
+
return debug(conf, 'Carousel stopped: Not scrolling.');
|
461
|
+
}
|
462
|
+
|
463
|
+
// button
|
464
|
+
if (crsl.isPaused)
|
465
|
+
{
|
466
|
+
if (opts.auto.button)
|
467
|
+
{
|
468
|
+
opts.auto.button.removeClass(cf_c('stopped', conf));
|
469
|
+
opts.auto.button.removeClass(cf_c('paused', conf));
|
470
|
+
}
|
471
|
+
}
|
472
|
+
|
473
|
+
// set playing
|
474
|
+
crsl.isPaused = false;
|
475
|
+
tmrs.startTime = getTime();
|
476
|
+
|
477
|
+
// timeout the scrolling
|
478
|
+
var dur1 = opts.auto.timeoutDuration + del;
|
479
|
+
dur2 = dur1 - tmrs.timePassed;
|
480
|
+
perc = 100 - Math.ceil(dur2 * 100 / dur1);
|
481
|
+
|
482
|
+
if (opts.auto.progress)
|
483
|
+
{
|
484
|
+
tmrs.progress = setInterval(function() {
|
485
|
+
var pasd = getTime() - tmrs.startTime + tmrs.timePassed,
|
486
|
+
perc = Math.ceil(pasd * 100 / dur1);
|
487
|
+
opts.auto.progress.updater.call(opts.auto.progress.bar[0], perc);
|
488
|
+
}, opts.auto.progress.interval);
|
489
|
+
}
|
490
|
+
|
491
|
+
tmrs.auto = setTimeout(function() {
|
492
|
+
if (opts.auto.progress)
|
493
|
+
{
|
494
|
+
opts.auto.progress.updater.call(opts.auto.progress.bar[0], 100);
|
495
|
+
}
|
496
|
+
if (opts.auto.onTimeoutEnd)
|
497
|
+
{
|
498
|
+
opts.auto.onTimeoutEnd.call($tt0, perc, dur2);
|
499
|
+
}
|
500
|
+
if (crsl.isScrolling)
|
501
|
+
{
|
502
|
+
$cfs.trigger(cf_e('play', conf), dir);
|
503
|
+
}
|
504
|
+
else
|
505
|
+
{
|
506
|
+
$cfs.trigger(cf_e(dir, conf), opts.auto);
|
507
|
+
}
|
508
|
+
}, dur2);
|
509
|
+
|
510
|
+
// pause start callback
|
511
|
+
if (opts.auto.onTimeoutStart)
|
512
|
+
{
|
513
|
+
opts.auto.onTimeoutStart.call($tt0, perc, dur2);
|
514
|
+
}
|
515
|
+
|
516
|
+
return true;
|
517
|
+
});
|
518
|
+
|
519
|
+
|
520
|
+
// resume event
|
521
|
+
$cfs.bind(cf_e('resume', conf), function(e) {
|
522
|
+
e.stopPropagation();
|
523
|
+
if (scrl.isStopped)
|
524
|
+
{
|
525
|
+
scrl.isStopped = false;
|
526
|
+
crsl.isPaused = false;
|
527
|
+
crsl.isScrolling = true;
|
528
|
+
scrl.startTime = getTime();
|
529
|
+
sc_startScroll(scrl, conf);
|
530
|
+
}
|
531
|
+
else
|
532
|
+
{
|
533
|
+
$cfs.trigger(cf_e('play', conf));
|
534
|
+
}
|
535
|
+
return true;
|
536
|
+
});
|
537
|
+
|
538
|
+
|
539
|
+
// prev + next events
|
540
|
+
$cfs.bind(cf_e('prev', conf)+' '+cf_e('next', conf), function(e, obj, num, clb, que) {
|
541
|
+
e.stopPropagation();
|
542
|
+
|
543
|
+
// stopped or hidden carousel, don't scroll, don't queue
|
544
|
+
if (crsl.isStopped || $cfs.is(':hidden'))
|
545
|
+
{
|
546
|
+
e.stopImmediatePropagation();
|
547
|
+
return debug(conf, 'Carousel stopped or hidden: Not scrolling.');
|
548
|
+
}
|
549
|
+
|
550
|
+
// not enough items
|
551
|
+
var minimum = (is_number(opts.items.minimum)) ? opts.items.minimum : opts.items.visible + 1;
|
552
|
+
if (minimum > itms.total)
|
553
|
+
{
|
554
|
+
e.stopImmediatePropagation();
|
555
|
+
return debug(conf, 'Not enough items ('+itms.total+' total, '+minimum+' needed): Not scrolling.');
|
556
|
+
}
|
557
|
+
|
558
|
+
// get config
|
559
|
+
var v = [obj, num, clb, que],
|
560
|
+
t = ['object', 'number/string', 'function', 'boolean'],
|
561
|
+
a = cf_sortParams(v, t);
|
562
|
+
|
563
|
+
obj = a[0];
|
564
|
+
num = a[1];
|
565
|
+
clb = a[2];
|
566
|
+
que = a[3];
|
567
|
+
|
568
|
+
var eType = e.type.slice(conf.events.prefix.length);
|
569
|
+
|
570
|
+
if (!is_object(obj))
|
571
|
+
{
|
572
|
+
obj = {};
|
573
|
+
}
|
574
|
+
if (is_function(clb))
|
575
|
+
{
|
576
|
+
obj.onAfter = clb;
|
577
|
+
}
|
578
|
+
if (is_boolean(que))
|
579
|
+
{
|
580
|
+
obj.queue = que;
|
581
|
+
}
|
582
|
+
obj = $.extend(true, {}, opts[eType], obj);
|
583
|
+
|
584
|
+
// test conditions callback
|
585
|
+
if (obj.conditions && !obj.conditions.call($tt0, eType))
|
586
|
+
{
|
587
|
+
e.stopImmediatePropagation();
|
588
|
+
return debug(conf, 'Callback "conditions" returned false.');
|
589
|
+
}
|
590
|
+
|
591
|
+
if (!is_number(num))
|
592
|
+
{
|
593
|
+
if (opts.items.filter != '*')
|
594
|
+
{
|
595
|
+
num = 'visible';
|
596
|
+
}
|
597
|
+
else
|
598
|
+
{
|
599
|
+
var arr = [num, obj.items, opts[eType].items];
|
600
|
+
for (var a = 0, l = arr.length; a < l; a++)
|
601
|
+
{
|
602
|
+
if (is_number(arr[a]) || arr[a] == 'page' || arr[a] == 'visible') {
|
603
|
+
num = arr[a];
|
604
|
+
break;
|
605
|
+
}
|
606
|
+
}
|
607
|
+
}
|
608
|
+
switch(num) {
|
609
|
+
case 'page':
|
610
|
+
e.stopImmediatePropagation();
|
611
|
+
return $cfs.triggerHandler(cf_e(eType+'Page', conf), [obj, clb]);
|
612
|
+
break;
|
613
|
+
|
614
|
+
case 'visible':
|
615
|
+
if (!opts.items.visibleConf.variable && opts.items.filter == '*')
|
616
|
+
{
|
617
|
+
num = opts.items.visible;
|
618
|
+
}
|
619
|
+
break;
|
620
|
+
}
|
621
|
+
}
|
622
|
+
|
623
|
+
// resume animation, add current to queue
|
624
|
+
if (scrl.isStopped)
|
625
|
+
{
|
626
|
+
$cfs.trigger(cf_e('resume', conf));
|
627
|
+
$cfs.trigger(cf_e('queue', conf), [eType, [obj, num, clb]]);
|
628
|
+
e.stopImmediatePropagation();
|
629
|
+
return debug(conf, 'Carousel resumed scrolling.');
|
630
|
+
}
|
631
|
+
|
632
|
+
// queue if scrolling
|
633
|
+
if (obj.duration > 0)
|
634
|
+
{
|
635
|
+
if (crsl.isScrolling)
|
636
|
+
{
|
637
|
+
if (obj.queue)
|
638
|
+
{
|
639
|
+
if (obj.queue == 'last')
|
640
|
+
{
|
641
|
+
queu = [];
|
642
|
+
}
|
643
|
+
if (obj.queue != 'first' || queu.length == 0)
|
644
|
+
{
|
645
|
+
$cfs.trigger(cf_e('queue', conf), [eType, [obj, num, clb]]);
|
646
|
+
}
|
647
|
+
}
|
648
|
+
e.stopImmediatePropagation();
|
649
|
+
return debug(conf, 'Carousel currently scrolling.');
|
650
|
+
}
|
651
|
+
}
|
652
|
+
|
653
|
+
tmrs.timePassed = 0;
|
654
|
+
$cfs.trigger(cf_e('slide_'+eType, conf), [obj, num]);
|
655
|
+
|
656
|
+
// synchronise
|
657
|
+
if (opts.synchronise)
|
658
|
+
{
|
659
|
+
var s = opts.synchronise,
|
660
|
+
c = [obj, num];
|
661
|
+
|
662
|
+
for (var j = 0, l = s.length; j < l; j++) {
|
663
|
+
var d = eType;
|
664
|
+
if (!s[j][2])
|
665
|
+
{
|
666
|
+
d = (d == 'prev') ? 'next' : 'prev';
|
667
|
+
}
|
668
|
+
if (!s[j][1])
|
669
|
+
{
|
670
|
+
c[0] = s[j][0].triggerHandler('_cfs_triggerEvent', ['configuration', d]);
|
671
|
+
}
|
672
|
+
c[1] = num + s[j][3];
|
673
|
+
s[j][0].trigger('_cfs_triggerEvent', ['slide_'+d, c]);
|
674
|
+
}
|
675
|
+
}
|
676
|
+
return true;
|
677
|
+
});
|
678
|
+
|
679
|
+
|
680
|
+
// prev event
|
681
|
+
$cfs.bind(cf_e('slide_prev', conf), function(e, sO, nI) {
|
682
|
+
e.stopPropagation();
|
683
|
+
var a_itm = $cfs.children();
|
684
|
+
|
685
|
+
// non-circular at start, scroll to end
|
686
|
+
if (!opts.circular)
|
687
|
+
{
|
688
|
+
if (itms.first == 0)
|
689
|
+
{
|
690
|
+
if (opts.infinite)
|
691
|
+
{
|
692
|
+
$cfs.trigger(cf_e('next', conf), itms.total-1);
|
693
|
+
}
|
694
|
+
return e.stopImmediatePropagation();
|
695
|
+
}
|
696
|
+
}
|
697
|
+
|
698
|
+
sz_resetMargin(a_itm, opts);
|
699
|
+
|
700
|
+
// find number of items to scroll
|
701
|
+
if (!is_number(nI))
|
702
|
+
{
|
703
|
+
if (opts.items.visibleConf.variable)
|
704
|
+
{
|
705
|
+
nI = gn_getVisibleItemsPrev(a_itm, opts, itms.total-1);
|
706
|
+
}
|
707
|
+
else if (opts.items.filter != '*')
|
708
|
+
{
|
709
|
+
var xI = (is_number(sO.items)) ? sO.items : gn_getVisibleOrg($cfs, opts);
|
710
|
+
nI = gn_getScrollItemsPrevFilter(a_itm, opts, itms.total-1, xI);
|
711
|
+
}
|
712
|
+
else
|
713
|
+
{
|
714
|
+
nI = opts.items.visible;
|
715
|
+
}
|
716
|
+
nI = cf_getAdjust(nI, opts, sO.items, $tt0);
|
717
|
+
}
|
718
|
+
|
719
|
+
// prevent non-circular from scrolling to far
|
720
|
+
if (!opts.circular)
|
721
|
+
{
|
722
|
+
if (itms.total - nI < itms.first)
|
723
|
+
{
|
724
|
+
nI = itms.total - itms.first;
|
725
|
+
}
|
726
|
+
}
|
727
|
+
|
728
|
+
// set new number of visible items
|
729
|
+
opts.items.visibleConf.old = opts.items.visible;
|
730
|
+
if (opts.items.visibleConf.variable)
|
731
|
+
{
|
732
|
+
var vI = cf_getItemsAdjust(gn_getVisibleItemsNext(a_itm, opts, itms.total-nI), opts, opts.items.visibleConf.adjust, $tt0);
|
733
|
+
if (opts.items.visible+nI <= vI && nI < itms.total)
|
734
|
+
{
|
735
|
+
nI++;
|
736
|
+
vI = cf_getItemsAdjust(gn_getVisibleItemsNext(a_itm, opts, itms.total-nI), opts, opts.items.visibleConf.adjust, $tt0);
|
737
|
+
}
|
738
|
+
opts.items.visible = vI;
|
739
|
+
}
|
740
|
+
else if (opts.items.filter != '*')
|
741
|
+
{
|
742
|
+
var vI = gn_getVisibleItemsNextFilter(a_itm, opts, itms.total-nI);
|
743
|
+
opts.items.visible = cf_getItemsAdjust(vI, opts, opts.items.visibleConf.adjust, $tt0);
|
744
|
+
}
|
745
|
+
|
746
|
+
sz_resetMargin(a_itm, opts, true);
|
747
|
+
|
748
|
+
// scroll 0, don't scroll
|
749
|
+
if (nI == 0)
|
750
|
+
{
|
751
|
+
e.stopImmediatePropagation();
|
752
|
+
return debug(conf, '0 items to scroll: Not scrolling.');
|
753
|
+
}
|
754
|
+
debug(conf, 'Scrolling '+nI+' items backward.');
|
755
|
+
|
756
|
+
|
757
|
+
// save new config
|
758
|
+
itms.first += nI;
|
759
|
+
while (itms.first >= itms.total)
|
760
|
+
{
|
761
|
+
itms.first -= itms.total;
|
762
|
+
}
|
763
|
+
|
764
|
+
// non-circular callback
|
765
|
+
if (!opts.circular)
|
766
|
+
{
|
767
|
+
if (itms.first == 0 && sO.onEnd)
|
768
|
+
{
|
769
|
+
sO.onEnd.call($tt0, 'prev');
|
770
|
+
}
|
771
|
+
if (!opts.infinite)
|
772
|
+
{
|
773
|
+
nv_enableNavi(opts, itms.first, conf);
|
774
|
+
}
|
775
|
+
}
|
776
|
+
|
777
|
+
// rearrange items
|
778
|
+
$cfs.children().slice(itms.total-nI, itms.total).prependTo($cfs);
|
779
|
+
if (itms.total < opts.items.visible + nI)
|
780
|
+
{
|
781
|
+
$cfs.children().slice(0, (opts.items.visible+nI)-itms.total).clone(true).appendTo($cfs);
|
782
|
+
}
|
783
|
+
|
784
|
+
// the needed items
|
785
|
+
var a_itm = $cfs.children(),
|
786
|
+
i_old = gi_getOldItemsPrev(a_itm, opts, nI),
|
787
|
+
i_new = gi_getNewItemsPrev(a_itm, opts),
|
788
|
+
i_cur_l = a_itm.eq(nI-1),
|
789
|
+
i_old_l = i_old.last(),
|
790
|
+
i_new_l = i_new.last();
|
791
|
+
|
792
|
+
sz_resetMargin(a_itm, opts);
|
793
|
+
|
794
|
+
var pL = 0,
|
795
|
+
pR = 0;
|
796
|
+
|
797
|
+
if (opts.align)
|
798
|
+
{
|
799
|
+
var p = cf_getAlignPadding(i_new, opts);
|
800
|
+
pL = p[0];
|
801
|
+
pR = p[1];
|
802
|
+
}
|
803
|
+
var oL = (pL < 0) ? opts.padding[opts.d[3]] : 0;
|
804
|
+
|
805
|
+
// hide items for fx directscroll
|
806
|
+
var hiddenitems = false,
|
807
|
+
i_skp = $();
|
808
|
+
if (opts.items.visible < nI)
|
809
|
+
{
|
810
|
+
i_skp = a_itm.slice(opts.items.visibleConf.old, nI);
|
811
|
+
if (sO.fx == 'directscroll')
|
812
|
+
{
|
813
|
+
var orgW = opts.items[opts.d['width']];
|
814
|
+
hiddenitems = i_skp;
|
815
|
+
i_cur_l = i_new_l;
|
816
|
+
sc_hideHiddenItems(hiddenitems);
|
817
|
+
opts.items[opts.d['width']] = 'variable';
|
818
|
+
}
|
819
|
+
}
|
820
|
+
|
821
|
+
// save new sizes
|
822
|
+
var $cf2 = false,
|
823
|
+
i_siz = ms_getTotalSize(a_itm.slice(0, nI), opts, 'width'),
|
824
|
+
w_siz = cf_mapWrapperSizes(ms_getSizes(i_new, opts, true), opts, !opts.usePadding),
|
825
|
+
i_siz_vis = 0,
|
826
|
+
a_cfs = {},
|
827
|
+
a_wsz = {},
|
828
|
+
a_cur = {},
|
829
|
+
a_old = {},
|
830
|
+
a_new = {},
|
831
|
+
a_lef = {},
|
832
|
+
a_lef_vis = {},
|
833
|
+
a_dur = sc_getDuration(sO, opts, nI, i_siz);
|
834
|
+
|
835
|
+
switch(sO.fx)
|
836
|
+
{
|
837
|
+
case 'cover':
|
838
|
+
case 'cover-fade':
|
839
|
+
i_siz_vis = ms_getTotalSize(a_itm.slice(0, opts.items.visible), opts, 'width');
|
840
|
+
break;
|
841
|
+
}
|
842
|
+
|
843
|
+
if (hiddenitems)
|
844
|
+
{
|
845
|
+
opts.items[opts.d['width']] = orgW;
|
846
|
+
}
|
847
|
+
|
848
|
+
sz_resetMargin(a_itm, opts, true);
|
849
|
+
if (pR >= 0)
|
850
|
+
{
|
851
|
+
sz_resetMargin(i_old_l, opts, opts.padding[opts.d[1]]);
|
852
|
+
}
|
853
|
+
if (pL >= 0)
|
854
|
+
{
|
855
|
+
sz_resetMargin(i_cur_l, opts, opts.padding[opts.d[3]]);
|
856
|
+
}
|
857
|
+
|
858
|
+
if (opts.align)
|
859
|
+
{
|
860
|
+
opts.padding[opts.d[1]] = pR;
|
861
|
+
opts.padding[opts.d[3]] = pL;
|
862
|
+
}
|
863
|
+
|
864
|
+
a_lef[opts.d['left']] = -(i_siz - oL);
|
865
|
+
a_lef_vis[opts.d['left']] = -(i_siz_vis - oL);
|
866
|
+
a_wsz[opts.d['left']] = w_siz[opts.d['width']];
|
867
|
+
|
868
|
+
// scrolling functions
|
869
|
+
var _s_wrapper = function() {},
|
870
|
+
_a_wrapper = function() {},
|
871
|
+
_s_paddingold = function() {},
|
872
|
+
_a_paddingold = function() {},
|
873
|
+
_s_paddingnew = function() {},
|
874
|
+
_a_paddingnew = function() {},
|
875
|
+
_s_paddingcur = function() {},
|
876
|
+
_a_paddingcur = function() {},
|
877
|
+
_onafter = function() {},
|
878
|
+
_moveitems = function() {},
|
879
|
+
_position = function() {};
|
880
|
+
|
881
|
+
// clone carousel
|
882
|
+
switch(sO.fx)
|
883
|
+
{
|
884
|
+
case 'crossfade':
|
885
|
+
case 'cover':
|
886
|
+
case 'cover-fade':
|
887
|
+
case 'uncover':
|
888
|
+
case 'uncover-fade':
|
889
|
+
$cf2 = $cfs.clone(true).appendTo($wrp);
|
890
|
+
break;
|
891
|
+
}
|
892
|
+
switch(sO.fx)
|
893
|
+
{
|
894
|
+
case 'crossfade':
|
895
|
+
case 'uncover':
|
896
|
+
case 'uncover-fade':
|
897
|
+
$cf2.children().slice(0, nI).remove();
|
898
|
+
$cf2.children().slice(opts.items.visibleConf.old).remove();
|
899
|
+
break;
|
900
|
+
|
901
|
+
case 'cover':
|
902
|
+
case 'cover-fade':
|
903
|
+
$cf2.children().slice(opts.items.visible).remove();
|
904
|
+
$cf2.css(a_lef_vis);
|
905
|
+
break;
|
906
|
+
}
|
907
|
+
|
908
|
+
$cfs.css(a_lef);
|
909
|
+
|
910
|
+
// reset all scrolls
|
911
|
+
scrl = sc_setScroll(a_dur, sO.easing, conf);
|
912
|
+
|
913
|
+
// animate / set carousel
|
914
|
+
a_cfs[opts.d['left']] = (opts.usePadding) ? opts.padding[opts.d[3]] : 0;
|
915
|
+
|
916
|
+
// animate / set wrapper
|
917
|
+
if (opts[opts.d['width']] == 'variable' || opts[opts.d['height']] == 'variable')
|
918
|
+
{
|
919
|
+
_s_wrapper = function() {
|
920
|
+
$wrp.css(w_siz);
|
921
|
+
};
|
922
|
+
_a_wrapper = function() {
|
923
|
+
scrl.anims.push([$wrp, w_siz]);
|
924
|
+
};
|
925
|
+
}
|
926
|
+
|
927
|
+
// animate / set items
|
928
|
+
if (opts.usePadding)
|
929
|
+
{
|
930
|
+
if (i_new_l.not(i_cur_l).length)
|
931
|
+
{
|
932
|
+
a_cur[opts.d['marginRight']] = i_cur_l.data('_cfs_origCssMargin');
|
933
|
+
|
934
|
+
if (pL < 0)
|
935
|
+
{
|
936
|
+
i_cur_l.css(a_cur);
|
937
|
+
}
|
938
|
+
else
|
939
|
+
{
|
940
|
+
_s_paddingcur = function() {
|
941
|
+
i_cur_l.css(a_cur);
|
942
|
+
};
|
943
|
+
_a_paddingcur = function() {
|
944
|
+
scrl.anims.push([i_cur_l, a_cur]);
|
945
|
+
};
|
946
|
+
}
|
947
|
+
}
|
948
|
+
switch(sO.fx)
|
949
|
+
{
|
950
|
+
case 'cover':
|
951
|
+
case 'cover-fade':
|
952
|
+
$cf2.children().eq(nI-1).css(a_cur);
|
953
|
+
break;
|
954
|
+
}
|
955
|
+
|
956
|
+
if (i_new_l.not(i_old_l).length)
|
957
|
+
{
|
958
|
+
a_old[opts.d['marginRight']] = i_old_l.data('_cfs_origCssMargin');
|
959
|
+
_s_paddingold = function() {
|
960
|
+
i_old_l.css(a_old);
|
961
|
+
};
|
962
|
+
_a_paddingold = function() {
|
963
|
+
scrl.anims.push([i_old_l, a_old]);
|
964
|
+
};
|
965
|
+
}
|
966
|
+
|
967
|
+
if (pR >= 0)
|
968
|
+
{
|
969
|
+
a_new[opts.d['marginRight']] = i_new_l.data('_cfs_origCssMargin') + opts.padding[opts.d[1]];
|
970
|
+
_s_paddingnew = function() {
|
971
|
+
i_new_l.css(a_new);
|
972
|
+
};
|
973
|
+
_a_paddingnew = function() {
|
974
|
+
scrl.anims.push([i_new_l, a_new]);
|
975
|
+
};
|
976
|
+
}
|
977
|
+
}
|
978
|
+
|
979
|
+
// set position
|
980
|
+
_position = function() {
|
981
|
+
$cfs.css(a_cfs);
|
982
|
+
};
|
983
|
+
|
984
|
+
|
985
|
+
var overFill = opts.items.visible+nI-itms.total;
|
986
|
+
|
987
|
+
// rearrange items
|
988
|
+
_moveitems = function() {
|
989
|
+
if (overFill > 0)
|
990
|
+
{
|
991
|
+
$cfs.children().slice(itms.total).remove();
|
992
|
+
i_old = $( $cfs.children().slice(itms.total-(opts.items.visible-overFill)).get().concat( $cfs.children().slice(0, overFill).get() ) );
|
993
|
+
}
|
994
|
+
sc_showHiddenItems(hiddenitems);
|
995
|
+
|
996
|
+
if (opts.usePadding)
|
997
|
+
{
|
998
|
+
var l_itm = $cfs.children().eq(opts.items.visible+nI-1);
|
999
|
+
l_itm.css(opts.d['marginRight'], l_itm.data('_cfs_origCssMargin'));
|
1000
|
+
}
|
1001
|
+
};
|
1002
|
+
|
1003
|
+
|
1004
|
+
var cb_arguments = sc_mapCallbackArguments(i_old, i_skp, i_new, nI, 'prev', a_dur, w_siz);
|
1005
|
+
|
1006
|
+
// fire onAfter callbacks
|
1007
|
+
_onafter = function() {
|
1008
|
+
sc_afterScroll($cfs, $cf2, sO);
|
1009
|
+
crsl.isScrolling = false;
|
1010
|
+
clbk.onAfter = sc_fireCallbacks($tt0, sO, 'onAfter', cb_arguments, clbk);
|
1011
|
+
queu = sc_fireQueue($cfs, queu, conf);
|
1012
|
+
|
1013
|
+
if (!crsl.isPaused)
|
1014
|
+
{
|
1015
|
+
$cfs.trigger(cf_e('play', conf));
|
1016
|
+
}
|
1017
|
+
};
|
1018
|
+
|
1019
|
+
// fire onBefore callback
|
1020
|
+
crsl.isScrolling = true;
|
1021
|
+
tmrs = sc_clearTimers(tmrs);
|
1022
|
+
clbk.onBefore = sc_fireCallbacks($tt0, sO, 'onBefore', cb_arguments, clbk);
|
1023
|
+
|
1024
|
+
switch(sO.fx)
|
1025
|
+
{
|
1026
|
+
case 'none':
|
1027
|
+
$cfs.css(a_cfs);
|
1028
|
+
_s_wrapper();
|
1029
|
+
_s_paddingold();
|
1030
|
+
_s_paddingnew();
|
1031
|
+
_s_paddingcur();
|
1032
|
+
_position();
|
1033
|
+
_moveitems();
|
1034
|
+
_onafter();
|
1035
|
+
break;
|
1036
|
+
|
1037
|
+
case 'fade':
|
1038
|
+
scrl.anims.push([$cfs, { 'opacity': 0 }, function() {
|
1039
|
+
_s_wrapper();
|
1040
|
+
_s_paddingold();
|
1041
|
+
_s_paddingnew();
|
1042
|
+
_s_paddingcur();
|
1043
|
+
_position();
|
1044
|
+
_moveitems();
|
1045
|
+
scrl = sc_setScroll(a_dur, sO.easing, conf);
|
1046
|
+
scrl.anims.push([$cfs, { 'opacity': 1 }, _onafter]);
|
1047
|
+
sc_startScroll(scrl, conf);
|
1048
|
+
}]);
|
1049
|
+
break;
|
1050
|
+
|
1051
|
+
case 'crossfade':
|
1052
|
+
$cfs.css({ 'opacity': 0 });
|
1053
|
+
scrl.anims.push([$cf2, { 'opacity': 0 }]);
|
1054
|
+
scrl.anims.push([$cfs, { 'opacity': 1 }, _onafter]);
|
1055
|
+
_a_wrapper();
|
1056
|
+
_s_paddingold();
|
1057
|
+
_s_paddingnew();
|
1058
|
+
_s_paddingcur();
|
1059
|
+
_position();
|
1060
|
+
_moveitems();
|
1061
|
+
break;
|
1062
|
+
|
1063
|
+
case 'cover':
|
1064
|
+
scrl.anims.push([$cf2, a_cfs, function() {
|
1065
|
+
_s_paddingold();
|
1066
|
+
_s_paddingnew();
|
1067
|
+
_s_paddingcur();
|
1068
|
+
_position();
|
1069
|
+
_moveitems();
|
1070
|
+
_onafter();
|
1071
|
+
}]);
|
1072
|
+
_a_wrapper();
|
1073
|
+
break;
|
1074
|
+
|
1075
|
+
case 'cover-fade':
|
1076
|
+
scrl.anims.push([$cfs, { 'opacity': 0 }]);
|
1077
|
+
scrl.anims.push([$cf2, a_cfs, function() {
|
1078
|
+
_s_paddingold();
|
1079
|
+
_s_paddingnew();
|
1080
|
+
_s_paddingcur();
|
1081
|
+
_position();
|
1082
|
+
_moveitems();
|
1083
|
+
_onafter();
|
1084
|
+
}]);
|
1085
|
+
_a_wrapper();
|
1086
|
+
break;
|
1087
|
+
|
1088
|
+
case 'uncover':
|
1089
|
+
scrl.anims.push([$cf2, a_wsz, _onafter]);
|
1090
|
+
_a_wrapper();
|
1091
|
+
_s_paddingold();
|
1092
|
+
_s_paddingnew();
|
1093
|
+
_s_paddingcur();
|
1094
|
+
_position();
|
1095
|
+
_moveitems();
|
1096
|
+
break;
|
1097
|
+
|
1098
|
+
case 'uncover-fade':
|
1099
|
+
$cfs.css({ 'opacity': 0 });
|
1100
|
+
scrl.anims.push([$cfs, { 'opacity': 1 }]);
|
1101
|
+
scrl.anims.push([$cf2, a_wsz, _onafter]);
|
1102
|
+
_a_wrapper();
|
1103
|
+
_s_paddingold();
|
1104
|
+
_s_paddingnew();
|
1105
|
+
_s_paddingcur();
|
1106
|
+
_position();
|
1107
|
+
_moveitems();
|
1108
|
+
break;
|
1109
|
+
|
1110
|
+
default:
|
1111
|
+
scrl.anims.push([$cfs, a_cfs, function() {
|
1112
|
+
_moveitems();
|
1113
|
+
_onafter();
|
1114
|
+
}]);
|
1115
|
+
_a_wrapper();
|
1116
|
+
_a_paddingold();
|
1117
|
+
_a_paddingnew();
|
1118
|
+
_a_paddingcur();
|
1119
|
+
break;
|
1120
|
+
}
|
1121
|
+
|
1122
|
+
sc_startScroll(scrl, conf);
|
1123
|
+
cf_setCookie(opts.cookie, $cfs, conf);
|
1124
|
+
|
1125
|
+
$cfs.trigger(cf_e('updatePageStatus', conf), [false, w_siz]);
|
1126
|
+
|
1127
|
+
return true;
|
1128
|
+
});
|
1129
|
+
|
1130
|
+
|
1131
|
+
// next event
|
1132
|
+
$cfs.bind(cf_e('slide_next', conf), function(e, sO, nI) {
|
1133
|
+
e.stopPropagation();
|
1134
|
+
var a_itm = $cfs.children();
|
1135
|
+
|
1136
|
+
// non-circular at end, scroll to start
|
1137
|
+
if (!opts.circular)
|
1138
|
+
{
|
1139
|
+
if (itms.first == opts.items.visible)
|
1140
|
+
{
|
1141
|
+
if (opts.infinite)
|
1142
|
+
{
|
1143
|
+
$cfs.trigger(cf_e('prev', conf), itms.total-1);
|
1144
|
+
}
|
1145
|
+
return e.stopImmediatePropagation();
|
1146
|
+
}
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
sz_resetMargin(a_itm, opts);
|
1150
|
+
|
1151
|
+
// find number of items to scroll
|
1152
|
+
if (!is_number(nI))
|
1153
|
+
{
|
1154
|
+
if (opts.items.filter != '*')
|
1155
|
+
{
|
1156
|
+
var xI = (is_number(sO.items)) ? sO.items : gn_getVisibleOrg($cfs, opts);
|
1157
|
+
nI = gn_getScrollItemsNextFilter(a_itm, opts, 0, xI);
|
1158
|
+
}
|
1159
|
+
else
|
1160
|
+
{
|
1161
|
+
nI = opts.items.visible;
|
1162
|
+
}
|
1163
|
+
nI = cf_getAdjust(nI, opts, sO.items, $tt0);
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
var lastItemNr = (itms.first == 0) ? itms.total : itms.first;
|
1167
|
+
|
1168
|
+
// prevent non-circular from scrolling to far
|
1169
|
+
if (!opts.circular)
|
1170
|
+
{
|
1171
|
+
if (opts.items.visibleConf.variable)
|
1172
|
+
{
|
1173
|
+
var vI = gn_getVisibleItemsNext(a_itm, opts, nI),
|
1174
|
+
xI = gn_getVisibleItemsPrev(a_itm, opts, lastItemNr-1);
|
1175
|
+
}
|
1176
|
+
else
|
1177
|
+
{
|
1178
|
+
var vI = opts.items.visible,
|
1179
|
+
xI = opts.items.visible;
|
1180
|
+
}
|
1181
|
+
|
1182
|
+
if (nI + vI > lastItemNr)
|
1183
|
+
{
|
1184
|
+
nI = lastItemNr - xI;
|
1185
|
+
}
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
// set new number of visible items
|
1189
|
+
opts.items.visibleConf.old = opts.items.visible;
|
1190
|
+
if (opts.items.visibleConf.variable)
|
1191
|
+
{
|
1192
|
+
var vI = cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(a_itm, opts, nI, lastItemNr), opts, opts.items.visibleConf.adjust, $tt0);
|
1193
|
+
while (opts.items.visible-nI >= vI && nI < itms.total)
|
1194
|
+
{
|
1195
|
+
nI++;
|
1196
|
+
vI = cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(a_itm, opts, nI, lastItemNr), opts, opts.items.visibleConf.adjust, $tt0);
|
1197
|
+
}
|
1198
|
+
opts.items.visible = vI;
|
1199
|
+
}
|
1200
|
+
else if (opts.items.filter != '*')
|
1201
|
+
{
|
1202
|
+
var vI = gn_getVisibleItemsNextFilter(a_itm, opts, nI);
|
1203
|
+
opts.items.visible = cf_getItemsAdjust(vI, opts, opts.items.visibleConf.adjust, $tt0);
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
sz_resetMargin(a_itm, opts, true);
|
1207
|
+
|
1208
|
+
// scroll 0, don't scroll
|
1209
|
+
if (nI == 0)
|
1210
|
+
{
|
1211
|
+
e.stopImmediatePropagation();
|
1212
|
+
return debug(conf, '0 items to scroll: Not scrolling.');
|
1213
|
+
}
|
1214
|
+
debug(conf, 'Scrolling '+nI+' items forward.');
|
1215
|
+
|
1216
|
+
|
1217
|
+
// save new config
|
1218
|
+
itms.first -= nI;
|
1219
|
+
while (itms.first < 0)
|
1220
|
+
{
|
1221
|
+
itms.first += itms.total;
|
1222
|
+
}
|
1223
|
+
|
1224
|
+
// non-circular callback
|
1225
|
+
if (!opts.circular)
|
1226
|
+
{
|
1227
|
+
if (itms.first == opts.items.visible && sO.onEnd)
|
1228
|
+
{
|
1229
|
+
sO.onEnd.call($tt0, 'next');
|
1230
|
+
}
|
1231
|
+
if (!opts.infinite)
|
1232
|
+
{
|
1233
|
+
nv_enableNavi(opts, itms.first, conf);
|
1234
|
+
}
|
1235
|
+
}
|
1236
|
+
|
1237
|
+
// rearrange items
|
1238
|
+
if (itms.total < opts.items.visible+nI)
|
1239
|
+
{
|
1240
|
+
$cfs.children().slice(0, (opts.items.visible+nI)-itms.total).clone(true).appendTo($cfs);
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
// the needed items
|
1244
|
+
var a_itm = $cfs.children(),
|
1245
|
+
i_old = gi_getOldItemsNext(a_itm, opts),
|
1246
|
+
i_new = gi_getNewItemsNext(a_itm, opts, nI),
|
1247
|
+
i_cur_l = a_itm.eq(nI-1),
|
1248
|
+
i_old_l = i_old.last(),
|
1249
|
+
i_new_l = i_new.last();
|
1250
|
+
|
1251
|
+
sz_resetMargin(a_itm, opts);
|
1252
|
+
|
1253
|
+
var pL = 0,
|
1254
|
+
pR = 0;
|
1255
|
+
|
1256
|
+
if (opts.align)
|
1257
|
+
{
|
1258
|
+
var p = cf_getAlignPadding(i_new, opts);
|
1259
|
+
pL = p[0];
|
1260
|
+
pR = p[1];
|
1261
|
+
}
|
1262
|
+
|
1263
|
+
// hide items for fx directscroll
|
1264
|
+
var hiddenitems = false,
|
1265
|
+
i_skp = $();
|
1266
|
+
if (opts.items.visibleConf.old < nI)
|
1267
|
+
{
|
1268
|
+
i_skp = a_itm.slice(opts.items.visibleConf.old, nI);
|
1269
|
+
if (sO.fx == 'directscroll')
|
1270
|
+
{
|
1271
|
+
var orgW = opts.items[opts.d['width']];
|
1272
|
+
hiddenitems = i_skp;
|
1273
|
+
i_cur_l = i_old_l;
|
1274
|
+
sc_hideHiddenItems(hiddenitems);
|
1275
|
+
opts.items[opts.d['width']] = 'variable';
|
1276
|
+
}
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
// save new sizes
|
1280
|
+
var $cf2 = false,
|
1281
|
+
i_siz = ms_getTotalSize(a_itm.slice(0, nI), opts, 'width'),
|
1282
|
+
w_siz = cf_mapWrapperSizes(ms_getSizes(i_new, opts, true), opts, !opts.usePadding),
|
1283
|
+
i_siz_vis = 0,
|
1284
|
+
a_cfs = {},
|
1285
|
+
a_cfs_vis = {},
|
1286
|
+
a_cur = {},
|
1287
|
+
a_old = {},
|
1288
|
+
a_lef = {},
|
1289
|
+
a_dur = sc_getDuration(sO, opts, nI, i_siz);
|
1290
|
+
|
1291
|
+
switch(sO.fx)
|
1292
|
+
{
|
1293
|
+
case 'uncover':
|
1294
|
+
case 'uncover-fade':
|
1295
|
+
i_siz_vis = ms_getTotalSize(a_itm.slice(0, opts.items.visibleConf.old), opts, 'width');
|
1296
|
+
break;
|
1297
|
+
}
|
1298
|
+
|
1299
|
+
if (hiddenitems)
|
1300
|
+
{
|
1301
|
+
opts.items[opts.d['width']] = orgW;
|
1302
|
+
}
|
1303
|
+
|
1304
|
+
if (opts.align)
|
1305
|
+
{
|
1306
|
+
if (opts.padding[opts.d[1]] < 0)
|
1307
|
+
{
|
1308
|
+
opts.padding[opts.d[1]] = 0;
|
1309
|
+
}
|
1310
|
+
}
|
1311
|
+
sz_resetMargin(a_itm, opts, true);
|
1312
|
+
sz_resetMargin(i_old_l, opts, opts.padding[opts.d[1]]);
|
1313
|
+
|
1314
|
+
if (opts.align)
|
1315
|
+
{
|
1316
|
+
opts.padding[opts.d[1]] = pR;
|
1317
|
+
opts.padding[opts.d[3]] = pL;
|
1318
|
+
}
|
1319
|
+
|
1320
|
+
a_lef[opts.d['left']] = (opts.usePadding) ? opts.padding[opts.d[3]] : 0;
|
1321
|
+
|
1322
|
+
// scrolling functions
|
1323
|
+
var _s_wrapper = function() {},
|
1324
|
+
_a_wrapper = function() {},
|
1325
|
+
_s_paddingold = function() {},
|
1326
|
+
_a_paddingold = function() {},
|
1327
|
+
_s_paddingcur = function() {},
|
1328
|
+
_a_paddingcur = function() {},
|
1329
|
+
_onafter = function() {},
|
1330
|
+
_moveitems = function() {},
|
1331
|
+
_position = function() {};
|
1332
|
+
|
1333
|
+
// clone carousel
|
1334
|
+
switch(sO.fx)
|
1335
|
+
{
|
1336
|
+
case 'crossfade':
|
1337
|
+
case 'cover':
|
1338
|
+
case 'cover-fade':
|
1339
|
+
case 'uncover':
|
1340
|
+
case 'uncover-fade':
|
1341
|
+
$cf2 = $cfs.clone(true).appendTo($wrp);
|
1342
|
+
$cf2.children().slice(opts.items.visibleConf.old).remove();
|
1343
|
+
break;
|
1344
|
+
}
|
1345
|
+
switch(sO.fx)
|
1346
|
+
{
|
1347
|
+
case 'crossfade':
|
1348
|
+
case 'cover':
|
1349
|
+
case 'cover-fade':
|
1350
|
+
$cfs.css('zIndex', 1);
|
1351
|
+
$cf2.css('zIndex', 0);
|
1352
|
+
break;
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
// reset all scrolls
|
1356
|
+
scrl = sc_setScroll(a_dur, sO.easing, conf);
|
1357
|
+
|
1358
|
+
// animate / set carousel
|
1359
|
+
a_cfs[opts.d['left']] = -i_siz;
|
1360
|
+
a_cfs_vis[opts.d['left']] = -i_siz_vis;
|
1361
|
+
|
1362
|
+
if (pL < 0)
|
1363
|
+
{
|
1364
|
+
a_cfs[opts.d['left']] += pL;
|
1365
|
+
}
|
1366
|
+
|
1367
|
+
// animate / set wrapper
|
1368
|
+
if (opts[opts.d['width']] == 'variable' || opts[opts.d['height']] == 'variable')
|
1369
|
+
{
|
1370
|
+
_s_wrapper = function() {
|
1371
|
+
$wrp.css(w_siz);
|
1372
|
+
};
|
1373
|
+
_a_wrapper = function() {
|
1374
|
+
scrl.anims.push([$wrp, w_siz]);
|
1375
|
+
};
|
1376
|
+
}
|
1377
|
+
|
1378
|
+
// animate / set items
|
1379
|
+
if (opts.usePadding)
|
1380
|
+
{
|
1381
|
+
var i_new_l_m = i_new_l.data('_cfs_origCssMargin');
|
1382
|
+
|
1383
|
+
if (pR >= 0)
|
1384
|
+
{
|
1385
|
+
i_new_l_m += opts.padding[opts.d[1]];
|
1386
|
+
}
|
1387
|
+
i_new_l.css(opts.d['marginRight'], i_new_l_m);
|
1388
|
+
|
1389
|
+
if (i_cur_l.not(i_old_l).length)
|
1390
|
+
{
|
1391
|
+
a_old[opts.d['marginRight']] = i_old_l.data('_cfs_origCssMargin');
|
1392
|
+
}
|
1393
|
+
_s_paddingold = function() {
|
1394
|
+
i_old_l.css(a_old);
|
1395
|
+
};
|
1396
|
+
_a_paddingold = function() {
|
1397
|
+
scrl.anims.push([i_old_l, a_old]);
|
1398
|
+
};
|
1399
|
+
|
1400
|
+
var i_cur_l_m = i_cur_l.data('_cfs_origCssMargin');
|
1401
|
+
if (pL > 0)
|
1402
|
+
{
|
1403
|
+
i_cur_l_m += opts.padding[opts.d[3]];
|
1404
|
+
}
|
1405
|
+
|
1406
|
+
a_cur[opts.d['marginRight']] = i_cur_l_m;
|
1407
|
+
|
1408
|
+
_s_paddingcur = function() {
|
1409
|
+
i_cur_l.css(a_cur);
|
1410
|
+
};
|
1411
|
+
_a_paddingcur = function() {
|
1412
|
+
scrl.anims.push([i_cur_l, a_cur]);
|
1413
|
+
};
|
1414
|
+
}
|
1415
|
+
|
1416
|
+
// set position
|
1417
|
+
_position = function() {
|
1418
|
+
$cfs.css(a_lef);
|
1419
|
+
};
|
1420
|
+
|
1421
|
+
|
1422
|
+
var overFill = opts.items.visible+nI-itms.total;
|
1423
|
+
|
1424
|
+
// rearrange items
|
1425
|
+
_moveitems = function() {
|
1426
|
+
if (overFill > 0)
|
1427
|
+
{
|
1428
|
+
$cfs.children().slice(itms.total).remove();
|
1429
|
+
}
|
1430
|
+
var l_itm = $cfs.children().slice(0, nI).appendTo($cfs).last();
|
1431
|
+
if (overFill > 0)
|
1432
|
+
{
|
1433
|
+
i_new = gi_getCurrentItems(a_itm, opts);
|
1434
|
+
}
|
1435
|
+
sc_showHiddenItems(hiddenitems);
|
1436
|
+
|
1437
|
+
if (opts.usePadding)
|
1438
|
+
{
|
1439
|
+
if (itms.total < opts.items.visible+nI) {
|
1440
|
+
var i_cur_l = $cfs.children().eq(opts.items.visible-1);
|
1441
|
+
i_cur_l.css(opts.d['marginRight'], i_cur_l.data('_cfs_origCssMargin') + opts.padding[opts.d[1]]);
|
1442
|
+
}
|
1443
|
+
l_itm.css(opts.d['marginRight'], l_itm.data('_cfs_origCssMargin'));
|
1444
|
+
}
|
1445
|
+
};
|
1446
|
+
|
1447
|
+
|
1448
|
+
var cb_arguments = sc_mapCallbackArguments(i_old, i_skp, i_new, nI, 'next', a_dur, w_siz);
|
1449
|
+
|
1450
|
+
// fire onAfter callbacks
|
1451
|
+
_onafter = function() {
|
1452
|
+
$cfs.css('zIndex', $cfs.data('_cfs_origCssZindex'));
|
1453
|
+
sc_afterScroll($cfs, $cf2, sO);
|
1454
|
+
crsl.isScrolling = false;
|
1455
|
+
clbk.onAfter = sc_fireCallbacks($tt0, sO, 'onAfter', cb_arguments, clbk);
|
1456
|
+
queu = sc_fireQueue($cfs, queu, conf);
|
1457
|
+
|
1458
|
+
if (!crsl.isPaused)
|
1459
|
+
{
|
1460
|
+
$cfs.trigger(cf_e('play', conf));
|
1461
|
+
}
|
1462
|
+
};
|
1463
|
+
|
1464
|
+
// fire onBefore callbacks
|
1465
|
+
crsl.isScrolling = true;
|
1466
|
+
tmrs = sc_clearTimers(tmrs);
|
1467
|
+
clbk.onBefore = sc_fireCallbacks($tt0, sO, 'onBefore', cb_arguments, clbk);
|
1468
|
+
|
1469
|
+
switch(sO.fx)
|
1470
|
+
{
|
1471
|
+
case 'none':
|
1472
|
+
$cfs.css(a_cfs);
|
1473
|
+
_s_wrapper();
|
1474
|
+
_s_paddingold();
|
1475
|
+
_s_paddingcur();
|
1476
|
+
_position();
|
1477
|
+
_moveitems();
|
1478
|
+
_onafter();
|
1479
|
+
break;
|
1480
|
+
|
1481
|
+
case 'fade':
|
1482
|
+
scrl.anims.push([$cfs, { 'opacity': 0 }, function() {
|
1483
|
+
_s_wrapper();
|
1484
|
+
_s_paddingold();
|
1485
|
+
_s_paddingcur();
|
1486
|
+
_position();
|
1487
|
+
_moveitems();
|
1488
|
+
scrl = sc_setScroll(a_dur, sO.easing, conf);
|
1489
|
+
scrl.anims.push([$cfs, { 'opacity': 1 }, _onafter]);
|
1490
|
+
sc_startScroll(scrl, conf);
|
1491
|
+
}]);
|
1492
|
+
break;
|
1493
|
+
|
1494
|
+
case 'crossfade':
|
1495
|
+
$cfs.css({ 'opacity': 0 });
|
1496
|
+
scrl.anims.push([$cf2, { 'opacity': 0 }]);
|
1497
|
+
scrl.anims.push([$cfs, { 'opacity': 1 }, _onafter]);
|
1498
|
+
_a_wrapper();
|
1499
|
+
_s_paddingold();
|
1500
|
+
_s_paddingcur();
|
1501
|
+
_position();
|
1502
|
+
_moveitems();
|
1503
|
+
break;
|
1504
|
+
|
1505
|
+
case 'cover':
|
1506
|
+
$cfs.css(opts.d['left'], $wrp[opts.d['width']]());
|
1507
|
+
scrl.anims.push([$cfs, a_lef, _onafter]);
|
1508
|
+
_a_wrapper();
|
1509
|
+
_s_paddingold();
|
1510
|
+
_s_paddingcur();
|
1511
|
+
_moveitems();
|
1512
|
+
break;
|
1513
|
+
|
1514
|
+
case 'cover-fade':
|
1515
|
+
$cfs.css(opts.d['left'], $wrp[opts.d['width']]());
|
1516
|
+
scrl.anims.push([$cf2, { 'opacity': 0 }]);
|
1517
|
+
scrl.anims.push([$cfs, a_lef, _onafter]);
|
1518
|
+
_a_wrapper();
|
1519
|
+
_s_paddingold();
|
1520
|
+
_s_paddingcur();
|
1521
|
+
_moveitems();
|
1522
|
+
break;
|
1523
|
+
|
1524
|
+
case 'uncover':
|
1525
|
+
scrl.anims.push([$cf2, a_cfs_vis, _onafter]);
|
1526
|
+
_a_wrapper();
|
1527
|
+
_s_paddingold();
|
1528
|
+
_s_paddingcur();
|
1529
|
+
_position();
|
1530
|
+
_moveitems();
|
1531
|
+
break;
|
1532
|
+
|
1533
|
+
case 'uncover-fade':
|
1534
|
+
$cfs.css({ 'opacity': 0 });
|
1535
|
+
scrl.anims.push([$cfs, { 'opacity': 1 }]);
|
1536
|
+
scrl.anims.push([$cf2, a_cfs_vis, _onafter]);
|
1537
|
+
_a_wrapper();
|
1538
|
+
_s_paddingold();
|
1539
|
+
_s_paddingcur();
|
1540
|
+
_position();
|
1541
|
+
_moveitems();
|
1542
|
+
break;
|
1543
|
+
|
1544
|
+
default:
|
1545
|
+
scrl.anims.push([$cfs, a_cfs, function() {
|
1546
|
+
_position();
|
1547
|
+
_moveitems();
|
1548
|
+
_onafter();
|
1549
|
+
}]);
|
1550
|
+
_a_wrapper();
|
1551
|
+
_a_paddingold();
|
1552
|
+
_a_paddingcur();
|
1553
|
+
break;
|
1554
|
+
}
|
1555
|
+
|
1556
|
+
sc_startScroll(scrl, conf);
|
1557
|
+
cf_setCookie(opts.cookie, $cfs, conf);
|
1558
|
+
|
1559
|
+
$cfs.trigger(cf_e('updatePageStatus', conf), [false, w_siz]);
|
1560
|
+
|
1561
|
+
return true;
|
1562
|
+
});
|
1563
|
+
|
1564
|
+
|
1565
|
+
// slideTo event
|
1566
|
+
$cfs.bind(cf_e('slideTo', conf), function(e, num, dev, org, obj, dir, clb) {
|
1567
|
+
e.stopPropagation();
|
1568
|
+
|
1569
|
+
var v = [num, dev, org, obj, dir, clb],
|
1570
|
+
t = ['string/number/object', 'number', 'boolean', 'object', 'string', 'function'],
|
1571
|
+
a = cf_sortParams(v, t);
|
1572
|
+
|
1573
|
+
obj = a[3];
|
1574
|
+
dir = a[4];
|
1575
|
+
clb = a[5];
|
1576
|
+
|
1577
|
+
num = gn_getItemIndex(a[0], a[1], a[2], itms, $cfs);
|
1578
|
+
|
1579
|
+
if (num == 0)
|
1580
|
+
{
|
1581
|
+
return false;
|
1582
|
+
}
|
1583
|
+
if (!is_object(obj))
|
1584
|
+
{
|
1585
|
+
obj = false;
|
1586
|
+
}
|
1587
|
+
|
1588
|
+
if (dir != 'prev' && dir != 'next')
|
1589
|
+
{
|
1590
|
+
if (opts.circular)
|
1591
|
+
{
|
1592
|
+
dir = (num <= itms.total / 2) ? 'next' : 'prev';
|
1593
|
+
}
|
1594
|
+
else
|
1595
|
+
{
|
1596
|
+
dir = (itms.first == 0 || itms.first > num) ? 'next' : 'prev';
|
1597
|
+
}
|
1598
|
+
}
|
1599
|
+
|
1600
|
+
if (dir == 'prev')
|
1601
|
+
{
|
1602
|
+
num = itms.total-num;
|
1603
|
+
}
|
1604
|
+
$cfs.trigger(cf_e(dir, conf), [obj, num, clb]);
|
1605
|
+
|
1606
|
+
return true;
|
1607
|
+
});
|
1608
|
+
|
1609
|
+
|
1610
|
+
// prevPage event
|
1611
|
+
$cfs.bind(cf_e('prevPage', conf), function(e, obj, clb) {
|
1612
|
+
e.stopPropagation();
|
1613
|
+
var cur = $cfs.triggerHandler(cf_e('currentPage', conf));
|
1614
|
+
return $cfs.triggerHandler(cf_e('slideToPage', conf), [cur-1, obj, 'prev', clb]);
|
1615
|
+
});
|
1616
|
+
|
1617
|
+
|
1618
|
+
// nextPage event
|
1619
|
+
$cfs.bind(cf_e('nextPage', conf), function(e, obj, clb) {
|
1620
|
+
e.stopPropagation();
|
1621
|
+
var cur = $cfs.triggerHandler(cf_e('currentPage', conf));
|
1622
|
+
return $cfs.triggerHandler(cf_e('slideToPage', conf), [cur+1, obj, 'next', clb]);
|
1623
|
+
});
|
1624
|
+
|
1625
|
+
|
1626
|
+
// slideToPage event
|
1627
|
+
$cfs.bind(cf_e('slideToPage', conf), function(e, pag, obj, dir, clb) {
|
1628
|
+
e.stopPropagation();
|
1629
|
+
if (!is_number(pag))
|
1630
|
+
{
|
1631
|
+
pag = $cfs.triggerHandler(cf_e('currentPage', conf));
|
1632
|
+
}
|
1633
|
+
var ipp = opts.pagination.items || opts.items.visible,
|
1634
|
+
max = Math.ceil(itms.total / ipp)-1;
|
1635
|
+
|
1636
|
+
if (pag < 0)
|
1637
|
+
{
|
1638
|
+
pag = max;
|
1639
|
+
}
|
1640
|
+
if (pag > max)
|
1641
|
+
{
|
1642
|
+
pag = 0;
|
1643
|
+
}
|
1644
|
+
return $cfs.triggerHandler(cf_e('slideTo', conf), [pag*ipp, 0, true, obj, dir, clb]);
|
1645
|
+
});
|
1646
|
+
|
1647
|
+
// jumpToStart event
|
1648
|
+
$cfs.bind(cf_e('jumpToStart', conf), function(e, s) {
|
1649
|
+
e.stopPropagation();
|
1650
|
+
if (s)
|
1651
|
+
{
|
1652
|
+
s = gn_getItemIndex(s, 0, true, itms, $cfs);
|
1653
|
+
}
|
1654
|
+
else
|
1655
|
+
{
|
1656
|
+
s = 0;
|
1657
|
+
}
|
1658
|
+
|
1659
|
+
s += itms.first;
|
1660
|
+
if (s != 0)
|
1661
|
+
{
|
1662
|
+
if (itms.total > 0)
|
1663
|
+
{
|
1664
|
+
while (s > itms.total)
|
1665
|
+
{
|
1666
|
+
s -= itms.total;
|
1667
|
+
}
|
1668
|
+
}
|
1669
|
+
$cfs.prepend($cfs.children().slice(s, itms.total));
|
1670
|
+
}
|
1671
|
+
return true;
|
1672
|
+
});
|
1673
|
+
|
1674
|
+
|
1675
|
+
// synchronise event
|
1676
|
+
$cfs.bind(cf_e('synchronise', conf), function(e, s) {
|
1677
|
+
e.stopPropagation();
|
1678
|
+
if (s)
|
1679
|
+
{
|
1680
|
+
s = cf_getSynchArr(s);
|
1681
|
+
}
|
1682
|
+
else if (opts.synchronise)
|
1683
|
+
{
|
1684
|
+
s = opts.synchronise;
|
1685
|
+
}
|
1686
|
+
else
|
1687
|
+
{
|
1688
|
+
return debug(conf, 'No carousel to synchronise.');
|
1689
|
+
}
|
1690
|
+
|
1691
|
+
var n = $cfs.triggerHandler(cf_e('currentPosition', conf)),
|
1692
|
+
x = true;
|
1693
|
+
|
1694
|
+
for (var j = 0, l = s.length; j < l; j++)
|
1695
|
+
{
|
1696
|
+
if (!s[j][0].triggerHandler(cf_e('slideTo', conf), [n, s[j][3], true]))
|
1697
|
+
{
|
1698
|
+
x = false;
|
1699
|
+
}
|
1700
|
+
}
|
1701
|
+
return x;
|
1702
|
+
});
|
1703
|
+
|
1704
|
+
|
1705
|
+
// queue event
|
1706
|
+
$cfs.bind(cf_e('queue', conf), function(e, dir, opt) {
|
1707
|
+
e.stopPropagation();
|
1708
|
+
if (is_function(dir))
|
1709
|
+
{
|
1710
|
+
dir.call($tt0, queu);
|
1711
|
+
}
|
1712
|
+
else if (is_array(dir))
|
1713
|
+
{
|
1714
|
+
queu = dir;
|
1715
|
+
}
|
1716
|
+
else if (!is_undefined(dir))
|
1717
|
+
{
|
1718
|
+
queu.push([dir, opt]);
|
1719
|
+
}
|
1720
|
+
return queu;
|
1721
|
+
});
|
1722
|
+
|
1723
|
+
|
1724
|
+
// insertItem event
|
1725
|
+
$cfs.bind(cf_e('insertItem', conf), function(e, itm, num, org, dev) {
|
1726
|
+
e.stopPropagation();
|
1727
|
+
|
1728
|
+
var v = [itm, num, org, dev],
|
1729
|
+
t = ['string/object', 'string/number/object', 'boolean', 'number'],
|
1730
|
+
a = cf_sortParams(v, t);
|
1731
|
+
|
1732
|
+
itm = a[0];
|
1733
|
+
num = a[1];
|
1734
|
+
org = a[2];
|
1735
|
+
dev = a[3];
|
1736
|
+
|
1737
|
+
if (is_object(itm) && !is_jquery(itm))
|
1738
|
+
{
|
1739
|
+
itm = $(itm);
|
1740
|
+
}
|
1741
|
+
else if (is_string(itm))
|
1742
|
+
{
|
1743
|
+
itm = $(itm);
|
1744
|
+
}
|
1745
|
+
if (!is_jquery(itm) || itm.length == 0)
|
1746
|
+
{
|
1747
|
+
return debug(conf, 'Not a valid object.');
|
1748
|
+
}
|
1749
|
+
|
1750
|
+
if (is_undefined(num))
|
1751
|
+
{
|
1752
|
+
num = 'end';
|
1753
|
+
}
|
1754
|
+
|
1755
|
+
sz_storeMargin(itm, opts);
|
1756
|
+
sz_storeOrigCss(itm);
|
1757
|
+
|
1758
|
+
var orgNum = num,
|
1759
|
+
before = 'before';
|
1760
|
+
|
1761
|
+
if (num == 'end')
|
1762
|
+
{
|
1763
|
+
if (org)
|
1764
|
+
{
|
1765
|
+
if (itms.first == 0)
|
1766
|
+
{
|
1767
|
+
num = itms.total-1;
|
1768
|
+
before = 'after';
|
1769
|
+
}
|
1770
|
+
else
|
1771
|
+
{
|
1772
|
+
num = itms.first;
|
1773
|
+
itms.first += itm.length;
|
1774
|
+
}
|
1775
|
+
if (num < 0)
|
1776
|
+
{
|
1777
|
+
num = 0;
|
1778
|
+
}
|
1779
|
+
}
|
1780
|
+
else
|
1781
|
+
{
|
1782
|
+
num = itms.total-1;
|
1783
|
+
before = 'after';
|
1784
|
+
}
|
1785
|
+
}
|
1786
|
+
else
|
1787
|
+
{
|
1788
|
+
num = gn_getItemIndex(num, dev, org, itms, $cfs);
|
1789
|
+
}
|
1790
|
+
|
1791
|
+
var $cit = $cfs.children().eq(num);
|
1792
|
+
if ($cit.length)
|
1793
|
+
{
|
1794
|
+
$cit[before](itm);
|
1795
|
+
}
|
1796
|
+
else
|
1797
|
+
{
|
1798
|
+
debug(conf, 'Correct insert-position not found! Appending item to the end.');
|
1799
|
+
$cfs.append(itm);
|
1800
|
+
}
|
1801
|
+
|
1802
|
+
if (orgNum != 'end' && !org)
|
1803
|
+
{
|
1804
|
+
if (num < itms.first)
|
1805
|
+
{
|
1806
|
+
itms.first += itm.length;
|
1807
|
+
}
|
1808
|
+
}
|
1809
|
+
itms.total = $cfs.children().length;
|
1810
|
+
if (itms.first >= itms.total)
|
1811
|
+
{
|
1812
|
+
itms.first -= itms.total;
|
1813
|
+
}
|
1814
|
+
|
1815
|
+
$cfs.trigger(cf_e('updateSizes', conf));
|
1816
|
+
$cfs.trigger(cf_e('linkAnchors', conf));
|
1817
|
+
|
1818
|
+
return true;
|
1819
|
+
});
|
1820
|
+
|
1821
|
+
|
1822
|
+
// removeItem event
|
1823
|
+
$cfs.bind(cf_e('removeItem', conf), function(e, num, org, dev) {
|
1824
|
+
e.stopPropagation();
|
1825
|
+
|
1826
|
+
var v = [num, org, dev],
|
1827
|
+
t = ['string/number/object', 'boolean', 'number'],
|
1828
|
+
a = cf_sortParams(v, t);
|
1829
|
+
|
1830
|
+
num = a[0];
|
1831
|
+
org = a[1];
|
1832
|
+
dev = a[2];
|
1833
|
+
|
1834
|
+
var removed = false;
|
1835
|
+
|
1836
|
+
if (num instanceof $ && num.length > 1)
|
1837
|
+
{
|
1838
|
+
$removed = $();
|
1839
|
+
num.each(function(i, el) {
|
1840
|
+
var $rem = $cfs.trigger(cf_e('removeItem', conf), [$(this), org, dev]);
|
1841
|
+
if ( $rem )
|
1842
|
+
{
|
1843
|
+
$removed = $removed.add($rem);
|
1844
|
+
}
|
1845
|
+
});
|
1846
|
+
return $removed;
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
if (is_undefined(num) || num == 'end')
|
1850
|
+
{
|
1851
|
+
$removed = $cfs.children().last();
|
1852
|
+
}
|
1853
|
+
else
|
1854
|
+
{
|
1855
|
+
num = gn_getItemIndex(num, dev, org, itms, $cfs);
|
1856
|
+
var $removed = $cfs.children().eq(num);
|
1857
|
+
if ( $removed.length )
|
1858
|
+
{
|
1859
|
+
if (num < itms.first)
|
1860
|
+
{
|
1861
|
+
itms.first -= $removed.length;
|
1862
|
+
}
|
1863
|
+
}
|
1864
|
+
}
|
1865
|
+
if ( $removed && $removed.length )
|
1866
|
+
{
|
1867
|
+
$removed.detach();
|
1868
|
+
itms.total = $cfs.children().length;
|
1869
|
+
$cfs.trigger(cf_e('updateSizes', conf));
|
1870
|
+
}
|
1871
|
+
|
1872
|
+
return $removed;
|
1873
|
+
});
|
1874
|
+
|
1875
|
+
|
1876
|
+
// onBefore and onAfter event
|
1877
|
+
$cfs.bind(cf_e('onBefore', conf)+' '+cf_e('onAfter', conf), function(e, fn) {
|
1878
|
+
e.stopPropagation();
|
1879
|
+
var eType = e.type.slice(conf.events.prefix.length);
|
1880
|
+
if (is_array(fn))
|
1881
|
+
{
|
1882
|
+
clbk[eType] = fn;
|
1883
|
+
}
|
1884
|
+
if (is_function(fn))
|
1885
|
+
{
|
1886
|
+
clbk[eType].push(fn);
|
1887
|
+
}
|
1888
|
+
return clbk[eType];
|
1889
|
+
});
|
1890
|
+
|
1891
|
+
|
1892
|
+
// currentPosition event
|
1893
|
+
$cfs.bind(cf_e('currentPosition', conf), function(e, fn) {
|
1894
|
+
e.stopPropagation();
|
1895
|
+
if (itms.first == 0)
|
1896
|
+
{
|
1897
|
+
var val = 0;
|
1898
|
+
}
|
1899
|
+
else
|
1900
|
+
{
|
1901
|
+
var val = itms.total - itms.first;
|
1902
|
+
}
|
1903
|
+
if (is_function(fn))
|
1904
|
+
{
|
1905
|
+
fn.call($tt0, val);
|
1906
|
+
}
|
1907
|
+
return val;
|
1908
|
+
});
|
1909
|
+
|
1910
|
+
|
1911
|
+
// currentPage event
|
1912
|
+
$cfs.bind(cf_e('currentPage', conf), function(e, fn) {
|
1913
|
+
e.stopPropagation();
|
1914
|
+
var ipp = opts.pagination.items || opts.items.visible,
|
1915
|
+
max = Math.ceil(itms.total/ipp-1),
|
1916
|
+
nr;
|
1917
|
+
if (itms.first == 0)
|
1918
|
+
{
|
1919
|
+
nr = 0;
|
1920
|
+
}
|
1921
|
+
else if (itms.first < itms.total % ipp)
|
1922
|
+
{
|
1923
|
+
nr = 0;
|
1924
|
+
}
|
1925
|
+
else if (itms.first == ipp && !opts.circular)
|
1926
|
+
{
|
1927
|
+
nr = max;
|
1928
|
+
}
|
1929
|
+
else
|
1930
|
+
{
|
1931
|
+
nr = Math.round((itms.total-itms.first)/ipp);
|
1932
|
+
}
|
1933
|
+
if (nr < 0)
|
1934
|
+
{
|
1935
|
+
nr = 0;
|
1936
|
+
}
|
1937
|
+
if (nr > max)
|
1938
|
+
{
|
1939
|
+
nr = max;
|
1940
|
+
}
|
1941
|
+
if (is_function(fn))
|
1942
|
+
{
|
1943
|
+
fn.call($tt0, nr);
|
1944
|
+
}
|
1945
|
+
return nr;
|
1946
|
+
});
|
1947
|
+
|
1948
|
+
|
1949
|
+
// currentVisible event
|
1950
|
+
$cfs.bind(cf_e('currentVisible', conf), function(e, fn) {
|
1951
|
+
e.stopPropagation();
|
1952
|
+
var $i = gi_getCurrentItems($cfs.children(), opts);
|
1953
|
+
if (is_function(fn))
|
1954
|
+
{
|
1955
|
+
fn.call($tt0, $i);
|
1956
|
+
}
|
1957
|
+
return $i;
|
1958
|
+
});
|
1959
|
+
|
1960
|
+
|
1961
|
+
// slice event
|
1962
|
+
$cfs.bind(cf_e('slice', conf), function(e, f, l, fn) {
|
1963
|
+
e.stopPropagation();
|
1964
|
+
|
1965
|
+
if (itms.total == 0)
|
1966
|
+
{
|
1967
|
+
return false;
|
1968
|
+
}
|
1969
|
+
|
1970
|
+
var v = [f, l, fn],
|
1971
|
+
t = ['number', 'number', 'function'],
|
1972
|
+
a = cf_sortParams(v, t);
|
1973
|
+
|
1974
|
+
f = (is_number(a[0])) ? a[0] : 0;
|
1975
|
+
l = (is_number(a[1])) ? a[1] : itms.total;
|
1976
|
+
fn = a[2];
|
1977
|
+
|
1978
|
+
f += itms.first;
|
1979
|
+
l += itms.first;
|
1980
|
+
|
1981
|
+
if (items.total > 0)
|
1982
|
+
{
|
1983
|
+
while (f > itms.total)
|
1984
|
+
{
|
1985
|
+
f -= itms.total;
|
1986
|
+
}
|
1987
|
+
while (l > itms.total)
|
1988
|
+
{
|
1989
|
+
l -= itms.total;
|
1990
|
+
}
|
1991
|
+
while (f < 0)
|
1992
|
+
{
|
1993
|
+
f += itms.total;
|
1994
|
+
}
|
1995
|
+
while (l < 0)
|
1996
|
+
{
|
1997
|
+
l += itms.total;
|
1998
|
+
}
|
1999
|
+
}
|
2000
|
+
var $iA = $cfs.children(),
|
2001
|
+
$i;
|
2002
|
+
|
2003
|
+
if (l > f)
|
2004
|
+
{
|
2005
|
+
$i = $iA.slice(f, l);
|
2006
|
+
}
|
2007
|
+
else
|
2008
|
+
{
|
2009
|
+
$i = $( $iA.slice(f, itms.total).get().concat( $iA.slice(0, l).get() ) );
|
2010
|
+
}
|
2011
|
+
|
2012
|
+
if (is_function(fn))
|
2013
|
+
{
|
2014
|
+
fn.call($tt0, $i);
|
2015
|
+
}
|
2016
|
+
return $i;
|
2017
|
+
});
|
2018
|
+
|
2019
|
+
|
2020
|
+
// isPaused, isStopped and isScrolling events
|
2021
|
+
$cfs.bind(cf_e('isPaused', conf)+' '+cf_e('isStopped', conf)+' '+cf_e('isScrolling', conf), function(e, fn) {
|
2022
|
+
e.stopPropagation();
|
2023
|
+
var eType = e.type.slice(conf.events.prefix.length),
|
2024
|
+
value = crsl[eType];
|
2025
|
+
if (is_function(fn))
|
2026
|
+
{
|
2027
|
+
fn.call($tt0, value);
|
2028
|
+
}
|
2029
|
+
return value;
|
2030
|
+
});
|
2031
|
+
|
2032
|
+
|
2033
|
+
// configuration event
|
2034
|
+
$cfs.bind(cf_e('configuration', conf), function(e, a, b, c) {
|
2035
|
+
e.stopPropagation();
|
2036
|
+
var reInit = false;
|
2037
|
+
|
2038
|
+
// return entire configuration-object
|
2039
|
+
if (is_function(a))
|
2040
|
+
{
|
2041
|
+
a.call($tt0, opts);
|
2042
|
+
}
|
2043
|
+
// set multiple options via object
|
2044
|
+
else if (is_object(a))
|
2045
|
+
{
|
2046
|
+
opts_orig = $.extend(true, {}, opts_orig, a);
|
2047
|
+
if (b !== false) reInit = true;
|
2048
|
+
else opts = $.extend(true, {}, opts, a);
|
2049
|
+
|
2050
|
+
}
|
2051
|
+
else if (!is_undefined(a))
|
2052
|
+
{
|
2053
|
+
|
2054
|
+
// callback function for specific option
|
2055
|
+
if (is_function(b))
|
2056
|
+
{
|
2057
|
+
var val = eval('opts.'+a);
|
2058
|
+
if (is_undefined(val))
|
2059
|
+
{
|
2060
|
+
val = '';
|
2061
|
+
}
|
2062
|
+
b.call($tt0, val);
|
2063
|
+
}
|
2064
|
+
// set individual option
|
2065
|
+
else if (!is_undefined(b))
|
2066
|
+
{
|
2067
|
+
if (typeof c !== 'boolean') c = true;
|
2068
|
+
eval('opts_orig.'+a+' = b');
|
2069
|
+
if (c !== false) reInit = true;
|
2070
|
+
else eval('opts.'+a+' = b');
|
2071
|
+
}
|
2072
|
+
// return value for specific option
|
2073
|
+
else
|
2074
|
+
{
|
2075
|
+
return eval('opts.'+a);
|
2076
|
+
}
|
2077
|
+
}
|
2078
|
+
if (reInit)
|
2079
|
+
{
|
2080
|
+
sz_resetMargin($cfs.children(), opts);
|
2081
|
+
FN._init(opts_orig);
|
2082
|
+
FN._bind_buttons();
|
2083
|
+
var sz = sz_setSizes($cfs, opts);
|
2084
|
+
$cfs.trigger(cf_e('updatePageStatus', conf), [true, sz]);
|
2085
|
+
}
|
2086
|
+
return opts;
|
2087
|
+
});
|
2088
|
+
|
2089
|
+
|
2090
|
+
// linkAnchors event
|
2091
|
+
$cfs.bind(cf_e('linkAnchors', conf), function(e, $con, sel) {
|
2092
|
+
e.stopPropagation();
|
2093
|
+
|
2094
|
+
if (is_undefined($con))
|
2095
|
+
{
|
2096
|
+
$con = $('body');
|
2097
|
+
}
|
2098
|
+
else if (is_string($con))
|
2099
|
+
{
|
2100
|
+
$con = $($con);
|
2101
|
+
}
|
2102
|
+
if (!is_jquery($con) || $con.length == 0)
|
2103
|
+
{
|
2104
|
+
return debug(conf, 'Not a valid object.');
|
2105
|
+
}
|
2106
|
+
if (!is_string(sel))
|
2107
|
+
{
|
2108
|
+
sel = 'a.caroufredsel';
|
2109
|
+
}
|
2110
|
+
|
2111
|
+
$con.find(sel).each(function() {
|
2112
|
+
var h = this.hash || '';
|
2113
|
+
if (h.length > 0 && $cfs.children().index($(h)) != -1)
|
2114
|
+
{
|
2115
|
+
$(this).unbind('click').click(function(e) {
|
2116
|
+
e.preventDefault();
|
2117
|
+
$cfs.trigger(cf_e('slideTo', conf), h);
|
2118
|
+
});
|
2119
|
+
}
|
2120
|
+
});
|
2121
|
+
return true;
|
2122
|
+
});
|
2123
|
+
|
2124
|
+
|
2125
|
+
// updatePageStatus event
|
2126
|
+
$cfs.bind(cf_e('updatePageStatus', conf), function(e, build, sizes) {
|
2127
|
+
e.stopPropagation();
|
2128
|
+
if (!opts.pagination.container)
|
2129
|
+
{
|
2130
|
+
return;
|
2131
|
+
}
|
2132
|
+
|
2133
|
+
var ipp = opts.pagination.items || opts.items.visible,
|
2134
|
+
pgs = Math.ceil(itms.total/ipp);
|
2135
|
+
|
2136
|
+
if (build)
|
2137
|
+
{
|
2138
|
+
if (opts.pagination.anchorBuilder)
|
2139
|
+
{
|
2140
|
+
opts.pagination.container.children().remove();
|
2141
|
+
opts.pagination.container.each(function() {
|
2142
|
+
for (var a = 0; a < pgs; a++)
|
2143
|
+
{
|
2144
|
+
var i = $cfs.children().eq( gn_getItemIndex(a*ipp, 0, true, itms, $cfs) );
|
2145
|
+
$(this).append(opts.pagination.anchorBuilder.call(i[0], a+1));
|
2146
|
+
}
|
2147
|
+
});
|
2148
|
+
}
|
2149
|
+
opts.pagination.container.each(function() {
|
2150
|
+
$(this).children().unbind(opts.pagination.event).each(function(a) {
|
2151
|
+
$(this).bind(opts.pagination.event, function(e) {
|
2152
|
+
e.preventDefault();
|
2153
|
+
$cfs.trigger(cf_e('slideTo', conf), [a*ipp, -opts.pagination.deviation, true, opts.pagination]);
|
2154
|
+
});
|
2155
|
+
});
|
2156
|
+
});
|
2157
|
+
}
|
2158
|
+
|
2159
|
+
var selected = $cfs.triggerHandler(cf_e('currentPage', conf)) + opts.pagination.deviation;
|
2160
|
+
if (selected >= pgs)
|
2161
|
+
{
|
2162
|
+
selected = 0;
|
2163
|
+
}
|
2164
|
+
if (selected < 0)
|
2165
|
+
{
|
2166
|
+
selected = pgs-1;
|
2167
|
+
}
|
2168
|
+
opts.pagination.container.each(function() {
|
2169
|
+
$(this).children().removeClass(cf_c('selected', conf)).eq(selected).addClass(cf_c('selected', conf));
|
2170
|
+
});
|
2171
|
+
return true;
|
2172
|
+
});
|
2173
|
+
|
2174
|
+
|
2175
|
+
// updateSizes event
|
2176
|
+
$cfs.bind(cf_e('updateSizes', conf), function(e) {
|
2177
|
+
var vI = opts.items.visible,
|
2178
|
+
a_itm = $cfs.children(),
|
2179
|
+
avail_primary = ms_getParentSize($wrp, opts, 'width');
|
2180
|
+
|
2181
|
+
itms.total = a_itm.length;
|
2182
|
+
|
2183
|
+
if (crsl.primarySizePercentage)
|
2184
|
+
{
|
2185
|
+
opts.maxDimension = avail_primary;
|
2186
|
+
opts[opts.d['width']] = ms_getPercentage(avail_primary, crsl.primarySizePercentage);
|
2187
|
+
}
|
2188
|
+
else
|
2189
|
+
{
|
2190
|
+
opts.maxDimension = ms_getMaxDimension(opts, avail_primary);
|
2191
|
+
}
|
2192
|
+
|
2193
|
+
if (opts.responsive)
|
2194
|
+
{
|
2195
|
+
opts.items.width = opts.items.sizesConf.width;
|
2196
|
+
opts.items.height = opts.items.sizesConf.height;
|
2197
|
+
opts = in_getResponsiveValues(opts, a_itm, avail_primary);
|
2198
|
+
vI = opts.items.visible;
|
2199
|
+
sz_setResponsiveSizes(opts, a_itm);
|
2200
|
+
}
|
2201
|
+
else if (opts.items.visibleConf.variable)
|
2202
|
+
{
|
2203
|
+
vI = gn_getVisibleItemsNext(a_itm, opts, 0);
|
2204
|
+
}
|
2205
|
+
else if (opts.items.filter != '*')
|
2206
|
+
{
|
2207
|
+
vI = gn_getVisibleItemsNextFilter(a_itm, opts, 0);
|
2208
|
+
}
|
2209
|
+
|
2210
|
+
if (!opts.circular && itms.first != 0 && vI > itms.first) {
|
2211
|
+
if (opts.items.visibleConf.variable)
|
2212
|
+
{
|
2213
|
+
var nI = gn_getVisibleItemsPrev(a_itm, opts, itms.first) - itms.first;
|
2214
|
+
}
|
2215
|
+
else if (opts.items.filter != '*')
|
2216
|
+
{
|
2217
|
+
var nI = gn_getVisibleItemsPrevFilter(a_itm, opts, itms.first) - itms.first;
|
2218
|
+
}
|
2219
|
+
else
|
2220
|
+
{
|
2221
|
+
var nI = opts.items.visible - itms.first;
|
2222
|
+
}
|
2223
|
+
debug(conf, 'Preventing non-circular: sliding '+nI+' items backward.');
|
2224
|
+
$cfs.trigger(cf_e('prev', conf), nI);
|
2225
|
+
}
|
2226
|
+
|
2227
|
+
opts.items.visible = cf_getItemsAdjust(vI, opts, opts.items.visibleConf.adjust, $tt0);
|
2228
|
+
opts.items.visibleConf.old = opts.items.visible;
|
2229
|
+
opts = in_getAlignPadding(opts, a_itm);
|
2230
|
+
|
2231
|
+
var sz = sz_setSizes($cfs, opts);
|
2232
|
+
$cfs.trigger(cf_e('updatePageStatus', conf), [true, sz]);
|
2233
|
+
nv_showNavi(opts, itms.total, conf);
|
2234
|
+
nv_enableNavi(opts, itms.first, conf);
|
2235
|
+
|
2236
|
+
return sz;
|
2237
|
+
});
|
2238
|
+
|
2239
|
+
|
2240
|
+
// destroy event
|
2241
|
+
$cfs.bind(cf_e('destroy', conf), function(e, orgOrder) {
|
2242
|
+
e.stopPropagation();
|
2243
|
+
tmrs = sc_clearTimers(tmrs);
|
2244
|
+
|
2245
|
+
$cfs.data('_cfs_isCarousel', false);
|
2246
|
+
$cfs.trigger(cf_e('finish', conf));
|
2247
|
+
if (orgOrder)
|
2248
|
+
{
|
2249
|
+
$cfs.trigger(cf_e('jumpToStart', conf));
|
2250
|
+
}
|
2251
|
+
sz_restoreOrigCss($cfs.children());
|
2252
|
+
sz_restoreOrigCss($cfs);
|
2253
|
+
FN._unbind_events();
|
2254
|
+
FN._unbind_buttons();
|
2255
|
+
if (conf.wrapper == 'parent')
|
2256
|
+
{
|
2257
|
+
sz_restoreOrigCss($wrp);
|
2258
|
+
}
|
2259
|
+
else
|
2260
|
+
{
|
2261
|
+
$wrp.replaceWith($cfs);
|
2262
|
+
}
|
2263
|
+
|
2264
|
+
return true;
|
2265
|
+
});
|
2266
|
+
|
2267
|
+
|
2268
|
+
// debug event
|
2269
|
+
$cfs.bind(cf_e('debug', conf), function(e) {
|
2270
|
+
debug(conf, 'Carousel width: ' + opts.width);
|
2271
|
+
debug(conf, 'Carousel height: ' + opts.height);
|
2272
|
+
debug(conf, 'Item widths: ' + opts.items.width);
|
2273
|
+
debug(conf, 'Item heights: ' + opts.items.height);
|
2274
|
+
debug(conf, 'Number of items visible: ' + opts.items.visible);
|
2275
|
+
if (opts.auto.play)
|
2276
|
+
{
|
2277
|
+
debug(conf, 'Number of items scrolled automatically: ' + opts.auto.items);
|
2278
|
+
}
|
2279
|
+
if (opts.prev.button)
|
2280
|
+
{
|
2281
|
+
debug(conf, 'Number of items scrolled backward: ' + opts.prev.items);
|
2282
|
+
}
|
2283
|
+
if (opts.next.button)
|
2284
|
+
{
|
2285
|
+
debug(conf, 'Number of items scrolled forward: ' + opts.next.items);
|
2286
|
+
}
|
2287
|
+
return conf.debug;
|
2288
|
+
});
|
2289
|
+
|
2290
|
+
|
2291
|
+
// triggerEvent, making prefixed and namespaced events accessible from outside
|
2292
|
+
$cfs.bind('_cfs_triggerEvent', function(e, n, o) {
|
2293
|
+
e.stopPropagation();
|
2294
|
+
return $cfs.triggerHandler(cf_e(n, conf), o);
|
2295
|
+
});
|
2296
|
+
}; // /bind_events
|
2297
|
+
|
2298
|
+
|
2299
|
+
FN._unbind_events = function() {
|
2300
|
+
$cfs.unbind(cf_e('', conf));
|
2301
|
+
$cfs.unbind(cf_e('', conf, false));
|
2302
|
+
$cfs.unbind('_cfs_triggerEvent');
|
2303
|
+
}; // /unbind_events
|
2304
|
+
|
2305
|
+
|
2306
|
+
FN._bind_buttons = function() {
|
2307
|
+
FN._unbind_buttons();
|
2308
|
+
nv_showNavi(opts, itms.total, conf);
|
2309
|
+
nv_enableNavi(opts, itms.first, conf);
|
2310
|
+
|
2311
|
+
if (opts.auto.pauseOnHover)
|
2312
|
+
{
|
2313
|
+
var pC = bt_pauseOnHoverConfig(opts.auto.pauseOnHover);
|
2314
|
+
$wrp.bind(cf_e('mouseenter', conf, false), function() { $cfs.trigger(cf_e('pause', conf), pC); })
|
2315
|
+
.bind(cf_e('mouseleave', conf, false), function() { $cfs.trigger(cf_e('resume', conf)); });
|
2316
|
+
}
|
2317
|
+
|
2318
|
+
// play button
|
2319
|
+
if (opts.auto.button)
|
2320
|
+
{
|
2321
|
+
opts.auto.button.bind(cf_e(opts.auto.event, conf, false), function(e) {
|
2322
|
+
e.preventDefault();
|
2323
|
+
var ev = false,
|
2324
|
+
pC = null;
|
2325
|
+
|
2326
|
+
if (crsl.isPaused)
|
2327
|
+
{
|
2328
|
+
ev = 'play';
|
2329
|
+
}
|
2330
|
+
else if (opts.auto.pauseOnEvent)
|
2331
|
+
{
|
2332
|
+
ev = 'pause';
|
2333
|
+
pC = bt_pauseOnHoverConfig(opts.auto.pauseOnEvent);
|
2334
|
+
}
|
2335
|
+
if (ev)
|
2336
|
+
{
|
2337
|
+
$cfs.trigger(cf_e(ev, conf), pC);
|
2338
|
+
}
|
2339
|
+
});
|
2340
|
+
}
|
2341
|
+
|
2342
|
+
// prev button
|
2343
|
+
if (opts.prev.button)
|
2344
|
+
{
|
2345
|
+
opts.prev.button.bind(cf_e(opts.prev.event, conf, false), function(e) {
|
2346
|
+
e.preventDefault();
|
2347
|
+
$cfs.trigger(cf_e('prev', conf));
|
2348
|
+
});
|
2349
|
+
if (opts.prev.pauseOnHover)
|
2350
|
+
{
|
2351
|
+
var pC = bt_pauseOnHoverConfig(opts.prev.pauseOnHover);
|
2352
|
+
opts.prev.button.bind(cf_e('mouseenter', conf, false), function() { $cfs.trigger(cf_e('pause', conf), pC); })
|
2353
|
+
.bind(cf_e('mouseleave', conf, false), function() { $cfs.trigger(cf_e('resume', conf)); });
|
2354
|
+
}
|
2355
|
+
}
|
2356
|
+
|
2357
|
+
// next butotn
|
2358
|
+
if (opts.next.button)
|
2359
|
+
{
|
2360
|
+
opts.next.button.bind(cf_e(opts.next.event, conf, false), function(e) {
|
2361
|
+
e.preventDefault();
|
2362
|
+
$cfs.trigger(cf_e('next', conf));
|
2363
|
+
});
|
2364
|
+
if (opts.next.pauseOnHover)
|
2365
|
+
{
|
2366
|
+
var pC = bt_pauseOnHoverConfig(opts.next.pauseOnHover);
|
2367
|
+
opts.next.button.bind(cf_e('mouseenter', conf, false), function() { $cfs.trigger(cf_e('pause', conf), pC); })
|
2368
|
+
.bind(cf_e('mouseleave', conf, false), function() { $cfs.trigger(cf_e('resume', conf)); });
|
2369
|
+
}
|
2370
|
+
}
|
2371
|
+
|
2372
|
+
// pagination
|
2373
|
+
if (opts.pagination.container)
|
2374
|
+
{
|
2375
|
+
if (opts.pagination.pauseOnHover)
|
2376
|
+
{
|
2377
|
+
var pC = bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);
|
2378
|
+
opts.pagination.container.bind(cf_e('mouseenter', conf, false), function() { $cfs.trigger(cf_e('pause', conf), pC); })
|
2379
|
+
.bind(cf_e('mouseleave', conf, false), function() { $cfs.trigger(cf_e('resume', conf)); });
|
2380
|
+
}
|
2381
|
+
}
|
2382
|
+
|
2383
|
+
// prev/next keys
|
2384
|
+
if (opts.prev.key || opts.next.key)
|
2385
|
+
{
|
2386
|
+
$(document).bind(cf_e('keyup', conf, false, true, true), function(e) {
|
2387
|
+
var k = e.keyCode;
|
2388
|
+
if (k == opts.next.key)
|
2389
|
+
{
|
2390
|
+
e.preventDefault();
|
2391
|
+
$cfs.trigger(cf_e('next', conf));
|
2392
|
+
}
|
2393
|
+
if (k == opts.prev.key)
|
2394
|
+
{
|
2395
|
+
e.preventDefault();
|
2396
|
+
$cfs.trigger(cf_e('prev', conf));
|
2397
|
+
}
|
2398
|
+
});
|
2399
|
+
}
|
2400
|
+
|
2401
|
+
// pagination keys
|
2402
|
+
if (opts.pagination.keys)
|
2403
|
+
{
|
2404
|
+
$(document).bind(cf_e('keyup', conf, false, true, true), function(e) {
|
2405
|
+
var k = e.keyCode;
|
2406
|
+
if (k >= 49 && k < 58)
|
2407
|
+
{
|
2408
|
+
k = (k-49) * opts.items.visible;
|
2409
|
+
if (k <= itms.total)
|
2410
|
+
{
|
2411
|
+
e.preventDefault();
|
2412
|
+
$cfs.trigger(cf_e('slideTo', conf), [k, 0, true, opts.pagination]);
|
2413
|
+
}
|
2414
|
+
}
|
2415
|
+
});
|
2416
|
+
}
|
2417
|
+
|
2418
|
+
// swipe
|
2419
|
+
if ($.fn.swipe)
|
2420
|
+
{
|
2421
|
+
var isTouch = 'ontouchstart' in window;
|
2422
|
+
if ((isTouch && opts.swipe.onTouch) || (!isTouch && opts.swipe.onMouse))
|
2423
|
+
{
|
2424
|
+
var scP = $.extend(true, {}, opts.prev, opts.swipe),
|
2425
|
+
scN = $.extend(true, {}, opts.next, opts.swipe),
|
2426
|
+
swP = function() { $cfs.trigger(cf_e('prev', conf), [scP]) },
|
2427
|
+
swN = function() { $cfs.trigger(cf_e('next', conf), [scN]) };
|
2428
|
+
|
2429
|
+
switch (opts.direction)
|
2430
|
+
{
|
2431
|
+
case 'up':
|
2432
|
+
case 'down':
|
2433
|
+
opts.swipe.options.swipeUp = swN;
|
2434
|
+
opts.swipe.options.swipeDown = swP;
|
2435
|
+
break;
|
2436
|
+
default:
|
2437
|
+
opts.swipe.options.swipeLeft = swN;
|
2438
|
+
opts.swipe.options.swipeRight = swP;
|
2439
|
+
}
|
2440
|
+
if (crsl.swipe)
|
2441
|
+
{
|
2442
|
+
$cfs.swipe('destroy');
|
2443
|
+
}
|
2444
|
+
$wrp.swipe(opts.swipe.options);
|
2445
|
+
$wrp.css('cursor', 'move');
|
2446
|
+
crsl.swipe = true;
|
2447
|
+
}
|
2448
|
+
}
|
2449
|
+
|
2450
|
+
// mousewheel
|
2451
|
+
if ($.fn.mousewheel)
|
2452
|
+
{
|
2453
|
+
|
2454
|
+
if (opts.mousewheel)
|
2455
|
+
{
|
2456
|
+
var mcP = $.extend(true, {}, opts.prev, opts.mousewheel),
|
2457
|
+
mcN = $.extend(true, {}, opts.next, opts.mousewheel);
|
2458
|
+
|
2459
|
+
if (crsl.mousewheel)
|
2460
|
+
{
|
2461
|
+
$wrp.unbind(cf_e('mousewheel', conf, false));
|
2462
|
+
}
|
2463
|
+
$wrp.bind(cf_e('mousewheel', conf, false), function(e, delta) {
|
2464
|
+
e.preventDefault();
|
2465
|
+
if (delta > 0)
|
2466
|
+
{
|
2467
|
+
$cfs.trigger(cf_e('prev', conf), [mcP]);
|
2468
|
+
}
|
2469
|
+
else
|
2470
|
+
{
|
2471
|
+
$cfs.trigger(cf_e('next', conf), [mcN]);
|
2472
|
+
}
|
2473
|
+
});
|
2474
|
+
crsl.mousewheel = true;
|
2475
|
+
}
|
2476
|
+
}
|
2477
|
+
|
2478
|
+
if (opts.auto.play)
|
2479
|
+
{
|
2480
|
+
$cfs.trigger(cf_e('play', conf), opts.auto.delay);
|
2481
|
+
}
|
2482
|
+
|
2483
|
+
if (crsl.upDateOnWindowResize)
|
2484
|
+
{
|
2485
|
+
var resizeFn = function(e) {
|
2486
|
+
$cfs.trigger(cf_e('finish', conf));
|
2487
|
+
if (opts.auto.pauseOnResize && !crsl.isPaused)
|
2488
|
+
{
|
2489
|
+
$cfs.trigger(cf_e('play', conf));
|
2490
|
+
}
|
2491
|
+
sz_resetMargin($cfs.children(), opts);
|
2492
|
+
$cfs.trigger(cf_e('updateSizes', conf));
|
2493
|
+
};
|
2494
|
+
|
2495
|
+
var $w = $(window),
|
2496
|
+
onResize = null;
|
2497
|
+
|
2498
|
+
if ($.debounce && conf.onWindowResize == 'debounce')
|
2499
|
+
{
|
2500
|
+
onResize = $.debounce(200, resizeFn);
|
2501
|
+
}
|
2502
|
+
else if ($.throttle && conf.onWindowResize == 'throttle')
|
2503
|
+
{
|
2504
|
+
onResize = $.throttle(300, resizeFn);
|
2505
|
+
}
|
2506
|
+
else
|
2507
|
+
{
|
2508
|
+
var _windowWidth = 0,
|
2509
|
+
_windowHeight = 0;
|
2510
|
+
|
2511
|
+
onResize = function() {
|
2512
|
+
var nw = $w.width(),
|
2513
|
+
nh = $w.height();
|
2514
|
+
|
2515
|
+
if (nw != _windowWidth || nh != _windowHeight)
|
2516
|
+
{
|
2517
|
+
resizeFn();
|
2518
|
+
_windowWidth = nw;
|
2519
|
+
_windowHeight = nh;
|
2520
|
+
}
|
2521
|
+
};
|
2522
|
+
}
|
2523
|
+
$w.bind(cf_e('resize', conf, false, true, true), onResize);
|
2524
|
+
}
|
2525
|
+
}; // /bind_buttons
|
2526
|
+
|
2527
|
+
|
2528
|
+
FN._unbind_buttons = function() {
|
2529
|
+
var ns1 = cf_e('', conf),
|
2530
|
+
ns2 = cf_e('', conf, false);
|
2531
|
+
ns3 = cf_e('', conf, false, true, true);
|
2532
|
+
|
2533
|
+
$(document).unbind(ns3);
|
2534
|
+
$(window).unbind(ns3);
|
2535
|
+
$wrp.unbind(ns2);
|
2536
|
+
|
2537
|
+
if (opts.auto.button)
|
2538
|
+
{
|
2539
|
+
opts.auto.button.unbind(ns2);
|
2540
|
+
}
|
2541
|
+
if (opts.prev.button)
|
2542
|
+
{
|
2543
|
+
opts.prev.button.unbind(ns2);
|
2544
|
+
}
|
2545
|
+
if (opts.next.button)
|
2546
|
+
{
|
2547
|
+
opts.next.button.unbind(ns2);
|
2548
|
+
}
|
2549
|
+
if (opts.pagination.container)
|
2550
|
+
{
|
2551
|
+
opts.pagination.container.unbind(ns2);
|
2552
|
+
if (opts.pagination.anchorBuilder)
|
2553
|
+
{
|
2554
|
+
opts.pagination.container.children().remove();
|
2555
|
+
}
|
2556
|
+
}
|
2557
|
+
if (crsl.swipe)
|
2558
|
+
{
|
2559
|
+
$cfs.swipe('destroy');
|
2560
|
+
$wrp.css('cursor', 'default');
|
2561
|
+
crsl.swipe = false;
|
2562
|
+
}
|
2563
|
+
if (crsl.mousewheel)
|
2564
|
+
{
|
2565
|
+
crsl.mousewheel = false;
|
2566
|
+
}
|
2567
|
+
|
2568
|
+
nv_showNavi(opts, 'hide', conf);
|
2569
|
+
nv_enableNavi(opts, 'removeClass', conf);
|
2570
|
+
|
2571
|
+
}; // /unbind_buttons
|
2572
|
+
|
2573
|
+
|
2574
|
+
|
2575
|
+
// START
|
2576
|
+
|
2577
|
+
if (is_boolean(configs))
|
2578
|
+
{
|
2579
|
+
configs = {
|
2580
|
+
'debug': configs
|
2581
|
+
};
|
2582
|
+
}
|
2583
|
+
|
2584
|
+
// set vars
|
2585
|
+
var crsl = {
|
2586
|
+
'direction' : 'next',
|
2587
|
+
'isPaused' : true,
|
2588
|
+
'isScrolling' : false,
|
2589
|
+
'isStopped' : false,
|
2590
|
+
'mousewheel' : false,
|
2591
|
+
'swipe' : false
|
2592
|
+
},
|
2593
|
+
itms = {
|
2594
|
+
'total' : $cfs.children().length,
|
2595
|
+
'first' : 0
|
2596
|
+
},
|
2597
|
+
tmrs = {
|
2598
|
+
'auto' : null,
|
2599
|
+
'progress' : null,
|
2600
|
+
'startTime' : getTime(),
|
2601
|
+
'timePassed' : 0
|
2602
|
+
},
|
2603
|
+
scrl = {
|
2604
|
+
'isStopped' : false,
|
2605
|
+
'duration' : 0,
|
2606
|
+
'startTime' : 0,
|
2607
|
+
'easing' : '',
|
2608
|
+
'anims' : []
|
2609
|
+
},
|
2610
|
+
clbk = {
|
2611
|
+
'onBefore' : [],
|
2612
|
+
'onAfter' : []
|
2613
|
+
},
|
2614
|
+
queu = [],
|
2615
|
+
conf = $.extend(true, {}, $.fn.carouFredSel.configs, configs),
|
2616
|
+
opts = {},
|
2617
|
+
opts_orig = $.extend(true, {}, options),
|
2618
|
+
$wrp = (conf.wrapper == 'parent')
|
2619
|
+
? $cfs.parent()
|
2620
|
+
: $cfs.wrap('<'+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />').parent();
|
2621
|
+
|
2622
|
+
|
2623
|
+
conf.selector = $cfs.selector;
|
2624
|
+
conf.serialNumber = $.fn.carouFredSel.serialNumber++;
|
2625
|
+
|
2626
|
+
conf.transition = (conf.transition && $.fn.transition) ? 'transition' : 'animate';
|
2627
|
+
|
2628
|
+
// create carousel
|
2629
|
+
FN._init(opts_orig, true, starting_position);
|
2630
|
+
FN._build();
|
2631
|
+
FN._bind_events();
|
2632
|
+
FN._bind_buttons();
|
2633
|
+
|
2634
|
+
// find item to start
|
2635
|
+
if (is_array(opts.items.start))
|
2636
|
+
{
|
2637
|
+
var start_arr = opts.items.start;
|
2638
|
+
}
|
2639
|
+
else
|
2640
|
+
{
|
2641
|
+
var start_arr = [];
|
2642
|
+
if (opts.items.start != 0)
|
2643
|
+
{
|
2644
|
+
start_arr.push(opts.items.start);
|
2645
|
+
}
|
2646
|
+
}
|
2647
|
+
if (opts.cookie)
|
2648
|
+
{
|
2649
|
+
start_arr.unshift(parseInt(cf_getCookie(opts.cookie), 10));
|
2650
|
+
}
|
2651
|
+
|
2652
|
+
if (start_arr.length > 0)
|
2653
|
+
{
|
2654
|
+
for (var a = 0, l = start_arr.length; a < l; a++)
|
2655
|
+
{
|
2656
|
+
var s = start_arr[a];
|
2657
|
+
if (s == 0)
|
2658
|
+
{
|
2659
|
+
continue;
|
2660
|
+
}
|
2661
|
+
if (s === true)
|
2662
|
+
{
|
2663
|
+
s = window.location.hash;
|
2664
|
+
if (s.length < 1)
|
2665
|
+
{
|
2666
|
+
continue;
|
2667
|
+
}
|
2668
|
+
}
|
2669
|
+
else if (s === 'random')
|
2670
|
+
{
|
2671
|
+
s = Math.floor(Math.random()*itms.total);
|
2672
|
+
}
|
2673
|
+
if ($cfs.triggerHandler(cf_e('slideTo', conf), [s, 0, true, { fx: 'none' }]))
|
2674
|
+
{
|
2675
|
+
break;
|
2676
|
+
}
|
2677
|
+
}
|
2678
|
+
}
|
2679
|
+
var siz = sz_setSizes($cfs, opts),
|
2680
|
+
itm = gi_getCurrentItems($cfs.children(), opts);
|
2681
|
+
|
2682
|
+
if (opts.onCreate)
|
2683
|
+
{
|
2684
|
+
opts.onCreate.call($tt0, {
|
2685
|
+
'width': siz.width,
|
2686
|
+
'height': siz.height,
|
2687
|
+
'items': itm
|
2688
|
+
});
|
2689
|
+
}
|
2690
|
+
|
2691
|
+
$cfs.trigger(cf_e('updatePageStatus', conf), [true, siz]);
|
2692
|
+
$cfs.trigger(cf_e('linkAnchors', conf));
|
2693
|
+
|
2694
|
+
if (conf.debug)
|
2695
|
+
{
|
2696
|
+
$cfs.trigger(cf_e('debug', conf));
|
2697
|
+
}
|
2698
|
+
|
2699
|
+
return $cfs;
|
2700
|
+
};
|
2701
|
+
|
2702
|
+
|
2703
|
+
|
2704
|
+
// GLOBAL PUBLIC
|
2705
|
+
|
2706
|
+
$.fn.carouFredSel.serialNumber = 1;
|
2707
|
+
$.fn.carouFredSel.defaults = {
|
2708
|
+
'synchronise' : false,
|
2709
|
+
'infinite' : true,
|
2710
|
+
'circular' : true,
|
2711
|
+
'responsive' : false,
|
2712
|
+
'direction' : 'left',
|
2713
|
+
'items' : {
|
2714
|
+
'start' : 0
|
2715
|
+
},
|
2716
|
+
'scroll' : {
|
2717
|
+
'easing' : 'swing',
|
2718
|
+
'duration' : 500,
|
2719
|
+
'pauseOnHover' : false,
|
2720
|
+
'event' : 'click',
|
2721
|
+
'queue' : false
|
2722
|
+
}
|
2723
|
+
};
|
2724
|
+
$.fn.carouFredSel.configs = {
|
2725
|
+
'debug' : false,
|
2726
|
+
'transition' : false,
|
2727
|
+
'onWindowResize': 'throttle',
|
2728
|
+
'events' : {
|
2729
|
+
'prefix' : '',
|
2730
|
+
'namespace' : 'cfs'
|
2731
|
+
},
|
2732
|
+
'wrapper' : {
|
2733
|
+
'element' : 'div',
|
2734
|
+
'classname' : 'caroufredsel_wrapper'
|
2735
|
+
},
|
2736
|
+
'classnames' : {}
|
2737
|
+
};
|
2738
|
+
$.fn.carouFredSel.pageAnchorBuilder = function(nr) {
|
2739
|
+
return '<a href="#"><span>'+nr+'</span></a>';
|
2740
|
+
};
|
2741
|
+
$.fn.carouFredSel.progressbarUpdater = function(perc) {
|
2742
|
+
$(this).css('width', perc+'%');
|
2743
|
+
};
|
2744
|
+
|
2745
|
+
$.fn.carouFredSel.cookie = {
|
2746
|
+
get: function(n) {
|
2747
|
+
n += '=';
|
2748
|
+
var ca = document.cookie.split(';');
|
2749
|
+
for (var a = 0, l = ca.length; a < l; a++)
|
2750
|
+
{
|
2751
|
+
var c = ca[a];
|
2752
|
+
while (c.charAt(0) == ' ')
|
2753
|
+
{
|
2754
|
+
c = c.slice(1);
|
2755
|
+
}
|
2756
|
+
if (c.indexOf(n) == 0)
|
2757
|
+
{
|
2758
|
+
return c.slice(n.length);
|
2759
|
+
}
|
2760
|
+
}
|
2761
|
+
return 0;
|
2762
|
+
},
|
2763
|
+
set: function(n, v, d) {
|
2764
|
+
var e = "";
|
2765
|
+
if (d)
|
2766
|
+
{
|
2767
|
+
var date = new Date();
|
2768
|
+
date.setTime(date.getTime() + (d * 24 * 60 * 60 * 1000));
|
2769
|
+
e = "; expires=" + date.toGMTString();
|
2770
|
+
}
|
2771
|
+
document.cookie = n + '=' + v + e + '; path=/';
|
2772
|
+
},
|
2773
|
+
remove: function(n) {
|
2774
|
+
$.fn.carouFredSel.cookie.set(n, "", -1);
|
2775
|
+
}
|
2776
|
+
};
|
2777
|
+
|
2778
|
+
|
2779
|
+
// GLOBAL PRIVATE
|
2780
|
+
|
2781
|
+
// scrolling functions
|
2782
|
+
function sc_setScroll(d, e, c) {
|
2783
|
+
if (c.transition == 'transition')
|
2784
|
+
{
|
2785
|
+
if (e == 'swing')
|
2786
|
+
{
|
2787
|
+
e = 'ease';
|
2788
|
+
}
|
2789
|
+
}
|
2790
|
+
return {
|
2791
|
+
anims: [],
|
2792
|
+
duration: d,
|
2793
|
+
orgDuration: d,
|
2794
|
+
easing: e,
|
2795
|
+
startTime: getTime()
|
2796
|
+
};
|
2797
|
+
}
|
2798
|
+
function sc_startScroll(s, c) {
|
2799
|
+
for (var a = 0, l = s.anims.length; a < l; a++)
|
2800
|
+
{
|
2801
|
+
var b = s.anims[a];
|
2802
|
+
if (!b)
|
2803
|
+
{
|
2804
|
+
continue;
|
2805
|
+
}
|
2806
|
+
b[0][c.transition](b[1], s.duration, s.easing, b[2]);
|
2807
|
+
}
|
2808
|
+
}
|
2809
|
+
function sc_stopScroll(s, finish) {
|
2810
|
+
if (!is_boolean(finish))
|
2811
|
+
{
|
2812
|
+
finish = true;
|
2813
|
+
}
|
2814
|
+
if (is_object(s.pre))
|
2815
|
+
{
|
2816
|
+
sc_stopScroll(s.pre, finish);
|
2817
|
+
}
|
2818
|
+
for (var a = 0, l = s.anims.length; a < l; a++)
|
2819
|
+
{
|
2820
|
+
var b = s.anims[a];
|
2821
|
+
b[0].stop(true);
|
2822
|
+
if (finish)
|
2823
|
+
{
|
2824
|
+
b[0].css(b[1]);
|
2825
|
+
if (is_function(b[2]))
|
2826
|
+
{
|
2827
|
+
b[2]();
|
2828
|
+
}
|
2829
|
+
}
|
2830
|
+
}
|
2831
|
+
if (is_object(s.post))
|
2832
|
+
{
|
2833
|
+
sc_stopScroll(s.post, finish);
|
2834
|
+
}
|
2835
|
+
}
|
2836
|
+
function sc_afterScroll( $c, $c2, o ) {
|
2837
|
+
if ($c2)
|
2838
|
+
{
|
2839
|
+
$c2.remove();
|
2840
|
+
}
|
2841
|
+
|
2842
|
+
switch(o.fx) {
|
2843
|
+
case 'fade':
|
2844
|
+
case 'crossfade':
|
2845
|
+
case 'cover-fade':
|
2846
|
+
case 'uncover-fade':
|
2847
|
+
$c.css('opacity', 1);
|
2848
|
+
$c.css('filter', '');
|
2849
|
+
break;
|
2850
|
+
}
|
2851
|
+
}
|
2852
|
+
function sc_fireCallbacks($t, o, b, a, c) {
|
2853
|
+
if (o[b])
|
2854
|
+
{
|
2855
|
+
o[b].call($t, a);
|
2856
|
+
}
|
2857
|
+
if (c[b].length)
|
2858
|
+
{
|
2859
|
+
for (var i = 0, l = c[b].length; i < l; i++)
|
2860
|
+
{
|
2861
|
+
c[b][i].call($t, a);
|
2862
|
+
}
|
2863
|
+
}
|
2864
|
+
return [];
|
2865
|
+
}
|
2866
|
+
function sc_fireQueue($c, q, c) {
|
2867
|
+
|
2868
|
+
if (q.length)
|
2869
|
+
{
|
2870
|
+
$c.trigger(cf_e(q[0][0], c), q[0][1]);
|
2871
|
+
q.shift();
|
2872
|
+
}
|
2873
|
+
return q;
|
2874
|
+
}
|
2875
|
+
function sc_hideHiddenItems(hiddenitems) {
|
2876
|
+
hiddenitems.each(function() {
|
2877
|
+
var hi = $(this);
|
2878
|
+
hi.data('_cfs_isHidden', hi.is(':hidden')).hide();
|
2879
|
+
});
|
2880
|
+
}
|
2881
|
+
function sc_showHiddenItems(hiddenitems) {
|
2882
|
+
if (hiddenitems)
|
2883
|
+
{
|
2884
|
+
hiddenitems.each(function() {
|
2885
|
+
var hi = $(this);
|
2886
|
+
if (!hi.data('_cfs_isHidden'))
|
2887
|
+
{
|
2888
|
+
hi.show();
|
2889
|
+
}
|
2890
|
+
});
|
2891
|
+
}
|
2892
|
+
}
|
2893
|
+
function sc_clearTimers(t) {
|
2894
|
+
if (t.auto)
|
2895
|
+
{
|
2896
|
+
clearTimeout(t.auto);
|
2897
|
+
}
|
2898
|
+
if (t.progress)
|
2899
|
+
{
|
2900
|
+
clearInterval(t.progress);
|
2901
|
+
}
|
2902
|
+
return t;
|
2903
|
+
}
|
2904
|
+
function sc_mapCallbackArguments(i_old, i_skp, i_new, s_itm, s_dir, s_dur, w_siz) {
|
2905
|
+
return {
|
2906
|
+
'width': w_siz.width,
|
2907
|
+
'height': w_siz.height,
|
2908
|
+
'items': {
|
2909
|
+
'old': i_old,
|
2910
|
+
'skipped': i_skp,
|
2911
|
+
'visible': i_new
|
2912
|
+
},
|
2913
|
+
'scroll': {
|
2914
|
+
'items': s_itm,
|
2915
|
+
'direction': s_dir,
|
2916
|
+
'duration': s_dur
|
2917
|
+
}
|
2918
|
+
};
|
2919
|
+
}
|
2920
|
+
function sc_getDuration( sO, o, nI, siz ) {
|
2921
|
+
var dur = sO.duration;
|
2922
|
+
if (sO.fx == 'none')
|
2923
|
+
{
|
2924
|
+
return 0;
|
2925
|
+
}
|
2926
|
+
if (dur == 'auto')
|
2927
|
+
{
|
2928
|
+
dur = o.scroll.duration / o.scroll.items * nI;
|
2929
|
+
}
|
2930
|
+
else if (dur < 10)
|
2931
|
+
{
|
2932
|
+
dur = siz / dur;
|
2933
|
+
}
|
2934
|
+
if (dur < 1)
|
2935
|
+
{
|
2936
|
+
return 0;
|
2937
|
+
}
|
2938
|
+
if (sO.fx == 'fade')
|
2939
|
+
{
|
2940
|
+
dur = dur / 2;
|
2941
|
+
}
|
2942
|
+
return Math.round(dur);
|
2943
|
+
}
|
2944
|
+
|
2945
|
+
// navigation functions
|
2946
|
+
function nv_showNavi(o, t, c) {
|
2947
|
+
var minimum = (is_number(o.items.minimum)) ? o.items.minimum : o.items.visible + 1;
|
2948
|
+
if (t == 'show' || t == 'hide')
|
2949
|
+
{
|
2950
|
+
var f = t;
|
2951
|
+
}
|
2952
|
+
else if (minimum > t)
|
2953
|
+
{
|
2954
|
+
debug(c, 'Not enough items ('+t+' total, '+minimum+' needed): Hiding navigation.');
|
2955
|
+
var f = 'hide';
|
2956
|
+
}
|
2957
|
+
else
|
2958
|
+
{
|
2959
|
+
var f = 'show';
|
2960
|
+
}
|
2961
|
+
var s = (f == 'show') ? 'removeClass' : 'addClass',
|
2962
|
+
h = cf_c('hidden', c);
|
2963
|
+
|
2964
|
+
if (o.auto.button)
|
2965
|
+
{
|
2966
|
+
o.auto.button[f]()[s](h);
|
2967
|
+
}
|
2968
|
+
if (o.prev.button)
|
2969
|
+
{
|
2970
|
+
o.prev.button[f]()[s](h);
|
2971
|
+
}
|
2972
|
+
if (o.next.button)
|
2973
|
+
{
|
2974
|
+
o.next.button[f]()[s](h);
|
2975
|
+
}
|
2976
|
+
if (o.pagination.container)
|
2977
|
+
{
|
2978
|
+
o.pagination.container[f]()[s](h);
|
2979
|
+
}
|
2980
|
+
}
|
2981
|
+
function nv_enableNavi(o, f, c) {
|
2982
|
+
if (o.circular || o.infinite) return;
|
2983
|
+
var fx = (f == 'removeClass' || f == 'addClass') ? f : false,
|
2984
|
+
di = cf_c('disabled', c);
|
2985
|
+
|
2986
|
+
if (o.auto.button && fx)
|
2987
|
+
{
|
2988
|
+
o.auto.button[fx](di);
|
2989
|
+
}
|
2990
|
+
if (o.prev.button)
|
2991
|
+
{
|
2992
|
+
var fn = fx || (f == 0) ? 'addClass' : 'removeClass';
|
2993
|
+
o.prev.button[fn](di);
|
2994
|
+
}
|
2995
|
+
if (o.next.button)
|
2996
|
+
{
|
2997
|
+
var fn = fx || (f == o.items.visible) ? 'addClass' : 'removeClass';
|
2998
|
+
o.next.button[fn](di);
|
2999
|
+
}
|
3000
|
+
}
|
3001
|
+
|
3002
|
+
// get object functions
|
3003
|
+
function go_getObject($tt, obj) {
|
3004
|
+
if (is_function(obj))
|
3005
|
+
{
|
3006
|
+
obj = obj.call($tt);
|
3007
|
+
}
|
3008
|
+
else if (is_undefined(obj))
|
3009
|
+
{
|
3010
|
+
obj = {};
|
3011
|
+
}
|
3012
|
+
return obj;
|
3013
|
+
}
|
3014
|
+
function go_getItemsObject($tt, obj) {
|
3015
|
+
obj = go_getObject($tt, obj);
|
3016
|
+
if (is_number(obj))
|
3017
|
+
{
|
3018
|
+
obj = {
|
3019
|
+
'visible': obj
|
3020
|
+
};
|
3021
|
+
}
|
3022
|
+
else if (obj == 'variable')
|
3023
|
+
{
|
3024
|
+
obj = {
|
3025
|
+
'visible': obj,
|
3026
|
+
'width': obj,
|
3027
|
+
'height': obj
|
3028
|
+
};
|
3029
|
+
}
|
3030
|
+
else if (!is_object(obj))
|
3031
|
+
{
|
3032
|
+
obj = {};
|
3033
|
+
}
|
3034
|
+
return obj;
|
3035
|
+
}
|
3036
|
+
function go_getScrollObject($tt, obj) {
|
3037
|
+
obj = go_getObject($tt, obj);
|
3038
|
+
if (is_number(obj))
|
3039
|
+
{
|
3040
|
+
if (obj <= 50)
|
3041
|
+
{
|
3042
|
+
obj = {
|
3043
|
+
'items': obj
|
3044
|
+
};
|
3045
|
+
}
|
3046
|
+
else
|
3047
|
+
{
|
3048
|
+
obj = {
|
3049
|
+
'duration': obj
|
3050
|
+
};
|
3051
|
+
}
|
3052
|
+
}
|
3053
|
+
else if (is_string(obj))
|
3054
|
+
{
|
3055
|
+
obj = {
|
3056
|
+
'easing': obj
|
3057
|
+
};
|
3058
|
+
}
|
3059
|
+
else if (!is_object(obj))
|
3060
|
+
{
|
3061
|
+
obj = {};
|
3062
|
+
}
|
3063
|
+
return obj;
|
3064
|
+
}
|
3065
|
+
function go_getNaviObject($tt, obj) {
|
3066
|
+
obj = go_getObject($tt, obj);
|
3067
|
+
if (is_string(obj))
|
3068
|
+
{
|
3069
|
+
var temp = cf_getKeyCode(obj);
|
3070
|
+
if (temp == -1)
|
3071
|
+
{
|
3072
|
+
obj = $(obj);
|
3073
|
+
}
|
3074
|
+
else
|
3075
|
+
{
|
3076
|
+
obj = temp;
|
3077
|
+
}
|
3078
|
+
}
|
3079
|
+
return obj;
|
3080
|
+
}
|
3081
|
+
|
3082
|
+
function go_getAutoObject($tt, obj) {
|
3083
|
+
obj = go_getNaviObject($tt, obj);
|
3084
|
+
if (is_jquery(obj))
|
3085
|
+
{
|
3086
|
+
obj = {
|
3087
|
+
'button': obj
|
3088
|
+
};
|
3089
|
+
}
|
3090
|
+
else if (is_boolean(obj))
|
3091
|
+
{
|
3092
|
+
obj = {
|
3093
|
+
'play': obj
|
3094
|
+
};
|
3095
|
+
}
|
3096
|
+
else if (is_number(obj))
|
3097
|
+
{
|
3098
|
+
obj = {
|
3099
|
+
'timeoutDuration': obj
|
3100
|
+
};
|
3101
|
+
}
|
3102
|
+
if (obj.progress)
|
3103
|
+
{
|
3104
|
+
if (is_string(obj.progress) || is_jquery(obj.progress))
|
3105
|
+
{
|
3106
|
+
obj.progress = {
|
3107
|
+
'bar': obj.progress
|
3108
|
+
};
|
3109
|
+
}
|
3110
|
+
}
|
3111
|
+
return obj;
|
3112
|
+
}
|
3113
|
+
function go_complementAutoObject($tt, obj) {
|
3114
|
+
if (is_function(obj.button))
|
3115
|
+
{
|
3116
|
+
obj.button = obj.button.call($tt);
|
3117
|
+
}
|
3118
|
+
if (is_string(obj.button))
|
3119
|
+
{
|
3120
|
+
obj.button = $(obj.button);
|
3121
|
+
}
|
3122
|
+
if (!is_boolean(obj.play))
|
3123
|
+
{
|
3124
|
+
obj.play = true;
|
3125
|
+
}
|
3126
|
+
if (!is_number(obj.delay))
|
3127
|
+
{
|
3128
|
+
obj.delay = 0;
|
3129
|
+
}
|
3130
|
+
if (is_undefined(obj.pauseOnEvent))
|
3131
|
+
{
|
3132
|
+
obj.pauseOnEvent = true;
|
3133
|
+
}
|
3134
|
+
if (!is_boolean(obj.pauseOnResize))
|
3135
|
+
{
|
3136
|
+
obj.pauseOnResize = true;
|
3137
|
+
}
|
3138
|
+
if (!is_number(obj.timeoutDuration))
|
3139
|
+
{
|
3140
|
+
obj.timeoutDuration = (obj.duration < 10)
|
3141
|
+
? 2500
|
3142
|
+
: obj.duration * 5;
|
3143
|
+
}
|
3144
|
+
if (obj.progress)
|
3145
|
+
{
|
3146
|
+
if (is_function(obj.progress.bar))
|
3147
|
+
{
|
3148
|
+
obj.progress.bar = obj.progress.bar.call($tt);
|
3149
|
+
}
|
3150
|
+
if (is_string(obj.progress.bar))
|
3151
|
+
{
|
3152
|
+
obj.progress.bar = $(obj.progress.bar);
|
3153
|
+
}
|
3154
|
+
if (obj.progress.bar)
|
3155
|
+
{
|
3156
|
+
if (!is_function(obj.progress.updater))
|
3157
|
+
{
|
3158
|
+
obj.progress.updater = $.fn.carouFredSel.progressbarUpdater;
|
3159
|
+
}
|
3160
|
+
if (!is_number(obj.progress.interval))
|
3161
|
+
{
|
3162
|
+
obj.progress.interval = 50;
|
3163
|
+
}
|
3164
|
+
}
|
3165
|
+
else
|
3166
|
+
{
|
3167
|
+
obj.progress = false;
|
3168
|
+
}
|
3169
|
+
}
|
3170
|
+
return obj;
|
3171
|
+
}
|
3172
|
+
|
3173
|
+
function go_getPrevNextObject($tt, obj) {
|
3174
|
+
obj = go_getNaviObject($tt, obj);
|
3175
|
+
if (is_jquery(obj))
|
3176
|
+
{
|
3177
|
+
obj = {
|
3178
|
+
'button': obj
|
3179
|
+
};
|
3180
|
+
}
|
3181
|
+
else if (is_number(obj))
|
3182
|
+
{
|
3183
|
+
obj = {
|
3184
|
+
'key': obj
|
3185
|
+
};
|
3186
|
+
}
|
3187
|
+
return obj;
|
3188
|
+
}
|
3189
|
+
function go_complementPrevNextObject($tt, obj) {
|
3190
|
+
if (is_function(obj.button))
|
3191
|
+
{
|
3192
|
+
obj.button = obj.button.call($tt);
|
3193
|
+
}
|
3194
|
+
if (is_string(obj.button))
|
3195
|
+
{
|
3196
|
+
obj.button = $(obj.button);
|
3197
|
+
}
|
3198
|
+
if (is_string(obj.key))
|
3199
|
+
{
|
3200
|
+
obj.key = cf_getKeyCode(obj.key);
|
3201
|
+
}
|
3202
|
+
return obj;
|
3203
|
+
}
|
3204
|
+
|
3205
|
+
function go_getPaginationObject($tt, obj) {
|
3206
|
+
obj = go_getNaviObject($tt, obj);
|
3207
|
+
if (is_jquery(obj))
|
3208
|
+
{
|
3209
|
+
obj = {
|
3210
|
+
'container': obj
|
3211
|
+
};
|
3212
|
+
}
|
3213
|
+
else if (is_boolean(obj))
|
3214
|
+
{
|
3215
|
+
obj = {
|
3216
|
+
'keys': obj
|
3217
|
+
};
|
3218
|
+
}
|
3219
|
+
return obj;
|
3220
|
+
}
|
3221
|
+
function go_complementPaginationObject($tt, obj) {
|
3222
|
+
if (is_function(obj.container))
|
3223
|
+
{
|
3224
|
+
obj.container = obj.container.call($tt);
|
3225
|
+
}
|
3226
|
+
if (is_string(obj.container))
|
3227
|
+
{
|
3228
|
+
obj.container = $(obj.container);
|
3229
|
+
}
|
3230
|
+
if (!is_number(obj.items))
|
3231
|
+
{
|
3232
|
+
obj.items = false;
|
3233
|
+
}
|
3234
|
+
if (!is_boolean(obj.keys))
|
3235
|
+
{
|
3236
|
+
obj.keys = false;
|
3237
|
+
}
|
3238
|
+
if (!is_function(obj.anchorBuilder) && !is_false(obj.anchorBuilder))
|
3239
|
+
{
|
3240
|
+
obj.anchorBuilder = $.fn.carouFredSel.pageAnchorBuilder;
|
3241
|
+
}
|
3242
|
+
if (!is_number(obj.deviation))
|
3243
|
+
{
|
3244
|
+
obj.deviation = 0;
|
3245
|
+
}
|
3246
|
+
return obj;
|
3247
|
+
}
|
3248
|
+
|
3249
|
+
function go_getSwipeObject($tt, obj) {
|
3250
|
+
if (is_function(obj))
|
3251
|
+
{
|
3252
|
+
obj = obj.call($tt);
|
3253
|
+
}
|
3254
|
+
if (is_undefined(obj))
|
3255
|
+
{
|
3256
|
+
obj = {
|
3257
|
+
'onTouch': false
|
3258
|
+
};
|
3259
|
+
}
|
3260
|
+
if (is_true(obj))
|
3261
|
+
{
|
3262
|
+
obj = {
|
3263
|
+
'onTouch': obj
|
3264
|
+
};
|
3265
|
+
}
|
3266
|
+
else if (is_number(obj))
|
3267
|
+
{
|
3268
|
+
obj = {
|
3269
|
+
'items': obj
|
3270
|
+
};
|
3271
|
+
}
|
3272
|
+
return obj;
|
3273
|
+
}
|
3274
|
+
function go_complementSwipeObject($tt, obj) {
|
3275
|
+
if (!is_boolean(obj.onTouch))
|
3276
|
+
{
|
3277
|
+
obj.onTouch = true;
|
3278
|
+
}
|
3279
|
+
if (!is_boolean(obj.onMouse))
|
3280
|
+
{
|
3281
|
+
obj.onMouse = false;
|
3282
|
+
}
|
3283
|
+
if (!is_object(obj.options))
|
3284
|
+
{
|
3285
|
+
obj.options = {};
|
3286
|
+
}
|
3287
|
+
if (!is_boolean(obj.options.triggerOnTouchEnd))
|
3288
|
+
{
|
3289
|
+
obj.options.triggerOnTouchEnd = false;
|
3290
|
+
}
|
3291
|
+
return obj;
|
3292
|
+
}
|
3293
|
+
function go_getMousewheelObject($tt, obj) {
|
3294
|
+
if (is_function(obj))
|
3295
|
+
{
|
3296
|
+
obj = obj.call($tt);
|
3297
|
+
}
|
3298
|
+
if (is_true(obj))
|
3299
|
+
{
|
3300
|
+
obj = {};
|
3301
|
+
}
|
3302
|
+
else if (is_number(obj))
|
3303
|
+
{
|
3304
|
+
obj = {
|
3305
|
+
'items': obj
|
3306
|
+
};
|
3307
|
+
}
|
3308
|
+
else if (is_undefined(obj))
|
3309
|
+
{
|
3310
|
+
obj = false;
|
3311
|
+
}
|
3312
|
+
return obj;
|
3313
|
+
}
|
3314
|
+
function go_complementMousewheelObject($tt, obj) {
|
3315
|
+
return obj;
|
3316
|
+
}
|
3317
|
+
|
3318
|
+
// get number functions
|
3319
|
+
function gn_getItemIndex(num, dev, org, items, $cfs) {
|
3320
|
+
if (is_string(num))
|
3321
|
+
{
|
3322
|
+
num = $(num, $cfs);
|
3323
|
+
}
|
3324
|
+
|
3325
|
+
if (is_object(num))
|
3326
|
+
{
|
3327
|
+
num = $(num, $cfs);
|
3328
|
+
}
|
3329
|
+
if (is_jquery(num))
|
3330
|
+
{
|
3331
|
+
num = $cfs.children().index(num);
|
3332
|
+
if (!is_boolean(org))
|
3333
|
+
{
|
3334
|
+
org = false;
|
3335
|
+
}
|
3336
|
+
}
|
3337
|
+
else
|
3338
|
+
{
|
3339
|
+
if (!is_boolean(org))
|
3340
|
+
{
|
3341
|
+
org = true;
|
3342
|
+
}
|
3343
|
+
}
|
3344
|
+
if (!is_number(num))
|
3345
|
+
{
|
3346
|
+
num = 0;
|
3347
|
+
}
|
3348
|
+
if (!is_number(dev))
|
3349
|
+
{
|
3350
|
+
dev = 0;
|
3351
|
+
}
|
3352
|
+
|
3353
|
+
if (org)
|
3354
|
+
{
|
3355
|
+
num += items.first;
|
3356
|
+
}
|
3357
|
+
num += dev;
|
3358
|
+
if (items.total > 0)
|
3359
|
+
{
|
3360
|
+
while (num >= items.total)
|
3361
|
+
{
|
3362
|
+
num -= items.total;
|
3363
|
+
}
|
3364
|
+
while (num < 0)
|
3365
|
+
{
|
3366
|
+
num += items.total;
|
3367
|
+
}
|
3368
|
+
}
|
3369
|
+
return num;
|
3370
|
+
}
|
3371
|
+
|
3372
|
+
// items prev
|
3373
|
+
function gn_getVisibleItemsPrev(i, o, s) {
|
3374
|
+
var t = 0,
|
3375
|
+
x = 0;
|
3376
|
+
|
3377
|
+
for (var a = s; a >= 0; a--)
|
3378
|
+
{
|
3379
|
+
var j = i.eq(a);
|
3380
|
+
t += (j.is(':visible')) ? j[o.d['outerWidth']](true) : 0;
|
3381
|
+
if (t > o.maxDimension)
|
3382
|
+
{
|
3383
|
+
return x;
|
3384
|
+
}
|
3385
|
+
if (a == 0)
|
3386
|
+
{
|
3387
|
+
a = i.length;
|
3388
|
+
}
|
3389
|
+
x++;
|
3390
|
+
}
|
3391
|
+
}
|
3392
|
+
function gn_getVisibleItemsPrevFilter(i, o, s) {
|
3393
|
+
return gn_getItemsPrevFilter(i, o.items.filter, o.items.visibleConf.org, s);
|
3394
|
+
}
|
3395
|
+
function gn_getScrollItemsPrevFilter(i, o, s, m) {
|
3396
|
+
return gn_getItemsPrevFilter(i, o.items.filter, m, s);
|
3397
|
+
}
|
3398
|
+
function gn_getItemsPrevFilter(i, f, m, s) {
|
3399
|
+
var t = 0,
|
3400
|
+
x = 0;
|
3401
|
+
|
3402
|
+
for (var a = s, l = i.length; a >= 0; a--)
|
3403
|
+
{
|
3404
|
+
x++;
|
3405
|
+
if (x == l)
|
3406
|
+
{
|
3407
|
+
return x;
|
3408
|
+
}
|
3409
|
+
|
3410
|
+
var j = i.eq(a);
|
3411
|
+
if (j.is(f))
|
3412
|
+
{
|
3413
|
+
t++;
|
3414
|
+
if (t == m)
|
3415
|
+
{
|
3416
|
+
return x;
|
3417
|
+
}
|
3418
|
+
}
|
3419
|
+
if (a == 0)
|
3420
|
+
{
|
3421
|
+
a = l;
|
3422
|
+
}
|
3423
|
+
}
|
3424
|
+
}
|
3425
|
+
|
3426
|
+
function gn_getVisibleOrg($c, o) {
|
3427
|
+
return o.items.visibleConf.org || $c.children().slice(0, o.items.visible).filter(o.items.filter).length;
|
3428
|
+
}
|
3429
|
+
|
3430
|
+
// items next
|
3431
|
+
function gn_getVisibleItemsNext(i, o, s) {
|
3432
|
+
var t = 0,
|
3433
|
+
x = 0;
|
3434
|
+
|
3435
|
+
for (var a = s, l = i.length-1; a <= l; a++)
|
3436
|
+
{
|
3437
|
+
var j = i.eq(a);
|
3438
|
+
|
3439
|
+
t += (j.is(':visible')) ? j[o.d['outerWidth']](true) : 0;
|
3440
|
+
if (t > o.maxDimension)
|
3441
|
+
{
|
3442
|
+
return x;
|
3443
|
+
}
|
3444
|
+
|
3445
|
+
x++;
|
3446
|
+
if (x == l+1)
|
3447
|
+
{
|
3448
|
+
return x;
|
3449
|
+
}
|
3450
|
+
if (a == l)
|
3451
|
+
{
|
3452
|
+
a = -1;
|
3453
|
+
}
|
3454
|
+
}
|
3455
|
+
}
|
3456
|
+
function gn_getVisibleItemsNextTestCircular(i, o, s, l) {
|
3457
|
+
var v = gn_getVisibleItemsNext(i, o, s);
|
3458
|
+
if (!o.circular)
|
3459
|
+
{
|
3460
|
+
if (s + v > l)
|
3461
|
+
{
|
3462
|
+
v = l - s;
|
3463
|
+
}
|
3464
|
+
}
|
3465
|
+
return v;
|
3466
|
+
}
|
3467
|
+
function gn_getVisibleItemsNextFilter(i, o, s) {
|
3468
|
+
return gn_getItemsNextFilter(i, o.items.filter, o.items.visibleConf.org, s, o.circular);
|
3469
|
+
}
|
3470
|
+
function gn_getScrollItemsNextFilter(i, o, s, m) {
|
3471
|
+
return gn_getItemsNextFilter(i, o.items.filter, m+1, s, o.circular) - 1;
|
3472
|
+
}
|
3473
|
+
function gn_getItemsNextFilter(i, f, m, s, c) {
|
3474
|
+
var t = 0,
|
3475
|
+
x = 0;
|
3476
|
+
|
3477
|
+
for (var a = s, l = i.length-1; a <= l; a++)
|
3478
|
+
{
|
3479
|
+
x++;
|
3480
|
+
if (x >= l)
|
3481
|
+
{
|
3482
|
+
return x;
|
3483
|
+
}
|
3484
|
+
|
3485
|
+
var j = i.eq(a);
|
3486
|
+
if (j.is(f))
|
3487
|
+
{
|
3488
|
+
t++;
|
3489
|
+
if (t == m)
|
3490
|
+
{
|
3491
|
+
return x;
|
3492
|
+
}
|
3493
|
+
}
|
3494
|
+
if (a == l)
|
3495
|
+
{
|
3496
|
+
a = -1;
|
3497
|
+
}
|
3498
|
+
}
|
3499
|
+
}
|
3500
|
+
|
3501
|
+
// get items functions
|
3502
|
+
function gi_getCurrentItems(i, o) {
|
3503
|
+
return i.slice(0, o.items.visible);
|
3504
|
+
}
|
3505
|
+
function gi_getOldItemsPrev(i, o, n) {
|
3506
|
+
return i.slice(n, o.items.visibleConf.old+n);
|
3507
|
+
}
|
3508
|
+
function gi_getNewItemsPrev(i, o) {
|
3509
|
+
return i.slice(0, o.items.visible);
|
3510
|
+
}
|
3511
|
+
function gi_getOldItemsNext(i, o) {
|
3512
|
+
return i.slice(0, o.items.visibleConf.old);
|
3513
|
+
}
|
3514
|
+
function gi_getNewItemsNext(i, o, n) {
|
3515
|
+
return i.slice(n, o.items.visible+n);
|
3516
|
+
}
|
3517
|
+
|
3518
|
+
// sizes functions
|
3519
|
+
function sz_storeMargin(i, o, d) {
|
3520
|
+
if (o.usePadding)
|
3521
|
+
{
|
3522
|
+
if (!is_string(d))
|
3523
|
+
{
|
3524
|
+
d = '_cfs_origCssMargin';
|
3525
|
+
}
|
3526
|
+
i.each(function() {
|
3527
|
+
var j = $(this),
|
3528
|
+
m = parseInt(j.css(o.d['marginRight']), 10);
|
3529
|
+
if (!is_number(m))
|
3530
|
+
{
|
3531
|
+
m = 0;
|
3532
|
+
}
|
3533
|
+
j.data(d, m);
|
3534
|
+
});
|
3535
|
+
}
|
3536
|
+
}
|
3537
|
+
function sz_resetMargin(i, o, m) {
|
3538
|
+
if (o.usePadding)
|
3539
|
+
{
|
3540
|
+
var x = (is_boolean(m)) ? m : false;
|
3541
|
+
if (!is_number(m))
|
3542
|
+
{
|
3543
|
+
m = 0;
|
3544
|
+
}
|
3545
|
+
sz_storeMargin(i, o, '_cfs_tempCssMargin');
|
3546
|
+
i.each(function() {
|
3547
|
+
var j = $(this);
|
3548
|
+
j.css(o.d['marginRight'], ((x) ? j.data('_cfs_tempCssMargin') : m + j.data('_cfs_origCssMargin')));
|
3549
|
+
});
|
3550
|
+
}
|
3551
|
+
}
|
3552
|
+
function sz_storeOrigCss(i) {
|
3553
|
+
i.each(function() {
|
3554
|
+
var j = $(this);
|
3555
|
+
j.data('_cfs_origCss', j.attr('style') || '');
|
3556
|
+
});
|
3557
|
+
}
|
3558
|
+
function sz_restoreOrigCss(i) {
|
3559
|
+
i.each(function() {
|
3560
|
+
var j = $(this);
|
3561
|
+
j.attr('style', j.data('_cfs_origCss') || '');
|
3562
|
+
});
|
3563
|
+
}
|
3564
|
+
function sz_setResponsiveSizes(o, all) {
|
3565
|
+
var visb = o.items.visible,
|
3566
|
+
newS = o.items[o.d['width']],
|
3567
|
+
seco = o[o.d['height']],
|
3568
|
+
secp = is_percentage(seco);
|
3569
|
+
|
3570
|
+
all.each(function() {
|
3571
|
+
var $t = $(this),
|
3572
|
+
nw = newS - ms_getPaddingBorderMargin($t, o, 'Width');
|
3573
|
+
|
3574
|
+
$t[o.d['width']](nw);
|
3575
|
+
if (secp)
|
3576
|
+
{
|
3577
|
+
$t[o.d['height']](ms_getPercentage(nw, seco));
|
3578
|
+
}
|
3579
|
+
});
|
3580
|
+
}
|
3581
|
+
function sz_setSizes($c, o) {
|
3582
|
+
var $w = $c.parent(),
|
3583
|
+
$i = $c.children(),
|
3584
|
+
$v = gi_getCurrentItems($i, o),
|
3585
|
+
sz = cf_mapWrapperSizes(ms_getSizes($v, o, true), o, false);
|
3586
|
+
|
3587
|
+
$w.css(sz);
|
3588
|
+
|
3589
|
+
if (o.usePadding)
|
3590
|
+
{
|
3591
|
+
var p = o.padding,
|
3592
|
+
r = p[o.d[1]];
|
3593
|
+
|
3594
|
+
if (o.align && r < 0)
|
3595
|
+
{
|
3596
|
+
r = 0;
|
3597
|
+
}
|
3598
|
+
var $l = $v.last();
|
3599
|
+
$l.css(o.d['marginRight'], $l.data('_cfs_origCssMargin') + r);
|
3600
|
+
$c.css(o.d['top'], p[o.d[0]]);
|
3601
|
+
$c.css(o.d['left'], p[o.d[3]]);
|
3602
|
+
}
|
3603
|
+
|
3604
|
+
$c.css(o.d['width'], sz[o.d['width']]+(ms_getTotalSize($i, o, 'width')*2));
|
3605
|
+
$c.css(o.d['height'], ms_getLargestSize($i, o, 'height'));
|
3606
|
+
return sz;
|
3607
|
+
}
|
3608
|
+
|
3609
|
+
// measuring functions
|
3610
|
+
function ms_getSizes(i, o, wrapper) {
|
3611
|
+
return [ms_getTotalSize(i, o, 'width', wrapper), ms_getLargestSize(i, o, 'height', wrapper)];
|
3612
|
+
}
|
3613
|
+
function ms_getLargestSize(i, o, dim, wrapper) {
|
3614
|
+
if (!is_boolean(wrapper))
|
3615
|
+
{
|
3616
|
+
wrapper = false;
|
3617
|
+
}
|
3618
|
+
if (is_number(o[o.d[dim]]) && wrapper)
|
3619
|
+
{
|
3620
|
+
return o[o.d[dim]];
|
3621
|
+
}
|
3622
|
+
if (is_number(o.items[o.d[dim]]))
|
3623
|
+
{
|
3624
|
+
return o.items[o.d[dim]];
|
3625
|
+
}
|
3626
|
+
dim = (dim.toLowerCase().indexOf('width') > -1) ? 'outerWidth' : 'outerHeight';
|
3627
|
+
return ms_getTrueLargestSize(i, o, dim);
|
3628
|
+
}
|
3629
|
+
function ms_getTrueLargestSize(i, o, dim) {
|
3630
|
+
var s = 0;
|
3631
|
+
|
3632
|
+
for (var a = 0, l = i.length; a < l; a++)
|
3633
|
+
{
|
3634
|
+
var j = i.eq(a);
|
3635
|
+
|
3636
|
+
var m = (j.is(':visible')) ? j[o.d[dim]](true) : 0;
|
3637
|
+
if (s < m)
|
3638
|
+
{
|
3639
|
+
s = m;
|
3640
|
+
}
|
3641
|
+
}
|
3642
|
+
return s;
|
3643
|
+
}
|
3644
|
+
|
3645
|
+
function ms_getTotalSize(i, o, dim, wrapper) {
|
3646
|
+
if (!is_boolean(wrapper))
|
3647
|
+
{
|
3648
|
+
wrapper = false;
|
3649
|
+
}
|
3650
|
+
if (is_number(o[o.d[dim]]) && wrapper)
|
3651
|
+
{
|
3652
|
+
return o[o.d[dim]];
|
3653
|
+
}
|
3654
|
+
if (is_number(o.items[o.d[dim]]))
|
3655
|
+
{
|
3656
|
+
return o.items[o.d[dim]] * i.length;
|
3657
|
+
}
|
3658
|
+
|
3659
|
+
var d = (dim.toLowerCase().indexOf('width') > -1) ? 'outerWidth' : 'outerHeight',
|
3660
|
+
s = 0;
|
3661
|
+
|
3662
|
+
for (var a = 0, l = i.length; a < l; a++)
|
3663
|
+
{
|
3664
|
+
var j = i.eq(a);
|
3665
|
+
s += (j.is(':visible')) ? j[o.d[d]](true) : 0;
|
3666
|
+
}
|
3667
|
+
return s;
|
3668
|
+
}
|
3669
|
+
function ms_getParentSize($w, o, d) {
|
3670
|
+
var isVisible = $w.is(':visible');
|
3671
|
+
if (isVisible)
|
3672
|
+
{
|
3673
|
+
$w.hide();
|
3674
|
+
}
|
3675
|
+
var s = $w.parent()[o.d[d]]();
|
3676
|
+
if (isVisible)
|
3677
|
+
{
|
3678
|
+
$w.show();
|
3679
|
+
}
|
3680
|
+
return s;
|
3681
|
+
}
|
3682
|
+
function ms_getMaxDimension(o, a) {
|
3683
|
+
return (is_number(o[o.d['width']])) ? o[o.d['width']] : a;
|
3684
|
+
}
|
3685
|
+
function ms_hasVariableSizes(i, o, dim) {
|
3686
|
+
var s = false,
|
3687
|
+
v = false;
|
3688
|
+
|
3689
|
+
for (var a = 0, l = i.length; a < l; a++)
|
3690
|
+
{
|
3691
|
+
var j = i.eq(a);
|
3692
|
+
|
3693
|
+
var c = (j.is(':visible')) ? j[o.d[dim]](true) : 0;
|
3694
|
+
if (s === false)
|
3695
|
+
{
|
3696
|
+
s = c;
|
3697
|
+
}
|
3698
|
+
else if (s != c)
|
3699
|
+
{
|
3700
|
+
v = true;
|
3701
|
+
}
|
3702
|
+
if (s == 0)
|
3703
|
+
{
|
3704
|
+
v = true;
|
3705
|
+
}
|
3706
|
+
}
|
3707
|
+
return v;
|
3708
|
+
}
|
3709
|
+
function ms_getPaddingBorderMargin(i, o, d) {
|
3710
|
+
return i[o.d['outer'+d]](true) - i[o.d[d.toLowerCase()]]();
|
3711
|
+
}
|
3712
|
+
function ms_getPercentage(s, o) {
|
3713
|
+
if (is_percentage(o))
|
3714
|
+
{
|
3715
|
+
o = parseInt( o.slice(0, -1), 10 );
|
3716
|
+
if (!is_number(o))
|
3717
|
+
{
|
3718
|
+
return s;
|
3719
|
+
}
|
3720
|
+
s *= o/100;
|
3721
|
+
}
|
3722
|
+
return s;
|
3723
|
+
}
|
3724
|
+
|
3725
|
+
// config functions
|
3726
|
+
function cf_e(n, c, pf, ns, rd) {
|
3727
|
+
if (!is_boolean(pf))
|
3728
|
+
{
|
3729
|
+
pf = true;
|
3730
|
+
}
|
3731
|
+
if (!is_boolean(ns))
|
3732
|
+
{
|
3733
|
+
ns = true;
|
3734
|
+
}
|
3735
|
+
if (!is_boolean(rd))
|
3736
|
+
{
|
3737
|
+
rd = false;
|
3738
|
+
}
|
3739
|
+
|
3740
|
+
if (pf)
|
3741
|
+
{
|
3742
|
+
n = c.events.prefix + n;
|
3743
|
+
}
|
3744
|
+
if (ns)
|
3745
|
+
{
|
3746
|
+
n = n +'.'+ c.events.namespace;
|
3747
|
+
}
|
3748
|
+
if (ns && rd)
|
3749
|
+
{
|
3750
|
+
n += c.serialNumber;
|
3751
|
+
}
|
3752
|
+
|
3753
|
+
return n;
|
3754
|
+
}
|
3755
|
+
function cf_c(n, c) {
|
3756
|
+
return (is_string(c.classnames[n])) ? c.classnames[n] : n;
|
3757
|
+
}
|
3758
|
+
function cf_mapWrapperSizes(ws, o, p) {
|
3759
|
+
if (!is_boolean(p))
|
3760
|
+
{
|
3761
|
+
p = true;
|
3762
|
+
}
|
3763
|
+
var pad = (o.usePadding && p) ? o.padding : [0, 0, 0, 0];
|
3764
|
+
var wra = {};
|
3765
|
+
|
3766
|
+
wra[o.d['width']] = ws[0] + pad[1] + pad[3];
|
3767
|
+
wra[o.d['height']] = ws[1] + pad[0] + pad[2];
|
3768
|
+
|
3769
|
+
return wra;
|
3770
|
+
}
|
3771
|
+
function cf_sortParams(vals, typs) {
|
3772
|
+
var arr = [];
|
3773
|
+
for (var a = 0, l1 = vals.length; a < l1; a++)
|
3774
|
+
{
|
3775
|
+
for (var b = 0, l2 = typs.length; b < l2; b++)
|
3776
|
+
{
|
3777
|
+
if (typs[b].indexOf(typeof vals[a]) > -1 && is_undefined(arr[b]))
|
3778
|
+
{
|
3779
|
+
arr[b] = vals[a];
|
3780
|
+
break;
|
3781
|
+
}
|
3782
|
+
}
|
3783
|
+
}
|
3784
|
+
return arr;
|
3785
|
+
}
|
3786
|
+
function cf_getPadding(p) {
|
3787
|
+
if (is_undefined(p))
|
3788
|
+
{
|
3789
|
+
return [0, 0, 0, 0];
|
3790
|
+
}
|
3791
|
+
if (is_number(p))
|
3792
|
+
{
|
3793
|
+
return [p, p, p, p];
|
3794
|
+
}
|
3795
|
+
if (is_string(p))
|
3796
|
+
{
|
3797
|
+
p = p.split('px').join('').split('em').join('').split(' ');
|
3798
|
+
}
|
3799
|
+
|
3800
|
+
if (!is_array(p))
|
3801
|
+
{
|
3802
|
+
return [0, 0, 0, 0];
|
3803
|
+
}
|
3804
|
+
for (var i = 0; i < 4; i++)
|
3805
|
+
{
|
3806
|
+
p[i] = parseInt(p[i], 10);
|
3807
|
+
}
|
3808
|
+
switch (p.length)
|
3809
|
+
{
|
3810
|
+
case 0:
|
3811
|
+
return [0, 0, 0, 0];
|
3812
|
+
case 1:
|
3813
|
+
return [p[0], p[0], p[0], p[0]];
|
3814
|
+
case 2:
|
3815
|
+
return [p[0], p[1], p[0], p[1]];
|
3816
|
+
case 3:
|
3817
|
+
return [p[0], p[1], p[2], p[1]];
|
3818
|
+
default:
|
3819
|
+
return [p[0], p[1], p[2], p[3]];
|
3820
|
+
}
|
3821
|
+
}
|
3822
|
+
function cf_getAlignPadding(itm, o) {
|
3823
|
+
var x = (is_number(o[o.d['width']])) ? Math.ceil(o[o.d['width']] - ms_getTotalSize(itm, o, 'width')) : 0;
|
3824
|
+
switch (o.align)
|
3825
|
+
{
|
3826
|
+
case 'left':
|
3827
|
+
return [0, x];
|
3828
|
+
case 'right':
|
3829
|
+
return [x, 0];
|
3830
|
+
case 'center':
|
3831
|
+
default:
|
3832
|
+
return [Math.ceil(x/2), Math.floor(x/2)];
|
3833
|
+
}
|
3834
|
+
}
|
3835
|
+
function cf_getDimensions(o) {
|
3836
|
+
var dm = [
|
3837
|
+
['width' , 'innerWidth' , 'outerWidth' , 'height' , 'innerHeight' , 'outerHeight' , 'left', 'top' , 'marginRight' , 0, 1, 2, 3],
|
3838
|
+
['height' , 'innerHeight' , 'outerHeight' , 'width' , 'innerWidth' , 'outerWidth' , 'top' , 'left', 'marginBottom', 3, 2, 1, 0]
|
3839
|
+
];
|
3840
|
+
|
3841
|
+
var dl = dm[0].length,
|
3842
|
+
dx = (o.direction == 'right' || o.direction == 'left') ? 0 : 1;
|
3843
|
+
|
3844
|
+
var dimensions = {};
|
3845
|
+
for (var d = 0; d < dl; d++)
|
3846
|
+
{
|
3847
|
+
dimensions[dm[0][d]] = dm[dx][d];
|
3848
|
+
}
|
3849
|
+
return dimensions;
|
3850
|
+
}
|
3851
|
+
function cf_getAdjust(x, o, a, $t) {
|
3852
|
+
var v = x;
|
3853
|
+
if (is_function(a))
|
3854
|
+
{
|
3855
|
+
v = a.call($t, v);
|
3856
|
+
|
3857
|
+
}
|
3858
|
+
else if (is_string(a))
|
3859
|
+
{
|
3860
|
+
var p = a.split('+'),
|
3861
|
+
m = a.split('-');
|
3862
|
+
|
3863
|
+
if (m.length > p.length)
|
3864
|
+
{
|
3865
|
+
var neg = true,
|
3866
|
+
sta = m[0],
|
3867
|
+
adj = m[1];
|
3868
|
+
}
|
3869
|
+
else
|
3870
|
+
{
|
3871
|
+
var neg = false,
|
3872
|
+
sta = p[0],
|
3873
|
+
adj = p[1];
|
3874
|
+
}
|
3875
|
+
|
3876
|
+
switch(sta)
|
3877
|
+
{
|
3878
|
+
case 'even':
|
3879
|
+
v = (x % 2 == 1) ? x-1 : x;
|
3880
|
+
break;
|
3881
|
+
case 'odd':
|
3882
|
+
v = (x % 2 == 0) ? x-1 : x;
|
3883
|
+
break;
|
3884
|
+
default:
|
3885
|
+
v = x;
|
3886
|
+
break;
|
3887
|
+
}
|
3888
|
+
adj = parseInt(adj, 10);
|
3889
|
+
if (is_number(adj))
|
3890
|
+
{
|
3891
|
+
if (neg)
|
3892
|
+
{
|
3893
|
+
adj = -adj;
|
3894
|
+
}
|
3895
|
+
v += adj;
|
3896
|
+
}
|
3897
|
+
}
|
3898
|
+
if (!is_number(v) || v < 1)
|
3899
|
+
{
|
3900
|
+
v = 1;
|
3901
|
+
}
|
3902
|
+
return v;
|
3903
|
+
}
|
3904
|
+
function cf_getItemsAdjust(x, o, a, $t) {
|
3905
|
+
return cf_getItemAdjustMinMax(cf_getAdjust(x, o, a, $t), o.items.visibleConf);
|
3906
|
+
}
|
3907
|
+
function cf_getItemAdjustMinMax(v, i) {
|
3908
|
+
if (is_number(i.min) && v < i.min)
|
3909
|
+
{
|
3910
|
+
v = i.min;
|
3911
|
+
}
|
3912
|
+
if (is_number(i.max) && v > i.max)
|
3913
|
+
{
|
3914
|
+
v = i.max;
|
3915
|
+
}
|
3916
|
+
if (v < 1)
|
3917
|
+
{
|
3918
|
+
v = 1;
|
3919
|
+
}
|
3920
|
+
return v;
|
3921
|
+
}
|
3922
|
+
function cf_getSynchArr(s) {
|
3923
|
+
if (!is_array(s))
|
3924
|
+
{
|
3925
|
+
s = [[s]];
|
3926
|
+
}
|
3927
|
+
if (!is_array(s[0]))
|
3928
|
+
{
|
3929
|
+
s = [s];
|
3930
|
+
}
|
3931
|
+
for (var j = 0, l = s.length; j < l; j++)
|
3932
|
+
{
|
3933
|
+
if (is_string(s[j][0]))
|
3934
|
+
{
|
3935
|
+
s[j][0] = $(s[j][0]);
|
3936
|
+
}
|
3937
|
+
if (!is_boolean(s[j][1]))
|
3938
|
+
{
|
3939
|
+
s[j][1] = true;
|
3940
|
+
}
|
3941
|
+
if (!is_boolean(s[j][2]))
|
3942
|
+
{
|
3943
|
+
s[j][2] = true;
|
3944
|
+
}
|
3945
|
+
if (!is_number(s[j][3]))
|
3946
|
+
{
|
3947
|
+
s[j][3] = 0;
|
3948
|
+
}
|
3949
|
+
}
|
3950
|
+
return s;
|
3951
|
+
}
|
3952
|
+
function cf_getKeyCode(k) {
|
3953
|
+
if (k == 'right')
|
3954
|
+
{
|
3955
|
+
return 39;
|
3956
|
+
}
|
3957
|
+
if (k == 'left')
|
3958
|
+
{
|
3959
|
+
return 37;
|
3960
|
+
}
|
3961
|
+
if (k == 'up')
|
3962
|
+
{
|
3963
|
+
return 38;
|
3964
|
+
}
|
3965
|
+
if (k == 'down')
|
3966
|
+
{
|
3967
|
+
return 40;
|
3968
|
+
}
|
3969
|
+
return -1;
|
3970
|
+
}
|
3971
|
+
function cf_setCookie(n, $c, c) {
|
3972
|
+
if (n)
|
3973
|
+
{
|
3974
|
+
var v = $c.triggerHandler(cf_e('currentPosition', c));
|
3975
|
+
$.fn.carouFredSel.cookie.set(n, v);
|
3976
|
+
}
|
3977
|
+
}
|
3978
|
+
function cf_getCookie(n) {
|
3979
|
+
var c = $.fn.carouFredSel.cookie.get(n);
|
3980
|
+
return (c == '') ? 0 : c;
|
3981
|
+
}
|
3982
|
+
|
3983
|
+
// init function
|
3984
|
+
function in_mapCss($elem, props) {
|
3985
|
+
var css = {};
|
3986
|
+
for (var p = 0, l = props.length; p < l; p++)
|
3987
|
+
{
|
3988
|
+
css[props[p]] = $elem.css(props[p]);
|
3989
|
+
}
|
3990
|
+
return css;
|
3991
|
+
}
|
3992
|
+
function in_complementItems(obj, opt, itm, sta) {
|
3993
|
+
if (!is_object(obj.visibleConf))
|
3994
|
+
{
|
3995
|
+
obj.visibleConf = {};
|
3996
|
+
}
|
3997
|
+
if (!is_object(obj.sizesConf))
|
3998
|
+
{
|
3999
|
+
obj.sizesConf = {};
|
4000
|
+
}
|
4001
|
+
|
4002
|
+
if (obj.start == 0 && is_number(sta))
|
4003
|
+
{
|
4004
|
+
obj.start = sta;
|
4005
|
+
}
|
4006
|
+
|
4007
|
+
// visible items
|
4008
|
+
if (is_object(obj.visible))
|
4009
|
+
{
|
4010
|
+
obj.visibleConf.min = obj.visible.min;
|
4011
|
+
obj.visibleConf.max = obj.visible.max;
|
4012
|
+
obj.visible = false;
|
4013
|
+
}
|
4014
|
+
else if (is_string(obj.visible))
|
4015
|
+
{
|
4016
|
+
// variable visible items
|
4017
|
+
if (obj.visible == 'variable')
|
4018
|
+
{
|
4019
|
+
obj.visibleConf.variable = true;
|
4020
|
+
}
|
4021
|
+
// adjust string visible items
|
4022
|
+
else
|
4023
|
+
{
|
4024
|
+
obj.visibleConf.adjust = obj.visible;
|
4025
|
+
}
|
4026
|
+
obj.visible = false;
|
4027
|
+
}
|
4028
|
+
else if (is_function(obj.visible))
|
4029
|
+
{
|
4030
|
+
obj.visibleConf.adjust = obj.visible;
|
4031
|
+
obj.visible = false;
|
4032
|
+
}
|
4033
|
+
|
4034
|
+
// set items filter
|
4035
|
+
if (!is_string(obj.filter))
|
4036
|
+
{
|
4037
|
+
obj.filter = (itm.filter(':hidden').length > 0) ? ':visible' : '*';
|
4038
|
+
}
|
4039
|
+
|
4040
|
+
// primary item-size not set
|
4041
|
+
if (!obj[opt.d['width']])
|
4042
|
+
{
|
4043
|
+
// responsive carousel -> set to largest
|
4044
|
+
if (opt.responsive)
|
4045
|
+
{
|
4046
|
+
debug(true, 'Set a '+opt.d['width']+' for the items!');
|
4047
|
+
obj[opt.d['width']] = ms_getTrueLargestSize(itm, opt, 'outerWidth');
|
4048
|
+
}
|
4049
|
+
// non-responsive -> measure it or set to "variable"
|
4050
|
+
else
|
4051
|
+
{
|
4052
|
+
obj[opt.d['width']] = (ms_hasVariableSizes(itm, opt, 'outerWidth'))
|
4053
|
+
? 'variable'
|
4054
|
+
: itm[opt.d['outerWidth']](true);
|
4055
|
+
}
|
4056
|
+
}
|
4057
|
+
|
4058
|
+
// secondary item-size not set -> measure it or set to "variable"
|
4059
|
+
if (!obj[opt.d['height']])
|
4060
|
+
{
|
4061
|
+
obj[opt.d['height']] = (ms_hasVariableSizes(itm, opt, 'outerHeight'))
|
4062
|
+
? 'variable'
|
4063
|
+
: itm[opt.d['outerHeight']](true);
|
4064
|
+
}
|
4065
|
+
|
4066
|
+
obj.sizesConf.width = obj.width;
|
4067
|
+
obj.sizesConf.height = obj.height;
|
4068
|
+
return obj;
|
4069
|
+
}
|
4070
|
+
function in_complementVisibleItems(opt, avl) {
|
4071
|
+
// primary item-size variable -> set visible items variable
|
4072
|
+
if (opt.items[opt.d['width']] == 'variable')
|
4073
|
+
{
|
4074
|
+
opt.items.visibleConf.variable = true;
|
4075
|
+
}
|
4076
|
+
if (!opt.items.visibleConf.variable) {
|
4077
|
+
// primary size is number -> calculate visible-items
|
4078
|
+
if (is_number(opt[opt.d['width']]))
|
4079
|
+
{
|
4080
|
+
opt.items.visible = Math.floor(opt[opt.d['width']] / opt.items[opt.d['width']]);
|
4081
|
+
}
|
4082
|
+
// measure and calculate primary size and visible-items
|
4083
|
+
else
|
4084
|
+
{
|
4085
|
+
opt.items.visible = Math.floor(avl / opt.items[opt.d['width']]);
|
4086
|
+
opt[opt.d['width']] = opt.items.visible * opt.items[opt.d['width']];
|
4087
|
+
if (!opt.items.visibleConf.adjust)
|
4088
|
+
{
|
4089
|
+
opt.align = false;
|
4090
|
+
}
|
4091
|
+
}
|
4092
|
+
if (opt.items.visible == 'Infinity' || opt.items.visible < 1)
|
4093
|
+
{
|
4094
|
+
debug(true, 'Not a valid number of visible items: Set to "variable".');
|
4095
|
+
opt.items.visibleConf.variable = true;
|
4096
|
+
}
|
4097
|
+
}
|
4098
|
+
return opt;
|
4099
|
+
}
|
4100
|
+
function in_complementPrimarySize(obj, opt, all) {
|
4101
|
+
// primary size set to auto -> measure largest item-size and set it
|
4102
|
+
if (obj == 'auto')
|
4103
|
+
{
|
4104
|
+
obj = ms_getTrueLargestSize(all, opt, 'outerWidth');
|
4105
|
+
}
|
4106
|
+
return obj;
|
4107
|
+
}
|
4108
|
+
function in_complementSecondarySize(obj, opt, all) {
|
4109
|
+
// secondary size set to auto -> measure largest item-size and set it
|
4110
|
+
if (obj == 'auto')
|
4111
|
+
{
|
4112
|
+
obj = ms_getTrueLargestSize(all, opt, 'outerHeight');
|
4113
|
+
}
|
4114
|
+
// secondary size not set -> set to secondary item-size
|
4115
|
+
if (!obj)
|
4116
|
+
{
|
4117
|
+
obj = opt.items[opt.d['height']];
|
4118
|
+
}
|
4119
|
+
return obj;
|
4120
|
+
}
|
4121
|
+
function in_getAlignPadding(o, all) {
|
4122
|
+
var p = cf_getAlignPadding(gi_getCurrentItems(all, o), o);
|
4123
|
+
o.padding[o.d[1]] = p[1];
|
4124
|
+
o.padding[o.d[3]] = p[0];
|
4125
|
+
return o;
|
4126
|
+
}
|
4127
|
+
function in_getResponsiveValues(o, all, avl) {
|
4128
|
+
|
4129
|
+
var visb = cf_getItemAdjustMinMax(Math.ceil(o[o.d['width']] / o.items[o.d['width']]), o.items.visibleConf);
|
4130
|
+
if (visb > all.length)
|
4131
|
+
{
|
4132
|
+
visb = all.length;
|
4133
|
+
}
|
4134
|
+
|
4135
|
+
var newS = Math.floor(o[o.d['width']]/visb);
|
4136
|
+
|
4137
|
+
o.items.visible = visb;
|
4138
|
+
o.items[o.d['width']] = newS;
|
4139
|
+
o[o.d['width']] = visb * newS;
|
4140
|
+
return o;
|
4141
|
+
}
|
4142
|
+
|
4143
|
+
|
4144
|
+
// buttons functions
|
4145
|
+
function bt_pauseOnHoverConfig(p) {
|
4146
|
+
if (is_string(p))
|
4147
|
+
{
|
4148
|
+
var i = (p.indexOf('immediate') > -1) ? true : false,
|
4149
|
+
r = (p.indexOf('resume') > -1) ? true : false;
|
4150
|
+
}
|
4151
|
+
else
|
4152
|
+
{
|
4153
|
+
var i = r = false;
|
4154
|
+
}
|
4155
|
+
return [i, r];
|
4156
|
+
}
|
4157
|
+
function bt_mousesheelNumber(mw) {
|
4158
|
+
return (is_number(mw)) ? mw : null
|
4159
|
+
}
|
4160
|
+
|
4161
|
+
// helper functions
|
4162
|
+
function is_null(a) {
|
4163
|
+
return (a === null);
|
4164
|
+
}
|
4165
|
+
function is_undefined(a) {
|
4166
|
+
return (is_null(a) || typeof a == 'undefined' || a === '' || a === 'undefined');
|
4167
|
+
}
|
4168
|
+
function is_array(a) {
|
4169
|
+
return (a instanceof Array);
|
4170
|
+
}
|
4171
|
+
function is_jquery(a) {
|
4172
|
+
return (a instanceof jQuery);
|
4173
|
+
}
|
4174
|
+
function is_object(a) {
|
4175
|
+
return ((a instanceof Object || typeof a == 'object') && !is_null(a) && !is_jquery(a) && !is_array(a) && !is_function(a));
|
4176
|
+
}
|
4177
|
+
function is_number(a) {
|
4178
|
+
return ((a instanceof Number || typeof a == 'number') && !isNaN(a));
|
4179
|
+
}
|
4180
|
+
function is_string(a) {
|
4181
|
+
return ((a instanceof String || typeof a == 'string') && !is_undefined(a) && !is_true(a) && !is_false(a));
|
4182
|
+
}
|
4183
|
+
function is_function(a) {
|
4184
|
+
return (a instanceof Function || typeof a == 'function');
|
4185
|
+
}
|
4186
|
+
function is_boolean(a) {
|
4187
|
+
return (a instanceof Boolean || typeof a == 'boolean' || is_true(a) || is_false(a));
|
4188
|
+
}
|
4189
|
+
function is_true(a) {
|
4190
|
+
return (a === true || a === 'true');
|
4191
|
+
}
|
4192
|
+
function is_false(a) {
|
4193
|
+
return (a === false || a === 'false');
|
4194
|
+
}
|
4195
|
+
function is_percentage(x) {
|
4196
|
+
return (is_string(x) && x.slice(-1) == '%');
|
4197
|
+
}
|
4198
|
+
|
4199
|
+
|
4200
|
+
function getTime() {
|
4201
|
+
return new Date().getTime();
|
4202
|
+
}
|
4203
|
+
|
4204
|
+
function deprecated( o, n ) {
|
4205
|
+
debug(true, o+' is DEPRECATED, support for it will be removed. Use '+n+' instead.');
|
4206
|
+
}
|
4207
|
+
function debug(d, m) {
|
4208
|
+
if (!is_undefined(window.console) && !is_undefined(window.console.log))
|
4209
|
+
{
|
4210
|
+
if (is_object(d))
|
4211
|
+
{
|
4212
|
+
var s = ' ('+d.selector+')';
|
4213
|
+
d = d.debug;
|
4214
|
+
}
|
4215
|
+
else
|
4216
|
+
{
|
4217
|
+
var s = '';
|
4218
|
+
}
|
4219
|
+
if (!d)
|
4220
|
+
{
|
4221
|
+
return false;
|
4222
|
+
}
|
4223
|
+
|
4224
|
+
if (is_string(m))
|
4225
|
+
{
|
4226
|
+
m = 'carouFredSel'+s+': ' + m;
|
4227
|
+
}
|
4228
|
+
else
|
4229
|
+
{
|
4230
|
+
m = ['carouFredSel'+s+':', m];
|
4231
|
+
}
|
4232
|
+
window.console.log(m);
|
4233
|
+
}
|
4234
|
+
return false;
|
4235
|
+
}
|
4236
|
+
|
4237
|
+
|
4238
|
+
|
4239
|
+
// EASING FUNCTIONS
|
4240
|
+
$.extend($.easing, {
|
4241
|
+
'quadratic': function(t) {
|
4242
|
+
var t2 = t * t;
|
4243
|
+
return t * (-t2 * t + 4 * t2 - 6 * t + 4);
|
4244
|
+
},
|
4245
|
+
'cubic': function(t) {
|
4246
|
+
return t * (4 * t * t - 9 * t + 6);
|
4247
|
+
},
|
4248
|
+
'elastic': function(t) {
|
4249
|
+
var t2 = t * t;
|
4250
|
+
return t * (33 * t2 * t2 - 106 * t2 * t + 126 * t2 - 67 * t + 15);
|
4251
|
+
}
|
4252
|
+
});
|
4253
|
+
|
4254
|
+
|
4255
|
+
})(jQuery);
|