Skip to content
Snippets Groups Projects
Select Git revision
  • 71e4b9383164261b2ca175541e43f13ff136131e
  • master default protected
  • renovate/webpack-cli-6.x
  • renovate/symfony-webpack-encore-bundle-2.x-lockfile
  • renovate/symfony
  • renovate/major-phpstan-packages
  • renovate/phpunit-phpunit-11.x
  • renovate/major-symfony
  • develop/frankenphp
9 results

symfony.lock

Blame
  • error.js 1.38 KiB
    $(function() {
        runScripts(data, 0);
    });
    
    function runScripts(data, pos) {
        var prompt = $('.prompt'),
            script = data[pos];
        if(script.clear === true) {
            $('.history').html('');
        }
        switch(script.action) {
            case 'type':
                // cleanup for next execution
                prompt.removeData();
                $('.typed-cursor').text('');
                prompt.typed({
                    strings: script.strings,
                    typeSpeed: 30,
                    callback: function() {
                        var history = $('.history').html();
                        history = history ? [history] : [];
                        history.push('$ ' + prompt.text());
                        if(script.output) {
                            history.push(script.output);
                            prompt.html('');
                            $('.history').html(history.join('<br>'));
                        }
                        // scroll to bottom of screen
                        $('.terminal').scrollTop($('.terminal').height());
                        // Run next script
                        pos++;
                        if(pos < data.length) {
                            setTimeout(function() {
                                runScripts(data, pos);
                            }, script.postDelay || 1000);
                        }
                    }
                });
                break;
            case 'view':
    
                break;
        }
    }