Giter Club home page Giter Club logo

Comments (6)

bsouster avatar bsouster commented on July 29, 2024

In Firebug, I'm seeing that the SVG files are being called in but they aren't working. Replacing them with the PNG files worked. For whatever reason, the JavaScript to check SVG support isn't working.

from swipebox.

Mainstwebguy avatar Mainstwebguy commented on July 29, 2024

Hey bsouster... I'm having the same issue. What did you have to change to use the .png version?

from swipebox.

bsouster avatar bsouster commented on July 29, 2024

This query for SVG support seems to be returning true in the JS file even though the server isn't supporting it.

supportSVG = !!(window.SVGSVGElement),

....

if(supportSVG){
var bg = $('#swipebox-action #swipebox-close').css('background-image');
bg = bg.replace('png', 'svg');
$('#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close').css({
'background-image' : bg
});
}

To band-aid the issue, I commented out this bit:

// bg = bg.replace('png', 'svg');

from swipebox.

Mainstwebguy avatar Mainstwebguy commented on July 29, 2024

Thanks a bunch sir, i'll do this now.

from swipebox.

Mainstwebguy avatar Mainstwebguy commented on July 29, 2024

Sorry, what file are you refering to, a quick global search didn't turn up anything : /

from swipebox.

Mainstwebguy avatar Mainstwebguy commented on July 29, 2024

ok got it... DW search is... er... lacking :) thanks again!

from swipebox.

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.