Skip to content

Instantly share code, notes, and snippets.

@laboon
Created May 9, 2014 16:10
Show Gist options
  • Save laboon/943727824dd4bd8a58e9 to your computer and use it in GitHub Desktop.
Save laboon/943727824dd4bd8a58e9 to your computer and use it in GitHub Desktop.
jQuery ($) ->
$(".span_lesson_dropdown").click ->
if $(".row_select_lesson").hasClass "lesson_visible"
console.log "is vis"
$(".row_select_lesson").slideUp()
$(".span_lesson_dropdown").text = "\/"
else
console.log "not vis"
$(".row_select_lesson").slideDown()
$(".span_lesson_dropdown").text = "/\"
$(".row_select_lesson").addClass "lesson_visible"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment