Including JavaScript files from GitHub into HTML pages

后端 未结 7 861
北荒
北荒 2020-12-12 18:53

PAY ATTENTION!

You can\'t include Github scripts directly from Github after this change.

We added the X-Conte

7条回答
  •  甜味超标
    2020-12-12 19:33

    You can include hosted CSS, HTML and JS file in GITHUB PAGES

    Just click at the settings on your github repository then at this tab scroll down to the GitHub Pages and select with the dropdown

    Then HOray you can now access it live

    This is the raw that returns text/plain mime type

    https://raw.githubusercontent.com/bdalina54/bdalina54.github.io/master/assets/js/terebra/acrior.js

    
    

    And this is the live version

    https://bdalina54.github.io/assets/js/terebra/acrior.js

    
    

    You can check my screenshot how I did it

    https://prnt.sc/obbrpn

    https://prnt.sc/obbt69

    https://prnt.sc/obbskb

提交回复
热议问题