1// var serviceurl = "https://thevoiceoffashion.com/services/"; 2// var baseurl = "https://thevoiceoffashion.com/"; 3 4 /*================================================================================================ 5 No : 1 6 Service Name : about 7 Purpose : get about us data 8 Create By : Dilip kumawat 9 Created On : 14-07-2018 10 ================================================================================================*/ 11 function getaboutdata(){ 12 $.ajax({ 13 url: serviceurl+'about/about', 14 type: 'POST', 15 contentType: 'application/json; charset=utf-8', 16 datatype: 'JSON', 17 async: false, 18 success: function(data) 19 { 20 var value = /*JSON.parse*/(data); 21 var banner = value.banner; 22 var text = value.text; 23 var image = value.image; 24 var appinfo = value.appinfo; 25 var teamintro = value.teamintro; 26 // $('.bannerTop').css('background-image','url('+banner+')'); 27 $('.bannerTop img').attr('src', banner); 28 $('.aboutInfoImg').css('background-image','url('+image+')'); 29 $("#textabout").html(text); 30 $("#appinfo").html(appinfo); 31 $("#teamintro").html(teamintro); 32// var teamdata = ''; 33// for(var i = 0; i < value.team.length; i++){ 34// var id = value.team[i].id; 35// var name = value.team[i].name; 36// var designation = value.team[i].designation; 37// var twitter = value.team[i].twitter; 38// var instagram = value.team[i].instagram; 39// teamdata += '<div class="peopleIn"><div class="peopleInfo"><h6 style="cursor:pointer;" onclick="authorsDetail(\''+id+'\',event)">'+name+'</h6><p>'+designation+'</p></div><div class="peopleConnect"><a class="transition" href="'+twitter+'" target="_blank"><img src="'+baseurl+'assets/website/images/tw.svg" alt="Twitter"></a><a class="transition" href="'+instagram+'" target="_blank"><img src="'+baseurl+'assets/website/images/in.svg" alt="Linkedin"></a></div></div>'; 40// } 41// $(".peopleOut").html(teamdata); 42 } 43 }); 44 } 45 46 /*================================================================================================ 47 No : 2 48 Service Name : terms 49 Purpose : get terms data 50 Create By : Dilip kumawat 51 Created On : 14-07-2018 52 ================================================================================================*/ 53 function gettermsdata(){ 54 $.ajax({ 55 url: serviceurl+'about/terms', 56 type: 'POST', 57 contentType: 'application/json; charset=utf-8', 58 datatype: 'JSON', 59 async: false, 60 success: function(data) 61 { 62 var value = /*JSON.parse*/(data); 63 var terms = value.terms; 64 $(".staticSection").html(terms); 65 } 66 }); 67 } 68 /*================================================================================================ 69 No : 3 70 Service Name : faqs 71 Purpose : get faqs data 72 Create By : Dilip kumawat 73 Created On : 14-07-2018 74 ================================================================================================*/ 75 function getfaqsdata(){ 76 $.ajax({ 77 url: serviceurl+'about/faqs', 78 type: 'POST', 79 contentType: 'application/json; charset=utf-8', 80 datatype: 'JSON', 81 async: false, 82 success: function(data) 83 { 84 var faqhtml = ""; 85 var value = /*JSON.parse*/(data); 86 for(var i = 0; i < value.faqs.length; i++){ 87 faqhtml+='<h5>'+value.faqs[i].question+'</h5><p>'+value.faqs[i].answer+'<p>'; 88 } 89 $(".staticSection").html(faqhtml); 90 } 91 }); 92 } 93 /*================================================================================================ 94 No : 4 95 Service Name : privacy 96 Purpose : get privacy data 97 Create By : Dilip kumawat 98 Created On : 14-07-2018 99 ================================================================================================*/ 100 function getPrivacydata(){ 101 $.ajax({ 102 url: serviceurl+'about/privacy', 103 type: 'POST', 104 contentType: 'application/json; charset=utf-8', 105 datatype: 'JSON', 106 async: false, 107 success: function(data) 108 { 109 var value = /*JSON.parse*/(data); 110 var privacy = value.privacy; 111 $(".staticSection").html(privacy); 112 } 113 }); 114 } 115 116 /*================================================================================================ 117 No : 4 118 Service Name : contact 119 Purpose : contact 120 Create By : Dilip kumawat 121 Created On : 20-07-2018 122 ================================================================================================*/ 123 function saveEnquiry() 124 {
125 var validFlag =0; 126 var name = ($("#name").val()).trim(); 127 var email = $("#email").val(); 128 var mobile = ($("#mobile").val()).trim(); 129 var message = ($("#message").val()).trim(); 130 var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 131 if(name=="") 132 { 133 $("#name").val(''); 134 $(".nameError").show(); 135 validFlag = 1; 136 } 137 if(email=="") 138 { 139 $(".emptyEmailErrC").show(); 140 $(".validEmailErrC").hide(); 141 validFlag = 1; 142 } 143 if (!filter.test(email)) 144 { 145 $(".validEmailErrC").show(); 146 $(".emptyEmailErrC").hide(); 147 validFlag = 1; 148 } 149 if(mobile=="") 150 { 151 $("#mobile").val(''); 152 $(".emptyMobErr").show(); 153 $(".validMobErr").hide(); 154 validFlag = 1; 155 } 156 else if(isNaN(mobile)) 157 { 158 $(".validMobErr").show(); 159 $(".emptyMobErr").hide(); 160 validFlag = 1; 161 } 162 if(message=="") 163 { 164 $("#message").val('') 165 $(".msgerror").show(); 166 validFlag = 1; 167 } 168 if(validFlag==0) 169 { 170 var data = {"name":name,"email":email,"mobile":mobile,"message":message}; 171 $.ajax({ 172 url: serviceurl+'about/saveEnquiry', 173 type: 'POST', 174 mimeType: "multipart/form-data", 175 contentType: false, 176 cache: false, 177 processData: false, 178 data: JSON.stringify(data), 179 success: function(data) 180 { 181 var value = /*JSON.parse*/(data); 182 if(value.status == 'success') 183 { 184 $('#successmsg').fadeIn(1000); 185 setTimeout(function(){ 186 $('#successmsg').fadeOut(); 187 $("#name").val(''); 188 $("#email").val(''); 189 $("#mobile").val(''); 190 $("#message").val(''); 191 }, 2000); 192 } 193 } 194 }); 195 } 196 } 197 function contacterror(error1,error2) 198 { 199 $("."+error1).hide(); 200 $("."+error2).hide(); 201 }
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.