-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs.js
38 lines (26 loc) · 977 Bytes
/
js.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
jQuery( document ).ready( function($){
// jQuery cross domain ajax
$.ajax({
type:"GET",
//async:false,
url: coin_tracker.ajax_url,
dataType: 'html',
data: {
action: 'coin_tracker_load_content',
url:'https://bitconnect.co/bitcoin-price'
},
success: function( html ){
var $html = $( html );
var btc = $( '.header-info-col a[title="Bitcoin price"] span span', $html ).html();
btc = btc.replace( '=', '' );
btc = btc.trim();
btc = btc.replace( '$', '' );
$( '.coin_btc_to_usd' ).html( btc );
var bcc = $( '.header-info-col a[title="Bitconnect price"] span span', $html ).html();
bcc = bcc.replace( '=', '' );
bcc = bcc.trim();
bcc = bcc.replace( '$', '' );
$( '.coin_bcc_to_usd' ).html( bcc );
}
});
} );