<script src = "jquery.js"> </ script> <script src = "classy.js"> </ script> <script> jQuery.Events.addEventListener (document, "ready", function () { jQuery.querySelectorAll ("div"). forEach (function (elem) { jQuery.DOM.append (elem, "<b> More ... </ b>"); }); jQuery.querySelectorAll ("div b"). forEach (function (elem) { jQuery.Events.addEventListener ("click", function (elem, event) { var next = jQuery.Traversal.nextSibling (elem); var animation = jQuery.Effects.buildAnimation (next, {height: "toggle"}); amimation.start (); }); }); }); </ script>
Source: https://habr.com/ru/post/22710/
All Articles