mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
Adds placeholder text for js disabled browsers. Refs #1292.
This commit is contained in:
@@ -594,7 +594,8 @@ compiler.
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<div id="officialPkgList"></div>
|
||||
<div id="officialPkgList"><b>If you are reading this you are missing
|
||||
babelpkglist.js or have javascript disabled in your browser.</b></div>
|
||||
|
||||
Unofficial packages
|
||||
-------------------
|
||||
@@ -605,7 +606,8 @@ Nimrod programming language.
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<div id="unofficialPkgList"></div>
|
||||
<div id="unofficialPkgList"><b>If you are reading this you are missing
|
||||
babelpkglist.js or have javascript disabled in your browser.</b></div>
|
||||
|
||||
<script type="text/javascript" src="babelpkglist.js"></script>
|
||||
<script type="text/javascript" src="http://build.nimrod-lang.org/packages?callback=gotPackageList"></script>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user