1function toggle_visibility() { 2 /*var e = document.getElementById("feedback-main"); 3 if (e.style.display == "block") e.style.display = "none"; 4 else e.style.display = "block"; 5 */ 6} 7var feedbackid=""; 8 9$(function () { 10 var parcent = 0; 11 $(document).on("click","#resetfeedbackForm",function() 12 { 13 14 }) 15 $(document).on("change","#feedback-parcent",function() 16 { 17 console.log("feedback changed $(this)).val()=", $(this).val()); 18 if($("#btnfeed") 19 .attr("disabled")){ 20 $("#btnfeed") 21 .attr("disabled", false); 22 } 23 24 }); 25 $("#star0") 26 .click(function () { 27 $("#star0").css("color", "orange"); 28 $("#star1").css("color", "black"); 29 $("#star2").css("color", "black"); 30 $("#star3").css("color", "black"); 31 $("#star4").css("color", "black"); 32 $("#star5").css("color", "black"); 33 parcent = 0; 34 $("#feedback-parcent").val(parcent).trigger('change'); 35 $("#feedstatus") 36 .html("Your rate is " + parcent + "%") 37 .css("color", "green"); 38 }) 39 .hover(function () { 40 $("#star0").css("color", "orange"); 41 $("#star1").css("color", "black"); 42 $("#star2").css("color", "black"); 43 $("#star3").css("color", "black"); 44 $("#star4").css("color", "black"); 45 $("#star5").css("color", "black"); 46 47 parcent = 0; 48 $("#feedback-parcent").val(parcent).trigger('change'); 49 $("#feedstatus") 50 .html("Your rate is " + parcent + "%") 51 .css("color", "green"); 52 }); 53 54 $("#star1") 55 .click(function () { 56 $("#star0").css("color", "orange"); 57 $("#star1").css("color", "orange"); 58 $("#star2").css("color", "black"); 59 $("#star3").css("color", "black"); 60 $("#star4").css("color", "black"); 61 $("#star5").css("color", "black"); 62 parcent = 20; 63 $("#feedstatus") 64 .html("Your rate is " + parcent + "%") 65 .css("color", "green"); 66 }) 67 .hover(function () { 68 $("#star0").css("color", "orange"); 69 $("#star1").css("color", "orange"); 70 $("#star2").css("color", "black"); 71 $("#star3").css("color", "black"); 72 $("#star4").css("color", "black"); 73 $("#star5").css("color", "black"); 74 75 parcent = 20; 76 $("#feedback-parcent").val(parcent).trigger('change'); 77 $("#feedstatus") 78 .html("Your rate is " + parcent + "%") 79 .css("color", "green"); 80 }); 81 82 $("#star2") 83 .click(function () { 84 $("#star0").css("color", "orange"); 85 $("#star1").css("color", "orange"); 86 $("#star2").css("color", "orange"); 87 $("#star3").css("color", "black"); 88 $("#star4").css("color", "black"); 89 $("#star5").css("color", "black"); 90 parcent = 40; 91 $("#feedback-parcent").val(parcent).trigger('change'); 92 $("#feedstatus") 93 .html("Your rate is " + parcent + "%") 94 .css("color", "green"); 95 }) 96 .hover(function () { 97 $("#star0").css("color", "orange"); 98 $("#star1").css("color", "orange"); 99 $("#star2").css("color", "orange"); 100 $("#star3").css("color", "black"); 101 $("#star4").css("color", "black"); 102 $("#star5").css("color", "black"); 103 parcent = 40; 104 $("#feedback-parcent").val(parcent).trigger('change'); 105 $("#feedstatus") 106 .html("Your rate is " + parcent + "%") 107 .css("color", "green"); 108 }); 109 110 $("#star3") 111 .click(function () { 112 $("#star0").css("color", "orange"); 113 $("#star1").css("color", "orange"); 114 $("#star2").css("color", "orange"); 115 $("#star3").css("color", "orange"); 116 $("#star4").css("color", "black"); 117 $("#star5").css("color", "black"); 118 parcent = 60; 119 $("#feedstatus") 120 .html("Your rate is " + parcent + "%") 121 .css("color", "green"); 122 }) 123 .hover(function () { 124 $("#star0").css("color", "orange"); 125 $("#star1").css("color", "orange"); 126 $("#star2").css("color", "orange"); 127 $("#star3").css("color", "orange"); 128 $("#star4").css("color", "black"); 129 $("#star5").css("color", "black"); 130 parcent = 60; 131 $("#feedback-parcent").val(parcent).trigger('change'); 132 $("#feedstatus") 133 .html("Your rate is " + parcent + "%") 134 .css("color", "green"); 135 }); 136 137 $("#star4") 138 .click(function () { 139 $("#star0").css("color", "orange"); 140 $("#star1").css("color", "orange"); 141 $("#star2").css("color", "orange");
142 $("#star3").css("color", "orange"); 143 $("#star4").css("color", "orange"); 144 $("#star5").css("color", "black"); 145 parcent = 80; 146 $("#feedstatus") 147 .html("Your rate is " + parcent + "%") 148 .css("color", "green"); 149 }) 150 .hover(function () { 151 $("#star0").css("color", "orange"); 152 $("#star1").css("color", "orange"); 153 $("#star2").css("color", "orange"); 154 $("#star3").css("color", "orange"); 155 $("#star4").css("color", "orange"); 156 $("#star5").css("color", "black"); 157 parcent = 80; 158 $("#feedback-parcent").val(parcent).trigger('change'); 159 $("#feedstatus") 160 .html("Your rate is " + parcent + "%") 161 .css("color", "green"); 162 }); 163 164 $("#star5") 165 .click(function () { 166 $("#star0").css("color", "orange"); 167 $("#star1").css("color", "orange"); 168 $("#star2").css("color", "orange"); 169 $("#star3").css("color", "orange"); 170 $("#star4").css("color", "orange"); 171 $("#star5").css("color", "orange"); 172 parcent = 100; 173 $("#feedback-parcent").val(parcent).trigger('change'); 174 $("#feedstatus") 175 .html("Your rate is " + parcent + "%") 176 .css("color", "green"); 177 }) 178 .hover(function () { 179 $("#star0").css("color", "orange"); 180 $("#star1").css("color", "orange"); 181 $("#star2").css("color", "orange"); 182 $("#star3").css("color", "orange"); 183 $("#star4").css("color", "orange"); 184 $("#star5").css("color", "orange"); 185 parcent = 100; 186 $("#feedback-parcent").val(parcent).trigger('change'); 187 $("#feedstatus") 188 .html("Your rate is " + parcent + "%") 189 .css("color", "green"); 190 }); 191 192 $("#btnfeed").click(function () { 193 $(this).html( 194 '<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Loading...' 195 ) 196 .attr("disabled", true); 197 $.post( 198 "/dist/phoenix/V1.0/phpActions/feedback.php", 199 200 { 201 parcent: parcent, 202 category: "General Rating", 203 area: "ALL Services", 204 205 }, 206 function (data) { 207 208 console.log("Feedback data=", data); 209 feedbackid=data.id; 210 if (data.success) { 211 $("#feed2").css("display", "block"); 212 $("#feed1").css("display", "none"); 213 $("#head1").css("display", "none"); 214 $("#head2").css("display", "block"); 215 } 216 }, 217 "json" 218 ) 219 .done(function() { 220 console.log( "second success" ); 221 }) 222 .fail(function(err) { 223 console.log( "err=",err ); 224 }) 225 .always(function() { 226 console.log( "finished" ); 227 $("#btnfeed").html( 228 'Submit' 229 ) 230 .attr("disabled", false); 231 }); 232 }); 233 $("#agent").on("change", function () { 234 var demovalue = $(this).val(); 235 $("#contactaddress div").hide(); 236 $("#mapgg div").hide(); 237 $("#" + demovalue).show(); 238 $("#" + demovalue + "map").show(); 239 }); 240 241 // 242 // end of check 243 244 $(document).on("click","#btnfeedback",function (e) 245 { 246 e.preventDefault(); 247 var names = $("#names").val(); 248 var email = $("#email").val(); 249 var comments = $("#comments").val(); 250 if(!ValidateEmail(email)) 251 { 252 return $("#feedbackstatus") 253 .html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 254 <strong>Error!</strong> Please put a valid Email 255 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 256 <span aria-hidden="true">×</span> 257 </button> 258</div>`) 259 260 } 261 262 if (comments == "") { 263 return $("#feedbackstatus") 264 .html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 265 <strong>Error!</strong> Type your comment 266 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 267 <span aria-hidden="true">×</span> 268 </button> 269</div>`) 270 .css("color", "darkred"); 271 } 272 273 274 $("#btnfeedback").html( 275 '<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Loading...' 276 ) 277 .attr("disabled", true); 278 279 console.log("feedback reaching here"); 280 $.post( 281 "/dist/phoenix/V1.0/phpActions/feedback.php", 282 { 283 names: names, 284 email: email, 285 comments: comments, 286 feedbackid:feedbackid 287 } 288 ,"json") 289 .done(function (data, status) { 290 console.log("feedback return data=",data); 291 if (data.success) { 292 293 $("#feedbackstatus").html( 294 `<div class="alert alert-success alert-dismissible fade show" role="alert"> 295 <strong>Success!</strong> Feedback saved! 296 <button type="button" id="resetfeedbackForm" class="close" data-bs-dismiss="alert" aria-label="Close"> 297 <span aria-hidden="true">×</span> 298 </button> 299</div>` 300 ); 301 $("#names").val(""); 302 $("#email").val(""); 303 $("#comments").val(""); 304 } else { 305 $("#feedbackstatus").html(` 306 <div class="alert alert-warning alert-dismissible fade show" role="alert"> 307 <strong>Error!</strong> Failed to save Please try again later 308 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 309 <span aria-hidden="true">×</span> 310 </button> 311</div>` 312 313 ); 314 } 315 }) 316 .fail(function(err) { 317 console.log( "err=",err ); 318 }) 319 .always(function() { 320 console.log( "finished" ); 321 $("#btnfeedback").html( 322 'Submit' 323 ) 324 .attr("disabled", false); 325 }); 326 327 }); 328 329 330 331 332 $(document).on("click","#btncontact",function (e) { 333 e.preventDefault() 334 var names = $("#names2").val(); 335 var email = $("#email2").val(); 336 var comments = $("#comments2").val(); 337 var addressto = $("#addressto").val(); 338 339 if (names == "") { 340 $("#contactstatus") 341 .html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 342 <strong>Error!</strong> Type your names 343 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 344 <span aria-hidden="true">×</span> 345 </button> 346</div>`).css("color", "darkred"); 347 }else if(!ValidateEmail(email) ){ 348 $("#contactstatus") 349 .html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 350 <strong>Error!</strong> Type valid email 351 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 352 <span aria-hidden="true">×</span> 353 </button> 354</div>`).css("color", "darkred"); 355 356 } else if(addressto==0 ){ 357 $("#contactstatus") 358 .html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 359 <strong>Error!</strong> Choose who is addressed 360 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 361 <span aria-hidden="true">×</span> 362 </button> 363</div>`).css("color", "darkred"); 364 365 } else if(comments=="" ){ 366 $("#contactstatus") 367 .html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 368 <strong>Error!</strong> Type your comment 369 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 370 <span aria-hidden="true">×</span> 371 </button> 372</div>`).css("color", "darkred"); 373 374 }else { 375 376 $("#btncontact").html( 377 '<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Loading...' 378 ) 379 .attr("disabled", true); 380 381 console.log("feedback reaching here"); 382 $.post( 383 "/dist/phoenix/V1.0/phpActions/contact.php", 384 { 385 names: names, 386 email: email, 387 comments: comments, 388 addressto:addressto 389 } 390 ,"json") 391 .done(function (data, status) { 392 console.log("feedback return data=",data); 393 if (data.success) { 394 395 $("#contactstatus").html( 396 `<div class="alert alert-success alert-dismissible fade show" role="alert"> 397 <strong>Success!</strong> Request sent! 398 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 399 <span aria-hidden="true">×</span> 400 </button> 401</div>` 402 ); 403 $("#names2").val(""); 404 $("#email2").val(""); 405 $("#comments2").val(""); 406 } else { 407 $("#contactstatus").html(` 408 <div class="alert alert-warning alert-dismissible fade show" role="alert"> 409 <strong>Error!</strong> Failed to save Please try again later 410 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 411 <span aria-hidden="true">×</span> 412 </button> 413</div>` 414 415 ); 416 } 417 }) 418 .fail(function(err) { 419 console.log( "err=",err ); 420 }) 421 .always(function() { 422 console.log( "finished" ); 423 $("#btncontact").html( 424 'Submit' 425 ) 426 .attr("disabled", false); 427 }); 428 } 429 }); 430 431 432 433 $(document).on("click","#green_button_sendmail2",function (e) { 434 435 436 var emailinput2 = $("#emailinput2").val(); 437 // alert(emailinput2); 438 439 console.log( "ValidateEmail=",ValidateEmail(emailinput2)) 440 if(!ValidateEmail(emailinput2) ){ 441 442 return $("#substatus").html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 443 <strong>Error!</strong> Invalid email 444 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 445 <span aria-hidden="true">×</span> 446 </button> 447</div>`); 448 } 449 $(e.target).html( 450 '<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>' 451 ) 452 .attr("disabled", true); 453 $.post( 454 "/dist/phoenix/V1.0/phpActions/subscribe.php", 455 { 456 action: "Initiate-subscribe", 457 emailinput2:emailinput2 458 }, 459 "json" 460 461 ).done(function(result) 462 { 463 console.log("subscription done result=",result); 464 if(result.success) 465 { 466 467 return $("#substatus").html(`<div class="alert alert-success alert-dismissible fade show" role="alert"> 468 <strong>Success!</strong> your email is well recorded to our new letter mail list.However to activate it Please login to your email and click on the link we sent to you for activation 469 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close">
470 <span aria-hidden="true">×</span> 471 </button> </div>`); 472 } 473 else 474 { 475 return $("#substatus").html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 476 <strong>Failure!</strong> ${result.error} ${result.errorCode==="2"?" <br> If you click to <button class='btn btn-warning btn-sm' id='btnunsubs' rel='"+result.id+"'>Unsubscribe </button> an Email will be sent to you to unsubscribe":""} 477 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 478 <span aria-hidden="true">×</span> 479 </button> 480</div>`); 481 } 482 483 484 }) 485 .fail(function(error) 486 { 487 console.log("failed to subscribe error=",error) 488 489 490 return $("#substatus").html(`<div class="alert alert-warning alert-dismissible fade show" role="alert"> 491 <strong>Failure!</strong> ${error.error} 492 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 493 <span aria-hidden="true">×</span> 494 </button> 495</div>`); 496 497 }). 498 always(function() 499 { 500 $(e.target).html( 501 '<div id="arrow">→</div>' 502 ) 503 .attr("disabled", false); 504 }); 505 506 507 }); 508 509 510 $(document).on("click","#btnunsubs",function (e) { 511 e.preventDefault(); 512 513 let id=$(event.target).attr("rel"); 514 console.log("rel =",id) 515 $("#btnunsubs").html( 516 '<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Loading...' 517 ) 518 .attr("disabled", true); 519 520 console.log("contact reaching here"); 521 $.post( 522 "/dist/phoenix/V1.0/phpActions/subscribe.php ", 523 { 524 action: "Initiate-unsubscribe", 525 id: id 526 } 527 ,"json") 528 .done(function (data, status) { 529 console.log("unsubsribe data=",data) 530 531 532 533 return $("#substatus").html(`<div class="alert alert-success alert-dismissible fade show" role="alert"> 534 <strong>Success!</strong> Check your mail box to confirm unsubscription!!!. 535 <button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"> 536 <span aria-hidden="true">×</span> 537 </button> 538</div>`); 539 540 }) 541 .fail(function(err) { 542 console.log( "err=",err ); 543 }) 544 .always(function() { 545 console.log( "finished" ); 546 $("#btnunsubs").html( 547 'Submit' 548 ) 549 .attr("disabled", false); 550 }); 551 552 553 }); 554});
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.