Pull TSX quote - jquery

Developer
Size
2,044 Kb
Views
30,360

How do I make an pull tsx quote - jquery?

What is a pull tsx quote - jquery? How do you make a pull tsx quote - jquery? This script and codes were developed by Cory Schadt on 19 October 2022, Wednesday.

Pull TSX quote - jquery Previews

Pull TSX quote - jquery - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pull TSX quote - jquery</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Blackberry TSX</h1>
<div id="tsx-price"></div>
<div id="tsx-change"></div>
<div id="tsx-volume"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Pull TSX quote - jquery - Script Codes CSS Codes

* { font-family: Arial; line-height: 1.5; color: #666;
}

Pull TSX quote - jquery - Script Codes JS Codes

$(document).ready(function(){
var url = "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22BB.TO%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="; $.getJSON(url, function (json) { var tsxVolume = json.query.results.quote.Volume; tsxVolume = tsxVolume.toString().replace(/\B(?=(?:\d{3})+(?!\d))/g, ","); var tsxChange = json.query.results.quote.Change; var tsxPrice = json.query.results.quote.LastTradePriceOnly; $('#tsx-price').text(tsxPrice); $('#tsx-change').text(tsxChange); $('#tsx-volume').text(tsxChange); //Replace symbols on change with icons perhaps $("#tsx-change").html($("#tsx-change").html().replace(/-/g,'<span class="icon neg">up </span>')); $("#tsx-change").html($("#tsx-change").html().replace(/\+/g,'<span class="icon pos">down </span>')); });
});
Pull TSX quote - jquery - Script Codes
Pull TSX quote - jquery - Script Codes
Home Page Home
Developer Cory Schadt
Username coryschadt
Uploaded October 19, 2022
Rating 3
Size 2,044 Kb
Views 30,360
Do you need developer help for Pull TSX quote - jquery?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Cory Schadt (coryschadt) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!