Last active
February 6, 2017 18:05
-
-
Save dasbairagya/0d8c4a0d6e3ecbc8acdeea197661a2d7 to your computer and use it in GitHub Desktop.
Advance Login Register with modal popup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($){ | |
| "use strict"; | |
| /** | |
| * Page Preloader | |
| */ | |
| $("#introLoader").introLoader({ | |
| animation: { | |
| name: 'counterLoader', | |
| options: { | |
| ease: "easeOutSine", | |
| style: 'style-01', | |
| animationTime: 1000 | |
| } | |
| } | |
| }); | |
| /** | |
| * Sticky Header | |
| */ | |
| $(".container-wrapper").waypoint(function() { | |
| $(".navbar.navbar-fixed-top").toggleClass("navbar-sticky"); | |
| return false; | |
| }, { offset: "-20px" }); | |
| /** | |
| * Main Menu Slide Down Effect | |
| */ | |
| // Mouse-enter dropdown | |
| $('#navbar li').on("mouseenter", function() { | |
| $(this).find('ul').first().stop(true, true).delay(350).slideDown(500, 'easeInOutQuad'); | |
| }); | |
| // Mouse-leave dropdown | |
| $('#navbar li').on("mouseleave", function() { | |
| $(this).find('ul').first().stop(true, true).delay(100).slideUp(150, 'easeInOutQuad'); | |
| }); | |
| /** | |
| * Navbar Vertical - For example: use for dashboard menu | |
| */ | |
| if (screen && screen.width > 767 ) { | |
| // Mouse-enter dropdown | |
| $('.navbar-vertical li').on("mouseenter", function() { | |
| $(this).find('ul').first().stop(true, true).delay(450).slideDown(500, 'easeInOutQuad'); | |
| }); | |
| // Mouse-leave dropdown | |
| $('.navbar-vertical li').on("mouseleave", function() { | |
| $(this).find('ul').first().stop(true, true).delay(0).slideUp(150, 'easeInOutQuad'); | |
| }); | |
| } | |
| /** | |
| * Slicknav - a Mobile Menu | |
| */ | |
| var $slicknav_label; | |
| $('#responsive-menu').slicknav({ | |
| duration: 500, | |
| easingOpen: 'easeInExpo', | |
| easingClose: 'easeOutExpo', | |
| closedSymbol: '<i class="fa fa-plus"></i>', | |
| openedSymbol: '<i class="fa fa-minus"></i>', | |
| prependTo: '#slicknav-mobile', | |
| allowParentLinks: true, | |
| label:"" | |
| }); | |
| /** | |
| * Slicknav - a Dashboard Mobile Menu | |
| */ | |
| var $slicknav_label; | |
| $('#responsive-menu-dashboard').slicknav({ | |
| duration: 500, | |
| easingOpen: 'easeInExpo', | |
| easingClose: 'easeOutExpo', | |
| closedSymbol: '<i class="fa fa-plus"></i>', | |
| openedSymbol: '<i class="fa fa-minus"></i>', | |
| prependTo: '#slicknav-mobile-dashboard', | |
| allowParentLinks: true, | |
| label:"Dashboard Menu" | |
| }); | |
| /** | |
| * Smooth scroll to anchor | |
| */ | |
| $(function() { | |
| $('a.anchor[href*=#]:not([href=#])').on("click",function() { | |
| if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
| var target = $(this.hash); | |
| target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
| if (target.length) { | |
| $('html,body').animate({ | |
| scrollTop: (target.offset().top - 70) // 70px offset for navbar menu | |
| }, 1000); | |
| return false; | |
| } | |
| } | |
| }); | |
| }); | |
| /** | |
| * Effect Bootstrap Dropdown | |
| */ | |
| $('.bt-dropdown-click').on('show.bs.dropdown', function(e) { | |
| $(this).find('.dropdown-menu').first().stop(true, true).slideToggle(350); | |
| }); | |
| $('.bt-dropdown-click').on('hide.bs.dropdown', function(e) { | |
| $(this).find('.dropdown-menu').first().stop(true, true).slideToggle(350); | |
| }); | |
| $(document).on('click', '.dropdown-menu-form', function (e){ | |
| e.stopPropagation(); | |
| }); | |
| $(document).on('click', '.dropdown-menu-form button', function (e){ | |
| closeDropDownForm(e); | |
| }); | |
| /** | |
| * Another Bootstrap Toggle | |
| */ | |
| $('.another-toggle').each(function(){ | |
| if( $('h4',this).hasClass('active') ){ | |
| $(this).find('.another-toggle-content').show(); | |
| } | |
| }); | |
| $('.another-toggle h4').on("click",function() { | |
| if( $(this).hasClass('active') ){ | |
| $(this).removeClass('active'); | |
| $(this).next('.another-toggle-content').slideUp(); | |
| } else { | |
| $(this).addClass('active'); | |
| $(this).next('.another-toggle-content').slideDown(); | |
| } | |
| }); | |
| /** | |
| * Arrow for Menu has sub-menu | |
| */ | |
| if ($(window).width() > 992) { | |
| $(".navbar-arrow ul ul > li").has("ul").children("a").append("<i class='arrow-indicator fa fa-angle-right'></i>"); | |
| } | |
| /** | |
| * Back To Top | |
| */ | |
| $(window).scroll(function(){ | |
| if($(window).scrollTop() > 500){ | |
| $("#back-to-top").fadeIn(200); | |
| } else{ | |
| $("#back-to-top").fadeOut(200); | |
| } | |
| }); | |
| $('#back-to-top, .back-to-top').on("click",function() { | |
| $('html, body').animate({ scrollTop:0 }, '800'); | |
| return false; | |
| }); | |
| /** | |
| * Equal Content and Sidebar by Js | |
| */ | |
| var widthForEqualContentSidebar = $(window).width(); | |
| if ((widthForEqualContentSidebar > 768)) { | |
| // placing objects inside variables | |
| var content = $('.equal-content-sidebar-by-js .content-wrapper'); | |
| var sidebar = $('.equal-content-sidebar-by-js .sidebar-wrapper'); | |
| // get content and sidebar height in variables | |
| var getContentHeight = content.outerHeight(); | |
| var getSidebarHeight = sidebar.outerHeight(); | |
| // check if content height is bigger than sidebar | |
| if ( getContentHeight > getSidebarHeight ) { | |
| sidebar.css('min-height', getContentHeight); | |
| } | |
| // check if sidebar height is bigger than content | |
| if ( getSidebarHeight > getContentHeight ) { | |
| content.css('min-height', getSidebarHeight); | |
| } | |
| } | |
| /** | |
| * Bootstrap Tooltip | |
| */ | |
| $(function () { | |
| $('[data-toggle="tooltip"]').tooltip() | |
| }) | |
| /** | |
| * Fancy - Custom Select | |
| */ | |
| $('.custom-select').fancySelect(); // Custom select | |
| /** | |
| * Placeholder | |
| */ | |
| $("input, textarea").placeholder(); | |
| /** | |
| * Input Spinner | |
| */ | |
| $(".form-spin").TouchSpin({ | |
| buttondown_class: 'btn btn-spinner-down', | |
| buttonup_class: 'btn btn-spinner-up', | |
| buttondown_txt: '<i class="ion-minus"></i>', | |
| buttonup_txt: '<i class="ion-plus"></i>' | |
| }); | |
| /** | |
| * Typeahead - autocomplete form | |
| */ | |
| var data = { | |
| countries: ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", | |
| "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", | |
| "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", | |
| "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burma", | |
| "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", | |
| "Chile", "China", "Colombia", "Comoros", "Congo, Democratic Republic", "Congo, Republic of the", | |
| "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", | |
| "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", | |
| "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", | |
| "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Greenland", "Grenada", "Guatemala", "Guinea", | |
| "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", | |
| "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", | |
| "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", | |
| "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", | |
| "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", | |
| "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Mongolia", "Morocco", "Monaco", | |
| "Mozambique", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", | |
| "Nigeria", "Norway", "Oman", "Pakistan", "Panama", "Papua New Guinea", "Paraguay", "Peru", | |
| "Philippines", "Poland", "Portugal", "Romania", "Russia", "Rwanda", "Samoa", "San Marino", | |
| "Sao Tome", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", | |
| "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", | |
| "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", | |
| "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", | |
| "Turkmenistan", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", | |
| "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"], | |
| capitals: ["Abu Dhabi", "Abuja", "Accra", "Adamstown", "Addis Ababa", "Algiers", "Alofi", "Amman", "Amsterdam", | |
| "Andorra la Vella", "Ankara", "Antananarivo", "Apia", "Ashgabat", "Asmara", "Astana", "Asunción", "Athens", | |
| "Avarua", "Baghdad", "Baku", "Bamako", "Bandar Seri Begawan", "Bangkok", "Bangui", "Banjul", "Basseterre", | |
| "Beijing", "Beirut", "Belgrade", "Belmopan", "Berlin", "Bern", "Bishkek", "Bissau", "Bogotá", "Brasília", | |
| "Bratislava", "Brazzaville", "Bridgetown", "Brussels", "Bucharest", "Budapest", "Buenos Aires", "Bujumbura", | |
| "Cairo", "Canberra", "Caracas", "Castries", "Cayenne", "Charlotte Amalie", "Chisinau", "Cockburn Town", | |
| "Conakry", "Copenhagen", "Dakar", "Damascus", "Dhaka", "Dili", "Djibouti", "Dodoma", "Doha", "Douglas", | |
| "Dublin", "Dushanbe", "Edinburgh of the Seven Seas", "El Aaiún", "Episkopi Cantonment", "Flying Fish Cove", | |
| "Freetown", "Funafuti", "Gaborone", "George Town", "Georgetown", "Georgetown", "Gibraltar", "King Edward Point", | |
| "Guatemala City", "Gustavia", "Hagåtña", "Hamilton", "Hanga Roa", "Hanoi", "Harare", "Hargeisa", "Havana", | |
| "Helsinki", "Honiara", "Islamabad", "Jakarta", "Jamestown", "Jerusalem", "Juba", "Kabul", "Kampala", | |
| "Kathmandu", "Khartoum", "Kiev", "Kigali", "Kingston", "Kingston", "Kingstown", "Kinshasa", "Kuala Lumpur", | |
| "Kuwait City", "Libreville", "Lilongwe", "Lima", "Lisbon", "Ljubljana", "Lomé", "London", "Luanda", "Lusaka", | |
| "Luxembourg", "Madrid", "Majuro", "Malabo", "Malé", "Managua", "Manama", "Manila", "Maputo", "Marigot", | |
| "Maseru", "Mata-Utu", "Mbabane Lobamba", "Melekeok Ngerulmud", "Mexico City", "Minsk", "Mogadishu", "Monaco", | |
| "Monrovia", "Montevideo", "Moroni", "Moscow", "Muscat", "Nairobi", "Nassau", "Naypyidaw", "N'Djamena", | |
| "New Delhi", "Niamey", "Nicosia", "Nicosia", "Nouakchott", "Nouméa", "Nukuʻalofa", "Nuuk", "Oranjestad", | |
| "Oslo", "Ottawa", "Ouagadougou", "Pago Pago", "Palikir", "Panama City", "Papeete", "Paramaribo", "Paris", | |
| "Philipsburg", "Phnom Penh", "Plymouth Brades Estate", "Podgorica Cetinje", "Port Louis", "Port Moresby", | |
| "Port Vila", "Port-au-Prince", "Port of Spain", "Porto-Novo Cotonou", "Prague", "Praia", "Cape Town", | |
| "Pristina", "Pyongyang", "Quito", "Rabat", "Reykjavík", "Riga", "Riyadh", "Road Town", "Rome", "Roseau", | |
| "Saipan", "San José", "San Juan", "San Marino", "San Salvador", "Sana'a", "Santiago", "Santo Domingo", | |
| "São Tomé", "Sarajevo", "Seoul", "Singapore", "Skopje", "Sofia", "Sri Jayawardenepura Kotte", "St. George's", | |
| "St. Helier", "St. John's", "St. Peter Port", "St. Pierre", "Stanley", "Stepanakert", "Stockholm", "Sucre", | |
| "Sukhumi", "Suva", "Taipei", "Tallinn", "Tarawa Atoll", "Tashkent", "Tbilisi", "Tegucigalpa", "Tehran", | |
| "Thimphu", "Tirana", "Tiraspol", "Tokyo", "Tórshavn", "Tripoli", "Tskhinvali", "Tunis", "Ulan Bator", "Vaduz", | |
| "Valletta", "The Valley", "Vatican City", "Victoria", "Vienna", "Vientiane", "Vilnius", "Warsaw", | |
| "Washington, D.C.", "Wellington", "West Island", "Willemstad", "Windhoek", "Yamoussoukro", "Yaoundé", "Yaren", | |
| "Yerevan", "Zagreb"] | |
| }; | |
| $('#destination-search-3').typeahead({ | |
| minLength: 2, | |
| order: "asc", | |
| group: true, | |
| maxItemPerGroup: 3, | |
| groupOrder: function () { | |
| var scope = this, | |
| sortGroup = []; | |
| for (var i in this.result) { | |
| sortGroup.push({ | |
| group: i, | |
| length: this.result[i].length | |
| }); | |
| } | |
| sortGroup.sort( | |
| scope.helper.sort( | |
| ["length"], | |
| false, // false = desc, the most results on top | |
| function (a) { | |
| return a.toString().toUpperCase() | |
| } | |
| ) | |
| ); | |
| return $.map(sortGroup, function (val, i) { | |
| return val.group | |
| }); | |
| }, | |
| hint: true, | |
| emptyTemplate: 'No result for "{{query}}"', | |
| source: { | |
| country: { | |
| data: data.countries | |
| }, | |
| capital: { | |
| data: data.capitals | |
| } | |
| }, | |
| debug: true | |
| }); | |
| /** | |
| * Star rating | |
| */ | |
| $('.tripadvisor-by-attr').raty({ | |
| path: 'images/raty', | |
| starHalf: 'tripadvisor-half.png', | |
| starOff: 'tripadvisor-off.png', | |
| starOn: 'tripadvisor-on.png', | |
| readOnly: true, | |
| round : { down: .2, full: .6, up: .8 }, | |
| half: true, | |
| space: false, | |
| score: function() { | |
| return $(this).attr('data-rating-score'); | |
| } | |
| }); | |
| $('.star-rating-12px').raty({ | |
| path: 'images/raty', | |
| starHalf: 'star-half-sm.png', | |
| starOff: 'star-off-sm.png', | |
| starOn: 'star-on-sm.png', | |
| readOnly: true, | |
| round : { down: .2, full: .6, up: .8 }, | |
| half: true, | |
| space: false, | |
| score: function() { | |
| return $(this).attr('data-rating-score'); | |
| } | |
| }); | |
| /** | |
| * Slider and Carousel by slick.js | |
| */ | |
| $('.slick-banner-slider').slick({ | |
| dots: true, | |
| infinite: true, | |
| speed: 500, | |
| slidesToShow: 1, | |
| slidesToScroll: 1, | |
| centerMode: true, | |
| infinite: true, | |
| centerPadding: '0', | |
| focusOnSelect: true, | |
| adaptiveHeight: true, | |
| responsive: [ | |
| { | |
| breakpoint: 767, | |
| settings: { | |
| dots: false, | |
| } | |
| } | |
| ] | |
| }); | |
| $('.slick-hero-slider').slick({ | |
| dots: true, | |
| infinite: true, | |
| speed: 500, | |
| slidesToShow: 1, | |
| slidesToScroll: 1, | |
| centerMode: true, | |
| infinite: true, | |
| centerPadding: '0', | |
| focusOnSelect: true, | |
| adaptiveHeight: true, | |
| autoplay: true, | |
| autoplaySpeed: 4500, | |
| pauseOnHover: true, | |
| }); | |
| $('.slick-testimonial').slick({ | |
| slidesToShow: 1, | |
| slidesToScroll: 1, | |
| speed: 500, | |
| arrows: false, | |
| fade: false, | |
| asNavFor: '.slick-testimonial-nav', | |
| adaptiveHeight: true, | |
| }); | |
| $('.slick-testimonial-nav').slick({ | |
| slidesToShow: 3, | |
| slidesToScroll: 1, | |
| speed: 500, | |
| centerPadding: '0', | |
| asNavFor: '.slick-testimonial', | |
| dots: false, | |
| centerMode: true, | |
| focusOnSelect: true, | |
| infinite: true, | |
| responsive: [ | |
| { | |
| breakpoint: 1199, | |
| settings: { | |
| slidesToShow: 3, | |
| } | |
| }, | |
| { | |
| breakpoint: 991, | |
| settings: { | |
| slidesToShow: 3, | |
| } | |
| }, | |
| { | |
| breakpoint: 767, | |
| settings: { | |
| slidesToShow: 3, | |
| } | |
| }, | |
| { | |
| breakpoint: 480, | |
| settings: { | |
| slidesToShow: 3, | |
| } | |
| } | |
| ] | |
| }); | |
| /** | |
| * ion Range Slider for price and star rating range slider | |
| */ | |
| $("#price_range").ionRangeSlider({ | |
| grid: true, | |
| type: "double", | |
| min: 0, | |
| max: 2000, | |
| from: 200, | |
| to: 800, | |
| prefix: "$", | |
| }); | |
| $("#star_rating_range").ionRangeSlider({ | |
| type: "double", | |
| min: 1, | |
| max: 5, | |
| step: 1, | |
| grid: true, | |
| grid_snap: true, | |
| }); | |
| /** | |
| * Show more-less content | |
| */ | |
| $('.btn-more-less').on("click",function() { | |
| $(this).text(function(i,old){ | |
| return old=='Show more' ? 'Show less' : 'Show more'; | |
| }); | |
| }); | |
| /** | |
| * Sidebar sticky by Stickit | |
| */ | |
| if ($(window).width() > 991) { | |
| $('#sticky-sidebar').stickit({ | |
| top: 95, | |
| bottom: 200, | |
| }); | |
| } | |
| /** | |
| * Responsive Tab by tabCollapse | |
| */ | |
| $('#detailTab, #responsiveTab').tabCollapse({ | |
| tabsClass: 'hidden-sm hidden-xs', | |
| accordionClass: 'visible-sm visible-xs' | |
| }); | |
| $('#detailTab, #responsiveTab').on('shown.bs.tab', function () { | |
| google.maps.event.trigger(map, "resize"); | |
| map.setCenter(var_location); | |
| }); | |
| $('#detailTab, #responsiveTab').on('shown-accordion.bs.tabcollapse', function(){ | |
| google.maps.event.trigger(map, "resize"); | |
| map.setCenter(var_location); | |
| }); | |
| $('#detailTab, #responsiveTab').on('shown-tabs.bs.tabcollapse', function(){ | |
| google.maps.event.trigger(map, "resize"); | |
| map.setCenter(var_location); | |
| }); | |
| /** | |
| * Sign-in Modal | |
| */ | |
| var $formLogin = $('#login-form'); | |
| var $formLost = $('#lost-form'); | |
| var $formRegister = $('#register-form'); | |
| var $divForms = $('#modal-login-form-wrapper'); | |
| var $modalAnimateTime = 300; | |
| $('#login_register_btn').on("click", function () { modalAnimate($formLogin, $formRegister) }); | |
| $('#register_login_btn').on("click", function () { modalAnimate($formRegister, $formLogin); }); | |
| $('#login_lost_btn').on("click", function () { modalAnimate($formLogin, $formLost); }); | |
| $('#lost_login_btn').on("click", function () { modalAnimate($formLost, $formLogin); }); | |
| $('#lost_register_btn').on("click", function () { modalAnimate($formLost, $formRegister); }); | |
| function modalAnimate ($oldForm, $newForm) { | |
| var $oldH = $oldForm.height(); | |
| var $newH = $newForm.height(); | |
| $divForms.css("height",$oldH); | |
| $oldForm.fadeToggle($modalAnimateTime, function(){ | |
| $divForms.animate({height: $newH}, $modalAnimateTime, function(){ | |
| $newForm.fadeToggle($modalAnimateTime); | |
| }); | |
| }); | |
| } | |
| /** | |
| * Payment Method | |
| */ | |
| $("div.payment-option-form").hide(); | |
| $("input[name$='payments']").click(function() { | |
| var test = $(this).val(); | |
| $("div.payment-option-form").hide(); | |
| $("#" + test).show(); | |
| }); | |
| /** | |
| * Instagram Feed | |
| */ | |
| function createPhotoElement(photo) { | |
| var innerHtml = $('<img>') | |
| .addClass('instagram-image') | |
| .attr('src', photo.images.thumbnail.url); | |
| innerHtml = $('<a>') | |
| .attr('target', '_blank') | |
| .attr('href', photo.link) | |
| .append(innerHtml); | |
| return $('<div>') | |
| .addClass('instagram-placeholder') | |
| .attr('id', photo.id) | |
| .append(innerHtml); | |
| } | |
| function didLoadInstagram(event, response) { | |
| var that = this; | |
| $.each(response.data, function(i, photo) { | |
| $(that).append(createPhotoElement(photo)); | |
| }); | |
| } | |
| $(document).ready(function() { | |
| $('#instagram').on('didLoadInstagram', didLoadInstagram); | |
| $('#instagram').instagram({ | |
| count: 20, | |
| userId: 3301700665, | |
| accessToken: '3301700665.4445ec5.c3ba39ad7828412286c1563cac3f594b' | |
| }); | |
| }); | |
| })(jQuery); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /*add action for member registration.............start..............*/ | |
| add_action( 'wp_ajax_create_user', 'it_create_user' ); | |
| add_action( 'wp_ajax_nopriv_create_user', 'it_create_user' ); | |
| function it_create_user() { | |
| global $wpdb; | |
| $from_name = get_bloginfo('name'); | |
| $from_email = get_bloginfo('admin_email'); | |
| // Handle request then generate response using WP_Ajax_Response | |
| $name = $_POST['username1']; | |
| $email = $_POST['email1']; | |
| $password = $_POST['pass1']; | |
| if(email_exists($email)){ | |
| $save_value = 'email_exists'; | |
| } | |
| else if(username_exists($name)){ | |
| $save_value = 'username_exists'; | |
| } | |
| else { | |
| // $password = wp_generate_password( 10, true, true ); | |
| $user_id = wp_create_user($name, $password, $email); | |
| $user_name= sanitize_title_with_dashes($name); | |
| add_user_meta($user_id, 'name', $name); | |
| add_user_meta($user_id, 'email', $email); | |
| add_post_meta($user_id, 'password', $password); | |
| if($user_id){ | |
| /////////////// first mail to user - start ////////////////////////////////// | |
| $fullname = ucwords(strtolower($user_name)); | |
| $subject = "Welcome to ".$from_name; | |
| $message = '<p>Dear '. ucwords(strtolower($email)).',</p><p></p><p>You have successfully created an account to our Website.<br>Your User Name: '.$email.'<br> Your password is : '.$password.'<br>'; | |
| //Headers | |
| $headers = 'MIME-Version: 1.0' . "\r\n"; | |
| $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; | |
| if(!empty($from_email) && filter_var($from_email,FILTER_VALIDATE_EMAIL))//Validating From | |
| $headers .= "From: ".$from_name." <".$from_email."> \r\n"; | |
| $reply_email = $from_email; | |
| if($reply_email){ | |
| $headers .= "Reply-To: {$reply_email}\r\n"; | |
| $headers .= "Return-Path: {$from_name}\r\n"; | |
| } | |
| wp_mail($email, $subject, $message , $headers); | |
| /////////////// first mail to user - end ////////////////////////////////// | |
| /////////////// Mail to admin - start ////////////////////////////////// | |
| $subject = $from_name."- New customer registration request"; | |
| $message = '<p>Dear Admin,</p><p>'.$fullname.' is registered in our website!</p><br>User Details are:<br> Name: '.$name.'<br>Phone no:'.$phone.'<br>Email: '.$email.'<br>' | |
| . '<p>Best Wishes,<br>Team '.$from_name; | |
| wp_mail($from_email, $subject, $message , $headers); | |
| /////////////// Mail to admin - end ////////////////////////////////// | |
| } | |
| $save_value = "Registration Successful"; | |
| } | |
| echo $save_value; | |
| //echo "success==============".$user_id; | |
| die; | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Template Name: Login | |
| */ | |
| if($_POST['btn_log_submit']) { | |
| global $wpdb; | |
| //We shall SQL escape all inputs | |
| $username = $wpdb->escape($_REQUEST['username']); | |
| $password = $wpdb->escape($_REQUEST['password']); | |
| $remember = $wpdb->escape($_REQUEST['rememberme']); | |
| if($remember) $remember = "true"; | |
| else $remember = "false"; | |
| $login_data = array(); | |
| $login_data['user_login'] = $username; | |
| $login_data['user_password'] = $password; | |
| $login_data['remember'] = $remember; | |
| $user_verify = wp_signon( $login_data, false ); | |
| if ( is_wp_error($user_verify) ) | |
| { | |
| ?> | |
| <script> | |
| alert('Invalid Username or Password !'); | |
| window.location.assign("<?php echo home_url();?>"); | |
| </script> | |
| <?php | |
| // header("Location: " . home_url() . "/login/error/"); | |
| // Note, I have created a page called "Error" that is a child of the login page to handle errors. This can be anything, but it seemed a good way to me to handle errors. | |
| } else { | |
| if(isset($_COOKIE["service".$id])){ ?> | |
| <script> | |
| window.location.assign("<?php echo site_url() ?>/payment/?id=<?php echo $id;?>"); | |
| </script> | |
| <!-- echo"<script type='text/javascript'>window.location.href ='".home_url('payment') ."'</script>";--> | |
| <?php } else { | |
| echo"<script type='text/javascript'>window.location.href ='".home_url() ."'</script>"; | |
| } | |
| exit(); | |
| } | |
| } else { | |
| // No login details entered - you should probably add some more user feedback here, but this does the bare minimum | |
| echo "Invalid login details"; | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Advance modal login register</title> | |
| <style> | |
| .error{ | |
| color:red; | |
| } | |
| .greencolor { | |
| color: green; | |
| } | |
| .redcolor { | |
| color: red; | |
| } | |
| #dis{ | |
| text-align:center; | |
| height: 25px; | |
| width: 250px; | |
| background-color:#46DAFF; | |
| color:#000; | |
| } | |
| .short{ | |
| color:gray; | |
| } | |
| .week{ | |
| color: yellow; | |
| } | |
| .good{ | |
| color: green; | |
| } | |
| .strong{ | |
| color:green; | |
| } | |
| </style> | |
| <!-- CSS Plugins --> | |
| <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri();?>/bootstrap/css/bootstrap.min.css" media="screen"> | |
| <!-- CSS Custom --> | |
| <link href="<?php echo get_template_directory_uri();?>/css/style.css" rel="stylesheet"> | |
| <body> | |
| <div class="pull-right"> | |
| <div class="navbar-mini"> | |
| <ul class="clearfix"> | |
| <li class="dropdown bt-dropdown-click"> | |
| <a id="currency-dropdown" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> | |
| <i class="ion-social-usd hidden-xss"></i> Dollar | |
| <span class="caret"></span> | |
| </a> | |
| <ul class="dropdown-menu" aria-labelledby="currency-dropdown"> | |
| <li><a href="#"><i class="ion-social-usd"></i> Dollar</a></li> | |
| <li><a href="#"><i class="ion-social-euro"></i> Europe</a></li> | |
| <li><a href="#"><i class="ion-social-yen"></i> Yen</a></li> | |
| </ul> | |
| </li> | |
| <li class="dropdown bt-dropdown-click"> | |
| <a id="language-dropdown" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> | |
| <i class="ion-android-globe hidden-xss"></i> English | |
| <span class="caret"></span> | |
| </a> | |
| <ul class="dropdown-menu" aria-labelledby="language-dropdown"> | |
| <li><a href="#">English</a></li> | |
| <li><a href="#">France</a></li> | |
| <li><a href="#">Japanese</a></li> | |
| </ul> | |
| </li> | |
| <?php if(is_user_logged_in()){ | |
| $current_user = wp_get_current_user();?> | |
| <li class="dropdown bt-dropdown-click user-action"> | |
| <a class="btn btn-primary btn-inverse btn-loged-in dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> | |
| <img class="avatar" src="<?php echo get_template_directory_uri();?>/images/man/01.jpg" alt="image" /> | |
| Hi, <?php echo $current_user->user_login ;?> <span class="caret"></span></a> | |
| <ul class="dropdown-menu" aria-labelledby="language-dropdown"> | |
| <li><a href="#">Profile</a></li> | |
| <li><a href="#">My Bookings</a></li> | |
| <li><a href="<?php echo logout_url;?>">Logout</a></li> | |
| </ul> | |
| </li> | |
| <li class="has-msg"> | |
| <a href="#" class="icon-msg"> | |
| <i class="fa fa-envelope" aria-hidden="true"></i> | |
| <span class="count bg-danger">22</span> | |
| </a> | |
| </li> | |
| <?php } | |
| else { ?> | |
| <li class="user-action"> | |
| <a data-toggle="modal" href="#loginModal" class="btn btn-primary btn-inverse">Sign up/in</a> | |
| </li> | |
| <?php }?> | |
| </ul> | |
| </div> | |
| </div> | |
| <!-- BEGIN # MODAL LOGIN --> | |
| <div class="modal fade modal-login modal-border-transparent" id="loginModal" tabindex="-1" role="dialog" aria-hidden="true" > | |
| <div class="modal-dialog"> | |
| <div class="modal-content"> | |
| <button type="button" class="btn btn-close close" data-dismiss="modal" aria-label="Close"> | |
| <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> | |
| </button> | |
| <div class="clear"></div> | |
| <!-- Begin # DIV Form --> | |
| <div id="modal-login-form-wrapper"> | |
| <!-- Begin # Login Form --> | |
| <form id="login-form" action="<?php echo home_url(); ?>/login" method="post"> | |
| <div class="modal-body pb-10"> | |
| <h4 class="text-center mb-15">Sign-in</h4> | |
| <button class="btn btn-facebook btn-block">Sign-in with Facebook</button> | |
| <div class="modal-seperator mb-40"> | |
| <span>or</span> | |
| </div> | |
| <div class="form-group mb-0"> | |
| <input id="login_username" name="username" class="form-control mb-5" placeholder="username" type="text" required="required"> | |
| </div> | |
| <div class="form-group mb-0"> | |
| <input id="login_password" name="password" class="form-control mb-5" placeholder="password" type="password" required="required"> | |
| </div> | |
| <div class="form-group mb-0 mt-10"> | |
| <div class="row gap-5"> | |
| <div class="col-xs-6 col-sm-6 col-md-6"> | |
| <div class="checkbox-block font-icon-checkbox"> | |
| <input id="remember_me_checkbox" name="remember_me_checkbox" class="checkbox" value="First Choice" type="checkbox"> | |
| <label class="" for="remember_me_checkbox">remember</label> | |
| </div> | |
| </div> | |
| <div class="col-xs-6 col-sm-6 col-md-6 text-right"> | |
| <button id="login_lost_btn" type="button" class="btn btn-link">forgot pass?</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="modal-footer pt-25 pb-5"> | |
| <div class="row gap-10"> | |
| <div class="col-xs-6 col-sm-6 mb-10"> | |
| <input type="submit" class="btn btn-primary btn-block" name="btn_log_submit" value="Sign-in"> | |
| </div> | |
| <div class="col-xs-6 col-sm-6 mb-10"> | |
| <button type="submit" class="btn btn-danger btn-block" data-dismiss="modal" aria-label="Close">Cancel</button> | |
| </div> | |
| </div> | |
| <div class="text-left"> | |
| No account? | |
| <button id="login_register_btn" type="button" class="btn btn-link">Register</button> | |
| </div> | |
| </div> | |
| </form> | |
| <!-- End # Login Form --> | |
| <!-- Begin | Lost Password Form --> | |
| <form id="lost-form" name="lostpasswordform" action="<?php echo wp_lostpassword_url(); ?>" method="post" style="display:none;"> | |
| <div class="modal-body pb-10"> | |
| <h4 class="text-center mb-15">Forgot password</h4> | |
| <div class="form-group mb-0"> | |
| <input id="lost_email" class="form-control mb-5" name="user_login" type="text" placeholder="Enter Your Email" required="required"> | |
| </div> | |
| <div class="text-center"> | |
| <button id="lost_login_btn" type="button" class="btn btn-link">Sign-in</button> or | |
| <button id="lost_register_btn" type="button" class="btn btn-link">Register</button> | |
| </div> | |
| </div> | |
| <div class="modal-footer pt-25 pb-5"> | |
| <div class="row gap-10"> | |
| <div class="col-xs-6 col-sm-6 mb-10"> | |
| <button type="submit" class="btn btn-primary btn-block">Submit</button> | |
| </div> | |
| <div class="col-xs-6 col-sm-6 mb-10"> | |
| <button type="submit" class="btn btn-danger btn-block" data-dismiss="modal" aria-label="Close">Cancel</button> | |
| </div> | |
| </div> | |
| </div> | |
| </form> | |
| <!-- End | Lost Password Form --> | |
| <!-- Begin | Register Form --> | |
| <form id="register-form" style="display:none;"> | |
| <div class="modal-body pb-20"> | |
| <h4 class="text-center mb-15">Register</h4> | |
| <button class="btn btn-facebook btn-block">Register with Facebook</button> | |
| <div class="modal-seperator mb-40"> | |
| <span>or</span> | |
| </div> | |
| <div class="form-group mb-0"> | |
| <input id="register_username" class="form-control mb-5" type="text" placeholder="Username"><span class="error" style="color:red" | |
| id="error_message_name"></span> | |
| </div> | |
| <div class="form-group mb-0"> | |
| <input id="register_email" class="form-control mb-5" type="email" placeholder="Email"><span class="error" style="color:red" | |
| id="error_message_email"></span> | |
| </div> | |
| <div class="form-group mb-0"> | |
| <input id="register_password" class="form-control mb-5" type="password" placeholder="Password"><span class="error" | |
| id="error_message_password"></span> | |
| </div> | |
| <div class="form-group mb-0"> | |
| <input id="register_password_confirm" class="form-control mb-5" type="password" placeholder="Confirm Password"> | |
| <span class="error" style="color:red" id="error_message_cpassword"></span> | |
| </div><br /> | |
| <div id="msg"></div> | |
| </div> | |
| <div class="modal-footer pt-25 pb-5"> | |
| <div class="row gap-10"> | |
| <div class="col-xs-6 col-sm-6 mb-10"> | |
| <button type="submit" id="register-submit" class="btn btn-primary btn-block">Register</button> | |
| </div> | |
| <div class="col-xs-6 col-sm-6 mb-10"> | |
| <button type="submit" class="btn btn-danger btn-block" data-dismiss="modal" aria-label="Close">Cancel</button> | |
| </div> | |
| </div> | |
| <div class="text-left"> | |
| Already have account? <button id="register_login_btn" type="button" class="btn btn-link">Sign-in</button> | |
| </div> | |
| </div> | |
| </form> | |
| <!-- End | Register Form --> | |
| </div> | |
| <!-- End # DIV Form --> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- END # MODAL LOGIN --> | |
| </body> | |
| <!-- jQuery Cores --> | |
| <script type="text/javascript" src="<?php echo get_template_directory_uri();?>/js/jquery-1.11.3.min.js"></script> | |
| <!-- Bootstrap Js --> | |
| <script type="text/javascript" src="<?php echo get_template_directory_uri();?>/bootstrap/js/bootstrap.min.js"></script> | |
| <!-- Plugins - serveral jquery plugins that use in this template --> | |
| <script type="text/javascript" src="<?php echo get_template_directory_uri();?>/js/plugins.js"></script> | |
| <!-- Custom js codes for plugins --> | |
| <script type="text/javascript" src="<?php echo get_template_directory_uri();?>/js/customs.js"></script> | |
| <script type="text/javascript" src="<?php echo get_template_directory_uri();?>/js/validate.js"></script> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| jQuery Plugins that included in this files are as followings: | |
| 1. spin.min.js | |
| 2. jquery.introLoader.min.js | |
| 3. SmoothScroll.min.js | |
| 4. jquery.easing.1.3.js | |
| 5. jquery.waypoints.min.js | |
| 6. wow.min.js | |
| 7. fancySelect.js | |
| 8. jquery.slicknav.min.js | |
| 9. jquery.matchHeight-min.js | |
| 10. jquery.placeholder.min.js | |
| 11. slick.min.js | |
| 12. jquery.raty.js | |
| 13. jquery.filer.min.js | |
| 14. bootstrap-tabcollapse.js | |
| 15. ion.rangeSlider.min.js | |
| 16. moment.min.js | |
| 17. readmore.min.js | |
| 18. instagram.min.js | |
| 19. jquery.stickit.js | |
| 20. jquery.typeahead.min.js | |
| 21. jquery.bootstrap-touchspin.min.js | |
| */ | |
| // http://spin.js.org/#v2.3.2 | |
| !function(a,b){"object"==typeof module&&module.exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return m[e]||(k.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",k.cssRules.length),m[e]=1),e}function d(a,b){var c,d,e=a.style;if(b=b.charAt(0).toUpperCase()+b.slice(1),void 0!==e[b])return b;for(d=0;d<l.length;d++)if(c=l[d]+b,void 0!==e[c])return c}function e(a,b){for(var c in b)a.style[d(a,c)||c]=b[c];return a}function f(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)void 0===a[d]&&(a[d]=c[d])}return a}function g(a,b){return"string"==typeof a?a:a[b%a.length]}function h(a){this.opts=f(a||{},h.defaults,n)}function i(){function c(b,c){return a("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',c)}k.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.scale*d.width,left:d.scale*d.radius,top:-d.scale*d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.scale*(d.length+d.width),k=2*d.scale*j,l=-(d.width+d.length)*d.scale*2+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}}var j,k,l=["webkit","Moz","ms","O"],m={},n={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",opacity:.25,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"};if(h.defaults={},f(h.prototype,{spin:function(b){this.stop();var c=this,d=c.opts,f=c.el=a(null,{className:d.className});if(e(f,{position:d.position,width:0,zIndex:d.zIndex,left:d.left,top:d.top}),b&&b.insertBefore(f,b.firstChild||null),f.setAttribute("role","progressbar"),c.lines(f,c.opts),!j){var g,h=0,i=(d.lines-1)*(1-d.direction)/2,k=d.fps,l=k/d.speed,m=(1-d.opacity)/(l*d.trail/100),n=l/d.lines;!function o(){h++;for(var a=0;a<d.lines;a++)g=Math.max(1-(h+(d.lines-a)*n)%l*m,d.opacity),c.opacity(f,a*d.direction+i,g,d);c.timeout=c.el&&setTimeout(o,~~(1e3/k))}()}return c},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=void 0),this},lines:function(d,f){function h(b,c){return e(a(),{position:"absolute",width:f.scale*(f.length+f.width)+"px",height:f.scale*f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*k+f.rotate)+"deg) translate("+f.scale*f.radius+"px,0)",borderRadius:(f.corners*f.scale*f.width>>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k<f.lines;k++)i=e(a(),{position:"absolute",top:1+~(f.scale*f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:j&&c(f.opacity,f.trail,l+k*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&b(i,e(h("#000","0 0 4px #000"),{top:"2px"})),b(d,b(i,h(g(f.color,k),"0 0 1px rgba(0,0,0,.1)")));return d},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}}),"undefined"!=typeof document){k=function(){var c=a("style",{type:"text/css"});return b(document.getElementsByTagName("head")[0],c),c.sheet||c.styleSheet}();var o=e(a("group"),{behavior:"url(#default#VML)"});!d(o,"transform")&&o.adj?i():j=d(o,"animation")}return h}); | |
| /* | |
| * jQueryIntroLoader - v1.7.1 | |
| * "simple intro loader animations" | |
| * http://factory.brainleaf.eu/jqueryIntroLoader | |
| * | |
| * Made by BRAINLEAF Communication | |
| * Released Under GNU/GPL License | |
| * (c)2014-2015 by BRAINLEAF Communication | |
| * | |
| * | |
| * BugReport/Assistence: https://github.com/Gix075/jqueryIntroLoader/issues | |
| */ | |
| !function(a){a.introLoader=function(b,c){var d={animation:{name:"simpleLoader",options:{exitFx:"fadeOut",ease:"linear",style:"light",delayBefore:500,delayAfter:0,exitTime:300,animationTime:300,customGif:!1,customGifBgColor:!1,progbarTime:300,progbarDelayAfter:300,loaderText:"Website is Ready!",lettersDelayTime:1,preventScroll:!1,fixed:!0,stop:!0,onAfter:function(){},onBefore:function(){}}},spinJs:{}},e=this;e.settings={};var b=(a(b),b);e.init=function(){e.settings=a.extend(!0,d,c);var g={lines:this.settings.spinJs.lines,length:this.settings.spinJs.length,width:this.settings.spinJs.width,radius:this.settings.spinJs.radius,corners:this.settings.spinJs.corners,rotate:this.settings.spinJs.rotate,direction:this.settings.spinJs.direction,color:this.settings.spinJs.color,speed:this.settings.spinJs.speed,trail:this.settings.spinJs.trail,shadow:this.settings.spinJs.shadow,hwaccel:this.settings.spinJs.hwaccel,className:this.settings.spinJs.className,zIndex:this.settings.spinJs.zIndex,top:this.settings.spinJs.top,left:this.settings.spinJs.left},i=e.settings.animation.name,k=e.settings.animation.options,g=e.settings.spinJs;switch(i){case"simpleLoader":e.spinner=new Spinner(g).spin(),j(b,k,g);break;case"doubleLoader":l(b,k);break;case"lettersLoader":e.spinner=new Spinner(g).spin(),n(b,k,g);break;case"counterLoader":e.spinner=new Spinner(g).spin(),p(b,k,g);break;case"gifLoader":h(b,k);break;case"cssLoader":f(b,k);break;default:e.spinner=new Spinner(g).spin(),j(b,k,g)}},e.stop=function(){switch(e.settings.animation.name){case"simpleLoader":k();break;case"doubleLoader":m();break;case"lettersLoader":o();break;case"counterLoader":q();break;case"gifLoader":i();break;case"cssLoader":g()}},e.destroy=function(){a(b).removeData()};var f=function(b,c){c.onBefore(),r(b,c,"cssLoader");var d="";d+='<div class="cssLoaderSpinner">',d+=' <div class="cssLoaderSpinner-inner"></div>',d+="</div>",a(b).html(d),a(b).show(),c.stop===!0&&a(window).on("load",function(){g()})},g=function(){var a=e.settings.animation.options;s(a,!1)},h=function(b,c){c.onBefore(),r(b,c,"gifLoader");var d="";if(0!=c.customGif&&""!=c.customGif){d="background-image: url("+c.customGif+");"}else;d+=0!=c.customGif&&""!=c.customGif&&0!=c.customGifBgColor&&""!=c.customGifBgColor?"background-color:"+c.customGifBgColor+";":"";var e="";e+='<div id="introLoaderSpinner" class="gifLoaderInner" style="'+d+'">',e+="</div>",a(b).html(e),a(b).show(),c.stop===!0&&a(window).on("load",function(){i()})},i=function(){var a=e.settings.animation.options;s(a,!1)},j=function(b,c,d){c.onBefore(),r(b,c,"simpleLoader");var f="";f+='<div id="introLoaderSpinner" class="introLoaderInner">',f+="</div>",a(b).html(f),a(b).show();var g=document.getElementById("introLoaderSpinner");e.spinner.spin(g),c.stop===!0&&a(window).on("load",function(){k()})},k=function(){var a=e.settings.animation.options;s(a,!0)},l=function(b,c){c.onBefore(),r(b,c,"doubleLoader");var d="";d+='<div class="doubleLoaderTop"></div>',d+='<div class="doubleLoaderBottom"></div>',d+='<div class="doubleLoaderProgBar"><span></span></div>',a(b).html(d),a(b).show(),c.stop===!0&&a(window).on("load",function(){m()})},m=function(){function c(){setTimeout(function(){a(b).find(".doubleLoaderProgBar").hide(),a(b).find(".doubleLoaderTop, .doubleLoaderBottom").animate({height:0},d.exitTime,d.ease,function(){a(b).hide(),d.preventScroll===!0&&a("body").removeClass("introLoader_preventScroll")}),a(".doubleLoaderBottom").promise().done(function(){d.onAfter()})},d.progbarTime+d.progbarDelayAfter)}var d=e.settings.animation.options;setTimeout(function(){a(b).find(".doubleLoaderProgBar").find("span").animate({width:"100%"},d.progbarTime,d.ease,c())},d.delayBefore)},n=function(b,c,d){c.onBefore(),r(b,c,"lettersLoader");var f=t(c.loaderText,"lettersLoaderItem"),g="";g+='<div id="introLoaderSpinner" class="introLoaderInner"></div>',g+='<div id="lettersLoaderAnimation" class="lettersLoaderRow">',g+=f,g+="</div>",a(b).html(g),a(b).show();var h=document.getElementById("introLoaderSpinner");e.spinner.spin(h),c.stop===!0&&a(window).on("load",function(){o()})},o=function(){var c=e.settings.animation.options;setTimeout(function(){e.spinner.stop(),a(b).find(".lettersLoaderRow").show();var d=a(b).find(".lettersLoaderItem");d.each(function(b){var d=this;a(d).animate({opacity:1},c.animationTime*(b+c.lettersDelayTime),c.ease)}),d.promise().done(function(){c.delayBefore=c.delayAfter,s(c,!1)})},c.delayBefore)},p=function(b,c){c.onBefore(),r(b,c,"counterLoader");var d="";d+='<div class="counterLoaderBox">',d+=' <span id="counterLoader" class="counterLoader number">0</span><span class="counterLoader percent">%</span>',d+="</div>",a(b).html(d),a(b).show(),c.stop===!0&&a(window).on("load",function(){q()})},q=function(){var c=e.settings.animation.options;setTimeout(function(){a(b).find(".counterLoaderBox").fadeIn(),a(b).find(".counterLoaderBox").promise().done(function(){jQuery({Counter:0}).animate({Counter:100},{duration:c.animationTime,easing:"swing",step:function(){a("#counterLoader").text(Math.ceil(this.Counter))},done:function(){c.delayBefore=c.delayAfter,s(c,!1)}})})},c.delayBefore)},r=function(b,c,d){c.preventScroll===!0&&a("body").addClass("introLoader_preventScroll");var e="theme-"+c.style;c.fixed===!1&&(a(b).addClass("absolute"),a(b).parent().css({position:"relative",overflow:"hidden"})),a(b).addClass("introLoader "+d+" "+e)},s=function(c,d){setTimeout(function(){switch(c.exitFx){case"fadeOut":a(b).fadeOut(c.exitTime,c.ease,function(){d===!0&&a("#introLoaderSpinner").remove(),c.preventScroll===!0&&a("body").removeClass("introLoader_preventScroll"),c.onAfter()});break;case"slideUp":d===!0&&e.spinner.stop(),a(b).animate({bottom:a(window).height()},c.exitTime,c.ease,function(){a(b).hide(),a("#introLoaderSpinner").remove(),c.preventScroll===!0&&a("body").removeClass("introLoader_preventScroll"),c.onAfter()});break;case"slideDown":d===!0&&e.spinner.stop(),a(b).animate({top:a(window).height()},c.exitTime,c.ease,function(){a(b).hide(),a("#introLoaderSpinner").remove(),c.preventScroll===!0&&a("body").removeClass("introLoader_preventScroll"),c.onAfter()});break;case"slideLeft":d===!0&&e.spinner.stop(),a(b).animate({right:a(window).width(),left:"-100%"},c.exitTime,c.ease,function(){a(b).hide(),a("#introLoaderSpinner").remove(),c.preventScroll===!0&&a("body").removeClass("introLoader_preventScroll"),c.onAfter()});break;case"slideRight":d===!0&&e.spinner.stop(),a(b).animate({left:a(window).width(),right:"-100%"},c.exitTime,c.ease,function(){a(b).hide(),a("#introLoaderSpinner").remove(),c.preventScroll===!0&&a("body").removeClass("introLoader_preventScroll"),c.onAfter()});break;default:a(b).fadeOut(c.exitTime,c.ease,function(){d===!0&&a("#introLoaderSpinner").remove(),c.preventScroll===!0&&a("body").removeClass("introLoader_preventScroll"),c.onAfter()})}},c.delayBefore)},t=function(a,b){for(var c=a.split(""),d="",e=0;e<c.length;e++){var f=b;" "==c[e]&&(f=b+"-space",c[e]=" "),d+='<span class="'+f+'">'+c[e]+"</span>"}return d};e.init()},a.fn.introLoader=function(b){return this.each(function(){if(void 0==a(this).data("introLoader")){var c=new a.introLoader(this,b);a(this).data("introLoader",c)}else{a(this).removeData("introLoader");var c=new a.introLoader(this,b);a(this).data("introLoader",c)}})}}(jQuery); | |
| (function(){var defaultOptions={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:true,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:true,arrowScroll:50,touchpadSupport:false,fixedBackground:true,excluded:""};var options=defaultOptions;var isExcluded=false;var isFrame=false;var direction={x:0,y:0};var initDone=false;var root=document.documentElement;var activeElement;var observer;var refreshSize;var deltaBuffer=[];var isMac=/^Mac/.test(navigator.platform);var key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36};function initTest(){if(options.keyboardSupport){addEvent("keydown",keydown)}}function init(){if(initDone||!document.body)return;initDone=true;var body=document.body;var html=document.documentElement;var windowHeight=window.innerHeight;var scrollHeight=body.scrollHeight;root=document.compatMode.indexOf("CSS")>=0?html:body;activeElement=body;initTest();if(top!=self){isFrame=true}else if(scrollHeight>windowHeight&&(body.offsetHeight<=windowHeight||html.offsetHeight<=windowHeight)){var fullPageElem=document.createElement("div");fullPageElem.style.cssText="position:absolute; z-index:-10000; "+"top:0; left:0; right:0; height:"+root.scrollHeight+"px";document.body.appendChild(fullPageElem);var pendingRefresh;refreshSize=function(){if(pendingRefresh)return;pendingRefresh=setTimeout(function(){if(isExcluded)return;fullPageElem.style.height="0";fullPageElem.style.height=root.scrollHeight+"px";pendingRefresh=null},500)};setTimeout(refreshSize,10);addEvent("resize",refreshSize);var config={attributes:true,childList:true,characterData:false};observer=new MutationObserver(refreshSize);observer.observe(body,config);if(root.offsetHeight<=windowHeight){var clearfix=document.createElement("div");clearfix.style.clear="both";body.appendChild(clearfix)}}if(!options.fixedBackground&&!isExcluded){body.style.backgroundAttachment="scroll";html.style.backgroundAttachment="scroll"}}function cleanup(){observer&&observer.disconnect();removeEvent(wheelEvent,wheel);removeEvent("mousedown",mousedown);removeEvent("keydown",keydown);removeEvent("resize",refreshSize);removeEvent("load",init)}var que=[];var pending=false;var lastScroll=Date.now();function scrollArray(elem,left,top){directionCheck(left,top);if(options.accelerationMax!=1){var now=Date.now();var elapsed=now-lastScroll;if(elapsed<options.accelerationDelta){var factor=(1+50/elapsed)/2;if(factor>1){factor=Math.min(factor,options.accelerationMax);left*=factor;top*=factor}}lastScroll=Date.now()}que.push({x:left,y:top,lastX:left<0?.99:-.99,lastY:top<0?.99:-.99,start:Date.now()});if(pending){return}var scrollWindow=elem===document.body;var step=function(time){var now=Date.now();var scrollX=0;var scrollY=0;for(var i=0;i<que.length;i++){var item=que[i];var elapsed=now-item.start;var finished=elapsed>=options.animationTime;var position=finished?1:elapsed/options.animationTime;if(options.pulseAlgorithm){position=pulse(position)}var x=item.x*position-item.lastX>>0;var y=item.y*position-item.lastY>>0;scrollX+=x;scrollY+=y;item.lastX+=x;item.lastY+=y;if(finished){que.splice(i,1);i--}}if(scrollWindow){window.scrollBy(scrollX,scrollY)}else{if(scrollX)elem.scrollLeft+=scrollX;if(scrollY)elem.scrollTop+=scrollY}if(!left&&!top){que=[]}if(que.length){requestFrame(step,elem,1e3/options.frameRate+1)}else{pending=false}};requestFrame(step,elem,0);pending=true}function wheel(event){if(!initDone){init()}var target=event.target;var overflowing=overflowingAncestor(target);if(!overflowing||event.defaultPrevented||event.ctrlKey){return true}if(isNodeName(activeElement,"embed")||isNodeName(target,"embed")&&/\.pdf/i.test(target.src)||isNodeName(activeElement,"object")){return true}var deltaX=-event.wheelDeltaX||event.deltaX||0;var deltaY=-event.wheelDeltaY||event.deltaY||0;if(isMac){if(event.wheelDeltaX&&isDivisible(event.wheelDeltaX,120)){deltaX=-120*(event.wheelDeltaX/Math.abs(event.wheelDeltaX))}if(event.wheelDeltaY&&isDivisible(event.wheelDeltaY,120)){deltaY=-120*(event.wheelDeltaY/Math.abs(event.wheelDeltaY))}}if(!deltaX&&!deltaY){deltaY=-event.wheelDelta||0}if(event.deltaMode===1){deltaX*=40;deltaY*=40}if(!options.touchpadSupport&&isTouchpad(deltaY)){return true}if(Math.abs(deltaX)>1.2){deltaX*=options.stepSize/120}if(Math.abs(deltaY)>1.2){deltaY*=options.stepSize/120}scrollArray(overflowing,deltaX,deltaY);event.preventDefault();scheduleClearCache()}function keydown(event){var target=event.target;var modifier=event.ctrlKey||event.altKey||event.metaKey||event.shiftKey&&event.keyCode!==key.spacebar;if(!document.contains(activeElement)){activeElement=document.activeElement}var inputNodeNames=/^(textarea|select|embed|object)$/i;var buttonTypes=/^(button|submit|radio|checkbox|file|color|image)$/i;if(inputNodeNames.test(target.nodeName)||isNodeName(target,"input")&&!buttonTypes.test(target.type)||isNodeName(activeElement,"video")||isInsideYoutubeVideo(event)||target.isContentEditable||event.defaultPrevented||modifier){return true}if((isNodeName(target,"button")||isNodeName(target,"input")&&buttonTypes.test(target.type))&&event.keyCode===key.spacebar){return true}var shift,x=0,y=0;var elem=overflowingAncestor(activeElement);var clientHeight=elem.clientHeight;if(elem==document.body){clientHeight=window.innerHeight}switch(event.keyCode){case key.up:y=-options.arrowScroll;break;case key.down:y=options.arrowScroll;break;case key.spacebar:shift=event.shiftKey?1:-1;y=-shift*clientHeight*.9;break;case key.pageup:y=-clientHeight*.9;break;case key.pagedown:y=clientHeight*.9;break;case key.home:y=-elem.scrollTop;break;case key.end:var damt=elem.scrollHeight-elem.scrollTop-clientHeight;y=damt>0?damt+10:0;break;case key.left:x=-options.arrowScroll;break;case key.right:x=options.arrowScroll;break;default:return true}scrollArray(elem,x,y);event.preventDefault();scheduleClearCache()}function mousedown(event){activeElement=event.target}var uniqueID=function(){var i=0;return function(el){return el.uniqueID||(el.uniqueID=i++)}}();var cache={};var clearCacheTimer;function scheduleClearCache(){clearTimeout(clearCacheTimer);clearCacheTimer=setInterval(function(){cache={}},1*1e3)}function setCache(elems,overflowing){for(var i=elems.length;i--;)cache[uniqueID(elems[i])]=overflowing;return overflowing}function overflowingAncestor(el){var elems=[];var body=document.body;var rootScrollHeight=root.scrollHeight;do{var cached=cache[uniqueID(el)];if(cached){return setCache(elems,cached)}elems.push(el);if(rootScrollHeight===el.scrollHeight){var topOverflowsNotHidden=overflowNotHidden(root)&&overflowNotHidden(body);var isOverflowCSS=topOverflowsNotHidden||overflowAutoOrScroll(root);if(isFrame&&isContentOverflowing(root)||!isFrame&&isOverflowCSS){return setCache(elems,getScrollRoot())}}else if(isContentOverflowing(el)&&overflowAutoOrScroll(el)){return setCache(elems,el)}}while(el=el.parentElement)}function isContentOverflowing(el){return el.clientHeight+10<el.scrollHeight}function overflowNotHidden(el){var overflow=getComputedStyle(el,"").getPropertyValue("overflow-y");return overflow!=="hidden"}function overflowAutoOrScroll(el){var overflow=getComputedStyle(el,"").getPropertyValue("overflow-y");return overflow==="scroll"||overflow==="auto"}function addEvent(type,fn){window.addEventListener(type,fn,false)}function removeEvent(type,fn){window.removeEventListener(type,fn,false)}function isNodeName(el,tag){return(el.nodeName||"").toLowerCase()===tag.toLowerCase()}function directionCheck(x,y){x=x>0?1:-1;y=y>0?1:-1;if(direction.x!==x||direction.y!==y){direction.x=x;direction.y=y;que=[];lastScroll=0}}var deltaBufferTimer;if(window.localStorage&&localStorage.SS_deltaBuffer){deltaBuffer=localStorage.SS_deltaBuffer.split(",")}function isTouchpad(deltaY){if(!deltaY)return;if(!deltaBuffer.length){deltaBuffer=[deltaY,deltaY,deltaY]}deltaY=Math.abs(deltaY);deltaBuffer.push(deltaY);deltaBuffer.shift();clearTimeout(deltaBufferTimer);deltaBufferTimer=setTimeout(function(){if(window.localStorage){localStorage.SS_deltaBuffer=deltaBuffer.join(",")}},1e3);return!allDeltasDivisableBy(120)&&!allDeltasDivisableBy(100)}function isDivisible(n,divisor){return Math.floor(n/divisor)==n/divisor}function allDeltasDivisableBy(divisor){return isDivisible(deltaBuffer[0],divisor)&&isDivisible(deltaBuffer[1],divisor)&&isDivisible(deltaBuffer[2],divisor)}function isInsideYoutubeVideo(event){var elem=event.target;var isControl=false;if(document.URL.indexOf("www.youtube.com/watch")!=-1){do{isControl=elem.classList&&elem.classList.contains("html5-video-controls");if(isControl)break}while(elem=elem.parentNode)}return isControl}var requestFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback,element,delay){window.setTimeout(callback,delay||1e3/60)}}();var MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;var getScrollRoot=function(){var SCROLL_ROOT;return function(){if(!SCROLL_ROOT){var dummy=document.createElement("div");dummy.style.cssText="height:10000px;width:1px;";document.body.appendChild(dummy);var bodyScrollTop=document.body.scrollTop;var docElScrollTop=document.documentElement.scrollTop;window.scrollBy(0,3);if(document.body.scrollTop!=bodyScrollTop)SCROLL_ROOT=document.body;else SCROLL_ROOT=document.documentElement;window.scrollBy(0,-3);document.body.removeChild(dummy)}return SCROLL_ROOT}}();function pulse_(x){var val,start,expx;x=x*options.pulseScale;if(x<1){val=x-(1-Math.exp(-x))}else{start=Math.exp(-1);x-=1;expx=1-Math.exp(-x);val=start+expx*(1-start)}return val*options.pulseNormalize}function pulse(x){if(x>=1)return 1;if(x<=0)return 0;if(options.pulseNormalize==1){options.pulseNormalize/=pulse_(1)}return pulse_(x)}var userAgent=window.navigator.userAgent;var isEdge=/Edge/.test(userAgent);var isChrome=/chrome/i.test(userAgent)&&!isEdge;var isSafari=/safari/i.test(userAgent)&&!isEdge;var isMobile=/mobile/i.test(userAgent);var isEnabledForBrowser=(isChrome||isSafari)&&!isMobile;var wheelEvent;if("onwheel"in document.createElement("div"))wheelEvent="wheel";else if("onmousewheel"in document.createElement("div"))wheelEvent="mousewheel";if(wheelEvent&&isEnabledForBrowser){addEvent(wheelEvent,wheel);addEvent("mousedown",mousedown);addEvent("load",init)}function SmoothScroll(optionsToSet){for(var key in optionsToSet)if(defaultOptions.hasOwnProperty(key))options[key]=optionsToSet[key]}SmoothScroll.destroy=cleanup;if(window.SmoothScrollOptions)SmoothScroll(window.SmoothScrollOptions);if(typeof define==="function"&&define.amd)define(function(){return SmoothScroll});else if("object"==typeof exports)module.exports=SmoothScroll;else window.SmoothScroll=SmoothScroll})(); | |
| /* | |
| * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ | |
| * | |
| * Uses the built in easing capabilities added In jQuery 1.1 | |
| * to offer multiple easing options | |
| * | |
| * TERMS OF USE - jQuery Easing | |
| * | |
| * Open source under the BSD License. | |
| * | |
| * Copyright © 2008 George McGinley Smith | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without modification, | |
| * are permitted provided that the following conditions are met: | |
| * | |
| * Redistributions of source code must retain the above copyright notice, this list of | |
| * conditions and the following disclaimer. | |
| * Redistributions in binary form must reproduce the above copyright notice, this list | |
| * of conditions and the following disclaimer in the documentation and/or other materials | |
| * provided with the distribution. | |
| * | |
| * Neither the name of the author nor the names of contributors may be used to endorse | |
| * or promote products derived from this software without specific prior written permission. | |
| * | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | |
| * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
| * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | |
| * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |
| * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | |
| * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | |
| * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |
| * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | |
| * OF THE POSSIBILITY OF SUCH DAMAGE. | |
| * | |
| */ | |
| // t: current time, b: begInnIng value, c: change In value, d: duration | |
| jQuery.easing['jswing'] = jQuery.easing['swing']; | |
| jQuery.extend( jQuery.easing, | |
| { | |
| def: 'easeOutQuad', | |
| swing: function (x, t, b, c, d) { | |
| //alert(jQuery.easing.default); | |
| return jQuery.easing[jQuery.easing.def](x, t, b, c, d); | |
| }, | |
| easeInQuad: function (x, t, b, c, d) { | |
| return c*(t/=d)*t + b; | |
| }, | |
| easeOutQuad: function (x, t, b, c, d) { | |
| return -c *(t/=d)*(t-2) + b; | |
| }, | |
| easeInOutQuad: function (x, t, b, c, d) { | |
| if ((t/=d/2) < 1) return c/2*t*t + b; | |
| return -c/2 * ((--t)*(t-2) - 1) + b; | |
| }, | |
| easeInCubic: function (x, t, b, c, d) { | |
| return c*(t/=d)*t*t + b; | |
| }, | |
| easeOutCubic: function (x, t, b, c, d) { | |
| return c*((t=t/d-1)*t*t + 1) + b; | |
| }, | |
| easeInOutCubic: function (x, t, b, c, d) { | |
| if ((t/=d/2) < 1) return c/2*t*t*t + b; | |
| return c/2*((t-=2)*t*t + 2) + b; | |
| }, | |
| easeInQuart: function (x, t, b, c, d) { | |
| return c*(t/=d)*t*t*t + b; | |
| }, | |
| easeOutQuart: function (x, t, b, c, d) { | |
| return -c * ((t=t/d-1)*t*t*t - 1) + b; | |
| }, | |
| easeInOutQuart: function (x, t, b, c, d) { | |
| if ((t/=d/2) < 1) return c/2*t*t*t*t + b; | |
| return -c/2 * ((t-=2)*t*t*t - 2) + b; | |
| }, | |
| easeInQuint: function (x, t, b, c, d) { | |
| return c*(t/=d)*t*t*t*t + b; | |
| }, | |
| easeOutQuint: function (x, t, b, c, d) { | |
| return c*((t=t/d-1)*t*t*t*t + 1) + b; | |
| }, | |
| easeInOutQuint: function (x, t, b, c, d) { | |
| if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; | |
| return c/2*((t-=2)*t*t*t*t + 2) + b; | |
| }, | |
| easeInSine: function (x, t, b, c, d) { | |
| return -c * Math.cos(t/d * (Math.PI/2)) + c + b; | |
| }, | |
| easeOutSine: function (x, t, b, c, d) { | |
| return c * Math.sin(t/d * (Math.PI/2)) + b; | |
| }, | |
| easeInOutSine: function (x, t, b, c, d) { | |
| return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; | |
| }, | |
| easeInExpo: function (x, t, b, c, d) { | |
| return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; | |
| }, | |
| easeOutExpo: function (x, t, b, c, d) { | |
| return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; | |
| }, | |
| easeInOutExpo: function (x, t, b, c, d) { | |
| if (t==0) return b; | |
| if (t==d) return b+c; | |
| if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; | |
| return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; | |
| }, | |
| easeInCirc: function (x, t, b, c, d) { | |
| return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; | |
| }, | |
| easeOutCirc: function (x, t, b, c, d) { | |
| return c * Math.sqrt(1 - (t=t/d-1)*t) + b; | |
| }, | |
| easeInOutCirc: function (x, t, b, c, d) { | |
| if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; | |
| return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; | |
| }, | |
| easeInElastic: function (x, t, b, c, d) { | |
| var s=1.70158;var p=0;var a=c; | |
| if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; | |
| if (a < Math.abs(c)) { a=c; var s=p/4; } | |
| else var s = p/(2*Math.PI) * Math.asin (c/a); | |
| return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; | |
| }, | |
| easeOutElastic: function (x, t, b, c, d) { | |
| var s=1.70158;var p=0;var a=c; | |
| if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; | |
| if (a < Math.abs(c)) { a=c; var s=p/4; } | |
| else var s = p/(2*Math.PI) * Math.asin (c/a); | |
| return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; | |
| }, | |
| easeInOutElastic: function (x, t, b, c, d) { | |
| var s=1.70158;var p=0;var a=c; | |
| if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); | |
| if (a < Math.abs(c)) { a=c; var s=p/4; } | |
| else var s = p/(2*Math.PI) * Math.asin (c/a); | |
| if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; | |
| return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; | |
| }, | |
| easeInBack: function (x, t, b, c, d, s) { | |
| if (s == undefined) s = 1.70158; | |
| return c*(t/=d)*t*((s+1)*t - s) + b; | |
| }, | |
| easeOutBack: function (x, t, b, c, d, s) { | |
| if (s == undefined) s = 1.70158; | |
| return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; | |
| }, | |
| easeInOutBack: function (x, t, b, c, d, s) { | |
| if (s == undefined) s = 1.70158; | |
| if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; | |
| return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; | |
| }, | |
| easeInBounce: function (x, t, b, c, d) { | |
| return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; | |
| }, | |
| easeOutBounce: function (x, t, b, c, d) { | |
| if ((t/=d) < (1/2.75)) { | |
| return c*(7.5625*t*t) + b; | |
| } else if (t < (2/2.75)) { | |
| return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; | |
| } else if (t < (2.5/2.75)) { | |
| return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; | |
| } else { | |
| return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; | |
| } | |
| }, | |
| easeInOutBounce: function (x, t, b, c, d) { | |
| if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; | |
| return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; | |
| } | |
| }); | |
| /* | |
| * | |
| * TERMS OF USE - EASING EQUATIONS | |
| * | |
| * Open source under the BSD License. | |
| * | |
| * Copyright © 2001 Robert Penner | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without modification, | |
| * are permitted provided that the following conditions are met: | |
| * | |
| * Redistributions of source code must retain the above copyright notice, this list of | |
| * conditions and the following disclaimer. | |
| * Redistributions in binary form must reproduce the above copyright notice, this list | |
| * of conditions and the following disclaimer in the documentation and/or other materials | |
| * provided with the distribution. | |
| * | |
| * Neither the name of the author nor the names of contributors may be used to endorse | |
| * or promote products derived from this software without specific prior written permission. | |
| * | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | |
| * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
| * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | |
| * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |
| * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | |
| * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | |
| * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |
| * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | |
| * OF THE POSSIBILITY OF SUCH DAMAGE. | |
| * | |
| */ | |
| /*! | |
| Waypoints - 3.1.1 | |
| Copyright © 2011-2015 Caleb Troughton | |
| Licensed under the MIT license. | |
| https://github.com/imakewebthings/waypoints/blog/master/licenses.txt | |
| */ | |
| !function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var n in t){var r=t[n];for(var s in this.waypoints[n]){var a,l,h,p,u,c=this.waypoints[n][s],d=c.options.offset,f=c.triggerPoint,w=0,y=null==f;c.element!==c.element.window&&(w=c.adapter.offset()[r.offsetProp]),"function"==typeof d?d=d.apply(c):"string"==typeof d&&(d=parseFloat(d),c.options.offset.indexOf("%")>-1&&(d=Math.ceil(r.contextDimension*d/100))),a=r.contextScroll-r.contextOffset,c.triggerPoint=w+a-d,l=f<r.oldScroll,h=c.triggerPoint>=r.oldScroll,p=l&&h,u=!l&&!h,!y&&p?(c.queueTrigger(r.backward),o[c.group.id]=c.group):!y&&u?(c.queueTrigger(r.forward),o[c.group.id]=c.group):y&&r.oldScroll>=c.triggerPoint&&(c.queueTrigger(r.forward),o[c.group.id]=c.group)}}for(var g in o)o[g].flushTriggers();return this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(); | |
| /*! WOW - v1.0.1 - 2014-09-03 | |
| * Copyright (c) 2014 Matthieu Aussaguel; Licensed MIT */(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else{for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)}return this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],g.push(function(){var a,b,e,f;for(e=d.addedNodes||[],f=[],a=0,b=e.length;b>a;a++)c=e[a],f.push(this.doSync(c));return f}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(!this.stopped){if(null==a&&(a=this.element),1!==a.nodeType)return;for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.applyStyle(b,!0),this.boxes.push(b),this.all.push(b),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setAttribute("style","visibility: visible;"));return e},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charAt(0).toUpperCase()+c.substr(1)]=d);return h}.call(this));return f},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(e=d(a),c=e.getPropertyCSSValue(b),i=this.vendors,g=0,h=i.length;h>g;g++)f=i[g],c=c||e.getPropertyCSSValue("-"+f+"-"+b);return c},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this); | |
| // Generated by CoffeeScript 1.4.0 | |
| (function() { | |
| var $; | |
| $ = window.jQuery || window.Zepto || window.$; | |
| $.fn.fancySelect = function(opts) { | |
| var isiOS, settings; | |
| if (opts == null) { | |
| opts = {}; | |
| } | |
| settings = $.extend({ | |
| forceiOS: false, | |
| includeBlank: false, | |
| optionTemplate: function(optionEl) { | |
| return optionEl.text(); | |
| }, | |
| triggerTemplate: function(optionEl) { | |
| return optionEl.text(); | |
| } | |
| }, opts); | |
| isiOS = !!navigator.userAgent.match(/iP(hone|od|ad)/i); | |
| return this.each(function() { | |
| var copyOptionsToList, disabled, options, sel, trigger, updateTriggerText, wrapper; | |
| sel = $(this); | |
| if (sel.hasClass('fancified') || sel[0].tagName !== 'SELECT') { | |
| return; | |
| } | |
| sel.addClass('fancified'); | |
| sel.css({ | |
| width: 1, | |
| height: 1, | |
| display: 'block', | |
| position: 'absolute', | |
| top: 0, | |
| left: 0, | |
| opacity: 0 | |
| }); | |
| sel.wrap('<div class="fancy-select">'); | |
| wrapper = sel.parent(); | |
| if (sel.data('class')) { | |
| wrapper.addClass(sel.data('class')); | |
| } | |
| wrapper.append('<div class="form-control">'); | |
| if (!(isiOS && !settings.forceiOS)) { | |
| wrapper.append('<ul class="options">'); | |
| } | |
| trigger = wrapper.find('.form-control'); | |
| options = wrapper.find('.options'); | |
| disabled = sel.prop('disabled'); | |
| if (disabled) { | |
| wrapper.addClass('disabled'); | |
| } | |
| updateTriggerText = function() { | |
| var triggerHtml; | |
| triggerHtml = settings.triggerTemplate(sel.find(':selected')); | |
| return trigger.html(triggerHtml); | |
| }; | |
| sel.on('blur.fs', function() { | |
| if (trigger.hasClass('open')) { | |
| return setTimeout(function() { | |
| return trigger.trigger('close.fs'); | |
| }, 200); | |
| } | |
| }); | |
| trigger.on('close.fs', function() { | |
| trigger.removeClass('open'); | |
| return options.removeClass('open'); | |
| }); | |
| trigger.on('click.fs', function() { | |
| var offParent, parent; | |
| if (!disabled) { | |
| trigger.toggleClass('open'); | |
| if (isiOS && !settings.forceiOS) { | |
| if (trigger.hasClass('open')) { | |
| return sel.focus(); | |
| } | |
| } else { | |
| if (trigger.hasClass('open')) { | |
| parent = trigger.parent(); | |
| offParent = parent.offsetParent(); | |
| if ((parent.offset().top + parent.outerHeight() + options.outerHeight() + 20) > $(window).height() + $(window).scrollTop()) { | |
| options.addClass('overflowing'); | |
| } else { | |
| options.removeClass('overflowing'); | |
| } | |
| } | |
| options.toggleClass('open'); | |
| if (!isiOS) { | |
| return sel.focus(); | |
| } | |
| } | |
| } | |
| }); | |
| sel.on('enable', function() { | |
| sel.prop('disabled', false); | |
| wrapper.removeClass('disabled'); | |
| disabled = false; | |
| return copyOptionsToList(); | |
| }); | |
| sel.on('disable', function() { | |
| sel.prop('disabled', true); | |
| wrapper.addClass('disabled'); | |
| return disabled = true; | |
| }); | |
| sel.on('change.fs', function(e) { | |
| if (e.originalEvent && e.originalEvent.isTrusted) { | |
| return e.stopPropagation(); | |
| } else { | |
| return updateTriggerText(); | |
| } | |
| }); | |
| sel.on('keydown', function(e) { | |
| var hovered, newHovered, w; | |
| w = e.which; | |
| hovered = options.find('.hover'); | |
| hovered.removeClass('hover'); | |
| if (!options.hasClass('open')) { | |
| if (w === 13 || w === 32 || w === 38 || w === 40) { | |
| e.preventDefault(); | |
| return trigger.trigger('click.fs'); | |
| } | |
| } else { | |
| if (w === 38) { | |
| e.preventDefault(); | |
| if (hovered.length && hovered.index() > 0) { | |
| hovered.prev().addClass('hover'); | |
| } else { | |
| options.find('li:last-child').addClass('hover'); | |
| } | |
| } else if (w === 40) { | |
| e.preventDefault(); | |
| if (hovered.length && hovered.index() < options.find('li').length - 1) { | |
| hovered.next().addClass('hover'); | |
| } else { | |
| options.find('li:first-child').addClass('hover'); | |
| } | |
| } else if (w === 27) { | |
| e.preventDefault(); | |
| trigger.trigger('click.fs'); | |
| } else if (w === 13 || w === 32) { | |
| e.preventDefault(); | |
| hovered.trigger('click.fs'); | |
| } else if (w === 9) { | |
| if (trigger.hasClass('open')) { | |
| trigger.trigger('close.fs'); | |
| } | |
| } | |
| newHovered = options.find('.hover'); | |
| if (newHovered.length) { | |
| options.scrollTop(0); | |
| return options.scrollTop(newHovered.position().top - 12); | |
| } | |
| } | |
| }); | |
| options.on('mousedown.fs', 'li', function(e) { | |
| var clicked; | |
| clicked = $(this); | |
| sel.val(clicked.data('raw-value')); | |
| if (!isiOS) { | |
| sel.trigger('blur.fs').trigger('focus.fs'); | |
| } | |
| options.find('.selected').removeClass('selected'); | |
| clicked.addClass('selected'); | |
| trigger.addClass('selected'); | |
| return sel.val(clicked.data('raw-value')).trigger('change.fs').trigger('blur.fs').trigger('focus.fs'); | |
| }); | |
| options.on('mouseenter.fs', 'li', function() { | |
| var hovered, nowHovered; | |
| nowHovered = $(this); | |
| hovered = options.find('.hover'); | |
| hovered.removeClass('hover'); | |
| return nowHovered.addClass('hover'); | |
| }); | |
| options.on('mouseleave.fs', 'li', function() { | |
| return options.find('.hover').removeClass('hover'); | |
| }); | |
| copyOptionsToList = function() { | |
| var selOpts; | |
| updateTriggerText(); | |
| if (isiOS && !settings.forceiOS) { | |
| return; | |
| } | |
| selOpts = sel.find('option'); | |
| return sel.find('option').each(function(i, opt) { | |
| var optHtml; | |
| opt = $(opt); | |
| if (!opt.prop('disabled') && (opt.val() || settings.includeBlank)) { | |
| optHtml = settings.optionTemplate(opt); | |
| if (opt.prop('selected')) { | |
| return options.append("<li data-raw-value=\"" + (opt.val()) + "\" class=\"selected\">" + optHtml + "</li>"); | |
| } else { | |
| return options.append("<li data-raw-value=\"" + (opt.val()) + "\">" + optHtml + "</li>"); | |
| } | |
| } | |
| }); | |
| }; | |
| sel.on('update.fs', function() { | |
| wrapper.find('.options').empty(); | |
| return copyOptionsToList(); | |
| }); | |
| return copyOptionsToList(); | |
| }); | |
| }; | |
| }).call(this); | |
| /*! | |
| SlickNav Responsive Mobile Menu v1.0.2 | |
| (c) 2015 Josh Cope | |
| licensed under MIT | |
| */ | |
| !function(n,e){function t(e,t){this.element=e,this.settings=n.extend({},a,t),this._defaults=a,this._name=i,this.init()}var a={label:"MENU",duplicate:!0,duration:200,easingOpen:"swing",easingClose:"swing",closedSymbol:"►",openedSymbol:"▼",prependTo:"body",parentTag:"a",closeOnClick:!1,allowParentLinks:!1,nestedParentLinks:!0,showChildren:!1,brand:"",init:function(){},open:function(){},close:function(){}},i="slicknav",s="slicknav";t.prototype.init=function(){var t,a,i=this,l=n(this.element),o=this.settings;if(o.duplicate?(i.mobileNav=l.clone(),i.mobileNav.removeAttr("id"),i.mobileNav.find("*").each(function(e,t){n(t).removeAttr("id")})):i.mobileNav=l,t=s+"_icon",""===o.label&&(t+=" "+s+"_no-text"),"a"==o.parentTag&&(o.parentTag='a href="#"'),i.mobileNav.attr("class",s+"_nav"),a=n('<div class="'+s+'_menu"></div>'),""!==o.brand){var r=n('<div class="'+s+'_brand">'+o.brand+"</div>");n(a).append(r)}i.btn=n(["<"+o.parentTag+' aria-haspopup="true" tabindex="0" class="'+s+"_btn "+s+'_collapsed">','<span class="'+s+'_menutxt">'+o.label+"</span>",'<span class="'+t+'">','<span class="'+s+'_icon-bar"></span>','<span class="'+s+'_icon-bar"></span>','<span class="'+s+'_icon-bar"></span>',"</span>","</"+o.parentTag+">"].join("")),n(a).append(i.btn),n(o.prependTo).prepend(a),a.append(i.mobileNav);var d=i.mobileNav.find("li");n(d).each(function(){var e=n(this),t={};if(t.children=e.children("ul").attr("role","menu"),e.data("menu",t),t.children.length>0){var a=e.contents(),l=!1;nodes=[],n(a).each(function(){return n(this).is("ul")?!1:(nodes.push(this),void(n(this).is("a")&&(l=!0)))});var r=n("<"+o.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+s+'_item"/>');if(o.allowParentLinks&&!o.nestedParentLinks&&l)n(nodes).wrapAll('<span class="'+s+"_parent-link "+s+'_row"/>').parent();else{var d=n(nodes).wrapAll(r).parent();d.addClass(s+"_row")}e.addClass(s+"_collapsed"),e.addClass(s+"_parent");var c=n('<span class="'+s+'_arrow">'+o.closedSymbol+"</span>");o.allowParentLinks&&!o.nestedParentLinks&&l&&(c=c.wrap(r).parent()),n(nodes).last().after(c)}else 0===e.children().length&&e.addClass(s+"_txtnode");e.children("a").attr("role","menuitem").click(function(e){o.closeOnClick&&!n(e.target).parent().closest("li").hasClass(s+"_parent")&&n(i.btn).click()}),o.closeOnClick&&o.allowParentLinks&&(e.children("a").children("a").click(function(){n(i.btn).click()}),e.find("."+s+"_parent-link a:not(."+s+"_item)").click(function(){n(i.btn).click()}))}),n(d).each(function(){var e=n(this).data("menu");o.showChildren||i._visibilityToggle(e.children,null,!1,null,!0)}),i._visibilityToggle(i.mobileNav,null,!1,"init",!0),i.mobileNav.attr("role","menu"),n(e).mousedown(function(){i._outlines(!1)}),n(e).keyup(function(){i._outlines(!0)}),n(i.btn).click(function(n){n.preventDefault(),i._menuToggle()}),i.mobileNav.on("click","."+s+"_item",function(e){e.preventDefault(),i._itemClick(n(this))}),n(i.btn).keydown(function(n){var e=n||event;13==e.keyCode&&(n.preventDefault(),i._menuToggle())}),i.mobileNav.on("keydown","."+s+"_item",function(e){var t=e||event;13==t.keyCode&&(e.preventDefault(),i._itemClick(n(e.target)))}),o.allowParentLinks&&o.nestedParentLinks&&n("."+s+"_item a").click(function(n){n.stopImmediatePropagation()})},t.prototype._menuToggle=function(){var n=this,e=n.btn,t=n.mobileNav;e.hasClass(s+"_collapsed")?(e.removeClass(s+"_collapsed"),e.addClass(s+"_open")):(e.removeClass(s+"_open"),e.addClass(s+"_collapsed")),e.addClass(s+"_animating"),n._visibilityToggle(t,e.parent(),!0,e)},t.prototype._itemClick=function(n){var e=this,t=e.settings,a=n.data("menu");a||(a={},a.arrow=n.children("."+s+"_arrow"),a.ul=n.next("ul"),a.parent=n.parent(),a.parent.hasClass(s+"_parent-link")&&(a.parent=n.parent().parent(),a.ul=n.parent().next("ul")),n.data("menu",a)),a.parent.hasClass(s+"_collapsed")?(a.arrow.html(t.openedSymbol),a.parent.removeClass(s+"_collapsed"),a.parent.addClass(s+"_open"),a.parent.addClass(s+"_animating"),e._visibilityToggle(a.ul,a.parent,!0,n)):(a.arrow.html(t.closedSymbol),a.parent.addClass(s+"_collapsed"),a.parent.removeClass(s+"_open"),a.parent.addClass(s+"_animating"),e._visibilityToggle(a.ul,a.parent,!0,n))},t.prototype._visibilityToggle=function(e,t,a,i,l){var o=this,r=o.settings,d=o._getActionItems(e),c=0;a&&(c=r.duration),e.hasClass(s+"_hidden")?(e.removeClass(s+"_hidden"),e.slideDown(c,r.easingOpen,function(){n(i).removeClass(s+"_animating"),n(t).removeClass(s+"_animating"),l||r.open(i)}),e.attr("aria-hidden","false"),d.attr("tabindex","0"),o._setVisAttr(e,!1)):(e.addClass(s+"_hidden"),e.slideUp(c,this.settings.easingClose,function(){e.attr("aria-hidden","true"),d.attr("tabindex","-1"),o._setVisAttr(e,!0),e.hide(),n(i).removeClass(s+"_animating"),n(t).removeClass(s+"_animating"),l?"init"==i&&r.init():r.close(i)}))},t.prototype._setVisAttr=function(e,t){var a=this,i=e.children("li").children("ul").not("."+s+"_hidden");i.each(t?function(){var e=n(this);e.attr("aria-hidden","true");var i=a._getActionItems(e);i.attr("tabindex","-1"),a._setVisAttr(e,t)}:function(){var e=n(this);e.attr("aria-hidden","false");var i=a._getActionItems(e);i.attr("tabindex","0"),a._setVisAttr(e,t)})},t.prototype._getActionItems=function(n){var e=n.data("menu");if(!e){e={};var t=n.children("li"),a=t.find("a");e.links=a.add(t.find("."+s+"_item")),n.data("menu",e)}return e.links},t.prototype._outlines=function(e){e?n("."+s+"_item, ."+s+"_btn").css("outline",""):n("."+s+"_item, ."+s+"_btn").css("outline","none")},t.prototype.toggle=function(){var n=this;n._menuToggle()},t.prototype.open=function(){var n=this;n.btn.hasClass(s+"_collapsed")&&n._menuToggle()},t.prototype.close=function(){var n=this;n.btn.hasClass(s+"_open")&&n._menuToggle()},n.fn[i]=function(e){var a=arguments;if(void 0===e||"object"==typeof e)return this.each(function(){n.data(this,"plugin_"+i)||n.data(this,"plugin_"+i,new t(this,e))});if("string"==typeof e&&"_"!==e[0]&&"init"!==e){var s;return this.each(function(){var l=n.data(this,"plugin_"+i);l instanceof t&&"function"==typeof l[e]&&(s=l[e].apply(l,Array.prototype.slice.call(a,1)))}),void 0!==s?s:this}}}(jQuery,document,window); | |
| /** | |
| * jquery.matchHeight-min.js v0.5.1 | |
| * http://brm.io/jquery-match-height/ | |
| * License: MIT | |
| */ | |
| (function(b){b.fn.matchHeight=function(a){if("remove"===a){var d=this;this.css("height","");b.each(b.fn.matchHeight._groups,function(b,a){a.elements=a.elements.not(d)});return this}if(1>=this.length)return this;a="undefined"!==typeof a?a:!0;b.fn.matchHeight._groups.push({elements:this,byRow:a});b.fn.matchHeight._apply(this,a);return this};b.fn.matchHeight._apply=function(a,d){var c=b(a),e=[c];d&&(c.css({display:"block","padding-top":"0","padding-bottom":"0","border-top":"0","border-bottom":"0",height:"100px"}), | |
| e=k(c),c.css({display:"","padding-top":"","padding-bottom":"","border-top":"","border-bottom":"",height:""}));b.each(e,function(a,c){var d=b(c),e=0;d.each(function(){var a=b(this);a.css({display:"block",height:""});a.outerHeight(!1)>e&&(e=a.outerHeight(!1));a.css({display:""})});d.each(function(){var a=b(this),c=0;"border-box"!==a.css("box-sizing")&&(c+=g(a.css("border-top-width"))+g(a.css("border-bottom-width")),c+=g(a.css("padding-top"))+g(a.css("padding-bottom")));a.css("height",e-c)})});return this}; | |
| b.fn.matchHeight._applyDataApi=function(){var a={};b("[data-match-height], [data-mh]").each(function(){var d=b(this),c=d.attr("data-match-height");a[c]=c in a?a[c].add(d):d});b.each(a,function(){this.matchHeight(!0)})};b.fn.matchHeight._groups=[];b.fn.matchHeight._throttle=80;var h=-1,f=-1;b.fn.matchHeight._update=function(a){if(a&&"resize"===a.type){a=b(window).width();if(a===h)return;h=a}-1===f&&(f=setTimeout(function(){b.each(b.fn.matchHeight._groups,function(){b.fn.matchHeight._apply(this.elements, | |
| this.byRow)});f=-1},b.fn.matchHeight._throttle))};b(b.fn.matchHeight._applyDataApi);b(window).bind("load resize orientationchange",b.fn.matchHeight._update);var k=function(a){var d=null,c=[];b(a).each(function(){var a=b(this),f=a.offset().top-g(a.css("margin-top")),h=0<c.length?c[c.length-1]:null;null===h?c.push(a):1>=Math.floor(Math.abs(d-f))?c[c.length-1]=h.add(a):c.push(a);d=f});return c},g=function(a){return parseFloat(a)||0}})(jQuery); | |
| /* HTML5 Placeholder jQuery Plugin - v2.1.0 | |
| * Copyright (c)2015 Mathias Bynens | |
| * https://github.com/mathiasbynens/jquery-placeholder | |
| * 2015-01-27 | |
| */ | |
| !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(b){var c={},d=/^jQuery\d+$/;return a.each(b.attributes,function(a,b){b.specified&&!d.test(b.name)&&(c[b.name]=b.value)}),c}function c(b,c){var d=this,f=a(d);if(d.value==f.attr("placeholder")&&f.hasClass(m.customClass))if(f.data("placeholder-password")){if(f=f.hide().nextAll('input[type="password"]:first').show().attr("id",f.removeAttr("id").data("placeholder-id")),b===!0)return f[0].value=c;f.focus()}else d.value="",f.removeClass(m.customClass),d==e()&&d.select()}function d(){var d,e=this,f=a(e),g=this.id;if(""===e.value){if("password"===e.type){if(!f.data("placeholder-textinput")){try{d=f.clone().attr({type:"text"})}catch(h){d=a("<input>").attr(a.extend(b(this),{type:"text"}))}d.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",c),f.data({"placeholder-textinput":d,"placeholder-id":g}).before(d)}f=f.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",g).show()}f.addClass(m.customClass),f[0].value=f.attr("placeholder")}else f.removeClass(m.customClass)}function e(){try{return document.activeElement}catch(a){}}var f,g,h="[object OperaMini]"==Object.prototype.toString.call(window.operamini),i="placeholder"in document.createElement("input")&&!h,j="placeholder"in document.createElement("textarea")&&!h,k=a.valHooks,l=a.propHooks;if(i&&j)g=a.fn.placeholder=function(){return this},g.input=g.textarea=!0;else{var m={};g=a.fn.placeholder=function(b){var e={customClass:"placeholder"};m=a.extend({},e,b);var f=this;return f.filter((i?"textarea":":input")+"[placeholder]").not("."+m.customClass).bind({"focus.placeholder":c,"blur.placeholder":d}).data("placeholder-enabled",!0).trigger("blur.placeholder"),f},g.input=i,g.textarea=j,f={get:function(b){var c=a(b),d=c.data("placeholder-password");return d?d[0].value:c.data("placeholder-enabled")&&c.hasClass(m.customClass)?"":b.value},set:function(b,f){var g=a(b),h=g.data("placeholder-password");return h?h[0].value=f:g.data("placeholder-enabled")?(""===f?(b.value=f,b!=e()&&d.call(b)):g.hasClass(m.customClass)?c.call(b,!0,f)||(b.value=f):b.value=f,g):b.value=f}},i||(k.input=f,l.value=f),j||(k.textarea=f,l.value=f),a(function(){a(document).delegate("form","submit.placeholder",function(){var b=a("."+m.customClass,this).each(c);setTimeout(function(){b.each(d)},10)})}),a(window).bind("beforeunload.placeholder",function(){a("."+m.customClass).each(function(){this.value=""})})}}); | |
| //# sourceMappingURL=jquery.placeholder.min.js.map | |
| /* | |
| _ _ _ _ | |
| ___| (_) ___| | __ (_)___ | |
| / __| | |/ __| |/ / | / __| | |
| \__ \ | | (__| < _ | \__ \ | |
| |___/_|_|\___|_|\_(_)/ |___/ | |
| |__/ | |
| Version: 1.5.5 | |
| Author: Ken Wheeler | |
| Website: http://kenwheeler.github.io | |
| Docs: http://kenwheeler.github.io/slick | |
| Repo: http://github.com/kenwheeler/slick | |
| Issues: http://github.com/kenwheeler/slick/issues | |
| */ | |
| !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,g,h,e=this;if(e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="previous">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="next">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(a,b){return'<button type="button" data-role="none">'+(b+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.hidden="hidden",e.paused=!1,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,f,d),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,g=e.options.responsive||null,g&&g.length>-1){e.respondTo=e.options.respondTo||"window";for(h in g)g.hasOwnProperty(h)&&(e.breakpoints.push(g[h].breakpoint),e.breakpointSettings[g[h].breakpoint]=g[h].settings);e.breakpoints.sort(function(a,b){return e.options.mobileFirst===!0?a-b:b-a})}"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.init(!0),e.checkResponsive(!0)}var b=0;return c}(),b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),d[e.animType]=e.options.vertical===!1?"translate3d("+b+"px, 0px, 0px)":"translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.asNavFor=function(b){var c=this,d=c.options.asNavFor;d&&null!==d&&(d=a(d).not(c.$slider)),null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};c[b.transitionType]=b.options.fade===!1?b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:"opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer),a.slideCount>a.options.slidesToShow&&a.paused!==!0&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this;a.options.infinite===!1?1===a.direction?(a.currentSlide+1===a.slideCount-1&&(a.direction=0),a.slideHandler(a.currentSlide+a.options.slidesToScroll)):(0===a.currentSlide-1&&(a.direction=1),a.slideHandler(a.currentSlide-a.options.slidesToScroll)):a.slideHandler(a.currentSlide+a.options.slidesToScroll)},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow=a(b.options.prevArrow),b.$nextArrow=a(b.options.nextArrow),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.appendTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled"))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(d='<ul class="'+b.options.dotsClass+'">',c=0;c<=b.getDotCount();c+=1)d+="<li>"+b.options.customPaging.call(this,b,c)+"</li>";d+="</ul>",b.$dots=a(d).appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slidesCache=b.$slides,b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.options.accessibility===!0&&b.$list.prop("tabIndex",0),b.setSlideClasses("number"==typeof this.currentSlide?this.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.html(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b){var d,e,f,c=this,g=!1,h=c.$slider.width(),i=window.innerWidth||a(window).width();if("window"===c.respondTo?f=i:"slider"===c.respondTo?f=h:"min"===c.respondTo&&(f=Math.min(i,h)),c.originalSettings.responsive&&c.originalSettings.responsive.length>-1&&null!==c.originalSettings.responsive){e=null;for(d in c.breakpoints)c.breakpoints.hasOwnProperty(d)&&(c.originalSettings.mobileFirst===!1?f<c.breakpoints[d]&&(e=c.breakpoints[d]):f>c.breakpoints[d]&&(e=c.breakpoints[d]));null!==e?null!==c.activeBreakpoint?e!==c.activeBreakpoint&&(c.activeBreakpoint=e,"unslick"===c.breakpointSettings[e]?c.unslick(e):(c.options=a.extend({},c.originalSettings,c.breakpointSettings[e]),b===!0&&(c.currentSlide=c.options.initialSlide),c.refresh(b)),g=e):(c.activeBreakpoint=e,"unslick"===c.breakpointSettings[e]?c.unslick(e):(c.options=a.extend({},c.originalSettings,c.breakpointSettings[e]),b===!0&&(c.currentSlide=c.options.initialSlide),c.refresh(b)),g=e):null!==c.activeBreakpoint&&(c.activeBreakpoint=null,c.options=c.originalSettings,b===!0&&(c.currentSlide=c.options.initialSlide),c.refresh(b),g=e),b||g===!1||c.$slider.trigger("breakpoint",[c,g])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.target);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=0!==d.slideCount%d.options.slidesToScroll,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&(a("li",b.$dots).off("click.slick",b.changeSlide),b.options.pauseOnDotsHover===!0&&b.options.autoplay===!0&&a("li",b.$dots).off("mouseenter.slick",a.proxy(b.setPaused,b,!0)).off("mouseleave.slick",a.proxy(b.setPaused,b,!1))),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.$list.off("mouseenter.slick",a.proxy(b.setPaused,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.setPaused,b,!1)),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.html(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&"object"!=typeof c.options.prevArrow&&c.$prevArrow.remove(),c.$nextArrow&&"object"!=typeof c.options.nextArrow&&c.$nextArrow.remove(),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:1e3}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:1e3}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToShow,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else for(;b<a.slideCount;)++d,b=c+a.options.slidesToShow,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=-1*b.slideWidth*b.options.slidesToShow,e=-1*d*b.options.slidesToShow),0!==b.slideCount%b.options.slidesToScroll&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=-1*(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth,e=-1*(b.options.slidesToShow-(a-b.slideCount))*d):(b.slideOffset=-1*b.slideCount%b.options.slidesToScroll*b.slideWidth,e=-1*b.slideCount%b.options.slidesToScroll*d))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?-1*a*b.slideWidth+b.slideOffset:-1*a*d+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots()),b&&c.$slider.trigger("init",[c])},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&b.options.autoplay===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.setPaused,b,!0)).on("mouseleave.slick",a.proxy(b.setPaused,b,!1))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.$list.on("mouseenter.slick",a.proxy(b.setPaused,b,!0)),b.$list.on("mouseleave.slick",a.proxy(b.setPaused,b,!1)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show(),a.options.autoplay===!0&&a.autoPlay()},b.prototype.keyHandler=function(a){var b=this;37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:"next"}})},b.prototype.lazyLoad=function(){function g(b){a("img[data-lazy]",b).each(function(){var b=a(this),c=a(this).attr("data-lazy"),d=document.createElement("img");d.onload=function(){b.animate({opacity:1},200)},d.src=c,b.css({opacity:0}).attr("src",c).removeAttr("data-lazy").removeClass("slick-loading")})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=e+b.options.slidesToShow,b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.paused=!1,a.autoPlay()},b.prototype.postSlide=function(a){var b=this;b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay===!0&&b.paused===!1&&b.autoPlay()},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(){var c,d,b=this;c=a("img[data-lazy]",b.$slider).length,c>0&&(d=a("img[data-lazy]",b.$slider).first(),d.attr("src",d.attr("data-lazy")).removeClass("slick-loading").load(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad(),b.options.adaptiveHeight===!0&&b.setPosition()}).error(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad()}))},b.prototype.refresh=function(b){var c=this,d=c.currentSlide;c.destroy(!0),a.extend(c,c.initials),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses(0),b.setPosition(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,d.reinit(),void 0)},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=-1*b.slideWidth*d,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:800,opacity:0}):a(e).css({position:"relative",left:c,top:0,zIndex:800,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:900,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(a,b,c){var d=this;d.options[a]=b,c===!0&&(d.unload(),d.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;b.$slider.find(".slick-slide").removeClass("slick-active").attr("aria-hidden","true").removeClass("slick-center"),d=b.$slider.find(".slick-slide"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.setPaused=function(a){var b=this;b.options.autoplay===!0&&b.options.pauseOnHover===!0&&(b.paused=a,a?b.autoPlayClear():b.autoPlay())},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.$slider.find(".slick-slide").removeClass("slick-active").attr("aria-hidden","true"),c.$slides.eq(e).addClass("slick-active").attr("aria-hidden","false"),c.options.centerMode===!0&&(c.$slider.find(".slick-slide").removeClass("slick-center"),c.$slides.eq(e).addClass("slick-center")),c.asNavFor(e),void 0):(c.slideHandler(e),void 0)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d)),void 0):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d)),void 0):(i.options.autoplay===!0&&clearInterval(i.autoPlayTimer),e=0>d?0!==i.slideCount%i.options.slidesToScroll?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?0!==i.slideCount%i.options.slidesToScroll?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?i.fadeSlide(e,function(){i.postSlide(e)}):i.postSlide(e),i.animateHeight(),void 0):(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e),void 0)))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"left":"right":"vertical"},b.prototype.swipeEnd=function(){var c,b=this;if(b.dragging=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe)switch(b.swipeDirection()){case"left":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.slideHandler(c),b.currentDirection=0,b.touchObject={},b.$slider.trigger("swipe",[b,"left"]);break;case"right":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.slideHandler(c),b.currentDirection=1,b.touchObject={},b.$slider.trigger("swipe",[b,"right"]) | |
| }else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.swipeLeft=b.options.vertical===!1?d+f*g:d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):(b.setCSS(b.swipeLeft),void 0)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return 1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,b.dragging=!0,void 0)},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&"object"!=typeof b.options.prevArrow&&b.$prevArrow.remove(),b.$nextArrow&&"object"!=typeof b.options.nextArrow&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.options.infinite!==!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.removeClass("slick-disabled"),a.$nextArrow.removeClass("slick-disabled"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled"),a.$nextArrow.removeClass("slick-disabled")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled"),a.$prevArrow.removeClass("slick-disabled")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled"),a.$prevArrow.removeClass("slick-disabled")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;document[a.hidden]?(a.paused=!0,a.autoPlayClear()):a.options.autoplay===!0&&(a.paused=!1,a.autoPlay())},a.fn.slick=function(){var g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length,f=0;for(f;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}}); | |
| /*! | |
| * jQuery Raty - A Star Rating Plugin | |
| * | |
| * The MIT License | |
| * | |
| * @author : Washington Botelho | |
| * @doc : http://wbotelhos.com/raty | |
| * @version : 2.7.0 | |
| * | |
| */ | |
| ; | |
| (function($) { | |
| 'use strict'; | |
| var methods = { | |
| init: function(options) { | |
| return this.each(function() { | |
| this.self = $(this); | |
| methods.destroy.call(this.self); | |
| this.opt = $.extend(true, {}, $.fn.raty.defaults, options); | |
| methods._adjustCallback.call(this); | |
| methods._adjustNumber.call(this); | |
| methods._adjustHints.call(this); | |
| this.opt.score = methods._adjustedScore.call(this, this.opt.score); | |
| if (this.opt.starType !== 'img') { | |
| methods._adjustStarType.call(this); | |
| } | |
| methods._adjustPath.call(this); | |
| methods._createStars.call(this); | |
| if (this.opt.cancel) { | |
| methods._createCancel.call(this); | |
| } | |
| if (this.opt.precision) { | |
| methods._adjustPrecision.call(this); | |
| } | |
| methods._createScore.call(this); | |
| methods._apply.call(this, this.opt.score); | |
| methods._setTitle.call(this, this.opt.score); | |
| methods._target.call(this, this.opt.score); | |
| if (this.opt.readOnly) { | |
| methods._lock.call(this); | |
| } else { | |
| this.style.cursor = 'pointer'; | |
| methods._binds.call(this); | |
| } | |
| }); | |
| }, | |
| _adjustCallback: function() { | |
| var options = ['number', 'readOnly', 'score', 'scoreName', 'target']; | |
| for (var i = 0; i < options.length; i++) { | |
| if (typeof this.opt[options[i]] === 'function') { | |
| this.opt[options[i]] = this.opt[options[i]].call(this); | |
| } | |
| } | |
| }, | |
| _adjustedScore: function(score) { | |
| if (!score) { | |
| return score; | |
| } | |
| return methods._between(score, 0, this.opt.number); | |
| }, | |
| _adjustHints: function() { | |
| if (!this.opt.hints) { | |
| this.opt.hints = []; | |
| } | |
| if (!this.opt.halfShow && !this.opt.half) { | |
| return; | |
| } | |
| var steps = this.opt.precision ? 10 : 2; | |
| for (var i = 0; i < this.opt.number; i++) { | |
| var group = this.opt.hints[i]; | |
| if (Object.prototype.toString.call(group) !== '[object Array]') { | |
| group = [group]; | |
| } | |
| this.opt.hints[i] = []; | |
| for (var j = 0; j < steps; j++) { | |
| var | |
| hint = group[j], | |
| last = group[group.length - 1]; | |
| if (last === undefined) { | |
| last = null; | |
| } | |
| this.opt.hints[i][j] = hint === undefined ? last : hint; | |
| } | |
| } | |
| }, | |
| _adjustNumber: function() { | |
| this.opt.number = methods._between(this.opt.number, 1, this.opt.numberMax); | |
| }, | |
| _adjustPath: function() { | |
| this.opt.path = this.opt.path || ''; | |
| if (this.opt.path && this.opt.path.charAt(this.opt.path.length - 1) !== '/') { | |
| this.opt.path += '/'; | |
| } | |
| }, | |
| _adjustPrecision: function() { | |
| this.opt.half = true; | |
| }, | |
| _adjustStarType: function() { | |
| var replaces = ['cancelOff', 'cancelOn', 'starHalf', 'starOff', 'starOn']; | |
| this.opt.path = ''; | |
| for (var i = 0; i < replaces.length; i++) { | |
| this.opt[replaces[i]] = this.opt[replaces[i]].replace('.', '-'); | |
| } | |
| }, | |
| _apply: function(score) { | |
| methods._fill.call(this, score); | |
| if (score) { | |
| if (score > 0) { | |
| this.score.val(score); | |
| } | |
| methods._roundStars.call(this, score); | |
| } | |
| }, | |
| _between: function(value, min, max) { | |
| return Math.min(Math.max(parseFloat(value), min), max); | |
| }, | |
| _binds: function() { | |
| if (this.cancel) { | |
| methods._bindOverCancel.call(this); | |
| methods._bindClickCancel.call(this); | |
| methods._bindOutCancel.call(this); | |
| } | |
| methods._bindOver.call(this); | |
| methods._bindClick.call(this); | |
| methods._bindOut.call(this); | |
| }, | |
| _bindClick: function() { | |
| var that = this; | |
| that.stars.on('click.raty', function(evt) { | |
| var | |
| execute = true, | |
| score = (that.opt.half || that.opt.precision) ? that.self.data('score') : (this.alt || $(this).data('alt')); | |
| if (that.opt.click) { | |
| execute = that.opt.click.call(that, +score, evt); | |
| } | |
| if (execute || execute === undefined) { | |
| if (that.opt.half && !that.opt.precision) { | |
| score = methods._roundHalfScore.call(that, score); | |
| } | |
| methods._apply.call(that, score); | |
| } | |
| }); | |
| }, | |
| _bindClickCancel: function() { | |
| var that = this; | |
| that.cancel.on('click.raty', function(evt) { | |
| that.score.removeAttr('value'); | |
| if (that.opt.click) { | |
| that.opt.click.call(that, null, evt); | |
| } | |
| }); | |
| }, | |
| _bindOut: function() { | |
| var that = this; | |
| that.self.on('mouseleave.raty', function(evt) { | |
| var score = +that.score.val() || undefined; | |
| methods._apply.call(that, score); | |
| methods._target.call(that, score, evt); | |
| methods._resetTitle.call(that); | |
| if (that.opt.mouseout) { | |
| that.opt.mouseout.call(that, score, evt); | |
| } | |
| }); | |
| }, | |
| _bindOutCancel: function() { | |
| var that = this; | |
| that.cancel.on('mouseleave.raty', function(evt) { | |
| var icon = that.opt.cancelOff; | |
| if (that.opt.starType !== 'img') { | |
| icon = that.opt.cancelClass + ' ' + icon; | |
| } | |
| methods._setIcon.call(that, this, icon); | |
| if (that.opt.mouseout) { | |
| var score = +that.score.val() || undefined; | |
| that.opt.mouseout.call(that, score, evt); | |
| } | |
| }); | |
| }, | |
| _bindOver: function() { | |
| var that = this, | |
| action = that.opt.half ? 'mousemove.raty' : 'mouseover.raty'; | |
| that.stars.on(action, function(evt) { | |
| var score = methods._getScoreByPosition.call(that, evt, this); | |
| methods._fill.call(that, score); | |
| if (that.opt.half) { | |
| methods._roundStars.call(that, score, evt); | |
| methods._setTitle.call(that, score, evt); | |
| that.self.data('score', score); | |
| } | |
| methods._target.call(that, score, evt); | |
| if (that.opt.mouseover) { | |
| that.opt.mouseover.call(that, score, evt); | |
| } | |
| }); | |
| }, | |
| _bindOverCancel: function() { | |
| var that = this; | |
| that.cancel.on('mouseover.raty', function(evt) { | |
| var | |
| starOff = that.opt.path + that.opt.starOff, | |
| icon = that.opt.cancelOn; | |
| if (that.opt.starType === 'img') { | |
| that.stars.attr('src', starOff); | |
| } else { | |
| icon = that.opt.cancelClass + ' ' + icon; | |
| that.stars.attr('class', starOff); | |
| } | |
| methods._setIcon.call(that, this, icon); | |
| methods._target.call(that, null, evt); | |
| if (that.opt.mouseover) { | |
| that.opt.mouseover.call(that, null); | |
| } | |
| }); | |
| }, | |
| _buildScoreField: function() { | |
| return $('<input />', { name: this.opt.scoreName, type: 'hidden' }).appendTo(this); | |
| }, | |
| _createCancel: function() { | |
| var icon = this.opt.path + this.opt.cancelOff, | |
| cancel = $('<' + this.opt.starType + ' />', { title: this.opt.cancelHint, 'class': this.opt.cancelClass }); | |
| if (this.opt.starType === 'img') { | |
| cancel.attr({ src: icon, alt: 'x' }); | |
| } else { | |
| // TODO: use $.data | |
| cancel.attr('data-alt', 'x').addClass(icon); | |
| } | |
| if (this.opt.cancelPlace === 'left') { | |
| this.self.prepend(' ').prepend(cancel); | |
| } else { | |
| this.self.append(' ').append(cancel); | |
| } | |
| this.cancel = cancel; | |
| }, | |
| _createScore: function() { | |
| var score = $(this.opt.targetScore); | |
| this.score = score.length ? score : methods._buildScoreField.call(this); | |
| }, | |
| _createStars: function() { | |
| for (var i = 1; i <= this.opt.number; i++) { | |
| var | |
| name = methods._nameForIndex.call(this, i), | |
| attrs = { alt: i, src: this.opt.path + this.opt[name] }; | |
| if (this.opt.starType !== 'img') { | |
| attrs = { 'data-alt': i, 'class': attrs.src }; // TODO: use $.data. | |
| } | |
| attrs.title = methods._getHint.call(this, i); | |
| $('<' + this.opt.starType + ' />', attrs).appendTo(this); | |
| if (this.opt.space) { | |
| this.self.append(i < this.opt.number ? ' ' : ''); | |
| } | |
| } | |
| this.stars = this.self.children(this.opt.starType); | |
| }, | |
| _error: function(message) { | |
| $(this).text(message); | |
| $.error(message); | |
| }, | |
| _fill: function(score) { | |
| var hash = 0; | |
| for (var i = 1; i <= this.stars.length; i++) { | |
| var | |
| icon, | |
| star = this.stars[i - 1], | |
| turnOn = methods._turnOn.call(this, i, score); | |
| if (this.opt.iconRange && this.opt.iconRange.length > hash) { | |
| var irange = this.opt.iconRange[hash]; | |
| icon = methods._getRangeIcon.call(this, irange, turnOn); | |
| if (i <= irange.range) { | |
| methods._setIcon.call(this, star, icon); | |
| } | |
| if (i === irange.range) { | |
| hash++; | |
| } | |
| } else { | |
| icon = this.opt[turnOn ? 'starOn' : 'starOff']; | |
| methods._setIcon.call(this, star, icon); | |
| } | |
| } | |
| }, | |
| _getFirstDecimal: function(number) { | |
| var | |
| decimal = number.toString().split('.')[1], | |
| result = 0; | |
| if (decimal) { | |
| result = parseInt(decimal.charAt(0), 10); | |
| if (decimal.slice(1, 5) === '9999') { | |
| result++; | |
| } | |
| } | |
| return result; | |
| }, | |
| _getRangeIcon: function(irange, turnOn) { | |
| return turnOn ? irange.on || this.opt.starOn : irange.off || this.opt.starOff; | |
| }, | |
| _getScoreByPosition: function(evt, icon) { | |
| var score = parseInt(icon.alt || icon.getAttribute('data-alt'), 10); | |
| if (this.opt.half) { | |
| var | |
| size = methods._getWidth.call(this), | |
| percent = parseFloat((evt.pageX - $(icon).offset().left) / size); | |
| score = score - 1 + percent; | |
| } | |
| return score; | |
| }, | |
| _getHint: function(score, evt) { | |
| if (score !== 0 && !score) { | |
| return this.opt.noRatedMsg; | |
| } | |
| var | |
| decimal = methods._getFirstDecimal.call(this, score), | |
| integer = Math.ceil(score), | |
| group = this.opt.hints[(integer || 1) - 1], | |
| hint = group, | |
| set = !evt || this.move; | |
| if (this.opt.precision) { | |
| if (set) { | |
| decimal = decimal === 0 ? 9 : decimal - 1; | |
| } | |
| hint = group[decimal]; | |
| } else if (this.opt.halfShow || this.opt.half) { | |
| decimal = set && decimal === 0 ? 1 : decimal > 5 ? 1 : 0; | |
| hint = group[decimal]; | |
| } | |
| return hint === '' ? '' : hint || score; | |
| }, | |
| _getWidth: function() { | |
| var width = this.stars[0].width || parseFloat(this.stars.eq(0).css('font-size')); | |
| if (!width) { | |
| methods._error.call(this, 'Could not get the icon width!'); | |
| } | |
| return width; | |
| }, | |
| _lock: function() { | |
| var hint = methods._getHint.call(this, this.score.val()); | |
| this.style.cursor = ''; | |
| this.title = hint; | |
| this.score.prop('readonly', true); | |
| this.stars.prop('title', hint); | |
| if (this.cancel) { | |
| this.cancel.hide(); | |
| } | |
| this.self.data('readonly', true); | |
| }, | |
| _nameForIndex: function(i) { | |
| return this.opt.score && this.opt.score >= i ? 'starOn' : 'starOff'; | |
| }, | |
| _resetTitle: function(star) { | |
| for (var i = 0; i < this.opt.number; i++) { | |
| this.stars[i].title = methods._getHint.call(this, i + 1); | |
| } | |
| }, | |
| _roundHalfScore: function(score) { | |
| var integer = parseInt(score, 10), | |
| decimal = methods._getFirstDecimal.call(this, score); | |
| if (decimal !== 0) { | |
| decimal = decimal > 5 ? 1 : 0.5; | |
| } | |
| return integer + decimal; | |
| }, | |
| _roundStars: function(score, evt) { | |
| var | |
| decimal = (score % 1).toFixed(2), | |
| name ; | |
| if (evt || this.move) { | |
| name = decimal > 0.5 ? 'starOn' : 'starHalf'; | |
| } else if (decimal > this.opt.round.down) { // Up: [x.76 .. x.99] | |
| name = 'starOn'; | |
| if (this.opt.halfShow && decimal < this.opt.round.up) { // Half: [x.26 .. x.75] | |
| name = 'starHalf'; | |
| } else if (decimal < this.opt.round.full) { // Down: [x.00 .. x.5] | |
| name = 'starOff'; | |
| } | |
| } | |
| if (name) { | |
| var | |
| icon = this.opt[name], | |
| star = this.stars[Math.ceil(score) - 1]; | |
| methods._setIcon.call(this, star, icon); | |
| } // Full down: [x.00 .. x.25] | |
| }, | |
| _setIcon: function(star, icon) { | |
| star[this.opt.starType === 'img' ? 'src' : 'className'] = this.opt.path + icon; | |
| }, | |
| _setTarget: function(target, score) { | |
| if (score) { | |
| score = this.opt.targetFormat.toString().replace('{score}', score); | |
| } | |
| if (target.is(':input')) { | |
| target.val(score); | |
| } else { | |
| target.html(score); | |
| } | |
| }, | |
| _setTitle: function(score, evt) { | |
| if (score) { | |
| var | |
| integer = parseInt(Math.ceil(score), 10), | |
| star = this.stars[integer - 1]; | |
| star.title = methods._getHint.call(this, score, evt); | |
| } | |
| }, | |
| _target: function(score, evt) { | |
| if (this.opt.target) { | |
| var target = $(this.opt.target); | |
| if (!target.length) { | |
| methods._error.call(this, 'Target selector invalid or missing!'); | |
| } | |
| var mouseover = evt && evt.type === 'mouseover'; | |
| if (score === undefined) { | |
| score = this.opt.targetText; | |
| } else if (score === null) { | |
| score = mouseover ? this.opt.cancelHint : this.opt.targetText; | |
| } else { | |
| if (this.opt.targetType === 'hint') { | |
| score = methods._getHint.call(this, score, evt); | |
| } else if (this.opt.precision) { | |
| score = parseFloat(score).toFixed(1); | |
| } | |
| var mousemove = evt && evt.type === 'mousemove'; | |
| if (!mouseover && !mousemove && !this.opt.targetKeep) { | |
| score = this.opt.targetText; | |
| } | |
| } | |
| methods._setTarget.call(this, target, score); | |
| } | |
| }, | |
| _turnOn: function(i, score) { | |
| return this.opt.single ? (i === score) : (i <= score); | |
| }, | |
| _unlock: function() { | |
| this.style.cursor = 'pointer'; | |
| this.removeAttribute('title'); | |
| this.score.removeAttr('readonly'); | |
| this.self.data('readonly', false); | |
| for (var i = 0; i < this.opt.number; i++) { | |
| this.stars[i].title = methods._getHint.call(this, i + 1); | |
| } | |
| if (this.cancel) { | |
| this.cancel.css('display', ''); | |
| } | |
| }, | |
| cancel: function(click) { | |
| return this.each(function() { | |
| var self = $(this); | |
| if (self.data('readonly') !== true) { | |
| methods[click ? 'click' : 'score'].call(self, null); | |
| this.score.removeAttr('value'); | |
| } | |
| }); | |
| }, | |
| click: function(score) { | |
| return this.each(function() { | |
| if ($(this).data('readonly') !== true) { | |
| score = methods._adjustedScore.call(this, score); | |
| methods._apply.call(this, score); | |
| if (this.opt.click) { | |
| this.opt.click.call(this, score, $.Event('click')); | |
| } | |
| methods._target.call(this, score); | |
| } | |
| }); | |
| }, | |
| destroy: function() { | |
| return this.each(function() { | |
| var self = $(this), | |
| raw = self.data('raw'); | |
| if (raw) { | |
| self.off('.raty').empty().css({ cursor: raw.style.cursor }).removeData('readonly'); | |
| } else { | |
| self.data('raw', self.clone()[0]); | |
| } | |
| }); | |
| }, | |
| getScore: function() { | |
| var score = [], | |
| value ; | |
| this.each(function() { | |
| value = this.score.val(); | |
| score.push(value ? +value : undefined); | |
| }); | |
| return (score.length > 1) ? score : score[0]; | |
| }, | |
| move: function(score) { | |
| return this.each(function() { | |
| var | |
| integer = parseInt(score, 10), | |
| decimal = methods._getFirstDecimal.call(this, score); | |
| if (integer >= this.opt.number) { | |
| integer = this.opt.number - 1; | |
| decimal = 10; | |
| } | |
| var | |
| width = methods._getWidth.call(this), | |
| steps = width / 10, | |
| star = $(this.stars[integer]), | |
| percent = star.offset().left + steps * decimal, | |
| evt = $.Event('mousemove', { pageX: percent }); | |
| this.move = true; | |
| star.trigger(evt); | |
| this.move = false; | |
| }); | |
| }, | |
| readOnly: function(readonly) { | |
| return this.each(function() { | |
| var self = $(this); | |
| if (self.data('readonly') !== readonly) { | |
| if (readonly) { | |
| self.off('.raty').children('img').off('.raty'); | |
| methods._lock.call(this); | |
| } else { | |
| methods._binds.call(this); | |
| methods._unlock.call(this); | |
| } | |
| self.data('readonly', readonly); | |
| } | |
| }); | |
| }, | |
| reload: function() { | |
| return methods.set.call(this, {}); | |
| }, | |
| score: function() { | |
| var self = $(this); | |
| return arguments.length ? methods.setScore.apply(self, arguments) : methods.getScore.call(self); | |
| }, | |
| set: function(options) { | |
| return this.each(function() { | |
| $(this).raty($.extend({}, this.opt, options)); | |
| }); | |
| }, | |
| setScore: function(score) { | |
| return this.each(function() { | |
| if ($(this).data('readonly') !== true) { | |
| score = methods._adjustedScore.call(this, score); | |
| methods._apply.call(this, score); | |
| methods._target.call(this, score); | |
| } | |
| }); | |
| } | |
| }; | |
| $.fn.raty = function(method) { | |
| if (methods[method]) { | |
| return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); | |
| } else if (typeof method === 'object' || !method) { | |
| return methods.init.apply(this, arguments); | |
| } else { | |
| $.error('Method ' + method + ' does not exist!'); | |
| } | |
| }; | |
| $.fn.raty.defaults = { | |
| cancel : false, | |
| cancelClass : 'raty-cancel', | |
| cancelHint : 'Cancel this rating!', | |
| cancelOff : 'cancel-off.png', | |
| cancelOn : 'cancel-on.png', | |
| cancelPlace : 'left', | |
| click : undefined, | |
| half : false, | |
| halfShow : true, | |
| hints : ['bad', 'poor', 'regular', 'good', 'gorgeous'], | |
| iconRange : undefined, | |
| mouseout : undefined, | |
| mouseover : undefined, | |
| noRatedMsg : 'Not rated yet!', | |
| number : 5, | |
| numberMax : 20, | |
| path : undefined, | |
| precision : false, | |
| readOnly : false, | |
| round : { down: 0.25, full: 0.6, up: 0.76 }, | |
| score : undefined, | |
| scoreName : 'score', | |
| single : false, | |
| space : true, | |
| starHalf : 'star-half.png', | |
| starOff : 'star-off.png', | |
| starOn : 'star-on.png', | |
| starType : 'img', | |
| target : undefined, | |
| targetFormat : '{score}', | |
| targetKeep : false, | |
| targetScore : undefined, | |
| targetText : '', | |
| targetType : 'hint' | |
| }; | |
| })(jQuery); | |
| /*! | |
| * jQuery.filer | |
| * Copyright (c) 2015 CreativeDream | |
| * Website: https://github.com/CreativeDream/jquery.filer | |
| * Version: 1.0.5 (19-Nov-2015) | |
| * Requires: jQuery v1.7.1 or later | |
| */ | |
| !function(e){"use strict";e.fn.filer=function(i){return this.each(function(t,n){var l=e(n),a=".jFiler",r=e(),o=e(),s=e(),d=[],f=e.isFunction(i)?i(l,e.fn.filer.defaults):i,p=f&&e.isPlainObject(f)?e.extend(!0,{},e.fn.filer.defaults,f):e.fn.filer.defaults,u={init:function(){l.wrap('<div class="jFiler"></div>'),u._set("props"),l.prop("jFiler").boxEl=r=l.closest(a),u._changeInput()},_bindInput:function(){p.changeInput&&o.size()>0&&o.bind("click",u._clickHandler),l.on({focus:function(){o.addClass("focused")},blur:function(){o.removeClass("focused")},change:function(){u._onChange()}}),p.dragDrop&&(o.length>0?o:l).bind("drop",u._dragDrop.drop).bind("dragover",u._dragDrop.dragEnter).bind("dragleave",u._dragDrop.dragLeave),p.uploadFile&&p.clipBoardPaste&&e(window).on("paste",u._clipboardPaste)},_unbindInput:function(){p.changeInput&&o.size()>0&&o.unbind("click",u._clickHandler)},_clickHandler:function(){l.click()},_applyAttrSettings:function(){var e=["name","limit","maxSize","extensions","changeInput","showThumbs","appendTo","theme","addMore","excludeName","files","uploadUrl","uploadData","options"];for(var i in e){var t="data-jfiler-"+e[i];if(u._assets.hasAttr(t)){switch(e[i]){case"changeInput":case"showThumbs":case"addMore":p[e[i]]=["true","false"].indexOf(l.attr(t))>-1?"true"==l.attr(t):l.attr(t);break;case"extensions":p[e[i]]=l.attr(t).replace(/ /g,"").split(",");break;case"uploadUrl":p.uploadFile&&(p.uploadFile.url=l.attr(t));break;case"uploadData":p.uploadFile&&(p.uploadFile.data=JSON.parse(l.attr(t)));break;case"files":case"options":p[e[i]]=JSON.parse(l.attr(t));break;default:p[e[i]]=l.attr(t)}l.removeAttr(t)}}},_changeInput:function(){if(u._applyAttrSettings(),null!=p.beforeRender&&"function"==typeof p.beforeRender?p.beforeRender(r,l):null,p.theme&&r.addClass("jFiler-theme-"+p.theme),"input"!=l.get(0).tagName.toLowerCase()&&"file"!=l.get(0).type)o=l,l=e('<input type="file" name="'+p.name+'" />'),l.css({position:"absolute",left:"-9999px",top:"-9999px","z-index":"-9999"}),r.prepend(l),u._isGn=l;else if(p.changeInput){switch(typeof p.changeInput){case"boolean":o=e('<div class="jFiler-input"><div class="jFiler-input-caption"><span>'+p.captions.feedback+'</span></div><div class="jFiler-input-button">'+p.captions.button+'</div></div>"');break;case"string":case"object":o=e(p.changeInput);break;case"function":o=e(p.changeInput(r,l,p))}l.after(o),l.css({position:"absolute",left:"-9999px",top:"-9999px","z-index":"-9999"})}l.prop("jFiler").newInputEl=o,(!p.limit||p.limit&&p.limit>=2)&&(l.attr("multiple","multiple"),"[]"!=l.attr("name").slice(-2)?l.attr("name",l.attr("name")+"[]"):null),u._bindInput(),p.files&&u._append(!1,{files:p.files}),null!=p.afterRender&&"function"==typeof p.afterRender?p.afterRender(s,r,o,l):null},_clear:function(){u.files=null,l.prop("jFiler").files=null,p.uploadFile||p.addMore||u._reset(),u._set("feedback",u._itFl&&u._itFl.length>0?u._itFl.length+" "+p.captions.feedback2:p.captions.feedback),null!=p.onEmpty&&"function"==typeof p.onEmpty?p.onEmpty(r,o,l):null},_reset:function(i){if(!i){if(!p.uploadFile&&p.addMore){for(var t=0;t<d.length;t++)d[t].remove();d=[],u._unbindInput(),l=u._isGn?u._isGn:e(n),u._bindInput()}u._set("input","")}u._itFl=[],u._itFc=null,u._ajFc=0,u._set("props"),l.prop("jFiler").files_list=u._itFl,l.prop("jFiler").current_file=u._itFc,u._prEr||(u._itFr=[],r.find("input[name^='jfiler-items-exclude-']:hidden").remove()),s.fadeOut("fast",function(){e(this).remove()}),l.prop("jFiler").listEl=s=e()},_set:function(e,i){switch(e){case"input":l.val("");break;case"feedback":o.length>0&&o.find(".jFiler-input-caption span").html(i);break;case"props":l.prop("jFiler")||l.prop("jFiler",{options:p,listEl:s,boxEl:r,newInputEl:o,inputEl:l,files:u.files,files_list:u._itFl,current_file:u._itFc,append:function(e){return u._append(!1,{files:[e]})},remove:function(e){return u._remove(null,{binded:!0,data:{id:e}}),!0},reset:function(){return u._reset(),u._clear(),!0},retry:function(e){return u._retryUpload(e)}})}},_filesCheck:function(){var i=0;if(p.limit&&u.files.length+u._itFl.length>p.limit)return alert(u._assets.textParse(p.captions.errors.filesLimit)),!1;for(var t=0;t<u.files.length;t++){var n=u.files[t].name.split(".").pop().toLowerCase(),l=u.files[t],a={name:l.name,size:l.size,size2:u._assets.bytesToSize(l.size),type:l.type,ext:n};if(null!=p.extensions&&-1==e.inArray(n,p.extensions))return alert(u._assets.textParse(p.captions.errors.filesType,a)),!1;if(null!=p.maxSize&&u.files[t].size>1048576*p.maxSize)return alert(u._assets.textParse(p.captions.errors.filesSize,a)),!1;if(4096==l.size&&0==l.type.length)return!1;i+=u.files[t].size}if(null!=p.maxSize&&i>=Math.round(1048576*p.maxSize))return alert(u._assets.textParse(p.captions.errors.filesSizeAll)),!1;if(p.addMore||p.uploadFile){var a=u._itFl.filter(function(e,i){return e.file.name!=l.name||e.file.size!=l.size||e.file.type!=l.type||(l.lastModified?e.file.lastModified!=l.lastModified:0)?void 0:!0});if(a.length>0)return!1}return!0},_thumbCreator:{create:function(i){var t=u.files[i],n=u._itFc?u._itFc.id:i,l=t.name,a=t.size,r=t.type.split("/",1).toString().toLowerCase(),o=-1!=l.indexOf(".")?l.split(".").pop().toLowerCase():"",d=p.uploadFile?'<div class="jFiler-jProgressBar">'+p.templates.progressBar+"</div>":"",f={id:n,name:l,size:a,size2:u._assets.bytesToSize(a),type:r,extension:o,icon:u._assets.getIcon(o,r),icon2:u._thumbCreator.generateIcon({type:r,extension:o}),image:'<div class="jFiler-item-thumb-image fi-loading"></div>',progressBar:d,_appended:t._appended},c="";return t.opts&&(f=e.extend({},t.opts,f)),c=e(u._thumbCreator.renderContent(f)).attr("data-jfiler-index",n),c.get(0).jfiler_id=n,u._thumbCreator.renderFile(t,c,f),t.forList?c:(u._itFc.html=c,c.hide()[p.templates.itemAppendToEnd?"appendTo":"prependTo"](s.find(p.templates._selectors.list)).show(),void(t._appended||u._onSelect(i)))},renderContent:function(e){return u._assets.textParse(e._appended?p.templates.itemAppend:p.templates.item,e)},renderFile:function(i,t,n){if(0==t.find(".jFiler-item-thumb-image").size())return!1;if(i.file&&"image"==n.type){var l='<img src="'+i.file+'" draggable="false" />',a=t.find(".jFiler-item-thumb-image.fi-loading");return e(l).error(function(){l=u._thumbCreator.generateIcon(n),t.addClass("jFiler-no-thumbnail"),a.removeClass("fi-loading").html(l)}).load(function(){a.removeClass("fi-loading").html(l)}),!0}if(window.File&&window.FileList&&window.FileReader&&"image"==n.type&&n.size<6e6){var r=new FileReader;r.onload=function(i){var l='<img src="'+i.target.result+'" draggable="false" />',a=t.find(".jFiler-item-thumb-image.fi-loading");e(l).error(function(){l=u._thumbCreator.generateIcon(n),t.addClass("jFiler-no-thumbnail"),a.removeClass("fi-loading").html(l)}).load(function(){a.removeClass("fi-loading").html(l)})},r.readAsDataURL(i)}else{var l=u._thumbCreator.generateIcon(n),a=t.find(".jFiler-item-thumb-image.fi-loading");t.addClass("jFiler-no-thumbnail"),a.removeClass("fi-loading").html(l)}},generateIcon:function(i){var t=new Array(3);if(i&&i.type&&i.extension)switch(i.type){case"image":t[0]="f-image",t[1]='<i class="icon-jfi-file-image"></i>';break;case"video":t[0]="f-video",t[1]='<i class="icon-jfi-file-video"></i>';break;case"audio":t[0]="f-audio",t[1]='<i class="icon-jfi-file-audio"></i>';break;default:t[0]="f-file f-file-ext-"+i.extension,t[1]=i.extension.length>0?"."+i.extension:"",t[2]=1}else t[0]="f-file",t[1]=i.extension&&i.extension.length>0?"."+i.extension:"",t[2]=1;var n='<span class="jFiler-icon-file '+t[0]+'">'+t[1]+"</span>";if(1==t[2]){var l=u._assets.text2Color(i.extension);if(l){var a=e(n).appendTo("body"),r=a.css("box-shadow");r=l+r.substring(r.replace(/^.*(rgba?\([^)]+\)).*$/,"$1").length,r.length),a.css({"-webkit-box-shadow":r,"-moz-box-shadow":r,"box-shadow":r}).attr("style","-webkit-box-shadow: "+r+"; -moz-box-shadow: "+r+"; box-shadow: "+r+";"),n=a.prop("outerHTML"),a.remove()}}return n},_box:function(i){if(null!=p.beforeShow&&"function"==typeof p.beforeShow?!p.beforeShow(u.files,s,r,o,l):!1)return!1;if(s.length<1){if(p.appendTo)var t=e(p.appendTo);else var t=r;t.find(".jFiler-items").remove(),s=e('<div class="jFiler-items jFiler-row"></div>'),l.prop("jFiler").listEl=s,s.append(u._assets.textParse(p.templates.box)).appendTo(t),s.on("click",p.templates._selectors.remove,function(t){t.preventDefault();var n=p.templates.removeConfirmation?confirm(p.captions.removeConfirmation):!0;n&&u._remove(i?i.remove.event:t,i?i.remove.el:e(this).closest(p.templates._selectors.item))})}for(var n=0;n<u.files.length;n++)u.files[n]._appended||(u.files[n]._choosed=!0),u._addToMemory(n),u._thumbCreator.create(n)}},_upload:function(i){var t=u._itFc.html,n=new FormData;if(n.append(l.attr("name"),u._itFc.file,u._itFc.file.name?u._itFc.file.name:!1),null!=p.uploadFile.data&&e.isPlainObject(p.uploadFile.data))for(var a in p.uploadFile.data)n.append(a,p.uploadFile.data[a]);u._ajax.send(t,n,u._itFc)},_ajax:{send:function(i,t,n){return n.ajax=e.ajax({url:p.uploadFile.url,data:t,type:p.uploadFile.type,enctype:p.uploadFile.enctype,xhr:function(){var t=e.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",function(e){u._ajax.progressHandling(e,i)},!1),t},complete:function(e,i){n.ajax=!1,u._ajFc++,u._ajFc>=u.files.length&&(u._ajFc=0,null!=p.uploadFile.onComplete&&"function"==typeof p.uploadFile.onComplete?p.uploadFile.onComplete(s,r,o,l,e,i):null)},beforeSend:function(e,t){return null!=p.uploadFile.beforeSend&&"function"==typeof p.uploadFile.beforeSend?p.uploadFile.beforeSend(i,s,r,o,l,n.id,e,t):!0},success:function(e,t,a){n.uploaded=!0,null!=p.uploadFile.success&&"function"==typeof p.uploadFile.success?p.uploadFile.success(e,i,s,r,o,l,n.id,t,a):null},error:function(e,t,a){n.uploaded=!1,null!=p.uploadFile.error&&"function"==typeof p.uploadFile.error?p.uploadFile.error(i,s,r,o,l,n.id,e,t,a):null},statusCode:p.uploadFile.statusCode,cache:!1,contentType:!1,processData:!1}),n.ajax},progressHandling:function(e,i){if(e.lengthComputable){var t=Math.round(100*e.loaded/e.total).toString();null!=p.uploadFile.onProgress&&"function"==typeof p.uploadFile.onProgress?p.uploadFile.onProgress(t,i,s,r,o,l):null,i.find(".jFiler-jProgressBar").find(p.templates._selectors.progressBar).css("width",t+"%")}}},_dragDrop:{dragEnter:function(e){e.preventDefault(),e.stopPropagation(),r.addClass("dragged"),u._set("feedback",p.captions.drop),null!=p.dragDrop.dragEnter&&"function"==typeof p.dragDrop.dragEnter?p.dragDrop.dragEnter(e,o,l,r):null},dragLeave:function(e){return e.preventDefault(),e.stopPropagation(),u._dragDrop._dragLeaveCheck(e)?(r.removeClass("dragged"),u._set("feedback",p.captions.feedback),void(null!=p.dragDrop.dragLeave&&"function"==typeof p.dragDrop.dragLeave?p.dragDrop.dragLeave(e,o,l,r):null)):!1},drop:function(e){e.preventDefault(),r.removeClass("dragged"),u._set("feedback",p.captions.feedback),e&&e.originalEvent&&e.originalEvent.dataTransfer&&e.originalEvent.dataTransfer.files&&e.originalEvent.dataTransfer.files.length>0&&u._onChange(e,e.originalEvent.dataTransfer.files),null!=p.dragDrop.drop&&"function"==typeof p.dragDrop.drop?p.dragDrop.drop(e.originalEvent.dataTransfer.files,e,o,l,r):null},_dragLeaveCheck:function(i){var t=i.relatedTarget,n=!1;return t!==o&&(t&&(n=e.contains(o,t)),n)?!1:!0}},_clipboardPaste:function(e,i){if((i||e.originalEvent.clipboardData||e.originalEvent.clipboardData.items)&&(!i||e.originalEvent.dataTransfer||e.originalEvent.dataTransfer.items)&&!u._clPsePre){var t=i?e.originalEvent.dataTransfer.items:e.originalEvent.clipboardData.items,n=function(e,i,t){i=i||"",t=t||512;for(var n=atob(e),l=[],a=0;a<n.length;a+=t){for(var r=n.slice(a,a+t),o=new Array(r.length),s=0;s<r.length;s++)o[s]=r.charCodeAt(s);var d=new Uint8Array(o);l.push(d)}var f=new Blob(l,{type:i});return f};if(t)for(var l=0;l<t.length;l++)if(-1!==t[l].type.indexOf("image")||-1!==t[l].type.indexOf("text/uri-list")){if(i)try{window.atob(e.originalEvent.dataTransfer.getData("text/uri-list").toString().split(",")[1])}catch(e){return}var a=i?n(e.originalEvent.dataTransfer.getData("text/uri-list").toString().split(",")[1],"image/png"):t[l].getAsFile();a.name=Math.random().toString(36).substring(5),a.name+=-1!=a.type.indexOf("/")?"."+a.type.split("/")[1].toString().toLowerCase():".png",u._onChange(e,[a]),u._clPsePre=setTimeout(function(){delete u._clPsePre},1e3)}}},_onSelect:function(i){p.uploadFile&&!e.isEmptyObject(p.uploadFile)&&u._upload(i),null!=p.onSelect&&"function"==typeof p.onSelect?p.onSelect(u.files[i],u._itFc.html,s,r,o,l):null,i+1>=u.files.length&&(null!=p.afterShow&&"function"==typeof p.afterShow?p.afterShow(s,r,o,l):null)},_onChange:function(i,t){if(t){if(!t||0==t.length)return u._set("input",""),u._clear(),!1;u.files=t}else{if(!l.get(0).files||"undefined"==typeof l.get(0).files||0==l.get(0).files.length)return p.uploadFile||p.addMore||(u._set("input",""),u._clear()),!1;u.files=l.get(0).files}if(p.uploadFile||p.addMore||u._reset(!0),l.prop("jFiler").files=u.files,!u._filesCheck()||(null!=p.beforeSelect&&"function"==typeof p.beforeSelect?!p.beforeSelect(u.files,s,r,o,l):!1))return u._set("input",""),u._clear(),!1;if(u._set("feedback",u.files.length+u._itFl.length+" "+p.captions.feedback2),p.showThumbs)u._thumbCreator._box();else for(var n=0;n<u.files.length;n++)u.files[n]._choosed=!0,u._addToMemory(n),u._onSelect(n);if(!p.uploadFile&&p.addMore){var a=e('<input type="file" />'),f=l.prop("attributes");e.each(f,function(){a.attr(this.name,this.value)}),l.after(a),u._unbindInput(),d.push(a),l=a,u._bindInput(),u._set("props")}},_append:function(e,i){var t=i?i.files:!1;if(t&&!(t.length<=0)&&(u.files=t,l.prop("jFiler").files=u.files,p.showThumbs)){for(var n=0;n<u.files.length;n++)u.files[n]._appended=!0;u._thumbCreator._box()}},_getList:function(e,i){var t=i?i.files:!1;if(t&&!(t.length<=0)&&(u.files=t,l.prop("jFiler").files=u.files,p.showThumbs)){for(var n=[],a=0;a<u.files.length;a++)u.files[a].forList=!0,n.push(u._thumbCreator.create(a));i.callback&&i.callback(n,s,r,o,l)}},_retryUpload:function(i,t){var n=parseInt("object"==typeof t?t.attr("data-jfiler-index"):t),a=u._itFl.filter(function(e,i){return e.id==n});return a.length>0?!p.uploadFile||e.isEmptyObject(p.uploadFile)||a[0].uploaded?void 0:(u._itFc=a[0],l.prop("jFiler").current_file=u._itFc,u._upload(n),!0):!1},_remove:function(i,n){if(n.binded){if("undefined"!=typeof n.data.id&&(n=s.find(p.templates._selectors.item+"[data-jfiler-index='"+n.data.id+"']"),0==n.size()))return!1;n.data.el&&(n=n.data.el)}var a=n.get(0).jfiler_id||n.attr("data-jfiler-index"),d=null,f=function(i){var n=r.find("input[name^='jfiler-items-exclude-']:hidden").first(),a=u._itFl[i],o=[];if(0==n.size()&&(n=e('<input type="hidden" name="jfiler-items-exclude-'+(p.excludeName?p.excludeName:("[]"!=l.attr("name").slice(-2)?l.attr("name"):l.attr("name").substring(0,l.attr("name").length-2))+"-"+t)+'">'),n.appendTo(r)),a.file._choosed||a.file._appended||a.uploaded){if(u._prEr=!0,u._itFr.push(a),p.addMore){var s=a.input,d=0;u._itFl.filter(function(e,i){e.file._choosed&&e.input.get(0)==s.get(0)&&d++}),1==d&&(u._itFr=u._itFr.filter(function(e,i){return e.file._choosed?e.input.get(0)!=s.get(0):!0}),s.val(""),u._prEr=!1)}for(var f=0;f<u._itFr.length;f++)o.push(u._itFr[f].file.name);o=JSON.stringify(o),n.val(o)}},c=function(i,t){f(t),u._itFl.splice(t,1),u._itFl.length<1?(u._reset(),u._clear()):u._set("feedback",u._itFl.length+" "+p.captions.feedback2),i.fadeOut("fast",function(){e(this).remove()})};for(var m in u._itFl)"length"!==m&&u._itFl.hasOwnProperty(m)&&u._itFl[m].id==a&&(d=m);return u._itFl.hasOwnProperty(d)?u._itFl[d].ajax?(u._itFl[d].ajax.abort(),void c(n,d)):(null!=p.onRemove&&"function"==typeof p.onRemove?p.onRemove(n,u._itFl[d].file,d,s,r,o,l):null,void c(n,d)):!1},_addToMemory:function(i){u._itFl.push({id:u._itFl.length,file:u.files[i],html:e(),ajax:!1,uploaded:!1}),p.addMore&&!u.files[i]._appended&&(u._itFl[u._itFl.length-1].input=l),u._itFc=u._itFl[u._itFl.length-1],l.prop("jFiler").files_list=u._itFl,l.prop("jFiler").current_file=u._itFc},_assets:{bytesToSize:function(e){if(0==e)return"0 Byte";var i=1e3,t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(i));return(e/Math.pow(i,n)).toPrecision(3)+" "+t[n]},hasAttr:function(e,i){var i=i?i:l,t=i.attr(e);return t&&"undefined"!=typeof t?!0:!1},getIcon:function(i,t){var n=["audio","image","text","video"];return e.inArray(t,n)>-1?'<i class="icon-jfi-file-'+t+" jfi-file-ext-"+i+'"></i>':'<i class="icon-jfi-file-o jfi-file-type-'+t+" jfi-file-ext-"+i+'"></i>'},textParse:function(i,t){switch(t=e.extend({},{limit:p.limit,maxSize:p.maxSize,extensions:p.extensions?p.extensions.join(","):null},t&&e.isPlainObject(t)?t:{},p.options),typeof i){case"string":return i.replace(/\{\{fi-(.*?)\}\}/g,function(e,i){return i=i.replace(/ /g,""),i.match(/(.*?)\|limitTo\:(\d+)/)?i.replace(/(.*?)\|limitTo\:(\d+)/,function(e,i,n){var i=t[i]?t[i]:"",l=i.substring(0,n);return l=i.length>l.length?l.substring(0,l.length-3)+"...":l}):t[i]?t[i]:""});case"function":return i(t);default:return i}},text2Color:function(e){if(!e||0==e.length)return!1;for(var i=0,t=0;i<e.length;t=e.charCodeAt(i++)+((t<<5)-t));for(var i=0,n="#";3>i;n+=("00"+(t>>2*i++&255).toString(16)).slice(-2));return n}},files:null,_itFl:[],_itFc:null,_itFr:[],_ajFc:0,_prEr:!1};return l.on("filer.append",function(e,i){u._append(e,i)}).on("filer.remove",function(e,i){i.binded=!0,u._remove(e,i)}).on("filer.reset",function(e){return u._reset(),u._clear(),!0}).on("filer.generateList",function(e,i){return u._getList(e,i)}).on("filer.retry",function(e,i){return u._retryUpload(e,i)}),u.init(),this})},e.fn.filer.defaults={limit:null,maxSize:null,extensions:null,changeInput:!0,showThumbs:!1,appendTo:null,theme:"default",templates:{box:'<ul class="jFiler-items-list jFiler-items-default"></ul>',item:'<li class="jFiler-item"><div class="jFiler-item-container"><div class="jFiler-item-inner"><div class="jFiler-item-icon pull-left">{{fi-icon}}</div><div class="jFiler-item-info pull-left"><div class="jFiler-item-title" title="{{fi-name}}">{{fi-name | limitTo:30}}</div><div class="jFiler-item-others"><span>size: {{fi-size2}}</span><span>type: {{fi-extension}}</span><span class="jFiler-item-status">{{fi-progressBar}}</span></div><div class="jFiler-item-assets"><ul class="list-inline"><li><a class="icon-jfi-trash jFiler-item-trash-action"></a></li></ul></div></div></div></div></li>',itemAppend:'<li class="jFiler-item"><div class="jFiler-item-container"><div class="jFiler-item-inner"><div class="jFiler-item-icon pull-left">{{fi-icon}}</div><div class="jFiler-item-info pull-left"><div class="jFiler-item-title">{{fi-name | limitTo:35}}</div><div class="jFiler-item-others"><span>size: {{fi-size2}}</span><span>type: {{fi-extension}}</span><span class="jFiler-item-status"></span></div><div class="jFiler-item-assets"><ul class="list-inline"><li><a class="icon-jfi-trash jFiler-item-trash-action"></a></li></ul></div></div></div></div></li>',progressBar:'<div class="bar"></div>',itemAppendToEnd:!1,removeConfirmation:!0,_selectors:{list:".jFiler-items-list",item:".jFiler-item",progressBar:".bar",remove:".jFiler-item-trash-action"}},files:null,uploadFile:null,dragDrop:null,addMore:!1,clipBoardPaste:!0,excludeName:null,beforeRender:null,afterRender:null,beforeShow:null,beforeSelect:null,onSelect:null,afterShow:null,onRemove:null,onEmpty:null,options:null,captions:{button:"Choose Files",feedback:"Choose files To Upload",feedback2:"files were chosen",drop:"Drop file here to Upload",removeConfirmation:"Are you sure you want to remove this file?",errors:{filesLimit:"Only {{fi-limit}} files are allowed to be uploaded.",filesType:"Only Images are allowed to be uploaded.",filesSize:"{{fi-name}} is too large! Please upload file up to {{fi-maxSize}} MB.",filesSizeAll:"Files you've choosed are too large! Please upload files up to {{fi-maxSize}} MB."}}}}(jQuery); | |
| !function ($) { | |
| "use strict"; | |
| // TABCOLLAPSE CLASS DEFINITION | |
| // ====================== | |
| var TabCollapse = function (el, options) { | |
| this.options = options; | |
| this.$tabs = $(el); | |
| this._accordionVisible = false; //content is attached to tabs at first | |
| this._initAccordion(); | |
| this._checkStateOnResize(); | |
| // checkState() has gone to setTimeout for making it possible to attach listeners to | |
| // shown-accordion.bs.tabcollapse event on page load. | |
| // See https://github.com/flatlogic/bootstrap-tabcollapse/issues/23 | |
| var that = this; | |
| setTimeout(function() { | |
| that.checkState(); | |
| }, 0); | |
| }; | |
| TabCollapse.DEFAULTS = { | |
| accordionClass: 'visible-xs', | |
| tabsClass: 'hidden-xs', | |
| accordionTemplate: function(heading, groupId, parentId, active) { | |
| return '<div class="panel panel-default">' + | |
| ' <div class="panel-heading">' + | |
| ' <h4 class="panel-title">' + | |
| ' </h4>' + | |
| ' </div>' + | |
| ' <div id="' + groupId + '" class="panel-collapse collapse ' + (active ? 'in' : '') + '">' + | |
| ' <div class="panel-body js-tabcollapse-panel-body">' + | |
| ' </div>' + | |
| ' </div>' + | |
| '</div>' | |
| } | |
| }; | |
| TabCollapse.prototype.checkState = function(){ | |
| if (this.$tabs.is(':visible') && this._accordionVisible){ | |
| this.showTabs(); | |
| this._accordionVisible = false; | |
| } else if (this.$accordion.is(':visible') && !this._accordionVisible){ | |
| this.showAccordion(); | |
| this._accordionVisible = true; | |
| } | |
| }; | |
| TabCollapse.prototype.showTabs = function(){ | |
| var view = this; | |
| this.$tabs.trigger($.Event('show-tabs.bs.tabcollapse')); | |
| var $panelHeadings = this.$accordion.find('.js-tabcollapse-panel-heading').detach(); | |
| $panelHeadings.each(function() { | |
| var $panelHeading = $(this), | |
| $parentLi = $panelHeading.data('bs.tabcollapse.parentLi'); | |
| view._panelHeadingToTabHeading($panelHeading); | |
| $parentLi.append($panelHeading); | |
| }); | |
| var $panelBodies = this.$accordion.find('.js-tabcollapse-panel-body'); | |
| $panelBodies.each(function(){ | |
| var $panelBody = $(this), | |
| $tabPane = $panelBody.data('bs.tabcollapse.tabpane'); | |
| $tabPane.append($panelBody.children('*').detach()); | |
| }); | |
| this.$accordion.html(''); | |
| this.$tabs.trigger($.Event('shown-tabs.bs.tabcollapse')); | |
| }; | |
| TabCollapse.prototype.showAccordion = function(){ | |
| this.$tabs.trigger($.Event('show-accordion.bs.tabcollapse')); | |
| var $headings = this.$tabs.find('li:not(.dropdown) [data-toggle="tab"], li:not(.dropdown) [data-toggle="pill"]'), | |
| view = this; | |
| $headings.each(function(){ | |
| var $heading = $(this), | |
| $parentLi = $heading.parent(); | |
| $heading.data('bs.tabcollapse.parentLi', $parentLi); | |
| view.$accordion.append(view._createAccordionGroup(view.$accordion.attr('id'), $heading.detach())); | |
| }); | |
| this.$tabs.trigger($.Event('shown-accordion.bs.tabcollapse')); | |
| }; | |
| TabCollapse.prototype._panelHeadingToTabHeading = function($heading) { | |
| var href = $heading.attr('href').replace(/-collapse$/g, ''); | |
| $heading.attr({ | |
| 'data-toggle': 'tab', | |
| 'href': href, | |
| 'data-parent': '' | |
| }); | |
| return $heading; | |
| }; | |
| TabCollapse.prototype._tabHeadingToPanelHeading = function($heading, groupId, parentId, active) { | |
| $heading.addClass('js-tabcollapse-panel-heading ' + (active ? '' : 'collapsed')); | |
| $heading.attr({ | |
| 'data-toggle': 'collapse', | |
| 'data-parent': '#' + parentId, | |
| 'href': '#' + groupId | |
| }); | |
| return $heading; | |
| }; | |
| TabCollapse.prototype._checkStateOnResize = function(){ | |
| var view = this; | |
| $(window).resize(function(){ | |
| clearTimeout(view._resizeTimeout); | |
| view._resizeTimeout = setTimeout(function(){ | |
| view.checkState(); | |
| }, 100); | |
| }); | |
| }; | |
| TabCollapse.prototype._initAccordion = function(){ | |
| this.$accordion = $('<div class="panel-group ' + this.options.accordionClass + '" id="' + this.$tabs.attr('id') + '-accordion' +'"></div>'); | |
| this.$tabs.after(this.$accordion); | |
| this.$tabs.addClass(this.options.tabsClass); | |
| this.$tabs.siblings('.tab-content').addClass(this.options.tabsClass); | |
| }; | |
| TabCollapse.prototype._createAccordionGroup = function(parentId, $heading){ | |
| var tabSelector = $heading.attr('data-target'), | |
| active = $heading.data('bs.tabcollapse.parentLi').is('.active'); | |
| if (!tabSelector) { | |
| tabSelector = $heading.attr('href'); | |
| tabSelector = tabSelector && tabSelector.replace(/.*(?=#[^\s]*$)/, ''); //strip for ie7 | |
| } | |
| var $tabPane = $(tabSelector), | |
| groupId = $tabPane.attr('id') + '-collapse', | |
| $panel = $(this.options.accordionTemplate($heading, groupId, parentId, active)); | |
| $panel.find('.panel-heading > .panel-title').append(this._tabHeadingToPanelHeading($heading, groupId, parentId, active)); | |
| $panel.find('.panel-body').append($tabPane.children('*').detach()) | |
| .data('bs.tabcollapse.tabpane', $tabPane); | |
| return $panel; | |
| }; | |
| // TABCOLLAPSE PLUGIN DEFINITION | |
| // ======================= | |
| $.fn.tabCollapse = function (option) { | |
| return this.each(function () { | |
| var $this = $(this); | |
| var data = $this.data('bs.tabcollapse'); | |
| var options = $.extend({}, TabCollapse.DEFAULTS, $this.data(), typeof option === 'object' && option); | |
| if (!data) $this.data('bs.tabcollapse', new TabCollapse(this, options)); | |
| }); | |
| }; | |
| $.fn.tabCollapse.Constructor = TabCollapse; | |
| }(window.jQuery); | |
| // Ion.RangeSlider | version 2.0.10 | https://github.com/IonDen/ion.rangeSlider | |
| ;(function(g,r,h,t,v){var u=0,p=function(){var a=t.userAgent,b=/msie\s\d+/i;return 0<a.search(b)&&(a=b.exec(a).toString(),a=a.split(" ")[1],9>a)?(g("html").addClass("lt-ie9"),!0):!1}();Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=[].slice;if("function"!=typeof b)throw new TypeError;var d=c.call(arguments,1),e=function(){if(this instanceof e){var f=function(){};f.prototype=b.prototype;var f=new f,k=b.apply(f,d.concat(c.call(arguments)));return Object(k)===k?k:f}return b.apply(a, | |
| d.concat(c.call(arguments)))};return e});Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0===e)return-1;c=+b||0;Infinity===Math.abs(c)&&(c=0);if(c>=e)return-1;for(c=Math.max(0<=c?c:e-Math.abs(c),0);c<e;){if(c in d&&d[c]===a)return c;c++}return-1});var q=function(a,b,c){this.VERSION="2.0.10";this.input=a;this.plugin_count=c;this.old_to=this.old_from=this.update_tm=this.calc_count= | |
| this.current_plugin=0;this.raf_id=null;this.is_update=this.is_key=this.force_redraw=this.dragging=!1;this.is_start=!0;this.is_click=this.is_resize=this.is_active=!1;this.$cache={win:g(h),body:g(r.body),input:g(a),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,grid:null,grid_labels:[]};c=this.$cache.input;a={type:c.data("type"),min:c.data("min"),max:c.data("max"),from:c.data("from"), | |
| to:c.data("to"),step:c.data("step"),min_interval:c.data("minInterval"),max_interval:c.data("maxInterval"),drag_interval:c.data("dragInterval"),values:c.data("values"),from_fixed:c.data("fromFixed"),from_min:c.data("fromMin"),from_max:c.data("fromMax"),from_shadow:c.data("fromShadow"),to_fixed:c.data("toFixed"),to_min:c.data("toMin"),to_max:c.data("toMax"),to_shadow:c.data("toShadow"),prettify_enabled:c.data("prettifyEnabled"),prettify_separator:c.data("prettifySeparator"),force_edges:c.data("forceEdges"), | |
| keyboard:c.data("keyboard"),keyboard_step:c.data("keyboardStep"),grid:c.data("grid"),grid_margin:c.data("gridMargin"),grid_num:c.data("gridNum"),grid_snap:c.data("gridSnap"),hide_min_max:c.data("hideMinMax"),hide_from_to:c.data("hideFromTo"),prefix:c.data("prefix"),postfix:c.data("postfix"),max_postfix:c.data("maxPostfix"),decorate_both:c.data("decorateBoth"),values_separator:c.data("valuesSeparator"),disable:c.data("disable")};a.values=a.values&&a.values.split(",");if(c=c.prop("value"))c=c.split(";"), | |
| c[0]&&c[0]==+c[0]&&(c[0]=+c[0]),c[1]&&c[1]==+c[1]&&(c[1]=+c[1]),b&&b.values&&b.values.length?(a.from=c[0]&&b.values.indexOf(c[0]),a.to=c[1]&&b.values.indexOf(c[1])):(a.from=c[0]&&+c[0],a.to=c[1]&&+c[1]);b=g.extend(a,b);this.options=g.extend({type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ", | |
| prettify:null,force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" \u2014 ",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null},b);this.validate();this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null};this.coords= | |
| {x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single:0,p_single_real:0,p_from:0,p_from_real:0,p_to:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]};this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from:0,p_from_left:0,p_to:0,p_to_left:0,p_single:0,p_single_left:0};this.init()};q.prototype={init:function(a){this.coords.p_step=this.options.step/((this.options.max- | |
| this.options.min)/100);this.target="base";this.toggleInput();this.append();this.setMinMax();if(a){if(this.force_redraw=!0,this.calc(!0),this.options.onUpdate&&"function"===typeof this.options.onUpdate)this.options.onUpdate(this.result)}else if(this.force_redraw=!0,this.calc(!0),this.options.onStart&&"function"===typeof this.options.onStart)this.options.onStart(this.result);this.updateScene()},append:function(){this.$cache.input.before('<span class="irs js-irs-'+this.plugin_count+'"></span>');this.$cache.input.prop("readonly", | |
| !0);this.$cache.cont=this.$cache.input.prev();this.result.slider=this.$cache.cont;this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="-1"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>');this.$cache.rs= | |
| this.$cache.cont.find(".irs");this.$cache.min=this.$cache.cont.find(".irs-min");this.$cache.max=this.$cache.cont.find(".irs-max");this.$cache.from=this.$cache.cont.find(".irs-from");this.$cache.to=this.$cache.cont.find(".irs-to");this.$cache.single=this.$cache.cont.find(".irs-single");this.$cache.bar=this.$cache.cont.find(".irs-bar");this.$cache.line=this.$cache.cont.find(".irs-line");this.$cache.grid=this.$cache.cont.find(".irs-grid");"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>'), | |
| this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from= | |
| this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler());this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none");this.appendGrid();this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents())},setTopHandler:function(){var a=this.options.max, | |
| b=this.options.to;this.options.from>this.options.min&&b===a?this.$cache.s_from.addClass("type_last"):b<a&&this.$cache.s_to.addClass("type_last")},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>');this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove();this.$cache.cont=null;this.$cache.line.off("keydown.irs_"+this.plugin_count);this.$cache.body.off("touchmove.irs_"+this.plugin_count);this.$cache.body.off("mousemove.irs_"+this.plugin_count); | |
| this.$cache.win.off("touchend.irs_"+this.plugin_count);this.$cache.win.off("mouseup.irs_"+this.plugin_count);p&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count));this.$cache.grid_labels=[];this.coords.big=[];this.coords.big_w=[];this.coords.big_p=[];this.coords.big_x=[];cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this));this.$cache.body.on("mousemove.irs_"+ | |
| this.plugin_count,this.pointerMove.bind(this));this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count, | |
| this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")));"single"===this.options.type?(this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count, | |
| this.pointerClick.bind(this,"click")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this, | |
| "click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")));if(this.options.keyboard)this.$cache.line.on("keydown.irs_"+ | |
| this.plugin_count,this.key.bind(this,"keyboard"));p&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this)))},pointerMove:function(a){this.dragging&&(this.coords.x_pointer=(a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(a){if(this.current_plugin===this.plugin_count&&this.is_active){this.is_active=!1;var b=this.options.onFinish&& | |
| "function"===typeof this.options.onFinish;a=g.contains(this.$cache.cont[0],a.target)||this.dragging;if(b&&a)this.options.onFinish(this.result);this.$cache.cont.find(".state_hover").removeClass("state_hover");this.force_redraw=!0;this.dragging=!1;p&&g("*").prop("unselectable",!1);this.updateScene()}},pointerDown:function(a,b){b.preventDefault();var c=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;if(2!==b.button){this.current_plugin=this.plugin_count;this.target=a;this.dragging= | |
| this.is_active=!0;this.coords.x_gap=this.$cache.rs.offset().left;this.coords.x_pointer=c-this.coords.x_gap;this.calcPointer();switch(a){case "single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single);break;case "from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from);this.$cache.s_from.addClass("state_hover");this.$cache.s_from.addClass("type_last");this.$cache.s_to.removeClass("type_last");break;case "to":this.coords.p_gap=this.toFixed(this.coords.p_pointer- | |
| this.coords.p_to);this.$cache.s_to.addClass("state_hover");this.$cache.s_to.addClass("type_last");this.$cache.s_from.removeClass("type_last");break;case "both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from),this.coords.p_gap_right=this.toFixed(this.coords.p_to-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}p&&g("*").prop("unselectable",!0);this.$cache.line.trigger("focus");this.updateScene()}},pointerClick:function(a, | |
| b){b.preventDefault();var c=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(c-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault(); | |
| this.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer,b=a?b+this.options.keyboard_step:b-this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*b);this.is_key=!0;this.calc()},setMinMax:function(){this.options&&(this.options.hide_min_max?(this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none"):(this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])), | |
| this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)))},calc:function(a){if(this.options){this.calc_count++;if(10===this.calc_count||a)this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_handle= | |
| "single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1);if(this.coords.w_rs){this.calcPointer();this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100);a=100-this.coords.p_handle;var b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);"click"===this.target&&(b=this.toFixed(this.coords.p_pointer-this.coords.p_handle/2),this.target=this.chooseHandle(b));0>b?b=0:b>a&&(b=a);switch(this.target){case "base":b=(this.options.max-this.options.min)/ | |
| 100;a=(this.result.from-this.options.min)/b;b=(this.result.to-this.options.min)/b;this.coords.p_single_real=this.toFixed(a);this.coords.p_from_real=this.toFixed(a);this.coords.p_to_real=this.toFixed(b);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min, | |
| this.options.to_max);this.coords.p_single=this.toFixed(a-this.coords.p_handle/100*a);this.coords.p_from=this.toFixed(a-this.coords.p_handle/100*a);this.coords.p_to=this.toFixed(b-this.coords.p_handle/100*b);this.target=null;break;case "single":if(this.options.from_fixed)break;this.coords.p_single_real=this.calcWithStep(b/a*100);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_single=this.toFixed(this.coords.p_single_real/ | |
| 100*a);break;case "from":if(this.options.from_fixed)break;this.coords.p_from_real=this.calcWithStep(b/a*100);this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real, | |
| "from");this.coords.p_from=this.toFixed(this.coords.p_from_real/100*a);break;case "to":if(this.options.to_fixed)break;this.coords.p_to_real=this.calcWithStep(b/a*100);this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real, | |
| this.coords.p_from_real,"to");this.coords.p_to=this.toFixed(this.coords.p_to_real/100*a);break;case "both":if(this.options.from_fixed||this.options.to_fixed)break;b=this.toFixed(b+.1*this.coords.p_handle);this.coords.p_from_real=this.calcWithStep((b-this.coords.p_gap_left)/a*100);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from= | |
| this.toFixed(this.coords.p_from_real/100*a);this.coords.p_to_real=this.calcWithStep((b+this.coords.p_gap_right)/a*100);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to=this.toFixed(this.coords.p_to_real/100*a)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single,this.result.from_percent= | |
| this.coords.p_single_real,this.result.from=this.calcReal(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to-this.coords.p_from),this.result.from_percent=this.coords.p_from_real,this.result.from=this.calcReal(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.calcReal(this.coords.p_to_real), | |
| this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to]));this.calcMinMax();this.calcLabels()}}},calcPointer:function(){this.coords.w_rs?(0>this.coords.x_pointer||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},chooseHandle:function(a){return"single"=== | |
| this.options.type?"single":a>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single= | |
| this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single+this.coords.p_handle/2-this.labels.p_single/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from+this.coords.p_handle/2-this.labels.p_from/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from),this.labels.w_to=this.$cache.to.outerWidth(!1), | |
| this.labels.p_to=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to+this.coords.p_handle/2-this.labels.p_to/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to)/2-this.labels.p_single/ | |
| 2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null);clearTimeout(this.update_tm);this.update_tm=null;this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs= | |
| this.$cache.rs.outerWidth(!1);if(this.coords.w_rs){this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0);if(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow();if(this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)){if(this.old_from!==this.result.from||this.old_to!== | |
| this.result.to||this.force_redraw||this.is_key){this.drawLabels();this.$cache.bar[0].style.left=this.coords.p_bar_x+"%";this.$cache.bar[0].style.width=this.coords.p_bar_w+"%";if("single"===this.options.type)this.$cache.s_single[0].style.left=this.coords.p_single+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?(this.$cache.input.prop("value",this.result.from_value),this.$cache.input.data("from",this.result.from_value)):(this.$cache.input.prop("value",this.result.from), | |
| this.$cache.input.data("from",this.result.from));else{this.$cache.s_from[0].style.left=this.coords.p_from+"%";this.$cache.s_to[0].style.left=this.coords.p_to+"%";if(this.old_from!==this.result.from||this.force_redraw)this.$cache.from[0].style.left=this.labels.p_from_left+"%";if(this.old_to!==this.result.to||this.force_redraw)this.$cache.to[0].style.left=this.labels.p_to_left+"%";this.$cache.single[0].style.left=this.labels.p_single_left+"%";this.options.values.length?(this.$cache.input.prop("value", | |
| this.result.from_value+";"+this.result.to_value),this.$cache.input.data("from",this.result.from_value),this.$cache.input.data("to",this.result.to_value)):(this.$cache.input.prop("value",this.result.from+";"+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))}this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||this.$cache.input.trigger("change");this.old_from=this.result.from;this.old_to=this.result.to;if(this.options.onChange&& | |
| "function"===typeof this.options.onChange&&!this.is_resize&&!this.is_update&&!this.is_start)this.options.onChange(this.result);if(this.options.onFinish&&"function"===typeof this.options.onFinish&&(this.is_key||this.is_click))this.options.onFinish(this.result);this.is_resize=this.is_update=!1}this.force_redraw=this.is_click=this.is_key=this.is_start=!1}}},drawLabels:function(){if(this.options){var a=this.options.values.length,b=this.options.p_values,c;if(!this.options.hide_from_to)if("single"===this.options.type)a= | |
| a?this.decorate(b[this.result.from]):this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(a),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single>100-this.labels.p_max-1?"hidden":"visible";else{a?(this.options.decorate_both?(a=this.decorate(b[this.result.from]),a+=this.options.values_separator,a+=this.decorate(b[this.result.to])): | |
| a=this.decorate(b[this.result.from]+this.options.values_separator+b[this.result.to]),c=this.decorate(b[this.result.from]),b=this.decorate(b[this.result.to])):(this.options.decorate_both?(a=this.decorate(this._prettify(this.result.from),this.result.from),a+=this.options.values_separator,a+=this.decorate(this._prettify(this.result.to),this.result.to)):a=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),c=this.decorate(this._prettify(this.result.from), | |
| this.result.from),b=this.decorate(this._prettify(this.result.to),this.result.to));this.$cache.single.html(a);this.$cache.from.html(c);this.$cache.to.html(b);this.calcLabels();b=Math.min(this.labels.p_single_left,this.labels.p_from_left);a=this.labels.p_single_left+this.labels.p_single;c=this.labels.p_to_left+this.labels.p_to;var d=Math.max(a,c);this.labels.p_from_left+this.labels.p_from>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden", | |
| this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?(this.$cache.from[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden",d=c):(this.$cache.from[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",d=Math.max(a,c))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden");this.$cache.min[0].style.visibility=b<this.labels.p_min+1?"hidden": | |
| "visible";this.$cache.max[0].style.visibility=d>100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var a=this.options,b=this.$cache,c="number"===typeof a.from_min&&!isNaN(a.from_min),d="number"===typeof a.from_max&&!isNaN(a.from_max),e="number"===typeof a.to_min&&!isNaN(a.to_min),f="number"===typeof a.to_max&&!isNaN(a.to_max);"single"===a.type?a.from_shadow&&(c||d)?(c=this.calcPercent(a.from_min||a.min),d=this.calcPercent(a.from_max||a.max)-c,c=this.toFixed(c-this.coords.p_handle/ | |
| 100*c),d=this.toFixed(d-this.coords.p_handle/100*d),c+=this.coords.p_handle/2,b.shad_single[0].style.display="block",b.shad_single[0].style.left=c+"%",b.shad_single[0].style.width=d+"%"):b.shad_single[0].style.display="none":(a.from_shadow&&(c||d)?(c=this.calcPercent(a.from_min||a.min),d=this.calcPercent(a.from_max||a.max)-c,c=this.toFixed(c-this.coords.p_handle/100*c),d=this.toFixed(d-this.coords.p_handle/100*d),c+=this.coords.p_handle/2,b.shad_from[0].style.display="block",b.shad_from[0].style.left= | |
| c+"%",b.shad_from[0].style.width=d+"%"):b.shad_from[0].style.display="none",a.to_shadow&&(e||f)?(e=this.calcPercent(a.to_min||a.min),a=this.calcPercent(a.to_max||a.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),a=this.toFixed(a-this.coords.p_handle/100*a),e+=this.coords.p_handle/2,b.shad_to[0].style.display="block",b.shad_to[0].style.left=e+"%",b.shad_to[0].style.width=a+"%"):b.shad_to[0].style.display="none")},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},calcPercent:function(a){return this.toFixed((a- | |
| this.options.min)/((this.options.max-this.options.min)/100))},calcReal:function(a){var b=this.options.min,c=this.options.max,d=b.toString().split(".")[1],e=c.toString().split(".")[1],f,k,l=0,g=0;d&&(l=f=d.length);e&&(l=k=e.length);f&&k&&(l=f>=k?f:k);0>b&&(g=Math.abs(b),b=+(b+g).toFixed(l),c=+(c+g).toFixed(l));a=(c-b)/100*a+b;(d=this.options.step.toString().split(".")[1])?a=a!==b&&a!==c?+a.toFixed(d.length):+a.toFixed(l):(a/=this.options.step,a*=this.options.step,a=+a.toFixed(0));g&&(a-=g,b=this.options.min, | |
| c=this.options.max);b=d?a!==b&&a!==c?+a.toFixed(d.length):+a.toFixed(l):this.toFixed(a);b<this.options.min?b=this.options.min:b>this.options.max&&(b=this.options.max);return b},calcWithStep:function(a){var b=Math.round(a/this.coords.p_step)*this.coords.p_step;100<b&&(b=100);100===a&&(b=100);return this.toFixed(b)},checkMinInterval:function(a,b,c){var d=this.options;if(!d.min_interval)return a;a=this.calcReal(a);b=this.calcReal(b);"from"===c?b-a<d.min_interval&&(a=b-d.min_interval):a-b<d.min_interval&& | |
| (a=b+d.min_interval);return this.calcPercent(a)},checkMaxInterval:function(a,b,c){var d=this.options;if(!d.max_interval)return a;a=this.calcReal(a);b=this.calcReal(b);"from"===c?b-a>d.max_interval&&(a=b-d.max_interval):a-b>d.max_interval&&(a=b+d.max_interval);return this.calcPercent(a)},checkDiapason:function(a,b,c){a=this.calcReal(a);var d=this.options;b&&"number"===typeof b||(b=d.min);c&&"number"===typeof c||(c=d.max);a<b&&(a=b);a>c&&(a=c);return this.calcPercent(a)},toFixed:function(a){a=a.toFixed(5); | |
| return+a},_prettify:function(a){return this.options.prettify_enabled?this.options.prettify&&"function"===typeof this.options.prettify?this.options.prettify(a):this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(a,b){if(!this.options.force_edges)return this.toFixed(a);0>a?a=0:a>100-b&&(a=100-b);return this.toFixed(a)},validate:function(){var a=this.options,b=this.result,c=a.values,d=c.length, | |
| e,f;"string"===typeof a.min&&(a.min=+a.min);"string"===typeof a.max&&(a.max=+a.max);"string"===typeof a.from&&(a.from=+a.from);"string"===typeof a.to&&(a.to=+a.to);"string"===typeof a.step&&(a.step=+a.step);"string"===typeof a.from_min&&(a.from_min=+a.from_min);"string"===typeof a.from_max&&(a.from_max=+a.from_max);"string"===typeof a.to_min&&(a.to_min=+a.to_min);"string"===typeof a.to_max&&(a.to_max=+a.to_max);"string"===typeof a.keyboard_step&&(a.keyboard_step=+a.keyboard_step);"string"===typeof a.grid_num&& | |
| (a.grid_num=+a.grid_num);a.max<=a.min&&(a.max=a.min?2*a.min:a.min+1,a.step=1);if(d)for(a.p_values=[],a.min=0,a.max=d-1,a.step=1,a.grid_num=a.max,a.grid_snap=!0,f=0;f<d;f++)e=+c[f],isNaN(e)?e=c[f]:(c[f]=e,e=this._prettify(e)),a.p_values.push(e);if("number"!==typeof a.from||isNaN(a.from))a.from=a.min;if("number"!==typeof a.to||isNaN(a.from))a.to=a.max;if("single"===a.type)a.from<a.min&&(a.from=a.min),a.from>a.max&&(a.from=a.max);else{if(a.from<a.min||a.from>a.max)a.from=a.min;if(a.to>a.max||a.to<a.min)a.to= | |
| a.max;a.from>a.to&&(a.from=a.to)}if("number"!==typeof a.step||isNaN(a.step)||!a.step||0>a.step)a.step=1;if("number"!==typeof a.keyboard_step||isNaN(a.keyboard_step)||!a.keyboard_step||0>a.keyboard_step)a.keyboard_step=5;a.from_min&&a.from<a.from_min&&(a.from=a.from_min);a.from_max&&a.from>a.from_max&&(a.from=a.from_max);a.to_min&&a.to<a.to_min&&(a.to=a.to_min);a.to_max&&a.from>a.to_max&&(a.to=a.to_max);if(b){b.min!==a.min&&(b.min=a.min);b.max!==a.max&&(b.max=a.max);if(b.from<b.min||b.from>b.max)b.from= | |
| a.from;if(b.to<b.min||b.to>b.max)b.to=a.to}if("number"!==typeof a.min_interval||isNaN(a.min_interval)||!a.min_interval||0>a.min_interval)a.min_interval=0;if("number"!==typeof a.max_interval||isNaN(a.max_interval)||!a.max_interval||0>a.max_interval)a.max_interval=0;a.min_interval&&a.min_interval>a.max-a.min&&(a.min_interval=a.max-a.min);a.max_interval&&a.max_interval>a.max-a.min&&(a.max_interval=a.max-a.min)},decorate:function(a,b){var c="",d=this.options;d.prefix&&(c+=d.prefix);c+=a;d.max_postfix&& | |
| (d.values.length&&a===d.p_values[d.max]?(c+=d.max_postfix,d.postfix&&(c+=" ")):b===d.max&&(c+=d.max_postfix,d.postfix&&(c+=" ")));d.postfix&&(c+=d.postfix);return c},updateFrom:function(){this.result.from=this.options.from;this.result.from_percent=this.calcPercent(this.result.from);this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to;this.result.to_percent=this.calcPercent(this.result.to);this.options.values&&(this.result.to_value= | |
| this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min;this.result.max=this.options.max;this.updateFrom();this.updateTo()},appendGrid:function(){if(this.options.grid){var a=this.options,b,c;b=a.max-a.min;var d=a.grid_num,e=0,f=0,k=4,g,h,m=0,n="";this.calcGridMargin();a.grid_snap?(d=b/a.step,e=this.toFixed(a.step/(b/100))):e=this.toFixed(100/d);4<d&&(k=3);7<d&&(k=2);14<d&&(k=1);28<d&&(k=0);for(b=0;b<d+1;b++){g=k;f=this.toFixed(e*b);100<f&&(f=100,g-=2,0>g&&(g= | |
| 0));this.coords.big[b]=f;h=(f-e*(b-1))/(g+1);for(c=1;c<=g&&0!==f;c++)m=this.toFixed(f-h*c),n+='<span class="irs-grid-pol small" style="left: '+m+'%"></span>';n+='<span class="irs-grid-pol" style="left: '+f+'%"></span>';m=this.calcReal(f);m=a.values.length?a.p_values[m]:this._prettify(m);n+='<span class="irs-grid-text js-grid-text-'+b+'" style="left: '+f+'%">'+m+"</span>"}this.coords.big_num=Math.ceil(d+1);this.$cache.cont.addClass("irs-with-grid");this.$cache.grid.html(n);this.cacheGridLabels()}}, | |
| cacheGridLabels:function(){var a,b,c=this.coords.big_num;for(b=0;b<c;b++)a=this.$cache.grid.find(".js-grid-text-"+b),this.$cache.grid_labels.push(a);this.calcGridLabels()},calcGridLabels:function(){var a,b;b=[];var c=[],d=this.coords.big_num;for(a=0;a<d;a++)this.coords.big_w[a]=this.$cache.grid_labels[a].outerWidth(!1),this.coords.big_p[a]=this.toFixed(this.coords.big_w[a]/this.coords.w_rs*100),this.coords.big_x[a]=this.toFixed(this.coords.big_p[a]/2),b[a]=this.toFixed(this.coords.big[a]-this.coords.big_x[a]), | |
| c[a]=this.toFixed(b[a]+this.coords.big_p[a]);this.options.force_edges&&(b[0]<-this.coords.grid_gap&&(b[0]=-this.coords.grid_gap,c[0]=this.toFixed(b[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),c[d-1]>100+this.coords.grid_gap&&(c[d-1]=100+this.coords.grid_gap,b[d-1]=this.toFixed(c[d-1]-this.coords.big_p[d-1]),this.coords.big_x[d-1]=this.toFixed(this.coords.big_p[d-1]-this.coords.grid_gap)));this.calcGridCollision(2,b,c);this.calcGridCollision(4,b,c);for(a=0;a<d;a++)b=this.$cache.grid_labels[a][0], | |
| b.style.marginLeft=-this.coords.big_x[a]+"%"},calcGridCollision:function(a,b,c){var d,e,f,g=this.coords.big_num;for(d=0;d<g;d+=a){e=d+a/2;if(e>=g)break;f=this.$cache.grid_labels[e][0];f.style.visibility=c[d]<=b[e]?"visible":"hidden"}},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/ | |
| this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(a){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.options=g.extend(this.options,a),this.validate(),this.updateResult(a),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(), | |
| this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),g.data(this.input,"ionRangeSlider",null),this.remove(),this.options=this.input=null)}};g.fn.ionRangeSlider=function(a){return this.each(function(){g.data(this,"ionRangeSlider")||g.data(this,"ionRangeSlider",new q(this,a,u++))})};(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!h.requestAnimationFrame;++c)h.requestAnimationFrame=h[b[c]+"RequestAnimationFrame"],h.cancelAnimationFrame= | |
| h[b[c]+"CancelAnimationFrame"]||h[b[c]+"CancelRequestAnimationFrame"];h.requestAnimationFrame||(h.requestAnimationFrame=function(b,c){var f=(new Date).getTime(),g=Math.max(0,16-(f-a)),l=h.setTimeout(function(){b(f+g)},g);a=f+g;return l});h.cancelAnimationFrame||(h.cancelAnimationFrame=function(a){clearTimeout(a)})})()})(jQuery,document,window,navigator); | |
| //! moment.js | |
| //! version : 2.10.2 | |
| //! authors : Tim Wood, Iskren Chernev, Moment.js contributors | |
| //! license : MIT | |
| //! momentjs.com | |
| !function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return Ac.apply(null,arguments)}function b(a){Ac=a}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(a){return"[object Array]"===Object.prototype.toString.call(a)}function e(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function f(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function g(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function h(a,b){for(var c in b)g(b,c)&&(a[c]=b[c]);return g(b,"toString")&&(a.toString=b.toString),g(b,"valueOf")&&(a.valueOf=b.valueOf),a}function i(a,b,c,d){return ya(a,b,c,d,!0).utc()}function j(a){return null==a._isValid&&(a._isValid=!isNaN(a._d.getTime())&&a._pf.overflow<0&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated,a._strict&&(a._isValid=a._isValid&&0===a._pf.charsLeftOver&&0===a._pf.unusedTokens.length&&void 0===a._pf.bigHour)),a._isValid}function k(a){var b=i(0/0);return null!=a?h(b._pf,a):b._pf.userInvalidated=!0,b}function l(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Cc.length>0)for(c in Cc)d=Cc[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function m(b){l(this,b),this._d=new Date(+b._d),Dc===!1&&(Dc=!0,a.updateOffset(this),Dc=!1)}function n(a){return a instanceof m||null!=a&&g(a,"_isAMomentObject")}function o(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function p(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&o(a[d])!==o(b[d]))&&g++;return g+f}function q(){}function r(a){return a?a.toLowerCase().replace("_","-"):a}function s(a){for(var b,c,d,e,f=0;f<a.length;){for(e=r(a[f]).split("-"),b=e.length,c=r(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=t(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&p(e,c,!0)>=b-1)break;b--}f++}return null}function t(a){var b=null;if(!Ec[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=Bc._abbr,require("./locale/"+a),u(b)}catch(c){}return Ec[a]}function u(a,b){var c;return a&&(c="undefined"==typeof b?w(a):v(a,b),c&&(Bc=c)),Bc._abbr}function v(a,b){return null!==b?(b.abbr=a,Ec[a]||(Ec[a]=new q),Ec[a].set(b),u(a),Ec[a]):(delete Ec[a],null)}function w(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return Bc;if(!d(a)){if(b=t(a))return b;a=[a]}return s(a)}function x(a,b){var c=a.toLowerCase();Fc[c]=Fc[c+"s"]=Fc[b]=a}function y(a){return"string"==typeof a?Fc[a]||Fc[a.toLowerCase()]:void 0}function z(a){var b,c,d={};for(c in a)g(a,c)&&(b=y(c),b&&(d[b]=a[c]));return d}function A(b,c){return function(d){return null!=d?(C(this,b,d),a.updateOffset(this,c),this):B(this,b)}}function B(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function C(a,b,c){return a._d["set"+(a._isUTC?"UTC":"")+b](c)}function D(a,b){var c;if("object"==typeof a)for(c in a)this.set(c,a[c]);else if(a=y(a),"function"==typeof this[a])return this[a](b);return this}function E(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function F(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Jc[a]=e),b&&(Jc[b[0]]=function(){return E(e.apply(this,arguments),b[1],b[2])}),c&&(Jc[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function G(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function H(a){var b,c,d=a.match(Gc);for(b=0,c=d.length;c>b;b++)d[b]=Jc[d[b]]?Jc[d[b]]:G(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function I(a,b){return a.isValid()?(b=J(b,a.localeData()),Ic[b]||(Ic[b]=H(b)),Ic[b](a)):a.localeData().invalidDate()}function J(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Hc.lastIndex=0;d>=0&&Hc.test(a);)a=a.replace(Hc,c),Hc.lastIndex=0,d-=1;return a}function K(a,b,c){Yc[a]="function"==typeof b?b:function(a){return a&&c?c:b}}function L(a,b){return g(Yc,a)?Yc[a](b._strict,b._locale):new RegExp(M(a))}function M(a){return a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function N(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),"number"==typeof b&&(d=function(a,c){c[b]=o(a)}),c=0;c<a.length;c++)Zc[a[c]]=d}function O(a,b){N(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function P(a,b,c){null!=b&&g(Zc,a)&&Zc[a](b,c._a,c,a)}function Q(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function R(a){return this._months[a.month()]}function S(a){return this._monthsShort[a.month()]}function T(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=i([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}function U(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),Q(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function V(b){return null!=b?(U(this,b),a.updateOffset(this,!0),this):B(this,"Month")}function W(){return Q(this.year(),this.month())}function X(a){var b,c=a._a;return c&&-2===a._pf.overflow&&(b=c[_c]<0||c[_c]>11?_c:c[ad]<1||c[ad]>Q(c[$c],c[_c])?ad:c[bd]<0||c[bd]>24||24===c[bd]&&(0!==c[cd]||0!==c[dd]||0!==c[ed])?bd:c[cd]<0||c[cd]>59?cd:c[dd]<0||c[dd]>59?dd:c[ed]<0||c[ed]>999?ed:-1,a._pf._overflowDayOfYear&&($c>b||b>ad)&&(b=ad),a._pf.overflow=b),a}function Y(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+b)}function Z(a,b){var c=!0;return h(function(){return c&&(Y(a),c=!1),b.apply(this,arguments)},b)}function $(a,b){hd[a]||(Y(b),hd[a]=!0)}function _(a){var b,c,d=a._i,e=id.exec(d);if(e){for(a._pf.iso=!0,b=0,c=jd.length;c>b;b++)if(jd[b][1].exec(d)){a._f=jd[b][0]+(e[6]||" ");break}for(b=0,c=kd.length;c>b;b++)if(kd[b][1].exec(d)){a._f+=kd[b][0];break}d.match(Vc)&&(a._f+="Z"),sa(a)}else a._isValid=!1}function aa(b){var c=ld.exec(b._i);return null!==c?void(b._d=new Date(+c[1])):(_(b),void(b._isValid===!1&&(delete b._isValid,a.createFromInputFallback(b))))}function ba(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function ca(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function da(a){return ea(a)?366:365}function ea(a){return a%4===0&&a%100!==0||a%400===0}function fa(){return ea(this.year())}function ga(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=za(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ha(a){return ga(a,this._week.dow,this._week.doy).week}function ia(){return this._week.dow}function ja(){return this._week.doy}function ka(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function la(a){var b=ga(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}function ma(a,b,c,d,e){var f,g,h=ca(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:da(a-1)+g}}function na(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function oa(a,b,c){return null!=a?a:null!=b?b:c}function pa(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function qa(a){var b,c,d,e,f=[];if(!a._d){for(d=pa(a),a._w&&null==a._a[ad]&&null==a._a[_c]&&ra(a),a._dayOfYear&&(e=oa(a._a[$c],d[$c]),a._dayOfYear>da(e)&&(a._pf._overflowDayOfYear=!0),c=ca(e,0,a._dayOfYear),a._a[_c]=c.getUTCMonth(),a._a[ad]=c.getUTCDate()),b=0;3>b&&null==a._a[b];++b)a._a[b]=f[b]=d[b];for(;7>b;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];24===a._a[bd]&&0===a._a[cd]&&0===a._a[dd]&&0===a._a[ed]&&(a._nextDay=!0,a._a[bd]=0),a._d=(a._useUTC?ca:ba).apply(null,f),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[bd]=24)}}function ra(a){var b,c,d,e,f,g,h;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(f=1,g=4,c=oa(b.GG,a._a[$c],ga(za(),1,4).year),d=oa(b.W,1),e=oa(b.E,1)):(f=a._locale._week.dow,g=a._locale._week.doy,c=oa(b.gg,a._a[$c],ga(za(),f,g).year),d=oa(b.w,1),null!=b.d?(e=b.d,f>e&&++d):e=null!=b.e?b.e+f:f),h=ma(c,d,e,g,f),a._a[$c]=h.year,a._dayOfYear=h.dayOfYear}function sa(b){if(b._f===a.ISO_8601)return void _(b);b._a=[],b._pf.empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=J(b._f,b._locale).match(Gc)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(L(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&b._pf.unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),Jc[f]?(d?b._pf.empty=!1:b._pf.unusedTokens.push(f),P(f,d,b)):b._strict&&!d&&b._pf.unusedTokens.push(f);b._pf.charsLeftOver=i-j,h.length>0&&b._pf.unusedInput.push(h),b._pf.bigHour===!0&&b._a[bd]<=12&&(b._pf.bigHour=void 0),b._a[bd]=ta(b._locale,b._a[bd],b._meridiem),qa(b),X(b)}function ta(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function ua(a){var b,d,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(0/0));for(f=0;f<a._f.length;f++)g=0,b=l({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._pf=c(),b._f=a._f[f],sa(b),j(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,d=b));h(a,d||b)}function va(a){if(!a._d){var b=z(a._i);a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],qa(a)}}function wa(a){var b,c=a._i,e=a._f;return a._locale=a._locale||w(a._l),null===c||void 0===e&&""===c?k({nullInput:!0}):("string"==typeof c&&(a._i=c=a._locale.preparse(c)),n(c)?new m(X(c)):(d(e)?ua(a):e?sa(a):xa(a),b=new m(X(a)),b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b))}function xa(b){var c=b._i;void 0===c?b._d=new Date:e(c)?b._d=new Date(+c):"string"==typeof c?aa(b):d(c)?(b._a=f(c.slice(0),function(a){return parseInt(a,10)}),qa(b)):"object"==typeof c?va(b):"number"==typeof c?b._d=new Date(c):a.createFromInputFallback(b)}function ya(a,b,d,e,f){var g={};return"boolean"==typeof d&&(e=d,d=void 0),g._isAMomentObject=!0,g._useUTC=g._isUTC=f,g._l=d,g._i=a,g._f=b,g._strict=e,g._pf=c(),wa(g)}function za(a,b,c,d){return ya(a,b,c,d,!1)}function Aa(a,b){var c,e;if(1===b.length&&d(b[0])&&(b=b[0]),!b.length)return za();for(c=b[0],e=1;e<b.length;++e)b[e][a](c)&&(c=b[e]);return c}function Ba(){var a=[].slice.call(arguments,0);return Aa("isBefore",a)}function Ca(){var a=[].slice.call(arguments,0);return Aa("isAfter",a)}function Da(a){var b=z(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=w(),this._bubble()}function Ea(a){return a instanceof Da}function Fa(a,b){F(a,0,0,function(){var a=this.utcOffset(),c="+";return 0>a&&(a=-a,c="-"),c+E(~~(a/60),2)+b+E(~~a%60,2)})}function Ga(a){var b=(a||"").match(Vc)||[],c=b[b.length-1]||[],d=(c+"").match(qd)||["-",0,0],e=+(60*d[1])+o(d[2]);return"+"===d[0]?e:-e}function Ha(b,c){var d,f;return c._isUTC?(d=c.clone(),f=(n(b)||e(b)?+b:+za(b))-+d,d._d.setTime(+d._d+f),a.updateOffset(d,!1),d):za(b).local();return c._isUTC?za(b).zone(c._offset||0):za(b).local()}function Ia(a){return 15*-Math.round(a._d.getTimezoneOffset()/15)}function Ja(b,c){var d,e=this._offset||0;return null!=b?("string"==typeof b&&(b=Ga(b)),Math.abs(b)<16&&(b=60*b),!this._isUTC&&c&&(d=Ia(this)),this._offset=b,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==b&&(!c||this._changeInProgress?Za(this,Ua(b-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?e:Ia(this)}function Ka(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function La(a){return this.utcOffset(0,a)}function Ma(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Ia(this),"m")),this}function Na(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ga(this._i)),this}function Oa(a){return a=a?za(a).utcOffset():0,(this.utcOffset()-a)%60===0}function Pa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qa(){if(this._a){var a=this._isUTC?i(this._a):za(this._a);return this.isValid()&&p(this._a,a.toArray())>0}return!1}function Ra(){return!this._isUTC}function Sa(){return this._isUTC}function Ta(){return this._isUTC&&0===this._offset}function Ua(a,b){var c,d,e,f=a,h=null;return Ea(a)?f={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(f={},b?f[b]=a:f.milliseconds=a):(h=rd.exec(a))?(c="-"===h[1]?-1:1,f={y:0,d:o(h[ad])*c,h:o(h[bd])*c,m:o(h[cd])*c,s:o(h[dd])*c,ms:o(h[ed])*c}):(h=sd.exec(a))?(c="-"===h[1]?-1:1,f={y:Va(h[2],c),M:Va(h[3],c),d:Va(h[4],c),h:Va(h[5],c),m:Va(h[6],c),s:Va(h[7],c),w:Va(h[8],c)}):null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(e=Xa(za(f.from),za(f.to)),f={},f.ms=e.milliseconds,f.M=e.months),d=new Da(f),Ea(a)&&g(a,"_locale")&&(d._locale=a._locale),d}function Va(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function Wa(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Xa(a,b){var c;return b=Ha(b,a),a.isBefore(b)?c=Wa(a,b):(c=Wa(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function Ya(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||($(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Ua(c,d),Za(this,e,a),this}}function Za(b,c,d,e){var f=c._milliseconds,g=c._days,h=c._months;e=null==e?!0:e,f&&b._d.setTime(+b._d+f*d),g&&C(b,"Date",B(b,"Date")+g*d),h&&U(b,B(b,"Month")+h*d),e&&a.updateOffset(b,g||h)}function $a(a){var b=a||za(),c=Ha(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this,za(b)))}function _a(){return new m(this)}function ab(a,b){var c;return b=y("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=n(a)?a:za(a),+this>+a):(c=n(a)?+a:+za(a),c<+this.clone().startOf(b))}function bb(a,b){var c;return b=y("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=n(a)?a:za(a),+a>+this):(c=n(a)?+a:+za(a),+this.clone().endOf(b)<c)}function cb(a,b,c){return this.isAfter(a,c)&&this.isBefore(b,c)}function db(a,b){var c;return b=y(b||"millisecond"),"millisecond"===b?(a=n(a)?a:za(a),+this===+a):(c=+za(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))}function eb(a){return 0>a?Math.ceil(a):Math.floor(a)}function fb(a,b,c){var d,e,f=Ha(a,this),g=6e4*(f.utcOffset()-this.utcOffset());return b=y(b),"year"===b||"month"===b||"quarter"===b?(e=gb(this,f),"quarter"===b?e/=3:"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:eb(e)}function gb(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)}function hb(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ib(){var a=this.clone().utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():I(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):I(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function jb(b){var c=I(this,b||a.defaultFormat);return this.localeData().postformat(c)}function kb(a,b){return Ua({to:this,from:a}).locale(this.locale()).humanize(!b)}function lb(a){return this.from(za(),a)}function mb(a){var b;return void 0===a?this._locale._abbr:(b=w(a),null!=b&&(this._locale=b),this)}function nb(){return this._locale}function ob(a){switch(a=y(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function pb(a){return a=y(a),void 0===a||"millisecond"===a?this:this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms")}function qb(){return+this._d-6e4*(this._offset||0)}function rb(){return Math.floor(+this/1e3)}function sb(){return this._offset?new Date(+this):this._d}function tb(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function ub(){return j(this)}function vb(){return h({},this._pf)}function wb(){return this._pf.overflow}function xb(a,b){F(0,[a,a.length],0,b)}function yb(a,b,c){return ga(za([a,11,31+b-c]),b,c).week}function zb(a){var b=ga(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")}function Ab(a){var b=ga(this,1,4).year;return null==a?b:this.add(a-b,"y")}function Bb(){return yb(this.year(),1,4)}function Cb(){var a=this.localeData()._week;return yb(this.year(),a.dow,a.doy)}function Db(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}function Eb(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function Fb(a){return this._weekdays[a.day()]}function Gb(a){return this._weekdaysShort[a.day()]}function Hb(a){return this._weekdaysMin[a.day()]}function Ib(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=za([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b}function Jb(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Eb(a,this.localeData()),this.add(a-b,"d")):b}function Kb(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function Lb(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)}function Mb(a,b){F(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function Nb(a,b){return b._meridiemParse}function Ob(a){return"p"===(a+"").toLowerCase().charAt(0)}function Pb(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Qb(a){F(0,[a,3],0,"millisecond")}function Rb(){return this._isUTC?"UTC":""}function Sb(){return this._isUTC?"Coordinated Universal Time":""}function Tb(a){return za(1e3*a)}function Ub(){return za.apply(null,arguments).parseZone()}function Vb(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.call(b,c):d}function Wb(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b}function Xb(){return this._invalidDate}function Yb(a){return this._ordinal.replace("%d",a)}function Zb(a){return a}function $b(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)}function _b(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)}function ac(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function bc(a,b,c,d){var e=w(),f=i().set(d,b);return e[c](f,a)}function cc(a,b,c,d,e){if("number"==typeof a&&(b=a,a=void 0),a=a||"",null!=b)return bc(a,b,c,e);var f,g=[];for(f=0;d>f;f++)g[f]=bc(a,f,c,e);return g}function dc(a,b){return cc(a,b,"months",12,"month")}function ec(a,b){return cc(a,b,"monthsShort",12,"month")}function fc(a,b){return cc(a,b,"weekdays",7,"day")}function gc(a,b){return cc(a,b,"weekdaysShort",7,"day")}function hc(a,b){return cc(a,b,"weekdaysMin",7,"day")}function ic(){var a=this._data;return this._milliseconds=Od(this._milliseconds),this._days=Od(this._days),this._months=Od(this._months),a.milliseconds=Od(a.milliseconds),a.seconds=Od(a.seconds),a.minutes=Od(a.minutes),a.hours=Od(a.hours),a.months=Od(a.months),a.years=Od(a.years),this}function jc(a,b,c,d){var e=Ua(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function kc(a,b){return jc(this,a,b,1)}function lc(a,b){return jc(this,a,b,-1)}function mc(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;return g.milliseconds=d%1e3,a=eb(d/1e3),g.seconds=a%60,b=eb(a/60),g.minutes=b%60,c=eb(b/60),g.hours=c%24,e+=eb(c/24),h=eb(nc(e)),e-=eb(oc(h)),f+=eb(e/30),e%=30,h+=eb(f/12),f%=12,g.days=e,g.months=f,g.years=h,this}function nc(a){return 400*a/146097}function oc(a){return 146097*a/400}function pc(a){var b,c,d=this._milliseconds;if(a=y(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+12*nc(b),"month"===a?c:c/12;switch(b=this._days+Math.round(oc(this._months/12)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 24*b*60+d/6e4;case"second":return 24*b*60*60+d/1e3;case"millisecond":return Math.floor(24*b*60*60*1e3)+d;default:throw new Error("Unknown unit "+a)}}function qc(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*o(this._months/12)}function rc(a){return function(){return this.as(a)}}function sc(a){return a=y(a),this[a+"s"]()}function tc(a){return function(){return this._data[a]}}function uc(){return eb(this.days()/7)}function vc(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function wc(a,b,c){var d=Ua(a).abs(),e=ce(d.as("s")),f=ce(d.as("m")),g=ce(d.as("h")),h=ce(d.as("d")),i=ce(d.as("M")),j=ce(d.as("y")),k=e<de.s&&["s",e]||1===f&&["m"]||f<de.m&&["mm",f]||1===g&&["h"]||g<de.h&&["hh",g]||1===h&&["d"]||h<de.d&&["dd",h]||1===i&&["M"]||i<de.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,vc.apply(null,k)}function xc(a,b){return void 0===de[a]?!1:void 0===b?de[a]:(de[a]=b,!0)}function yc(a){var b=this.localeData(),c=wc(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function zc(){var a=ee(this.years()),b=ee(this.months()),c=ee(this.days()),d=ee(this.hours()),e=ee(this.minutes()),f=ee(this.seconds()+this.milliseconds()/1e3),g=this.asSeconds();return g?(0>g?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"}var Ac,Bc,Cc=a.momentProperties=[],Dc=!1,Ec={},Fc={},Gc=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Hc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ic={},Jc={},Kc=/\d/,Lc=/\d\d/,Mc=/\d{3}/,Nc=/\d{4}/,Oc=/[+-]?\d{6}/,Pc=/\d\d?/,Qc=/\d{1,3}/,Rc=/\d{1,4}/,Sc=/[+-]?\d{1,6}/,Tc=/\d+/,Uc=/[+-]?\d+/,Vc=/Z|[+-]\d\d:?\d\d/gi,Wc=/[+-]?\d+(\.\d{1,3})?/,Xc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Yc={},Zc={},$c=0,_c=1,ad=2,bd=3,cd=4,dd=5,ed=6;F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),F("MMMM",0,0,function(a){return this.localeData().months(this,a)}),x("month","M"),K("M",Pc),K("MM",Pc,Lc),K("MMM",Xc),K("MMMM",Xc),N(["M","MM"],function(a,b){b[_c]=o(a)-1}),N(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);null!=e?b[_c]=e:c._pf.invalidMonth=a});var fd="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),hd={};a.suppressDeprecationWarnings=!1;var id=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],kd=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ld=/^\/?Date\((\-?\d+)/i;a.createFromInputFallback=Z("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),x("year","y"),K("Y",Uc),K("YY",Pc,Lc),K("YYYY",Rc,Nc),K("YYYYY",Sc,Oc),K("YYYYYY",Sc,Oc),N(["YYYY","YYYYY","YYYYYY"],$c),N("YY",function(b,c){c[$c]=a.parseTwoDigitYear(b)}),a.parseTwoDigitYear=function(a){return o(a)+(o(a)>68?1900:2e3)};var md=A("FullYear",!1);F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),K("w",Pc),K("ww",Pc,Lc),K("W",Pc),K("WW",Pc,Lc),O(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=o(a)});var nd={dow:0,doy:6};F("DDD",["DDDD",3],"DDDo","dayOfYear"),x("dayOfYear","DDD"),K("DDD",Qc),K("DDDD",Mc),N(["DDD","DDDD"],function(a,b,c){c._dayOfYear=o(a)}),a.ISO_8601=function(){};var od=Z("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var a=za.apply(null,arguments);return this>a?this:a}),pd=Z("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var a=za.apply(null,arguments);return a>this?this:a});Fa("Z",":"),Fa("ZZ",""),K("Z",Vc),K("ZZ",Vc),N(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=Ga(a)});var qd=/([\+\-]|\d\d)/gi;a.updateOffset=function(){};var rd=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,sd=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Ua.fn=Da.prototype;var td=Ya(1,"add"),ud=Ya(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var vd=Z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),xb("gggg","weekYear"),xb("ggggg","weekYear"),xb("GGGG","isoWeekYear"),xb("GGGGG","isoWeekYear"),x("weekYear","gg"),x("isoWeekYear","GG"),K("G",Uc),K("g",Uc),K("GG",Pc,Lc),K("gg",Pc,Lc),K("GGGG",Rc,Nc),K("gggg",Rc,Nc),K("GGGGG",Sc,Oc),K("ggggg",Sc,Oc),O(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=o(a)}),O(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),F("Q",0,0,"quarter"),x("quarter","Q"),K("Q",Kc),N("Q",function(a,b){b[_c]=3*(o(a)-1)}),F("D",["DD",2],"Do","date"),x("date","D"),K("D",Pc),K("DD",Pc,Lc),K("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),N(["D","DD"],ad),N("Do",function(a,b){b[ad]=o(a.match(Pc)[0],10)});var wd=A("Date",!0);F("d",0,"do","day"),F("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),F("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),F("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),K("d",Pc),K("e",Pc),K("E",Pc),K("dd",Xc),K("ddd",Xc),K("dddd",Xc),O(["dd","ddd","dddd"],function(a,b,c){var d=c._locale.weekdaysParse(a);null!=d?b.d=d:c._pf.invalidWeekday=a}),O(["d","e","E"],function(a,b,c,d){b[d]=o(a)});var xd="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zd="Su_Mo_Tu_We_Th_Fr_Sa".split("_");F("H",["HH",2],0,"hour"),F("h",["hh",2],0,function(){return this.hours()%12||12}),Mb("a",!0),Mb("A",!1),x("hour","h"),K("a",Nb),K("A",Nb),K("H",Pc),K("h",Pc),K("HH",Pc,Lc),K("hh",Pc,Lc),N(["H","HH"],bd),N(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),N(["h","hh"],function(a,b,c){b[bd]=o(a),c._pf.bigHour=!0});var Ad=/[ap]\.?m?\.?/i,Bd=A("Hours",!0);F("m",["mm",2],0,"minute"),x("minute","m"),K("m",Pc),K("mm",Pc,Lc),N(["m","mm"],cd);var Cd=A("Minutes",!1);F("s",["ss",2],0,"second"),x("second","s"),K("s",Pc),K("ss",Pc,Lc),N(["s","ss"],dd);var Dd=A("Seconds",!1);F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Qb("SSS"),Qb("SSSS"),x("millisecond","ms"),K("S",Qc,Kc),K("SS",Qc,Lc),K("SSS",Qc,Mc),K("SSSS",Tc),N(["S","SS","SSS","SSSS"],function(a,b){b[ed]=o(1e3*("0."+a))});var Ed=A("Milliseconds",!1);F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Fd=m.prototype;Fd.add=td,Fd.calendar=$a,Fd.clone=_a,Fd.diff=fb,Fd.endOf=pb,Fd.format=jb,Fd.from=kb,Fd.fromNow=lb,Fd.get=D,Fd.invalidAt=wb,Fd.isAfter=ab,Fd.isBefore=bb,Fd.isBetween=cb,Fd.isSame=db,Fd.isValid=ub,Fd.lang=vd,Fd.locale=mb,Fd.localeData=nb,Fd.max=pd,Fd.min=od,Fd.parsingFlags=vb,Fd.set=D,Fd.startOf=ob,Fd.subtract=ud,Fd.toArray=tb,Fd.toDate=sb,Fd.toISOString=ib,Fd.toJSON=ib,Fd.toString=hb,Fd.unix=rb,Fd.valueOf=qb,Fd.year=md,Fd.isLeapYear=fa,Fd.weekYear=zb,Fd.isoWeekYear=Ab,Fd.quarter=Fd.quarters=Db,Fd.month=V,Fd.daysInMonth=W,Fd.week=Fd.weeks=ka,Fd.isoWeek=Fd.isoWeeks=la,Fd.weeksInYear=Cb,Fd.isoWeeksInYear=Bb,Fd.date=wd,Fd.day=Fd.days=Jb,Fd.weekday=Kb,Fd.isoWeekday=Lb,Fd.dayOfYear=na,Fd.hour=Fd.hours=Bd,Fd.minute=Fd.minutes=Cd,Fd.second=Fd.seconds=Dd,Fd.millisecond=Fd.milliseconds=Ed,Fd.utcOffset=Ja,Fd.utc=La,Fd.local=Ma,Fd.parseZone=Na,Fd.hasAlignedHourOffset=Oa,Fd.isDST=Pa,Fd.isDSTShifted=Qa,Fd.isLocal=Ra,Fd.isUtcOffset=Sa,Fd.isUtc=Ta,Fd.isUTC=Ta,Fd.zoneAbbr=Rb,Fd.zoneName=Sb,Fd.dates=Z("dates accessor is deprecated. Use date instead.",wd),Fd.months=Z("months accessor is deprecated. Use month instead",V),Fd.years=Z("years accessor is deprecated. Use year instead",md),Fd.zone=Z("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Ka);var Gd=Fd,Hd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Id={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},Jd="Invalid date",Kd="%d",Ld=/\d{1,2}/,Md={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Nd=q.prototype;Nd._calendar=Hd,Nd.calendar=Vb,Nd._longDateFormat=Id,Nd.longDateFormat=Wb,Nd._invalidDate=Jd,Nd.invalidDate=Xb,Nd._ordinal=Kd,Nd.ordinal=Yb,Nd._ordinalParse=Ld, | |
| Nd.preparse=Zb,Nd.postformat=Zb,Nd._relativeTime=Md,Nd.relativeTime=$b,Nd.pastFuture=_b,Nd.set=ac,Nd.months=R,Nd._months=fd,Nd.monthsShort=S,Nd._monthsShort=gd,Nd.monthsParse=T,Nd.week=ha,Nd._week=nd,Nd.firstDayOfYear=ja,Nd.firstDayOfWeek=ia,Nd.weekdays=Fb,Nd._weekdays=xd,Nd.weekdaysMin=Hb,Nd._weekdaysMin=zd,Nd.weekdaysShort=Gb,Nd._weekdaysShort=yd,Nd.weekdaysParse=Ib,Nd.isPM=Ob,Nd._meridiemParse=Ad,Nd.meridiem=Pb,u("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===o(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),a.lang=Z("moment.lang is deprecated. Use moment.locale instead.",u),a.langData=Z("moment.langData is deprecated. Use moment.localeData instead.",w);var Od=Math.abs,Pd=rc("ms"),Qd=rc("s"),Rd=rc("m"),Sd=rc("h"),Td=rc("d"),Ud=rc("w"),Vd=rc("M"),Wd=rc("y"),Xd=tc("milliseconds"),Yd=tc("seconds"),Zd=tc("minutes"),$d=tc("hours"),_d=tc("days"),ae=tc("months"),be=tc("years"),ce=Math.round,de={s:45,m:45,h:22,d:26,M:11},ee=Math.abs,fe=Da.prototype;fe.abs=ic,fe.add=kc,fe.subtract=lc,fe.as=pc,fe.asMilliseconds=Pd,fe.asSeconds=Qd,fe.asMinutes=Rd,fe.asHours=Sd,fe.asDays=Td,fe.asWeeks=Ud,fe.asMonths=Vd,fe.asYears=Wd,fe.valueOf=qc,fe._bubble=mc,fe.get=sc,fe.milliseconds=Xd,fe.seconds=Yd,fe.minutes=Zd,fe.hours=$d,fe.days=_d,fe.weeks=uc,fe.months=ae,fe.years=be,fe.humanize=yc,fe.toISOString=zc,fe.toString=zc,fe.toJSON=zc,fe.locale=mb,fe.localeData=nb,fe.toIsoString=Z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zc),fe.lang=vd,F("X",0,0,"unix"),F("x",0,0,"valueOf"),K("x",Uc),K("X",Wc),N("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),N("x",function(a,b,c){c._d=new Date(o(a))}),a.version="2.10.2",b(za),a.fn=Gd,a.min=Ba,a.max=Ca,a.utc=i,a.unix=Tb,a.months=dc,a.isDate=e,a.locale=u,a.invalid=k,a.duration=Ua,a.isMoment=n,a.weekdays=fc,a.parseZone=Ub,a.localeData=w,a.isDuration=Ea,a.monthsShort=ec,a.weekdaysMin=hc,a.defineLocale=v,a.weekdaysShort=gc,a.normalizeUnits=y,a.relativeTimeThreshold=xc;var ge=a;return ge}); | |
| /*! | |
| * @preserve | |
| * | |
| * Readmore.js jQuery plugin | |
| * Author: @jed_foster | |
| * Project home: http://jedfoster.github.io/Readmore.js | |
| * Licensed under the MIT license | |
| * | |
| * Debounce function from http://davidwalsh.name/javascript-debounce-function | |
| */ | |
| !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";function e(t,e,i){var a;return function(){var n=this,o=arguments,r=function(){a=null,i||t.apply(n,o)},s=i&&!a;clearTimeout(a),a=setTimeout(r,e),s&&t.apply(n,o)}}function i(t){var e=++h;return String(null==t?"rmjs-":t)+e}function a(t){var e=t.clone().css({height:"auto",width:t.width(),maxHeight:"none",overflow:"hidden"}).insertAfter(t),i=e.outerHeight(),a=parseInt(e.css({maxHeight:""}).css("max-height").replace(/[^-\d\.]/g,""),10),n=t.data("defaultHeight");e.remove();var o=a||t.data("collapsedHeight")||n;t.data({expandedHeight:i,maxHeight:a,collapsedHeight:o}).css({maxHeight:"none"})}function n(t){if(!d[t.selector]){var e=" ";t.embedCSS&&""!==t.blockCSS&&(e+=t.selector+" + [data-readmore-toggle], "+t.selector+"[data-readmore]{"+t.blockCSS+"}"),e+=t.selector+"[data-readmore]{transition: height "+t.speed+"ms;overflow: hidden;}",function(t,e){var i=t.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),t.getElementsByTagName("head")[0].appendChild(i)}(document,e),d[t.selector]=!0}}function o(e,i){this.element=e,this.options=t.extend({},s,i),n(this.options),this._defaults=s,this._name=r,this.init(),window.addEventListener?(window.addEventListener("load",l),window.addEventListener("resize",l)):(window.attachEvent("load",l),window.attachEvent("resize",l))}var r="readmore",s={speed:100,collapsedHeight:200,heightMargin:16,moreLink:'<a href="#">Read More</a>',lessLink:'<a href="#">Close</a>',embedCSS:!0,blockCSS:"display: block; width: 100%;",startOpen:!1,beforeToggle:function(){},afterToggle:function(){}},d={},h=0,l=e(function(){t("[data-readmore]").each(function(){var e=t(this),i="true"===e.attr("aria-expanded");a(e),e.css({height:e.data(i?"expandedHeight":"collapsedHeight")})})},100);o.prototype={init:function(){var e=t(this.element);e.data({defaultHeight:this.options.collapsedHeight,heightMargin:this.options.heightMargin}),a(e);var n=e.data("collapsedHeight"),o=e.data("heightMargin");if(e.outerHeight(!0)<=n+o)return!0;var r=e.attr("id")||i(),s=this.options.startOpen?this.options.lessLink:this.options.moreLink;e.attr({"data-readmore":"","aria-expanded":this.options.startOpen,id:r}),e.after(t(s).on("click",function(t){return function(i){t.toggle(this,e[0],i)}}(this)).attr({"data-readmore-toggle":"","aria-controls":r})),this.options.startOpen||e.css({height:n})},toggle:function(e,i,a){a&&a.preventDefault(),e||(e=t('[aria-controls="'+_this.element.id+'"]')[0]),i||(i=_this.element);var n=t(i),o="",r="",s=!1,d=n.data("collapsedHeight");n.height()<=d?(o=n.data("expandedHeight")+"px",r="lessLink",s=!0):(o=d,r="moreLink"),this.options.beforeToggle(e,n,!s),n.css({height:o}),n.on("transitionend",function(i){return function(){i.options.afterToggle(e,n,s),t(this).attr({"aria-expanded":s}).off("transitionend")}}(this)),t(e).replaceWith(t(this.options[r]).on("click",function(t){return function(e){t.toggle(this,i,e)}}(this)).attr({"data-readmore-toggle":"","aria-controls":n.attr("id")}))},destroy:function(){t(this.element).each(function(){var e=t(this);e.attr({"data-readmore":null,"aria-expanded":null}).css({maxHeight:"",height:""}).next("[data-readmore-toggle]").remove(),e.removeData()})}},t.fn.readmore=function(e){var i=arguments,a=this.selector;return e=e||{},"object"==typeof e?this.each(function(){if(t.data(this,"plugin_"+r)){var i=t.data(this,"plugin_"+r);i.destroy.apply(i)}e.selector=a,t.data(this,"plugin_"+r,new o(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each(function(){var a=t.data(this,"plugin_"+r);a instanceof o&&"function"==typeof a[e]&&a[e].apply(a,Array.prototype.slice.call(i,1))}):void 0}}); | |
| /*! jQuery Instagram - v0.3.1 - 2014-06-19 | |
| * http://potomak.github.com/jquery-instagram | |
| * Copyright (c) 2014 Giovanni Cappellotto; Licensed MIT */ | |
| !function(a){function b(b){var c="https://api.instagram.com/v1",d={};if(null==b.accessToken&&null==b.clientId)throw"You must provide an access token or a client id";if(d=a.extend(d,{access_token:b.accessToken||"",client_id:b.clientId||"",count:b.count||""}),null!=b.url)c=b.url;else if(null!=b.hash)c+="/tags/"+b.hash+"/media/recent";else if(null!=b.search)c+="/media/search",d=a.extend(d,b.search);else if(null!=b.userId){if(null==b.accessToken)throw"You must provide an access token";c+="/users/"+b.userId+"/media/recent"}else null!=b.location?(c+="/locations/"+b.location.id+"/media/recent",delete b.location.id,d=a.extend(d,b.location)):c+="/media/popular";return{url:c,data:d}}a.fn.instagram=function(c){var d=this;c=a.extend({},a.fn.instagram.defaults,c);var e=b(c);return a.ajax({dataType:"jsonp",url:e.url,data:e.data,success:function(a){d.trigger("didLoadInstagram",a)}}),this.trigger("willLoadInstagram",c),this},a.fn.instagram.defaults={accessToken:null,clientId:null,count:null,url:null,hash:null,userId:null,location:null,search:null}}(jQuery); | |
| /* | |
| * jQuery-stickit v0.1.12 | |
| * https://github.com/emn178/jquery-stickit | |
| * | |
| * Copyright 2014-2015, emn178@gmail.com | |
| * | |
| * Licensed under the MIT license: | |
| * http://www.opensource.org/licenses/MIT | |
| */ | |
| ;(function($, window, document, undefined) { | |
| var KEY = 'jquery-stickit'; | |
| var SPACER_KEY = KEY + '-spacer'; | |
| var SELECTOR = ':' + KEY; | |
| var IE7 = navigator.userAgent.indexOf('MSIE 7.0') != -1; | |
| var OFFSET = IE7 ? -2 : 0; | |
| var Scope = window.StickScope = { | |
| Parent: 0, | |
| Document: 1 | |
| }; | |
| var Stick = { | |
| None: 0, | |
| Fixed: 1, | |
| Absolute: 2 | |
| }; | |
| var init = false; | |
| $.expr[':'][KEY] = function(element) { | |
| return !!$(element).data(KEY); | |
| }; | |
| function Sticker(element, options) { | |
| this.element = $(element); | |
| this.options = options || {}; | |
| this.options.scope = this.options.scope || Scope.Parent; | |
| this.options.className = this.options.className || 'stick'; | |
| this.options.top = this.options.top || 0; | |
| this.options.extraHeight = this.options.extraHeight || 0; | |
| if(this.options.zIndex === undefined) { | |
| this.zIndex = this.element.css('z-index') || 100; | |
| } | |
| this.offsetY = 0; | |
| this.lastY = 0; | |
| this.stick = Stick.None; | |
| this.spacer = $('<div />'); | |
| this.spacer[0].id = element.id; | |
| this.spacer[0].className = element.className; | |
| this.spacer[0].style.cssText = element.style.cssText; | |
| this.spacer.addClass(SPACER_KEY); | |
| this.spacer.css({ | |
| display: 'none', | |
| visibility: 'hidden' | |
| }); | |
| this.spacer.insertAfter(this.element); | |
| if(this.element.parent().css('position') == 'static') { | |
| this.element.parent().css('position', 'relative'); | |
| } | |
| this.bound(); | |
| this.precalculate(); | |
| this.store(); | |
| } | |
| Sticker.prototype.store = function() { | |
| var element = this.element[0]; | |
| this.origStyle = { | |
| width: element.style.width, | |
| position: element.style.position, | |
| left: element.style.left, | |
| top: element.style.top, | |
| bottom: element.style.bottom, | |
| zIndex: element.style.zIndex | |
| }; | |
| }; | |
| Sticker.prototype.restore = function() { | |
| this.element.css(this.origStyle); | |
| }; | |
| Sticker.prototype.bound = function() { | |
| var element = this.element; | |
| if(!IE7 && element.css('box-sizing') == 'border-box') { | |
| var bl = parseInt(element.css('border-left-width')) || 0; | |
| var br = parseInt(element.css('border-right-width')) || 0; | |
| var pl = parseInt(element.css('padding-left')) || 0; | |
| var pr = parseInt(element.css('padding-right')) || 0; | |
| this.extraWidth = bl + br + pl + pr; | |
| } | |
| else { | |
| this.extraWidth = 0; | |
| } | |
| this.margin = { | |
| top: parseInt(element.css('margin-top')) || 0, | |
| bottom: parseInt(element.css('margin-bottom')) || 0, | |
| left: parseInt(element.css('margin-left')) || 0, | |
| right: parseInt(element.css('margin-right')) || 0 | |
| }; | |
| this.parent = { | |
| border: { | |
| bottom: parseInt(element.parent().css('border-bottom-width')) || 0 | |
| } | |
| }; | |
| }; | |
| Sticker.prototype.precalculate = function() { | |
| this.baseTop = this.margin.top + this.options.top; | |
| this.basePadding = this.baseTop + this.margin.bottom; | |
| this.baseParentOffset = this.options.extraHeight - this.parent.border.bottom; | |
| this.offsetHeight = Math.max(this.element.height() - screenHeight, 0); | |
| }; | |
| Sticker.prototype.reset = function() { | |
| this.stick = Stick.None; | |
| this.spacer.hide(); | |
| this.spacer.css('width', ''); | |
| this.restore(); | |
| this.element.removeClass(this.options.className); | |
| }; | |
| Sticker.prototype.setAbsolute = function(left) { | |
| if(this.stick == Stick.None) { | |
| this.element.addClass(this.options.className); | |
| } | |
| this.stick = Stick.Absolute; | |
| this.element.css({ | |
| width: this.element.width() + this.extraWidth + 'px', | |
| position: 'absolute', | |
| top: this.origStyle.top, | |
| left: left + 'px', | |
| bottom: -this.options.extraHeight + 'px', | |
| 'z-index': this.zIndex | |
| }); | |
| }; | |
| Sticker.prototype.setFixed = function(left, lastY, offsetY) { | |
| if(this.stick == Stick.None) { | |
| this.element.addClass(this.options.className); | |
| } | |
| this.stick = Stick.Fixed; | |
| this.lastY = lastY; | |
| this.offsetY = offsetY; | |
| this.element.css({ | |
| width: this.element.width() + this.extraWidth + 'px', | |
| position: 'fixed', | |
| top: (this.options.top + offsetY) + 'px', | |
| left: left + 'px', | |
| bottom: this.origStyle.bottom, | |
| 'z-index': this.zIndex | |
| }); | |
| }; | |
| Sticker.prototype.updateScroll = function(newY) { | |
| if(this.offsetHeight == 0) { | |
| return; | |
| } | |
| this.offsetY = Math.max(this.offsetY + newY - this.lastY, -this.offsetHeight); | |
| this.offsetY = Math.min(this.offsetY, 0); | |
| this.lastY = newY; | |
| this.element.css('top', (this.options.top + this.offsetY) + 'px'); | |
| }; | |
| Sticker.prototype.locate = function() { | |
| var rect, top, left, element = this.element, spacer = this.spacer; | |
| switch(this.stick) { | |
| case Stick.Fixed: | |
| rect = spacer[0].getBoundingClientRect(); | |
| top = rect.top - this.baseTop; | |
| if(top >= 0) { | |
| this.reset(); | |
| } else if(this.options.scope == Scope.Parent) { | |
| rect = element.parent()[0].getBoundingClientRect(); | |
| if(rect.bottom + this.baseParentOffset + this.offsetHeight <= element.outerHeight(false) + this.basePadding) { | |
| this.setAbsolute(this.spacer.position().left); | |
| } else { | |
| this.updateScroll(rect.bottom); | |
| } | |
| } else { | |
| this.updateScroll(rect.bottom); | |
| } | |
| break; | |
| case Stick.Absolute: | |
| rect = spacer[0].getBoundingClientRect(); | |
| top = rect.top - this.baseTop; | |
| left = rect.left - this.margin.left; | |
| if(top >= 0) { | |
| this.reset(); | |
| } else { | |
| rect = element.parent()[0].getBoundingClientRect(); | |
| if(rect.bottom + this.baseParentOffset + this.offsetHeight > element.outerHeight(false) + this.basePadding) { | |
| this.setFixed(left + OFFSET, rect.bottom, -this.offsetHeight); | |
| } | |
| } | |
| break; | |
| case Stick.None: | |
| /* falls through */ | |
| default: | |
| rect = element[0].getBoundingClientRect(); | |
| top = rect.top - this.baseTop; | |
| if(top >= 0) { | |
| return; | |
| } | |
| spacer.height(element.height()); | |
| spacer.show(); | |
| left = rect.left - this.margin.left; | |
| if(this.options.scope == Scope.Document) { | |
| this.setFixed(left, rect.bottom, 0); | |
| } else { | |
| var rect2 = element.parent()[0].getBoundingClientRect(); | |
| if(rect2.bottom + this.baseParentOffset <= element.outerHeight(false) + this.basePadding) { | |
| this.setAbsolute(this.element.position().left); | |
| } else { | |
| this.setFixed(left + OFFSET, rect.bottom, 0); | |
| } | |
| } | |
| if(!spacer.width()) { | |
| spacer.width(element.width()); | |
| } | |
| break; | |
| } | |
| }; | |
| Sticker.prototype.resize = function() { | |
| this.bound(); | |
| this.precalculate(); | |
| if(this.stick == Stick.None) { | |
| return; | |
| } | |
| var element = this.element; | |
| var spacer = this.spacer; | |
| element.width(spacer.width()); | |
| spacer.height(element.height()); | |
| if(this.stick == Stick.Fixed) { | |
| var rect = this.spacer[0].getBoundingClientRect(); | |
| var left = rect.left - this.margin.left; | |
| element.css('left', left + 'px'); | |
| } | |
| this.locate(); | |
| }; | |
| Sticker.prototype.destroy = function() { | |
| this.reset(); | |
| this.spacer.remove(); | |
| this.element.removeData(KEY); | |
| }; | |
| var screenHeight; | |
| function resize() { | |
| screenHeight = window.innerHeight || document.documentElement.clientHeight; | |
| $(SELECTOR).each(function() { | |
| $(this).data(KEY).resize(); | |
| }); | |
| } | |
| function scroll() { | |
| $(SELECTOR).each(function() { | |
| $(this).data(KEY).locate(); | |
| }); | |
| } | |
| var PublicMethods = ['destroy']; | |
| $.fn.stickit = function(method, options) { | |
| // init | |
| if(typeof(method) == 'string') { | |
| if($.inArray(method, PublicMethods) != -1) { | |
| this.each(function() { | |
| var sticker = $(this).data(KEY); | |
| if(sticker) { | |
| sticker[method].apply(sticker, options); | |
| } | |
| }); | |
| } | |
| } else { | |
| options = method; | |
| this.each(function() { | |
| var sticker = new Sticker(this, options); | |
| $(this).data(KEY, sticker); | |
| sticker.locate(); | |
| }); | |
| if(!init) { | |
| init = true; | |
| resize(); | |
| $(document).ready(function() { | |
| $(window).bind('resize', resize).bind('scroll', scroll); | |
| }); | |
| } | |
| } | |
| return this; | |
| }; | |
| })(jQuery, window, document); | |
| /*! | |
| * jQuery Typeahead | |
| * Copyright (C) 2015 RunningCoder.org | |
| * Licensed under the MIT license | |
| * | |
| * @author Tom Bertrand | |
| * @version 2.3.2 (2016-01-13) | |
| * @link http://www.runningcoder.org/jquerytypeahead/ | |
| */ | |
| !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){window.Typeahead={version:"2.3.2"};var b={input:null,minLength:2,maxItem:8,dynamic:!1,delay:300,order:null,offset:!1,hint:!1,accent:!1,highlight:!0,group:!1,groupOrder:null,maxItemPerGroup:null,dropdownFilter:!1,dynamicFilter:null,backdrop:!1,backdropOnFocus:!1,cache:!1,ttl:36e5,compression:!1,suggestion:!1,searchOnFocus:!1,resultContainer:null,generateOnLoad:null,mustSelectItem:!1,href:null,display:["display"],template:null,correlativeTemplate:!1,emptyTemplate:!1,filter:!0,matcher:null,source:null,callback:{onInit:null,onReady:null,onShowLayout:null,onHideLayout:null,onSearch:null,onResult:null,onLayoutBuiltBefore:null,onLayoutBuiltAfter:null,onNavigateBefore:null,onNavigateAfter:null,onMouseEnter:null,onMouseLeave:null,onClickBefore:null,onClickAfter:null,onSendRequest:null,onReceiveRequest:null,onPopulateSource:null,onCacheSave:null,onSubmit:null},selector:{container:"typeahead-container",result:"typeahead-result",list:"typeahead-list",group:"typeahead-group",item:"typeahead-item",empty:"typeahead-empty",display:"typeahead-display",query:"typeahead-query",filter:"typeahead-filter",filterButton:"typeahead-filter-button",filterValue:"typeahead-filter-value",dropdown:"typeahead-dropdown",dropdownCaret:"typeahead-caret",button:"typeahead-button",backdrop:"typeahead-backdrop",hint:"typeahead-hint"},debug:!1},c=".typeahead",d={from:"ãàáäâẽèéëêìíïîõòóöôùúüûñç",to:"aaaaaeeeeeiiiiooooouuuunc"},e=~navigator.appVersion.indexOf("MSIE 9."),f=function(a,b){this.rawQuery="",this.query=a.val()||"",this.tmpSource={},this.source={},this.isGenerated=null,this.generatedGroupCount=0,this.groupCount=0,this.groupBy="group",this.result={},this.resultCount=0,this.resultCountPerGroup={},this.options=b,this.node=a,this.container=null,this.resultContainer=null,this.item=null,this.xhr={},this.hintIndex=null,this.filters={dropdown:{},dynamic:{}},this.requests={},this.backdrop={},this.hint={},this.__construct()};f.prototype={extendOptions:function(){this.options.dynamic&&(this.options.cache=!1,this.options.compression=!1),this.options.cache&&(this.options.cache=function(a){var b,c=["localStorage","sessionStorage"];if(a===!0)a="localStorage";else if("string"==typeof a&&!~c.indexOf(a))return!1;b="undefined"!=typeof window[a];try{window[a].setItem("typeahead","typeahead"),window[a].removeItem("typeahead")}catch(d){b=!1}return b&&a||!1}.call(this,this.options.cache)),this.options.compression&&("object"==typeof LZString&&this.options.cache||(this.options.compression=!1)),"undefined"==typeof this.options.maxItem||/^\d+$/.test(this.options.maxItem)&&0!==this.options.maxItem||(this.options.maxItem=1/0),this.options.maxItemPerGroup&&!/^\d+$/.test(this.options.maxItemPerGroup)&&(this.options.maxItemPerGroup=null),!this.options.display||this.options.display instanceof Array||(this.options.display=[this.options.display]),!this.options.group||this.options.group instanceof Array||(this.options.group=[this.options.group]),this.options.highlight&&!~["any",!0].indexOf(this.options.highlight)&&(this.options.highlight=!1),!this.options.dynamicFilter||this.options.dynamicFilter instanceof Array||(this.options.dynamicFilter=[this.options.dynamicFilter]),this.options.accent&&("object"==typeof this.options.accent?this.options.accent.from&&this.options.accent.to&&this.options.accent.from.length===this.options.accent.to.length:this.options.accent=d),this.options.resultContainer&&("string"==typeof this.options.resultContainer&&(this.options.resultContainer=a(this.options.resultContainer)),this.options.resultContainer instanceof jQuery&&this.options.resultContainer[0]&&(this.resultContainer=this.options.resultContainer)),this.options.group&&"string"==typeof this.options.group[0]&&this.options.maxItemPerGroup&&(this.groupBy=this.options.group[0]),this.options.callback&&this.options.callback.onClick&&(this.options.callback.onClickBefore=this.options.callback.onClick,delete this.options.callback.onClick),this.options.callback&&this.options.callback.onNavigate&&(this.options.callback.onNavigateBefore=this.options.callback.onNavigate,delete this.options.callback.onNavigate),this.options=a.extend(!0,{},b,this.options)},unifySourceFormat:function(){if(this.options.source instanceof Array)return this.options.source={group:{data:this.options.source}},this.groupCount+=1,!0;("undefined"!=typeof this.options.source.data||"undefined"!=typeof this.options.source.url)&&(this.options.source={group:this.options.source});var a;for(var b in this.options.source)if(this.options.source.hasOwnProperty(b)){if(a=this.options.source[b],("string"==typeof a||a instanceof Array)&&(a={url:a}),!a.data&&!a.url)return!1;!a.display||a.display instanceof Array||(a.display=[a.display]),a.ignore&&(a.ignore instanceof RegExp||delete a.ignore),this.options.source[b]=a,this.groupCount+=1}return!0},init:function(){this.helper.executeCallback.call(this,this.options.callback.onInit,[this.node]),this.container=this.node.closest("."+this.options.selector.container)},delegateEvents:function(){var b=this,d=["focus"+c,"input"+c,"propertychange"+c,"keydown"+c,"keyup"+c,"dynamic"+c,"generateOnLoad"+c];this.container.off(c).on("click"+c+" touchstart"+c,function(c){c.stopPropagation(),b.options.dropdownFilter&&b.container.hasClass("filter")&&!a(c.target).closest("."+b.options.selector.dropdown.replace(" ","."))[0]&&b.container.removeClass("filter")}),this.node.closest("form").on("submit",function(a){return b.options.mustSelectItem&&b.helper.isEmpty(b.item)?void a.preventDefault():(b.hideLayout(),b.rawQuery="",b.query="",b.helper.executeCallback.call(b,b.options.callback.onSubmit,[b.node,this,b.item,a])?!1:void 0)});var f=!1;this.node.off(c).on(d.join(" "),function(a){switch(a.type){case"focus":b.options.backdropOnFocus&&(b.buildBackdropLayout(),b.showLayout());case"generateOnLoad":b.options.searchOnFocus&&b.query.length>=b.options.minLength&&(b.isGenerated?b.showLayout():null===b.isGenerated&&b.generateSource());case"keydown":null!==b.isGenerated||b.options.dynamic||b.generateSource(),a.keyCode&&~[9,13,27,38,39,40].indexOf(a.keyCode)&&(f=!0,b.navigate(a));break;case"keyup":e&&b.node[0].value.replace(/^\s+/,"").toString().length<b.query.length&&b.node.trigger("input"+c);break;case"propertychange":if(f){f=!1;break}case"input":if(b.rawQuery=b.node[0].value.toString(),b.query=b.rawQuery.replace(/^\s+/,""),b.options.hint&&b.hint.container&&""!==b.hint.container.val()&&0!==b.hint.container.val().indexOf(b.rawQuery)&&b.hint.container.val(""),b.options.dynamic)return b.isGenerated=null,void b.helper.typeWatch(function(){b.query.length>=b.options.minLength?b.generateSource():b.hideLayout()},b.options.delay);case"dynamic":if(!b.isGenerated)break;if(b.searchResult(),b.query.length<b.options.minLength){b.hideLayout();break}b.buildLayout(),b.result.length>0||b.options.emptyTemplate?b.showLayout():b.hideLayout()}}),this.options.generateOnLoad&&this.node.trigger("generateOnLoad"+c)},generateSource:function(){if(!this.isGenerated||this.options.dynamic){if(this.generatedGroupCount=0,this.isGenerated=!1,!this.helper.isEmpty(this.xhr)){for(var a in this.xhr)this.xhr.hasOwnProperty(a)&&this.xhr[a].abort();this.xhr={}}var b,c,d,e;for(b in this.options.source)if(this.options.source.hasOwnProperty(b)){if(c=this.options.source[b],this.options.cache&&(d=window[this.options.cache].getItem("TYPEAHEAD_"+this.node.selector+":"+b))){this.options.compression&&(d=LZString.decompressFromUTF16(d)),e=!1;try{d=JSON.parse(d+""),d.data&&d.ttl>(new Date).getTime()?(this.populateSource(d.data,b),e=!0):window[this.options.cache].removeItem("TYPEAHEAD_"+this.node.selector+":"+b)}catch(f){}if(e)continue}!c.data||c.url?c.url&&(this.requests[b]||(this.requests[b]=this.generateRequestObject(b))):this.populateSource("function"==typeof c.data&&c.data()||c.data,b)}this.handleRequests()}},generateRequestObject:function(b){var c=this,d=this.options.source[b];d.url instanceof Array||(d.url=[d.url]);var e={request:{url:null,dataType:"json",beforeSend:function(a,e){c.xhr[b]=a;var f=c.requests[b].extra.beforeSend||d.url[0].beforeSend;"function"==typeof f&&f.apply(null,arguments)}},extra:{path:null,group:b,callback:{done:null,fail:null,complete:null,always:null}},validForGroup:[b]};Object.defineProperty(e.request,"beforeSend",{writable:!1}),d.url[0]instanceof Object?(d.url[0].callback&&(e.extra.callback=d.url[0].callback,delete d.url[0].callback),e.request=a.extend(!0,e.request,d.url[0])):"string"==typeof d.url[0]&&(e.request.url=d.url[0]),d.url[1]&&"string"==typeof d.url[1]&&(e.extra.path=d.url[1]),"jsonp"===e.request.dataType.toLowerCase()&&(e.request.jsonpCallback="callback_"+b);var f;for(var g in this.requests)if(this.requests.hasOwnProperty(g)&&(f=JSON.stringify(this.requests[g].request),f===JSON.stringify(e.request))){this.requests[g].validForGroup.push(b),e.isDuplicated=!0,delete e.validForGroup;break}return e},handleRequests:function(){var b=this,c=Object.keys(this.requests).length;this.helper.executeCallback.call(this,this.options.callback.onSendRequest,[this.node,this.query]);for(var d in this.requests)this.requests.hasOwnProperty(d)&&(this.requests[d].isDuplicated||!function(d,e){if("function"==typeof b.options.source[d].url[0]){var f=b.options.source[d].url[0].call(b,b.query);if(e.request=a.extend(!0,e.request,f),"object"!=typeof e.request||!e.request.url)return;f.beforeSend&&(b.requests[d].extra.beforeSend=f.beforeSend)}var g,h=!1;if(~e.request.url.indexOf("{{query}}")&&(h||(e=a.extend(!0,{},e),h=!0),e.request.url=e.request.url.replace("{{query}}",b.query.sanitize())),e.request.data)for(var i in e.request.data)if(e.request.data.hasOwnProperty(i)&&~String(e.request.data[i]).indexOf("{{query}}")){h||(e=a.extend(!0,{},e),h=!0),e.request.data[i]=e.request.data[i].replace("{{query}}",b.query.sanitize());break}a.ajax(e.request).done(function(a,d,f){for(var h,i=0;i<e.validForGroup.length;i++)g=b.requests[e.validForGroup[i]],g.extra.callback.done instanceof Function&&(h=g.extra.callback.done(a,d,f),a=h instanceof Array&&h||a),b.populateSource(a,g.extra.group,g.extra.path),c-=1,0===c&&b.helper.executeCallback.call(b,b.options.callback.onReceiveRequest,[b.node,b.query])}).fail(function(a,c,d){for(var f=0;f<e.validForGroup.length;f++)g=b.requests[e.validForGroup[f]],g.extra.callback.fail instanceof Function&&g.extra.callback.fail(a,c,d)}).then(function(a,c){for(var d=0;d<e.validForGroup.length;d++)g=b.requests[e.validForGroup[d]],g.extra.callback.then instanceof Function&&g.extra.callback.then(a,c)}).always(function(a,c,d){for(var f=0;f<e.validForGroup.length;f++)g=b.requests[e.validForGroup[f]],g.extra.callback.always instanceof Function&&g.extra.callback.always(a,c,d)})}(d,this.requests[d]))},populateSource:function(a,b,c){var d=this,e=this.options.source[b],f=e.url&&e.data;a="string"==typeof c?this.helper.namespace(c,a):a,a instanceof Array||(a=[]),f&&("function"==typeof f&&(f=f()),f instanceof Array&&(a=a.concat(f)));for(var g,h=e.display?"compiled"===e.display[0]?e.display[1]:e.display[0]:"compiled"===this.options.display[0]?this.options.display[1]:this.options.display[0],i=0;i<a.length;i++)"string"==typeof a[i]&&(g={},g[h]=a[i],a[i]=g),a[i].group=b;if(this.options.correlativeTemplate){var j=e.template||this.options.template,k="";if("function"==typeof j&&(j=j()),j){if(this.options.correlativeTemplate instanceof Array)for(var i=0;i<this.options.correlativeTemplate.length;i++)k+="{{"+this.options.correlativeTemplate[i]+"}} ";else k=j.replace(/<.+?>/g,"");for(var i=0;i<a.length;i++)a[i].compiled=k.replace(/\{\{([\w\-\.]+)(?:\|(\w+))?}}/g,function(b,c){return d.helper.namespace(c,a[i],"get","")}).trim();e.display?~e.display.indexOf("compiled")||e.display.unshift("compiled"):~this.options.display.indexOf("compiled")||this.options.display.unshift("compiled")}else;}if(this.options.callback.onPopulateSource&&(a=this.helper.executeCallback.call(this,this.options.callback.onPopulateSource,[this.node,a,b,c])),this.tmpSource[b]=a,this.options.cache&&!window[this.options.cache].getItem("TYPEAHEAD_"+this.node.selector+":"+b)){this.options.callback.onCacheSave&&(a=this.helper.executeCallback.call(this,this.options.callback.onCacheSave,[this.node,a,b,c]));var l=JSON.stringify({data:a,ttl:(new Date).getTime()+this.options.ttl});this.options.compression&&(l=LZString.compressToUTF16(l)),window[this.options.cache].setItem("TYPEAHEAD_"+this.node.selector+":"+b,l)}this.incrementGeneratedGroup()},incrementGeneratedGroup:function(){if(this.generatedGroupCount+=1,this.groupCount===this.generatedGroupCount){this.isGenerated=!0,this.xhr={};for(var a=Object.keys(this.options.source),b=0;b<a.length;b++)this.source[a[b]]=this.tmpSource[a[b]];this.tmpSource={},this.node.trigger("dynamic"+c)}},navigate:function(a){if(this.helper.executeCallback.call(this,this.options.callback.onNavigateBefore,[this.node,this.query,a]),~[9,27].indexOf(a.keyCode))return this.query.length||27!==a.keyCode||this.node.blur(),void this.hideLayout();if(this.isGenerated&&this.result.length){var b=this.resultContainer.find("> ul > li:not([data-search-group])"),c=b.filter(".active"),d=c[0]&&b.index(c)||null,e=null;if(13===a.keyCode){if(c.length>0)return a.preventDefault(),void c.find("a:first")[0].click();if(this.options.mustSelectItem&&this.helper.isEmpty(this.item))return;return void this.hideLayout()}if(39===a.keyCode)return void(d?b.eq(d).find("a:first")[0].click():this.options.hint&&""!==this.hint.container.val()&&this.helper.getCaret(this.node[0])>=this.query.length&&b.find('a[data-index="'+this.hintIndex+'"]')[0].click());b.length>0&&c.removeClass("active"),38===a.keyCode?(a.preventDefault(),c.length>0?d-1>=0&&(e=d-1,b.eq(e).addClass("active")):(e=b.length-1,b.last().addClass("active"))):40===a.keyCode&&(a.preventDefault(),c.length>0?d+1<b.length&&(e=d+1,b.eq(e).addClass("active")):(e=0,b.first().addClass("active"))),a.preventInputChange&&~[38,40].indexOf(a.keyCode)&&this.buildHintLayout(null!==e&&e<this.result.length?[this.result[e]]:null),this.options.hint&&this.hint.container&&this.hint.container.css("color",a.preventInputChange?this.hint.css.color:null===e&&this.hint.css.color||this.hint.container.css("background-color")||"fff"),this.node.val(null===e||a.preventInputChange?this.rawQuery:this.result[e][this.result[e].matchedKey]),this.helper.executeCallback.call(this,this.options.callback.onNavigateAfter,[this.node,b,null!==e&&b.eq(e).find("a:first")||void 0,null!==e&&this.result[e]||void 0,this.query,a])}},searchResult:function(a){if(a||(this.item={}),this.resetLayout(),this.helper.executeCallback.call(this,this.options.callback.onSearch,[this.node,this.query]),!(this.query.length<this.options.minLength)){var b,c,d,e,f,g,h,i,j,k,l,m,n=this,o=this.options.group&&"boolean"!=typeof this.options.group[0]?this.options.group[0]:"group",p=null,q=this.query.toLowerCase(),r=this.options.maxItemPerGroup,s=this.filters.dynamic&&!this.helper.isEmpty(this.filters.dynamic),t="function"==typeof this.options.matcher&&this.options.matcher;this.options.accent&&(q=this.helper.removeAccent.call(this,q));for(b in this.source)if(this.source.hasOwnProperty(b)&&(!this.filters.dropdown||"group"!==this.filters.dropdown.key||this.filters.dropdown.value===b)){g="undefined"!=typeof this.options.source[b].filter?this.options.source[b].filter:this.options.filter,i="function"==typeof this.options.source[b].matcher&&this.options.source[b].matcher||t;for(var u=0;u<this.source[b].length&&(!(this.result.length>=this.options.maxItem)||this.options.callback.onResult);u++)if(!s||this.dynamicFilter.validate.apply(this,[this.source[b][u]])){if(c=this.source[b][u],p="group"===o?b:c[o],p&&!this.result[p]&&(this.result[p]=[],this.resultCountPerGroup[p]=0),r&&"group"===o&&this.result[p].length>=r&&!this.options.callback.onResult)break;f=this.options.source[b].display||this.options.display;for(var v=0;v<f.length;v++){if("function"==typeof g){if(h=g.call(this,c,c[f[v]]),void 0===h)break;if(!h)continue;"object"==typeof h&&(c=h)}if(~[void 0,!0].indexOf(g)){if(e=c[f[v]],!e)continue;if(e=e.toString().toLowerCase(),this.options.accent&&(e=this.helper.removeAccent.call(this,e)),d=e.indexOf(q),this.options.correlativeTemplate&&"compiled"===f[v]&&0>d&&/\s/.test(q)){k=!0,l=q.split(" "),m=e;for(var w=0;w<l.length;w++)if(""!==l[w]){if(!~m.indexOf(l[w])){k=!1;break}m=m.replace(l[w],"")}}if(0>d&&!k)continue;if(this.options.offset&&0!==d)continue;if(this.options.source[b].ignore&&this.options.source[b].ignore.test(e))continue;if(i){if(j=i.call(this,c,c[f[v]]),void 0===j)break;if(!j)continue;"object"==typeof j&&(c=j)}}if(!this.filters.dropdown||this.filters.dropdown.value==c[this.filters.dropdown.key]){if(this.resultCount++,this.resultCountPerGroup[p]++,this.resultItemCount<this.options.maxItem){if(r&&this.result[p].length>=r)break;c.matchedKey=f[v],this.result[p].push(c),this.resultItemCount++}break}}if(!this.options.callback.onResult){if(this.resultItemCount>=this.options.maxItem)break;if(r&&this.result[p].length>=r&&"group"===o)break}}}if(this.options.order){var x,f=[];for(var b in this.result)if(this.result.hasOwnProperty(b)){for(var v=0;v<this.result[b].length;v++)x=this.options.source[this.result[b][v].group].display||this.options.display,~f.indexOf(x[0])||f.push(x[0]);this.result[b].sort(n.helper.sort(f,"asc"===n.options.order,function(a){return a.toString().toUpperCase()}))}}var y,z=[];y="function"==typeof this.options.groupOrder?this.options.groupOrder.apply(this,[this.node,this.query,this.result,this.resultCount,this.resultCountPerGroup]):this.options.groupOrder instanceof Array?this.options.groupOrder:"string"==typeof this.options.groupOrder&&~["asc","desc"].indexOf(this.options.groupOrder)?Object.keys(this.result).sort(n.helper.sort([],"asc"===n.options.groupOrder,function(a){return a.toString().toUpperCase()})):Object.keys(this.result);for(var v=0;v<y.length;v++)z=z.concat(this.result[y[v]]||[]);this.result=z,this.helper.executeCallback.call(this,this.options.callback.onResult,[this.node,this.query,this.result,this.resultCount,this.resultCountPerGroup])}},buildLayout:function(){this.resultContainer||(this.resultContainer=a("<div/>",{"class":this.options.selector.result}),this.container.append(this.resultContainer));var b=this.query.toLowerCase();this.options.accent&&(b=this.helper.removeAccent.call(this,b));var c=this,d=a("<ul/>",{"class":this.options.selector.list+(c.helper.isEmpty(c.result)?" empty":""),html:function(){if(c.options.emptyTemplate&&c.helper.isEmpty(c.result)){var d="function"==typeof c.options.emptyTemplate?c.options.emptyTemplate.call(c,c.query):c.options.emptyTemplate.replace(/\{\{query}}/gi,c.query.sanitize());return d instanceof jQuery&&"LI"===d[0].nodeName?d:a("<li/>",{"class":c.options.selector.empty,html:a("<a/>",{href:"javascript:;",html:d})})}for(var e in c.result)c.result.hasOwnProperty(e)&&!function(d,e,f){var g,h,i,j,k=e.group,l=[],m=c.options.source[e.group].display||c.options.display,n=c.options.source[e.group].href||c.options.href;c.options.group&&(c.options.group[1]?"function"==typeof c.options.group[1]?k=c.options.group[1](e):"string"==typeof c.options.group[1]&&(k=c.options.group[1].replace(/(\{\{group}})/gi,e[c.options.group[0]]||k)):"boolean"!=typeof c.options.group[0]&&e[c.options.group[0]]&&(k=e[c.options.group[0]]),a(f).find('li[data-search-group="'+k+'"]')[0]||a(f).append(a("<li/>",{"class":c.options.selector.group,html:a("<a/>",{href:"javascript:;",html:k}),"data-search-group":k}))),g=a("<li/>",{"class":c.options.selector.item,html:a("<a/>",{href:function(){return n&&("string"==typeof n?n=n.replace(/\{\{([\w\-\.]+)(?:\|(\w+))?}}/g,function(a,b,d){var f=c.helper.namespace(b,e,"get","");return d&&"raw"===d?f:c.helper.slugify.call(c,f)}):"function"==typeof n&&(n=n(e)),e.href=n),n||"javascript:;"},"data-group":k,"data-index":d,html:function(){if(j=e.group&&c.options.source[e.group].template||c.options.template)"function"==typeof j&&(j=j.call(c,c.query,e)),h=j.replace(/\{\{([\w\-\.]+)(?:\|(\w+))?}}/g,function(a,d,f){var g=String(c.helper.namespace(d,e,"get","")).sanitize();return f&&"raw"===f||c.options.highlight===!0&&b&&~m.indexOf(d)&&(g=c.helper.highlight.call(c,g,b.split(" "),c.options.accent)),g});else{for(var d=0;d<m.length;d++)l.push(e[m[d]]);h='<span class="'+c.options.selector.display+'">'+String(l.join(" ")).sanitize()+"</span>"}(c.options.highlight===!0&&b&&!j||"any"===c.options.highlight)&&(h=c.helper.highlight.call(c,h,b.split(" "),c.options.accent)),a(this).append(h)},click:function(b){return c.options.mustSelectItem&&c.helper.isEmpty(e)?void b.preventDefault():(c.item=e,c.helper.executeCallback.call(c,c.options.callback.onClickBefore,[c.node,a(this),e,b]),void(b.originalEvent&&b.originalEvent.defaultPrevented||b.isDefaultPrevented()||(c.query=c.rawQuery=e[e.matchedKey].toString(),c.node.val(c.query).focus(),c.searchResult(!0),c.buildLayout(),c.hideLayout(),c.helper.executeCallback.call(c,c.options.callback.onClickAfter,[c.node,a(this),e,b]))))},mouseenter:function(b){a(this).closest("ul").find("li.active").removeClass("active"),a(this).closest("li").addClass("active"),c.helper.executeCallback.call(c,c.options.callback.onMouseEnter,[c.node,a(this),e,b])},mouseleave:function(b){a(this).closest("li").removeClass("active"),c.helper.executeCallback.call(c,c.options.callback.onMouseLeave,[c.node,a(this),e,b])}})}),c.options.group?(i=a(f).find('a[data-group="'+k+'"]:last').closest("li"),i[0]||(i=a(f).find('li[data-search-group="'+k+'"]')),a(g).insertAfter(i)):a(f).append(g)}(e,c.result[e],this)}});if(this.buildBackdropLayout(),this.buildHintLayout(),this.options.callback.onLayoutBuiltBefore){var e=this.helper.executeCallback.call(this,this.options.callback.onLayoutBuiltBefore,[this.node,this.query,this.result,d]);e instanceof jQuery&&(d=e)}this.resultContainer.html(d),this.options.callback.onLayoutBuiltAfter&&this.helper.executeCallback.call(this,this.options.callback.onLayoutBuiltAfter,[this.node,this.query,this.result])},buildBackdropLayout:function(){this.options.backdrop&&(this.backdrop.container||(this.backdrop.css=a.extend({opacity:.6,filter:"alpha(opacity=60)",position:"fixed",top:0,right:0,bottom:0,left:0,"z-index":1040,"background-color":"#000"},this.options.backdrop),this.backdrop.container=a("<div/>",{"class":this.options.selector.backdrop,css:this.backdrop.css}).insertAfter(this.container)),this.container.addClass("backdrop").css({"z-index":this.backdrop.css["z-index"]+1,position:"relative"}))},buildHintLayout:function(b){if(this.options.hint){var c=this,d="",b=b||this.result,e=this.query.toLowerCase();if(this.options.accent&&(e=this.helper.removeAccent.call(this,e)),this.hintIndex=null,this.query.length>=this.options.minLength){if(this.hint.container||(this.hint.css=a.extend({"border-color":"transparent",position:"absolute",top:0,display:"inline","z-index":-1,"float":"none",color:"silver","box-shadow":"none",cursor:"default","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},this.options.hint),this.hint.container=a("<input/>",{type:this.node.attr("type"),"class":this.node.attr("class"),readonly:!0,unselectable:"on",tabindex:-1,click:function(){c.node.focus()}}).addClass(this.options.selector.hint).css(this.hint.css).insertAfter(this.node),this.node.parent().css({position:"relative"})),this.hint.container.css("color",this.hint.css.color),e)for(var f,g,h,i=0;i<b.length;i++){g=b[i].group,f=this.options.source[g].display||this.options.display;for(var j=0;j<f.length;j++)if(h=String(b[i][f[j]]).toLowerCase(),this.options.accent&&(h=this.helper.removeAccent.call(this,h)),0===h.indexOf(e)){d=String(b[i][f[j]]),this.hintIndex=i;break}if(null!==this.hintIndex)break}this.hint.container.val(d.length>0&&this.rawQuery+d.substring(this.query.length)||"")}}},buildDropdownLayout:function(){function b(a){"*"===a.value?delete this.filters.dropdown:this.filters.dropdown=a,this.container.removeClass("filter").find("."+this.options.selector.filterValue).html(a.display||a.value),this.node.trigger("dynamic"+c),this.node.focus()}if(this.options.dropdownFilter){var d,e=this;if("boolean"==typeof this.options.dropdownFilter)d="all";else if("string"==typeof this.options.dropdownFilter)d=this.options.dropdownFilter;else if(this.options.dropdownFilter instanceof Array)for(var f=0;f<this.options.dropdownFilter.length;f++)if("*"===this.options.dropdownFilter[f].value&&this.options.dropdownFilter[f].display){d=this.options.dropdownFilter[f].display;break}a("<span/>",{"class":this.options.selector.filter,html:function(){a(this).append(a("<button/>",{type:"button","class":e.options.selector.filterButton,html:"<span class='"+e.options.selector.filterValue+"'>"+d+"</span> <span class='"+e.options.selector.dropdownCaret+"'></span>",click:function(a){a.stopPropagation(),e.container.toggleClass("filter")}})),a(this).append(a("<ul/>",{"class":e.options.selector.dropdown,html:function(){var c=e.options.dropdownFilter;if(~["string","boolean"].indexOf(typeof e.options.dropdownFilter)){c=[];for(var d in e.options.source)e.options.source.hasOwnProperty(d)&&c.push({key:"group",value:d});c.push({key:"group",value:"*",display:"string"==typeof e.options.dropdownFilter&&e.options.dropdownFilter||"All"})}for(var f=0;f<c.length;f++)!function(c,d,f){(d.key||"*"===d.value)&&d.value&&("*"===d.value&&a(f).append(a("<li/>",{"class":"divider"})),a(f).append(a("<li/>",{html:a("<a/>",{href:"javascript:;",html:d.display||d.value,click:function(a){a.preventDefault(),b.apply(e,[d])}})})))}(f,c[f],this)}}))}}).insertAfter(e.container.find("."+e.options.selector.query))}},dynamicFilter:{validate:function(a){var b,c,d=null,e=null;for(var f in this.filters.dynamic)if(this.filters.dynamic.hasOwnProperty(f)&&(c=~f.indexOf(".")?this.helper.namespace(f,a,"get"):a[f],"|"!==this.filters.dynamic[f].modifier||d||(d=c==this.filters.dynamic[f].value||!1),"&"===this.filters.dynamic[f].modifier)){if(c!=this.filters.dynamic[f].value){e=!1;break}e=!0}return b=d,null!==e&&(b=e,e===!0&&null!==d&&(b=d)),!!b},set:function(a,b){var c=a.match(/^([|&])?(.+)/);b?this.filters.dynamic[c[2]]={modifier:c[1]||"|",value:b}:delete this.filters.dynamic[c[2]],this.searchResult(),this.buildLayout()},bind:function(){if(this.options.dynamicFilter)for(var b,d=this,e=0;e<this.options.dynamicFilter.length;e++)b=this.options.dynamicFilter[e],"string"==typeof b.selector&&(b.selector=a(b.selector)),b.selector instanceof jQuery&&b.selector[0]&&b.key&&!function(a){a.selector.off(c).on("change"+c,function(){d.dynamicFilter.set.apply(d,[a.key,d.dynamicFilter.getValue(this)])}).trigger("change"+c)}(b)},getValue:function(a){var b;return"SELECT"===a.tagName?b=a.value:"INPUT"===a.tagName&&("checkbox"===a.type?b=a.checked||null:"radio"===a.type&&a.checked&&(b=a.value)),b}},showLayout:function(){if(!this.container.hasClass("result")&&(this.result.length||this.options.emptyTemplate||this.options.backdropOnFocus)){var b=this;a("html").off(c).one("click"+c+" touchstart"+c,function(){b.hideLayout()}),this.container.addClass([this.result.length||this.options.emptyTemplate&&this.query.length>=this.options.minLength?"result ":"",this.options.hint&&this.query.length>=this.options.minLength?"hint":"",this.options.backdrop||this.options.backdropOnFocus?"backdrop":""].join(" ")),this.helper.executeCallback.call(this,this.options.callback.onShowLayout,[this.node,this.query])}},hideLayout:function(){this.container.removeClass("result hint filter"+(this.options.backdropOnFocus&&a(this.node).is(":focus")?"":" backdrop")),this.options.backdropOnFocus&&this.container.hasClass("backdrop")||(a("html").off(c),this.helper.executeCallback.call(this,this.options.callback.onHideLayout,[this.node,this.query]))},resetLayout:function(){this.result={},this.resultCount=0,this.resultCountPerGroup={},this.resultItemCount=0,this.resultContainer&&this.resultContainer.html(""),this.options.hint&&this.hint.container&&this.hint.container.val("")},__construct:function(){this.extendOptions(),this.unifySourceFormat()&&(this.init(),this.delegateEvents(),this.buildDropdownLayout(),this.dynamicFilter.bind.apply(this),this.helper.executeCallback.call(this,this.options.callback.onReady,[this.node]))},helper:{isEmpty:function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0},removeAccent:function(a){if("string"==typeof a){var b=this.options.accent||d;return a=a.toLowerCase().replace(new RegExp("["+b.from+"]","g"),function(a){return b.to[b.from.indexOf(a)]})}},slugify:function(a){return a=String(a),""!==a&&(a=this.helper.removeAccent.call(this,a),a=a.replace(/[^-a-z0-9]+/g,"-").replace(/-+/g,"-").trim("-")),a},sort:function(a,b,c){var d=function(b){for(var d=0;d<a.length;d++)if("undefined"!=typeof b[a[d]])return c(b[a[d]]);return b};return b=[-1,1][+!!b],function(a,c){return a=d(a),c=d(c),b*((a>c)-(c>a))}},replaceAt:function(a,b,c,d){return a.substring(0,b)+d+a.substring(b+c)},highlight:function(a,b,c){a=String(a);var d=c&&this.helper.removeAccent.call(this,a)||a,e=[];b instanceof Array||(b=[b]),b.sort(function(a,b){return b.length-a.length});for(var f=b.length-1;f>=0;f--)""!==b[f].trim()?b[f]=b[f].replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):b.splice(f,1);d.replace(new RegExp("(?:"+b.join("|")+")(?!([^<]+)?>)","gi"),function(a,b,c){e.push({offset:c,length:a.length})});for(var f=e.length-1;f>=0;f--)a=this.helper.replaceAt(a,e[f].offset,e[f].length,"<strong>"+a.substr(e[f].offset,e[f].length)+"</strong>");return a},getCaret:function(a){if(a.selectionStart)return a.selectionStart;if(document.selection){a.focus();var b=document.selection.createRange();if(null==b)return 0;var c=a.createTextRange(),d=c.duplicate();return c.moveToBookmark(b.getBookmark()),d.setEndPoint("EndToStart",c),d.text.length}return 0},executeCallback:function(a,b){if(!a)return!1;var c;if("function"==typeof a)c=a;else if(("string"==typeof a||a instanceof Array)&&("string"==typeof a&&(a=[a,[]]),c=this.helper.namespace(a[0],window),"function"!=typeof c))return!1;return c.apply(this,(a[1]||[]).concat(b?b:[]))||!0},namespace:function(a,b,c,d){if("string"!=typeof a||""===a)return!1;for(var e=a.split("."),f=b||window,c=c||"get",g=d||{},h="",i=0,j=e.length;j>i;i++){if(h=e[i],"undefined"==typeof f[h]){if(~["get","delete"].indexOf(c))return"undefined"!=typeof d?d:void 0;f[h]={}}if(~["set","create","delete"].indexOf(c)&&i===j-1){if("set"!==c&&"create"!==c)return delete f[h],!0;f[h]=g}f=f[h]}return f},typeWatch:function(){var a=0;return function(b,c){clearTimeout(a),a=setTimeout(b,c)}}()}},a.fn.typeahead=a.typeahead=function(a){return g.typeahead(this,a)};var g={typeahead:function(b,c){if(c&&c.source&&"object"==typeof c.source){if("function"==typeof b){if(!c.input)return;b=a(c.input)}if(b.length&&"INPUT"===b[0].nodeName)for(var d,e=0;e<b.length;e++)d=1===b.length?b:a(b.selector.split(",")[e].trim()),window.Typeahead[d.selector||c.input]=new f(d,c)}}};"sanitize"in String.prototype||(String.prototype.sanitize=function(){var a={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(b){return a[b]})}),window.console=window.console||{log:function(){}},"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(a,b){void 0===b&&(b=0),0>b&&(b+=this.length),0>b&&(b=0);for(var c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1}),Object.keys||(Object.keys=function(a){var b,c=[];for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&c.push(b);return c})}); | |
| /* | |
| * Bootstrap TouchSpin - v3.0.1 | |
| * A mobile and touch friendly input spinner component for Bootstrap 3. | |
| * http://www.virtuosoft.eu/code/bootstrap-touchspin/ | |
| * | |
| * Made by István Ujj-Mészáros | |
| * Under Apache License v2.0 License | |
| */ | |
| !function(a){"use strict";function b(a,b){return a+".touchspin_"+b}function c(c,d){return a.map(c,function(a){return b(a,d)})}var d=0;a.fn.TouchSpin=function(b){if("destroy"===b)return void this.each(function(){var b=a(this),d=b.data();a(document).off(c(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],d.spinnerid).join(" "))});var e={min:0,max:100,initval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},f={min:"min",max:"max",initval:"init-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){function g(){if(!J.data("alreadyinitialized")){if(J.data("alreadyinitialized",!0),d+=1,J.data("spinnerid",d),!J.is("input"))return void console.log("Must be an input.");j(),h(),u(),m(),p(),q(),r(),s(),D.input.css("display","block")}}function h(){""!==B.initval&&""===J.val()&&J.val(B.initval)}function i(a){l(a),u();var b=D.input.val();""!==b&&(b=Number(D.input.val()),D.input.val(b.toFixed(B.decimals)))}function j(){B=a.extend({},e,K,k(),b)}function k(){var b={};return a.each(f,function(a,c){var d="bts-"+c;J.is("[data-"+d+"]")&&(b[a]=J.data(d))}),b}function l(b){B=a.extend({},B,b)}function m(){var a=J.val(),b=J.parent();""!==a&&(a=Number(a).toFixed(B.decimals)),J.data("initvalue",a).val(a),J.addClass("form-control"),b.hasClass("input-group")?n(b):o()}function n(b){b.addClass("bootstrap-touchspin");var c,d,e=J.prev(),f=J.next(),g='<span class="input-group-addon bootstrap-touchspin-prefix">'+B.prefix+"</span>",h='<span class="input-group-addon bootstrap-touchspin-postfix">'+B.postfix+"</span>";e.hasClass("input-group-btn")?(c='<button class="'+B.buttondown_class+' bootstrap-touchspin-down" type="button">'+B.buttondown_txt+"</button>",e.append(c)):(c='<span class="input-group-btn"><button class="'+B.buttondown_class+' bootstrap-touchspin-down" type="button">'+B.buttondown_txt+"</button></span>",a(c).insertBefore(J)),f.hasClass("input-group-btn")?(d='<button class="'+B.buttonup_class+' bootstrap-touchspin-up" type="button">'+B.buttonup_txt+"</button>",f.prepend(d)):(d='<span class="input-group-btn"><button class="'+B.buttonup_class+' bootstrap-touchspin-up" type="button">'+B.buttonup_txt+"</button></span>",a(d).insertAfter(J)),a(g).insertBefore(J),a(h).insertAfter(J),C=b}function o(){var b;b=B.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+B.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+B.postfix+'</span><span class="input-group-btn-vertical"><button class="'+B.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+B.verticalupclass+'"></i></button><button class="'+B.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+B.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+B.buttondown_class+' bootstrap-touchspin-down" type="button">'+B.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+B.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+B.postfix+'</span><span class="input-group-btn"><button class="'+B.buttonup_class+' bootstrap-touchspin-up" type="button">'+B.buttonup_txt+"</button></span></div>",C=a(b).insertBefore(J),a(".bootstrap-touchspin-prefix",C).after(J),J.hasClass("input-sm")?C.addClass("input-group-sm"):J.hasClass("input-lg")&&C.addClass("input-group-lg")}function p(){D={down:a(".bootstrap-touchspin-down",C),up:a(".bootstrap-touchspin-up",C),input:a("input",C),prefix:a(".bootstrap-touchspin-prefix",C).addClass(B.prefix_extraclass),postfix:a(".bootstrap-touchspin-postfix",C).addClass(B.postfix_extraclass)}}function q(){""===B.prefix&&D.prefix.hide(),""===B.postfix&&D.postfix.hide()}function r(){J.on("keydown",function(a){var b=a.keyCode||a.which;38===b?("up"!==M&&(w(),z()),a.preventDefault()):40===b&&("down"!==M&&(x(),y()),a.preventDefault())}),J.on("keyup",function(a){var b=a.keyCode||a.which;38===b?A():40===b&&A()}),J.on("blur",function(){u()}),D.down.on("keydown",function(a){var b=a.keyCode||a.which;(32===b||13===b)&&("down"!==M&&(x(),y()),a.preventDefault())}),D.down.on("keyup",function(a){var b=a.keyCode||a.which;(32===b||13===b)&&A()}),D.up.on("keydown",function(a){var b=a.keyCode||a.which;(32===b||13===b)&&("up"!==M&&(w(),z()),a.preventDefault())}),D.up.on("keyup",function(a){var b=a.keyCode||a.which;(32===b||13===b)&&A()}),D.down.on("mousedown.touchspin",function(a){D.down.off("touchstart.touchspin"),J.is(":disabled")||(x(),y(),a.preventDefault(),a.stopPropagation())}),D.down.on("touchstart.touchspin",function(a){D.down.off("mousedown.touchspin"),J.is(":disabled")||(x(),y(),a.preventDefault(),a.stopPropagation())}),D.up.on("mousedown.touchspin",function(a){D.up.off("touchstart.touchspin"),J.is(":disabled")||(w(),z(),a.preventDefault(),a.stopPropagation())}),D.up.on("touchstart.touchspin",function(a){D.up.off("mousedown.touchspin"),J.is(":disabled")||(w(),z(),a.preventDefault(),a.stopPropagation())}),D.up.on("mouseout touchleave touchend touchcancel",function(a){M&&(a.stopPropagation(),A())}),D.down.on("mouseout touchleave touchend touchcancel",function(a){M&&(a.stopPropagation(),A())}),D.down.on("mousemove touchmove",function(a){M&&(a.stopPropagation(),a.preventDefault())}),D.up.on("mousemove touchmove",function(a){M&&(a.stopPropagation(),a.preventDefault())}),a(document).on(c(["mouseup","touchend","touchcancel"],d).join(" "),function(a){M&&(a.preventDefault(),A())}),a(document).on(c(["mousemove","touchmove","scroll","scrollstart"],d).join(" "),function(a){M&&(a.preventDefault(),A())}),J.on("mousewheel DOMMouseScroll",function(a){if(B.mousewheel&&J.is(":focus")){var b=a.originalEvent.wheelDelta||-a.originalEvent.deltaY||-a.originalEvent.detail;a.stopPropagation(),a.preventDefault(),0>b?x():w()}})}function s(){J.on("touchspin.uponce",function(){A(),w()}),J.on("touchspin.downonce",function(){A(),x()}),J.on("touchspin.startupspin",function(){z()}),J.on("touchspin.startdownspin",function(){y()}),J.on("touchspin.stopspin",function(){A()}),J.on("touchspin.updatesettings",function(a,b){i(b)})}function t(a){switch(B.forcestepdivisibility){case"round":return(Math.round(a/B.step)*B.step).toFixed(B.decimals);case"floor":return(Math.floor(a/B.step)*B.step).toFixed(B.decimals);case"ceil":return(Math.ceil(a/B.step)*B.step).toFixed(B.decimals);default:return a}}function u(){var a,b,c;a=J.val(),""!==a&&(B.decimals>0&&"."===a||(b=parseFloat(a),isNaN(b)&&(b=0),c=b,b.toString()!==a&&(c=b),b<B.min&&(c=B.min),b>B.max&&(c=B.max),c=t(c),Number(a).toString()!==c.toString()&&(J.val(c),J.trigger("change"))))}function v(){if(B.booster){var a=Math.pow(2,Math.floor(L/B.boostat))*B.step;return B.maxboostedstep&&a>B.maxboostedstep&&(a=B.maxboostedstep,E=Math.round(E/a)*a),Math.max(B.step,a)}return B.step}function w(){u(),E=parseFloat(D.input.val()),isNaN(E)&&(E=0);var a=E,b=v();E+=b,E>B.max&&(E=B.max,J.trigger("touchspin.on.max"),A()),D.input.val(Number(E).toFixed(B.decimals)),a!==E&&J.trigger("change")}function x(){u(),E=parseFloat(D.input.val()),isNaN(E)&&(E=0);var a=E,b=v();E-=b,E<B.min&&(E=B.min,J.trigger("touchspin.on.min"),A()),D.input.val(E.toFixed(B.decimals)),a!==E&&J.trigger("change")}function y(){A(),L=0,M="down",J.trigger("touchspin.on.startspin"),J.trigger("touchspin.on.startdownspin"),H=setTimeout(function(){F=setInterval(function(){L++,x()},B.stepinterval)},B.stepintervaldelay)}function z(){A(),L=0,M="up",J.trigger("touchspin.on.startspin"),J.trigger("touchspin.on.startupspin"),I=setTimeout(function(){G=setInterval(function(){L++,w()},B.stepinterval)},B.stepintervaldelay)}function A(){switch(clearTimeout(H),clearTimeout(I),clearInterval(F),clearInterval(G),M){case"up":J.trigger("touchspin.on.stopupspin"),J.trigger("touchspin.on.stopspin");break;case"down":J.trigger("touchspin.on.stopdownspin"),J.trigger("touchspin.on.stopspin")}L=0,M=!1}var B,C,D,E,F,G,H,I,J=a(this),K=J.data(),L=0,M=!1;g()})}}(jQuery); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*------------------------------------------------------------------ | |
| Project: Extretion | |
| Author: Crenoveative | |
| URL: http://themeforest.net/user/crenoveative/portfolio | |
| Created: 27/05/2015 | |
| -------------------------------------------------------------------*/ | |
| /*------------------------------------------------------------------ | |
| * Table of Content | |
| * 1. Header | |
| * 2. Sticky Header | |
| * 3. Navbar Mini | |
| * 4. Hero Header | |
| * 5. Thank you | |
| * 6. Main Search Form | |
| * 7. Top Destination | |
| * 8. Hotel | |
| * 9. Breadcrumb | |
| * 10. Payment Page | |
| * 11. Detail Page | |
| * 12. Room Page | |
| * 13. Result Page | |
| * 14. Tab | |
| * 15. Travel Quotes | |
| * 16. Testimonial | |
| * 17. Hot Deal | |
| * 18. Faq | |
| * 19. Sidebar | |
| * 20. Featured | |
| * 21. Team | |
| * 22. Blog | |
| * 23. Newsletter | |
| * 24. Contact | |
| * 25. Footer | |
| * 26. Error Page | |
| * 27. Login/Signup | |
| * 28. Message for dashboard inbox | |
| * 29. Dashboard | |
| * 30. Miscellaneous | |
| -------------------------------------------------------------------*/ | |
| /** | |
| * Header | |
| */ | |
| .navbar-default { | |
| background: #FFF; | |
| } | |
| .navbar { | |
| border-bottom: 0; | |
| } | |
| .navbar.navbar-default { | |
| -webkit-transition: none; | |
| -moz-transition: none; | |
| -ms-transition: none; | |
| -o-transition: none; | |
| transition: none; | |
| } | |
| .navbar-brand { | |
| float: left; | |
| font-size: 24px; | |
| line-height: 32px; | |
| position: relative; | |
| padding-top: 13px; | |
| padding-bottom: 42px; | |
| color: #005294; | |
| letter-spacing: 2px; | |
| padding-right: 30px; | |
| font-weight: 500; | |
| font-family: 'Roboto'; | |
| } | |
| a.navbar-brand { | |
| transition: all 0.1s ease; | |
| -webkit-transition: all 0.1s ease; | |
| -moz-transition: all 0.1s ease; | |
| transition: color 0.5s ease; | |
| -webkit-transition: color 0.5s ease; | |
| -moz-transition: color 0.5s ease; | |
| } | |
| .navbar-default .navbar-brand { | |
| color: #FFF; | |
| transition: all 0.3s ease; | |
| -webkit-transition: all 0.3s ease; | |
| -moz-transition: all 0.3s ease; | |
| } | |
| .navbar-default .navbar-brand:hover { | |
| color: #D60D45; | |
| } | |
| .colored-navbar-brand .navbar-default .navbar-brand { | |
| background: #005294; | |
| padding-right: 30px; | |
| position: relative; | |
| } | |
| .colored-navbar-brand .navbar-default .navbar-brand:before { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| bottom: 0; | |
| left: -600px; | |
| width: 600px; | |
| background: #005294; | |
| } | |
| .colored-navbar-brand .navbar-default .navbar-brand:after { | |
| content: ""; | |
| position: absolute; | |
| bottom: -1px; | |
| left: -300%; | |
| right: 0; | |
| background: #005294; | |
| height: 1px; | |
| } | |
| .navbar-nav { | |
| border-left: 1px solid #F4F4F4; | |
| } | |
| .navbar-nav > li > a { | |
| line-height: 56px; | |
| font-weight: 400; | |
| font-size: 13px; | |
| padding-top: 0; | |
| padding-bottom: 0; | |
| border-right: 1px solid #F4F4F4; | |
| text-transform: uppercase; | |
| font-family: Roboto; | |
| letter-spacing: 1px; | |
| padding-left: 20px; | |
| padding-right: 20px; | |
| } | |
| /* Main Menu Dropdown */ | |
| .navbar-nav li { | |
| position: relative; | |
| } | |
| .navbar-nav li ul { | |
| z-index: 9999; | |
| padding: 0; | |
| margin: 0; | |
| position: absolute; | |
| top: 56px; | |
| left: 0; | |
| width: 190px; | |
| display: none; | |
| background-color: #FFF; | |
| border: 1px solid #EEE; | |
| border-top: 2px solid #34518C; | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| } | |
| .navbar-nav li ul li a { | |
| border-bottom: 1px solid #F2F2F2; | |
| display: block; | |
| padding: 8px 15px; | |
| font-size: 13px; | |
| font-weight: 400; | |
| color: #636363; | |
| } | |
| .navbar-nav li > ul > li:last-child > a, | |
| .navbar-nav li > ul > li > ul > li:last-child > a { | |
| border-bottom: 0; | |
| } | |
| .navbar-nav li ul li:hover a { | |
| padding-left: 20px; | |
| padding-right: 10px; | |
| text-decoration: none; | |
| } | |
| .navbar-nav li ul li ul { | |
| position: absolute; | |
| left: 188px; | |
| top: -2px; | |
| } | |
| .navbar-nav li ul li:hover ul li a { | |
| padding-left: 15px; | |
| padding-right: 15px; | |
| } | |
| .navbar-nav li ul li ul li:hover a { | |
| padding-left: 20px; | |
| padding-right: 10px; | |
| } | |
| .navbar-nav li ul li ul li ul li:hover a { | |
| padding-left: 20px; | |
| padding-right: 10px; | |
| } | |
| /* Mega Menu */ | |
| .navbar-nav > li.mega-menu { | |
| position: inherit!important; | |
| left: 0; | |
| } | |
| .navbar-nav > li.mega-menu ul { | |
| left: 0%; | |
| width: 100%; | |
| top: 56px; | |
| padding-top: 15px; | |
| padding-bottom: 15px; | |
| } | |
| .navbar-nav > li.mega-menu ul li a { | |
| padding: 8px 0; | |
| } | |
| .navbar-nav > li.mega-menu ul li a:hover { | |
| padding-left: 5px; | |
| } | |
| .navbar-nav > li.mega-menu:hover > a, | |
| .navbar-nav > li.mega-menu > a:hover, | |
| .navbar-nav > li.dropdown:hover > a, | |
| .navbar-nav > li.dropdown > a:hover, | |
| .navbar-nav > li.dropdown.active > a, | |
| .navbar-nav > li.dropdown.active > a:hover, | |
| .navbar-nav > li:hover > a, | |
| .navbar-nav > li.active > a { | |
| color: #D60D45 !important; | |
| text-decoration: underline; | |
| background: transparent !important; | |
| } | |
| .navbar-nav > li.mega-menu ul li .container { | |
| padding: 5px 30px 10px; | |
| } | |
| .navbar-nav > li.mega-menu ul li .row > div a:last-child { | |
| border-bottom: 0; | |
| padding-bottom: 0; | |
| } | |
| .navbar-arrow > ul > li .arrow-indicator { | |
| margin-left: 7px; | |
| color: #CCC; | |
| } | |
| .navbar-arrow ul ul > li .arrow-indicator { | |
| position: absolute; | |
| top: 50%; | |
| right: 15px; | |
| margin-top: -8px; | |
| font-size: 16px; | |
| color: #CCC; | |
| } | |
| .megamenu-container .arrow-indicator { | |
| display: none !important; | |
| } | |
| .navbar-nav li ul li a { | |
| border-bottom: 1px solid #F2F2F2; | |
| display: block; | |
| padding: 8px 15px; | |
| font-size: 13px; | |
| font-weight: 400; | |
| color: #636363; | |
| } | |
| @media only screen and (max-width: 991px) { | |
| .navbar { | |
| margin: 0; | |
| padding: 0; | |
| -webkit-transition: none; | |
| -moz-transition: none; | |
| -ms-transition: none; | |
| -o-transition: none; | |
| transition: none; | |
| } | |
| .navbar-brand { | |
| line-height: 30px; | |
| -webkit-transition: none; | |
| -moz-transition: none; | |
| -ms-transition: none; | |
| -o-transition: none; | |
| transition: none; | |
| } | |
| .navbar-arrow > ul > li .arrow-indicator, | |
| .navbar-arrow ul ul > li .arrow-indicator { | |
| display: none !important; | |
| } | |
| a.navbar-brand { | |
| transition: none; | |
| -webkit-transition: none; | |
| -moz-transition: none; | |
| } | |
| .navbar-nav li ul li a { | |
| padding: 8px 10px; | |
| } | |
| } | |
| @media (max-width: 767px) { | |
| .navbar-nav .open .dropdown-menu > li > a { | |
| line-height: 23px !important; | |
| } | |
| .navbar-brand, | |
| .colored-navbar-brand .navbar-default .navbar-brand { | |
| padding-right: 15px !important; | |
| font-size: 20px !important; | |
| } | |
| .colored-navbar-brand .navbar-header { | |
| float: left; | |
| } | |
| } | |
| @media (min-width: 768px) { | |
| .navbar-nav { | |
| margin: 0; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .navbar-brand, | |
| .colored-navbar-brand .navbar-default .navbar-brand { | |
| padding: 5px; | |
| padding-left: 15px; | |
| font-size: 16px; | |
| line-height: 30px; | |
| display: block; | |
| width: 100% !important; | |
| } | |
| .navbar-header, | |
| .colored-navbar-brand .navbar-header { | |
| float: none !important; | |
| width: 100% !important; | |
| } | |
| .colored-navbar-brand .navbar-default .navbar-brand:after { | |
| display: block; | |
| top: 0; | |
| bottom: 0; | |
| left: auto; | |
| right: -30px; | |
| width: 30px; | |
| height: auto; | |
| } | |
| } | |
| /** | |
| * Sticky Header | |
| */ | |
| .navbar-sticky { | |
| background-color: #FFF; | |
| border-color: #e6e6e6; | |
| box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.12); | |
| } | |
| .navbar-sticky.navbar-default { | |
| padding-top: 0; | |
| padding-bottom: 0; | |
| } | |
| .navbar-sticky .navbar-brand { | |
| padding-top: 10px; | |
| padding-bottom: 0; | |
| } | |
| .navbar-sticky .navbar-brand:hover, | |
| .navbar-sticky .navbar-brand:focus { | |
| color: #4D82B8; | |
| background-color: transparent | |
| } | |
| .navbar-sticky .navbar-text { | |
| color: #565656 | |
| } | |
| .navbar-sticky .navbar-nav > li > a { | |
| line-height: 50px; | |
| color: #565656 | |
| } | |
| .navbar-sticky .navbar-nav > li > a:hover, | |
| .navbar-sticky .navbar-nav > li > a:focus { | |
| color: #4D82B8; | |
| background-color: transparent | |
| } | |
| .navbar-sticky .navbar-nav > .active > a, | |
| .navbar-sticky .navbar-nav > .active > a:hover, | |
| .navbar-sticky .navbar-nav > .active > a:focus { | |
| color: #4D82B8; | |
| background-color: transparent | |
| } | |
| .navbar-sticky .navbar-nav > .disabled > a, | |
| .navbar-sticky .navbar-nav > .disabled > a:hover, | |
| .navbar-sticky .navbar-nav > .disabled > a:focus { | |
| color: #444444; | |
| background-color: transparent | |
| } | |
| .navbar-sticky .navbar-nav > li.navbar-separator span:after { | |
| background: #4D82B9; | |
| } | |
| .navbar-sticky .navbar-toggle { | |
| border-color: transparent | |
| } | |
| .navbar-sticky .navbar-toggle:hover, | |
| .navbar-sticky .navbar-toggle:focus { | |
| background-color: transparent | |
| } | |
| .navbar-sticky .navbar-toggle .icon-bar { | |
| background-color: #565656 | |
| } | |
| .navbar-sticky .navbar-collapse, | |
| .navbar-sticky .navbar-form { | |
| border-color: #ededed | |
| } | |
| .transparent-header .navbar-sticky .navbar-nav > li > a .border { | |
| border-color: #CCC; | |
| } | |
| .transparent-header .navbar-sticky .navbar-nav > li > a .border:hover { | |
| border-color: #4D82B9; | |
| } | |
| .navbar-sticky .navbar-mini > ul { | |
| line-height: 47px; | |
| } | |
| .navbar-sticky .navbar-nav > li > ul { | |
| top: 50px; | |
| } | |
| .navbar-sticky .navbar-nav > li.mega-menu ul { | |
| top: 50px; | |
| } | |
| .navbar-sticky #top-header { | |
| opacity: 0; | |
| } | |
| .colored-navbar-brand .navbar-sticky .navbar-brand { | |
| background: #005294; | |
| color: #FFF; | |
| } | |
| .colored-navbar-brand .navbar-sticky .navbar-brand:before { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| bottom: 0; | |
| left: -500px; | |
| width: 500px; | |
| background: #005294; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) { | |
| .navbar-fixed-top { | |
| position: relative !important; | |
| clear: both; | |
| } | |
| .navbar-sticky .navbar-nav > li > a { | |
| display: none; | |
| } | |
| } | |
| @media (max-width: 767px) { | |
| .navbar-sticky .navbar-brand { | |
| padding: 15px 15px; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .navbar-sticky .navbar-brand { | |
| padding: 5px; | |
| } | |
| } | |
| /** | |
| * Navbar Mini | |
| */ | |
| .navbar-mini {} | |
| .navbar-mini > ul { | |
| line-height: 55px; | |
| margin: 0; | |
| margin-top: -1px; | |
| padding: 0; | |
| -webkit-transition: all 0.2s ease-in-out 0s; | |
| -moz-transition: all 0.2s ease-in-out 0s; | |
| -ms-transition: all 0.2s ease-in-out 0s; | |
| -o-transition: all 0.2s ease-in-out 0s; | |
| transition: all 0.2s ease-in-out 0s; | |
| } | |
| .navbar-mini > ul > li { | |
| float: left; | |
| margin-left: 15px; | |
| } | |
| .navbar-mini > ul > li:last-child { | |
| border-right: none; | |
| } | |
| .navbar-mini > ul > li > a { | |
| color: #5D5D5D; | |
| font-size: 12px; | |
| } | |
| .navbar-mini > ul > li > a:hover { | |
| color: #D60D45; | |
| text-decoration: none; | |
| } | |
| .navbar-mini > ul > li > a.btn { | |
| font-size: 10px; | |
| } | |
| .navbar-mini .dropdown-menu { | |
| min-width: 80px; | |
| } | |
| .navbar-mini .dropdown-menu > li > a { | |
| padding: 5px 12px; | |
| font-size: 12px; | |
| } | |
| .navbar-mini .dropdown-menu > li:first-child > a { | |
| padding-top: 5px; | |
| } | |
| .navbar-mini .dropdown-menu > li:last-child > a { | |
| padding-bottom: 5px; | |
| } | |
| .navbar-mini .dropdown-menu > li > a:hover, | |
| .navbar-mini .dropdown-menu > li:hover > a, | |
| .navbar-mini .dropdown-menu > li > a:focus { | |
| color: #BA0600 !important; | |
| background: none !important; | |
| } | |
| .navbar-mini .dropdown-menu { | |
| padding: 10px !important; | |
| } | |
| .navbar-mini > ul { | |
| border-left: 1px solid rgba(255, 255, 255, 0.4); | |
| } | |
| .navbar-mini > ul > li { | |
| border-right: 1px solid rgba(255, 255, 255, 0.4); | |
| } | |
| .navbar-mini > ul > li:last-child { | |
| border-right: none; | |
| } | |
| .navbar-mini .dropdown-menu { | |
| min-width: 80px; | |
| } | |
| .navbar-mini .dropdown-menu > li > a { | |
| padding: 5px 12px; | |
| font-size: 11px; | |
| } | |
| .navbar-mini .dropdown-menu > li:first-child > a { | |
| padding-top: 8px; | |
| } | |
| .navbar-mini .dropdown-menu > li:last-child > a { | |
| padding-bottom: 8px; | |
| } | |
| .navbar-mini .dropdown-menu > li > a:hover, | |
| .navbar-mini .dropdown-menu > li:hover > a, | |
| .navbar-mini .dropdown-menu > li > a:focus { | |
| color: #D60D45 !important; | |
| background: none !important; | |
| } | |
| .navbar-mini .dropdown-menu { | |
| padding: 10px !important; | |
| } | |
| .btn-loged-in { padding-top: 1px; padding-bottom: 1px; padding-left: 1px; padding-right: 3px; letter-spacing: 1.5px; text-transform: capitalize; font-weight: 700; } | |
| .btn-loged-in img { width: 28px; border-radius: 50%; display: inline-block; vertical-align: middle; border: 2px solid #FFF; } | |
| .has-msg { position: relative; } | |
| .has-msg .count { position: absolute; top: 10px; right: -8px; display:block; width: 17px; height: 17px; background: red; color: #FFF; text-align: center; line-height: 16px; font-size: 9px; font-weight: 700; border-radius: 20px; border: 1px solid #FFF; } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) { | |
| .navbar-mini { | |
| margin-right: 35px; | |
| margin-top: -1px; | |
| } | |
| .navbar-mini > ul { | |
| -webkit-transition: none; | |
| -moz-transition: none; | |
| -ms-transition: none; | |
| -o-transition: none; | |
| transition: none; | |
| } | |
| } | |
| @media (max-width: 767px) {} | |
| @media (max-width: 479px) { | |
| .navbar-mini {} | |
| .navbar-mini > ul { | |
| line-height: 1; | |
| padding: 10px 0; | |
| text-align: center; | |
| margin: 0; | |
| } | |
| .navbar-mini > ul li a, | |
| .navbar-mini > ul li a.btn.btn-primary.btn-inverse { | |
| padding: 0; | |
| border: none; | |
| } | |
| .navbar-mini > ul > li { | |
| float: none; | |
| margin: 0 5px; | |
| display: inline-block; | |
| } | |
| .navbar-sticky .navbar-mini > ul { | |
| line-height: 1; | |
| } | |
| } | |
| /** | |
| * Hero Header | |
| */ | |
| .hero { | |
| position: relative; | |
| padding: 80px 0; | |
| background-position: center center; | |
| background-repeat: no-repeat; | |
| background-size: cover; | |
| } | |
| .hero::before { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-image: -webkit-linear-gradient(top, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-image: -o-linear-gradient(top, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-image: linear-gradient(to bottom, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-repeat: repeat-x; | |
| filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#cc6c5b7b', endColorstr='#cc355c7d', GradientType=0); | |
| content: "" | |
| } | |
| .hero.stellar-parallax-bg { | |
| background-position: bottom center; | |
| } | |
| .hero-texting { | |
| padding: 0 40px; | |
| } | |
| .hero h1 { | |
| margin-top: 0; | |
| font-size: 56px; | |
| color: #FFF; | |
| text-transform: uppercase; | |
| margin: 0 0 10px; | |
| text-align: center; | |
| letter-spacing: 2px; | |
| font-weight: 300; | |
| } | |
| .hero p { | |
| color: #FFF; | |
| font-size: 24px; | |
| line-height: 30px; | |
| font-weight: 300; | |
| font-family: 'Lato', sans-serif; | |
| text-align: center; | |
| margin-bottom: 15px; | |
| } | |
| .hero.width-sign-up-form { | |
| padding: 120px 0 50px; | |
| } | |
| .hero.width-sign-up-form label { | |
| color: #FFF; | |
| font-size: 14px; | |
| font-weight: 400; | |
| margin: 0 0 5px; | |
| margin-left: 15px; | |
| } | |
| .hero.width-sign-up-form .form-control { | |
| border-color: #FFF; | |
| } | |
| .hero.width-sign-up-form p.p-title { | |
| margin-top: -20px; | |
| } | |
| .post-hero { | |
| background: #FFF; | |
| padding-top: 76px; | |
| padding-bottom: 50px; | |
| } | |
| .slick-hero-slider .image-bg { | |
| background-position: center center; | |
| background-size: cover; | |
| position: relative; | |
| } | |
| .slick-hero-slider .image-bg::before { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-image: -webkit-linear-gradient(top, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-image: -o-linear-gradient(top, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-image: linear-gradient(to bottom, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-repeat: repeat-x; | |
| filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#cc6c5b7b', endColorstr='#cc355c7d', GradientType=0); | |
| content: "" | |
| } | |
| .slick-hero-slider-caption { | |
| text-align: center; | |
| padding-top: 150px; | |
| padding-bottom: 150px; | |
| color: rgba(255,255,255,0.8); | |
| } | |
| .slick-hero-slider-caption h2 { | |
| margin-top: 0; | |
| font-size: 50px; | |
| line-height: 1.2; | |
| color: #FFF; | |
| text-transform: uppercase; | |
| margin: 0 0 20px; | |
| text-align: center; | |
| letter-spacing: 2px; | |
| font-weight: 300; | |
| } | |
| .slick-hero-slider-caption p { | |
| color: #FFF; | |
| font-size: 24px; | |
| line-height: 30px; | |
| font-weight: 300; | |
| font-family: 'Lato', sans-serif; | |
| text-align: center; | |
| margin-bottom: 20px; | |
| } | |
| .slick-hero-slider-caption a span { | |
| text-transform: uppercase; | |
| border: 1px solid rgba(255,255,255,0.8); | |
| color: #FFF; | |
| display: inline-block; | |
| padding: 7px 25px; | |
| display: inline-block; | |
| margin-top: 10px; | |
| transition: all 0.3s ease; | |
| -webkit-transition: all 0.3s ease; | |
| -moz-transition: all 0.3s ease; | |
| } | |
| .slick-hero-slider-caption a span.bg-primary { | |
| border: #005294; | |
| padding: 8px 25px; | |
| } | |
| .slick-hero-slider-caption a:hover span { | |
| background: #004680 !important; | |
| border-color: #004680 !important; | |
| text-decoration: none; | |
| } | |
| .slick-hero-slider.slick-inner-dot .slick-dots { | |
| bottom: 0; | |
| } | |
| .alt-dot-position.slick-hero-slider.slick-inner-dot .slick-dots { | |
| bottom: 205px; | |
| } | |
| .alt-dot-position.slick-hero-slider.slick-inner-dot .slick-hero-slider-caption { | |
| padding-top: 130px; | |
| padding-bottom: 275px; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| .hero { | |
| background-size: auto; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) { | |
| .hero h1 { | |
| font-size: 50px; | |
| line-height: 1.4; | |
| } | |
| .hero p { | |
| font-size: 22px; | |
| line-height: 1.4; | |
| } | |
| .alt-dot-position.slick-hero-slider.slick-inner-dot .slick-hero-slider-caption { | |
| padding-bottom: 325px; | |
| } | |
| .alt-dot-position.slick-hero-slider.slick-inner-dot .slick-dots { | |
| bottom: 255px; | |
| } | |
| } | |
| @media only screen and (max-width: 767px) { | |
| .hero { | |
| padding: 40px 0; | |
| } | |
| .hero-texting { | |
| padding: 15px; | |
| } | |
| .hero h1, .slick-hero-slider-caption h2 { | |
| font-size: 35px; | |
| margin-bottom: 20px; | |
| line-height: 1.2; | |
| text-align: left; | |
| } | |
| .hero p, .slick-hero-slider-caption p { | |
| font-size: 20px; | |
| line-height: 1.2; | |
| text-align: left; | |
| } | |
| .slick-hero-slider-caption { | |
| padding: 50px 30px 70px; | |
| } | |
| .slick-hero-slider-caption h2, .slick-hero-slider-caption p { | |
| text-align: center; | |
| } | |
| .slick-hero-slider .slick-prev { | |
| left: 10px; | |
| } | |
| .slick-hero-slider .slick-next { | |
| right: 10px; | |
| } | |
| .alt-dot-position.slick-hero-slider.slick-inner-dot .slick-hero-slider-caption { | |
| padding: 50px 30px 70px; | |
| } | |
| .alt-dot-position.slick-hero-slider.slick-inner-dot .slick-dots { | |
| bottom: 0; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .hero h1, .slick-hero-slider-caption h2 { | |
| font-size: 30px; | |
| line-height: 1.2; | |
| } | |
| .hero p, .slick-hero-slider-caption p { | |
| font-size: 16px; | |
| line-height: 1.2; | |
| } | |
| } | |
| /** | |
| * Thank you | |
| */ | |
| .thank-you { | |
| position: relative; | |
| padding: 80px 0; | |
| background-position: center center; | |
| background-repeat: no-repeat; | |
| background-size: cover; | |
| text-align: center; | |
| } | |
| .thank-you::before { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-image: -webkit-linear-gradient(top, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-image: -o-linear-gradient(top, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-image: linear-gradient(to bottom, rgba(108, 91, 123, 0.6) 0%, rgba(53, 92, 125, 0.6) 100%); | |
| background-repeat: repeat-x; | |
| filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#cc6c5b7b', endColorstr='#cc355c7d', GradientType=0); | |
| content: "" | |
| } | |
| .thank-you.stellar-parallax-bg { | |
| background-position: bottom center; | |
| } | |
| .thank-you .inner { | |
| background: rgba(0, 0, 0, 0.4); | |
| padding: 40px; | |
| } | |
| .thank-you h1 { | |
| margin-top: 0; | |
| font-size: 38px; | |
| color: #FFF; | |
| font-weight: 600; | |
| line-height: 48px; | |
| text-transform: uppercase; | |
| margin: 0 0 10px; | |
| text-align: center; | |
| } | |
| .thank-you p { | |
| color: #FFF; | |
| font-size: 16px; | |
| line-height: 24px; | |
| font-weight: 300; | |
| font-family: 'Lato', sans-serif; | |
| text-align: center; | |
| margin: 25px 0 30px; | |
| } | |
| .thank-you .btn { | |
| padding-left: 45px; | |
| padding-right: 85px; | |
| } | |
| .thank-you .btn .icon { | |
| font-size: 24px; | |
| padding-top: 10px; | |
| } | |
| /** | |
| * Main Search | |
| */ | |
| .main-search-wrapper { | |
| width: 100%; | |
| z-index: 9; | |
| } | |
| .main-search-wrapper .inner { | |
| background: rgba(0, 0, 0, 0.4); | |
| padding: 30px; | |
| margin: 0 auto; | |
| margin-top: 30px; | |
| width: 73.5%; | |
| } | |
| .main-search-wrapper .form-control { | |
| border-color: #FFF; | |
| } | |
| .main-search-wrapper label { | |
| text-transform: uppercase; | |
| color: #FFF; | |
| font-weight: 400; | |
| font-family: 'Lato', sans-serif; | |
| margin: 0 0 8px; | |
| text-align: left !important; | |
| } | |
| .main-search-wrapper .fancy-select .form-control.open { | |
| border-color: #FFF; | |
| } | |
| .main-search-wrapper-2 { | |
| padding-top: 20px; | |
| padding-bottom: 5px; | |
| } | |
| .main-search-wrapper-2 .inner { | |
| position: relative; | |
| padding-right: 180px; | |
| } | |
| .main-search-wrapper-2 .form-control { | |
| border-color: #FFF; | |
| } | |
| .main-search-wrapper-2 .btn-absolute { | |
| position: absolute; | |
| bottom: 21px; | |
| right: 0; | |
| width: 150px; | |
| } | |
| .main-search-wrapper-2 .btn-absolute .btn { | |
| height: 34px; | |
| padding-top: 7px; | |
| } | |
| .main-search-wrapper-2.absolute-in-hero-slider { | |
| margin-top: -125px; | |
| background: rgba(0,0,0,0.4); | |
| z-index: 999; | |
| position: relative; | |
| padding-top: 30px; | |
| padding-bottom: 15px; | |
| } | |
| .main-search-wrapper-2.absolute-in-hero-slider label { | |
| color: #FFF; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| .main-search-wrapper .inner { | |
| width: 80%; | |
| } | |
| .main-search-wrapper-2 .inner { | |
| padding-right: 130px; | |
| } | |
| .main-search-wrapper-2 .btn-absolute { | |
| width: 100px; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) { | |
| .main-search-wrapper .inner { | |
| width: 93%; | |
| } | |
| .main-search-wrapper-2 .inner { | |
| padding-right: 0; | |
| } | |
| .main-search-wrapper-2.absolute-in-hero-slider { | |
| padding-top: 20px; | |
| padding-bottom: 5px; | |
| margin-top: -185px; | |
| } | |
| } | |
| @media only screen and (max-width: 767px) { | |
| .main-search-wrapper .inner { | |
| margin-top: 0; | |
| } | |
| .main-search-wrapper-2 .inner { | |
| padding-bottom: 70px;; | |
| } | |
| .main-search-wrapper-2 .btn-absolute { | |
| width: 150px; | |
| right: auto; | |
| left: 50%; | |
| margin-left: -75px; | |
| } | |
| .main-search-wrapper-2.absolute-in-hero-slider { | |
| margin-top:0; | |
| background: rgba(0,0,0,0.6); | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .main-search-wrapper .inner { | |
| padding: 20px; | |
| } | |
| .main-search-wrapper .form-lg label { | |
| font-size: 15px; | |
| } | |
| .main-search-wrapper label { | |
| font-size: 13px; | |
| } | |
| .main-search-wrapper .form-control { | |
| margin: 0 0 0; | |
| } | |
| } | |
| /** | |
| * Top Destination | |
| */ | |
| .top-destination-item { | |
| background: #FFF; | |
| border: 1px solid #E6E6E6; | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| border-bottom: 2px solid #DEDEDE; | |
| transition: all .35s ease-in-out; | |
| -webkit-transition: all .35s ease-in-out; | |
| margin: 0 0 20px; | |
| padding-top: 1px; | |
| } | |
| .top-destination-item:hover { | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| border-bottom: 2px solid #D60D45; | |
| } | |
| .top-destination-item a { | |
| color: #777; | |
| display: block; | |
| } | |
| .top-destination-item .image { | |
| overflow: hidden; | |
| margin: 4px 5px 0; | |
| } | |
| .top-destination-item .image img { | |
| transition: all .3s ease-in-out; | |
| } | |
| .top-destination-item:hover .image img { | |
| transform: scale(1.15) rotate(5deg); | |
| -ms-transform: scale(1.15) rotate(5deg); | |
| -ms-transform: scale(1.15) rotate(5deg); | |
| } | |
| .top-destination-item .content { | |
| padding: 17px 5px 12px; | |
| } | |
| .top-destination-item h4 { | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| line-height: 1; | |
| margin: 0 0 2px; | |
| font-weight: 500; | |
| } | |
| .top-destination-item .price { | |
| text-align: right; | |
| padding-top: 1px; | |
| } | |
| .top-destination-item .price p { | |
| margin: 0; | |
| line-height: 14px; | |
| } | |
| .top-destination-item .price p:not(.icon) { | |
| margin-bottom: 6px; | |
| } | |
| .destination-list-wrapper { | |
| margin-left: -15px; | |
| margin-right: -15px; | |
| margin-top: -5px; | |
| margin-bottom: -10px; | |
| } | |
| ul.destination-list li { | |
| float: left; | |
| width: 20%; | |
| padding-top: 5px; | |
| padding-left: 15px; | |
| padding-right: 15px; | |
| } | |
| ul.destination-list li a { | |
| display: block; | |
| line-height: 1.2; | |
| color: #5d5d5d; | |
| margin: 0 0 10px; | |
| } | |
| ul.destination-list li a:hover { | |
| color: #C70C41; | |
| padding-left: 5px; | |
| } | |
| ul.destination-list li.more-link { | |
| padding-top: 1px; | |
| } | |
| ul.destination-list li.more-link a { | |
| font-size: 12px; | |
| background: #005294; | |
| color: #FFF; | |
| line-height: 1; | |
| display: inline-block; | |
| padding: 3px 7px; | |
| margin-top: -3px; | |
| } | |
| ul.destination-list li.more-link a:hover { | |
| background: #004680; | |
| padding: 3px 10px; | |
| } | |
| .navbar-nav ul.destination-list { | |
| display: block !important; | |
| position: relative !important; | |
| left: 0 !important; | |
| top: 0 !important; | |
| border: 0 !important; | |
| box-shadow: none; | |
| margin: 20px 0 5px !important; | |
| padding: 0 !important; | |
| } | |
| .navbar-nav ul.destination-list li a { | |
| display: block !important; | |
| line-height: 1.2 !important; | |
| padding: 0 0 10px !important; | |
| margin: 0 0 8px !important; | |
| } | |
| .navbar-nav ul.destination-list li a:hover { | |
| padding-left: 5px !important; | |
| } | |
| .navbar-nav ul.destination-list li.more-link { | |
| padding-top: 2px !important; | |
| } | |
| .navbar-nav ul.destination-list li.more-link a { | |
| padding: 3px 7px !important; | |
| display: inline-block !important; | |
| } | |
| .navbar-nav ul.destination-list li.more-link a:hover { | |
| padding: 3px 10px !important; | |
| } | |
| .destination-grid-sm-item{background:#FFF;border:1px solid #E6E6E6;-webkit-box-shadow:0 0 12px -3px rgba(0,0,0,0.15);-moz-box-shadow:0 0 12px -3px rgba(0,0,0,0.15);box-shadow:0 0 12px -3px rgba(0,0,0,0.15);border-bottom:2px solid #DEDEDE;transition:all .35s ease-in-out;-webkit-transition:all .35s ease-in-out; padding-top:1px;display: block; } | |
| .destination-grid-sm-item:hover{-webkit-box-shadow:0 0 12px -3px rgba(0,0,0,0.4);-moz-box-shadow:0 0 12px -3px rgba(0,0,0,0.4);box-shadow:0 0 12px -3px rgba(0,0,0,0.4);border-bottom:2px solid #D60D45} | |
| .destination-grid-sm-item .image{overflow:hidden;margin:4px 5px 0} | |
| .destination-grid-sm-item .image img{transition:all .3s ease-in-out} | |
| .destination-grid-sm-item:hover .image img{transform:scale(1.15) rotate(5deg);-ms-transform:scale(1.15) rotate(5deg);-ms-transform:scale(1.15) rotate(5deg)} | |
| .destination-grid-sm-item .content{padding:14px 5px 8px;text-align: center;} | |
| .destination-grid-sm-item h5{font-size:14px;text-transform:uppercase;line-height:1;margin:0 0 2px;font-weight:500; letter-spacing: 0.3px; } | |
| .destination-grid-sm-item p { font-size: 13px; letter-spacing: 0.5px; } | |
| .destination-list-sm-wrapper.mmb-10 { margin-bottom: -10px; } | |
| .destination-list-sm-item { position: relative; background:#FFF;border:1px solid #E6E6E6;-webkit-box-shadow:0 0 12px -3px rgba(0,0,0,0.15);-moz-box-shadow:0 0 12px -3px rgba(0,0,0,0.15);box-shadow:0 0 12px -3px rgba(0,0,0,0.15);border-bottom:2px solid #DEDEDE;transition:all .35s ease-in-out;-webkit-transition:all .35s ease-in-out; padding-top:1px; } | |
| .destination-list-sm-item:hover{-webkit-box-shadow:0 0 12px -3px rgba(0,0,0,0.4);-moz-box-shadow:0 0 12px -3px rgba(0,0,0,0.4);box-shadow:0 0 12px -3px rgba(0,0,0,0.4);border-bottom:2px solid #D60D45} | |
| .destination-list-sm-item a { position: relative; display: block; padding: 5px; line-height: 1; } | |
| .destination-list-sm-item .image-bg { width: 50px; height: 50px; background-position: center center; background-repeat: no-repeat; background-size: cover; display: inline-block; vertical-align: middle; margin-right: 10px; } | |
| .destination-list-sm-item .content { display: inline-block; vertical-align: middle; } | |
| .destination-list-sm-item h5{font-size:14px;text-transform:uppercase;line-height:1;margin:2px 0 5px;font-weight:500; letter-spacing: 0.3px; } | |
| .destination-list-sm-item p { font-size: 13px; letter-spacing: 0.5px; } | |
| /** | |
| * Hotel | |
| */ | |
| .top-hotel-grid-wrapper > .row > div { | |
| margin: 0 0 20px; | |
| } | |
| .top-hotel-grid-wrapper > .row.gap-15 > div { | |
| margin: 0 0 15px; | |
| } | |
| .top-hotel-grid-wrapper > .row.gap-10 > div { | |
| margin: 0 0 10px; | |
| } | |
| .hotel-item-grid { | |
| background: #FFF; | |
| border: 1px solid #E6E6E6; | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| border-bottom: 2px solid #DEDEDE; | |
| transition: all .35s ease-in-out; | |
| -webkit-transition: all .35s ease-in-out; | |
| height: 100%; | |
| min-height: 330px; | |
| position: relative; | |
| padding-top: 1px; | |
| padding-bottom: 12px; | |
| } | |
| .bg-white .hotel-item-grid { | |
| background: #F2F2F2; | |
| } | |
| .hotel-item-grid:hover { | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| border-bottom: 2px solid #D60D45; | |
| } | |
| .hotel-item-grid .hotel-tag { | |
| position: absolute; | |
| top: 15px; | |
| left: 15px; | |
| font-size: 13px; | |
| line-height: 13px; | |
| padding: 5px 10px; | |
| z-index: 29; | |
| } | |
| .hotel-item-grid a { | |
| color: #636363; | |
| display: block; | |
| } | |
| .hotel-item-grid:hover a, | |
| .hotel-item-grid a:hover { | |
| text-decoration: none; | |
| } | |
| .hotel-item-grid .image { | |
| overflow: hidden; | |
| margin: 4px 5px 0; | |
| } | |
| .hotel-item-grid .image img { | |
| transition: all .3s ease-in-out; | |
| } | |
| .hotel-item-grid:hover .image img { | |
| transform: scale(1.15) rotate(5deg); | |
| -ms-transform: scale(1.15) rotate(5deg); | |
| -ms-transform: scale(1.15) rotate(5deg); | |
| } | |
| .hotel-item-grid .heading { | |
| padding: 17px 15px 12px; | |
| margin: 0 0 55px; | |
| } | |
| .hotel-item-grid h4 { | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| line-height: 1; | |
| margin: 4px 0 2px; | |
| font-weight: 500; | |
| } | |
| .hotel-item-grid .heading p { margin-bottom: 5px; } | |
| .hotel-item-grid .content { | |
| padding: 15px 15px 17px; | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| bottom: -2px; | |
| border-top: 1px solid #DEDEDE; | |
| } | |
| .hotel-item-grid .content:after { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| bottom: 2px; | |
| right: 50%; | |
| width: 1px; | |
| background: #DEDEDE; | |
| } | |
| .hotel-item-grid .content p.price { | |
| line-height: 1; | |
| text-align: right; | |
| } | |
| .hotel-item-grid .content p.price .block { | |
| margin: 0; | |
| } | |
| .hotel-item-grid .content p.price .number { | |
| font-weight: 500; | |
| font-size: 21px; | |
| color: #005294; | |
| font-family: Roboto; | |
| } | |
| .hotel-item-grid.alt-no-rating .heading { margin: 0 0 20px; } | |
| .hotel-item-grid.alt-no-rating .content p.price { text-align: left !important; position: relative; padding-right: 20px; } | |
| .hotel-item-grid.alt-no-rating .content p.price:after { font-family: 'Rivolicons-Free'; content: "\e610"; position: absolute; top: 6px; right: -2px; width: 12px;display: block; padding-left: 4px; } | |
| .hotel-item-grid.alt-no-rating .content p.price span.block.mb-5 { display: inline-block !important; margin: 0 !important; } | |
| .hotel-item-grid.alt-no-rating .content:after { display: none; } | |
| .hotel-item-grid .raty-wrapper { | |
| margin-top: 3px; | |
| } | |
| .min-height-alt .hotel-item-grid { | |
| min-height: 315px; | |
| } | |
| .infobox-hotel-item { | |
| width: 260px; | |
| background: #FFF; | |
| background: rgba(255, 255, 255, 0.9); | |
| position: relative; | |
| z-index: 9999999; | |
| font-size: 13px; | |
| } | |
| .infobox-hotel-item a { | |
| display: block; | |
| color: #636363; | |
| } | |
| .infobox-hotel-item .image img { | |
| width: 100%; | |
| display: block; | |
| } | |
| .infobox-hotel-item .tripadvisor-module div { | |
| font-size: 13px; | |
| font-weight: 400; | |
| } | |
| .infobox-hotel-item .tripadvisor-rate i { | |
| margin-right: 3px; | |
| } | |
| .infobox-hotel-item:after { | |
| left: 50%; | |
| bottom: -20px; | |
| margin-left: -10px; | |
| border: solid transparent; | |
| content: " "; | |
| height: 0; | |
| width: 0; | |
| position: absolute; | |
| pointer-events: none; | |
| border-color: rgba(0, 0, 0, 0); | |
| border-top-color: #C7C7C7; | |
| border-width: 10px; | |
| transition: all 0.3s ease; | |
| -webkit-transition: all 0.3s ease; | |
| -moz-transition: all 0.3s ease; | |
| } | |
| .infobox-hotel-item:hover:after { | |
| border-top-color: #D60D45; | |
| } | |
| .infobox-hotel-item.hotel-item-grid .content { | |
| bottom: -2px; | |
| } | |
| .hotel-item-list { | |
| position: relative; | |
| min-height: 223px; | |
| margin: 0 0 20px; | |
| background: #FFF; | |
| border: 1px solid #E6E6E6; | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| border-bottom: 2px solid #DEDEDE; | |
| transition: all .35s ease-in-out; | |
| -webkit-transition: all .35s ease-in-out; | |
| } | |
| .hotel-item-list:hover { | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| border-bottom: 2px solid #D60D45; | |
| } | |
| .hotel-item-list a { | |
| display: block; | |
| } | |
| .hotel-item-list .image { | |
| width: 250px; | |
| position: absolute; | |
| top: 5px; | |
| bottom: 5px; | |
| left: 5px; | |
| background-size: cover; | |
| background-position: center center; | |
| } | |
| .hotel-item-list .content { | |
| margin-left: 255px; | |
| margin-right: 125px; | |
| position: relative; | |
| padding: 20px 20px 0; | |
| } | |
| .hotel-item-list .heading { | |
| margin: 0 0 12px; | |
| } | |
| .hotel-item-list .heading h4 { | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| line-height: 16px; | |
| margin: 0 0 2px; | |
| font-weight: 500; | |
| } | |
| .hotel-item-list .short-info { | |
| line-height: 1.5; | |
| margin-bottom: 50px; | |
| } | |
| .hotel-item-list .absolute-bottom { | |
| position: absolute; | |
| bottom: 0; | |
| right: 125px; | |
| left: 276px; | |
| border-top: 1px solid #E8E8E8; | |
| padding: 15px 15px 17px; | |
| padding-left: 0; | |
| line-height: 1; | |
| } | |
| .hotel-item-list .absolute-right { | |
| position: absolute; | |
| top: 0; | |
| bottom: 0; | |
| right: 0; | |
| width: 125px; | |
| border-left: 1px solid #E8E8E8; | |
| text-align: right; | |
| line-height: 1.3; | |
| } | |
| .hotel-item-list .meta-option { | |
| position: absolute; | |
| top: 0; | |
| right: 20px; | |
| font-size: 13px; | |
| } | |
| .hotel-item-list .absolute-right .star-rate { | |
| float: right; | |
| } | |
| .hotel-item-list .price-wrapper { | |
| position: absolute; | |
| bottom: 15px; | |
| right: 20px; | |
| } | |
| .hotel-item-list .price .number { | |
| font-weight: 500; | |
| font-size: 26px; | |
| color: #005294; | |
| font-family: Roboto; | |
| } | |
| .hotel-item-list .star-rate { | |
| float: left; | |
| margin-top: 5px; | |
| } | |
| .hotel-item-list .btn-sm { | |
| padding-left: 10px; | |
| padding-right: 10px; | |
| } | |
| .hotel-item-list-2 { | |
| position: relative; | |
| background: #FFF; | |
| border: 1px solid #E6E6E6; | |
| -webkit-box-shadow: 0 0 12px -3px rgba(0, 0, 0, 0.15); | |
| -moz-box-shadow: 0 0 12px -3px rgba(0, 0, 0, 0.15); | |
| box-shadow: 0 0 12px -3px rgba(0, 0, 0, 0.15); | |
| border-bottom: 2px solid #DEDEDE; | |
| transition: all .35s ease-in-out; | |
| -webkit-transition: all .35s ease-in-out; | |
| padding: 5px; | |
| margin-bottom: 20px | |
| } | |
| .hotel-item-list-2:last-child { | |
| margin-bottom: 0 | |
| } | |
| .hotel-item-list-2:hover { | |
| -webkit-box-shadow: 0 0 12px -3px rgba(0, 0, 0, 0.4); | |
| -moz-box-shadow: 0 0 12px -3px rgba(0, 0, 0, 0.4); | |
| box-shadow: 0 0 12px -3px rgba(0, 0, 0, 0.4); | |
| border-bottom: 2px solid #D60D45 | |
| } | |
| .hotel-item-list-2 .content { | |
| margin-left: 250px; | |
| margin-right: 125px; | |
| position: relative; | |
| padding: 10px 15px 0; | |
| padding-right: 5px; | |
| line-height: 1.2; | |
| margin-bottom: 50px | |
| } | |
| .hotel-item-list-2 .heading { | |
| margin: 0 0 12px | |
| } | |
| .hotel-item-list-2 .heading h4 { | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| line-height: 16px; | |
| margin: 0 0 5px; | |
| font-weight: 500 | |
| } | |
| .hotel-item-list-2 .heading p { | |
| line-height: 1.2 | |
| } | |
| .hotel-item-list-2 .heading p .star-rate { | |
| float: left; | |
| margin-top: 1px | |
| } | |
| .hotel-item-list-2 .image { | |
| float: left; | |
| width: 250px | |
| } | |
| .hotel-item-list-2 .content .short-info { | |
| position: relative; | |
| padding-left: 60px; | |
| line-height: 1.5 | |
| } | |
| .hotel-item-list-2 .content .short-info .absolute { | |
| font-weight: 700 | |
| } | |
| .hotel-item-list-2 .total-price { | |
| margin-top: 10px; | |
| position: absolute; | |
| left: 250px; | |
| bottom: 10px; | |
| padding-left: 20px | |
| } | |
| .hotel-item-list-2 .total-price .price { | |
| font-weight: 500; | |
| font-size: 26px; | |
| color: #005294; | |
| font-family: Roboto | |
| } | |
| .hotel-item-list-2 .absolute-right-top { | |
| position: absolute; | |
| top: 0; | |
| bottom: 0; | |
| right: 0; | |
| width: 210px; | |
| padding: 10px; | |
| border-left: 1px solid #E8E8E8 | |
| } | |
| .hotel-item-list-2 .absolute-right-bottom { | |
| position: absolute; | |
| bottom: 0; | |
| right: 0; | |
| width: 210px; | |
| padding: 10px; | |
| text-align: right | |
| } | |
| .hotel-item-list-2 .absolute-right-bottom p { | |
| line-height: 1.2; | |
| margin: 0 0 9px | |
| } | |
| ul.check-in-out { | |
| margin-left: -5px; | |
| margin-right: -5px | |
| } | |
| ul.check-in-out li { | |
| width: 50%; | |
| float: left; | |
| text-align: center; | |
| line-height: 1; | |
| padding-left: 5px; | |
| padding-right: 5px; | |
| margin-bottom: 5px | |
| } | |
| ul.check-in-out li span { | |
| display: block; | |
| margin: 1px 0 | |
| } | |
| .check-in-out-item { | |
| background: #EBEBEB; | |
| font-size: 12px; | |
| font-weight: 700; | |
| padding: 14px 8px 7px | |
| } | |
| .check-in-out-item .date { | |
| font-size: 26px; | |
| font-weight: 700; | |
| color: #005294; | |
| margin: 4px 0 | |
| } | |
| .check-in-out-item .day { | |
| font-weight: 400; | |
| letter-spacing: 1.5px; | |
| font-size: 13px; | |
| color: #333 | |
| } | |
| .check-in-out-item .month-year { | |
| color: #999; | |
| font-style: italic; | |
| font-weight: 400 | |
| } | |
| a.tripadvisor-module { | |
| line-height: 16px; | |
| color: #787878; | |
| text-decoration: none; | |
| } | |
| a.tripadvisor-module:hover { | |
| color: #DB542E; | |
| } | |
| .tripadvisor-module { | |
| line-height: 16px; | |
| } | |
| .tripadvisor-module .texting { | |
| font-size: 16px; | |
| font-weight: 400; | |
| margin-bottom: 2px; | |
| margin-top: 2px; | |
| font-family: Roboto; | |
| color: #D60D45; | |
| } | |
| .tripadvisor-rate { | |
| line-height: 16px; | |
| } | |
| .tripadvisor-rate i { | |
| color: #B2B2B2; | |
| font-size: 13px; | |
| } | |
| .tripadvisor-rate i.rated { | |
| color: #469C3B; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| .hotel-item-list .image { | |
| bottom: auto; | |
| height: 120px; | |
| width: 150px; | |
| } | |
| .hotel-item-list .content { | |
| margin-left: 158px; | |
| margin-bottom: 75px; | |
| padding: 10px 10px 0; | |
| } | |
| .hotel-item-list .absolute-bottom { | |
| left: 175px; | |
| } | |
| .hotel-item-list-2 { | |
| min-height: 180px; | |
| } | |
| .hotel-item-list-2 .content { | |
| margin-left: 100px; | |
| padding-top: 5px; | |
| } | |
| .hotel-item-list-2 .image { | |
| width: 100px; | |
| margin-top: 5px; | |
| margin-left: 5px; | |
| } | |
| .hotel-item-list-2 .total-price { | |
| left: 100px; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) { | |
| .hotel-item-list-2 { | |
| min-height: none; | |
| } | |
| .hotel-item-list-2 .image { | |
| width: 130px; | |
| margin-top: 5px; | |
| margin-left: 5px; | |
| } | |
| .hotel-item-list-2 .content { | |
| margin-left: 130px; | |
| margin-bottom: 5px; | |
| margin-right: 10px; | |
| } | |
| .hotel-item-list-2 .total-price { | |
| position: relative; | |
| padding-left: 45px; | |
| padding-top: 15px; | |
| } | |
| .hotel-item-list-2 .absolute-right-top { | |
| position: relative; | |
| bottom: auto; | |
| width: auto; | |
| margin: 5px 0 0; | |
| margin-left: 145px; | |
| padding: 0; | |
| padding-right: 10px; | |
| border-left: 0 | |
| } | |
| .hotel-item-list-2 .absolute-right-bottom { | |
| position: relative; | |
| width: auto; | |
| margin-top: -25px; | |
| margin-left: 135px; | |
| text-align: left; | |
| } | |
| } | |
| @media only screen and (max-width: 767px) { | |
| .hotel-item-grid { | |
| min-height: 280px; | |
| } | |
| .hotel-item-list .image { | |
| height: 80px; | |
| width: 100px; | |
| } | |
| .hotel-item-list .content { | |
| margin-left: 108px; | |
| } | |
| .hotel-item-list .absolute-bottom { | |
| left: 115px; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .hotel-item-grid { | |
| min-height: 345px; | |
| } | |
| .hotel-item-list .image{position:relative;height:180px;width:100%;left:0;top:0} | |
| .hotel-item-list .content{margin:0} | |
| .hotel-item-list .short-info{ margin-bottom: 10px } | |
| .hotel-item-list .absolute-bottom { position: relative; left: 0; top: 0; bottom: auto; padding: 15px; width: 100%; line-height: 1.4; border-bottom:1px solid #E8E8E8; padding:6px 10px 8px; } | |
| .hotel-item-list .absolute-right{position:relative;top:auto;bottom:0;height:auto;right:0;left:0;width:100%;border-left:0;text-align:left;line-height:1.3;padding:10px 10px 0} | |
| .hotel-item-list .meta-option { position: relative; top: 0; right: 0; left: 0; font-size: 13px; width: 100%;} | |
| .hotel-item-list .meta-option .tripadvisor-module { width: 100%; text-align: center; margin: 0; margin-bottom: 15px; } | |
| .hotel-item-list .meta-option .tripadvisor-module > div { display: inline-block; } | |
| .hotel-item-list .absolute-right .star-rate { float: left; } | |
| .hotel-item-list .price-wrapper { position: relative; bottom: 10px; right: auto; left: 0; text-align: center; width: 100%; } | |
| .hotel-item-list .price-wrapper p.price { margin: 0 0 5px; } | |
| .hotel-item-list .price-wrapper span.block { display: inline-block !important; } | |
| .hotel-item-list-2 .image { | |
| width: 100%; | |
| margin-top: 5px; | |
| margin-left: 5px; | |
| padding-right: 10px; | |
| float: none; | |
| } | |
| .hotel-item-list-2 .content { | |
| margin: 0; | |
| padding: 10px 5px 0; | |
| } | |
| .hotel-item-list-2 .total-price { | |
| left: 0; | |
| padding: 10px 0 0; | |
| padding-left: 5px; | |
| } | |
| .hotel-item-list-2 .absolute-right-top { | |
| margin-left: 5px; | |
| padding: 0; | |
| padding-right: 5px; | |
| } | |
| .hotel-item-list-2 .absolute-right-bottom { | |
| margin-top: -25px; | |
| margin-left: 0; | |
| padding-left: 5px; | |
| } | |
| } | |
| /** | |
| * Breadcrumb | |
| */ | |
| .breadcrumb-wrapper { | |
| background: #EDEDED; | |
| border-top: 1px solid #E5E5E5; | |
| border-bottom: 1px solid #E5E5E5; | |
| padding-top: 15px; | |
| padding-bottom: 13px; | |
| } | |
| .breadcrumb-wrapper h1.page-title { | |
| margin: 0; | |
| font-size: 26px; | |
| line-height: 28px; | |
| } | |
| .breadcrumb-wrapper .hot-line { | |
| text-align: right; | |
| font-size: 12px; | |
| font-weight: 500; | |
| margin: 0; | |
| } | |
| .breadcrumb-wrapper .breadcrumb { | |
| margin: 0; | |
| padding: 0; | |
| font-size: 12px; | |
| background: none; | |
| } | |
| .breadcrumb-wrapper .breadcrumb a { | |
| color: #555; | |
| } | |
| .breadcrumb-wrapper .breadcrumb .active { | |
| color: #AAA; | |
| } | |
| .btn-change-search { | |
| background: transparent; | |
| margin: 0; | |
| border: 1px solid #CCC; | |
| color: #555; | |
| font-size: 12px; | |
| font-weight: 600; | |
| font-family: 'Open Sans', sans-serif; | |
| } | |
| .change-search-wrapper > div { | |
| padding-top: 15px; | |
| } | |
| .change-search-wrapper > div .sub-inner { | |
| padding: 10px; | |
| background: #DDDDDD; | |
| } | |
| .change-search-wrapper .form-group { | |
| margin: 0; | |
| } | |
| .change-search-wrapper .form-control { | |
| margin: 0; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) {} | |
| @media only screen and (max-width: 767px) {} | |
| @media (max-width: 479px) {} | |
| /** | |
| * Payment Page | |
| */ | |
| .success-box { | |
| position: relative; | |
| margin: 0 0 30px; | |
| } | |
| .success-box .icon { | |
| width: 120px; | |
| height: 100%; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| border: 1px solid #358D44; | |
| background: #358D44; | |
| text-align: center; | |
| } | |
| .success-box .icon span { | |
| font-size: 56px; | |
| color: #FFF; | |
| display: block; | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| top: 50%; | |
| margin-top: -28px; | |
| } | |
| .success-box .content { | |
| border: 1px solid #358D44; | |
| background: #FFF; | |
| margin-left: 121px; | |
| line-height: 20px; | |
| padding: 30px; | |
| color: #555; | |
| } | |
| .success-box .content h4 { | |
| line-height: 1.3; | |
| margin: 0 0 10px; | |
| } | |
| .metro-box-wrapper { | |
| margin: 0 0 30px; | |
| background: #FFF; | |
| } | |
| .metro-box-wrapper.equal-height { | |
| height: 100%; | |
| } | |
| .metro-box-wrapper > .heading { | |
| background: #E6E6E6; | |
| padding: 24px 20px 18px; | |
| line-height: 18px; | |
| border-bottom: 1px solid #DEDEDE; | |
| } | |
| .metro-box-wrapper > .heading h3 { | |
| text-transform: uppercase; | |
| font-size: 26px; | |
| line-height: 1.2; | |
| margin: 0; | |
| } | |
| .metro-box-wrapper > .heading p { | |
| margin-top: 5px; | |
| margin-left: 45px; | |
| } | |
| .metro-box-wrapper > .heading a { | |
| margin-top: 5px; | |
| } | |
| .metro-box-wrapper > .heading a:hover { | |
| text-decoration: underline; | |
| } | |
| .metro-box-wrapper .control-label h4 { | |
| margin-top: 0; | |
| line-height: 1; | |
| } | |
| .metro-box-wrapper > .content { | |
| background: #FFF; | |
| padding: 40px 25px 25px; | |
| } | |
| .metro-box-wrapper .granted-by { | |
| width: 287px; | |
| display: block; | |
| } | |
| .metro-box-wrapper .another-toggle { | |
| margin-top: -5px; | |
| } | |
| .metro-box-wrapper .another-toggle h4 { | |
| font-family: PT Sans; | |
| } | |
| .metro-box-wrapper .control-label { | |
| line-height: 20px; | |
| } | |
| .metro-box-wrapper > .heading.with-number .number { | |
| position: relative; | |
| width: 34px; | |
| height: 34px; | |
| border-radius: 50%; | |
| background: #005294; | |
| color: #FFF; | |
| text-align: center; | |
| line-height: 34px; | |
| font-size: 18px; | |
| font-weight: 300; | |
| float: left; | |
| margin-right: 10px; | |
| margin-top: -3px; | |
| } | |
| ul.payment-tab-nav { | |
| background: #00B279; | |
| margin: 0; | |
| margin-bottom: 5px; | |
| } | |
| ul.payment-tab-nav li { | |
| float: left; | |
| width: 25%; | |
| } | |
| ul.payment-tab-nav li a { | |
| color: #FFF; | |
| border: 1px solid #00B279; | |
| border-bottom: 0; | |
| display: block; | |
| padding: 8px 20px; | |
| text-align: center; | |
| position: relative; | |
| text-transform: uppercase; | |
| } | |
| ul.payment-tab-nav li a:after { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| bottom: 0; | |
| right: -1px; | |
| width: 1px; | |
| background: #FFF; | |
| } | |
| ul.payment-tab-nav li:last-child a:after { | |
| width: 0; | |
| } | |
| ul.payment-tab-nav li.active a:after { | |
| right: 1px; | |
| background: #00B279; | |
| } | |
| ul.payment-tab-nav li.active a { | |
| background: #FFF; | |
| color: #555; | |
| } | |
| ul.payment-tab-nav li:hover a { | |
| background: #009969; | |
| color: #FFF; | |
| } | |
| .payment-congrate { | |
| border: 1px solid #E80E4C; | |
| background: #E80E4C; | |
| color: #FFF; | |
| margin: 0 0 30px; | |
| text-align: center; | |
| font-size: 14px; | |
| } | |
| .payment-congrate > .inner { | |
| border: 3px double #FFF; | |
| padding: 50px 100px 30px; | |
| } | |
| .payment-congrate .lead { | |
| font-size: 24px; | |
| margin: 0 0 10px; | |
| } | |
| .payment-congrate .payment-term { | |
| font-size: 13px; | |
| } | |
| .payment-congrate a { | |
| color: #FFF; | |
| text-decoration: underline; | |
| } | |
| .payment-congrate a:hover { | |
| color: rgba(255, 255, 255, 0.8); | |
| } | |
| .payment-congrate .btn { | |
| margin: 10px 0 20px; | |
| background: #FFF; | |
| color: #E80E4C; | |
| font-size: 18px; | |
| font-weight: 600; | |
| padding-left: 25px; | |
| padding-right: 25px; | |
| border: 3px double #E80E4C; | |
| } | |
| .payment-congrate .btn:hover { | |
| opacity: 0.8; | |
| } | |
| .coupon.another-toggle h4 { | |
| font-weight: 600; | |
| margin: 0 0 5px; | |
| font-size: 16px | |
| } | |
| .coupon.another-toggle h4:after { | |
| content: "\f103"; | |
| font-size: 12px; | |
| top: -1px; | |
| position: relative; | |
| margin-left: 10px | |
| } | |
| .coupon.another-toggle h4.active { | |
| color: #555 | |
| } | |
| .coupon.another-toggle h4.active:after { | |
| content: "\f102"; | |
| color: #555 | |
| } | |
| .coupon.another-toggle .another-toggle-content { | |
| padding-top: 10px; | |
| } | |
| .coupon.another-toggle .another-toggle-inner { | |
| background: #EDEDED; | |
| padding: 15px 20px 20px; | |
| } | |
| .payment-select { | |
| margin-left: -15px; | |
| } | |
| .payment-select label { | |
| color: #333; | |
| font-size: 16px | |
| } | |
| .payment-option-wrapper { | |
| margin-left: -10px; | |
| } | |
| .payment-option-wrapper .radio-block { | |
| margin-left: 10px; | |
| line-height: 40px; | |
| } | |
| .payment-option-wrapper .radio-block span { | |
| display: block; | |
| float: left; | |
| font-weight: 700; | |
| font-size: 16px; | |
| color: #555 | |
| } | |
| .payment-option-wrapper .radio-block img { | |
| display: block; | |
| float: left; | |
| margin-top: -7px; | |
| margin-left: 5px; | |
| } | |
| .payment-option-form { | |
| background: #EDEDED; | |
| padding: 30px 20px; | |
| margin: 20px 0 0; | |
| } | |
| .payment-option-form label { | |
| line-height: 16px; | |
| } | |
| small.of-label { | |
| display: block; | |
| font-size: 12px; | |
| font-weight: 400; | |
| color: #F65C33; | |
| } | |
| .confirm-summary { | |
| background: #FFF; | |
| margin-top: 50px; | |
| border-bottom: 2px solid #C7C7C7; | |
| padding: 20px; | |
| } | |
| .confirm-summary .image { | |
| width: 285px; | |
| float: left; | |
| } | |
| .confirm-summary .heading { | |
| margin-left: 300px; | |
| } | |
| .confirm-summary .heading h4 { | |
| text-transform: uppercase; | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| line-height: 18px; | |
| margin: 0 0 7px; | |
| font-weight: 500; | |
| } | |
| .confirm-summary .heading p { | |
| line-height: 18px; | |
| margin: 0 0 7px; | |
| } | |
| .confirm-summary .content { | |
| margin-left: 300px; | |
| } | |
| .confirm-summary .content .tripadvisor-module { | |
| margin: 10px 0 15px; | |
| } | |
| .confirm-summary .content .tripadvisor-module > div { | |
| float: left; | |
| } | |
| .confirm-date { | |
| background: #E8EAEB; | |
| position: relative; | |
| padding: 20px; | |
| } | |
| .confirm-date .icon { | |
| position: absolute; | |
| top: 18px; | |
| left: 10px; | |
| width: 80px; | |
| font-size: 48px; | |
| text-align: center; | |
| display: block; | |
| } | |
| .confirm-date .content { | |
| margin: 0; | |
| margin-left: 80px; | |
| } | |
| .confirm-date ul { | |
| margin: 1px 0 0; | |
| } | |
| .confirm-date ul li { | |
| position: relative; | |
| padding-left: 100px; | |
| } | |
| .confirm-date ul li .absolute { | |
| font-weight: 600; | |
| } | |
| ul.confirm-list { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| ul.confirm-list li { | |
| position: relative; | |
| padding-left: 180px; | |
| line-height: 18px; | |
| margin: 0; | |
| margin-bottom: 15px; | |
| } | |
| ul.confirm-list.inverse li { | |
| position: relative; | |
| padding-right: 180px; | |
| padding-left: 0; | |
| } | |
| ul.confirm-list.inverse li .absolute { | |
| left: auto; | |
| right: 0; | |
| top: 10px; | |
| font-weight: 600; | |
| font-size: 15px; | |
| color: #333; | |
| } | |
| ul.confirm-list.inverse li.subtotal { | |
| text-align: right; | |
| margin: 0 0 5px; | |
| } | |
| ul.confirm-list.inverse li.bt { | |
| padding-top: 30px; | |
| margin-top: 20px; | |
| } | |
| ul.confirm-list.inverse li.bt .absolute { | |
| top: 30px; | |
| } | |
| ul.confirm-list.inverse li.total { | |
| text-align: right; | |
| font-size: 24px; | |
| color: #555; | |
| } | |
| ul.confirm-list.inverse li.total .absolute { | |
| font-weight: 600; | |
| font-size: 13px; | |
| } | |
| ul.confirm-list.inverse li.total .absolute span { | |
| font-size: 24px; | |
| font-weight: 700; | |
| } | |
| ul.confirm-list li:last-child { | |
| margin: 0; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) {} | |
| @media only screen and (max-width: 767px) { | |
| .metro-box-wrapper > .content { | |
| padding: 10px 25px; | |
| } | |
| .confirm-summary { | |
| padding: 15px; | |
| } | |
| .confirm-summary .image { | |
| width: 100%; | |
| float: none; | |
| } | |
| .confirm-summary .heading { | |
| margin-left: 0; | |
| margin-top: 15px; | |
| } | |
| .confirm-summary > .content { | |
| margin-left: 0; | |
| } | |
| ul.confirm-list { | |
| margin: 0; | |
| margin-left: -10px; | |
| } | |
| ul.confirm-list li { | |
| padding-left: 0; | |
| } | |
| ul.confirm-list li .absolute { | |
| position: relative; | |
| } | |
| ul.confirm-list.inverse li { | |
| padding-right: 0; | |
| } | |
| ul.confirm-list.inverse li .absolute { | |
| display: block; | |
| float: right; | |
| } | |
| ul.confirm-list.inverse li.subtotal { | |
| text-align: left; | |
| } | |
| ul.confirm-list.inverse li.subtotal .absolute { | |
| text-align: right; | |
| float: right; | |
| } | |
| ul.confirm-list.inverse li.subtotal.bt .absolute { | |
| margin-top: -15px; | |
| } | |
| ul.confirm-list.inverse li.total { | |
| text-align: left; | |
| padding-bottom: 40px; | |
| } | |
| ul.confirm-list.inverse li.total .absolute { | |
| margin-top: -10px; | |
| } | |
| .payment-congrate > .inner { | |
| padding: 30px; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .payment-congrate { | |
| padding: 30px 20px 30px; | |
| } | |
| .payment-option-wrapper, | |
| .coupon.another-toggle, | |
| .payment-select { | |
| margin-left: -10px; | |
| margin-right: -10px; | |
| } | |
| .payment-option-wrapper .radio-block img { | |
| display: block; | |
| float: none; | |
| margin-top: 5px; | |
| margin-left: 0; | |
| } | |
| .payment-select { | |
| margin-left: -15px; | |
| } | |
| .payment-congrate p { | |
| line-height: 16px; | |
| } | |
| .payment-congrate p.lead { | |
| line-height: 26px; | |
| } | |
| .success-box { | |
| text-align: center; | |
| } | |
| .success-box .icon { | |
| width: 100%; | |
| height: 80px; | |
| position: relative; | |
| } | |
| .success-box .content { | |
| margin-left: 0; | |
| } | |
| .confirm-date .icon { | |
| display: none; | |
| } | |
| .confirm-date .content { | |
| margin-left: 0; | |
| } | |
| } | |
| /** | |
| * Detail Page | |
| */ | |
| .detail-tab-wrapper { | |
| margin: 0 0 30px; | |
| } | |
| .detail-header { | |
| margin-bottom: 20px; | |
| } | |
| .detail-header h2 { | |
| font-size: 26px; | |
| line-height: 32px; | |
| margin: 0; | |
| font-weight: 400; | |
| text-transform: uppercase; | |
| } | |
| .detail-header h2 .star-rate { | |
| display: inline-block; | |
| } | |
| a.tripadvisor-module { | |
| text-decoration: none; | |
| line-height: 16px; | |
| margin-top: 15px; | |
| display: block; | |
| float: right; | |
| } | |
| a.tripadvisor-module:hover {} | |
| .tripadvisor-rate { | |
| line-height: 16px; | |
| } | |
| .tripadvisor-rate i { | |
| color: #B2B2B2; | |
| font-size: 13px; | |
| } | |
| .tripadvisor-rate i.rated { | |
| color: #005294; | |
| } | |
| .review-item-wrapper { | |
| border: 1px solid #EBEBEB; | |
| } | |
| .review-item { | |
| padding: 25px 5px; | |
| position: relative; | |
| border-bottom: 1px solid #EBEBEB; | |
| } | |
| .review-item:last-child { | |
| margin: 0; | |
| border-bottom: 0; | |
| } | |
| .review-item .content-left { | |
| width: 150px; | |
| text-align: right; | |
| float: left; | |
| color: #A1A1A1; | |
| } | |
| .review-item .content-left img { | |
| width: 60px; | |
| float: right; | |
| border-radius: 50%; | |
| margin: 5px 0 10px; | |
| } | |
| .review-item .content-left h4 { | |
| line-height: 1.3; | |
| margin: 0; | |
| font-size: 14px; | |
| font-weight: 400; | |
| } | |
| .review-item .content { | |
| margin-left: 180px; | |
| margin-right: 160px; | |
| line-height: 24px; | |
| border-left: 1px solid #EBEBEB; | |
| padding-left: 30px; | |
| } | |
| .review-item .content h5 { | |
| font-weight: 700; | |
| line-height: 1.3; | |
| margin: 0 0 10px; | |
| font-size: 16px; | |
| } | |
| .review-item .content-right { | |
| position: absolute; | |
| top: 25px; | |
| right: 25px; | |
| bottom: 25px; | |
| width: 130px; | |
| border: 3px double #005294; | |
| } | |
| .review-item .content-right .outer { | |
| height: 100%; | |
| text-align: center; | |
| } | |
| .review-item .content-right .inner { | |
| position: relative; | |
| left: 50%; | |
| top: 50%; | |
| transform: translate(-50%, -50%); | |
| } | |
| .review-item .content-right .inner p { | |
| margin-top: 7px; | |
| line-height: 26px; | |
| } | |
| .review-item .content-right .inner p span { | |
| display: block; | |
| font-size: 24px; | |
| font-weight: 700; | |
| } | |
| ul.hotel-featured-list > li { | |
| position: relative; | |
| padding-left: 150px; | |
| line-height: 22px; | |
| margin-bottom: 20px; | |
| } | |
| ul.hotel-featured-list li .absolute { | |
| top: 0; | |
| left: 0; | |
| font-weight: 600; | |
| } | |
| ul.list-col-2 li { | |
| width: 50%; | |
| float: left; | |
| padding-right: 15px; | |
| line-height: 18px; | |
| } | |
| ul.list-col-3 li { | |
| width: 33.3333%; | |
| float: left; | |
| padding-right: 15px; | |
| line-height: 18px; | |
| } | |
| ul.list-with-icon li { | |
| position: relative; | |
| padding-left: 20px; | |
| margin-bottom: 5px; | |
| line-height: 20px; | |
| } | |
| ul.list-with-icon li i { | |
| position: absolute; | |
| top: 4px; | |
| left: 0; | |
| } | |
| ul.list-with-icon.font-lg li { | |
| font-size: 15px; | |
| padding-left: 23px; | |
| line-height: 23px; | |
| } | |
| ul.list-with-icon.font-lg li i { | |
| font-size: 13px; | |
| } | |
| ul.list-bullet-circle li { | |
| list-style-type: circle; | |
| } | |
| ul.list-bullet-circle-2 li { | |
| list-style-type: inherit; | |
| } | |
| ul.border-bottom { | |
| border-bottom: 0; | |
| } | |
| ul.border-bottom li { | |
| border-bottom: 1px solid #CCC; | |
| padding-bottom: 10px; | |
| } | |
| ul.border-bottom.dotted li { | |
| border-bottom: 1px dotted #CCC; | |
| } | |
| ul.border-bottom li:last-child { | |
| border-bottom: 0; | |
| } | |
| .detail-right-sidebar {} | |
| .detail-right-sidebar .form-control { | |
| border-color: #FFF; | |
| } | |
| .detail-right-sidebar .form-control:focus { | |
| border-color: #F65C33; | |
| } | |
| .detail-right-sidebar .price { | |
| text-align: center; | |
| padding: 20px 20px 15px; | |
| background: #303030; | |
| color: rgba(255, 255, 255, 0.7); | |
| } | |
| .detail-right-sidebar .price span.number { | |
| display: block; | |
| font-size: 24px; | |
| font-weight: 700; | |
| color: #FFF; | |
| } | |
| .detail-right-sidebar .or-text { | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.7); | |
| position: relative; | |
| margin: 30px 0 5px; | |
| background: #303030; | |
| color: rgba(255, 255, 255, 0.7); | |
| } | |
| .detail-right-sidebar .or-text > span { | |
| text-align: center; | |
| display: block; | |
| position: absolute; | |
| top: -13px; | |
| left: 0; | |
| right: 0; | |
| } | |
| .detail-right-sidebar .or-text > span > span { | |
| background: #303030; | |
| padding: 0 10px; | |
| } | |
| .detail-right-sidebar label { | |
| color: rgba(255, 255, 255, 0.8); | |
| font-weight: 400; | |
| margin: 0 0 5px; | |
| } | |
| .detail-search-form { | |
| padding: 0 15px 20px; | |
| background: #303030; | |
| color: rgba(255, 255, 255, 0.7); | |
| } | |
| .detail-subtotal-price { | |
| background: #FFF; | |
| margin-top: 20px; | |
| } | |
| .detail-subtotal-price h4 { | |
| text-transform: uppercase; | |
| font-size: 14px; | |
| line-height: 1; | |
| font-weight: 500; | |
| letter-spacing: 1px; | |
| background: #F7F7F7; | |
| color: #555; | |
| margin: 0; | |
| padding: 18px 20px 15px; | |
| border-top: 1px solid #E5E5E5; | |
| border-bottom: 1px solid #E5E5E5; | |
| } | |
| .detail-subtotal-price h4 a { | |
| float: right; | |
| font-size: 12px; | |
| font-weight: 300; | |
| text-transform: capitalize !important; | |
| margin: 0; | |
| } | |
| .detail-subtotal-price h4 a:hover { | |
| color: #D60D45; | |
| } | |
| .price-subtotal span { | |
| font-size: 18px; | |
| font-weight: 500; | |
| } | |
| .detail-subtotal-price > .content { | |
| padding: 20px; | |
| } | |
| .room-type-wrapper {} | |
| .room-type-item { | |
| position: relative; | |
| margin: 0 0 20px; | |
| min-height: 122px; | |
| border-bottom: 1px solid #DEDEDE; | |
| transition: all .35s ease-in-out; | |
| -webkit-transition: all .35s ease-in-out; | |
| } | |
| .room-type-item .image { | |
| width: 150px; | |
| float: left; | |
| } | |
| .room-type-item .content { | |
| margin-left: 165px; | |
| margin-right: 215px; | |
| margin-bottom: 33px; | |
| } | |
| .room-type-item .content h3 { | |
| font-size: 16px; | |
| font-weight: 500; | |
| margin: 5px 0 10px; | |
| line-height: 16px; | |
| text-transform: uppercase; | |
| } | |
| .room-type-item .content p { | |
| margin: 0 0 3px; | |
| line-height: 16px; | |
| } | |
| .room-type-item .content-right { | |
| position: absolute; | |
| top: 0; | |
| bottom: 20px; | |
| right: 0; | |
| width: 200px; | |
| text-align: right; | |
| line-height: 18px; | |
| } | |
| .room-type-item .content-right .number { | |
| display: block; | |
| color: #005294; | |
| font-size: 18px; | |
| font-weight: 700; | |
| margin-bottom: 5px; | |
| } | |
| .room-type-item .content-right .btn { | |
| position: absolute; | |
| bottom: 0; | |
| right: 0; | |
| padding-left: 15px; | |
| padding-top: 7px; | |
| padding-right: 13px; | |
| } | |
| .room-type-item p.absolute { | |
| left: 165px; | |
| top: auto; | |
| bottom: 20px; | |
| } | |
| .review-score-wrapper { | |
| background: #F7F7F7; | |
| padding: 40px 20px 30px; | |
| margin: 0 0 20px; | |
| } | |
| .review-score-heading { | |
| text-align: center; | |
| } | |
| .review-score-heading h4 { | |
| font-size: 20px; | |
| margin: 0 0 10px; | |
| } | |
| .review-score-heading .score { | |
| margin-bottom: 10px; | |
| line-height: 20px; | |
| } | |
| .review-score-heading .score .this { | |
| font-size: 26px; | |
| font-weight: 700; | |
| } | |
| .review-score-heading .recommend-this { | |
| border-top: 1px solid #DEDEDE; | |
| margin: 0 40px; | |
| padding-top: 10px; | |
| } | |
| .detail-review-wrapper .tripadvisor-module { | |
| display: inline; | |
| } | |
| ul.review-score-list li { | |
| position: relative; | |
| margin-bottom: 2px; | |
| } | |
| ul.review-score-list.with-progress li .progress { | |
| margin: 5px 0 14px; | |
| margin-left: 30px; | |
| margin-right: 60px; | |
| } | |
| ul.review-score-list.with-progress li:last-child .progress { | |
| margin-bottom: 0; | |
| } | |
| ul.review-score-list.with-progress li .absolute { | |
| top: -6px; | |
| } | |
| ul.review-score-list.with-progress li .absolute.full {} | |
| ul.review-score-list.with-progress li .absolute.people-count { | |
| left: auto; | |
| right: 10px; | |
| } | |
| .map-wrapper img { | |
| max-width: none; | |
| } | |
| #map-and-friends { | |
| height: 500px; | |
| width: 100%; | |
| margin: 0; | |
| padding: 0 | |
| } | |
| ul.map-neighbour-label { | |
| float: right; | |
| margin: 0; | |
| padding: 0; | |
| margin-top: 10px; | |
| } | |
| ul.map-neighbour-label li { | |
| position: relative; | |
| float: left; | |
| padding-left: 15px; | |
| margin-left: 30px; | |
| line-height: 1; | |
| } | |
| ul.map-neighbour-label li:before { | |
| content:""; | |
| position: absolute; | |
| left: 0; | |
| top: 3px; | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 6px; | |
| background: #005294; | |
| } | |
| ul.map-neighbour-label li.color-01:before { | |
| background: #469C3B; | |
| } | |
| ul.map-neighbour-label li.color-02:before { | |
| background: #507299; | |
| } | |
| ul.map-neighbour-label li.color-03:before { | |
| background: #FF8E01; | |
| } | |
| #map-and-friends input[type=button] { | |
| padding: 8px; | |
| font-size: 10px; | |
| font-weight: 400; | |
| line-height: 10px; | |
| text-align: center; | |
| white-space: nowrap; | |
| -ms-touch-action: manipulation; | |
| touch-action: manipulation; | |
| cursor: pointer; | |
| -webkit-user-select: none; | |
| -moz-user-select: none; | |
| -ms-user-select: none; | |
| user-select: none; | |
| background-image: none; | |
| border: 1px solid transparent; | |
| display: block; | |
| width: 100%; | |
| margin: 0 0 1px; | |
| float: left; | |
| text-transform: uppercase; | |
| font-weight: 600 | |
| } | |
| .map-detail-info-window { | |
| padding-top: 20px; | |
| padding-left: 10px; | |
| padding-bottom: 10px | |
| } | |
| .map-detail-info-window .image { | |
| width: 60px; | |
| float: left | |
| } | |
| .map-detail-info-window .image img { | |
| width: 100% | |
| } | |
| .map-detail-info-window .content { | |
| margin-left: 75px | |
| } | |
| .map-detail-info-window .content h3 { | |
| font-size: 14px; | |
| line-height: 16px; | |
| margin: 0 0 5px; | |
| font-weight: 700; | |
| } | |
| .map-detail-info-window .content p { | |
| line-height: 1.1; | |
| margin: 0 0 3px | |
| } | |
| .map-detail-info-window .content a { | |
| background: #005294; | |
| color: #FFF; | |
| padding: 2px 10px; | |
| text-transform: uppercase; | |
| font-size: 10px; | |
| font-weight: 600 | |
| } | |
| .map-detail-info-window .content a:hover { | |
| opacity: 0.7; | |
| } | |
| #map-and-friends input[type='checkbox'] { | |
| opacity: 1; | |
| display: block; | |
| float: left; | |
| width: 18px; | |
| margin-top: 3px | |
| } | |
| #map-and-friends label { | |
| font-size: 12px!important; | |
| display: block; | |
| font-weight: 400; | |
| line-height: 14px; | |
| clear: both; | |
| margin: 3px 0; | |
| } | |
| #map-and-friends label:hover { | |
| cursor: pointer; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| .room-type-item { | |
| padding-bottom: 15px; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) { | |
| .room-type-item { | |
| min-height: 60px; | |
| padding: 10px 0; | |
| padding-bottom: 20px; | |
| } | |
| .room-type-item .image { | |
| width: 115px; | |
| } | |
| .room-type-item .content { | |
| margin-right: 170px; | |
| margin-left: 125px; | |
| margin-bottom: 0; | |
| line-height: 14px; | |
| } | |
| .room-type-item .content p { | |
| line-height: 14px; | |
| margin: 0 0 5px; | |
| } | |
| .room-type-item .content h3 { | |
| font-size: 15px; | |
| line-height: 17px; | |
| } | |
| .room-type-item .content-right { | |
| width: 160px; | |
| font-size: 12px; | |
| line-height: 14px; | |
| } | |
| .room-type-item .content-right .btn { | |
| margin-top: 7px; | |
| padding-top: 3px; | |
| padding-bottom: 3px; | |
| } | |
| .room-type-wrapper p.absolute { | |
| position: relative; | |
| left: 0; | |
| margin-top: 15px; | |
| } | |
| .room-type-item p.absolute { | |
| bottom: 0; | |
| } | |
| } | |
| @media only screen and (max-width: 767px) { | |
| .review-item { | |
| padding: 0; | |
| } | |
| .review-item .content-left { | |
| width: 100%; | |
| text-align: left; | |
| float: none; | |
| margin: 0 0 10px; | |
| } | |
| .review-item .content-left img { | |
| float: left; | |
| } | |
| .review-item .content-left h4 { | |
| line-height: 1.3; | |
| margin: 0; | |
| } | |
| .review-item .content { | |
| margin-left: 0; | |
| margin-right: 0; | |
| } | |
| .review-item .content-right { | |
| position: relative; | |
| top: 45px; | |
| left: 0; | |
| right: 15px; | |
| bottom: 15px; | |
| width: 100%; | |
| margin: 0 0 15px; | |
| padding: 20px; | |
| clear: both; | |
| } | |
| .review-item .content-right .inner { | |
| position: relative; | |
| left: 15px; | |
| top: auto; | |
| transform: none; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .room-type-item .image { | |
| width: 100%; | |
| float: none; | |
| margin-bottom: 10px; | |
| } | |
| .room-type-item .content { | |
| margin-right: 170px; | |
| margin-left: 0; | |
| } | |
| .room-type-item .content-right { | |
| top: 220px; | |
| } | |
| ul.hotel-featured-list > li { | |
| padding-left: 0; | |
| } | |
| ul.hotel-featured-list li .absolute { | |
| position: relative; | |
| display: block; | |
| } | |
| ul.list-col-2 li, | |
| ul.list-col-3 li { | |
| width: 100%; | |
| } | |
| .detail-header .tripadvisor-module.text-right { text-align: left !important; float: none; } | |
| .detail-header .tripadvisor-module > div { display: inline-block; } | |
| .review-item { padding-bottom: 10px; } | |
| .review-item .content-left { margin-left: 10px; margin-top: 5px; position: relative; padding-top: 8px; padding-left: 50px; } | |
| .review-item .content-left .image { position: absolute; left: 0; top: 0; width: 40px; } | |
| .review-item .content{ padding-left:10px; border-left:0; } | |
| .review-item .content-right { top: 10px; left: 4%; right: 4%; bottom: 10px; width: 92%; margin: 0 0 15px; padding: 20px 15px 10px; } | |
| .review-item .content-right .inner { left: 0; } | |
| } | |
| /** | |
| * Room Page | |
| */ | |
| .booking-step { | |
| margin-top: 35px; | |
| margin-bottom: 10px; | |
| } | |
| .step-item { | |
| color: #636363; | |
| display: block; | |
| text-align: center; | |
| text-transform: uppercase; | |
| font-size: 13px; | |
| } | |
| .step-item .line { | |
| width: 100%; | |
| height: 1px; | |
| background: #D1D1D1; | |
| } | |
| .step-item .step-item { | |
| margin-top: -26px; | |
| margin-bottom: 5px; | |
| } | |
| .step-item .number { | |
| width: 40px; | |
| height: 40px; | |
| background: #EDEDED; | |
| margin: 5px auto 0; | |
| padding: 5px; | |
| border-radius: 50%; | |
| } | |
| .step-item .number .inner { | |
| background: #D1D1D1; | |
| height: 100%; | |
| color: #FFF; | |
| font-size: 16px; | |
| font-weight: 400; | |
| line-height: 30px; | |
| border-radius: 50%; | |
| } | |
| .step-item.active a:hover { | |
| cursor: pointer; | |
| opacity: 0.4; | |
| text-decoration: none; | |
| } | |
| .step-item.active .line { | |
| background: #D60D45; | |
| } | |
| .step-item.active .number .inner { | |
| background: #D60D45; | |
| } | |
| .room-page-right-sidebar {} | |
| .room-page-right-sidebar h4 { | |
| text-transform: uppercase; | |
| font-size: 20px; | |
| text-transform: uppercase; | |
| line-height: 1.2; | |
| margin: 2px 0 8px; | |
| font-weight: 500; | |
| } | |
| .room-page-right-sidebar p { | |
| line-height: 18px; | |
| margin: 0 0 7px; | |
| } | |
| .room-page-right-sidebar h5 { | |
| font-size: 16px; | |
| font-weight: 500; | |
| line-height: 20px; | |
| margin: 0 0 15px; | |
| padding-bottom: 5px; | |
| text-transform: uppercase; | |
| border-bottom: 1px solid #C4C4C4; | |
| } | |
| .room-page-right-sidebar h5 a { | |
| font-size: 12px; | |
| float: right; | |
| text-transform: capitalize; | |
| margin-top: 2px; | |
| opacity: 0.8; | |
| } | |
| .room-page-right-sidebar h5 a:hover { | |
| opacity: 1; | |
| } | |
| .room-page-right-sidebar .meta-option { | |
| line-height: 16px; | |
| } | |
| .room-page-right-sidebar .meta-option .star-rate { | |
| float: left; | |
| margin-right: 7px; | |
| } | |
| .room-page-right-sidebar .meta-option p { | |
| line-height: 14px; | |
| } | |
| .room-page-right-sidebar .image { | |
| margin: 20px 0 20px; | |
| } | |
| .room-page-right-sidebar .content { | |
| font-size: 13px; | |
| } | |
| .room-page-right-sidebar .content p { | |
| margin-top: 15px; | |
| } | |
| .room-page-right-sidebar .content ul { | |
| margin: 10px 0 0; | |
| } | |
| .room-page-right-sidebar .content ul li { | |
| position: relative; | |
| text-align: right; | |
| font-size: 14px; | |
| padding-left: 70px; | |
| line-height: 15px; | |
| margin: 0 0 12px; | |
| } | |
| .room-page-right-sidebar .content ul li .absolute { | |
| font-weight: 600; | |
| } | |
| .room-page-right-sidebar .content ul.inverse li { | |
| padding-left: 0; | |
| padding-right: 70px; | |
| text-align: left; | |
| } | |
| .room-page-right-sidebar .content ul.inverse li .absolute { | |
| left: auto; | |
| right: 0; | |
| } | |
| .room-page-right-sidebar .content.total-price h5 { | |
| font-size: 18px; | |
| border-bottom: 3px double #C4C4C4; | |
| padding-bottom: 10px; | |
| } | |
| .room-page-right-sidebar .content.total-price h5 span { | |
| float: right; | |
| font-weight: 500; | |
| margin-top: 0px; | |
| font-size: 18px; | |
| display: block; | |
| margin-top: -2px; | |
| } | |
| .room-page-right-sidebar.alt { | |
| background: #005294; | |
| color: rgba(255, 255, 255, 0.8); | |
| padding: 20px | |
| } | |
| .room-page-right-sidebar.alt h4 { | |
| color: #FFF; | |
| text-transform: uppercase; | |
| font-size: 20px; | |
| text-transform: uppercase; | |
| line-height: 1.2; | |
| margin: 0 0 7px; | |
| font-weight: 500; | |
| } | |
| .room-page-right-sidebar.alt p { | |
| line-height: 18px; | |
| margin: 0 0 7px; | |
| } | |
| .room-page-right-sidebar.alt h5 { | |
| color: #FFF; | |
| font-size: 16px; | |
| font-weight: 500; | |
| line-height: 24px; | |
| text-transform: uppercase; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.7); | |
| } | |
| .room-page-right-sidebar.alt h5 a { | |
| font-size: 12px; | |
| float: right; | |
| color: #FFF; | |
| text-transform: capitalize; | |
| margin-top: 5px; | |
| opacity: 0.8; | |
| } | |
| .room-page-right-sidebar.alt h5 a:hover { | |
| opacity: 1; | |
| } | |
| .room-page-right-sidebar.alt .meta-option { | |
| line-height: 16px; | |
| } | |
| .room-page-right-sidebar.alt .meta-option .star-rate { | |
| float: left; | |
| margin-right: 7px; | |
| } | |
| .room-page-right-sidebar.alt .meta-option p { | |
| line-height: 14px; | |
| } | |
| .room-page-right-sidebar.alt .image { | |
| border: 1px solid #F7F7F7; | |
| margin: 20px 0 30px; | |
| } | |
| .room-page-right-sidebar.alt .content { | |
| font-size: 13px; | |
| } | |
| .room-page-right-sidebar.alt .content p { | |
| margin-top: 15px; | |
| } | |
| .room-page-right-sidebar.alt .content ul { | |
| margin: 10px 0 0; | |
| } | |
| .room-page-right-sidebar.alt .content ul li { | |
| position: relative; | |
| text-align: right; | |
| font-size: 13px; | |
| padding-left: 70px; | |
| line-height: 15px; | |
| margin: 0 0 10px; | |
| } | |
| .room-page-right-sidebar.alt .content ul li .absolute { | |
| color: #FFF; | |
| } | |
| .room-page-right-sidebar.alt .content ul.inverse li { | |
| padding-left: 0; | |
| padding-right: 70px; | |
| text-align: left; | |
| } | |
| .room-page-right-sidebar.alt .content ul.inverse li .absolute { | |
| left: auto; | |
| right: 0; | |
| } | |
| .room-page-right-sidebar.alt .content.total-price h5 { | |
| font-size: 18px; | |
| border-bottom: 3px double rgba(255, 255, 255, 0.7); | |
| padding-bottom: 10px; | |
| } | |
| .room-page-right-sidebar.alt .content.total-price h5 span { | |
| color: #FFF; | |
| margin-top: 2px; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) {} | |
| @media only screen and (max-width: 767px) { | |
| .step-item .step-item { | |
| margin-bottom: 25px; | |
| } | |
| } | |
| @media (max-width: 479px) {} | |
| /** | |
| * Result Page | |
| */ | |
| .result-status { | |
| position: relative; | |
| margin-bottom: 25px; | |
| border-bottom: 2px solid #E6E6E6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| } | |
| .result-status p { | |
| margin: 0; | |
| font-size: 16px; | |
| } | |
| .result-status a.show-on-map { | |
| display: block; | |
| position: absolute; | |
| top: 0; | |
| bottom: -2px; | |
| right: 0; | |
| width: 93px; | |
| line-height: 1; | |
| font-size: 10px; | |
| font-weight: 700; | |
| text-align: center; | |
| background-position: 50% 50%; | |
| border-left: 5px solid #F7F7F7; | |
| } | |
| .result-status a.show-on-map img { | |
| width: 30px; | |
| margin: 0 auto; | |
| margin-top: -15px; | |
| } | |
| .result-status a.show-on-map .absolute { | |
| top: auto; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| padding: 5px; | |
| } | |
| .result-status .back-to-list { | |
| position: absolute; | |
| top: 0; | |
| bottom: -2px; | |
| right: 0; | |
| width: 80px; | |
| line-height: 18px; | |
| font-size: 12px; | |
| font-weight: 400; | |
| text-align: center; | |
| border-left: 5px solid #F7F7F7; | |
| background: #D60D45; | |
| color: #FFF; | |
| padding-top: 5px; | |
| } | |
| .result-status .back-to-list span { | |
| display: block; | |
| text-transform: uppercase; | |
| } | |
| .result-status .back-to-list a { | |
| color: #FFF; | |
| font-size: 14px; | |
| } | |
| .result-status .back-to-list a:hover { | |
| color: rgba(255, 255, 255, 0.7); | |
| } | |
| .result-status .back-to-list a + a { | |
| margin-left: 5px; | |
| } | |
| .sort-wrapper { | |
| background: #EDEDED; | |
| color: #5d5d5d; | |
| margin: 0 0 5px; | |
| border-top: 1px solid #E5E5E5; | |
| border-bottom: 1px solid #E5E5E5; | |
| margin-bottom: 28px; | |
| } | |
| .sort-wrapper > ul { | |
| margin: 0; | |
| } | |
| .sort-wrapper > ul > li { | |
| display: block; | |
| float: left; | |
| } | |
| .sort-wrapper > ul > li > a { | |
| color: #5d5d5d; | |
| border-right: solid 1px #E5E5E5; | |
| display: block; | |
| padding: 10px 15px; | |
| } | |
| .sort-wrapper > ul > li.text { | |
| border-right: solid 1px #E5E5E5; | |
| padding: 10px 15px; | |
| text-transform: uppercase; | |
| } | |
| .sort-wrapper > ul > li.list-grid { | |
| float: right; | |
| } | |
| .sort-wrapper > ul > li.list-grid a { | |
| float: right; | |
| border-right: 0; | |
| border-left: solid 1px #E5E5E5; | |
| color: #5d5d5d; | |
| } | |
| .sort-wrapper > ul > li.active > a, | |
| .sort-wrapper > ul > li > a:hover { | |
| color: #D60D45; | |
| } | |
| .sort-wrapper .dropdown-menu { | |
| min-width: 80px; | |
| margin: 0; | |
| } | |
| .result-search-form-wrapper { | |
| background: #303030; | |
| color: rgba(255, 255, 255, 0.7); | |
| } | |
| .result-search-form-wrapper h3 { | |
| color: #FFF; | |
| font-size: 20px; | |
| line-height: 1; | |
| margin: 5px 0 0; | |
| text-transform: uppercase; | |
| font-weight: 500; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.5); | |
| padding: 14px 20px; | |
| } | |
| .result-search-form-wrapper > .inner { | |
| padding: 20px 15px; | |
| } | |
| .result-search-form-wrapper .form-control { | |
| border-color: #FFF; | |
| } | |
| .result-search-form-wrapper .form-control:focus { | |
| border-color: #F65C33; | |
| } | |
| .result-search-form-wrapper label { | |
| color: rgba(255, 255, 255, 0.95); | |
| font-weight: 400; | |
| margin: 0 0 5px; | |
| } | |
| .result-search-form-wrapper .tooltip-inner { | |
| max-width: 240px; | |
| } | |
| .result-filter-wrapper { | |
| background: #FFF; | |
| margin-top: 30px; | |
| } | |
| .result-filter-wrapper h3 { | |
| margin: 20px; | |
| margin-left: 40px; | |
| position: relative; | |
| text-transform: uppercase; | |
| padding-left: 27px; | |
| border-bottom: 1px solid #D60D45; | |
| padding-bottom: 2px; | |
| font-weight: 500; | |
| font-size: 20px; | |
| letter-spacing: 1px; | |
| } | |
| .result-filter-wrapper h3 .icon { | |
| width: 36px; | |
| height: 36px; | |
| border: 1px solid #D60D45; | |
| position: absolute; | |
| display: block; | |
| top: -28px; | |
| left: -20px; | |
| text-align: center; | |
| line-height: 34px; | |
| border-radius: 50%; | |
| color: #D60D45; | |
| font-size: 16px; | |
| } | |
| .filter-toggle { | |
| margin: 0; | |
| background: #FFF; | |
| padding: 0; | |
| } | |
| .filter-toggle h4 { | |
| text-transform: uppercase; | |
| font-size: 14px; | |
| line-height: 1; | |
| font-weight: 500; | |
| letter-spacing: 1px; | |
| background: #F7F7F7; | |
| color: #333; | |
| margin: 0; | |
| padding: 18px 20px 15px; | |
| border-top: 1px solid #E5E5E5; | |
| border-bottom: 1px solid #E5E5E5; | |
| } | |
| .filter-toggle h4.active { | |
| color: #333; | |
| } | |
| .filter-toggle h4:after { | |
| font-size: 8px; | |
| top: 12px; | |
| right: 20px; | |
| border: 1px solid #999; | |
| width: 20px; | |
| height: 20px; | |
| text-align: center; | |
| line-height: 18px; | |
| border-radius: 50%; | |
| padding-left: 2px; | |
| color: #999; | |
| } | |
| .filter-toggle .another-toggle-inner { | |
| padding: 15px 20px; | |
| } | |
| .filter-toggle .range-slider-wrapper { | |
| margin-bottom: -10px; | |
| } | |
| .result-paging-wrapper { | |
| border-top: 2px solid #E6E6E6; | |
| margin-top: 20px; | |
| padding-top: 10px; | |
| } | |
| .result-paging-wrapper ul.paging { | |
| float: right; | |
| } | |
| ul.paging li { | |
| float: left; | |
| margin-left: 2px; | |
| } | |
| ul.paging li a { | |
| color: #636363; | |
| padding: 2px 10px; | |
| } | |
| ul.paging li.active a, | |
| ul.paging li a:hover { | |
| background: #D60D45; | |
| color: #FFF; | |
| } | |
| ul.paging li.disable a { | |
| cursor: not-allowed; | |
| background: transparent; | |
| color: #636363; | |
| } | |
| .text-center ul.paging { | |
| float: none; | |
| text-align: center; | |
| } | |
| .text-center ul.paging li { | |
| float: none; | |
| margin-left: 2px; | |
| display: inline-block; | |
| } | |
| #bali-map { | |
| height: 800px; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) { | |
| .result-status { | |
| padding-right: 90px; | |
| line-height: 16px; | |
| } | |
| .result-search-form-wrapper { | |
| margin-top: -5px; | |
| } | |
| } | |
| @media (max-width: 767px) { | |
| .sort-wrapper > ul > li > a, | |
| .sort-wrapper > ul > li.text { | |
| padding: 5px 10px; | |
| } | |
| .result-paging-wrapper { | |
| text-align: center; | |
| } | |
| .result-paging-wrapper ul.paging { | |
| float: none !important; | |
| padding: 0; | |
| margin: 10px 0 0; | |
| } | |
| .result-paging-wrapper ul.paging li { | |
| float: none; | |
| margin: 0; | |
| display: inline-block; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .pagination > li > a, | |
| .pagination > li > span { | |
| padding: 8px 12px; | |
| } | |
| .sort-wrapper > ul > li > a, | |
| .sort-wrapper > ul > li.text { | |
| border-right: 0; | |
| padding: 5px 5px; | |
| } | |
| .sort-wrapper > ul > li > a, | |
| .sort-wrapper > ul > li.text { | |
| padding: 5px 5px; | |
| } | |
| .sort-wrapper > ul > li.list-grid a { | |
| border-right: 0; | |
| border-left: none; | |
| } | |
| .sort-wrapper > ul > li.list-grid a { | |
| padding-bottom: 0; | |
| padding-top: 0; | |
| } | |
| } | |
| /** | |
| * Tab | |
| */ | |
| .tab-style-01-wrapper ul.tab-nav { | |
| background: #EDEDED; | |
| margin: 0; | |
| border-bottom: 1px solid #D60D45; | |
| } | |
| .tab-style-01-wrapper ul.tab-nav li { | |
| float: left; | |
| } | |
| .tab-style-01-wrapper ul.tab-nav li a { | |
| color: #333; | |
| padding: 10px 20px; | |
| padding-top: 13px; | |
| display: block; | |
| text-transform: uppercase; | |
| position: relative; | |
| font-weight: 400; | |
| border-top: 2px solid #EDEDED; | |
| } | |
| .tab-style-01-wrapper ul.tab-nav li a:after { | |
| content: ""; | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| bottom: -1px; | |
| height: 1px; | |
| background: transparent; | |
| } | |
| .tab-style-01-wrapper ul.tab-nav li a:hover { | |
| background: #DBDBDB; | |
| border-top: 2px solid #DBDBDB; | |
| text-decoration: none; | |
| } | |
| .tab-style-01-wrapper ul.tab-nav li.active a { | |
| color: #D60D45; | |
| background: #FFF; | |
| border-top: 2px solid #D60D45; | |
| } | |
| .tab-style-01-wrapper ul.tab-nav li.active a:after { | |
| background: #FFF; | |
| } | |
| .tab-style-01-wrapper .tab-content { | |
| background: #FFF; | |
| } | |
| .tab-style-01-wrapper .tab-content-inner { | |
| padding: 20px; | |
| padding-top: 25px; | |
| } | |
| .tab-style-01-wrapper .tab-content-inner h5:first-child { | |
| margin-top: 0; | |
| } | |
| .vertical-tab-style-01-wrapper ul.tab-nav li a { | |
| font-family: Roboto; | |
| color: #222222; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| background: #F2F2F2; | |
| border: 1px solid #F2F2F2; | |
| border-right: 0; | |
| display: block; | |
| margin: 0 0 1px; | |
| padding: 8px 15px 7px; | |
| font-size: 13px; | |
| } | |
| .vertical-tab-style-01-wrapper ul.tab-nav li.active a, .vertical-tab-style-01-wrapper ul.tab-nav li a:hover { | |
| background: none; | |
| } | |
| .navbar-nav .vertical-tab-style-01-wrapper ul.tab-nav { | |
| position: relative; | |
| top: 0; | |
| left: 0; | |
| padding: 0; | |
| border: 0; | |
| box-shadow: none; | |
| display: block !important; | |
| margin: 10px 0 0; | |
| } | |
| .navbar-nav .vertical-tab-style-01-wrapper ul.tab-nav li a { | |
| padding: 8px 15px 7px !important; | |
| border-bottom: 1px solid #F2F2F2 !important; | |
| font-family: Roboto !important; | |
| color: #222222 !important; | |
| text-transform: uppercase !important; | |
| letter-spacing: 0.5px !important; | |
| } | |
| .navbar-nav .vertical-tab-style-01-wrapper ul.tab-nav li a:hover { | |
| padding-left: 8px; | |
| } | |
| .vertical-tab-style-02-wrapper ul.tab-nav li a{font-family:Roboto;color:#222;text-transform:uppercase;letter-spacing:.5px;background:#F2F2F2;border:1px solid #E5E5E5;display:block;margin:0 1px 1px 0;padding:12px 15px 10px;font-size:13px; position: relative; display: block; } | |
| .vertical-tab-style-02-wrapper ul.tab-nav li.active a,.vertical-tab-style-02-wrapper ul.tab-nav li a:hover{background:none} | |
| .navbar-nav .vertical-tab-style-02-wrapper ul.tab-nav{position:relative;top:0;left:0;padding:0;border:0;box-shadow:none;display:block!important;margin:10px 0 0} | |
| .navbar-nav .vertical-tab-style-02-wrapper ul.tab-nav li a{padding:8px 15px 7px!important;border-bottom:1px solid #E5E5E5!important;font-family:Roboto!important;color:#222!important;text-transform:uppercase!important;letter-spacing:.5px!important} | |
| .navbar-nav .vertical-tab-style-02-wrapper ul.tab-nav li a:hover{padding-left:8px} | |
| .vertical-tab-style-02-wrapper ul.tab-nav li a:before { content:""; position:absolute; top: 0; bottom: 0; left: 0; width: 2px; background: transparent; transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; } | |
| .vertical-tab-style-02-wrapper ul.tab-nav li.active a:before, .vertical-tab-style-02-wrapper ul.tab-nav li a:hover:before { background: #D60D45; } | |
| .vertical-tab-style-02-wrapper ul.tab-nav li a:after { content:""; position:absolute; top: 0; bottom: 0; right: -3px; width: 3px; background: transparent; transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; z-index: 2; } | |
| .vertical-tab-style-02-wrapper ul.tab-nav li.active a:after { background: #FFF; } | |
| .vertical-tab-style-02-wrapper .tab-content-inner { background: #FFF; padding: 30px; padding-left: 40px; border-top:1px solid #E5E5E5; border-left:1px solid #E5E5E5 } | |
| .vertical-tab-style-02-wrapper .tab-content-inner h3:first-child { margin-top: 0; } | |
| .vertical-tab-style-02-wrapper ul.tab-nav li.active a { background: #FFF; } | |
| .vertical-tab-style-02-wrapper .tab-content-inner ul.list-with-icon li { margin-bottom: 10px; } | |
| .vertical-tab-style-02-wrapper .tab-content-inner ul.list-with-icon li:last-child { margin-bottom: 0; } | |
| .vertical-tab-style-02-wrapper .tab-content-inner ul.list-with-icon li i { top: 3px; } | |
| @media only screen and (max-width: 1199px) { | |
| } | |
| @media only screen and (max-width: 991px) { | |
| .vertical-tab-style-02-wrapper .tab-content-inner { padding: 0; border: 0; } | |
| } | |
| @media only screen and (max-width: 767px) { | |
| } | |
| @media (max-width: 479px) { | |
| } | |
| /** | |
| * Travel Quotes | |
| */ | |
| .travel-quotes { | |
| height: 500px; | |
| overflow: hidden; | |
| } | |
| .travel-quotes .top-content { | |
| width: 100%; | |
| height: 50%; | |
| } | |
| .travel-quotes .bottom-content { | |
| width: 100%; | |
| height: 50%; | |
| } | |
| .travel-quotes .saying-content { | |
| background: #FFF; | |
| height: 100%; | |
| } | |
| .travel-quotes > div > .row { | |
| height: 100%; | |
| } | |
| .travel-quotes .inner { | |
| position: relative; | |
| left: 50%; | |
| top: 50%; | |
| transform: translate(-50%, -50%); | |
| padding: 0 50px; | |
| } | |
| .travel-quotes .bottom-content .inner { | |
| text-align: right; | |
| } | |
| .travel-quotes .saying { | |
| font-size: 18px; | |
| line-height: 28px; | |
| font-style: italic; | |
| } | |
| .stripe-grid-item { | |
| height: 300px; | |
| } | |
| .stripe-grid-item .image-bg { | |
| height: 100%; | |
| width: 50%; | |
| } | |
| .stripe-grid-item .content { | |
| padding: 25px; | |
| position: relative; | |
| } | |
| .stripe-grid-item .content h4 { | |
| font-weight: 500; | |
| } | |
| .stripe-grid-item .content:after { | |
| content: ""; | |
| position: absolute; | |
| top: 30px; | |
| left: -20px; | |
| width: 0; | |
| height: 0; | |
| border-style: solid; | |
| border-width: 15px 20px 15px 0; | |
| border-color: transparent #FFF transparent transparent; | |
| } | |
| .stripe-grid-item .content.bg-primary:after { | |
| border-color: transparent #7F4681 transparent transparent; | |
| } | |
| .stripe-grid-item .content.bg-color-02:after { | |
| border-color: transparent #87495B transparent transparent; | |
| } | |
| .row > div:nth-child(3) .stripe-grid-item .content:after, | |
| .row > div:nth-child(4) .stripe-grid-item .content:after { | |
| left: auto; | |
| right: -15px; | |
| border-width: 15px 0 20px 15px; | |
| border-color: transparent transparent transparent #FFF; | |
| } | |
| .row > div:nth-child(3) .stripe-grid-item .content.bg-primary:after, | |
| .row > div:nth-child(4) .stripe-grid-item .content.bg-primary:after { | |
| border-color: transparent transparent transparent #7F4681; | |
| } | |
| .row > div:nth-child(3) .stripe-grid-item .content.bg-color-02:after, | |
| .row > div:nth-child(4) .stripe-grid-item .content.bg-color-02:after { | |
| border-color: transparent transparent transparent #87495B; | |
| } | |
| .row > div:nth-child(3) .image-bg, | |
| .row > div:nth-child(4) .image-bg { | |
| margin-left: 50%; | |
| } | |
| .row > div:nth-child(3) .content, | |
| .row > div:nth-child(4) .content { | |
| left: 0; | |
| } | |
| /** | |
| * Testimonial | |
| */ | |
| .slick-testimonial-wrapper {} | |
| .slick-testimonial-wrapper .slick-prev:before, | |
| .slick-testimonial-wrapper .slick-next:before { | |
| color: #333; | |
| } | |
| .slick-center {} | |
| .slick-testimonial-wrapper .testimonial-man { | |
| margin: 25px; | |
| -webkit-transition: all .3s; | |
| -o-transition: all .3s; | |
| transition: all .3s; | |
| } | |
| .testimonial-long { | |
| text-align: center; | |
| position: relative; | |
| padding-top: 10px; | |
| } | |
| .testimonial-long:before { | |
| font-family: 'Pe-icon-7-stroke'; | |
| content: "\e668"; | |
| font-size: 52px; | |
| margin: 0 0 10px; | |
| } | |
| .testimonial-long .saying { | |
| font-size: 18px; | |
| line-height: 28px; | |
| font-style: italic; | |
| position: relative; | |
| margin: 10px 0 20px; | |
| font-weight: 300; | |
| font-family: 'Merriweather', serif; | |
| } | |
| .testimonial-long h4 { | |
| font-weight: 500; | |
| margin-bottom: 5px; | |
| font-size: 16px; | |
| line-height: 1; | |
| } | |
| .slick-testimonial-nav { | |
| margin: 20px 250px; | |
| } | |
| .slick-testimonial-wrapper .testimonial-man { | |
| margin: 15px; | |
| -webkit-transition: all .3s; | |
| -o-transition: all .3s; | |
| transition: all .3s; | |
| padding: 5px; | |
| } | |
| .slick-testimonial-wrapper .testimonial-man .image { | |
| border: 1px solid #D9D9D9; | |
| border-radius: 50%; | |
| margin-left: -10px; | |
| margin-right: -10px; | |
| margin-top: -10px; | |
| margin-bottom: -10px; | |
| -webkit-transition: all .3s; | |
| -o-transition: all .3s; | |
| transition: all .3s; | |
| padding: 3px; | |
| } | |
| .slick-testimonial-wrapper .testimonial-man .image:after { | |
| display: none; | |
| } | |
| .slick-testimonial-wrapper .testimonial-man img { | |
| border-radius: 50%; | |
| } | |
| .slick-testimonial-wrapper .testimonial-man .image:hover { | |
| cursor: pointer; | |
| } | |
| .slick-testimonial-wrapper .slick-center .testimonial-man { | |
| margin: 10px; | |
| } | |
| .slick-testimonial-wrapper .slick-center .image { | |
| border: 1px solid #D60D45; | |
| } | |
| .slick-testimonial-wrapper .slick-center .image:hover { | |
| cursor: default; | |
| } | |
| .slick-gallery-slideshow.slick-testimonial-wrapper .slick-prev { | |
| left: -40px; | |
| } | |
| .slick-gallery-slideshow.slick-testimonial-wrapper .slick-next { | |
| right: -40px; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| .slick-testimonial-nav { | |
| margin: 30px 200px 20px; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) {} | |
| @media (max-width: 767px) { | |
| .slick-testimonial-nav { | |
| margin: 30px 100px 20px; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .slick-testimonial-nav { | |
| margin: 30px 40px 20px; | |
| } | |
| } | |
| /** | |
| * Hot Deal | |
| */ | |
| .slick-hot-deal-item { | |
| padding: 230px 130px 130px; | |
| position: relative; | |
| z-index: 99; | |
| display: table; | |
| } | |
| .slick-hot-deal-item h4 { | |
| margin-top: 0; | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| font-weight: 500; | |
| } | |
| .slick-hot-deal-item .table-cell { | |
| display: table-cell; | |
| } | |
| .slick-hot-deal-item > div { | |
| width: 50%; | |
| } | |
| .slick-hot-deal-item .content { | |
| background: #FFF; | |
| position: relative; | |
| padding: 40px; | |
| } | |
| .slick-hot-deal-item .content p { | |
| margin-bottom: 25px; | |
| } | |
| .slick-hot-deal-item .image-bg-wrapper { | |
| position: relative; | |
| } | |
| .slick-hot-deal-item .image-bg-inner { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-size: cover; | |
| } | |
| .slick-hot-deal-wrapper .slick-prev, | |
| .slick-hot-deal-wrapper .slick-next { | |
| top: 60%; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| .slick-hot-deal-item { | |
| padding: 230px 60px 130px; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) {} | |
| @media (max-width: 767px) { | |
| .slick-hot-deal-item { | |
| padding: 230px 40px 75px; | |
| } | |
| .slick-hot-deal-item > div { | |
| width: 100%; | |
| } | |
| .slick-hot-deal-item .image-bg-wrapper { | |
| display: none; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| .slick-slider-center-mode.slick-hot-deal-wrapper .slick-prev { | |
| left: 5px; | |
| } | |
| .slick-slider-center-mode.slick-hot-deal-wrapper .slick-next { | |
| right: 5px; | |
| } | |
| .slick-hot-deal-item { | |
| padding: 230px 20px 75px; | |
| } | |
| .slick-hot-deal-item .content { | |
| padding: 20px 20px; | |
| } | |
| } | |
| /** | |
| * Faq | |
| */ | |
| .faq-category { | |
| background: #FFF; | |
| margin-top: 10px; | |
| } | |
| .faq-category h4 { | |
| text-transform: uppercase; | |
| font-size: 14px; | |
| line-height: 1; | |
| font-weight: 500; | |
| letter-spacing: 1px; | |
| background: #F7F7F7; | |
| color: #555; | |
| margin: 0; | |
| padding: 18px 20px 15px; | |
| border-bottom: 1px solid #E5E5E5; | |
| } | |
| .faq-category span { | |
| font-size: 18px; | |
| font-weight: 500; | |
| } | |
| .faq-category > .content { | |
| padding: 15px 20px; | |
| } | |
| .faq-category ul { | |
| margin: 0; | |
| } | |
| .faq-category ul li a { | |
| display: block; | |
| border-bottom: 1px solid #E8E8E8; | |
| padding-bottom: 7px; | |
| margin-bottom: 7px; | |
| color: #636363; | |
| } | |
| .faq-category ul li.active a { | |
| color: #D60D45; | |
| } | |
| .faq-category ul li:last-child a { | |
| border-bottom: 0; | |
| padding-bottom: 0; | |
| margin-bottom: 0; | |
| } | |
| .faq-category ul li a:hover { | |
| padding-left: 5px; | |
| text-decoration: none; | |
| } | |
| .faq-accordion-wrapper .panel { | |
| -webkit-box-shadow: none; | |
| box-shadow: none; | |
| } | |
| .faq-accordion-wrapper .accordion-heading { | |
| padding: 15px 0; | |
| border-bottom: 1px solid #E5E5E5; | |
| } | |
| .faq-accordion-wrapper .accordion-heading .panel-title { | |
| margin: 0; | |
| color: #636363; | |
| padding: 1px 0; | |
| font-size: 16px; | |
| } | |
| .faq-accordion-wrapper .accordion-heading .panel-title a { | |
| font-weight: 400; | |
| font-size: 16px; | |
| } | |
| .faq-accordion-wrapper .accordion-heading .panel-title a:hover { | |
| color: #D60D45; | |
| } | |
| .faq-accordion-wrapper .accordion-inner { | |
| padding: 20px 30px; | |
| margin: 0; | |
| border-bottom: 1px solid #E5E5E5; | |
| } | |
| .faq-accordion-wrapper .panel.accordion-item .panel-title a:after { | |
| content: "\f068"; | |
| float: left; | |
| background: #D60D45; | |
| color: #FFF; | |
| font-size: 10px; | |
| padding: 5px 6px; | |
| line-height: 10px; | |
| margin-right: 10px; | |
| margin-top: 2px; | |
| } | |
| .faq-accordion-wrapper .panel.accordion-item .panel-title a.collapsed:after { | |
| content: "\f067"; | |
| } | |
| .faq-accordion-wrapper.style-2 .accordion-heading { | |
| background: #E8E8E8; | |
| padding: 15px 20px 15px; | |
| border-bottom: 2px solid #D6D6D6; | |
| margin: 0 0 2px; | |
| } | |
| .faq-accordion-wrapper.style-2 .accordion-heading .panel-title { | |
| margin: 2px 0 0; | |
| } | |
| .faq-accordion-wrapper.style-2 .accordion-inner { | |
| background: #FFF; | |
| padding: 20px 30px; | |
| margin: 0 0 10px; | |
| border-bottom: 1px solid #D6D6D6; | |
| } | |
| .faq-accordion-wrapper.style-2 .panel.accordion-item .panel-title a:after { | |
| float: right; | |
| margin-right: 0; | |
| } | |
| .faq-accordion-wrapper.style-2 .panel.accordion-item .panel-title a.collapsed:after {} | |
| .faq-accordion-wrapper.faq-accordion-sm-wrapper .panel-title a { | |
| font-size: 14px; | |
| font-weight: 400; | |
| color: #636363; | |
| padding-left: 35px; | |
| position: relative; | |
| display: block; | |
| line-height: 1.2; | |
| margin: 0; | |
| } | |
| .faq-accordion-wrapper.faq-accordion-sm-wrapper .panel-title a:after { | |
| margin: 0; | |
| position: absolute; | |
| top: 2px; | |
| left: 0; | |
| float: none; | |
| } | |
| .faq-accordion-wrapper.faq-accordion-sm-wrapper .accordion-inner { | |
| padding: 20px 0; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) { | |
| .faq-category { | |
| margin: 5px 0; | |
| } | |
| } | |
| @media (max-width: 767px) {} | |
| @media (max-width: 479px) {} | |
| /** | |
| * Sidebar | |
| */ | |
| #show-on-map { | |
| height: 250px; | |
| } | |
| .map-click-box { | |
| position: relative; | |
| background: #F3F3F3; | |
| margin: 0 0 20px; | |
| } | |
| a.map-click { | |
| position: absolute; | |
| bottom: 5px; | |
| right: 5px; | |
| background: #87495B; | |
| color: #FFF; | |
| padding: 10px 15px; | |
| display: block; | |
| padding-right: 40px; | |
| font-weight: 500; | |
| line-height: 1; | |
| } | |
| a.map-click:hover { | |
| background: #A1576C; | |
| } | |
| a.map-click i { | |
| font-size: 52px; | |
| position: absolute; | |
| bottom: 0; | |
| right: 10px; | |
| text-shadow: 3px 1px 3px rgba(150, 150, 150, 1); | |
| } | |
| .sidebar.mt { | |
| margin-top: 50px; | |
| } | |
| .sidebar .widget { | |
| margin: 0 0 30px; | |
| } | |
| .quick-search { | |
| position: relative; | |
| margin: 0 0 40px; | |
| } | |
| .quick-search .form-control { | |
| height: 40px; | |
| } | |
| .quick-search .btn { | |
| position: absolute; | |
| top: 1px; | |
| right: 1px; | |
| color: #FFF; | |
| background: #005294; | |
| height: 38px; | |
| } | |
| .quick-search .btn:hover { | |
| background: #51658C; | |
| } | |
| .quick-search .form-control { | |
| padding-right: 50px; | |
| } | |
| ul.sidebar-cat li { | |
| border-bottom: 1px dotted #DBDBDB; | |
| line-height: 14px; | |
| position: relative; | |
| } | |
| ul.sidebar-cat li:last-child { | |
| border-bottom: 0; | |
| } | |
| ul.sidebar-cat li a { | |
| padding: 10px 0; | |
| display: block; | |
| color: #636363; | |
| } | |
| ul.sidebar-cat li:first-child a { | |
| padding-top: 0; | |
| } | |
| ul.sidebar-cat li a:hover { | |
| padding-left: 5px; | |
| } | |
| ul.sidebar-cat li .absolute { | |
| left: auto; | |
| right: 0; | |
| top: 11px; | |
| font-size: 12px; | |
| } | |
| ul.sidebar-cat li:first-child .absolute { | |
| top: 0px; | |
| } | |
| ul.archive li { | |
| position: relative; | |
| margin-bottom: 10px; | |
| } | |
| ul.archive li a { | |
| color: #636363; | |
| } | |
| ul.archive li a:hover { | |
| text-decoration: underline; | |
| } | |
| ul.archive li .absolute { | |
| left: auto; | |
| right: 0; | |
| top: 0px; | |
| font-size: 12px; | |
| } | |
| .tag-cloud a { | |
| border: 3px double #DBDBDB; | |
| line-height: 1; | |
| font-size: 12px; | |
| padding: 5px; | |
| margin-left: 3px; | |
| margin-bottom: 5px; | |
| display: block; | |
| float: left; | |
| color: #777; | |
| } | |
| .tag-cloud a:hover { | |
| background: #D60D45; | |
| color: #FFF; | |
| border-color: #EDEDED; | |
| } | |
| .tag-cloud-wrapper { | |
| border-top: 2px solid #E6E6E6; | |
| position: relative; | |
| margin: 20px 0 0; | |
| padding: 10px 0 0; | |
| } | |
| .tag-cloud-wrapper .tag-cloud-heading { | |
| float: left; | |
| margin-top: 7px; | |
| text-transform: uppercase; | |
| } | |
| .tag-cloud-wrapper .tag-cloud { | |
| margin-left: 50px; | |
| margin-top: 5px; | |
| } | |
| ul.sidebar-menu-list li a { font-family:Roboto;color:#222;text-transform:uppercase;letter-spacing:.5px;background:#F2F2F2;border:1px solid #E5E5E5;display:block;margin:0 1px 1px 0;padding:10px 15px 8px;font-size:13px; position: relative; display: block; } | |
| ul.sidebar-menu-list li a:before { content:""; position:absolute; top: 0; bottom: 0; left: 0; width: 2px; background: transparent; transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; } | |
| ul.sidebar-menu-list li.active a:before, ul.sidebar-menu-list li a:hover:before { background: #D60D45; } | |
| ul.sidebar-menu-list li a:after { content:""; position: absolute; top: -1px; bottom: -1px; right: -33px; width: 33px; background: transparent; border-top:1px solid transparent; border-bottom:1px solid transparent; } | |
| ul.sidebar-menu-list li.active a, ul.sidebar-menu-list li a:hover { background: #F7F7F7; } | |
| ul.sidebar-menu-list li.active a:after { background: #F7F7F7; border-top:1px solid #E5E5E5; border-bottom:1px solid #E5E5E5; } | |
| @media only screen and (max-width: 1199px) { | |
| } | |
| @media only screen and (max-width: 991px) { | |
| } | |
| @media only screen and (max-width: 767px) { | |
| ul.sidebar-menu-list li a:after { display: none; } | |
| } | |
| @media (max-width: 479px) { | |
| } | |
| /** | |
| * Featured | |
| */ | |
| .featured-item-text { | |
| margin: 15px 0; | |
| } | |
| .featured-item-text h4 { | |
| border-bottom: 1px solid #B270B5; | |
| padding-bottom: 10px; | |
| margin: 0 0 15px; | |
| letter-spacing: 2px; | |
| } | |
| .featured-item { | |
| line-height: 20px; | |
| margin-bottom: 20px; | |
| } | |
| .featured-item .icon { | |
| font-size: 24px; | |
| width: 46px; | |
| height: 46px; | |
| border-radius: 50%; | |
| background: #D60D45; | |
| color: #FFF; | |
| line-height: 46px; | |
| text-align: center; | |
| } | |
| .featured-item h3 { | |
| text-transform: uppercase; | |
| font-size: 16px; | |
| line-height: 1.2; | |
| letter-spacing: 1px; | |
| font-weight: 500; | |
| margin: 20px 0 15px; | |
| } | |
| .featured-item-2 { | |
| line-height: 20px; | |
| margin-bottom: 15px; | |
| } | |
| .featured-item-2 .icon { | |
| color: #D60D45; | |
| float: left; | |
| font-size: 30px; | |
| margin-top: -4px; | |
| margin-right: 15px; | |
| } | |
| .featured-item-2 p { | |
| margin-left: 15px; | |
| margin-top: 4px; | |
| } | |
| .featured-item-2 .content { | |
| margin-left: 45px; | |
| margin-bottom: 25px; | |
| } | |
| .featured-item-2 .content h5 { | |
| margin: 0 0 10px; | |
| font-size: 15px; | |
| text-transform: uppercase; | |
| } | |
| .featured-item-2 .content p { | |
| margin: 0; | |
| line-height: 18px; | |
| } | |
| .featured-item-03 { | |
| line-height: 1.5; | |
| margin-bottom: 20px; | |
| } | |
| .featured-item-03 .icon { | |
| font-size: 40px; | |
| width: 46px; | |
| color: #D60D45; | |
| line-height: 40px; | |
| float: left; | |
| padding-top: 5px; | |
| } | |
| .featured-item-03 .content { | |
| margin-left: 65px; | |
| } | |
| .featured-item-03 h5 { | |
| text-transform: uppercase; | |
| line-height: 1.2; | |
| letter-spacing: 1px; | |
| font-weight: 500; | |
| margin: 0 0 15px; | |
| } | |
| .sell-or-buy { | |
| padding: 80px 120px; | |
| text-align: center; | |
| } | |
| .sell-or-buy h3 { | |
| font-size: 26px; | |
| margin: 28px 0 25px; | |
| line-height: 1; | |
| } | |
| .sell-or-buy .icon { | |
| line-height: 60px; | |
| text-align: center; | |
| font-size: 60px; | |
| margin: 0; | |
| } | |
| .sell-or-buy .content a { | |
| text-transform: uppercase; | |
| border: 1px solid rgba(255,255,255,0.8); | |
| color: #FFF; | |
| display: inline-block; | |
| padding: 7px 25px; | |
| display: inline-block; | |
| margin-top: 10px; | |
| } | |
| .sell-or-buy .content a:hover { | |
| opacity: 0.8; | |
| text-decoration: none; | |
| } | |
| .featured-box { | |
| text-align: center; | |
| border: 1px solid #E5E5E5; | |
| padding: 30px; | |
| background: #EDEDED; | |
| margin: 30px 0 10px; | |
| } | |
| .featured-box .icon { | |
| width: 60px; | |
| height: 60px; | |
| line-height: 60px; | |
| font-size: 24px; | |
| margin: 0 auto 30px; | |
| margin-top: -60px; | |
| border-radius: 50%; | |
| } | |
| .featured-box h4 { | |
| margin: 0 0 15px; | |
| } | |
| .featured-box p { | |
| margin: 0 0 15px; | |
| } | |
| .featured-box a { | |
| font-size: 12px; | |
| font-weight: 600; | |
| } | |
| .featured-box a { | |
| color: #636363; | |
| } | |
| .featured-box a:hover { | |
| color: #D60D45; | |
| text-decoration: none; | |
| } | |
| .featured-bg {} | |
| .featured-bg { | |
| position: relative; | |
| padding: 120px 0; | |
| background-position: center center; | |
| background-repeat: no-repeat; | |
| background-size: cover; | |
| } | |
| .featured-bg::before { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.5); | |
| content: ""; | |
| } | |
| .featured-bg.stellar-parallax-bg { | |
| background-position: bottom center; | |
| } | |
| .featured-bg h3 { | |
| margin-top: 0; | |
| font-size: 34px; | |
| color: #FFF; | |
| font-weight: 600; | |
| line-height: 34px; | |
| text-transform: uppercase; | |
| margin: 0 0 10px; | |
| text-align: center; | |
| } | |
| .featured-bg p { | |
| color: #FFF; | |
| font-size: 26px; | |
| line-height: 30px; | |
| font-weight: 300; | |
| font-family: 'Lato', sans-serif; | |
| text-align: center; | |
| } | |
| .featured-timeline { | |
| position: relative; | |
| } | |
| .featured-timeline:after { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: 50%; | |
| width: 1px; | |
| height: 100%; | |
| background: #E8E8E8; | |
| } | |
| .featured-timeline ul { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .featured-timeline ul li { | |
| width: 50%; | |
| float: left; | |
| padding: 30px 0; | |
| padding-left: 110px; | |
| padding-right: 30px; | |
| position: relative; | |
| border-bottom: 1px solid #E8E8E8; | |
| } | |
| .featured-timeline ul li:last-child, | |
| .featured-timeline ul li:nth-last-child(2) { | |
| border-bottom: 0; | |
| } | |
| .featured-timeline ul li h4 { | |
| margin: 0 0 10px; | |
| text-transform: uppercase; | |
| } | |
| .featured-timeline ul li .icon { | |
| position: absolute; | |
| top: 30px; | |
| left: 30px; | |
| font-size: 24px; | |
| width: 50px; | |
| height: 50px; | |
| line-height: 48px; | |
| border: 2px solid #D60D45; | |
| border-radius: 50%; | |
| text-align: center; | |
| color: #D60D45; | |
| } | |
| .featured-timeline ul li:nth-child(odd) { | |
| text-align: right; | |
| padding-left: 30px; | |
| padding-right: 110px; | |
| } | |
| .featured-timeline ul li:nth-child(odd) .icon { | |
| left: auto; | |
| right: 30px; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| .sell-or-buy { | |
| padding: 80px 80px; | |
| padding-right: 120px; | |
| } | |
| .sell-or-buy.text-right { | |
| padding-left: 120px; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) { | |
| .sell-or-buy { | |
| padding: 40px; | |
| padding-right: 40px; | |
| } | |
| .sell-or-buy.text-right { | |
| padding: 40px; | |
| padding-left: 40px; | |
| } | |
| } | |
| @media only screen and (max-width: 767px) {} | |
| @media (max-width: 479px) {} | |
| /** | |
| * Team | |
| */ | |
| .team-item { | |
| text-align: center; | |
| } | |
| .team-item h4 { | |
| margin: 25px 0 10px; | |
| line-height: 1.1; | |
| } | |
| .team-item p { | |
| margin: 0 0 8px; | |
| line-height: 1.1; | |
| } | |
| .team-item ul.social { | |
| margin: 0; | |
| } | |
| .team-item ul.social li { | |
| display: inline-block; | |
| margin: 0 5px; | |
| } | |
| /** | |
| * Blog | |
| */ | |
| .blog-item-full { | |
| margin: 0 0 50px; | |
| } | |
| .blog-item-full .image { | |
| margin: 0 0 30px; | |
| } | |
| .blog-item-full .content { | |
| } | |
| .blog-item-full .meta { | |
| margin: 0 0 10px; | |
| font-size: 13px; | |
| color: #919191; | |
| line-height: 18px; | |
| } | |
| .blog-item-full .meta a { | |
| color: #555; | |
| font-weight: 500; | |
| text-transform: uppercase; | |
| } | |
| .blog-item-full .meta a:hover { | |
| text-decoration: underline; | |
| } | |
| .blog-item-full .meta i { | |
| margin-right: 5px; | |
| } | |
| .blog-item-full .content h3.blog-title { | |
| position: relative; | |
| margin: 0; | |
| margin-bottom: 15px; | |
| line-height: 1.4; | |
| } | |
| /* .blog-item-full .content h3.blog-title:after { content:""; position: absolute; bottom: -15px; left: 0; width: 40px; height: 2px; background: #005294; } */ | |
| .blog-item-full .btn-read-more { | |
| border-bottom: 2px solid #D60D45; | |
| padding: 0 0 3px; | |
| text-transform: uppercase; | |
| font-size: 12px; | |
| } | |
| .blog-item-full .btn-read-more:hover { | |
| text-decoration: none; | |
| padding: 0 5px 3px; | |
| } | |
| .blog-wrapper.blog-single .blog-item-full .content { | |
| margin-left: 0 !important; | |
| } | |
| .blog-wrapper.blog-single .blog-item-full { | |
| margin-bottom: 20px; | |
| } | |
| .recent-post-wrapper .row > div { | |
| margin: 0 0 20px; | |
| } | |
| .recent-post { | |
| position: relative; | |
| border: 1px solid #E6E6E6; | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| border-bottom: 2px solid #DEDEDE; | |
| transition: all .35s ease-in-out; | |
| -webkit-transition: all .35s ease-in-out; | |
| min-height: 150px; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| .recent-post:hover { | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.4); | |
| border-bottom: 2px solid #D60D45; | |
| } | |
| .recent-post .image { | |
| position: absolute; | |
| top: 5px; | |
| bottom: 5px; | |
| left: 5px; | |
| background-size: cover; | |
| background-position: center center; | |
| width: 230px; | |
| } | |
| .recent-post .content { | |
| margin-left: 240px; | |
| line-height: 1.5; | |
| padding: 20px 15px; | |
| } | |
| .recent-post .content .meta { | |
| font-size: 13px; | |
| color: #919191; | |
| } | |
| .recent-post .content .meta a { | |
| color: #555; | |
| } | |
| .recent-post .content .meta a:hover { | |
| text-decoration: underline; | |
| } | |
| .recent-post .content .meta i { | |
| margin-right: 5px; | |
| } | |
| .recent-post .content h4 { | |
| line-height: 1.4; | |
| margin: 20px 0 15px; | |
| font-weight: 500; | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| } | |
| .recent-post .content p { | |
| line-height: 1.5; | |
| margin: 0 0 15px; | |
| } | |
| .recent-post .content a { | |
| font-size: 12px; | |
| letter-spacing: 1px; | |
| text-transform: capitalize; | |
| } | |
| .recent-post .content a.btn-read-more { | |
| transition: all 0.15s ease; | |
| -webkit-transition: all 0.15s ease; | |
| -moz-transition: all 0.15s ease; | |
| } | |
| .recent-post .content a.btn-read-more:hover { | |
| padding-left: 3px; | |
| padding-right: 3px; | |
| text-decoration: none; | |
| } | |
| .blog-entry ul { | |
| list-style-type: inherit; | |
| margin-left: 35px; | |
| margin-bottom: 20px; | |
| } | |
| .blog-entry ol { | |
| list-style-type: decimal; | |
| margin-left: 35px; | |
| margin-bottom: 20px; | |
| } | |
| .blog-entry ul li, | |
| .blog-entry ol li { | |
| margin-bottom: 7px; | |
| } | |
| .blog-entry ul li:last-child, | |
| .blog-entry ol li:last-child { | |
| margin-bottom: 0; | |
| } | |
| .blog-entry h1, | |
| .blog-entry h2, | |
| .blog-entry h3, | |
| .blog-entry h4, | |
| .blog-entry h5, | |
| .blog-entry h6 { | |
| margin: 30px 0 18px; | |
| } | |
| ul.recent-post-sm li { | |
| border-bottom: 1px solid #DBDBDB; | |
| padding-bottom: 15px; | |
| margin-bottom: 15px; | |
| } | |
| ul.recent-post-sm li h3 { | |
| font-size: 14px; | |
| line-height: 18px; | |
| margin: 0 0 5px; | |
| font-weight: 500; | |
| } | |
| ul.recent-post-sm li .image { | |
| width: 80px; | |
| float: left; | |
| } | |
| ul.recent-post-sm li .image img { | |
| display: block; | |
| } | |
| ul.recent-post-sm li .content { | |
| margin-left: 90px; | |
| } | |
| ul.recent-post-sm li .recent-post-sm-meta { | |
| margin: 0; | |
| color: #555; | |
| font-size: 13px; | |
| font-style: italic; | |
| } | |
| ul.recent-post-sm li a:hover h3 { | |
| color: #005294; | |
| } | |
| #comment-wrapper { | |
| position: relative; | |
| } | |
| ul.comment-item { | |
| list-style: none; | |
| padding: 0; | |
| margin: 10px 0 0; | |
| } | |
| ul.comment-item li { | |
| position: relative; | |
| display: block; | |
| padding-bottom: 20px; | |
| margin-bottom: 20px; | |
| } | |
| ul.comment-item li li { | |
| margin-left: 40px; | |
| } | |
| ul.comment-item li li:last-child, | |
| ul.comment-item li li li:last-child { | |
| border-bottom: 0; | |
| padding-bottom: 0; | |
| margin-bottom: 0 | |
| } | |
| ul.comment-item li > ul { | |
| margin-top: 20px; | |
| padding-top: 20px; | |
| } | |
| .comment-item .comment-avatar { | |
| position: absolute; | |
| top: 0px; | |
| left: 0; | |
| width: 50px; | |
| height: 50px; | |
| border-radius: 50%; | |
| } | |
| .comment-item .comment-avatar img { | |
| width: 100%; | |
| width: 100%; | |
| border-radius: 50%; | |
| } | |
| ul.comment-item li .comment-header { | |
| margin-left: 60px; | |
| } | |
| ul.comment-item li .comment-header a { | |
| color: #333; | |
| } | |
| ul.comment-item li .comment-header .comment-reply { | |
| color: #FFF; | |
| } | |
| .comment-item .comment-time { | |
| display: block; | |
| font-style: italic; | |
| font-weight: 300; | |
| font-size: 13px; | |
| color: #989B8E; | |
| margin-bottom: 10px | |
| } | |
| .comment-item a.comment-reply { | |
| float: right; | |
| font-size: 10px; | |
| font-weight: 300; | |
| line-height: 12px; | |
| padding: 3px 12px 2px; | |
| text-transform: uppercase; | |
| background: #D60D45; | |
| color: #FFF; | |
| -webkit-transition: all .3s; | |
| transition: all .3s; | |
| } | |
| .comment-item a.comment-reply:hover { | |
| opacity: 0.6; | |
| filter: alpha(opacity=60); | |
| } | |
| .comment-form .form-control:hover, | |
| .comment-form .form-control:focus {} | |
| /* in color file */ | |
| .comment-form .form-control:-moz-placeholder {} | |
| .comment-form .form-control::-moz-placeholder {} | |
| .comment-form .form-control:-ms-input-placeholder { | |
| color: #FFF; | |
| } | |
| .comment-form .form-control::-webkit-input-placeholder {} | |
| .comment-content { | |
| margin-top: 20px; | |
| } | |
| .comment-content ul { | |
| list-style: none !important; | |
| margin: 0; | |
| margin-bottom: 20px; | |
| padding: 0; | |
| } | |
| .comment-content ol { | |
| list-style: decimal !important; | |
| margin: 0; | |
| margin-bottom: 20px; | |
| padding: 0; | |
| } | |
| .comment-content ul li, | |
| .comment-content ol li { | |
| margin-bottom: 7px; | |
| padding: 0; | |
| } | |
| .comment-content ul li { | |
| position: relative; | |
| } | |
| .comment-content ul li:before { | |
| content: "- "; | |
| } | |
| .comment-content ul li:last-child, | |
| .comment-content ol li:last-child { | |
| margin-bottom: 0; | |
| } | |
| .comment-content h1, | |
| .comment-content h2, | |
| .comment-content h3, | |
| .comment-content h4, | |
| .comment-content h5, | |
| .comment-content h6 { | |
| margin: 30px 0 18px; | |
| } | |
| .comment-form label { | |
| font-weight: 400; | |
| margin: 0 0 7px; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| .recent-post .image { | |
| width: 200px; | |
| } | |
| .recent-post .content { | |
| margin-left: 210px; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) { | |
| .recent-post { | |
| padding: 5px; | |
| } | |
| .recent-post .image { | |
| position: relative; | |
| top: 0; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| width: 100%; | |
| height: 150px; | |
| background-size: cover; | |
| background-position: center center; | |
| } | |
| .recent-post .content { | |
| margin-left: 0; | |
| line-height: 1.5; | |
| padding: 20px 10px 15px; | |
| } | |
| } | |
| @media only screen and (max-width: 767px) { | |
| .blog-item-full .content { | |
| margin-left: 0; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| } | |
| /** | |
| * Newsletter | |
| */ | |
| .home-news-letter { | |
| background: #575757; | |
| color: #FFF; | |
| padding: 10px; | |
| margin-top: 50px; | |
| } | |
| .home-news-letter > .inner { | |
| border: 3px double rgba(255, 255, 255, 0.8); | |
| padding: 50px; | |
| } | |
| .home-news-letter h3 { | |
| color: #FFF; | |
| text-transform: uppercase; | |
| line-height: 1; | |
| margin: 0; | |
| margin-right: 50px; | |
| float: left; | |
| position: relative; | |
| } | |
| .home-news-letter h3:after { | |
| content: ""; | |
| position: absolute; | |
| top: -5px; | |
| right: -30px; | |
| width: 3px; | |
| border-right: 3px double rgba(255, 255, 255, 0.8); | |
| height: 30px; | |
| } | |
| .home-news-letter .text-holder { | |
| margin-top: 5px; | |
| } | |
| .home-news-letter .form-control { | |
| height: 35px; | |
| border: none; | |
| } | |
| .newsletter-wrapper { | |
| padding-top: 45px; | |
| padding-bottom: 25px; | |
| } | |
| .newsletter-wrapper .text-holder { | |
| margin-bottom: 25px; | |
| } | |
| .newsletter-wrapper .text-holder h3 { | |
| text-transform: uppercase; | |
| color: #FFF; | |
| line-height: 1; | |
| margin: 0 0 10px; | |
| } | |
| .newsletter-wrapper .text-holder p { | |
| font-family: 'Merriweather', serif; | |
| font-style: italic; | |
| font-weight: 300; | |
| font-size: 12px; | |
| line-height: 1.2; | |
| letter-spacing: 1px; | |
| } | |
| .newsletter-wrapper .footer-newsletter { | |
| margin-top: -15px; | |
| } | |
| .newsletter-wrapper .form-control { | |
| height: 40px; | |
| border: none; | |
| margin: 0; | |
| } | |
| .newsletter-wrapper .btn { | |
| height: 40px; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) { | |
| .home-news-letter .text-holder { | |
| margin-top: 0; | |
| margin-bottom: 15px; | |
| } | |
| .newsletter-wrapper .footer-newsletter { | |
| margin-top: 0; | |
| } | |
| } | |
| @media only screen and (max-width: 767px) { | |
| .home-news-letter > .inner { | |
| padding: 20px; | |
| } | |
| .home-news-letter h3 { | |
| float: none; | |
| } | |
| .home-news-letter h3:after { | |
| display: none; | |
| } | |
| } | |
| @media (max-width: 479px) {} | |
| /** | |
| * Contact | |
| */ | |
| .full-contact-map-wrapper { | |
| border-top: 1px solid #E5E5E5; | |
| border-bottom: 2px solid #E5E5E5; | |
| margin-top: -1px; | |
| position: relative; | |
| } | |
| .map-wrapper {} | |
| .map-wrapper img { | |
| max-width: none!important | |
| } | |
| .full-contact-map { | |
| height: 400px | |
| } | |
| .absolute-contact-info { | |
| position: absolute; | |
| left: 50px; | |
| right: 50px; | |
| bottom: 0; | |
| } | |
| .absolute-contact-info .content { | |
| background: #FFF; | |
| padding: 30px; | |
| border: 1px solid #E8E8E8; | |
| border-bottom: 0; | |
| } | |
| .absolute-contact-info .content .item { | |
| position: relative; | |
| padding-left: 30px; | |
| font-size: 18px; | |
| } | |
| .absolute-contact-info .content .item.more-pl { | |
| padding-left: 35px; | |
| } | |
| .absolute-contact-info .content .item i { | |
| position: absolute; | |
| top: 0; | |
| left: 2px; | |
| font-size: 22px; | |
| padding-left: 2px; | |
| } | |
| .contact-form input.form-control { | |
| height: 36px; | |
| padding-left: 15px; | |
| margin: 0; | |
| } | |
| .contact-form textarea.form-control { | |
| padding-bottom: 31px; | |
| } | |
| .contact-form .form-control { | |
| padding-left: 15px; | |
| } | |
| .travel-quote-banner { | |
| background-size: cover; | |
| background-position: center center; | |
| padding: 50px 0; | |
| } | |
| .travel-quote-banner .content { | |
| width: 40%; | |
| margin: 50px auto; | |
| color: #FFF; | |
| text-align: right; | |
| } | |
| .travel-quote-banner .saying { | |
| font-size: 30px; | |
| text-transform: uppercase; | |
| line-height: 32px; | |
| } | |
| .travel-quote-banner .sayer { | |
| font-size: 16px; | |
| } | |
| .travel-quote-banner .sayer span { | |
| position: relative; | |
| padding-left: 12px; | |
| } | |
| .travel-quote-banner .sayer span:after { | |
| content: ""; | |
| position: absolute; | |
| left: 0; | |
| top: 2px; | |
| width: 2px; | |
| height: 16px; | |
| background: #FFF; | |
| } | |
| .travel-quote-banner .content a { | |
| color: #FFF; | |
| border: 2px solid #FFF; | |
| padding: 10px 15px; | |
| text-transform: uppercase; | |
| line-height: 1; | |
| } | |
| .travel-quote-banner .content a:hover { | |
| background: rgba(255, 255, 255, 0.3); | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| } | |
| @media only screen and (max-width: 991px) { | |
| } | |
| @media only screen and (max-width: 767px) { | |
| .travel-quote-banner .content { width: 80%; margin: 30px auto } | |
| .travel-quote-banner .saying { font-size: 24px; line-height: 1.4; } | |
| .travel-quote-banner .sayer { font-size: 14px; } | |
| } | |
| @media (max-width: 479px) { | |
| .full-contact-map-wrapper { border-bottom: 0; } | |
| .absolute-contact-info { position: relative; left: 0; right: 0; bottom: 0; } | |
| .absolute-contact-info .content { border: 1px solid #E8E8E8; margin-top: 20px; margin-bottom: -30px; padding: 20px; } | |
| .absolute-contact-info .content .item { font-size: 13px; padding-left: 30px !important; } | |
| .absolute-contact-info .content .xs-pull-left { float: left !important; } | |
| .absolute-contact-info .content .item i { font-size: 13px; top: 5px; } | |
| } | |
| .my_listings_edit_options a { | |
| color: #fff; | |
| display: inline-block; | |
| font-size: 11px; | |
| margin: 0 0 0 5px; | |
| margin-left: 0px; | |
| padding: 5px 7px; | |
| letter-spacing: 0; | |
| font-weight: 400; | |
| } | |
| .guide_delete{ | |
| background-color: #dd3333; | |
| } | |
| /** | |
| * Footer | |
| */ | |
| .main-footer { | |
| background: #F5F5F5; | |
| padding-top: 75px; | |
| padding-bottom: 70px; | |
| } | |
| .not-home .main-footer { | |
| border-top: 1px solid #E5E5E5; | |
| } | |
| .main-footer a { | |
| color: #5d5d5d; | |
| font-weight: 400; | |
| } | |
| .main-footer a:hover { | |
| color: #D60D45; | |
| } | |
| .footer-title { | |
| color: #FFF; | |
| margin: 0 0 25px; | |
| } | |
| .footer-logo { | |
| font-size: 30px; | |
| margin: 0 0 30px; | |
| color: #FFF; | |
| } | |
| .about-us-footer { | |
| padding-right: 15px; | |
| } | |
| ul.menu-footer { | |
| margin: 0; | |
| } | |
| ul.menu-footer li { | |
| margin-bottom: 3px; | |
| } | |
| ul.menu-footer li a { | |
| font-size: 13px; | |
| text-transform: uppercase; | |
| } | |
| .footer-newsletter .form-control { | |
| border-color: transparent; | |
| } | |
| .footer-newsletter .form-control:focus { | |
| border-color: #8F37FE; | |
| } | |
| .newsletter-footer { | |
| margin: 0 0 50px; | |
| } | |
| .newsletter-footer .form-group { | |
| position: relative; | |
| margin: 0; | |
| } | |
| .newsletter-footer .form-control { | |
| background: none; | |
| border: 0; | |
| padding: 0; | |
| padding-left: 15px; | |
| padding-bottom: 10px; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.3); | |
| margin: 0; | |
| color: #FFF; | |
| } | |
| .newsletter-footer .btn-submit { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| color: rgba(255, 255, 255, 0.7); | |
| background: none; | |
| } | |
| .newsletter-footer .btn-submit:hover { | |
| color: #FFF; | |
| } | |
| .social-footer { | |
| float: right; | |
| } | |
| .social-footer a { | |
| font-size: 20px; | |
| margin-right: 10px; | |
| margin-top: 5px; | |
| margin-top: 5px; | |
| display: block; | |
| float: left; | |
| color: #888; | |
| } | |
| .social-footer a:hover { | |
| color: #284580; | |
| } | |
| h4.footer-title { | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| font-weight: 400; | |
| letter-spacing: 2px; | |
| margin: 0 0 20px; | |
| color: #343434; | |
| position: relative; | |
| } | |
| h4.footer-title:after { | |
| content: ""; | |
| position: absolute; | |
| left: 0; | |
| bottom: -11px; | |
| width: 40px; | |
| height: 2px; | |
| background: #005294; | |
| } | |
| .secondary-footer { | |
| background: #EEE; | |
| color: #888; | |
| padding-top: 30px; | |
| padding-bottom: 30px; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) {} | |
| @media (max-width: 767px) {} | |
| @media (max-width: 479px) { | |
| ul.menu-footer.for-social li { | |
| float: left; | |
| width: 50%; | |
| } | |
| } | |
| /** | |
| * Error Page | |
| */ | |
| .error-404-wrapper { | |
| text-align: center; | |
| } | |
| .error-404-wrapper .container { | |
| padding-top: 80px; | |
| padding-bottom: 80px; | |
| } | |
| .error-404-wrapper h2 { | |
| font-weight: 500; | |
| font-size: 84px; | |
| line-height: 1; | |
| margin: 0 0 15px; | |
| } | |
| .error-404-wrapper h3 { | |
| font-size: 28px; | |
| line-height: 1; | |
| margin: 0 0 15px; | |
| } | |
| .error-menu { | |
| text-align: left; | |
| margin: 0 0 5px; | |
| } | |
| .error-menu i { | |
| font-size: 10px; | |
| display: block; | |
| float: left; | |
| margin-top: 5px; | |
| margin-right: 5px; | |
| } | |
| /** | |
| * Login/Signup | |
| */ | |
| .modal.modal-border-transparent .modal-content { | |
| border: 5px solid rgba(255, 255, 255, 0.4); | |
| -webkit-box-shadow: none; | |
| box-shadow: none; | |
| padding: 0; | |
| } | |
| .modal.modal-login .modal-content { | |
| width: 380px; | |
| margin: 0 auto; | |
| position: relativel; | |
| padding: 0 0 5px; | |
| } | |
| .modal.modal-login .modal-content h3 { | |
| margin: 0 0 15px; | |
| } | |
| .modal.modal-login .modal-body { | |
| padding: 20px; | |
| padding-top: 0; | |
| } | |
| .modal.modal-login .modal-content .form-control { | |
| height: 36px; | |
| padding-top: 6px; | |
| } | |
| .modal.modal-login .form-control::-moz-placeholder {} | |
| .modal.modal-login .form-control:-ms-input-placeholder {} | |
| .modal.modal-login .form-control::-webkit-input-placeholder {} | |
| .modal.modal-login .modal-footer { | |
| border-top: 1px solid #E5E5E5; | |
| padding: 20px 20px 30px; | |
| margin-top: 5px; | |
| } | |
| .modal .modal-content .btn-close { | |
| position: absolute; | |
| top: 3px; | |
| right: 3px; | |
| z-index: 1052; | |
| font-size: 12px; | |
| } | |
| .modal-seperator { | |
| border-bottom: 1px solid #E5E5E5; | |
| text-align: center; | |
| margin: 25px 0 40px; | |
| margin-left: -20px; | |
| margin-right: -20px; | |
| position: relative; | |
| } | |
| .modal-seperator span { | |
| width: 40px; | |
| height: 40px; | |
| border: 1px solid #E5E5E5; | |
| border-radius: 50%; | |
| margin: 0 auto; | |
| line-height: 38px; | |
| display: block; | |
| margin-bottom: -20px; | |
| background: #FFF; | |
| font-weight: 700; | |
| font-family: 'thaisans', sans-serif; | |
| } | |
| .login-modal-tab-wrapper {} | |
| ul.login-modal-tab-nav { | |
| background: #EAEAEA; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| ul.login-modal-tab-nav li { | |
| float: left; | |
| width: 50%; | |
| text-align: center; | |
| } | |
| ul.login-modal-tab-nav li a { | |
| display: block; | |
| padding: 10px; | |
| font-weight: 600; | |
| font-size: 15px; | |
| color: #565656; | |
| } | |
| ul.login-modal-tab-nav li.active a { | |
| background: #FFF; | |
| } | |
| ul.login-modal-tab-nav li a:hover { | |
| color: #489FF0; | |
| } | |
| .btn.btn-facebook { | |
| background: #3b5998; | |
| color: #FFF; | |
| } | |
| .btn.btn-facebook:hover { | |
| opacity: 0.8; | |
| } | |
| .login-modal-tab-wrapper .form-control { | |
| background: #FFF; | |
| height: 40px; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) {} | |
| @media only screen and (max-width: 767px) {} | |
| @media (max-width: 479px) { | |
| .modal.modal-login .modal-content { | |
| width: 100%; | |
| } | |
| } | |
| /** | |
| * Message for dashboard inbox | |
| */ | |
| ul.hotel-message-list { | |
| margin: 0; | |
| } | |
| ul.hotel-message-list > li { | |
| position: relative; | |
| min-height: 180px; | |
| margin: 0 0 20px; | |
| background: #FFF; | |
| border: 1px solid #E6E6E6; | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.15); | |
| border-bottom: 2px solid #DEDEDE; | |
| transition: all .35s ease-in-out; | |
| -webkit-transition: all .35s ease-in-out; | |
| padding: 5px; | |
| } | |
| ul.hotel-message-list > li:last-child { | |
| margin: 0; | |
| } | |
| ul.hotel-message-list > li .image { | |
| width: 250px; | |
| float: left; | |
| } | |
| ul.hotel-message-list > li .content { | |
| margin-left: 250px; | |
| position: relative; | |
| padding: 10px 15px 0; | |
| padding-right: 5px; | |
| line-height: 1.2; | |
| } | |
| ul.hotel-message-list > li .action-label { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| } | |
| ul.hotel-message-list > li .action-label.label { | |
| font-weight: 600; | |
| letter-spacing: 1.5px; | |
| } | |
| ul.hotel-message-list > li .content h4 { | |
| font-size: 16px; | |
| text-transform: uppercase; | |
| line-height: 16px; | |
| margin: 0 0 2px; | |
| font-weight: 500; | |
| margin-right: 130px; | |
| } | |
| ul.hotel-message-list > li .content .location { | |
| margin-right: 130px; | |
| } | |
| ul.hotel-message-list > li .man { | |
| margin: 0 0 25px; | |
| } | |
| ul.hotel-message-list > li .man .avatar { | |
| width: 50px; | |
| float: left; | |
| border-radius: 50%; | |
| -webkit-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.35); | |
| -moz-box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.35); | |
| box-shadow: 0px 0px 12px -3px rgba(0, 0, 0, 0.35); | |
| padding: 3px; | |
| background: #FFF; | |
| border: 1px solid #E5E5E5; | |
| } | |
| ul.hotel-message-list > li .man h5 { | |
| line-height: 1; | |
| border-bottom: 1px solid #E5E5E5; | |
| margin: 0 0 7px; | |
| margin-left: 50px; | |
| padding: 1px 0 7px; | |
| padding-left: 10px; | |
| } | |
| ul.hotel-message-list > li .man p { | |
| line-height: 1.2; | |
| margin-left: 50px; | |
| padding-left: 10px; | |
| } | |
| ul.hotel-message-list > li .date { | |
| margin-top: 6px; | |
| } | |
| ul.hotel-message-list > li .action-btn { | |
| text-align: right; | |
| } | |
| .btn-hotel-message.collapsed:before { | |
| content: 'view'; | |
| } | |
| .btn-hotel-message:before { | |
| content: 'close'; | |
| } | |
| .message-item:not(:last-child) { | |
| margin: 0 0 30px; | |
| padding: 0 0 30px; | |
| border-bottom: 1px solid #E5E5E5; | |
| } | |
| .message-item .message-author { | |
| line-height: 1.2; | |
| font-size: 13px; | |
| color: #A8A8A8; | |
| } | |
| .message-item .message-author .avatar { | |
| width: 50px; | |
| margin: 5px 0 0; | |
| } | |
| .message-item .message-author h5 { | |
| line-height: 1; | |
| margin: 10px 0 5px; | |
| } | |
| .message-entry ul { | |
| list-style-type: inherit; | |
| margin-left: 35px; | |
| margin-bottom: 20px | |
| } | |
| .message-entry ol { | |
| list-style-type: decimal; | |
| margin-left: 35px; | |
| margin-bottom: 20px | |
| } | |
| .message-entry ul li, | |
| .blog-entry ol li { | |
| margin-bottom: 7px | |
| } | |
| .message-entry ul li:last-child, | |
| .blog-entry ol li:last-child { | |
| margin-bottom: 0 | |
| } | |
| .hotel-message-read { | |
| border-top: 1px solid #E5E5E5; | |
| background: #F5F5F5; | |
| margin: 5px 0 -5px; | |
| margin-left: -5px; | |
| margin-right: -5px; | |
| padding: 20px; | |
| } | |
| @media only screen and (max-width: 1199px) { | |
| ul.hotel-message-list li .image { | |
| width: 180px; | |
| margin-top: 5px; | |
| margin-left: 5px; | |
| } | |
| ul.hotel-message-list li .content { | |
| margin-left: 185px; | |
| } | |
| } | |
| @media only screen and (max-width: 991px) { | |
| ul.hotel-message-list li .image { | |
| float: none; | |
| margin-bottom: 5px; | |
| } | |
| ul.hotel-message-list li .content { | |
| margin-left: 0; | |
| padding-left: 5px; | |
| } | |
| ul.hotel-message-list li .date { | |
| font-size: 13px; | |
| } | |
| ul.hotel-message-list li .action-label { | |
| top: -5px; | |
| } | |
| } | |
| @media (max-width: 767px) { | |
| .message-item .message-author { | |
| margin: 0 0 15px; | |
| } | |
| ul.hotel-message-list li .action-btn { | |
| text-align: left; | |
| margin: 10px 0 5px; | |
| } | |
| } | |
| @media (max-width: 479px) { | |
| ul.hotel-message-list li .image { | |
| width: auto; | |
| margin-right: 5px; | |
| } | |
| ul.hotel-message-list li .action-label { | |
| position: relative; | |
| top: 0; | |
| right: auto; | |
| left: 0; | |
| } | |
| ul.hotel-message-list li .content h4 { | |
| margin-right: 0; | |
| } | |
| ul.hotel-message-list li .content .location { | |
| margin-right: 0; | |
| } | |
| } | |
| /** | |
| * Dashboard | |
| */ | |
| .dashboard-avatar { | |
| background: #F7F7F7; | |
| text-align: center; | |
| line-height: 1.2; | |
| border-top: 1px solid #E5E5E5; | |
| border-bottom: 1px solid #E5E5E5; | |
| width: 100%; | |
| } | |
| .dashboard-avatar .image { | |
| width: 100px; | |
| margin: 30px auto 15px; | |
| border-radius: 50%; | |
| background: #FFF; | |
| padding: 3px; | |
| -webkit-box-shadow: 0px 0px 5px 0px rgba(214, 13, 69, 1); | |
| -moz-box-shadow: 0px 0px 5px 0px rgba(214, 13, 69, 1); | |
| box-shadow: 0px 0px 5px 0px rgba(214, 13, 69, 1); | |
| } | |
| .dashboard-avatar .content h4 { | |
| line-height: 1; | |
| margin: 0 0 5px; | |
| text-transform: uppercase; | |
| } | |
| .dashboard-avatar .content p { | |
| margin: 0 0 10px; | |
| } | |
| .dashboard-avatar ul.meta { | |
| margin: 25px 0 0; | |
| border-top: 1px solid #E5E5E5; | |
| } | |
| .dashboard-avatar ul.meta li { | |
| float: left; | |
| width: 50%; | |
| border-right: 1px solid #E5E5E5; | |
| font-size: 12px; | |
| padding: 14px 0 15px; | |
| } | |
| .dashboard-avatar ul.meta li span { | |
| display: block; | |
| font-weight: 700; | |
| font-size: 13px; | |
| } | |
| .dashboard-avatar ul.meta li:last-child { | |
| border-right: 0; | |
| } | |
| .dashboard-menu-wrapper { | |
| background: #FFF; | |
| } | |
| ul.dashboard-menu-list li a { | |
| color: #5d5d5d; | |
| display: block; | |
| border-bottom: 1px solid #E5E5E5; | |
| padding: 12px 17px; | |
| padding-left: 50px; | |
| line-height: 1; | |
| font-size: 13px; | |
| letter-spacing: 0.5px; | |
| } | |
| ul.dashboard-menu-list li a:hover, | |
| ul.dashboard-menu-list > li:hover a { | |
| color: #C70C41; | |
| padding-left: 55px; | |
| padding-right: 12px; | |
| } | |
| ul.dashboard-menu-list li a i { | |
| margin-right: 3px; | |
| font-size: 12px; | |
| } | |
| ul.dashboard-menu-list li:last-child a { | |
| border-bottom: 0; | |
| } | |
| ul.dashboard-menu-list li a > span { | |
| width: 37px; | |
| text-align: center; | |
| display: block; | |
| border-right: 1px solid #E5E5E5; | |
| line-height: 37px; | |
| position: absolute; | |
| top: 0; | |
| bottom: 0; | |
| left: 0; | |
| padding-left: 4px; | |
| } | |
| } | |
| ul.dashboard-menu-list li ul li a { | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.35); | |
| } | |
| .navbar-vertical ul.navbar-vertical-menu { | |
| margin: 0; | |
| } | |
| .navbar-vertical ul.navbar-vertical-menu li { | |
| position: relative; | |
| } | |
| .navbar-vertical ul.navbar-vertical-menu li ul { | |
| z-index: 9999; | |
| padding: 0; | |
| margin: 0; | |
| position: absolute; | |
| top: -1px; | |
| left: 100%; | |
| width: 190px; | |
| display: none; | |
| background: #005294; | |
| padding: 0; | |
| margin-left: 0; | |
| } | |
| .navbar-vertical ul.navbar-vertical-menu li ul:before { | |
| content: ""; | |
| width: 0; | |
| height: 0; | |
| border-style: solid; | |
| border-width: 8px 8px 8px 0; | |
| border-color: transparent #005294 transparent transparent; | |
| position: absolute; | |
| top: 6px; | |
| left: 0; | |
| margin-left: -7px; | |
| o-transition: all 0.1s ease-out; | |
| -ms-transition: all 0.1s ease-out; | |
| -moz-transition: all 0.1s ease-out; | |
| -webkit-transition: all 0.1s ease-out; | |
| } | |
| .navbar-vertical ul.navbar-vertical-menu li ul li a { | |
| display: block; | |
| padding: 10px 15px; | |
| color: rgba(255, 255, 255, 0.9); | |
| line-height: 1.2; | |
| } | |
| .navbar-vertical ul.navbar-vertical-menu li ul li:hover > a { | |
| color: rgba(255, 255, 255, 1); | |
| padding-left: 20px; | |
| padding-right: 10px; | |
| } | |
| .navbar-vertical ul.navbar-vertical-menu li ul li ul { | |
| position: absolute; | |
| left: 100%; | |
| top: 0 | |
| } | |
| .dashboard-menu-wrapper .slicknav_menu { | |
| display: none; | |
| } | |
| .dashboard-content .dashboard-heading { | |
| position: relative; | |
| margin: 0 0 45px; | |
| } | |
| .dashboard-content .dashboard-heading h3 { | |
| text-transform: uppercase; | |
| font-size: 26px; | |
| line-height: 1.2; | |
| margin: 0; | |
| } | |
| .dashboard-content .dashboard-heading p { | |
| margin-top: 5px; | |
| } | |
| .dashboard-content .dashboard-heading h3:after { | |
| content: ""; | |
| position: absolute; | |
| left: 0; | |
| bottom: -15px; | |
| width: 60px; | |
| height: 2px; | |
| background: #005294; | |
| } | |
| @media only screen and (max-width: 1199px) {} | |
| @media only screen and (max-width: 991px) {} | |
| @media (max-width: 767px) { | |
| .navbar-vertical ul.navbar-vertical-menu { | |
| display: none; | |
| } | |
| .dashboard-menu-wrapper .slicknav_menu { | |
| display: block; | |
| background: #FFF; | |
| width: 100%; | |
| } | |
| .dashboard-menu-wrapper .slicknav_btn { | |
| position: relative; | |
| width: 100%; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 40px; | |
| line-height: 40px; | |
| } | |
| .dashboard-menu-wrapper .slicknav_btn:before { | |
| color: #333; | |
| position: absolute; | |
| top: 0; | |
| right: 15px; | |
| } | |
| .dashboard-menu-wrapper .slicknav_nav { | |
| position: relative; | |
| top: 0; | |
| } | |
| .dashboard-menu-wrapper .slicknav_nav a { | |
| font-size: 12px; | |
| } | |
| .dashboard-menu-wrapper .slicknav_nav a i { | |
| font-size: 11px; | |
| margin-right: 5px; | |
| } | |
| .dashboard-menu-wrapper .slicknav_menu .slicknav_menutxt { | |
| color: #333; | |
| font-size: 12px; | |
| position: absolute; | |
| top: 7px; | |
| left: 15px; | |
| } | |
| } | |
| @media (max-width: 479px) {} | |
| /** | |
| * Miscellaneous | |
| */ | |
| .widget {} | |
| .widget-title { | |
| font-size: 18px; | |
| font-weight: 500; | |
| line-height: 1; | |
| margin: 0 0 30px; | |
| } | |
| .filter-toggle { | |
| } | |
| .filter-toggle h4 { | |
| text-transform: uppercase; | |
| font-size: 14px; | |
| border-bottom: 1px solid #CCC; | |
| color: #333; | |
| font-weight: 500; | |
| letter-spacing: 1px; | |
| } | |
| .filter-toggle h4.active { | |
| color: #333; | |
| } | |
| .filter-toggle .btn-more-less { | |
| font-size: 10px; | |
| margin-top: 5px; | |
| color: #D60D45; | |
| } | |
| .filter-toggle .form-group.mt, | |
| .filter-toggle .range-slider-wrapper { | |
| padding-top: 7px; | |
| } | |
| .filter-toggle .fancy-select .form-control { | |
| font-size: 12px; | |
| padding-top: 7px; | |
| } | |
| .review-widget-sm { | |
| text-align: left; | |
| font-size: 13px; | |
| line-height: 1; | |
| } | |
| .review-widget-sm .score { | |
| width: 40px; | |
| height: 40px; | |
| line-height: 40px; | |
| text-align: center; | |
| float: left; | |
| font-family: 'Open Sans Condensed', sans-serif; | |
| font-weight: 400; | |
| font-size: 22px; | |
| } | |
| .review-widget-sm .widget-content { | |
| margin-left: 50px; | |
| } | |
| .review-widget-sm .widget-content h5 { | |
| font-weight: 500; | |
| line-height: 1; | |
| margin-top: 2px; | |
| margin-bottom: 7px; | |
| font-family: 'Open Sans', sans-serif; | |
| } | |
| .widget-search .form-control { | |
| font-size: 12px; | |
| } | |
| .lighhight-box { | |
| background: #7F4681; | |
| color: #FFF; | |
| padding: 20px 15px; | |
| padding-left: 50px; | |
| line-height: 1; | |
| font-size: 18px; | |
| letter-spacing: 1px; | |
| position: relative; | |
| } | |
| .lighhight-box i { | |
| position: absolute; | |
| top: 6px; | |
| left: -2px; | |
| font-size: 44px; | |
| } | |
| .attraction-list-item { border-bottom: 1px solid #DEDEDE; padding-bottom: 25px; margin-bottom: 25px; } | |
| .attraction-list-item:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; } | |
| .attraction-list-item h3, .attraction-list-item h4 { font-weight: 500; margin-top: 0; } | |
| .attraction-list-item .price { line-height: 1.2; color: #D60D45; font-size: 16px; letter-spacing: 0.5px; margin-bottom: 10px; } | |
| .attraction-list-item .price .font-lg { font-size: 22px; } | |
| .waether-item { font-size: 32px; position: relative; padding-right: 15px; display: inline-block; } | |
| .waether-item .icon { color: #A8A8A8; } | |
| .waether-item:after { font-family: 'weathericons'; content: "\f03c"; position: absolute; top: 0; right: 0; font-size: 22px; } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| $('#error_message_name').hide(); | |
| $('#error_message_email').hide(); | |
| $('#error_message_password').hide(); | |
| $('#error_message_cpassword').hide(); | |
| var error_name = false; | |
| var error_email = false; | |
| var error_password = false; | |
| var error_cpassword = false; | |
| $('#register_username').focusout(function () { | |
| check_name(); | |
| }); | |
| $('#register_email').focusout(function () { | |
| check_email(); | |
| }); | |
| $('#register_password').focusout(function () { | |
| check_password(); | |
| }); | |
| $('#register_password_confirm').focusout(function () { | |
| check_cpassword(); | |
| }); | |
| function check_name() { | |
| var user_lenth = $('#register_username').val().length; | |
| if (user_lenth < 5 || user_lenth > 20) { | |
| $('#error_message_name').html('Should be between 5-20 character'); | |
| $('#error_message_name').fadeIn(); | |
| error_name = true; | |
| } | |
| else { | |
| $('#error_message_name').fadeOut(); | |
| } | |
| } | |
| function check_email() { | |
| var pattern = new RegExp(/^[+a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/i); | |
| if (pattern.test($('#register_email').val())) { | |
| $('#error_message_email').hide(); | |
| } | |
| else { | |
| $('#error_message_email').html('Invalid email address'); | |
| $('#error_message_email').show(); | |
| error_email = true; | |
| } | |
| } | |
| function check_password() { | |
| var pass = $('#register_password').val(); | |
| if(pass==""||pass =='undefined'){ | |
| $('#error_message_password').html('Password is a required field'); | |
| $('#error_message_password').show(); | |
| error_password = true; | |
| } | |
| else{ | |
| var chkout = checkStrength(pass); | |
| $('#error_message_password').html(chkout); | |
| $('#error_message_password').show(); | |
| } | |
| } | |
| function checkStrength(password){ | |
| //strength at begining | |
| var strength = 0 | |
| //when password is less than 6 means | |
| if (password.length<4) { | |
| $('#error_message_password').removeClass() | |
| $('#error_message_password').addClass('short') | |
| return 'Too short' | |
| } | |
| // when password length is 8 or more | |
| if (password.length>7) strength += 1 | |
| //when password contain both uppercase and lowercase character means | |
| if (password.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)) strength += 1 | |
| //when password contain both character and number means | |
| if (password.match(/([a-zA-Z])/) && password.match(/([0-9])/)) strength += 1 | |
| //when password contain one special character means | |
| if (password.match(/([!,%,&,@,#,$,^,*,?,_,~])/)) strength += 1 | |
| //when password two or more special character means | |
| if (password.match(/(.*[!,%,&,@,#,$,^,*,?,_,~].*[!,%,&,@,#,$,^,*,?,_,~])/)) strength += 1 | |
| //now we have calculated strength value, we can return messages | |
| //if value is less than 2 | |
| if (strength<2 ) { | |
| $('#error_message_password').removeClass() | |
| $('#error_message_password').addClass('weak') | |
| return 'Weak' | |
| } else if (strength == 2 ) { | |
| $('#error_message_password').removeClass() | |
| $('#error_message_password').addClass('good') | |
| return 'Good' | |
| } else { | |
| $('#error_message_password').removeClass() | |
| $('#error_message_password').addClass('strong') | |
| return 'Strong' | |
| } | |
| } | |
| function check_cpassword() { | |
| var pass = $('#register_password').val(); | |
| var cpass = $('#register_password_confirm').val(); | |
| if (cpass!= pass) { | |
| $('#error_message_cpassword').html("Password doesn't match"); | |
| $('#error_message_cpassword').show(); | |
| error_cpassword = true; | |
| } | |
| else { | |
| $('#error_message_cpassword').hide(); | |
| } | |
| } | |
| $('#register-submit').click(function(){ | |
| var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>"; | |
| var username0 = $('#register_username').val(); | |
| var email0 = $('#register_email').val(); | |
| var pass0 = $('#register_password').val(); | |
| var cpass0 = $('#register_password_confirm').val(); | |
| error_name = false; | |
| error_email = false; | |
| error_password = false; | |
| error_cpassword = false; | |
| check_name(); | |
| check_email(); | |
| check_password(); | |
| check_cpassword(); | |
| var dataString = 'username1='+username0+'&email1='+email0+'&pass1='+pass0; | |
| if(error_name==false && error_email==false && error_password==false && error_cpassword==false){ | |
| console.log(username0,email0,pass0,cpass0); | |
| $.ajax({ | |
| type:'POST', | |
| url: ajaxurl, | |
| data: dataString, | |
| catch: false, | |
| success: function(result){ | |
| $('#msg').addClass('strong').html(result); | |
| }, | |
| error: function (response) { | |
| $('#msg').addClass('strong').html(response); | |
| $("#register-form")[0].reset() | |
| } | |
| }); | |
| } | |
| else{ | |
| console.log("Checking functions are woring properly."); | |
| } | |
| //return false; | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment