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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -