diff --git a/assets/main.coffee b/assets/main.coffee index bf08c87..9975a24 100644 --- a/assets/main.coffee +++ b/assets/main.coffee @@ -38,9 +38,14 @@ document.addEventListener 'DOMContentLoaded', (event) -> #console.log("Meta: %o", meta) vermeta = meta['versions'][ver] + updateText = '' if vermeta['FULL'].length > 0 fullmeta = vermeta['FULL'][0] fullInfo = "✔️ (first released: #{fullmeta['published_first']})" + if fullmeta['note']['en'] + updateText = fullmeta['note']['en'] + updateText = updateText.replace /\n/g, '
' + #updateText += '

' else fullInfo = "❌" @@ -56,16 +61,18 @@ document.addEventListener 'DOMContentLoaded', (event) -> toList = toList.join ', ' updateInfo = "OTA possible to #{toList}" else - updateInfo = "No further OTA update." + updateInfo = "No OTA to future version." tt_title.innerHTML = ver tt_text.innerHTML = """ - for #{ref} - #{meta['variant']}
+ for #{ref}
+ #{meta['variant']}

FULL: #{fullInfo}
OTA: #{otaInfo}
+ #{updateInfo}

- #{updateInfo} + #{updateText} """ diff --git a/assets/style.css b/assets/style.css index 5c3f789..a76d938 100644 --- a/assets/style.css +++ b/assets/style.css @@ -24,6 +24,7 @@ main { z-index: 200; position: absolute; display: none; + max-width: 70%; } #tooltip h1 {