Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI improvement #4

Merged
merged 4 commits into from
Aug 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add files via upload
  • Loading branch information
ttimer authored Aug 7, 2021
commit 877af812a7eec40b0aa0832ff82ade4ebd2bd576
35 changes: 27 additions & 8 deletions mid3TagMp3ListTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
<meta property="og:url" content="https://smolka.lima-city.de/">
<meta name="author" content="Jürgen Smolka">
<script type="text/javascript" src="dhtml.js"></script>
<!-- JS202106 -->
</head>

<body onload="ladenaus();">
<a name="top"></a>
<noscript style="text-align:center;"><h1>Please activate JavaScript</h1></noscript>
<noscript><h1 style="text-align:center; background-color:yellow;">Please activate JavaScript</h1></noscript>
<?php
$relpfad = ""; //"./"; //"./test/";
$relpfad = "";
$viewonly = null;
$execute = null;

Expand All @@ -24,6 +25,7 @@
$genre = "";
$comment = "";

//$fileTyp = array("flac", "ogg", "wav", "cda", "mp3");
$fileTyp = array("mp3");
$dateien = array();
$onlyDir = "";
Expand Down Expand Up @@ -53,7 +55,8 @@
<fieldset style="width:900px;">
<legend><span style="font-weight:700;">List Tags</legend>
<p>
(rel)path: <input type="text" name="relpfad" style="width:777px;" value="<?php echo $relpfad ?>" placeholder="./folder/" required />
(rel)path: <input type="text" name="relpfad" style="width:777px;" value="<?php echo $relpfad ?>" placeholder="./folder/ &nbsp; &nbsp; &nbsp; (./artist/album/ - ./artist/album/cd1/ - ./music/blues/ - ...)" required />
<input type="checkbox" id="long" name="long" title="wrap - [ W ]" checked onclick="wrap()" />
</p>
<p style="display:none">
viewonly: <input type="checkbox" name="viewonly" checked />
Expand All @@ -69,9 +72,26 @@
</p>
</form>
<p style="margin-left:11%;"><img name="load" src="loading.gif" width="44" height="44" alt="loading"></p>

<script type="text/javascript">
function ladenaus() { document.load.style.display = "none"; }
function ladenein() { document.load.style.display = "block"; }
function wrap() {
if(document.getElementById("out").style.whiteSpace == "nowrap") {
document.getElementById("out").style.whiteSpace = "normal";
document.getElementById("long").title = "no wrap - [ W ]";
document.getElementById("long").checked = false;
}
else {
document.getElementById("out").style.whiteSpace = "nowrap";
document.getElementById("long").title = "wrap - [ W ]";
document.getElementById("long").checked = true;
}
}
document.onkeypress = function(event) {
if(event.key == "w" || event.key == "W")
wrap();
}
</script>

<?php
Expand All @@ -96,11 +116,10 @@ function ladenein() { document.load.style.display = "block"; }
exit();
}

if($viewonly)
$ausgabe = buildSites1($batch);
echo '<dir style="text-align:center;"><p><a href="#top">top</a><br><br></p></dir>';
echo '<div id="out" style="white-space:nowrap;">';
$ausgabe = buildSites1($batch);
echo '</div>';
}
?>

</body>
</html>
</html>