PageSourceSearch

https://www.aeropuertos.net/respuestas/qa-theme/Rebista/js/rebista-core.js?171.8.5

js aeropuertos.net collected 2026-09-24 21:40:22 UTC 4,263 bytes, 144 lines download raw bytes

1/*
2	Rebista
3	http://www.rebista.com/
4
5	File:           js/rebista-core.js
6	Version:        Rebista 2016.04.07
7	Description:    JavaScript helpers for Rebista Answer theme
8
9	This program is free software: you can redistribute it and/or modify
10	it under the terms of the GNU General Public License as published by
11	the Free Software Foundation, either version 3 of the License, or
12	(at your option) any later version.
13
14	This program is distributed in the hope that it will be useful,
15	but WITHOUT ANY WARRANTY; without even the implied warranty of
16	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17	GNU General Public License for more details.
18*/
19$(document).ready(function () {
20
21	/**
22	 * Account menu box toggle script
23	 */
24	$('#qam-account-toggle').click(function (e) {
25		e.stopPropagation();
26		$(this).toggleClass('account-active');
27		$('.qam-account-items').slideToggle(100);
28	});
29
30	$(document).click(function () {
31		$('#qam-account-toggle.account-active').removeClass('account-active');
32		$('.qam-account-items:visible').slideUp(100);
33	});
34
35	$('.qam-account-items').click(function (event) {
36		event.stopPropagation();
37	});
38
39	/**
40	 * Main navigation toggle script
41	 */
42	$('.qam-menu-toggle').click(function () {
43		$('.qa-nav-main').slideToggle(100);
44		$(this).toggleClass('current');
45	});
46
47	/*
48	 * Sidepannel Toggle Click Function
49	 */
50	$('#qam-sidepanel-toggle').click(function () {
51		$('#qam-sidepanel-mobile').toggleClass('open');
52		$(this).toggleClass('active');
53		$(this).find('i').toggleClass('icon-right-open-big');
54	});
55
56	/**
57	 * Toggle search box for small screen
58	 */
59	$('#qam-search-mobile').click(function () {
60		$(this).toggleClass('active');
61		$('#the-top-search').slideToggle('fast');
62	});
63
64
65	/*
66	 * Add wrapper to users point on users list
67	 */
68	$('.qa-top-users-score').wrapInner('<div class="qam-user-score-icon"></div>');
69
70	/*
71	 * add wrapper to the message sent note 'td'
72	 */
73	$('.qa-part-form-message .qa-form-tall-ok').wrapInner('<div class="qam-pm-message"></div>');
74
75	// fix the visible issue for main nav, top search-box
76	$(window).resize(function () {
77		if (window.matchMedia('(min-width: 980px)').matches) {
78			$(".qam-search.the-top .qa-search").hide();
79			$(".qa-nav-main").show('400', function() { $(this).css('display','inline-block'); });
80		} else {
81			$(".qam-search.the-top .qa-search").show();
82			$(".qa-nav-main").hide();
83			$('.qam-menu-toggle').removeClass('current');
84		}
85	});
86
87/* Search original
88	// fix the visible issue for main nav, top search-box
89	$(window).resize(function () {
90		if (window.matchMedia('(min-width: 980px)').matches) {
91			$(".qam-search.the-top .qa-search").hide();
92			$(".qa-nav-main").show('fast', function() { $(this).css('display','inline-block'); });
93		} else {
94			$(".qam-search.the-top .qa-search").show();
95			$(".qa-nav-main").hide();
96			$('.qam-menu-toggle').removeClass('current');
97		}
98	});
99
100/*
101//Open search main menu
102		$('.navbar-default .open-search-main-menu').on('click', function(){
103			$this = $(this);
104			if($this.hasClass('close-sb')) {
105				$this.parents('.navbar-default').find('.search-main-menu').removeClass('active');
106				setTimeout(function(){$this.parents('.navbar-default').find('.search-main-menu').find('input[type="text"]').blur();},300);	
107				$this.removeClass('close-sb');
108				
109			}else{
110				$this.parents('.navbar-default').find('.search-main-menu').addClass('active');
111				setTimeout(function(){$this.parents('.navbar-default').find('.search-main-menu').find('input[type="text"]').focus();},300);	
112				$this.addClass('close-sb');
113				console.log('open')
114			};
115		});
116
117// Menu 2
118
119  var $searchlink = $('#searchtoggl i');
120  var $searchbar  = $('#searchbar');
121  
122  $('#topnav ul li a').on('click', function(e){
123    e.preventDefault();
124    
125    if($(this).attr('id') == 'searchtoggl') {
126      if(!$searchbar.is(":visible")) { 
127        // if invisible we switch the icon to appear collapsable
128        $searchlink.removeClass('fa-search').addClass('fa-search-minus');
129      } else {
130        // if visible we switch the icon to appear as a toggle
131        $searchlink.removeClass('fa-search-minus').addClass('fa-search');
132      }
133      
134      $searchbar.slideToggle(200, function(){
135        // callback after search bar animation
136      });
137    }
138  });
139*/
140
141});
142
143
144

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.