<head>
    <link rel="stylesheet" href="buefy.min.css">
    <script defer src="../assets/all.min.js"></script>
</head>

<body onload="updateSize()">
    <div id="app">
        <progress v-if="showProgress" class="progress is-info" v-bind:value="progress" max="100">0 %</progress>
        <b-table v-if="resultsFound" class="is-fullwidth" :data="results" default-sort="s" default-sort-direction="desc"
            :striped="true" :paginated="true" :narrowed="true">
            <template slot-scope="props">
                <b-table-column field="text" label="Name" sortable>
                    <span style="overflow-wrap: anywhere;word-break: break-all" v-bind:title="props.row.text">{{ props.row.text }}</span>
                </b-table-column>
                <b-table-column field="len" label="Size" sortable>
                    {{ props.row.length }}
                </b-table-column>
                <b-table-column field="s" label="Seed" numeric sortable>
                    {{ props.row.s }}
                </b-table-column>
                <b-table-column field="l" label="Leech" numeric sortable>
                    {{ props.row.l }}
                </b-table-column>
                <b-table-column field="id" label=" " e>
                    <span class="icon">
                        <a style="color: hsl(171, 100%, 41%)" @click="resultClicked(props.row.id,props.row.text,props.row.s,props.row.l,props.row.len)" v-bind:href="'magnet:?xt=urn:btih:' + props.row.id + '&dn=' + urlEncode(props.row.text) + '&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce'">
                            <i class="fas fa-magnet"></i>
                        </a>
                    </span>
                </b-table-column>
            </template>
        </b-table>
    </div>
    <script src="../assets/vue-v2.6.11.js"></script>
    <script src="buefy-table.js"></script>
    <script src="platform.js"></script>
    <script src="main.js"></script>
</body>