PageSourceSearch

https://territoiredefemmes.fr/modules/anscrolltop/views/js/front.js

js territoiredefemmes.fr collected 2026-10-10 02:20:18 UTC 1,766 bytes, 49 lines download raw bytes

1/**
2* 2007-2015 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    Apply Novation (Artem Zwinger) <[email protected]>
21*  @copyright 2016-2017 Apply Novation
22*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
23*/
24
25jQuery(document).ready(function () {
26	var start_opacity = jQuery("#scrolltopbtn").css("opacity");
27
28	if (jQuery(window).scrollTop() < 200) jQuery("#scrolltopbtn").css({opacity: 0});
29	
30	jQuery("#scrolltopbtn").css({display: 'block'});
31
32	jQuery(window).scroll(function() {
33	    if (jQuery(window).scrollTop() > 200) jQuery("#scrolltopbtn").css({opacity: start_opacity});
34	    else jQuery("#scrolltopbtn").css({opacity: 0});
35	});
36
37	jQuery("#scrolltopbtn")
38		.on("click", function () {
39			jQuery("html, body").animate({ scrollTop: 0 }, "slow");
40			return false;
41		})
42		.on("mouseenter", function() {
43			jQuery("#scrolltopbtn").css({opacity: 1});
44		})
45		.on("mouseleave", function() {
46		    if (jQuery(window).scrollTop() > 200) jQuery("#scrolltopbtn").css({opacity: start_opacity});
47		    else jQuery("#scrolltopbtn").css({opacity: 0});
48		});
49});

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.