Wikipedia api youtube tutorial revisted

Developer
Size
2,439 Kb
Views
30,360

How do I make an wikipedia api youtube tutorial revisted?

What is a wikipedia api youtube tutorial revisted? How do you make a wikipedia api youtube tutorial revisted? This script and codes were developed by Jason Chan on 13 September 2022, Tuesday.

Wikipedia api youtube tutorial revisted Previews

Wikipedia api youtube tutorial revisted - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>wikipedia api youtube tutorial revisted</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>
</head>
<body> <div class="container"> <h1>wikipedia search</h1> <input id="searchTerm" name="search" placeholder="Search..."/> <button id="search">Submit</button> <div id="output"></div>
</div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Wikipedia api youtube tutorial revisted - Script Codes JS Codes

"use strict";
$("#searchTerm").keypress(function (e) { if (e.keyCode === 13) { var searchTerm = $("#searchTerm").val(); var url = "https://en.wikipedia.org/w/api.php?action=opensearch&search=" + searchTerm + "&format=json&callback=?"; $.ajax({ url: url, type: "GET", async: false, dataType: "json", success: function success(data, status, jqXHR) { console.log(data); for (var i = 0; i < data[1].length; i++) { $("#output").prepend("<div><div class='well'><a href=" + data[3][i] + "><h2>" + data[1][i] + "</h2>" + "<p>" + data[2][i] + "</p></a></div></div>"); } } }); }
});
$("#search").on("click", function () { var searchTerm = $("#searchTerm").val(); var url = "https://en.wikipedia.org/w/api.php?action=opensearch&search=" + searchTerm + "&format=json&callback=?"; $.ajax({ url: url, type: "GET", async: false, dataType: "json", success: function success(data, status, jqXHR) { // console.log(data); for (var i = 0; i < data[1].length; i++) { $("#output").prepend("<div><div class='well'><a href=" + data[3][i] + "><h2>" + data[1][i] + "</h2>" + "<p>" + data[2][i] + "</p></a></div></div>"); } } });
});
Wikipedia api youtube tutorial revisted - Script Codes
Wikipedia api youtube tutorial revisted - Script Codes
Home Page Home
Developer Jason Chan
Username jasonchan
Uploaded September 13, 2022
Rating 3
Size 2,439 Kb
Views 30,360
Do you need developer help for Wikipedia api youtube tutorial revisted?

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!

Jason Chan (jasonchan) Script Codes
Create amazing love letters 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!