Show long/short form instructions based on user input

This commit is contained in:
Nathan Leniz
2015-01-24 20:49:59 -05:00
parent 966eb3d073
commit 3c3dc803c5
4 changed files with 38 additions and 9 deletions

View File

@@ -77,6 +77,17 @@ $(document).ready(function() {
l = location.pathname.split('/');
window.location = '/bonfires/' + (parseInt(l[l.length - 1]) + 1);
});
// Bonfire instructions functions
$('#more-info').on('click', function() {
$('#brief-instructions').hide();
$('#long-instructions').show().removeClass('hide');
});
$('#less-info').on('click', function() {
$('#brief-instructions').show();
$('#long-instructions').hide();
});
});
var profileValidation = angular.module('profileValidation',['ui.bootstrap']);