Giter VIP home page Giter VIP logo

Comments (3)

jeromeetienne avatar jeromeetienne commented on May 21, 2024

can you do a pull request ? and make the id optional in the options. an hardcoded value wont be too flexible

from jquery-qrcode.

Anjen1 avatar Anjen1 commented on May 21, 2024

Oh...right. my bad. I agree completely. I was thinking *default values when I typed in the field and meant to show that as an option instead of the fixed value, where the option would be "container_id" or something along those lines.

30 canvas.id = options.container_id

~line 12 container_id : 'qrCode' (or similar generic default identifier)

and the table looks like it would be fixed by simply appending an attr() call to the end of the css sets

(starting around line 59)
var $table = $('<.table></.table>')
.css("width", options.width+"px")
.css("height", options.height+"px")
.css("border", "0px")
.css("border-collapse", "collapse")
.css('background-color', options.background)

                   .attr('id', options.container_id);

If by pull request you mean for me to change the code and upload back here, I'd be glad to, but I'm kinda newbishly clueless on the collaboration process, (team of one for the most part) so I really don't know how to accomplish it correctly, although willing to learn. If you simply meant for me to grab the source, I have it and have made the changes locally.

from jquery-qrcode.

jeromeetienne avatar jeromeetienne commented on May 21, 2024

pull request is the way to contribute code on github. you can have more doc here http://help.github.com/send-pull-requests/

from jquery-qrcode.

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.