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/ijzerenman.komma.pro/wwwroot/js/app/header.js
define('header',['images'],function(images)
{
    return {
        initialize: function()
        {
            var t = this;
            t.resize();


            $(window).resize(function()
            {
                t.resize();
            });


        },

        resize: function() {
            var ratio = 100 / 30;
            if ($(window).width() < 720) ratio = 100 / 40;
            if ($(window).width() < 500) ratio = 100 / 50;

            // Resize video
            var $banner = $('.banner');
            var w = $banner.width();
            var h = w / ratio;
            $banner.height(h);

            setTimeout(function () {
                images.fill();
            }, 40);
        }
    }
});