WikipediaViewer
How do I make an wikipediaviewer?
What is a wikipediaviewer? How do you make a wikipediaviewer? This script and codes were developed by Hong on 21 October 2022, Friday.
WikipediaViewer - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>WikipediaViewer</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container-fluid"> <div class="text-center title"> <h2>Wikipedia Viewer</h2> </div> <div style="text-align:center;" class="random"> <a href="https://en.wikipedia.org/wiki/Special:Random" target="_blank"><button type="button" class="btn"><h3>Click here for a random article</h3></button></a> <div> <input id="input1" type="text" placeholder="Click here to search"> </div> <br> <div class="result1"></div> </div>
</div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
WikipediaViewer - Script Codes CSS Codes
body { background-color: #8FBC8F;
}
.title { position: relative; top: 60px;
}
.random { position: relative; top: 120px;
}
input { height: 60px; width: 348px; font-size: 24px;
}
.entry { background-color: #ddd; padding: 10px 20px; border-radius: 20px;
}
WikipediaViewer - Script Codes JS Codes
$(document).ready(function() { $("#input1").keypress(function(event) { console.log(event); if (event.keyCode == 13) { $(".title").removeClass("title"); $(".random").removeClass("random"); $.getJSON("https://www.crossorigin.me/https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&srsearch=" + $("#input1").val(), function(json) { var html = ""; var a={}; var b=0; json.query.search.forEach(function(val) { $.getJSON("https://www.crossorigin.me/https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&&exsentences=1&titles=" + val.title, function(json) { a=json.query.pages; b=Object.keys(a)[0]; html += '<div style="text-align:left;" class="entry"><a href="https://en.wikipedia.org/?curid=' + b + '" target="_blank">' + '<h4>' + a[b].title + "</h4>" + a[b].extract + "</a></div><br>"; $(".result1").html(html); }); // Now a different json }); }); }; });
});
Developer | Hong |
Username | designbuildshipsoftware |
Uploaded | October 21, 2022 |
Rating | 3 |
Size | 2,383 Kb |
Views | 22,264 |
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 |
Tribute Page of Bill Gates | 2,289 Kb |
Canvas | 0 Kb |
Personal Portfolio of Hong | 3,487 Kb |
Pomodoro Clock5 | 0 Kb |
ContractVehicles | 1,631 Kb |
Pomodoro Clock | 2,764 Kb |
Tabs | 2,741 Kb |
Use the Twitchtv JSON API 2 | 2,723 Kb |
Use the Twitchtv JSON API | 2,883 Kb |
WikipediaViewer1 | 2,276 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 |
Twitch TV | Natester13 | 4,488 Kb |
Css Rotating 3d cubes different speed | Dghez | 2,364 Kb |
Light Switch | Bartuc | 4,933 Kb |
Weather App | OmranAbazid | 2,596 Kb |
Loading animation with css | Icebob | 2,947 Kb |
Save for later... | Victorfreire | 1,359 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 Kb |
Magnus 3 | ARocketfish | 7,944 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!