W3C home > Mailing lists > Public > spec-prod@w3.org > October to December 2012

Re: biblio.js update best practice?

From: <Frederick.Hirsch@nokia.com>
Date: Fri, 12 Oct 2012 14:40:33 +0000
To: <blsaws@gmail.com>
CC: <Frederick.Hirsch@nokia.com>, <spec-prod@w3.org>
Message-ID: <1CB2E0B458B211478C85E11A404A2B27017C822A@008-AM1MPN1-035.mgdnok.nokia.com>
Much thanks Bryan - this is exactly what I've been looking for!

W3C Team , any way to put this on the W3C site along with the validator, link checker etc?

regards, Frederick

Frederick Hirsch

On Oct 11, 2012, at 9:32 AM, ext Bryan Sullivan wrote:

Because I like doing it this way, I wrote a quick biblio tester page. Put this in the directory above your respect git clone directory.

<!DOCTYPE html>

<title>Respec biblio.js Tester</title>
<script type="text/javascript" src="respec/bibref/biblio.js"></script>
<script type="text/javascript">
function test(ref) {
if (typeof berjon !== "undefined") document.getElementById('ref').innerHTML = berjon.biblio[ref];
else alert("biblio.js did not compile");

<body onload="test('HTML5');">
Check the reference: <input id=check type=text onchange='test(check.value);' value='HTML5'></input>
<div id=ref></div>
Received on Friday, 12 October 2012 14:41:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:17 UTC