| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996 |
- (function ($) {
- "use strict";
-
- var qayimaApp = {
- /* ---------------------------------------------
- ## Content Loading
- --------------------------------------------- */
-
-
- /* ---------------------------------------------
- ## Scroll top
- --------------------------------------------- */
- scroll_top: function () {
- $("body").append("<a href='#top' id='scroll-top' class='topbutton btn-hide'><span class='fa fa-angle-double-up'></span></a>");
- var $scrolltop = $('#scroll-top');
- $(window).on('scroll', function () {
- if ($(this).scrollTop() > $(this).height()) {
- $scrolltop
- .addClass('btn-show')
- .removeClass('btn-hide');
- } else {
- $scrolltop
- .addClass('btn-hide')
- .removeClass('btn-show');
- }
- });
- $("a[href='#top']").on('click', function () {
- $("html, body").animate({
- scrollTop: 0
- }, "normal");
- return false;
- });
- },
-
-
- /* ---------------------------------------------
- ## Menu Script
- --------------------------------------------- */
- menu_script: function() {
- if($('.mainmenu').find('li > a').siblings('.sub-menu')){
- $('.mainmenu li > .sub-menu').siblings('a').append("<span class='menu-arrow fas fa-sort-down'></span>");
- }
- var $submenu = $('.mainmenu').find('li').has('.sub-menu');
- $submenu.prepend("<span class='menu-click'><i class='menu-arrow icon-next1'></i></span>");
- var $mobileSubMenuOpen = $(".menu-click");
- $mobileSubMenuOpen.each(function() {
- var $self = $(this);
- $self.on("click", function(e) {
- e.stopImmediatePropagation();
- $self.siblings(".sub-menu").slideToggle("slow");
- $self.children(".menu-arrow").toggleClass("menu-extend");
-
- $(".site-header").toggleClass("sidemenu-active");
- });
- });
- //dashborad Menu
- $('.dashboard-menu-area > .btn-close').on('click', function () {
- $('.dashboard-menu-area').toggleClass('active');
- });
- //hamburger Menu
- if ($('.hamburger-menus').length) {
- var $hamburger_link = $('.hamburger-menus');
- $hamburger_link.on('click', function(e) {
- e.preventDefault();
- $(this).toggleClass('click-menu');
- $(this).next().toggleClass('menuopen');
- });
- var $overlayClose = $('.overlaybg');
- $overlayClose.on('click', function(e) {
- e.preventDefault();
- $(this).parent().removeClass('menuopen');
- $(this).parent().siblings('.hamburger-menus').removeClass('click-menu');
- });
- var el = document.querySelector('.site-navigation .navigation');
- if(el.length) {
- SimpleScrollbar.initEl(el);
- }
- var menuelem = $('.hamburger-content .menu-block');
- var delay_count = 0;
- menuelem.find('ul.mainmenu > li').each(function(){
- $(this).css('transition-delay', (delay_count * 200) + 'ms');
- delay_count++;
- });
- }
- /*-----------------------------------------------------------------
- Hamburger Menus Two
- -------------------------------------------------------------------*/
- $('.site-header.default-header-style .header-navigation-right-area .user-registration-area').clone().appendTo('.site-header.default-header-style .mobile-element-meta .mobile-user-registration');
- $('.site-header.header-style-one .header-navigation-right .user-registration-area').clone().appendTo('.site-header.header-style-one .mobile-element-meta .mobile-user-registration');
- //Todo Details Menu
- if ($('.todo-details-menu .todo-menu').length) {
- $('.todo-details-menu .todo-menu').onePageNav({
- currentClass: 'current',
- changeHash: true,
- scrollSpeed: 750,
- scrollThreshold: 0.5
- });
- }
- },
- /*-------------------------------------------
- ## Sticky Header
- --------------------------------------------- */
- sticky_header: function() {
- if ($('#sticky-header').length ) {
- // var stickyMenu = $('.site-header').clone().appendTo('#sticky-header');
- $(window).on('scroll', function() {
- var w = $(window).width();
- if (w > 1199) {
- if ($(this).scrollTop() > 350) {
- $('#sticky-header').slideDown(500);
- } else {
- $('#sticky-header').slideUp(500);
- }
- }
- });
- }
- if ($('.site-header.header-style-two').length ) {
- $(window).on('scroll', function() {
- if ($(this).scrollTop() > 1) {
- $('.site-header.header-style-two').addClass('active');
- }else {
- $('.site-header.header-style-two').removeClass('active');
- }
- });
- }
- },
- /* ---------------------------------------------
- ## Search
- --------------------------------------------- */
- search: function () {
- $('.search-wrap .search-btn').on('click', function(){
- if($(this).siblings('.search-form').hasClass('active')){
- $(this).siblings('.search-form').removeClass('active').slideUp();
- $(this).removeClass('active');
- }
- else{
- $(this).siblings('.search-form').removeClass('active').slideUp();
- $(this).siblings('.search-form').removeClass('active');
- $(this).addClass('active');
- $(this).siblings('.search-form').addClass('active').slideDown();
- }
- });
- },
-
- /* ---------------------------------------------
- ## Register User
- --------------------------------------------- */
- register_user: function() {
- $('.btn-register-now').on('click', function () {
- $('.user-signin-area').addClass('hidden');
- $('.user-signup-area').addClass('show');
- });
-
- $('.user-signin-area .btn-password').on('click', function () {
- $('.form-content-signin').addClass('hidden');
- $('.form-content-password').addClass('show');
- });
-
- $('.user-signin-area .btn-back').on('click', function () {
- $('.form-content-signin').removeClass('hidden');
- $('.form-content-password').removeClass('show');
- });
-
- $('.user-signup-area .form-btn-group .btn-signin').on('click', function () {
- $('.user-signin-area').removeClass('hidden');
- $('.user-signup-area').removeClass('show');
- $('.user-signin-area').addClass('show');
- $('.user-signup-area').addClass('hidden');
- });
- },
- /* ---------------------------------------------
- ## Count Down
- --------------------------------------------- */
- count_down: function() {
- if ($('#countdown').length) {
- $('#countdown').syotimer({
- year: 2021,
- month: 6,
- day: 9,
- hour: 20,
- minute: 30
- });
- }
- },
- /*-------------------------------------------
- ## Nice select And Data Picker
- --------------------------------------------- */
- nice_select_data_picker: function () {
- $('.select-custom').niceSelect();
-
- if ($('#res_date').length) {
- $('#res_date').datetimepicker();
- }
- },
-
- /* ---------------------------------------------
- ## Pop Up Scripts
- --------------------------------------------- */
- popupscript: function() {
- //Video Popup
- var $videoPopup = $(".video-popup");
- if ( $videoPopup.length > 0 ) {
- $videoPopup.magnificPopup({
- type: "iframe",
- removalDelay: 300,
- mainClass: "mfp-fade",
- overflowY: "hidden",
- iframe: {
- markup: '<div class="mfp-iframe-scaler">'+
- '<div class="mfp-close"></div>'+
- '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
- '</div>',
- patterns: {
- youtube: {
- index: 'youtube.com/',
- id: 'v=',
- src: '//www.youtube.com/embed/%id%?autoplay=1'
- },
- vimeo: {
- index: 'vimeo.com/',
- id: '/',
- src: '//player.vimeo.com/video/%id%?autoplay=1'
- },
- gmaps: {
- index: '//maps.google.',
- src: '%id%&output=embed'
- }
- },
- srcAction: 'iframe_src'
- }
- });
- }
- },
- /* ---------------------------------------------
- ## Review Rating
- --------------------------------------------- */
- review_rating: function () {
- if ($('.review-rating').length > 0) {
- var options = {
- max_value: 5,
- step_size: 0.5,
- }
- $(".review-rating").rate(options);
- }
- },
-
-
- /* ---------------------------------------------
- ## Brands Carousel
- --------------------------------------------- */
- brands_carousel: function() {
- if ($('.brands-carousel').length) {
- var items = 4;
- $('.brands-carousel').owlCarousel({
- center: false,
- items: items,
- autoplay: false,
- autoplayTimeout: 5000,
- smartSpeed: 700,
- margin: 0,
- singleItem: false,
- loop: true,
- nav: false,
- dots: false,
- responsive: {
- 280: {
- items: 1
- },
- 500: {
- items: 2
- },
- 768: {
- items: 2
- },
- 992: {
- items: 3
- },
- 1200: {
- items: items
- }
- }
- });
- }
- },
- /*-------------------------------------------
- ## Listing Todo Single
- --------------------------------------------- */
- listing_todo_single: function() {
- if ($('.listing-todo-feature-list.carousel-nav-dots').length) {
- $('.listing-todo-feature-list.carousel-nav-dots').owlCarousel({
- center: false,
- items: 3,
- autoplay: true,
- autoplayTimeout: 3000,
- smartSpeed: 800,
- loop: true,
- margin: 0,
- singleItem : true,
- dots: true,
- nav: false,
- responsive: {
- 280: {
- items: 1
- },
- 768: {
- items: 2
- },
- 992: {
- items: 2
- },
- 1200: {
- items: 3
- },
- 1400: {
- items: 3
- }
- }
- });
- }
- if ($('.listing-todo-thumbnail-carousel').length) {
- $('.listing-todo-thumbnail-carousel').owlCarousel({
- center: false,
- items: 4,
- autoplay: false,
- autoplayTimeout: 3000,
- smartSpeed: 800,
- loop: true,
- margin: 1,
- singleItem : true,
- dots: false,
- nav: true,
- navText: ["<span class='icon-back1'></span>", "<span class='icon-next1'></span>"],
- responsive: {
- 280: {
- items: 1
- },
- 501: {
- items: 2
- },
- 768: {
- items: 2
- },
- 992: {
- items: 2
- },
- 1200: {
- items: 3
- },
- 1400: {
- items: 4
- }
- }
- });
- }
- if ($('.listing-gallery-slide').length) {
- $('.listing-gallery-slide').owlCarousel({
- center: false,
- items: 1,
- autoplay: false,
- autoplayTimeout: 5000,
- smartSpeed: 700,
- margin: 0,
- singleItem: true,
- loop: true,
- nav: false,
- dots: true,
- });
- }
- },
-
- /* ---------------------------------------------
- ## Testimonial Carousel
- --------------------------------------------- */
- testimonial_carousel: function() {
- var $member_items = $('.testimonial-carousel');
- var items = 3;
- if ($member_items.length) {
- $member_items.owlCarousel({
- center: false,
- items: items,
- autoplay: false,
- autoplayTimeout: 5000,
- margin: 30,
- singleItem: false,
- smartSpeed: 700,
- loop: true,
- nav: false,
- dots: false,
- responsive: {
- 280: {
- items: 1
- },
- 576: {
- items: 1
- },
- 768: {
- items: 2
- },
- 992: {
- items: 3
- },
- 1200: {
- items: items
- }
- }
- });
- }
- $('.testimonial-block .carousel-nav-text .btn-prev').click(function() {
- $member_items.trigger('prev.owl.carousel');
- });
- $('.testimonial-block .carousel-nav-text .btn-next').click(function() {
- $member_items.trigger('next.owl.carousel');
- });
- },
- /* ---------------------------------------------
- ## Todos Carousel
- --------------------------------------------- */
- todos_carousel: function() {
- var $todos_items = $('.todos-carousel');
- var items = 5;
- if ($todos_items.length) {
- $todos_items.owlCarousel({
- center: false,
- items: items,
- autoplay: false,
- autoplayTimeout: 5000,
- margin: 0,
- singleItem: false,
- smartSpeed: 700,
- loop: true,
- nav: false,
- dots: false,
- responsive: {
- 280: {
- items: 1
- },
- 576: {
- items: 2
- },
- 768: {
- items: 2
- },
- 992: {
- items: 3
- },
- 1200: {
- items: 3
- },
- 1366: {
- items: 4
- },
- 1670: {
- items: items
- }
- }
- });
- }
- $('.todos-block .carousel-nav-text .btn-prev').click(function() {
- $todos_items.trigger('prev.owl.carousel');
- });
- $('.todos-block .carousel-nav-text .btn-next').click(function() {
- $todos_items.trigger('next.owl.carousel');
- });
- },
- /* ---------------------------------------------
- ## Features Location Carousel
- --------------------------------------------- */
- features_location_carousel: function() {
- var $featuredLocationCarousel = $(".featured-location-carousel");
-
- if( $featuredLocationCarousel.length ){
- $featuredLocationCarousel.each(function() {
- var items = parseInt( $(this).attr("data-owl-items"), 10);
- if( !items ) items = 1;
- var nav = parseInt( $(this).attr("data-owl-nav"), 2);
- if( !nav ) nav = 0;
- var dots = parseInt( $(this).attr("data-owl-dots"), 2);
- if( !dots ) dots = 0;
- var center = parseInt( $(this).attr("data-owl-center"), 2);
- if( !center ) center = 0;
- var loop = parseInt( $(this).attr("data-owl-loop"), 2);
- if( !loop ) loop = 0;
- var margin = parseInt( $(this).attr("data-owl-margin"), 10);
- if( !margin ) margin = 0;
- var autoWidth = parseInt( $(this).attr("data-owl-auto-width"), 2);
- if( !autoWidth ) autoWidth = 0;
- var navContainer = $(this).attr("data-owl-nav-container");
- if( !navContainer ) navContainer = 0;
- var autoplay = parseInt( $(this).attr("data-owl-autoplay"), 2);
- if( !autoplay ) autoplay = 0;
- var autoplayTimeOut = parseInt( $(this).attr("data-owl-autoplay-timeout"), 10);
- if( !autoplayTimeOut ) autoplayTimeOut = 5000;
- var autoHeight = parseInt( $(this).attr("data-owl-auto-height"), 2);
- if( !autoHeight ) autoHeight = 0;
- var animationIn = $(this).attr("data-owl-anim-in");
- if( !animationIn ) animationIn = 0;
- else animationIn = $(this).attr("data-owl-anim-in");
- var animationOut = $(this).attr("data-owl-anim-out");
- if( !animationOut ) animationOut = 0;
- else animationOut = $(this).attr("data-owl-anim-out");
- if( $("body").hasClass("rtl") ) var rtl = true;
- else rtl = false;
- if( items === 5 ){
- $(this).owlCarousel({
- navContainer: navContainer,
- animateOut: animationOut,
- animateIn: animationIn,
- autoplayTimeout: autoplayTimeOut,
- autoplay: autoplay,
- autoHeight: autoHeight,
- center: center,
- loop: loop,
- margin: margin,
- autoWidth: autoWidth,
- items: 1,
- smartSpeed: 700,
- autoplayHoverPause: 1,
- nav: nav,
- dots: dots,
- rtl: rtl,
- navText: [],
- responsive: {
- 280: {
- items: 1
- },
- 576: {
- items: 2
- },
- 768: {
- items: 3
- },
- 992: {
- items: 3
- },
- 1200: {
- items: 4
- },
- 1366: {
- items: items
- }
- }
- });
- }
- else if ( items === 4 ) {
- $(this).owlCarousel({
- navContainer: navContainer,
- animateOut: animationOut,
- animateIn: animationIn,
- autoplayTimeout: autoplayTimeOut,
- autoplay: autoplay,
- autoHeight: autoHeight,
- center: center,
- loop: loop,
- margin: margin,
- autoWidth: autoWidth,
- items: 1,
- smartSpeed: 700,
- autoplayHoverPause: 1,
- nav: nav,
- dots: dots,
- rtl: rtl,
- navText: [],
- responsive: {
- 280: {
- items: 1
- },
- 481: {
- items: 2
- },
- 576: {
- items: 2
- },
- 768: {
- items: 2
- },
- 992: {
- items: 3
- },
- 1200: {
- items: items
- },
- 1366: {
- items: items
- }
- }
- });
- }
- if( $(this).find(".owl-item").length === 1 ){
- $(this).find(".owl-nav").css( { "opacity": 0,"pointer-events": "none"} );
- }
- });
- }
- $('.featured-locations-block .carousel-nav-text .btn-prev').click(function() {
- $featuredLocationCarousel.trigger('prev.owl.carousel');
- });
- $('.featured-locations-block .carousel-nav-text .btn-next').click(function() {
- $featuredLocationCarousel.trigger('next.owl.carousel');
- });
- },
-
- /*-------------------------------------------
- ## Features Cat Carousel
- --------------------------------------------- */
- features_cat_carousel: function() {
- if ($('.features-cat-carousel').length) {
- $('.features-cat-carousel').owlCarousel({
- center: false,
- items: 5,
- autoplay: false,
- autoplayTimeout: 3000,
- smartSpeed: 800,
- loop: true,
- margin: 10,
- singleItem : true,
- dots: false,
- nav: false,
- responsive: {
- 280: {
- items: 2
- },
- 481: {
- items: 3
- },
- 768: {
- items: 3
- },
- 992: {
- items: 4
- },
- 1200: {
- items: 5
- }
- }
- });
- }
- },
- /*-------------------------------------------
- ## Mega Menu Carousel
- --------------------------------------------- */
- megamenu_carousel: function() {
- var $megamenu_items = $('.megamenu-carousel');
- var items = 4;
- if ($megamenu_items.length) {
- $megamenu_items.owlCarousel({
- center: false,
- items: items,
- autoplay: false,
- autoplayTimeout: 5000,
- margin: 10,
- singleItem: false,
- smartSpeed: 700,
- loop: true,
- dots: false,
- nav: true,
- navText: ["<span>Prev</span>", "<span>Next</span>"],
- responsive: {
- 280: {
- items: 1
- },
- 1200: {
- items: items
- }
- }
- });
- }
- var $megamenu_items = $('.megamenu-carousel-two');
- var items = 1;
- if ($megamenu_items.length) {
- $megamenu_items.owlCarousel({
- center: false,
- items: items,
- autoplay: false,
- autoplayTimeout: 5000,
- margin: 10,
- singleItem: false,
- smartSpeed: 700,
- loop: true,
- dots: false,
- nav: true,
- navText: ["<span>Prev</span>", "<span>Next</span>"],
- responsive: {
- 280: {
- items: 1
- },
- 1200: {
- items: items
- }
- }
- });
- }
- },
-
- /* ---------------------------------------------
- ## Sidebar Script
- --------------------------------------------- */
- sidebarScript: function() {
- if ($('.sidebar-todos').length) {
- $('.sidebar-todos').theiaStickySidebar({
- 'containerSelector': '.todo-grid-list-content, .single-listing-todo-main, .user-profile-list-todo',
- 'additionalMarginTop': 0,
- 'minWidth': 992,
- });
- }
- },
- /*-------------------------------------------
- ## All Scroll Bar
- --------------------------------------------- */
- scroll_bar: function() {
- // qayima Sidebar Scroll
- //-------------------------------
- if ($('.listing-todo-main').length) {
- var $sidebar_scroll = $('.listing-todo-main');
- $sidebar_scroll.TrackpadScrollEmulator();
- $( window ).resize(function() {
- setTimeout(function() {
- $sidebar_scroll.TrackpadScrollEmulator('recalculate');
- }, 250);
- });
- }
- // dashboard Menu Scroll
- //-------------------------------
- if ($('.dashboard-menu-main').length) {
- var $sidebar_scroll = $('.dashboard-menu-main');
- $sidebar_scroll.TrackpadScrollEmulator();
- $( window ).resize(function() {
- setTimeout(function() {
- $sidebar_scroll.TrackpadScrollEmulator('recalculate');
- }, 250);
- });
- }
- },
- /* ---------------------------------------------
- ## Tags Keyword
- ---------------------------------------------- */
- tag_keyword: function() {
- if ($('#tag-keyword').length > 0) {
- var tagInput1 = new TagsInput({
- selector: 'tag-keyword',
- duplicate : false,
- max : 8
- });
- tagInput1.addData(['tags' , 'here'])
- }
- },
- /* ---------------------------------------------
- ## Add Listing Tab
- --------------------------------------------- */
- add_listing_tab: function() {
- if ($('#add-listing-area').length > 0) {
- var frmInfo = $('#listinfo');
- var frmInfoValidator = frmInfo.validate();
- var frmloc = $('#listlocation');
- var frmlocValidator = frmloc.validate();
- var frmCat = $('#listcat');
- var frmCatValidator = frmCat.validate();
- $('#add-listing-area').steps({
- onChange: function (currentIndex, newIndex, stepDirection) {
- // step1
- if (currentIndex === 0) {
- if (stepDirection === 'forward') {
- return frmInfo.valid();
- }
- if (stepDirection === 'backward') {
- frmInfoValidator.resetForm();
- }
- }
- // step3
- if (currentIndex === 2) {
- if (stepDirection === 'forward') {
- return frmloc.valid();
- }
- if (stepDirection === 'backward') {
- frmlocValidator.resetForm();
- }
- }
- // step4
- if (currentIndex === 3) {
- if (stepDirection === 'forward') {
- return frmCat.valid();
- }
- if (stepDirection === 'backward') {
- frmCatValidator.resetForm();
- }
- }
- return true;
- },
- onFinish: function () {
- alert('Wizard Completed');
- }
- });
- }
- },
-
- /* ---------------------------------------------
- ## Price Distance Range
- --------------------------------------------- */
- price_distance_range: function () {
- if ($('#search_distance').length > 0) {
- var onMove = function(e, percentage) {
- $(".distance-value").text((percentage).toFixed(0));
- }
- var range = new RangeSlider($("#search_distance"), {
- percentage: 60,
- onMove: onMove,
- onDown: onMove,
- pollLimit: 100
- });
- }
- if ($('#search_price').length > 0) {
- var onMove = function(e, percentage) {
- $(".price-value").text((percentage/0.005).toFixed(0));
- }
- var range = new RangeSlider($("#search_price"), {
- percentage: 30,
- onMove: onMove,
- onDown: onMove,
- pollLimit: 100
- });
- }
- },
-
- /* ---------------------------------------------
- ## Contact Form Script
- --------------------------------------------- */
- contactFormScript: function() {
- $(".hg-form-email [type='submit']").each(function(){
- var text = $(this).text();
- $(this).html("").append("<span>"+ text +"</span>").prepend("<div class='status'><i class='fas fa-circle-notch fa-spin spinner'></i></div>");
- });
- $(".hg-form-email [type='submit']").on("click", function(e){
- var $button = $(this);
- var $form = $(this).closest("form");
- var pathToPhp = $(this).closest("form").attr("data-php-path");
- $form.validate({
- submitHandler: function() {
- $button.addClass("processing");
- $.post( pathToPhp, $form.serialize(), function(response) {
- $button.addClass("done").find(".status").append(response).prop("disabled", true);
- });
- return false;
- }
- });
- });
- $("form:not(.hg-form-email)").each(function(){
- $(this).validate();
- });
- },
-
- /* ---------------------------------------------
- ## Line Chart
- ---------------------------------------------- */
- line_chart: function() {
- if ($('#simple-line-chart').length > 0) {
- new Chartist.Line('#simple-line-chart', {
- labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
- series: [
- [1, 9, 7, 8, 5, 12, 5],
- [2, 12, 9, 11, 7, 10, 3]
- ]
- }, {
- fullWidth: true,
- axisY: {
- labelInterpolationFnc: function(value) {
- return (value * 500);
- }
- },
- chartPadding: {
- right: 40
- },
- plugins: [
- Chartist.plugins.tooltip()
- ]
- });
- }
- if ($('#simple-line-chart2').length > 0) {
- //Simple line chart
- new Chartist.Line('#simple-line-chart2', {
- labels: false,
- series: [
- [1, 9, 7, 8, 5, 12, 15],
- ]
- }, {
- fullWidth: true,
- chartPadding: {
- left: -20
- },
- plugins: [
- Chartist.plugins.tooltip()
- ]
- });
- }
- },
-
-
- /* ---------------------------------------------
- ## Circle Progress
- ---------------------------------------------- */
- circle_progress: function() {
- if ($('#circle').length > 0) {
- $('#circle').circleProgress({
- value: 1,
- size: 130,
- fill: {
- color: ["#1d0176"]
- }
- });
- }
- if ($('#circle1').length > 0) {
- $('#circle1').circleProgress({
- value: 1,
- size: 130,
- fill: {
- color: ["#1d0176"]
- }
- });
- }
- },
- /* ---------------------------------------------
- function initializ
- --------------------------------------------- */
- initializ: function() {
- qayimaApp.scroll_top();
- qayimaApp.menu_script();
- qayimaApp.sticky_header();
- qayimaApp.search();
- qayimaApp.register_user();
- qayimaApp.count_down();
- qayimaApp.nice_select_data_picker();
- qayimaApp.popupscript();
- qayimaApp.review_rating();
- qayimaApp.brands_carousel();
- qayimaApp.listing_todo_single();
- qayimaApp.features_cat_carousel();
- qayimaApp.testimonial_carousel();
- qayimaApp.todos_carousel();
- qayimaApp.features_location_carousel();
- qayimaApp.megamenu_carousel();
- qayimaApp.sidebarScript();
- qayimaApp.scroll_bar();
- qayimaApp.tag_keyword();
- qayimaApp.add_listing_tab();
- qayimaApp.price_distance_range();
- qayimaApp.contactFormScript();
- qayimaApp.line_chart();
- qayimaApp.circle_progress();
- }
- };
- /* ---------------------------------------------
- Document ready function
- --------------------------------------------- */
- $(function() {
- qayimaApp.initializ();
- });
-
- })(jQuery);
|