Tag: javascript

  • Efficient JavaScript One-Liners to Elevate Your Code

    Efficient JavaScript One-Liners to Elevate Your Code

    Discover how JavaScript One-Liners can transform your coding with concise, powerful snippets that boost productivity and code quality.

  • TypeScript 4.0 is here!

    TypeScript 4.0 is here!

    Microsoft continues to make developers feel great using new technologies. Now they announced the availability of TypeScript 4.0! It’s better in all areas – productivity, stability, and scalability. Developers love to work with clean, well structured, readable, and functional code. This is exactly what TypeScript is for. Together with their IDE Visual Code it’s a…

  • Scroll to an anchor

    Scroll to an anchor

    Smooth javascript scrolling. <script type=”text/javascript”>// <![CDATA[ function goToByScroll(id){ $(‘html,body’).animate({scrollTop: $(“#”+id).offset().top},’slow’); } // ]]></script> <a onclick=”goToByScroll(‘1’)” href=”javascript:void(0)”>Go to anchor 1</a> <div id=”1″>content</div>