App-MHFS

 view release on metacpan or  search on metacpan

share/public_html/static/browse_gazelle_music.html  view on Meta::CPAN

<html>

<head>
        <meta charset="utf-8"/>
        <style>
            body {
                width: 60%;
            }
            .results {
                /*width: 100%;*/
            }
        .result {
            /*width: 100%;*/           
           
  padding: 0;
        }
        .resultinfo {
    float: left;
    width: 80%;
}

        .resultimage {
    float: left;
    width: 20%;    
}

.resultimage img {
    max-width:100%;
    max-height:100%;
}

/* Clear floats after the columns */
.result:after {
    content: "";
    display: table;
    clear: both;
}
        </style>
</head>

<body>
    <div id="results">
    
    </div>
    <script>
        //let url = 'red.json';
        var resultdiv = document.getElementById('results');

        function dirsplayjson(json) {
            if(json.status === 'success') {
                //console.log(Object.keys(json.response.results[0]));
                var html = '';
                json.response.results.forEach(function(element) {
                    html += '<div class="result"><div class="resultinfo"><table>'
                    html += '<tr><th>' + element.artist + ' - ' + element.groupName + ' (' + element.groupYear + ') ' + element.releaseType + '</th></tr>';
                    var editionId = -1;
                    var editionString;
                    element.torrents.forEach(function(torrent) {
                        html += '<tr><td>';
                        if(torrent.editionId !== editionId) {

                            if(editionId !== -1) {
                                //html += '</table>';
                            }



( run in 1.565 second using v1.01-cache-2.11-cpan-5735350b133 )