PageSourceSearch

https://www.cop.es/IPsyNet/js/main.js

js cop.es collected 2026-10-02 05:50:33 UTC 4,997 bytes, 181 lines download raw bytes

1
2function main() {
3
4(function () {
5   'use strict';
6
7   /* ==============================================
8  	Testimonial Slider
9  	=============================================== */
10
11  	$('a.page-scroll').click(function() {
12        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
13          var target = $(this.hash);
14          target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
15          if (target.length) {
16            $('html,body').animate({
17              scrollTop: target.offset().top - 40
18            }, 900);
19            return false;
20          }
21        }
22      });
23
24    /*====================================
25    Show Menu on Book
26    ======================================*/
27    $(window).bind('scroll', function() {
28        var navHeight = $(window).height() - 100;
29        if ($(window).scrollTop() > navHeight) {
30            $('.navbar-default').addClass('on');
31        } else {
32            $('.navbar-default').removeClass('on');
33        }
34    });
35
36    $('body').scrollspy({
37        target: '.navbar-default',
38        offset: 80
39    })
40
41  	$(document).ready(function() {
42  	  $("#team").owlCarousel({
43
44  	      navigation : false, // Show next and prev buttons
45  	      slideSpeed : 300,
46  	      paginationSpeed : 400,
47  	      autoHeight : true,
48  	      itemsCustom : [
49				        [0, 1],
50				        [450, 2],
51				        [600, 2],
52				        [700, 2],
53				        [1000, 4],
54				        [1200, 4],
55				        [1400, 4],
56				        [1600, 4]
57				      ],
58  	  });
59
60  	  $("#clients").owlCarousel({
61
62  	      navigation : false, // Show next and prev buttons
63  	      slideSpeed : 300,
64  	      paginationSpeed : 400,
65  	      autoHeight : true,
66  	      itemsCustom : [
67				        [0, 1],
68				        [450, 2],
69				        [600, 2],
70				        [700, 2],
71				        [1000, 4],
72				        [1200, 5],
73				        [1400, 5],
74				        [1600, 5]
75				      ],
76  	  });
77
78      $("#testimonial").owlCarousel({
79        navigation : false, // Show next and prev buttons
80        slideSpeed : 300,
81        paginationSpeed : 400,
82        singleItem:true
83        });
84
85  	});
86
87  	/*====================================
88    Portfolio Isotope Filter
89    ======================================*/
90    $(window).load(function() {
91        var $container = $('.portfolio-items');
92        $container.isotope({
93            filter: '*',
94            animationOptions: {
95                duration: 750,
96                easing: 'linear',
97                queue: false
98            }
99        });
100        $('.cat a').click(function() {
101            $('.cat .active').removeClass('active');
102            $(this).addClass('active');
103            var selector = $(this).attr('data-filter');
104            $container.isotope({
105                filter: selector,
106                animationOptions: {
107                    duration: 750,
108                    easing: 'linear',
109                    queue: false
110                }
111            });
112            return false;
113        });
114
115    });
116
117  	/*====================================
118    Pretty Photo
119    ======================================*/
120	$("a[rel^='prettyPhoto']").prettyPhoto({
121		social_tools: false
122	});
123
124
125
126
127
128    /* ==========================================================================
129   FAQ accordion
130   ========================================================================== */
131
132
133    var MqM = 768,
134    MqL = 1024;
135
136    var faqsSections = $('.cd-faq-group'),
137    faqTrigger = $('.cd-faq-trigger'),
138    faqsContainer = $('.cd-faq-items'),
139    faqsCategoriesContainer = $('.cd-faq-categories'),
140    faqsCategories = faqsCategoriesContainer.find('a'),
141    closeFaqsContainer = $('.cd-close-panel');
142
143
144    faqsCategories.on('click', function(event) {
145        event.preventDefault();
146        var selectedHref = $(this).attr('href'),
147        target = $(selectedHref);
148        if ($(window).width() < MqM) {
149            faqsContainer.scrollTop(0).addClass('slide-in').children('ul').removeClass('selected').end().children(selectedHref).addClass('selected');
150            closeFaqsContainer.addClass('move-left');
151            $('body').addClass('cd-overlay');
152        } else {
153            $('body,html').animate({'scrollTop': target.offset().top - 19}, 200);
154        }
155    });
156
157
158    $('body').bind('click touchstart', function(event) {
159        if ($(event.target).is('body.cd-overlay') || $(event.target).is('.cd-close-panel')) {
160            closePanel(event);
161        }
162    });
163    faqsContainer.on('swiperight', function(event) {
164        closePanel(event);
165    });
166
167
168    faqTrigger.on('click', function(event) {
169        event.preventDefault();
170        $(this).next('.cd-faq-content').slideToggle(200).end().parent('li').toggleClass('content-visible');
171    });
172
173
174
175
176
177}());
178
179
180}
181main();

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.