vlcsolutions commited on
Commit
5b151ce
·
verified ·
1 Parent(s): 981f1ef

add this : </script>

Browse files

<script type="application/javascript">


$(document).ready(function() {
$(window).scroll(function() {
if ($(this).scrollTop() > 50) {
$('#toTopBtn').fadeIn();
} else {
$('#toTopBtn').fadeOut();
}
});

$('#toTopBtn').click(function() {
$("html, body").animate({
scrollTop: 0
}, 1000);
return false;
});
});

$(document).ready(function(){

function getUrlVars()
{
let vars = [], hash;
let hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(let i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}

$('#fail_email').hide();
$('#success_email').hide();

let result = getUrlVars()["result"];

if(typeof(result) != 'undefined'){

if(result.includes('success'))
{
$('#success_email').show();
$('#fail_email').hide();
}
else
{
$('#fail_email').show();
$('#success_email').hide();
}

}


});

function removeQuery() {

let url = window.location.href;

let a = url.indexOf("?");
let b = url.substring(a);
let c = url.replace(b,"");
window.location.href = c;

}


</script>

<script src="https://www.google.com/recaptcha/api.js?render=6LfWu2YcAAAAAPooSewjuw82sSxhAdh657M4VvzT"></script>

<script>
grecaptcha.ready(function() {

grecaptcha.execute('6LfWu2YcAAAAAPooSewjuw82sSxhAdh657M4VvzT', {action:'validate_captcha'})
.then(function(token) {
// add token value to form
document.getElementById('g-recaptcha-response').value = token;
});

});
</script>


<div class="wrap mcb-wrap one-third clearfix" style="border-radius: 15px;box-shadow: 0px 20px 20px 20px rgb(0 0 0/30%);padding: 1rem;">
<h2 style="font-weight: bold;text-align: center;">Get to know more on VLC Magento Connector</h2>

<div role="form" class="wpcf7" id="wpcf7-f35-p16-o1" lang="en-US" dir="ltr" >
<div class="screen-reader-response"></div>

<div id="contactWrapper" class="animate" data-anim-type="fadeInLeft" >
<form id="contactform" method="post" action="./magento_connector_landing_page.php" enctype="multipart/form-data" >

<input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response">g-recaptcha
<input type="hidden" name="action" value="validate_captcha">

<div class="column one">
<span>First Name <span style="color:red;">*</span></span>
<input class="case_study_bg_color" type="text" name="first_name" id="first_name" required />
</div>

<div class="column one">
<span>Last Name <span style="color:red;">*</span></span>
<input class="case_study_bg_color" type="text" name="last_name" id="last_name" required />
</div>

<div class="column one">
<span>Organization Name<span style="color:red;">*</span></span>
<input class="case_study_bg_color" type="text" name="company" id="company" required />
</div>

<div class="column one">
<p id="email_error" style="color:red;">Please enter valid email.</p>
<span>Business EMail <span style="color:red;">*</span></span>
<input class="case_study_bg_color" type="email" name="email" id="email" required/>
</div>

<div class="column one">
<span>Business Phone Number <span style="color:red;">*</span></span>
<input class="case_study_bg_color" type="text" name="phone_number" id="phone_number" required />
</div>

<div class="column one">
<span>Note <span style="color:red;">*</span></span>
<textarea class="case_study_bg_color" name="note" id="note" rows="10" required></textarea>
</div>

<div class="column one">
Our privacy practices, and how we are committed to protecting and respecting
your privacy, please review our <a target="_blank" href="./privacy.html">Privacy Policy</a>.
</div>
<div class="column one"></div>
<div class="column one">
By clicking submit below, you consent to allow VLC Solutions to store and process the
personal information submitted above to provide you the content requested.
</div>
<div class="column one"></div>
<div class="column one">
<input style="font-size: 26px;" type="submit" value="Get in Touch" id="submit" />
</div>


</form>
</div>
</div>

</div>

<!--End-->

</div>
</div>

</div>

Files changed (2) hide show
  1. index.html +123 -9
  2. style.css +17 -1
index.html CHANGED
@@ -370,15 +370,69 @@
370
  <p class="text-gray-600">Analyze trends, track sales, and manage inventory with business-critical insights.</p>
371
  </div>
372
  </div>
373
-
374
  <div class="bg-[var(--vlc-tint)] p-8 md:p-12 rounded-xl" data-aos="fade-up">
375
- <div class="max-w-4xl mx-auto text-center">
376
- <h3 class="text-2xl md:text-3xl font-bold text-[var(--vlc-navy)] mb-6">Improve Your Online Store's Operations with Magento Integration</h3>
377
- <p class="text-lg text-gray-600 mb-8">Enhance efficiency and scalability by integrating Magento with Microsoft Dynamics 365 Business Central for seamless e-commerce and ERP operations.</p>
378
- <a href="./magento-connector-with-business-central.html" class="btn-accent inline-block px-6 py-3 rounded-md text-lg font-semibold">Get to know more on VLC Magento Connector</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
379
  </div>
380
  </div>
381
- </div>
382
  </section>
383
  <!-- FOOTER -->
384
  <footer class="bg-[var(--vlc-navy)] text-white pt-14 pb-8">
@@ -446,11 +500,62 @@
446
  </div>
447
  </div>
448
  </footer>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449
 
 
 
 
 
 
 
 
450
 
451
- <script>
452
  // Init animations and handle mobile menu functionality after scripts loaded
453
- document.addEventListener('DOMContentLoaded', () => {
454
  // Initialize AOS (Animation On Scroll)
455
  if (window.AOS) {
456
  AOS.init({
@@ -511,6 +616,15 @@
511
  }
512
  });
513
  </script>
514
- <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
 
 
 
 
 
 
 
 
 
515
  </body>
516
  </html>
 
370
  <p class="text-gray-600">Analyze trends, track sales, and manage inventory with business-critical insights.</p>
371
  </div>
372
  </div>
 
373
  <div class="bg-[var(--vlc-tint)] p-8 md:p-12 rounded-xl" data-aos="fade-up">
374
+ <div class="max-w-4xl mx-auto">
375
+ <h3 class="text-2xl md:text-3xl font-bold text-[var(--vlc-navy)] mb-6 text-center">Improve Your Online Store's Operations with Magento Integration</h3>
376
+ <p class="text-lg text-gray-600 mb-8 text-center">Enhance efficiency and scalability by integrating Magento with Microsoft Dynamics 365 Business Central for seamless e-commerce and ERP operations.</p>
377
+
378
+ <div class="bg-white rounded-xl shadow-xl p-8 mx-auto max-w-2xl">
379
+ <h2 class="text-xl font-bold text-center mb-6">Get to know more on VLC Magento Connector</h2>
380
+
381
+ <form id="contactform" method="post" action="./magento_connector_landing_page.php" enctype="multipart/form-data">
382
+ <input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response">
383
+ <input type="hidden" name="action" value="validate_captcha">
384
+
385
+ <div class="grid md:grid-cols-2 gap-4 mb-4">
386
+ <div>
387
+ <label class="block text-sm font-medium mb-1">First Name <span class="text-red-500">*</span></label>
388
+ <input type="text" name="first_name" id="first_name" required
389
+ class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--vlc-navy)]">
390
+ </div>
391
+ <div>
392
+ <label class="block text-sm font-medium mb-1">Last Name <span class="text-red-500">*</span></label>
393
+ <input type="text" name="last_name" id="last_name" required
394
+ class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--vlc-navy)]">
395
+ </div>
396
+ </div>
397
+
398
+ <div class="mb-4">
399
+ <label class="block text-sm font-medium mb-1">Organization Name <span class="text-red-500">*</span></label>
400
+ <input type="text" name="company" id="company" required
401
+ class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--vlc-navy)]">
402
+ </div>
403
+
404
+ <div class="mb-4">
405
+ <label class="block text-sm font-medium mb-1">Business Email <span class="text-red-500">*</span></label>
406
+ <input type="email" name="email" id="email" required
407
+ class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--vlc-navy)]">
408
+ <p id="email_error" class="text-red-500 text-sm hidden">Please enter valid email.</p>
409
+ </div>
410
+
411
+ <div class="mb-4">
412
+ <label class="block text-sm font-medium mb-1">Business Phone Number <span class="text-red-500">*</span></label>
413
+ <input type="text" name="phone_number" id="phone_number" required
414
+ class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--vlc-navy)]">
415
+ </div>
416
+
417
+ <div class="mb-4">
418
+ <label class="block text-sm font-medium mb-1">Note <span class="text-red-500">*</span></label>
419
+ <textarea name="note" id="note" rows="4" required
420
+ class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--vlc-navy)]"></textarea>
421
+ </div>
422
+
423
+ <div class="text-xs mb-4">
424
+ <p>Our privacy practices, and how we are committed to protecting and respecting your privacy, please review our <a href="./privacy.html" class="text-[var(--vlc-navy)] hover:underline" target="_blank">Privacy Policy</a>.</p>
425
+ <p class="mt-2">By clicking submit below, you consent to allow VLC Solutions to store and process the personal information submitted above to provide you the content requested.</p>
426
+ </div>
427
+
428
+ <button type="submit" class="w-full bg-[var(--vlc-navy)] hover:bg-[var(--vlc-navy-700)] text-white font-bold py-3 px-4 rounded-md transition duration-300">
429
+ Get in Touch
430
+ </button>
431
+ </form>
432
+ </div>
433
  </div>
434
  </div>
435
+ </div>
436
  </section>
437
  <!-- FOOTER -->
438
  <footer class="bg-[var(--vlc-navy)] text-white pt-14 pb-8">
 
500
  </div>
501
  </div>
502
  </footer>
503
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
504
+ <script>
505
+ // Back to top button functionality
506
+ $(document).ready(function() {
507
+ // Create back to top button
508
+ $('body').append('<button id="toTopBtn" class="fixed bottom-8 right-8 bg-[var(--vlc-navy)] text-white w-12 h-12 rounded-full shadow-lg opacity-0 transition-opacity duration-300 flex items-center justify-center"><i data-feather="arrow-up"></i></button>');
509
+ feather.replace();
510
+
511
+ $(window).scroll(function() {
512
+ if ($(this).scrollTop() > 50) {
513
+ $('#toTopBtn').fadeIn();
514
+ } else {
515
+ $('#toTopBtn').fadeOut();
516
+ }
517
+ });
518
+
519
+ $('#toTopBtn').click(function() {
520
+ $("html, body").animate({
521
+ scrollTop: 0
522
+ }, 1000);
523
+ return false;
524
+ });
525
+
526
+ // Form handling
527
+ function getUrlVars() {
528
+ let vars = [], hash;
529
+ let hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
530
+ for(let i = 0; i < hashes.length; i++) {
531
+ hash = hashes[i].split('=');
532
+ vars.push(hash[0]);
533
+ vars[hash[0]] = hash[1];
534
+ }
535
+ return vars;
536
+ }
537
+
538
+ $('#email_error').hide();
539
+ let result = getUrlVars()["result"];
540
+ if(typeof(result) != 'undefined'){
541
+ if(result.includes('success')) {
542
+ alert('Thank you for your submission! We will contact you soon.');
543
+ } else {
544
+ alert('There was an error with your submission. Please try again.');
545
+ }
546
+ }
547
+ });
548
 
549
+ function removeQuery() {
550
+ let url = window.location.href;
551
+ let a = url.indexOf("?");
552
+ let b = url.substring(a);
553
+ let c = url.replace(b,"");
554
+ window.location.href = c;
555
+ }
556
 
 
557
  // Init animations and handle mobile menu functionality after scripts loaded
558
+ document.addEventListener('DOMContentLoaded', () => {
559
  // Initialize AOS (Animation On Scroll)
560
  if (window.AOS) {
561
  AOS.init({
 
616
  }
617
  });
618
  </script>
619
+ <script src="https://www.google.com/recaptcha/api.js?render=6LfWu2YcAAAAAPooSewjuw82sSxhAdh657M4VvzT"></script>
620
+ <script>
621
+ grecaptcha.ready(function() {
622
+ grecaptcha.execute('6LfWu2YcAAAAAPooSewjuw82sSxhAdh657M4VvzT', {action:'validate_captcha'})
623
+ .then(function(token) {
624
+ document.getElementById('g-recaptcha-response').value = token;
625
+ });
626
+ });
627
+ </script>
628
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
629
  </body>
630
  </html>
style.css CHANGED
@@ -22,7 +22,23 @@ p {
22
  border: 1px solid lightgray;
23
  border-radius: 16px;
24
  }
25
-
26
  .card p:last-child {
27
  margin-bottom: 0;
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  border: 1px solid lightgray;
23
  border-radius: 16px;
24
  }
 
25
  .card p:last-child {
26
  margin-bottom: 0;
27
  }
28
+
29
+ /* Back to top button */
30
+ #toTopBtn {
31
+ transition: all 0.3s ease;
32
+ z-index: 9999;
33
+ }
34
+
35
+ /* Form styles */
36
+ input, textarea {
37
+ transition: border-color 0.3s ease, box-shadow 0.3s ease;
38
+ }
39
+
40
+ input:focus, textarea:focus {
41
+ outline: none;
42
+ border-color: var(--vlc-navy);
43
+ box-shadow: 0 0 0 3px rgba(0, 32, 96, 0.1);
44
+ }