javascript - Angular and jQuery Accordion Reverse Engineering -
i'm trying recreate team/faculty/speaker page found website i'm making. i'm using angular display , search through json, , jquery create hide , show effects of info associated each faculty/speaker. website found at, i've gotten rid of of javascript possibly can, while still retaining functionality of original site, there's still way left , know don't need all. can't figure out else can taken out, variables need replaced with. know important bits are
jquery(document).ready(function(e) { function n() { e(".speaker-list-item.active").each(function() { var t = e(this).find(".speaker-bio"), = t.outerheight() + 40; e(this).css("margin-bottom", + "px") }) } var l = e(".speaker-list-item .speaker-photo-wrap, .speaker-list-item h3 a"); l.on("click", function(t) { t.preventdefault(); var = e(this).parents(".speaker-list-item"), n = i.find(".speaker-bio"), o = n.outerheight() + 30; i.hasclass("active") ? (i.removeclass("active"), i.css("margin-bottom", "0px"), n.removeclass("active")) : (e(".speaker-list-item").removeclass("active"), e(".speaker-list-item").css("margin-bottom", "0px"), e( ".speaker-bio").removeclass("active"), i.addclass("active"), i.css("margin-bottom", o + "px"), n.addclass("active")) }); });
my issue is, having script @ bottom of page, doesn't anything. i've included plunker try , explain issue little better , demonstrate i'm trying achieve. appreciated!
Comments
Post a Comment