mirror of
https://github.com/fspc/BikeBike-Community-Software-Docker-Demo-WebSite.git
synced 2026-09-16 16:41:37 -04:00
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:
@@ -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--;
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
Vendored
+9205
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user