Guest User

Untitled

a guest
Oct 16th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. Index: dominion-fertility/style.css
  2. ===================================================================
  3. --- dominion-fertility/style.css
  4. +++ dominion-fertility/style.css
  5. @@ -64,27 +64,32 @@
  6. .top-nav ul { list-style-type: none; float: right; display: inline; }
  7. .top-nav ul li { float: left; display: inline; background: url(images/top-nav-li.jpg) no-repeat 0 0 ; padding: 0 7px 0 10px; }
  8. .top-nav ul li a { color: #75a3da; text-decoration: none; }
  9. .top-nav ul li.first { background: transparent; }
  10.  
  11. -#navigation { height: 49px; background: url(images/nav.png) no-repeat 0 0 ; font-size: 13px; position: relative ; }
  12. +#navigation { height: 49px; background: url(images/nav.png) no-repeat 0 0 ; font-size: 13px; position: relative; z-index: 15; }
  13. #navigation ul { list-style-type: none; }
  14. -#navigation ul li { float: left; display: inline; line-height: 44px; padding-left: 2px; background: url(images/nav-li.jpg) no-repeat left 0 ; }
  15. +#navigation ul li { float: left; display: inline; line-height: 44px; padding-left: 2px; background: url(images/nav-li.jpg) no-repeat left 0; position: relative; z-index: 16; }
  16. #navigation ul li.first { padding: 0; background: transparent; }
  17. #navigation ul li a { float: left; display: inline; padding: 1px 9px; text-decoration: none; color: #fff; }
  18. #navigation ul li a:hover,
  19. #navigation ul li.current-menu-item a,
  20. #navigation ul li.hover a { padding: 0px 8px 0px 8px; border: 1px solid #3f6496; text-decoration: none; background: url(images/nav-a.jpg) ; }
  21. #navigation ul li:hover a { padding: 0px 8px 0px 8px; border: 1px solid #3f6496; text-decoration: none; background: url(images/nav-a.jpg) ; }
  22. #navigation .tl { background: url(images/nav-left.png) no-repeat 0 0 ; display: block; width: 3px; height: 3px; position: absolute ; top: 0; left: 0; }
  23. #navigation .tr { background: url(images/nav-right.png) no-repeat 0 0 ; display: block; width: 3px; height: 3px; position: absolute ; top: 0; right: 0; }
  24.  
  25. -#navigation ul ul.sub-menu { visibility: hidden; position: absolute; top: 45px; z-index: 20; background: #355682; }
  26. +#navigation ul ul.sub-menu { visibility: hidden; position: absolute; top: 45px; left: 0; z-index: 20; background: #355682; }
  27. #navigation ul li.hover ul.sub-menu { visibility: visible; }
  28. #navigation ul li:hover ul.sub-menu { visibility: visible; }
  29. -#navigation ul ul.sub-menu li { display: block; float: left; clear: left; background: none; width: 100%; }
  30. -#navigation ul ul.sub-menu li a { background: none; border: none; width: 100%; }
  31. +#navigation ul ul.sub-menu li { display: block; float: left; clear: left; background: none; position: relative; }
  32. +#navigation ul ul.sub-menu li a { background: none; border: none; display: block; }
  33. +
  34. +#navigation ul ul.sub-menu ul.sub-menu { visibility: hidden; left: 100%; top: 0; margin-left: -2px; }
  35. +#navigation ul ul.sub-menu li:hover ul.sub-menu { visibility: visible; }
  36. +#navigation ul ul.sub-menu li.hover ul.sub-menu { visibility: visible; }
  37. +#navigation ul ul.sub-menu ul.sub-menu li a { white-space: nowrap; }
  38.  
  39. .slider { width: 920px; height: 416px; position: relative ; border-top: 1px solid #bebebe; background: url(images/slider.png) no-repeat bottom center ; padding-bottom: 40px; z-index: 10; }
  40. .slider-carousel,
  41. .slider-carousel .jcarousel-clip,
  42. .slider-carousel ul,
  43. Index: dominion-fertility/js/jquery-func.js
  44. ===================================================================
  45. --- dominion-fertility/js/jquery-func.js
  46. +++ dominion-fertility/js/jquery-func.js
  47. @@ -32,11 +32,11 @@
  48. (function() {
  49. var nav = $('#navigation');
  50. var ul = nav.find('> ul');
  51. var lis = ul.find('> li');
  52.  
  53. - setTimeout(function() {
  54. + $(window).load(function() {
  55. var liWidth = 0;
  56. lis.each(function() {
  57. liWidth += $(this).outerWidth(true);
  58. $(this).hover(function() {
  59. $(this).addClass('hover');
  60. @@ -44,11 +44,41 @@
  61. $(this).removeClass('hover');
  62. });
  63. });
  64.  
  65. nav.css('padding-left', (nav.width() - liWidth)/2 + 'px');
  66. - }, 100);
  67. +
  68. + var ul2 = lis.find('> ul');
  69. + ul2.each(function() {
  70. + var lis2 = $(this).find('> li');
  71. + var li2Width = 0;
  72. +
  73. + lis2.each(function() {
  74. + if (li2Width < $(this).width()) li2Width = $(this).width();
  75. +
  76. + var ul3 = $(this).find('> ul');
  77. + var lis3 = ul3.find('> li');
  78. + var li3Width = 0;
  79. + lis3.each(function() {
  80. + if (li3Width < $(this).width()) li3Width = $(this).width();
  81. + });
  82. + lis3.find('> a').width(li3Width);
  83. + lis3.width(li3Width);
  84. + ul3.width(li3Width);
  85. +
  86. + $(this).hover(function() {
  87. + $(this).addClass('hover');
  88. + }, function() {
  89. + $(this).removeClass('hover');
  90. + });
  91. + });
  92. +
  93. + lis2.find('> a').width(li2Width + 48);
  94. + lis2.width(li2Width + 48);
  95. + ul2.width(li2Width + 48);
  96. + });
  97. + });
  98. })();
  99.  
  100. $('.slider-carousel ul').jcarousel({
  101. 'scroll' : 1,
  102. 'auto': 5,
  103. Index: dominion-fertility/header.php
  104. ===================================================================
  105. --- dominion-fertility/header.php
  106. +++ dominion-fertility/header.php
  107. @@ -36,19 +36,19 @@
  108. </script>
  109. <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript" ></script>
  110. </div>
  111. <div class="cl">&nbsp;</div>
  112.  
  113. - <?php wp_nav_menu(array('menu'=>'header-menu', 'container'=>'div', 'container_class'=>'top-nav', 'theme_location'=>'header-menu-location', 'fallback_cb'=>'', 'depth'=>2)); ?>
  114. + <?php wp_nav_menu(array('menu'=>'header-menu', 'container'=>'div', 'container_class'=>'top-nav', 'theme_location'=>'header-menu-location', 'fallback_cb'=>'', 'depth'=>3)); ?>
  115.  
  116. </div>
  117. <div class="cl">&nbsp;</div>
  118. </div>
  119. <!-- Header -->
  120. <!-- Navigation -->
  121. <div id="navigation">
  122. - <?php wp_nav_menu(array('menu'=>'navigation-menu', 'container'=>false, 'theme_location'=>'navigation-menu-location', 'fallback_cb'=>'', 'depth'=>2)); ?>
  123. + <?php wp_nav_menu(array('menu'=>'navigation-menu', 'container'=>false, 'theme_location'=>'navigation-menu-location', 'fallback_cb'=>'', 'depth'=>3)); ?>
  124. <div class="cl">&nbsp;</div>
  125. <span class="tl notext" >&nbsp;</span>
  126. <span class="tr notext" >&nbsp;</span>
  127. </div>
  128. <!-- END Navigation -->
Add Comment
Please, Sign In to add comment