在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:htmlpreview/htmlpreview.github.com开源软件地址:https://github.com/htmlpreview/htmlpreview.github.com开源编程语言:JavaScript 78.6%开源软件介绍:GitHub & BitBucket HTML PreviewMany GitHub repositories don't use GitHub Pages to host their HTML files. GitHub & BitBucket HTML Preview allows you to render those files without cloning or downloading whole repositories. It is a client-side solution using a CORS proxy to fetch assets. If you try to open raw version of any HTML, CSS or JS file in a web browser directly from GitHub, all you will see is a source code. GitHub forces them to use the "text/plain" content-type, so they cannot be interpreted. This script overrides it by using a CORS proxy. UsageIn order to use it, just prepend this fragment to the URL of any HTML file: https://htmlpreview.github.io/? e.g.:
What it does is: load HTML using CORS proxy, then process all links, frames, scripts and styles, and load each of them using CORS proxy, so they can be evaluated by the browser. GitHub & BitBucket HTML Preview was tested under the latest Google Chrome and Mozilla Firefox. License© 2019 Jerzy Głowacki under Apache License 2.0. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论