javascript - Make dynamic SVG like Travis CI build status -
i'm trying create svg works travis ci build status icon.
looking @ url:
https://travis-ci.org/ddavison/sublime-tabs.svg?branch=master
the url points svg, svg seems able pull information source, hence "passing" or "failing" message.. how can replicate this?
i've tried faking browser making <script>
, , generating svg, doesn't seem work. renders xml on page. possible travis has rule parses .svg
other script file?
how can execute javascript before render svg user?
i've figured out. per @djdavid98 's comment, ended generating image server side.
here's example:
i ended using ruby generate javascript not allowed on github readme!
try yourself! generate buttons people star/fork repo on github:
Comments
Post a Comment