PageSourceSearch

http://gamerparty.net/js/main.js

js gamerparty.net collected 2026-10-08 00:59:45 UTC 3,332 bytes, 143 lines download raw bytes

1/* ************************ */
2/* Theme name  : Brave      */
3/* Author name : Ashok      */
4/* ************************ */
5
6/* ****************** */
7/* Tooltips & Popover */
8/* ****************** */
9
10$(".b-tooltip").tooltip();
11
12$(".b-popover").popover();
13
14/* ************** */
15/* Magnific Popup */
16/* ************** */
17
18$(document).ready(function() {
19  $('.lightbox').magnificPopup({type:'image'});
20});
21
22/* *************** */
23/* Custom Dropdown */
24/* *************** */
25
26$(document).ready(function(){
27	var hidden = true;
28	$(".b-dropdown").click(function(e){
29		e.preventDefault();
30		if (hidden){
31           $(this).next('.b-dropdown-block').slideToggle(400, function(){hidden = false;});
32      }
33	}); 
34	$('html').click(function() {
35        if (!hidden) {
36            $('.b-dropdown-block').slideUp();
37            hidden=true;
38        }
39   });
40   $('.b-dropdown-block').click(function(event) {
41        event.stopPropagation();
42   }); 
43});
44
45/* ************ */
46/* Owl Carousel */
47/* ************ */
48
49$(document).ready(function() {	
50	/* Owl carousel */
51	$(".owl-carousel").owlCarousel({
52		slideSpeed : 500,
53		rewindSpeed : 1000,
54		mouseDrag : true,
55		stopOnHover : true
56	});
57	/* Own navigation */
58	$(".owl-nav-prev").click(function(){
59		$(this).parent().next(".owl-carousel").trigger('owl.prev');
60	});
61	$(".owl-nav-next").click(function(){
62		$(this).parent().next(".owl-carousel").trigger('owl.next');
63	});
64});
65
66/* ************* */
67/* Scroll to top */
68/* ************* */
69
70$(document).ready(function() {
71	$(window).scroll(function(){
72		if ($(this).scrollTop() > 200) {
73			$('.totop').fadeIn();
74		} else {
75			$('.totop').fadeOut();
76		}
77	});
78	$(".totop a").click(function(e) {
79		e.preventDefault();
80		$("html, body").animate({ scrollTop: 0 }, "slow");
81		return false;
82	});
83});
84
85/* *************** */
86/* Navigation menu */
87/* *************** */
88
89$(document).ready(function(){
90
91
92	$.fn.menumaker = function(options) {
93      
94    var cssmenu = $(this), settings = $.extend({
95        title: "Menu",
96        format: "dropdown",
97        sticky: false
98      }, options);
99
100      return this.each(function() {
101		
102		cssmenu.prepend('<div id="menu-button">' + settings.title + '</div>');
103		$(this).find("#menu-button").on('click', function(){
104		  $(this).toggleClass('menu-opened');
105		  var mainmenu = $(this).next('ul');
106		  if (mainmenu.hasClass('open')) { 
107			mainmenu.slideUp().removeClass('open');
108		  }
109		  else {
110			mainmenu.slideDown().addClass('open');
111			if (settings.format === "dropdown") {
112			  mainmenu.find('ul').slideDown();
113			}
114		  }
115		});
116		
117		cssmenu.find('li ul').parent().addClass('has-sub');
118
119		multiTg = function() {
120		  cssmenu.find(".has-sub").prepend('<span class="submenu-button"></span>');
121		  cssmenu.find('.submenu-button').on('click', function() {
122			$(this).toggleClass('submenu-opened');
123			if ($(this).siblings('ul').hasClass('open')) {
124			  $(this).siblings('ul').removeClass('open').slideUp();
125			}
126			else {
127			  $(this).siblings('ul').addClass('open').slideDown();
128			}
129		  });
130		};
131
132		if (settings.format === 'multitoggle') multiTg();
133		else cssmenu.addClass('dropdown');
134		
135		
136      });
137	};
138
139	$(".navy").menumaker({
140		title: "Menu",
141		format: "multitoggle"
142	});
143});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.