You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
629 B
31 lines
629 B
$(function(){
|
|
|
|
"use strict";
|
|
|
|
// extra information about each demo
|
|
var demos = ["ybdb", "bikebinder", "bikeshed", "freehub", "bikekitchenpos", "signinapp"];
|
|
|
|
$.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--;
|
|
}
|
|
} );
|
|
}
|
|
|
|
});
|
|
|
|
|