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:

enter image description here

i ended using ruby generate javascript not allowed on github readme!

try yourself! generate buttons people star/fork repo on github:

http://githubbadges.com


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -