• Profilen
  • Processn
  • Portfolion

  • Skip to main content = 767 ){ $( ‘.navbar-nav > li.menu-item > a’ ).click( function(){ if( $( this ).attr(‘target’) !== ‘_blank’ ){ window.location = $( this ).attr( ‘href’ ); }else{ var win = window.open($( this ).attr( ‘href’ ), ‘_blank’); win.focus(); } }); } }); ]]> 0) { if(currpage) { window.location.href=currpage; return false; } else { window.location.href=”https://lynchmykins.com”;} } var url = window.location.href; jQuery(“#currpage”).val(url); } if(jQuery(“.contact-placeholder”).hasClass(“active”)) { return false; } jQuery.ajax({ type: ‘POST’, beforeSend: function(){ if(jQuery.inArray(pageId, [55,66]) == -1) //just an example { loading(true); } }, url: ‘https://lynchmykins.com/getdata.php’, data: { pageId:pageId,pagetype: “pagetype”,subId:subId,subsubID:subsubID }, success: function(data) { jQuery(‘body’).attr(‘id’,”); jQuery(‘body’).attr(‘id’,’pagebody-‘+pageId); jQuery(‘#colophon’).html(‘Join our team’); jQuery(‘header.common-header .contact-us’).show(); // jQuery(‘#ajxcontent’).html(data).imagesLoaded().then(function(){ // loading(false) // }); jQuery(‘#ajxcontent’).html(data); loading(false); if(pageId==51){ jQuery( “#positionlink-“+subId).click(); } jQuery(‘.loadLinkPageProfile’).click(function (e) { e.preventDefault(); var href = jQuery(this).attr(‘hrefhashless’); _redirectPageProfile(‘test’, href); //return false; }); } }); } function loading(yes) { jQuery(“.search-box”).val(”); jQuery(“.searchbox-input”).removeClass(‘active’); jQuery(“.search-result”).hide(); if (yes) { jQuery(“body”).addClass(“loading_show”); } else { setTimeout(function(){ jQuery(“body”).removeClass(“loading_show”); }, 700); } } // Fn to allow an event to fire after all images are loaded jQuery.fn.imagesLoaded = function () { // get all the images (excluding those with no src attribute) var $imgs = this.find(‘img[src!=””]’); // if there’s no images, just return an already resolved promise if (!$imgs.length) {return jQuery.Deferred().resolve().promise();} // for each image, add a deferred object to the array which resolves when the image is loaded (or if loading fails) var dfds = []; $imgs.each(function(){ var dfd = jQuery.Deferred(); dfds.push(dfd); var img = new Image(); img.onload = function(){dfd.resolve();} img.onerror = function(){dfd.resolve();} img.src = this.src; }); // return a master promise object which will resolve when all the deferred objects have resolved // IE – when all the images are loaded return jQuery.when.apply(jQuery,dfds); } function getPeopleData(postId,texType,texID) { if(jQuery(“.contact-placeholder”).hasClass(“active”)==true) { return false; } jQuery.ajax({ type: ‘POST’, beforeSend: loading(true), url: ‘https://lynchmykins.com/getpeopledata.php’, data: { postId:postId,texType:texType,texID:texID}, success: function(data) { jQuery(‘body’).attr(‘id’,”); jQuery(‘body’).attr(‘id’,’pagebody-people’) jQuery(‘#ajxcontent’).html(data); loading(false); } }); } /*people list*/ function getPeople(postId,texType,texId) { if(jQuery(“.contact-placeholder”).hasClass(“active”)==true) { return false; } jQuery.ajax({ type: ‘POST’, beforeSend: loading(true), url: ‘https://lynchmykins.com/getpeople.php’, data: { postId:postId,texType:texType,texId:texId}, success: function(data) { jQuery(‘body’).attr(‘id’,”); jQuery(‘body’).attr(‘id’,’pagebody-people’) // jQuery(‘#ajxcontent’).html(data); jQuery(‘#ajxcontent’).html(data); loading(false); } }); } /*portfolio landing page*/ function getPortfolioData(postType,texType,postId,texID) { loadingAjax = true; if(jQuery(“.contact-placeholder”).hasClass(“active”)==true) { return false; } jQuery.ajax({ type: ‘POST’, beforeSend: loading(true), url: ‘https://lynchmykins.com/getportfoliocategory.php’, data: {postType:postType,texType:texType,postId:postId,texID:texID}, success: function(data) { loadingAjax = false; jQuery(‘body’).attr(‘id’,”); jQuery(‘body’).attr(‘id’,’pagebody-portfolio’) jQuery(‘#ajxcontent’).html(data); loading(false); } }); jQuery(window).on(‘load’,function(){ loading(false); }); } /*portfolio by Caregory*/ function getPortfolioDatabyCategory(postType,texType,postId,texID) { loadingAjax = true; if(jQuery(“.contact-placeholder”).hasClass(“active”)==true) { return false; } jQuery.ajax({ type: ‘POST’, beforeSend: loading(true), url: ‘https://lynchmykins.com/getportfoliodata.php’, data: {postType:postType,texType:texType,postId:postId,texID:texID}, success: function(data) { loadingAjax = false; jQuery(‘body’).attr(‘id’,”); jQuery(‘body’).attr(‘id’,’pagebody-portfolio’) jQuery(‘#ajxcontent’).html(data); loading(false); } }); } /*portfolio Detail*/ function getPortfoliodetail(texType,texID,postId) { if(jQuery(“.contact-placeholder”).hasClass(“active”)==true) { return false; } jQuery.ajax({ type: ‘POST’, beforeSend: loading(true), url: ‘https://lynchmykins.com/getportfoliodetail.php’, data: {texType:texType,postId:postId,texID:texID}, success: function(data) { jQuery(‘body’).attr(‘id’,”); jQuery(‘body’).attr(‘id’,’pagebody-portfolio’) jQuery(‘#ajxcontent’).html(data); loading(false); } }); } /*Thank you message*/ function getthankyouContent(pageId,subId) { var name = jQuery(“#name”).val(); var postposition = jQuery(“#postposition”).val(); if(jQuery(“.contact-placeholder”).hasClass(“active”)) { return false; } jQuery.ajax({ type: ‘POST’, beforeSend:function(){ if(jQuery.inArray(pageId, [55,66]) == -1) //just an example { loading(true); } }, url: ‘https://lynchmykins.com/thanks.php’, data: { pageId:pageId,pagetype: “pagetype”,subId:subId,name:name,postposition:postposition}, success: function(data) { jQuery(‘body’).attr(‘id’,”); jQuery(‘body’).attr(‘id’,’pagebody-‘+pageId) jQuery(‘#ajxcontent’).html(data); loading(false); } }); } /*Thank you message for no position*/ function getthankyou(pageId,subId) { var name = jQuery(“#name”).val(); jQuery.ajax({ type: ‘POST’, beforeSend:loading(true), url: ‘https://lynchmykins.com/thanks.php’, data: { pageId:pageId,pagetype: “pagetype”,subId:subId,name:name}, success: function(data) { jQuery(‘body’).attr(‘id’,”); jQuery(‘body’).attr(‘id’,’pagebody-‘+pageId) jQuery(‘#ajxcontent’).html(data); loading(false); } }); } /*For mobile menu*/ var mouse_is_inside = false; jQuery(document).ready(function() { jQuery(“#logo a.loadLinkPage img”).attr(“src”,”https://lynchmykins.com/beta/wp-content/uploads/2017/09/LM-Logo.png”); jQuery(‘.contact-us’).hover(function(){ mouse_is_inside=true; }, function(){ mouse_is_inside=false; }); jQuery(“body”).on(‘click’, function () { if(! mouse_is_inside) { jQuery(“.contact-btn”).removeClass(“active”); jQuery(“.contact-placeholder”).removeClass(“active”); } }); //prevent redirection on mobile menu jQuery(‘.sfm-logo’).on(‘click’, ‘a’, function (e) { jQuery(“.sfm-sidebar-close”).click(); getContent(4); e.preventDefault(); e.stopPropagation(); return false; }); }); /*Mobile Menu*/ var sfmenu=null; jQuery(“#my-menu”).click(function() { jQuery(“.sfm-menu-item-938,.sfm-menu-item-283,.sfm-menu-item-939,.sfm-menu-item-280,.sfm-menu-item-281,.sfm-menu-item-282”).removeClass(“active”); //mobilemenuactive var curpg=jQuery(“#currpage”).val(); // if(curpg==’people’ || curpg==’engineer’ || curpg==’leadership’) // { // jQuery(“.sfm-menu-item-938”).addClass(‘active’); // jQuery(“.sfm-menu-item-938 .sfm-child-menu li”).removeClass(‘active’); // if(curpg==”people”) // { // jQuery(“.sfm-menu-item-938 .sfm-child-menu li:first-child”).addClass(‘active’); // } // if(curpg==”engineer”) // { // jQuery(“.sfm-menu-item-938 .sfm-child-menu li:nth-child(2)”).addClass(‘active’); // } // if(curpg==”leadership”) // { // jQuery(“.sfm-menu-item-938 .sfm-child-menu li:nth-child(3)”).addClass(‘active’); // } // } // else // { // if(jQuery(“.sfm-menu-item-938 .sfm-child-menu”).is(“:visible”)) // { // jQuery(“.sfm-menu-item-938 .sfm-child-menu li”).removeClass(‘active’); // jQuery(“.sfm-menu-item-938”).removeClass(‘sfm-submenu-visible’); // jQuery(“.sfm-menu-item-938 .sfm-child-menu”).css(‘display’,”none”); // } // } // if(curpg==’profile’) // { // jQuery(“.sfm-menu-item-283”).addClass(‘active’); // } // if(curpg==’process’) // { // jQuery(“.sfm-menu-item-280”).addClass(‘active’); // } // if(curpg==’contact’) // { // jQuery(“.sfm-menu-item-282”).addClass(‘active’); // } // if(curpg==’projects’ || curpg==’project-type’ || curpg==’our-expertise’) // { // jQuery(“.sfm-menu-item-939”).addClass(‘active’); // jQuery(“.sfm-menu-item-939 .sfm-child-menu li”).removeClass(‘active’); // if(curpg==”projects”) // { // jQuery(“.sfm-menu-item-939 .sfm-child-menu li:first”).addClass(‘active’); // } // if(curpg==”project-type”) // { // jQuery(“.sfm-menu-item-291″).addClass(‘active’); // } // if(curpg==”our-expertise”) // { // jQuery(“.sfm-menu-item-294”).addClass(‘active’); // } // } // else // { // jQuery(“.sfm-menu-item-939 .sfm-child-menu li”).removeClass(‘active’); // jQuery(“.sfm-menu-item-939”).removeClass(‘sfm-submenu-visible’); // jQuery(“.sfm-menu-item-939 .sfm-child-menu”).css(‘display’,”none”); // } //mobilemenuacrive if(sfmenu==null) { jQuery(‘#sfm-sidebar’).on(‘click’, ‘.sfm-menu a,.sfm-nav li a,.sfm-nav li ul li a’, function (e) { var result = jQuery(this).attr(‘href’).split(‘/’); var hrf=jQuery(this).attr(‘href’); _redirect(‘sdf’, hrf); if(hrf==”#”) { return true; } if(hrf.slice(-1)==’/’) { var slug= result[result.length-2]; } else { var slug= result[result.length-1]; } if(hrf.slice(-1)==’/’) { var slug1= result[result.length-3]; } else { var slug1= result[result.length-2]; } //For Home Page if(slug==’people’) { jQuery(“.sfm-sidebar-close”).click(); getPeople(20); e.preventDefault(); e.stopPropagation(); return false; } if(slug==’projects’) { jQuery(“.sfm-sidebar-close”).click(); getPortfolioData(‘portfolio’,’portfolio_category’,’22’,’4′); e.preventDefault(); e.stopPropagation(); return false; } //For People Page if(slug1==”people-position”) { jQuery(“.sfm-sidebar-close”).click(); getPeople(’20’,’people_position’,slug); e.preventDefault(); e.stopPropagation(); return false; } if(slug1==”people_location”) { jQuery(“.sfm-sidebar-close”).click(); getPeople(’20’,’people_location’,slug); e.preventDefault(); e.stopPropagation(); return false; } if(slug1==”people”) { jQuery(“.sfm-sidebar-close”).click(); getPeopleData(slug); e.preventDefault(); e.stopPropagation(); return false; } if(slug1==”people_job_title”) { jQuery(“.sfm-sidebar-close”).click(); getPeople(’20’,’people_job_title’,slug); e.preventDefault(); e.stopPropagation(); return false; } //portfolio if(slug1==”project-type”) { jQuery(“.sfm-sidebar-close”).click(); getPortfolioDatabyCategory(‘portfolio’,’portfolio_category’,’22’,slug); e.preventDefault(); e.stopPropagation(); return false; } if(slug1==”our-expertise”) { jQuery(“.sfm-sidebar-close”).click(); getPortfolioDatabyCategory(‘portfolio’,’our_expertise_category’,’22’,slug); e.preventDefault(); e.stopPropagation(); return false; } if(slug==’join-our-team’) { jQuery(“.sfm-sidebar-close”).click(); getContent(51,0); e.preventDefault(); e.stopPropagation(); return false; } jQuery.ajax({ type: ‘POST’, url: ‘https://lynchmykins.com/getdata.php’, data: { slug:slug}, beforeSend: loading(true), success: function(data) { jQuery(“.sfm-sidebar-close”).click(); jQuery(‘#ajxcontent’).html(data); loading(false); }, }); e.preventDefault(); e.stopPropagation(); return false; }); } sfmenu=’sfm’; }); /*Display submenu in hove menu item*/ jQuery(document).on(“hover”,’.has-submenu-people’,function() { if(jQuery(‘.main-nav’).hasClass(‘active’)){ jQuery(“.has-submenu-people”).addClass(‘active active-menu’); jQuery(“.main-nav”).addClass(‘active active-submenu’); //remove jQuery(“.has-submenu-portfolio”).removeClass(‘active active-menu’); } }); jQuery(document).on(“hover”,’.has-submenu-portfolio’,function() { if(jQuery(‘.main-nav’).hasClass(‘active’)){ jQuery(“.has-submenu-portfolio”).addClass(‘active active-menu’); jQuery(“.main-nav”).addClass(‘active active-submenu’); //remove jQuery(“.has-submenu-people”).removeClass(‘active active-menu’); } }); jQuery(document).on(“hover”,’.closeSubmenu’,function() { if(jQuery(‘.main-nav’).hasClass(‘active’)){ jQuery(“.has-submenu-portfolio”).removeClass(‘active active-menu’); jQuery(“.main-nav”).removeClass(‘active-submenu’); jQuery(“.has-submenu-people”).removeClass(‘active active-menu’); } }); ]]>= 3) { if (searchRequest != null) searchRequest.abort(); searchRequest= jQuery.ajax({ type: “POST”, // async: false, url: “https://lynchmykins.com/getsearch.php”, data:’keyword=’+jQuery(this).val(), beforeSend:searchloading(true), success: function(data){ if(data!=””) { searchloading(false); jQuery(“.search-result”).show(); jQuery(“.search-result”).html(data); } else { jQuery(“.search-result”).hide(); } jQuery(‘.loadLinkPage’).click(function (e) { e.preventDefault(); var href = jQuery(this).attr(‘href’); _redirect(‘test’, href); return false; }); } }); } else { searchloading(false); jQuery(“.search-result”).html(”); jQuery(“.search-result”).hide(); } }); jQuery(‘.loadLinkPageProfile’).click(function (e) { e.preventDefault(); var href = jQuery(this).attr(‘hrefhashless’); _redirectPageProfile(‘test’, href); //return false; }); }); jQuery(‘.searchbox,.search-result’).on(‘click’, function (event) { event.stopPropagation(); }); jQuery(‘.search-result’).on(‘click’, function (event) { if(!jQuery(event.target).is(‘a’)){ event.preventDefault(); return; } else { jQuery(“.search-result”).hide(); jQuery(“.search-box”).val(”); jQuery(“.searchbox-input”).removeClass(‘active’); } }); function searchloading(yes) { if (yes) { jQuery(“.fa-spinner”).remove(); jQuery(“.searchbox-icon”).prepend(‘‘); } else { jQuery(“.fa-spinner”).remove(); } } // (function (global) { // if(typeof (global) === “undefined”) { // throw new Error(“window is undefined”); // } // var _hash = “!”; // var noBackPlease = function () { // global.location.href += “#”; // // making sure we have the fruit available for juice (^__^) // global.setTimeout(function () { // global.location.href += “!”; // }, 50); // }; // global.onhashchange = function () { // if (global.location.hash !== _hash) { // global.location.hash = _hash; // } // }; // global.onload = function () { // noBackPlease(); // // disables backspace on page except on input fields and textarea.. // document.body.onkeydown = function (e) { // var elm = e.target.nodeName.toLowerCase(); // if (e.which === 8 && (elm !== ‘input’ && elm !== ‘textarea’)) { // e.preventDefault(); // } // // stopping event bubbling up the DOM tree.. // e.stopPropagation(); // }; // } // })(window); jQuery(document).on(‘change’,’.fileuploadfield1′,function(){ jQuery(“#uploadtextfield1″).val(this.files && this.files.length ? this.files[0].name : this.value.replace(/^C:\fakepath\/i, ”)); }); jQuery(document).on(‘change’,’.fileuploadfield2′,function(){ jQuery(“#uploadtextfield2″).val(this.files && this.files.length ? this.files[0].name : this.value.replace(/^C:\fakepath\/i, ”)); }); jQuery(document).on(‘change’,’.fileuploadfield3′,function(){ jQuery(“#uploadtextfield3″).val(this.files && this.files.length ? this.files[0].name : this.value.replace(/^C:\fakepath\/i, ”)); }); /* change browser url -start*/ jQuery(document).on(“click”, ‘.loadLinkPage’, function (e) { e.preventDefault(); var href = jQuery(this).attr(‘href’); _redirect(‘test’, href); return false; }); function _redirect(page, url) { if (typeof (history.pushState) != “undefined”) { var obj = { Page: page, Url: url }; //document.title = page; jQuery.ajax({ url: url, success: function (data) { var title = jQuery(data).filter(“title”).text(); document.title = title; } }); history.pushState(obj, obj.Page, obj.Url); } else { alert(“Browser does not support HTML5.”); } } function _redirectPageProfile(page, url) { if (typeof (history.pushState) != “undefined”) { var obj = { Page: page, Url: url }; //document.title = page; jQuery.ajax({ url: url, success: function (data) { //var title = jQuery(data).filter(“title”).text(); document.title = ‘Profile – Lynch Mykins’; } }); history.pushState(obj, obj.Page, obj.Url); } else { alert(“Browser does not support HTML5.”); } } jQuery( document ).ready(function( $ ) { $(window).on(‘popstate’, function() { var str1 = location.href; var str2 = “#”; if(str1.indexOf(str2) != -1){ return false; } location.reload(true); }); }); /* change browser url -end*/ /* Search form submit*/ jQuery(“#ser-btn”).click(function(){ var serVal=jQuery(“.serval”).val(); if(serVal!=””){ jQuery(“#search”).val(serVal); jQuery(‘#ser-form’).submit(); } }); jQuery(“#ser-btn-mobile”).click(function(){ var serVal=jQuery(“.servalmb”).val(); if(serVal!=””){ jQuery(“#search”).val(serVal); jQuery(‘#ser-form’).submit(); } }); jQuery(‘input’).on(‘keypress’, function(e) { var code = e.keyCode || e.which; if(code==13){ var serVal=jQuery(“.serval”).val(); if(serVal!=””){ jQuery(“#search”).val(serVal); jQuery(‘#ser-form’).submit(); } var serVal=jQuery(“.servalmb”).val(); if(serVal!=””){ jQuery(“#search”).val(serVal); jQuery(‘#ser-form’).submit(); } } }); jQuery( document ).ready(function() { //console.log( “ready!” ); jQuery(“#logo a”).click(function(){ if(jQuery(‘.fancybox-is-open’).length){ jQuery( “.fancybox-button–close” ).trigger( “click” ); } //alert(‘Working’); //console.log( “ready!” ); //jQuery(“input”).trigger(“select”); }); jQuery(‘.join-our-team-form-holder’).on( ‘click’, ‘.wpcf7-submit’, function () { alert(‘Working’); }); }); ]]>

    Source

    By admin

    Leave a Reply

    Your email address will not be published. Required fields are marked *