trinary / d3-transform

add an interface for svg transform attributes in d3.js
MIT License
160 stars 17 forks source link

url for this #13

Closed altsheets closed 8 years ago

altsheets commented 9 years ago

Would be nice if this got a URL comparable to https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js

There there's no need for me to copy the script to local.

I also tried to directly include https://raw.githubusercontent.com/trinary/d3-transform/master/src/d3-transform.js

but that results in

Refused to execute script from 
'https://raw.githubusercontent.com/trinary/d3-transform/master/src/d3-transform.js' 
because its MIME type ('text/plain') is not executable, 
and strict MIME type checking is enabled.

Thanks!

For me, d3-transform is very useful!

trinary commented 9 years ago

Yup, Github intentionally sets response headers for raw.githubusercontent.com to discourage people from hotlinking. I'll see about a CDN host, is cdnjs still the standard?

altsheets commented 9 years ago

I'll see about a host,

Nice, thanks a lot.

is cdnjs still the standard?

no idea, these are my first days with D3 ... :-) amazing ...

timelyportfolio commented 9 years ago

As a quick and easy first step, you could try RawGit which yields the links

Also, you could easily do a gh-pages branch (see creating gh-pages) with the file. If you can start a blank gh-pages branch as in the link, I'll be happy to submit pull with the .js and your example that will then be available at http://trinary.github.io/d3-transform.

altsheets commented 9 years ago

Superb. Already included that into my project:

Solved. At least short term ("The catch: this is a free service, so there are no uptime or support guarantees." )

Thanks a lot for your help. How do you like my funny d3-transform-animation ? :-)

trinary commented 9 years ago

Huge delay on this, but I've submitted https://github.com/cdnjs/cdnjs/issues/5836 for CDNJS inclusion.

trinary commented 8 years ago

At long last, we're up on cdnjs :) https://cdnjs.cloudflare.com/ajax/libs/d3-transform/1.0.4/d3-transform.min.js

altsheets commented 8 years ago

thx!