diff options
author | nea <romangraef@loves.dicksinhisan.us> | 2021-12-09 03:09:45 +0100 |
---|---|---|
committer | nea <romangraef@loves.dicksinhisan.us> | 2021-12-09 03:09:45 +0100 |
commit | 3efd5ae38bf5467c3d61c9b3478ca96950104510 (patch) | |
tree | 2d777afecfc0433ddbf05b8d7421fa5d35ad38fa /src/main/kotlin/moe/nea89/website/index.kt | |
parent | f8c6246a262b1d15e42ce812363f7d4e4eb16b8a (diff) | |
download | neamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.tar.gz neamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.tar.bz2 neamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.zip |
delay
Diffstat (limited to 'src/main/kotlin/moe/nea89/website/index.kt')
-rw-r--r-- | src/main/kotlin/moe/nea89/website/index.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea89/website/index.kt b/src/main/kotlin/moe/nea89/website/index.kt index a2577ad..4a69a14 100644 --- a/src/main/kotlin/moe/nea89/website/index.kt +++ b/src/main/kotlin/moe/nea89/website/index.kt @@ -5,6 +5,7 @@ import kotlinx.browser.document import kotlinx.html.dom.append import kotlinx.html.js.div import styled.injectGlobal +import kotlin.time.Duration.Companion.milliseconds val defaultFileSystem = fileSystem { "etc" { @@ -60,9 +61,11 @@ fun main() { is KFile.Directory -> { val longestName = file.files.keys.maxOf { it.length } file.files.forEach { (name, file) -> + wait(200.milliseconds) console.addLine( name + " ".repeat(longestName + 1 - name.length) + file.fileType ) + console.rerender() } } else -> "is a ${file.fileType}" |