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/SBogers96/smilefotografie.nl/wwwroot/js/app/app.js
// Define resources
define([
    'core/swiper',
    'core/images',
    'modules/fixable',
    'modules/ratio',
    'core/mobileNavigation'
    ],
// Name for resources
function(
    swiper,
    images,
    fixable,
    ratioModule
){
    ratioModule.init();

    // Initialise swipers
    swiper.initialize();

    // Initialise images
    images.initialize();

    // Initialise fixable
    fixable.init();

    // Handle window resize event
    var resizeTimer;
    $(window).resize(function()
    {
        fixable.hide(function(){
            fixable.reset();
        });
        ratioModule.resize();

        clearTimeout(resizeTimer);
        resizeTimer = setTimeout(function()
        {
            // Resize swiper
            swiper.resize();

            // When done resizing
            fixable.resize();
            fixable.show();

        }, 250);
    });

    // Handle window scroll event
    $(window).scroll(function()
    {
        fixable.scroll();
    });
});