Giter Site home page Giter Site logo

Dev fund counter about dogecoin.com HOT 9 OPEN

dogecoin avatar dogecoin commented on June 21, 2024
Dev fund counter

from dogecoin.com.

Comments (9)

iw0nderhow avatar iw0nderhow commented on June 21, 2024

Correct link: http://www.reddit.com/r/dogecoin/comments/2ohqab/new_dev_fund_address_and_quick_update_about_the/cmntm8t

from dogecoin.com.

langerhans avatar langerhans commented on June 21, 2024

Copy/paste fail, sorry.

from dogecoin.com.

patricklodder avatar patricklodder commented on June 21, 2024

Generic badge generated with chain.so data:

counter

<a href="https://chain.so/address/DOGE/9x9zSN9vx3Kf9B4ofwzEfWgiqxwBieCNEb">
  <img src="https://dogebadge.herokuapp.com/v1/9x9zSN9vx3Kf9B4ofwzEfWgiqxwBieCNEb"/>
</a>

It'd be cool if someone could make a proper svg, to improve the current "designed by someone who knows nothing about design" (me) look & feel :)

from dogecoin.com.

josephfusco avatar josephfusco commented on June 21, 2024

@patricklodder would we be able to just do this with html & css and link to chain.so, and feed in the current total with js? I don't think a svg badge is the only option seeing that is just being requested on the dogecoin.com site. Codepen

from dogecoin.com.

patricklodder avatar patricklodder commented on June 21, 2024

@josephfusco The reason why i chose this approach is:

  1. The dogebadge app caches total balance locally to not put strain on any block explorer (strain will scale with pageviews, especially for addresses that have tons of small utxo, like the dev address.) I can opensource that app though it's really 20 lines of code or so.
  2. svg is relatively small in size. I'm not sure if an html iframe solution will be smaller

I like your codepen example, just need to cache/proxy the balance between requests? How is this queried now?

from dogecoin.com.

josephfusco avatar josephfusco commented on June 21, 2024

It's not haha. I just pasted in the current balance for demo purposes 😄

from dogecoin.com.

josephfusco avatar josephfusco commented on June 21, 2024

@patricklodder I can whip up some sort of svg then, and we can still style it with css. Do I need to include anything specific? I see that <tspan xmlns="http://www.w3.org/2000/svg" id="amount_tspan">Ð4 994 514.18</tspan> is holding the value. Also where do we want this going on the site?

from dogecoin.com.

patricklodder avatar patricklodder commented on June 21, 2024

well, that or I can make a simple api that will do the caching and we can make it some sort of widget. Let me talk to my sochain/dogechain.info counterpart and see how to facilitate it in the best way. (please give me a day because of timezone diff)

I'll get back to you as soon as I have a solution.

from dogecoin.com.

josephfusco avatar josephfusco commented on June 21, 2024

Sounds good. I'm available any day.

from dogecoin.com.

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.