GreenPedia
How do I make an greenpedia?
What is a greenpedia? How do you make a greenpedia? This script and codes were developed by Ben on 08 August 2022, Monday.
GreenPedia - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>GreenPedia</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <header class="text-center"> <h1>Welcome To GreenPedia</h1> <p><a class="btn btn-default" href="https://en.wikipedia.org/wiki/Special:Random" role="button">Random Wiki</a> or <input></input><button class="btn btn-default" type="button">Search</button> </header>
<main class="center-block">
</main>
<footer>
</footer>
</body> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
GreenPedia - Script Codes CSS Codes
body { background-color: #006400; color:white;
}
/*header { line-height: 200%;
}*//
h1{line-height:200%;}
button, a { margin: 0 1em 0 1em; color: #006400 !important; font-weight:bold !important;
}
header p { font-weight:bold; margin:1.5em;
}
input { margin:0 1em 0 1em; display:none; color: #006400; padding:0.3em; border-radius:5px;
}
main { max-width:1100px; margin: 0px 100px 0px 100px;
}
main div { padding: 1em 2em; background-color:white; color: #006400; border:2px; border-color: #006400; border-style: solid; border-radius:10px;
}
a:hover { text-decoration: none;
}
main div:hover { padding: 1em 2em; background-color: #006400; color: white; border:2px; border-color: white; border-style:solid
}
GreenPedia - Script Codes JS Codes
$(document).ready( function(){ var toSearch = "" $('button').click(function(){ $('input').css('display', 'inline') $('button').click(function(){ toSearch = $('input').val() //console.log(toSearch) toSearch=toSearch.replace(' ', '%20') //console.log(toSearch) var url = `https://en.wikipedia.org/w/api.php?action=opensearch&format=json&origin=*&search=${toSearch}&limit=10&profile=normal` console.log(url) $.getJSON(url, function(data){ //console.log('getJSON in action') //console.log(data) htmlElement=`` for (i in data[1]){ var h3 = data[1][i] var p = data[2][i] var href = data[3][i] htmlUnit = ` <a href="${href}"><div> <h3>${h3}</h3> <p>${p}</p> </div></a>` htmlElement = htmlElement + htmlUnit } console.log(htmlElement) $('main').html(htmlElement) }) }) }) }
);
Developer | Ben |
Username | bencarp |
Uploaded | August 08, 2022 |
Rating | 3 |
Size | 2,410 Kb |
Views | 40,480 |
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 |
TESTS | 1,379 Kb |
What is in Name | 1,749 Kb |
SumAllPrimes | 1,518 Kb |
MakeAPerson | 1,763 Kb |
Weather App | 2,721 Kb |
PairWise | 1,532 Kb |
Smallest Common multiple | 2,035 Kb |
Promodoro | 1,712 Kb |
Fear Not Letter | 1,492 Kb |
SumPrimes | 1,550 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 |
Kudos Please | TimPietrusky | 6,624 Kb |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 Kb |
Portfolio Page | KaylaMT | 1,983 Kb |
Pictos font library from CodePen | Jstam | 3,790 Kb |
Two Element Typeface | Chrisota | 4,942 Kb |
Savemedia1.1 | EdsonAlcala | 2,148 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Video Player Custom Controls | EleftheriaBatsou | 3,665 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
CSS background-size - GSAP | Jonathan | 2,209 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!