Adds placeholder text for js disabled browsers. Refs #1292.
This commit is contained in:
parent
9fd6464a74
commit
bddfe007b6
2 changed files with 6 additions and 6 deletions
|
|
@ -50,19 +50,17 @@ proc processContent(content: string) =
|
|||
|
||||
var officialPkgListDiv = document.getElementById("officialPkgList")
|
||||
|
||||
officialPkgListDiv.innerHTML.add(
|
||||
officialPkgListDiv.innerHTML =
|
||||
p("There are currently " & $officialCount &
|
||||
" official packages in the Babel package repository.") &
|
||||
ul(officialList)
|
||||
)
|
||||
|
||||
var unofficialPkgListDiv = document.getElementById("unofficialPkgList")
|
||||
|
||||
unofficialPkgListDiv.innerHTML.add(
|
||||
unofficialPkgListDiv.innerHTML =
|
||||
p("There are currently " & $unofficialCount &
|
||||
" unofficial packages in the Babel package repository.") &
|
||||
ul(unofficialList)
|
||||
)
|
||||
|
||||
proc gotPackageList(apiReply: TData) {.exportc.} =
|
||||
let decoded = decodeContent($apiReply.content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue