1jQuery.event.special.touchstart = { 2 setup: function( _, ns, handle ) { 3 this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") }); 4 } 5}; 6jQuery.event.special.touchmove = { 7 setup: function( _, ns, handle ) { 8 this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") }); 9 } 10}; 11jQuery.event.special.wheel = { 12 setup: function( _, ns, handle ){ 13 this.addEventListener("wheel", handle, { passive: true }); 14 } 15}; 16jQuery.event.special.mousewheel = { 17 setup: function( _, ns, handle ){ 18 this.addEventListener("mousewheel", handle, { passive: true }); 19 } 20}; 21 22(function ($) { 23 $(window).scroll(function(){ 24 if ($(this).scrollTop() > 50) { 25 $('header').addClass('sticky'); 26 } else { 27 $('header').removeClass('sticky'); 28 } 29 }); 30 $(document).ready(function(){ 31 $('.work-link').on('click',function(e){ 32 e.preventDefault(); 33 $('.subMenu').toggleClass('openSubMenu'); 34 e.stopPropagation(); 35 }); 36 $(document).click(function(event) { 37 const menu = $('.subMenu'); 38 const targetElement = $(event.target); 39 40 // Check if the clicked element is not inside the menu 41 if (!menu.is(targetElement)) { 42 menu.removeClass('openSubMenu'); 43 } 44 }); 45 46// $('.service-link').on('click',function(e){ 47// e.preventDefault(); 48// $('.subMenuService').toggleClass('openSubMenu') 49// e.stopPropagation(); 50// }); 51 $('.recent-slider').slick({ 52 dots: false, 53 infinite: true, 54 slidesToShow: 1, 55 autoplaySpeed: 5000, 56 speed: 1000, 57 autoplay: true, 58 slidesToScroll: 1, 59 arrows: false, 60 adaptiveHeight: false, 61 }); 62 $(".prev-btn").click(function () { 63 $(".recent-slider").slick("slickPrev"); 64 }); 65 $(".next-btn").click(function () { 66 $(".recent-slider").slick("slickNext"); 67 }); 68 var sliderTimer = 5000; 69 function progressBar(){ 70 $('.slider-progress').find('span').removeAttr('style'); 71 $('.slider-progress').find('span').removeClass('active'); 72 setTimeout(function(){ 73 $('.slider-progress').find('span').css('transition-duration', (sliderTimer/1000)+'s').addClass('active'); 74 }, 100); 75 } 76 progressBar(); 77 $('.recent-slider').on('beforeChange', function(e, slick, currentSlide, nextSlide) { 78 progressBar(); 79 }); 80 var updateSliderCounter = function(slick, currentIndex) { 81 currentSlide = slick.slickCurrentSlide() + 1; 82 slidesCount = slick.slideCount; 83 $('.number-inner').text(currentSlide + '/' +slidesCount) 84 }; 85 $('.recent-slider').on('init', function(event, slick) { 86 $('.recent-slider').append(sliderCounter); 87 updateSliderCounter(slick); 88 }); 89 $('.recent-slider').on('afterChange', function(event, slick, currentSlide) { 90 updateSliderCounter(slick, currentSlide); 91 }); 92 var menuElement = '<div class="contactBlock"><h3 class="contactHeading">Letâs create experiences together.</h3><p class="conSubtitle mobileHide">We value our connection and want to create lasting memories</p><a href="/contact_us"><button class="primary-button" type="button">Letâs Talk</button></a></div>'; 93 $('header .toggle-menu-header .wp-block-navigation__responsive-dialog').append(menuElement); 94 95 var mobileMenuLog = '<img alt="logo" src="http://157.245.104.64:3013/wp-content/uploads/2020/04/[email protected]" width="200" height="18" class="mobile-logo">'; 96 $('.toggle-menu-header .wp-block-navigation__responsive-close ').append(mobileMenuLog); 97 98 var emailId = '<ul class="email-wrapper"><a href="mailto: [email protected]">[email protected]</a></ul>'; 99 $('header .toggle-menu-header .wp-block-social-links').append(emailId); 100 101 $( "header .toggle-menu-header .wp-block-social-links li" ).wrapAll( "<ul class='header-social-icon-wrapper'></ul>" ); 102 var windowSize = $(window).width(); 103 if (windowSize <= 767){$( "li.wp-block-navigation-item.mobile-hide" ).wrapAll( "<ul class='mobile-second-menu'></ul>" );} 104 var buttonIcon = '<img src="http://157.245.104.64:3013/wp-content/uploads/2023/08/button-arrow.svg" class="button-arrow" width="24" height="24"/>'; 105 $('.primary-button,.loadMoreBtn-label,.secondary-button').append(buttonIcon); 106 $(".linkedin-icon svg").replaceWith('<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
106<path d="M0 1.68258C0 1.19487 0.180185 0.792512 0.540541 0.475513C0.900896 0.158499 1.36937 0 1.94595 0C2.51223 0 2.97039 0.156056 3.32046 0.468197C3.68082 0.790083 3.861 1.2095 3.861 1.72648C3.861 2.19468 3.68598 2.58483 3.33591 2.89697C2.97555 3.21886 2.50193 3.3798 1.91506 3.3798H1.89961C1.33333 3.3798 0.875166 3.21886 0.525097 2.89697C0.175027 2.57509 0 2.17029 0 1.68258ZM0.200772 14.4849V4.71124H3.62934V14.4849H0.200772ZM5.52896 14.4849H8.95753V9.02743C8.95753 8.68603 8.99872 8.42267 9.08108 8.23735C9.22522 7.9057 9.44401 7.62527 9.73745 7.39606C10.0309 7.16683 10.399 7.05223 10.8417 7.05223C11.9949 7.05223 12.5714 7.78866 12.5714 9.26153V14.4849H16V8.88112C16 7.43751 15.6396 6.34261 14.9189 5.59642C14.1982 4.85023 13.2458 4.47714 12.0618 4.47714C10.7336 4.47714 9.69884 5.01849 8.95753 6.1012V6.13046H8.94209L8.95753 6.1012V4.71124H5.52896C5.54954 5.02336 5.55985 5.99389 5.55985 7.62284C5.55985 9.25177 5.54954 11.5391 5.52896 14.4849Z" fill="white"></path></svg>'); 107 $(".facebook-icon svg").replaceWith('<svg width="9" height="16" viewBox="0 0 9 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.86926 8.93204L8.3057 6.05825H5.57558V4.19417C5.57558 3.40777 5.95626 2.64078 7.17904 2.64078H8.42105V0.194175C8.42105 0.194175 7.2944 0 6.21774 0C3.96828 0 2.4994 1.3767 2.4994 3.86796V6.05825H0V8.93204H2.4994V15.8796C3.0012 15.9592 3.51454 16 4.03749 16C4.56044 16 5.07378 15.9592 5.57558 15.8796V8.93204H7.86926Z" fill="white"/></svg>'); 108 $(".medium-icon svg").replaceWith('<svg width="20" height="16" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.068 2.49218L19.6 1.10372V0.799805H14.2928L10.5104 9.71871L6.20719 0.799805H0.642394V1.10372L2.43199 3.14473C2.60639 3.29555 2.69759 3.5161 2.67439 3.73816V11.759C2.72959 12.0477 2.63039 12.3448 2.41599 12.5548L0.399994 14.8694V15.1695H6.11599V14.8656L4.09999 12.5548C3.88159 12.3441 3.77839 12.0523 3.82239 11.759V4.82119L8.83999 15.1733H9.42319L13.7376 4.82119V13.0678C13.7376 13.2854 13.7376 13.3301 13.5872 13.4726L12.0352 14.8951V15.1998H19.5648V14.8959L18.0688 13.5082C17.9376 13.4142 17.8696 13.2566 17.8976 13.1035V2.8969C17.8696 2.74305 17.9368 2.5854 18.068 2.49218Z" fill="white"/></svg>'); 109}); 110function updatefooterIndustry(data) { 111 var footerIndustry = '<div class="industries"><a href="https://procreator.design/industries"><p class="serviceHeading">Industries</p></a><div class="listContainer">'; 112 data.forEach(function(item_industry) { 113 footerIndustry += '<div class="verticalDivider"></div><a href="https://procreator.design/industries/' + item_industry.slug +'" class="induLink">'+ item_industry.name + '</a>'; 114 }); 115 footerIndustry +='</div></div>'; 116 $('footer .industry-menu-wrapper').append(footerIndustry); 117} 118function updatefooterService(data) { 119 var footerService = '<div class="serviceMenu">'; 120 data.forEach(function(item) { 121 footerService += '<div><a href="https://procreator.design/services?serviceid='+ item.slug + '"><p class="serviceHeading borderBottom">'+ item.name + '</p></a><ul class="menuListCont">'; 122 item.sub_services.forEach(function(itemSub) { 123 footerService += '<li class="menuListEl"><a href="https://procreator.design/services/'+ itemSub.slug +'" class="subMenuLink">'+ itemSub.name +'</a> </li>'; 124 }); 125 footerService +='</ul></div>'; 126 }); 127 footerService +='</div>'; 128 $('footer .service-menu-wrapper').append(footerService); 129} 130function updateHeaderWork(data) { 131 var headerWork = '<div class="subMenuContainer"><div class="work-wrapper"><div class="leftBlock"><div class="heading-mainwrapper"><div class="heading-wrapper"><div class="indicator"></div><h2 class="heading">FEATURED PORTFOLIO</h2></div></div><ul class="workGrid">'; 132 data.forEach(function(item_header) { 133 headerWork += '<li><a href="https://procreator.design/portfolio/detail/'+ item_header.project_id + '" class="workListItem"><img src="'+item_header.thumbnail_image_url + '" alt="' + item_header.project_id +'" class="workLogo" width="130" height="100" /><div class="details"><h4 class="name">'+ item_header.project_name +'</h4><p class="shortDesc">'+ item_header.short_description +'</p></div></a></li>'; 134 }); 135 headerWork +='</ul></div><div><div class="verticle-divider menu"></div><div class="allBlock"><h5 class="title">Check out all the impact we have created so far</h5><a href="https://procreator.design/portfolio/listing"><button class="primary-button">VIEW ALL WORK</button></a></div></div></div></div>'; 136 $('.subMenu').append(headerWork); 137} 138function clearHeaderWork() { 139 var headerWorkElement = document.querySelector('.subMenu'); 140 headerWorkElement.innerHTML = ''; 141} 142// document.addEventListener("DOMContentLoaded", function () { 143// document.documentElement.classList.add('no-scroll'); 144// window.addEventListener('load', function() { 145// document.getElementById('loader-container').style.display = 'none'; 146// document.documentElement.classList.remove('no-scroll'); 147// }); 148// var apiButton = document.getElementsByClassName("work-link")[0]; 149// axios.get("https://siteapi.procreator.design/server/api/v3/service") 150// .then(function (response) { 151// updatefooterService(response.data.result); 152// }) 153// .catch(function (error) { 154// console.error(error); 155// }); 156// axios.get("https://siteapi.procreator.design/server/api/v3/industry/fetch") 157// .then(function (response) { 158// updatefooterIndustry(response.data.result); 159// }) 160// .catch(function (error) { 161// console.error(error); 162// }); 163// apiButton.addEventListener("click", function () { 164// axios.get("https://siteapi.procreator.design/server/api/v3/portfolio/fetch-listing?featured=6") 165// .then(function (response) { 166// clearHeaderWork(); 167// updateHeaderWork(response.data.result.portfolios); 168// }) 169// .catch(function (error) { 170// console.error(error); 171// }); 172// }); 173// }); 174 $(document).ready(function() { 175 // Get the src attribute of the img tag 176 var imageUrl = $('.avtar-author-image img').attr('src'); 177 178 // Check if the URL contains ".png" 179// if (imageUrl.includes('.png')) { 180// // Remove the substring before the ".png" extension 181// imageUrl = imageUrl.replace("-300x300", ""); 182// // Update the src attribute with the modified URL 183// $('.avtar-author-image img').attr('src', imageUrl); 184// } 185}); 186 $(document).ready(function() { 187 $('.wp-block-navigation').on('click', function() { 188 $('.wp-block-navigation__responsive-container .wp-block-navigation-item__label').toggleClass('is-menu-open'); 189 }); 190 function msToTime(ms) { 191 let seconds = (ms / 1000).toFixed(1);let minutes = (ms / (1000 * 60)).toFixed(1); 192 let hours = (ms / (1000 * 60 * 60)).toFixed(1); 193 if (seconds < 60) return seconds + " Seconds"; 194 else if (minutes < 60) return minutes + " Minutes";else return hours + " Hours"; 195 } 196 var elements = document.getElementsByClassName("course-ms"); 197 198 for (var i = 0, len = elements.length; i < len; i++) { 199 var times=msToTime(elements[i].innerHTML) 200 elements[i].innerHTML=times 201 } 202 203 }); 204 205})(jQuery); 206jQuery(function ($) { 207 var page = 2; 208 var loading = false;
209 var $loadMoreButton = $('.load-more-button'); 210 var $postContainer = $('.post-container'); 211 212 $loadMoreButton.on('click', function () { 213 if (!loading) { 214 loading = true; 215 $loadMoreButton.html('Loading...'); 216 217 $.ajax({ 218 url: my_ajax_object.ajax_url, 219 type: 'post', 220 data: { 221 action: 'load_more_posts', 222 page: page, 223 }, 224 success: function (response) { 225 if (response) { 226 $postContainer.append(response); 227 $loadMoreButton.html('Load More'); 228 page++; 229 loading = false; 230 } else { 231 $loadMoreButton.html('No more posts to load.'); 232 } 233 }, 234 }); 235 } 236 }); 237}); 238document.addEventListener("DOMContentLoaded", function() { 239 // Select all <p> tags in the document 240 var paragraphs = document.querySelectorAll('p'); 241 242 // Loop through all <p> tags 243 paragraphs.forEach(function(paragraph) { 244 // Check if the paragraph is empty or contains only whitespace 245 if (paragraph.innerHTML.trim() === '') { 246 // Remove the paragraph 247 paragraph.parentNode.removeChild(paragraph); 248 } 249 }); 250 var range = document.getElementById("salary-range"); 251 if (range) { 252 var range = range.innerHTML; 253 rangereplace = range.replace(/[&\/\\#+()$~%.'":*?<>{}]/g, ''); 254 var values = rangereplace.split(","); 255 var para = document.getElementById("salary-range"); 256 para.innerHTML = "$" + values[0]/1000+"k - $"+ values[1]/1000+ "k"; 257 } 258 document.querySelectorAll('.topic-item .detail-wrapper p').forEach(element => { 259 element.innerHTML = element.innerHTML.replace('.0 Topics', ' Topics'); 260 }); 261}); 262function toggleFAQ(faqNumber) { 263 const faqs = document.getElementsByClassName('faq-answer'); 264 for (let i = 0; i < faqs.length; i++) { 265 faqs[i].style.display = 'none'; 266 } 267 const faqAnswer = document.getElementById(`faq${faqNumber}`); 268 faqAnswer.style.display = 'block'; 269} 270 271document.addEventListener("DOMContentLoaded", function() { 272 // Get the 'li' element that should be clicked 273 var targetLi = document.querySelector(".wp-block-navigation-item.has-child"); 274 275 // Get the 'offering-menu' element 276 var offeringMenu = document.querySelector("ul.offering-menu"); 277 278 279 if (targetLi && offeringMenu) { 280 targetLi.addEventListener("click", function() { 281 console.log('sss') 282 // Toggle the 'hidden' class on the offering-menu element 283 offeringMenu.classList.toggle("hidden-menu"); 284 }); 285 } 286});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.