Bitcoin Forum
June 16, 2024, 11:13:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitstrapped - Need Help!  (Read 587 times)
BTC Tipster (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100


★Bitvest.io★ Play Plinko or Invest!


View Profile
November 05, 2015, 04:17:43 PM
 #1

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.

CrappyJavaScriptDev
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
November 05, 2015, 05:21:49 PM
 #2

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.
BTC Tipster (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100


★Bitvest.io★ Play Plinko or Invest!


View Profile
November 05, 2015, 05:27:44 PM
 #3

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 Wink

CrappyJavaScriptDev
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
November 05, 2015, 05:32:59 PM
 #4

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 Wink

No problem mate. Tips not needed.

Enjoy.
BTC Tipster (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100


★Bitvest.io★ Play Plinko or Invest!


View Profile
November 05, 2015, 05:35:55 PM
 #5

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 Wink

No problem mate. Tips not needed.

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

Regards,
BTC Tipster.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!