Bitcoin Forum

Bitcoin => Project Development => Topic started by: BTC Tipster on November 05, 2015, 04:17:43 PM



Title: Bitstrapped - Need Help!
Post by: BTC Tipster on November 05, 2015, 04:17:43 PM
Hello,

Can someone help me to implement this code: https://github.com/peterfox/jQuery-Bitstrapped
I want to check wallet address and show its balance on my website.

Anyone?
Thank you.


Title: Re: Bitstrapped - Need Help!
Post by: CrappyJavaScriptDev on November 05, 2015, 05:21:49 PM
This should do the trick. http://codepen.io/anon/pen/JYavjx

A) Include Jquery

B) Include bitstrapped-jquery

C) Add the span element (or whatever else) with an ID.

D)  Insert this code
Code:
    <script>
      $( document ).ready(function() {
        $('#first').on('bitstrapped', function(event, data) {
            if(data) {
                $(this).text(data.final_balance/100000000)
            }
         });
        $().bitstrap({interval:60000});
      });
    </script>

E) Make sure the id in the above script matches the elements id from step C.


Title: Re: Bitstrapped - Need Help!
Post by: BTC Tipster on November 05, 2015, 05:27:44 PM
This should do the trick. http://codepen.io/anon/pen/JYavjx

A) Include Jquery

B) Include bitstrapped-jquery

C) Add the span element (or whatever else) with an ID.

D)  Insert this code
Code:
    <script>
      $( document ).ready(function() {
        $('#first').on('bitstrapped', function(event, data) {
            if(data) {
                $(this).text(data.final_balance/100000000)
            }
         });
        $().bitstrap({interval:60000});
      });
    </script>

E) Make sure the id in the above script matches the elements id from step C.
Awesome! Thanks alot mate.
Really appreciated.

Can i get your wallet address in my PM, u deserve a tip ;)


Title: Re: Bitstrapped - Need Help!
Post by: CrappyJavaScriptDev on November 05, 2015, 05:32:59 PM
This should do the trick. http://codepen.io/anon/pen/JYavjx

A) Include Jquery

B) Include bitstrapped-jquery

C) Add the span element (or whatever else) with an ID.

D)  Insert this code
Code:
    <script>
      $( document ).ready(function() {
        $('#first').on('bitstrapped', function(event, data) {
            if(data) {
                $(this).text(data.final_balance/100000000)
            }
         });
        $().bitstrap({interval:60000});
      });
    </script>

E) Make sure the id in the above script matches the elements id from step C.
Awesome! Thanks alot mate.
Really appreciated.

Can i get your wallet address in my PM, u deserve a tip ;)

No problem mate. Tips not needed.

Enjoy.


Title: Re: Bitstrapped - Need Help!
Post by: BTC Tipster on November 05, 2015, 05:35:55 PM
This should do the trick. http://codepen.io/anon/pen/JYavjx

A) Include Jquery

B) Include bitstrapped-jquery

C) Add the span element (or whatever else) with an ID.

D)  Insert this code
Code:
    <script>
      $( document ).ready(function() {
        $('#first').on('bitstrapped', function(event, data) {
            if(data) {
                $(this).text(data.final_balance/100000000)
            }
         });
        $().bitstrap({interval:60000});
      });
    </script>

E) Make sure the id in the above script matches the elements id from step C.
Awesome! Thanks alot mate.
Really appreciated.

Can i get your wallet address in my PM, u deserve a tip ;)

No problem mate. Tips not needed.

Enjoy.
As you wish, Thanks for helping me.
Topic locked.

Regards,
BTC Tipster.