PageSourceSearch

https://www.terraelements.de/out/terraelements/src/js/widgets/oxcenterelementonhover.js?1729603241

js terraelements.de collected 2026-09-25 00:38:16 UTC 1,552 bytes, 45 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    oxCenterElementOnHover = {
24
25        _create: function(){
26
27            var self = this;
28            var el   = self.element;
29
30             el.hover(function(){
31                  var targetObj = $(".viewAllHover", el);
32                  var targetObjWidth = targetObj.outerWidth() / 2;
33                  var parentObjWidth = el.width() / 2;
34
35                  targetObj.css("left", parentObjWidth - targetObjWidth + "px");
36                  targetObj.show();
37              }, function(){
38                  $(".viewAllHover", el).hide();
39              });
40        }
41    }
42
43    $.widget( "ui.oxCenterElementOnHover", oxCenterElementOnHover );
44
45} )( 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.