Skip to content

Commit

Permalink
Can't quite figure out the code to resize the tree after changing APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
BSVino committed Aug 15, 2014
1 parent d2f24ee commit 3626bda
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
4 changes: 4 additions & 0 deletions html/copy/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ li {
text-decoration: none;
}

.hidden {
display: none;
}

#improvepage {
border-top: 1px solid black;
width: 100%;
Expand Down
22 changes: 19 additions & 3 deletions html/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,25 @@
function set_api_version(version) {
$( "#opengl_name" ).text(gl_printable_name(version));

$(".category").addClass("disabled")
$(".command").addClass("disabled")
$("." + version).removeClass("disabled")
$(".category").addClass("disabled");
$(".command").addClass("disabled");
$("." + version).removeClass("disabled");

// Remove functions from GL that ES doesn't have and vice versa.
/*$(".command").each(function() {
$(this).addClass("hidden");
var classList = $(this).attr('class').split(/\s+/);
for (var i = 0; i < classList.length; i++) {
if (classList[i].substring(0, 2) === version.substring(0, 2)) {
$(this).removeClass("hidden");
break;
}
}
});
$(".category").each(function() {
// Fix the different sizes
});*/
}

$(function() {
Expand Down

0 comments on commit 3626bda

Please sign in to comment.