Add a lot in "Show More".

1).  Show More button shows more information that is mostly of interest
to developers.
This commit is contained in:
Jonathan Rosenbaum
2015-02-24 06:37:36 +00:00
parent feba6b40e4
commit 6fe27f4873
3 changed files with 9294 additions and 9 deletions
+31
View File
@@ -0,0 +1,31 @@
$(function(){
"use strict";
// extra information about each demo
var demos = ["ybdb", "bikebinder", "bikeshed", "freehub", "bikekitchenpos"];
$.each(demos, function(key, value) {
show_more($('#' + value), $('#' + value + '_button'));
} );
function show_more(demo,demo_button) {
$(demo).hide();
var c=0;
$(demo_button).click(function(e){
e.preventDefault();
if (c == 0) {
$(demo).slideDown();
$(this).attr("value","Show Less");
c++;
} else {
$(demo).slideUp();
$(this).attr("value","Show More");
c--;
}
} );
}
});
+9205
View File
File diff suppressed because it is too large Load Diff