Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


<div class="container"> 

	<header class="page-header">
		<h1> <i class="fa fa-wikipedia-w well-sm fondo-verde"></i> Wikipedia viewer</h1>

	<div class="jumbotron text-center">
		<p><a href="" class="btn btn-link btn-lg" role="button">Cliquea aquí para ver un artículo al azar</a></p>
		<div class="row">
			<div class="col-sm-2 col-xs-2"></div>
			<div class="col-sm-8 col-xs-8" id="buscador">
				<form class="form-horizontal" role="form">
					<div class="form-group">
						<div class="input-group">
							<input type="text" class="form-control" id="buscadorInput" placeholder="Escribe lo que quieres buscar">
							<div class="input-group-btn">
								<a id="lupa" href="#" class="btn btn-link btn-lg" role="button"><i class="fa fa-search"></i></a>
			<div class="col-sm-2 col-xs-2"></div>
		<p class="text-success">Cliquea la lupa para buscar</p>

	<div class="well" id="resultados"></div>




                	.fondo-verde {
		background-color: LightGreen;


                $('#lupa').on('click', function buscar(){
	var aBuscar = $('#buscadorInput').val();
	console.log("Quiere buscar: " + aBuscar);
	var cantidadDeResultados = 10;
	$.getJSON("" + aBuscar + "&origin=*", function(data){
		//mostrar los resultados
		$('#resultados').html("<h2> Resultados obtenidos: </h2>");
		for (var i = 0; i < cantidadDeResultados; i++){
			var titulo =[i].title; //tengo que partirlo por los espacios y unir el resultado con _
			$('#resultados').append("<h3><a href='" + titulo.split(" ").join("_") + "'>" + titulo + "</a></h3>");
			$('#resultados').append("<p class='lead'>"+[i].snippet + " ... </p>");	
		$('#resultados').css("background-color", "#2E2D88");
		$('#resultados').css("color", "white");