_footer.liquid 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!-- Footer -->
  2. <footer>
  3. <div class="section-wrapper">
  4. <div class="footer-widget">
  5. <div class="int-widget">
  6. <div class="footer-logo"><img src="{{ site.image_base_url }}/static/tpl/screenprotector/images/logo.svg" alt="Mietubl logo"></div>
  7. <div mtb_edit="1" class="footer-int-text" id="i366ij">
  8. Mietubl, originated from Made in China, growing up with intellectually manufactured in China. Focus on product intelligence, resource integration in all aspects of product circulation, construction of ecological chain.
  9. </div>
  10. <div class="social">
  11. <ul>
  12. <li><a href="{{ site.dist.facebook }}" target="_blank"><img src="{{ site.asset_base_url}}static/tpl/screenprotector/images/facebook.svg" alt="Facebook"></a></li>
  13. <li><a href="{{ site.dist.tiktok }}" target="_blank"><img src="{{ site.asset_base_url}}static/tpl/screenprotector/images/TikTok.svg" alt="TikTok"></a></li>
  14. <li><a href="{{ site.dist.youtube }}" target="_blank"><img src="{{ site.asset_base_url}}static/tpl/screenprotector/images/youtube.svg" alt="Youtube"></a></li>
  15. <li><a href="{{ site.dist.instagram }}" target="_blank"><img src="{{ site.asset_base_url}}static/tpl/screenprotector/images/instagram.svg" alt="Instagram"></a></li>
  16. </ul>
  17. </div>
  18. </div>
  19. <div class="list-widget">
  20. {% for menu in site.menus_footer %}
  21. {% if menu.show %}
  22. <dl class="">
  23. <dt>{{ menu.title }}</dt>
  24. {% for child in menu.children %}
  25. {% if child.show %}
  26. <dd>
  27. <a href="{{ child.uri }}" title="{{ child.title }}">
  28. {{ child.title }}
  29. </a>
  30. </dd>
  31. {% endif %}
  32. {% endfor %}
  33. </dl>
  34. {% endif %}
  35. {% endfor %}
  36. </div>
  37. <div class="contact-widget">
  38. <div mtb_edit="1" class="widget-title" id="ibqg6g">Contact us</div>
  39. <div class="tel">{{ site.dist.service_hotline }}</div>
  40. <div class="mail"><a href="mailto:{{ site.dist.dist_email }}">{{ site.dist.dist_email }}</a></div>
  41. <div class="address"><a href="mailto:{{ site.dist.dist_email }}">{{ site.dist.company_address }}</a></div>
  42. </div>
  43. </div>
  44. </div>
  45. </footer>
  46. <script>
  47. document.getElementById('send_button').addEventListener('click', function() {
  48. const form = document.getElementById('form_contact');
  49. const actionUrl = form.getAttribute('data-action');
  50. // Create a FormData object from the form
  51. const formData = new FormData(form);
  52. // Perform the AJAX request
  53. fetch(actionUrl, {
  54. method: 'POST',
  55. body: formData,
  56. headers: {
  57. 'Accept': 'application/json',
  58. },
  59. })
  60. .then(response => {
  61. if (response.ok) {
  62. return response.json();
  63. } else {
  64. throw new Error('Error in the request');
  65. }
  66. })
  67. .then(data => {
  68. console.log('Success:', data);
  69. alert('Message submitted successfully!');
  70. })
  71. .catch(error => {
  72. console.error('Error:', error);
  73. alert('There was an error submitting the Message.');
  74. });
  75. });
  76. </script>
  77. {{ site.dist.statistics_js | raw }}
  78. <!-- footer end -->