PageSourceSearch

https://bio-farmacy.com/modules/owlthemeconfigurator/views/js/frontend/jquery.appear.js

js bio-farmacy.com collected 2026-10-08 20:31:31 UTC 3,656 bytes, 81 lines download raw bytes

1/*
2* 2007-2017 PrestaShop
3*
4* NOTICE OF LICENSE
5*
6* This source file is subject to the Academic Free License (AFL 3.0)
7* that is bundled with this package in the file LICENSE.txt.
8* It is also available through the world-wide-web at this URL:
9* http://opensource.org/licenses/afl-3.0.php
10* If you did not receive a copy of the license and are unable to
11* obtain it through the world-wide-web, please send an email
12* to [email protected] so we can send you a copy immediately.
13*
14* DISCLAIMER
15*
16* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
17* versions in the future. If you wish to customize PrestaShop for your
18* needs please refer to http://www.prestashop.com for more information.
19*
20*  @author PrestaShop SA <[email protected]>
21*  @copyright  2007-2017 PrestaShop SA
22*  @version  Release: $Revision$
23*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
24*  International Registered Trademark & Property of PrestaShop SA
25* #jQuery appear
26*/
27
28(function(e){e.fn.appear=function(t,n){var r=e.extend({data:undefined,one:true,accX:0,accY:0},n);return this.each(function(){var n=e(this);n.appeared=false;if(!t){n.trigger("appear",r.data);return}var i=e(window);var s=function(){if(!n.is(":visible")){n.appeared=false;return}var e=i.scrollLeft();var t=i.scrollTop();var s=n.offset();var o=s.left;var u=s.top;var a=r.accX;var f=r.accY;var l=n.height();var c=i.height();var h=n.width();var p=i.width();if(u+l+f>=t&&u<=t+c+f&&o+h+a>=e&&o<=e+p+a){if(!n.appeared)n.trigger("appear",r.data)}else{n.appeared=false}};var o=function(){n.appeared=true;if(r.one){i.unbind("scroll",s);var o=e.inArray(s,e.fn.appear.checks);if(o>=0)e.fn.appear.checks.splice(o,1)}t.apply(this,arguments)};if(r.one)n.one("appear",r.data,o);else n.bind("appear",r.data,o);i.scroll(s);e.fn.appear.checks.push(s);s()})};e.extend(e.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=e.fn.appear.checks.length;if(t>0)while(t--)e.fn.appear.checks[t]()},run:function(){if(e.fn.appear.timeout)clearTimeout(e.fn.appear.timeout);e.fn.appear.timeout=setTimeout(e.fn.appear.checkAll,20)}});e.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,n){var r=e.fn[n];if(r){e.fn[n]=function(){var t=r.apply(this,arguments);e.fn.appear.run();return t}}})})(jQuery);
29
30/*scroll*/
31/* SHARED VARS */
32var touch = false;
33
34// handles Animate
35function dataAnimate(){
36  $('[data-animate]').each(function(){
37    
38    var $toAnimateElement = $(this);
39    
40    var toAnimateDelay = $(this).attr('data-delay');
41    
42    var toAnimateDelayTime = 0;
43    
44    if( toAnimateDelay ) { toAnimateDelayTime = Number( toAnimateDelay ); } else { toAnimateDelayTime = 200; }
45    
46    if( !$toAnimateElement.hasClass('animated') ) {
47      
48      $toAnimateElement.addClass('not-animated');
49      
50      var elementAnimation = $toAnimateElement.attr('data-animate');
51      
52      $toAnimateElement.appear(function () {
53        
54        setTimeout(function() {
55          $toAnimateElement.removeClass('not-animated').addClass( elementAnimation + ' animated');
56        }, toAnimateDelayTime);
57        
58      },{accX: 0, accY: -80},'easeInCubic');
59      
60    }
61    
62  });
63}
64   
65jQuery(document).ready(function($) {
66  
67  /* DETECT PLATFORM */
68  $.support.touch = 'ontouchend' in document;
69  
70  if ($.support.touch) {
71    touch = true;
72    $('body').addClass('touch');
73  }
74  else{
75	$('body').addClass('notouch');
76  }
77  /* Handle Animate */
78  if(touch == false){
79    dataAnimate();
80  }
81});

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.