PageSourceSearch

https://itfarrag.com/frontend/assets/js/app.js

js itfarrag.com collected 2026-10-02 20:41:12 UTC 6,922 bytes, 204 lines download raw bytes

1/******/ (function(modules) { // webpackBootstrap
2/******/ 	// The module cache
3/******/ 	var installedModules = {};
4/******/
5/******/ 	// The require function
6/******/ 	function __webpack_require__(moduleId) {
7/******/
8/******/ 		// Check if module is in cache
9/******/ 		if(installedModules[moduleId]) {
10/******/ 			return installedModules[moduleId].exports;
11/******/ 		}
12/******/ 		// Create a new module (and put it into the cache)
13/******/ 		var module = installedModules[moduleId] = {
14/******/ 			i: moduleId,
15/******/ 			l: false,
16/******/ 			exports: {}
17/******/ 		};
18/******/
19/******/ 		// Execute the module function
20/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21/******/
22/******/ 		// Flag the module as loaded
23/******/ 		module.l = true;
24/******/
25/******/ 		// Return the exports of the module
26/******/ 		return module.exports;
27/******/ 	}
28/******/
29/******/
30/******/ 	// expose the modules object (__webpack_modules__)
31/******/ 	__webpack_require__.m = modules;
32/******/
33/******/ 	// expose the module cache
34/******/ 	__webpack_require__.c = installedModules;
35/******/
36/******/ 	// define getter function for harmony exports
37/******/ 	__webpack_require__.d = function(exports, name, getter) {
38/******/ 		if(!__webpack_require__.o(exports, name)) {
39/******/ 			Object.defineProperty(exports, name, {
40/******/ 				configurable: false,
41/******/ 				enumerable: true,
42/******/ 				get: getter
43/******/ 			});
44/******/ 		}
45/******/ 	};
46/******/
47/******/ 	// getDefaultExport function for compatibility with non-harmony modules
48/******/ 	__webpack_require__.n = function(module) {
49/******/ 		var getter = module && module.__esModule ?
50/******/ 			function getDefault() { return module['default']; } :
51/******/ 			function getModuleExports() { return module; };
52/******/ 		__webpack_require__.d(getter, 'a', getter);
53/******/ 		return getter;
54/******/ 	};
55/******/
56/******/ 	// Object.prototype.hasOwnProperty.call
57/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58/******/
59/******/ 	// __webpack_public_path__
60/******/ 	__webpack_require__.p = "";
61/******/
62/******/ 	// Load entry module and return exports
63/******/ 	return __webpack_require__(__webpack_require__.s = 0);
64/******/ })
65/************************************************************************/
66/******/ ([
67/* 0 */
68/***/ (function(module, exports, __webpack_require__) {
69
70__webpack_require__(1);
71module.exports = __webpack_require__(2);
72
73
74/***/ }),
75/* 1 */
76/***/ (function(module, exports) {
77
78(function ($) {
79    $(document).ready(function () {
80        $('[data-toggle="tooltip"]').tooltip();
81        var $window = $(window);
82
83        // if ($('.home-slider').length) {
84        //     var galleryTop = new Swiper('.gallery-top', {
85        //         nextButton: '.swiper-button-next',
86        //         prevButton: '.swiper-button-prev',
87        //         spaceBetween: 10,
88        //         autoplay: 3000,
89        //         effect: 'flip'
90        //     });
91        //     var galleryThumbs = new Swiper('.gallery-thumbs', {
92        //         spaceBetween: 10,
93        //         centeredSlides: true,
94        //         slidesPerView: 'auto',
95        //         touchRatio: 0.2,
96        //         slideToClickedSlide: true,
97        //     });
98        //     galleryTop.params.control    = galleryThumbs;
99        //     galleryThumbs.params.control = galleryTop;
100        // }
101
102        $(document).on('click', '.btn-search a', function (event) {
103            event.preventDefault();
104            $('.btn-search').toggleClass('active');
105            return false;
106        });
107
108        //sticky nav
109        var nav = $(".main-nav");
110        var menuOffset = nav.offset().top;
111        var menuHeight = nav.outerHeight();
112        var menuScrollHeight = menuOffset + menuHeight;
113        var scrollTrigger = 100;
114
115        if ($window.scrollTop() >= menuScrollHeight) {
116            nav.addClass('sticky');
117        }
118
119        $window.on('scroll', function () {
120            if ($window.scrollTop() >= menuScrollHeight) {
121                nav.addClass('sticky');
122            } else {
123                nav.removeClass('sticky');
124            }
125
126            if ($('#back-to-top').length) {
127                if ($window.scrollTop() > scrollTrigger) {
128                    $('#back-to-top').addClass('show');
129                } else {
130                    $('#back-to-top').removeClass('show');
131                }
132            }
133        });
134
135        $(document).on('click', '.nav-action', function () {
136            $('.main-nav .menu').toggleClass('active');
137        });
138
139        $(document).on('click', '.category-theme a', function (event) {
140            event.preventDefault();
141            $('.category-theme li').removeClass('active');
142            $(this).parent('li').addClass('active');
143
144            if ($(this).attr('data-type') == 'half_width') {
145                $('.main-content').addClass('categories-half-width');
146            } else {
147                $('.main-content').removeClass('categories-half-width');
148            }
149            return false;
150        });
151
152        var masterslider = new MasterSlider();
153
154        // slider controls
155        masterslider.control('arrows', { autohide: false, overVideo: true });
156        masterslider.control('thumblist', { autohide: false, overVideo: true, dir: 'h', speed: 17, inset: false, arrows: true, hover: false, customClass: '', align: 'bottom', type: 'thumbs', margin: 5, width: 127, height: 71, space: 5, fillMode: 'fill' });
157        // slider setup
158        masterslider.setup("masterslider", {
159            width: 728,
160            height: 410,
161            grabCursor: false,
162            mouse: false,
163            autoplay: true,
164            instantStartLayers: true,
165            loop: true,
166            preload: 2,
167            heightLimit: true,
168            overPause: true,
169            centerControls: false,
170            startOnAppear: false,
171            layersMode: "center",
172            autofillTarget: "",
173            hideLayers: true,
174            speed: 25,
175            dir: "h",
176            parallaxMode: 'swipe',
177            view: "scale"
178        });
179
180        // var slider = new MasterSlider();
181        //
182        // slider.control('arrows');
183        // slider.control('circletimer' , {color:"#FFFFFF" , stroke:9});
184        // slider.control('thumblist' , {autohide:false ,dir:'v',type:'tabs', align:'right', margin:-12, space:0, width:229, height:100, hideUnder:550});
185        //
186        // slider.setup('masterslider-vertical' , {
187        //     width:905,    // slider standard width
188        //     height:490,
189        //     space:0,
190        //     view:'basic',
191        //     autoplay: true,
192        //     loop: true,
193        // });
194    });
195})(jQuery);
196
197/***/ }),
198/* 2 */
199/***/ (function(module, exports) {
200
201// removed by extract-text-webpack-plugin
202
203/***/ })
204/******/ ]);

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.