footer.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php wp_footer(); ?>
  2. <script type='text/javascript' src='https://ams.mmnx.de/wp-content/themes/ams_2016/dist/holder.js'></script>
  3. <!-- jQuery first, then Bootstrap JS. -->
  4. <script src="http://holderjs.com/holder.js"></script>
  5. <script type="text/javascript">
  6. jQuery( document ).ready(function($) {
  7. $('#nav').Stickyfill(); // NAV
  8. /** TAG DER ARCHITEKTUR LISTE **/
  9. $(".tda-item").on("mouseenter", function() {
  10. $(this).find(".tda-hover").show();
  11. });
  12. $(".tda-item").on("mouseleave", function() {
  13. $(this).find(".tda-hover").hide();
  14. });
  15. /*$("#tda-content-0").show(); // show first thing
  16. $($(".tda-item")[0]).css("opacity", "0.5");
  17. $(".tda-item").on("hover", function() {
  18. $(".tda-item").css("opacity", "1");
  19. $(".tda-content").hide();
  20. $(this).css("opacity", "0.5");
  21. $("#tda-content-" + $(this).attr("data-id")).show();
  22. });*/
  23. /** TdA Carousel **/
  24. $('.owl-carousel').slick({
  25. dots: false,
  26. infinite: true,
  27. variableWidth: true,
  28. autoplay: true,
  29. lazyLoad: 'progressive',
  30. swipeToSlide: true,
  31. waitForAnimate: false,
  32. nextArrow: '<span class="icon-next" aria-hidden="true"><i class="fa fa-chevron-right" aria-hidden="true"></i></span>',
  33. prevArrow: '<span class="icon-prev" aria-hidden="true"><i class="fa fa-chevron-left" aria-hidden="true"></i></span>',
  34. });
  35. $(document).on('click', 'a.scroll-link[href^="#"]', function(e){
  36. e.preventDefault();
  37. $('html, body').animate({
  38. scrollTop: $( $.attr(this, 'href') ).offset().top
  39. }, 500);
  40. });
  41. $(document).on('click', 'a.nav-link.scroll-link[data-target*="#"]', function(e){
  42. e.preventDefault();
  43. $('html, body').animate({
  44. scrollTop: $( $.attr(this, 'data-target') ).offset().top
  45. }, 500);
  46. });
  47. /*$(document).on('click', 'a.nav-link.scroll-link[href*="\#"]', function(e) {
  48. e.preventDefault();
  49. var target = $(this).attr('href'), $target = $(target); {
  50. $('html, body').stop().animate({
  51. 'scrollTop' : $target.offset().top - 50
  52. }, 900, 'swing', function() {
  53. window.location.hash = target;
  54. });
  55. }
  56. });*/
  57. });
  58. </script>
  59. </body>
  60. </html>