scottycc / coinwidget.com Goto Github PK
View Code? Open in Web Editor NEWThe Bitcoin and Litecoin Donation Button
License: MIT License
The Bitcoin and Litecoin Donation Button
License: MIT License
The coin logos seem to be a little more complicated then they need to be, and they don't seem that "crisp" (sorry, I hate that word when used to design, but it's all I could think of)
Anyhow, maybe you could pay a buck or two on iconfinder to license others:
https://www.iconfinder.com/icons/232023/business_buy_cash_coin_currency_finance_litecoin_money_icon#size=128
https://www.iconfinder.com/icons/262917/baht_bit_bitcoin_business_buy_cash_coin_crypto_currency_finance_gold_money_payment_secure_shopping_virtual_icon#size=128
I guess you could make the color customizable as well, but that's likely a bigger task.
Anyhow, cool project! Thanks!
Hi, I am working on a project to promote Ƀ as the Bitcoin symbol.
This will be the second version of this page, a bit obsolete now. I like coinwidget and forked it. In short I added SVG icons and integrated the Ƀ symbol to the widget.
https://github.com/ecogex/coinwidget.com
As I would like to keep the credit to coinwidget on the widget, maybe we can think to merge your project and my version with Ƀ.
For now all I did is replacing the icon with mine. The CSS file is overwriten too but we can imagine to have 2 styles and 3 symbols (Litecoin, double vertical B and Ƀ). That is why I dont directly ask a pull request.
Tell me know what you think. Have a look to our project and thank you for your work, I just gave you a tip.
Other Bitcoin donation widgets are more actively maintained:
With a common conditional block in the script: method, this statement fails:
document.lastChild.firstChild.appendChild(x)
It matches here as lastChild, and the first node is actually a comment, to which you cannot append a script child:
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
As is, the widget cannot be used on HTTPS secured pages. coinwidget.com does not seem to support SSL at all.
Hi, I just noticed the widget is counting withdrawals, not only Donation's.
See http://peerbetwiki.3owl.com/index.php/Main_Page (under the menu) or here: http://blockchain.info/address/14bRvQrye6EYdVL55Fc9nwWcdVo2StUBTp
Should be easy fixed, but I've no time right now to do it myself. So I just mention it here for now :)
I've added a bitcoin donation button (Hosted on my own servers), but if the button it's enabled I can't even create a thread, when I send it it shows the thread text as "undefined" (and many other issues) it's strage, but after I deleted coinwidget code, the forum started working as usual. Not sure what could cause this.
Here is the forum: https://amxmodx-es.com
If you go to: https://amxmodx-es.com/index.php?widget=true it will show the donation button. It doesn't look like broken, but it actually is.
I get this error on line 300 of coin.js
Uncaught Error: HierarchyRequestError: DOM Exception 3
when I check on the console: document.lastChild.firstChild
It logs an html comment. and hence the counts never load. Could you filter that for html comments
I'm learning how your coin widget works and how it communicates with the blockchain. What I'm trying to figure out is how do you communicate with the blockchain as i try to do a file FIND for any other external URLs and i cant seem to find any. It would be great if you can shed some light on this as I'm still learning how to develop stuff for crypto. thanks!
This is a very bad practice
http://stackoverflow.com/questions/802854/why-is-document-write-considered-a-bad-practice
You should instead make this a jQuery plugin, which loads after document.ready
What happens when user has all his scripts the the header? Or at the end of the page?
But wants the button in the sidebar?
If you implement #2 , you will have a script loading after the DOM, you can search for a special div, like facebook and twitter do in their Like buttons, that div can be placed anywhere by the user, and you will inject conwidget inside there
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.