Wikipedia Search
How do I make an wikipedia search?
What is a wikipedia search? How do you make a wikipedia search? This script and codes were developed by Jerry Byron on 11 December 2022, Sunday.
Wikipedia Search - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Wikipedia Search</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.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://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Wikipedia Search - Script Codes JS Codes
$("#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(data, status, jqXHR){ console.log(data); for( var i = 0; i < data[1].lenght; 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>); } } })
})
Developer | Jerry Byron |
Username | tomcolby |
Uploaded | December 11, 2022 |
Rating | 3 |
Size | 1,867 Kb |
Views | 8,096 |
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!
Name | Size |
My Random Quote Machine | 2,437 Kb |
My second project, My Portfolio webpage. | 3,313 Kb |
Show the Local Weather | 2,873 Kb |
A Pen by Jerry Byron | 1,290 Kb |
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!
Name | Username | Size |
ECharts Version 3.0 - Bar Marker Chart | WebCodePro | 2,726 Kb |
Responsive Table-less Shopping Cart | Alex_rodrigues | 6,637 Kb |
Drag n Drop | Martin42 | 2,594 Kb |
Cool audio | Bigliam | 1,868 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
JQuery AJAX reddit Exercise | Btholt | 1,777 Kb |
Expandable Left Side Bar with jQuery animate | Retrofuturistic | 2,483 Kb |
LAMP PURE CSS with Animation | Dam62500 | 2,911 Kb |
Siema - add pagination to prototype | Pawelgrzybek | 2,575 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!