Jd wiki
How do I make an jd wiki?
What is a jd wiki? How do you make a jd wiki? This script and codes were developed by Codoer on 07 December 2022, Wednesday.
Jd wiki - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>jd wiki</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!--
* I removed the <link> which belongs in settings
* I also removed the <br>'s which you shouldn't use for anything other than testing
* Use css to create space between elements. I added some small things to css
* to create the space.
-->
<div class="container-fluid "> <div class="row text-center aligeneral"> <div class="wiki-area"> <h1>Wikipedia Viewer</h1>
<!--
* I added some column classes with offsets to size the input and center it
* I removed the form which was causing the page to refresh when you submitted it.
* That's why your content was disapearing.
--> <div class="input-group col-xs-6 col-xs-offset-3 col-md-4 col-md-offset-4"> <span class="input-group-addon" class="form-control-feedback"> <i class="fa fa-search"></i> </span> <input class="form-control" type="search" id="wikiSearch" value="" placeholder="Search..."> </div> <a href="https://en.wikipedia.org/wiki/Special:Random" class="btn btn-primary" target="_blank">Random Wikipedia</a> <div id="wikiContent"></div> </div> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Jd wiki - Script Codes CSS Codes
body { background-color: #008299; background-size: cover; height: 2000px;
}
#wikiDiv { width: 1150px; background-color: lightgray; margin-top: 40px; margin-left: auto; margin-right: auto; padding-top: 1px; padding-left: 20px; padding-right: 10px; color: black; padding-bottom: 5px; border-radius: 10px; text-align: left;
}
h1 { font-size: 60px; font-weight: bold; color: white; margin: 30px 0; /* create space from input */
}
#wikiTitle { color: darkcyan;
}
/* Always use classes/ids to select elements if you have them set */
#wikiSearch { border-radius: 4px; font-size: 20px;
}
/* space between input and button */
.btn-primary { margin-top: 25px;
}
Jd wiki - Script Codes JS Codes
// typical function to setup events and initialize content when the page is loaded
function setup() { // keyup is good for capturing each key press $('#wikiSearch').on('keyup', getUserInput);
}
function getUserInput(key) { if ( key.keyCode === 13 ) loadData(); // if enter key is pressed, get search results
}
function loadData() { // no need for preventing default when you're not using a form var wikiUrl = "https://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrlimit=10&prop=extracts&exintro&explaintext&exsentences=1&exlimit=max&callback=?&gsrsearch=" var value = $("input").val(); $.getJSON(wikiUrl + value, function(data) { var obj = data.query.pages; var HTMLnodes = ""; // build up the results $.map(obj, function(v, i) { HTMLnodes+= "<div id='wikiDiv'><a href='https://en.wikipedia.org/wiki/" + v.title + "' target='_blank'><h2 id='wikiTitle'>" + v.title + "</h2>" + "</a><h4 id='wikiExtract'>" + v.extract + "</h4></div>" }); //remove old search results $("#wikiContent").empty(); //add new results $("#wikiContent").append(HTMLnodes); });
}
setup(); // run the setup function to initialize your code
Developer | Codoer |
Username | c0d0er |
Uploaded | December 07, 2022 |
Rating | 3 |
Size | 3,082 Kb |
Views | 24,288 |
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 |
Random Quote Machine | 2,411 Kb |
Twitch TV App | 3,530 Kb |
React Markdown Previewer | 3,190 Kb |
Calculator | 3,530 Kb |
Visualize US GDP Data with a Bar Chart | 7,811 Kb |
Pomodoro 1 timer | 2,589 Kb |
React Camper Leaderboard | 5,258 Kb |
Visualize National Contiguity with a Force Directed Graph | 5,906 Kb |
Pomodoro positions | 2,182 Kb |
Show the Local Weather | 2,904 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 |
Portfolio Page | KaylaMT | 1,983 Kb |
Animate elements with fixed gradient | Badabam | 4,406 Kb |
Cant get enough icecream in pure css3 | Melawire | 4,322 Kb |
Confirm Close Of Foundation Reveal Modal | Winghouchan | 1,818 Kb |
Free css icon set v2 - one div | Ben_jammin | 0 Kb |
Save for later... | Victorfreire | 1,359 Kb |
Sass Get Function | Lukewatts | 2,155 Kb |
Fluid Responsive Typography | Jonmilner | 4,205 Kb |
Board Site | IndianaLuft | 10,542 Kb |
Addthis_button | Esambino | 1,691 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!