Guest User

Untitled

a guest
May 26th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function() {
  2.  
  3. $("select[multiple]").multiselect();
  4.  
  5. $.fn.equalizeHeights = function() {
  6.   var maxHeight = this.map(function(i,e) {
  7.     return $(e).height();
  8.   }).get();
  9.  
  10.   return this.height( Math.max.apply(this, maxHeight) );
  11. };
  12.  
  13. // home page carousel
  14. // $("#carousel").carousel();
  15. $("#carousel").carousel({
  16.     autoTransition: true });
  17.  
  18. // listings carousel
  19. $("#listings .thumb-container").carousel({
  20.   onScrollEnd: function(data) {
  21.     $(this.container).find(".count").text(function(){
  22.       return "# of #".replace("#", data.currPage).replace("#", data.totalPages);
  23.     });
  24.   }
  25. });
  26.  
  27. // listings carousel
  28. $("#featuredlistings .thumb-container").carousel({
  29.   onScrollEnd: function(data) {
  30.     $(this.container).find(".count").text(function(){
  31.       return "# of #".replace("#", data.currPage).replace("#", data.totalPages);
  32.     });
  33.   }
  34. });
  35. // menu
  36. ddsmoothmenu.init({
  37.     mainmenuid: "smoothmenu1", //menu DIV id
  38.     orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
  39.     classname: 'ddsmoothmenu', //class added to menu's outer DIV
  40.     //customtheme: ["#1c5a80", "#18374a"],
  41.     contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
  42. });
  43.  
  44.  
  45. });
Add Comment
Please, Sign In to add comment