/* ================================= ------------------------------------ Civic - CV Resume Version: 1.0 ------------------------------------ ====================================*/ 'use strict'; $(window).on('load', function() { /*------------------ Preloder --------------------*/ $(".loader").fadeOut(); $("#preloder").delay(400).fadeOut("slow"); }); /*------------------ Background set --------------------*/ // document.addEventListener("DOMContentLoaded", function() { $(document).ready(function() { $('.set-bg').each(function() { var bg = $(this).data('setbg'); $(this).css('background-image', 'url(' + bg + ')'); }); }); (function($) { $('.review-slider').owlCarousel({ loop: true, nav: false, dots: true, items: 1, autoplay: true }); $('.progress-bar-style').each(function() { var progress = $(this).data("progress"); var prog_width = progress + '%'; if (progress <= 100) { $(this).append('
'); } else { $(this).append(' '); } }); $('.lan-prog').each(function() { var progress = $(this).data("lanprogesss"); var ele = ''; var ele_fade = ''; for (var i = 1; i <= 5; i++) { if(i <= progress){ $(this).append(ele); } else { $(this).append(ele_fade); } } }); /*------------------ Popup --------------------*/ $('.portfolio-item .port-pic').magnificPopup({ type: 'image', mainClass: 'img-popup-warp', removalDelay: 500, }); if($().circleProgress){ //Set progress circle 1 $("#progress1").circleProgress({ value: 0.75, size: 175, thickness: 2, fill: "#40424a", emptyFill: "rgba(0, 0, 0, 0)" }); //Set progress circle 2 $("#progress2").circleProgress({ value: 0.83, size: 175, thickness: 2, fill: "#40424a", emptyFill: "rgba(0, 0, 0, 0)" }); //Set progress circle white $("#progress3").circleProgress({ value: 0.75, size: 175, thickness: 2, fill: "#ffffff", emptyFill: "rgba(0, 0, 0, 0)" }); //Set progress circle white $("#progress4").circleProgress({ value: 0.83, size: 175, thickness: 2, fill: "#ffffff", emptyFill: "rgba(0, 0, 0, 0)" }); //Set progress circle skyblue $("#progress5").circleProgress({ value: 0.75, size: 175, thickness: 2, fill: "#009fff", emptyFill: "rgba(0, 0, 0, 0)" }); //Set progress circle skyblue $("#progress6").circleProgress({ value: 0.83, size: 175, thickness: 2, fill: "#009fff", emptyFill: "rgba(0, 0, 0, 0)" }); } })(jQuery);