HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/topswtw.komma.pro/wwwroot/js/app/pages/pages.js
define([
        'app/pages/brands',
        'app/pages/products',
        'app/modules/contentWatcher',
        'app/pages/customer',
        'app/pages/cookies',
        'app/pages/search',
        'app/pages/return'
    ]
    , function (brands, products, contentWatcher, cookies) {
        var $content = $('#content');
        var $sidebar = $('#sidebar');
        var t = this;
        contentWatcher.watch();

        $(window).resize(function () {
            contentWatcher.watch();
        });


        $('.maintenance-choices-group').each(function () {
            if ($(this).find('.line-0').height() > $(this).find('.line-1').height()) {
                $(this).find('.line-1').height($(this).find('.line-0').height())
            }
            if ($(this).find('.line-1').height() > $(this).find('.line-0').height()) {
                $(this).find('.line-0').height($(this).find('.line-1').height())
            }
        })
        $('.maintenance-choices').click(function () {
            $(this).find('input').prop('checked', true);
            $('.maintenance-choices').removeClass('chosen')
            $('.maintenance-choices').addClass('inactive')
            $(this).addClass('chosen')
            $(this).removeClass('inactive')
        })



        //Hide the login form
        $('#loginWrapper .cross, #loginWrapper').click(function (event) {
            if (event.target.id != this.id) return;
            $('#loginWrapper').addClass('inactive');
        });

        $('.activatePopup').click(function(e){
            $('#loginWrapper').removeClass('inactive');
            e.preventDefault
            return false;
        })


        $(window).load(function () {
            var id = window.location.hash.replace('#/', '')
            if(id == '') return;
            var scrollTo = $('#' + id).offset().top - 130
            $('html,body').animate({
                scrollTop: scrollTo
            }, 1000);
        })

    }
);