Giter Site home page Giter Site logo

Comments (10)

jonathantneal avatar jonathantneal commented on July 19, 2024

I’ve actually received this request a few times (in email). This needs to be accounted for. I’m leaving this open and I’ll begin work on this as soon as possible.

from svg4everybody.

feena4 avatar feena4 commented on July 19, 2024

Great! Thanks for letting me know.

On 16 August 2014 03:11, Jonathan Neal [email protected] wrote:

I’ve actually received this request a few times (in email). This needs to
be accounted for. I’m leaving this open and I’ll begin work on this as soon
as possible.


Reply to this email directly or view it on GitHub
#14 (comment)
.

from svg4everybody.

thomasmattheussen avatar thomasmattheussen commented on July 19, 2024

+1

When I'm inlining an svg (instead of making a network request), all png files are supposed to be at the document root.
In the past I fixed this with some htaccess rewriting, but it's not optimal.

from svg4everybody.

bmds avatar bmds commented on July 19, 2024

If we could specify a matching regex to be used in the replace call along with a replacement string it would help

from svg4everybody.

thomasmattheussen avatar thomasmattheussen commented on July 19, 2024

I created a pull request with a possible solution.

#34

from svg4everybody.

thomasmattheussen avatar thomasmattheussen commented on July 19, 2024

ofcourse only after noticing that a similar pull request already exists :)

#19

from svg4everybody.

di5abled avatar di5abled commented on July 19, 2024

hy, nice script!

but it really needs an extension to define a path where the fallbacks are located or something like that.
do you have plans if and when you will tackle this problem?

from svg4everybody.

Rjoss avatar Rjoss commented on July 19, 2024

Really great work on the plugin man. +1 for location specification

from svg4everybody.

jonathantneal avatar jonathantneal commented on July 19, 2024

Location specification can be done with the replaceSrc option passed into svg4everybody() in version 2.

from svg4everybody.

ganlanyuan avatar ganlanyuan commented on July 19, 2024

Hello Jonathan Neal,
Could you give a example of using replaceSrc?
Thanks

from svg4everybody.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.