PageSourceSearch

https://www.bikestation.fi/shop/out/bikestation/src/js/widgets/oxcookienote.js?1455535267

js bikestation.fi collected 2026-10-02 22:41:11 UTC 2,153 bytes, 67 lines download raw bytes

1/**
2 * This file is part of OXID eShop Community Edition.
3 *
4 * OXID eShop Community Edition is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * OXID eShop Community Edition is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with OXID eShop Community Edition.  If not, see <http://www.gnu.org/licenses/>.
16 *
17 * @link      http://www.oxid-esales.com
18 * @copyright (C) OXID eSales AG 2003-2014
19 * @version   OXID eShop CE
20 */
21( function ( $ ) {
22
23    /**
24     * Cookie note handler
25     */
26    oxCookieNote = {
27        options: {
28            closeButton : ".dismiss"
29        },
30        /**
31         * Enable cookie note dismiss
32         *
33         * @return false
34         */
35        _create: function() {
36            var self = this;
37
38            $.cookie('cookiesEnabledCheck', 'yes');
39
40            if ($.cookie('cookiesEnabledCheck')) {
41                $.cookie('cookiesEnabledCheck', null, -1);
42
43                if( !$.cookie("displayedCookiesNotification") ) {
44                    $.cookie("displayedCookiesNotification", 1, { path: '/', expires: 30 });
45                    $('#cookieNote').show();
46
47                    // need to add this even only if we decide to show cookie note
48                    $(self.options.closeButton, self.element).click(
49                        function(){
50                            self.element.fadeOut('slow').remove();
51                            return false;
52                        }
53                    );
54                } else {
55                    self.element.remove();
56                    return false;
57                }
58            }
59        }
60    };
61
62    /**
63     * CookieNote widget
64     */
65    $.widget("ui.oxCookieNote", oxCookieNote );
66
67})( jQuery );

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.