Skip to content

Commit

Permalink
storing specification
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolalysenko committed Oct 28, 2014
1 parent 33c75f6 commit 5c2bf3e
Show file tree
Hide file tree
Showing 8 changed files with 3,966 additions and 0 deletions.
Binary file added docs/GLSL_ES_Specification_1.0.17.pdf
Binary file not shown.
3,886 changes: 3,886 additions & 0 deletions docs/WebGL Specification.html

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions docs/WebGL Specification_files/Khronos-WD.css
@@ -0,0 +1,8 @@

/* Style for a public "Working Draft" */

@import "default.css";

body {
background-image: url('logo-WD.png');
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/WebGL Specification_files/WebGL-Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions docs/WebGL Specification_files/generateTOC.js
@@ -0,0 +1,53 @@
function nextLevel(nodeList, startIndex, hlevel, prefix, tocString)
{
var hIndex = 1;
var i = startIndex;

while (i < nodeList.length) {
var currentNode = nodeList[i];

if (currentNode.tagName != "H"+hlevel)
break;

if (currentNode.className == "no-toc") {
++i;
continue;
}

var sectionString = prefix+hIndex;

// Update the TOC
var text = currentNode.innerHTML;
// Strip off names specified via <a name="..."></a>
var tocText = text.replace(/<a name=[\'\"][^\'\"]*[\'\"]>([^<]*)<\/a>/g, "$1");
tocString.s += "<li class='toc-h"+hlevel+"'><a href='#"+sectionString+"'><span class='secno'>"+sectionString+"</span>"+tocText+"</a></li>\n";

// Modify the header
currentNode.innerHTML = "<span class=secno>"+sectionString+"</span> "+text;
currentNode.id = sectionString;

// traverse children
i = nextLevel(nodeList, i+1, hlevel+1, sectionString+".", tocString);
hIndex++;
}

return i;
}

function generateTOC(toc)
{
var nodeList = $("h2,h3,h4,h5,h6");
var tocString = { s:"<ul class='toc'>\n" };
nextLevel(nodeList, 0, 2, "", tocString);
toc.innerHTML = tocString.s;

// Now position the document, in case a #xxx directive was given
var id = window.location.hash.substring(1);
if (id.length > 0) {
var target = document.getElementById(id);
if (target) {
var rect = target.getBoundingClientRect();
setTimeout(function() { window.scrollTo(0, rect.top) }, 0);
}
}
}
19 changes: 19 additions & 0 deletions docs/WebGL Specification_files/jquery-1.3.2.min.js

Large diffs are not rendered by default.

Binary file added docs/es_full_spec_2.0.25.pdf
Binary file not shown.

1 comment on commit 5c2bf3e

@hughsk
Copy link
Member

@hughsk hughsk commented on 5c2bf3e Oct 28, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👍👍 good idea!

Please sign in to comment.