출처: https://ourcodeworld.com/articles/read/140/top-5-best-code-syntax-highlighter-javascript-plugins개발블로그에서 가장 중요한 요소 중 하나가 문법강조(Code Highlight) 기능을 사용해서 코드를 올릴 수 있는가이다. 다음은 중요 기능이 있고, 사용하기 쉬우며, 테마를 고를 수 있는 문법강조 JS 플러그인들이며, VanillaJS 위에서 동작한다.1. Prism.js - http://prismjs.com/2. highlight.js - https://highlightjs.org/3. Rainbow - https://craig.is/making/rainbows4. SyntaxHighlighter - http://alexg..
출처: https://stackoverflow.com/questions/18981909/how-to-show-a-running-progress-bar-while-page-is-loading페이지 로딩중 관련 JSNProgress http://ricostacruz.com/nprogress/ PACE http://github.hubspot.com/pace/docs/welcome/Onextrapixel http://onextrapixel.com/examples/youtube-like-ajax-loading-bar/index5.html
Regular Expression Based Implementation String.prototype.replaceAll = function(search, replacement) { var target = this; return target.replace(new RegExp(search, 'g'), replacement); }; Split and Join (Functional) Implementation String.prototype.replaceAll = function(search, replacement) { var target = this; return target.split(search).join(replacement); }; The regular expression based implementa..
- Total
- Today
- Yesterday