PageSourceSearch

https://tofas.com.tr/_catalogs/masterpage/scripts/button-search.js

js tofas.com.tr collected 2026-09-24 19:35:11 UTC 1,653 bytes, 54 lines download raw bytes

1'use strict';
2
3Gri.module({
4  name: 'button-search',
5  ieVersion: null,
6  $el: $('.button-search'),
7  container: '.button-search',
8  fn: function fn() {
9    tofas.buttonSearch = {
10      el: $('.button-search'),
11      searchAlpha: $('.search-alpha'),
12      headerAlpha: $('.header-alpha'),
13      init: function init() {
14        tofas.buttonSearch.click();
15      },
16      click: function click() {
17        tofas.buttonSearch.el.on('click', function () {
18          var icon = $(this).find('i');
19          if (icon.hasClass('icon-search')) {
20            tofas.buttonSearch.open(icon);
21          } else {
22            tofas.buttonSearch.close(icon);
23          }
24        });
25      },
26      open: function open(selector) {
27        selector.removeClass('icon-search').addClass('icon-close');
28        tofas.buttonSearch.searchAlpha.addClass('opened');
29        if (tofas.buttonSearch.headerAlpha.length > 0) {
30          tofas.buttonSearch.headerAlpha.addClass('search');
31        }
32      },
33      close: function close(selector) {
34        $('.search-alpha').find('input').val("");
35        selector.removeClass('icon-close').addClass('icon-search');
36        tofas.buttonSearch.searchAlpha.removeClass('opened');
37        if (tofas.buttonSearch.headerAlpha.length > 0) {
38          tofas.buttonSearch.headerAlpha.removeClass('search');
39        }
40      },
41      menu: function menu(val) {
42        if (val == "open") {
43          tofas.buttonSearch.searchAlpha.addClass('menu');
44        } else {
45          tofas.buttonSearch.searchAlpha.removeClass('menu');
46        }
47      }
48
49      /**/
50
51    };tofas.buttonSearch.init();
52  }
53});
54//# sourceMappingURL=button-search.js.map

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.