a.download_box{display: none;}.quote_box{cursor: pointer; position: relative;}.quote_box:after{font-family: “fontAwesome”; content: “\f107”; position: absolute; right: 20px; top: 20px; font-size: 24px; color: #222;}.quote_box.opened:after{content: “\f106”;}
jQuery(document).ready(function($){$(“.quote_box”).on(“click”, function(){var flag=false; if (!$(this).hasClass(“opened”)){$(this).addClass(“opened”); $(this) .nextAll() .each(function(){if (!$(this).hasClass(“download_box”)){flag=true; return;}if (!flag && $(this).hasClass(“download_box”)) $(this).css(“display”, “block”);});}else{$(this).removeClass(“opened”); $(this) .nextAll() .each(function(){if (!$(this).hasClass(“download_box”)){flag=true; return;}if (!flag && $(this).hasClass(“download_box”)) $(this).css(“display”, “none”);});}});});