<commit_before>@extends('layout')

@section('content')
    @include('partials.standardHeader')

    <section class="section home">
        <div class="container">
            <div class="column is-half is-offset-one-quarter">
                <div class="box">
                    <form action="/upload" class="dropzone" id="that-zone">
                        <div class="dz-message needsclick">
                            <h2>Drop files here or click to upload</h2>
                            <br>
                            <span class="note needsclick">
                                Max: 50Mb/file
                            </span>
                        </div>
                        {{ csrf_field() }}
                    </form>
                </div>

                <form action="{{ url('/zip/' . Session::get('hash')) }}" method="POST" id="form">
                    {{ csrf_field() }}

                    <div class="control password-conrol is-grouped has-addons">
                        <input type="password" name="password" class="input is-large is-expanded" placeholder="Password (optional)">
                        
                        {{-- Firefox is a bit wee so we can't use damn buttons with icons, instead we have to use something else like a div --}}
                        <div class="button is-primary is-large" onclick="document.querySelector('#form').submit()" title="Convert the uploaded files to a .zip archive">
                            <span>Zip up</span>
                            <span class="icon is-small">
                                <i class="zip-icon"></i>
                            </span>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </section>

@stop<commit_msg>Thanks to the bulma update, we can now use buttons with icons and it'll work with firefox<commit_after>@extends('layout')

@section('content')
    @include('partials.standardHeader')

    <section class="section home">
        <div class="container">
            <div class="column is-half is-offset-one-quarter">
                <div class="box">
                    <form action="/upload" class="dropzone" id="that-zone">
                        <div class="dz-message needsclick">
                            <h2>Drop files here or click to upload</h2>
                            <br>
                            <span class="note needsclick">
                                Max: 50Mb/file
                            </span>
                        </div>
                        {{ csrf_field() }}
                    </form>
                </div>

                <form action="{{ url('/zip/' . Session::get('hash')) }}" method="POST" id="form">
                    {{ csrf_field() }}

                    <div class="control password-conrol is-grouped has-addons">
                        <input type="password" name="password" class="input is-large is-expanded" placeholder="Password (optional)">
                        
                        <button class="button is-primary is-large" onclick="document.querySelector('#form').submit()" title="Convert the uploaded files to a .zip archive">
                            <span>Zip up</span>
                            <span class="icon is-small">
                                <i class="zip-icon"></i>
                            </span>
                        </button>
                    </div>
                </form>

            </div>
        </div>
    </section>

@stop
{'fraction_non_alphanumeric': 0.12672486623486343, 'fraction_numerical': 0.002252886510842016, 'mean_word_length': 1.1764705882352942, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6515353', 'n_tokens_mistral': 875, 'n_tokens_neox': 815, 'n_words': 212}