Jd wiki

Developer
Size
3,082 Kb
Views
24,288

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 Previews

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
Jd wiki - Script Codes
Jd wiki - Script Codes
Home Page Home
Developer Codoer
Username c0d0er
Uploaded December 07, 2022
Rating 3
Size 3,082 Kb
Views 24,288
Do you need developer help for Jd wiki?

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!

Codoer (c0d0er) Script Codes
Create amazing marketing copy 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!