window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-227122437-1');
$(document).ready(function(){
$("#comp-l2g69t6w").click(function(){
$(".overlay").show();
})
$(".close").click(function(){ $(".overlay").hide(); })
$(".StylableHorizontalMenu2591252333__menu li:nth-child(6)").addClass("contact-active");
$(".StylableHorizontalMenu2591252333111__menu li").click(function(){
if($(this).hasClass("contact-active")){ $("._2UgQw").hide()
$("#comp-ks1jn4xe").css({"left":"2px"})
} else{
$("._2UgQw").show() $("#comp-ks1jn4xe").css({"left":"-59px"})
}
})
})
// var pageurl=window.location.href;
// if(pageurl=="https://www.tarc.in/contact-us-1"){ // $("._2UgQw").hide() ; // $("#comp-ks1jn4xe").css({"left":"2px"})
// }
$("document").ready(function(){
$(window).on("load",function(){ debugger;
$("#bgLayers_comp-kvs4v11r" ).after("
"); $("._3Rcdf ._1ozXL").slice(4).hide(); $('#custom_pagination').pagination({
// Total number of items present // in wrapper class items: $("._1ozXL").length,
// Items allowed on a single page itemsOnPage: 4, onPageClick: function (noofele) { $("._3Rcdf ._1ozXL").hide() .slice(4*(noofele-1), 4+ 4* (noofele - 1)).show(); } });
}) })
var imgcounter = 0;
function startUpload(){ document.getElementById('f1_upload_process').style.visibility = 'visible'; $(".msg").html(''); $(".emsg").html(''); $("#f1_upload_process").show(); return true;
document.getElementById('f1_upload_process1').style.visibility = 'visible'; $(".msg").html(''); $(".emsg").html(''); $("#f1_upload_process1").show(); return true; }
function stopUpload(success){ var result = '';
if (success != '0'){
document.getElementById('result').innerHTML = 'The file was uploaded successfully! '+success+'<\/span>
'; document.getElementById('add_image_url_hidden').value = success; document.getElementById('add_overimage_url_hidden').value = success;
var did = "#img_" + imgcounter; $(did).attr("src", success);
}else { document.getElementById('result').innerHTML = 'There was an error during file upload!<\/span>
'; } // document.getElementById('myfile_div').style.visibility = 'hidden'; $("#f1_upload_process").hide();
return true; }
function stopUpload2(success){ var result1 = ''; console.log(success); if (success != ''){ // document.getElementById('result1').innerHTML = 'The file was uploaded successfully! '+success+'<\/span>
'; $('#add_overimage_url_hidden').val(success); document.getElementById('add_overimage_url_hidden').value = success; }else { document.getElementById('result1').innerHTML = 'There was an error during file upload!<\/span>
'; } $("#f1_upload_process2").hide(); return true; }