javascript - How to add plugins to website from GitHub? -


i'm looking add plugins, circletype.js , lettering.js specifically, codepen project , i'm not sure how proceed.

i've come across before situation before, find great plugin use, , installation documented "download github". repo on github missing actual steps install. i've tried googling this, search results not related, such installing wordpress plugins.

there must standard way install plugins websites, can't seem find on adding plugin github website or codepen project.

any appreciated. thank :)

you can request files text raw.githubusercontent.com available @ raw option @ repositories

https://raw.githubusercontent.com/peterhry/circletype/master/js/circletype.js

https://raw.githubusercontent.com/davatron5000/lettering.js/master/jquery.lettering.js

then create <script> elements, set .textcontent of <script> element text response, append script document.

fetch("/path/to/raw/file") .then(response => response.text()) .then(text => {   let script = document.createelement("script");   script.textcontent = text;   document.body.appendchild(script);   script.onload = () => {     // stuff object defined in script   } }) 

Comments

Popular posts from this blog

python - What's the Pythonic way to report nonfatal errors in a parser? -

sql server - Deadlock occuring in Clustered Columnstore index -

php - curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to domain.com:443 -