This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
function doSearch() { | |
var searchInput = $('.search').val(); | |
if (searchInput.length < 1 || $("ul#tabsContent li").hasClass( "list-items" ) === true) { | |
return false; | |
} | |
var wikiUrl = "https://en.wikipedia.org/w/api.php"; | |
$.ajax({ | |
url: wikiUrl, | |
data: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="main-container"> | |
<a class="wiki-link" href="https://en.wikipedia.org/wiki/Special:Random" target="_blank">Wikipedia Random article <i class="fa fa-external-link" aria-hidden="true"></i></a> | |
<div class="input-group search-group"> | |
<input type="text" class="form-control search" placeholder="Search for..."> | |
<span class="input-group-btn search-go"> | |
<button class="btn btn-secondary" type="button">Search Wikipedia!</button> | |
</span> | |
</div> | |
<ul class="list-continer"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var myGeoLocationApp = myGeoLocationApp || (function() { | |
// on dom ready main functions | |
$(function() { | |
$('#js-geo-btn').on('click', myGeoLocationApp.findMyLocationWeather); | |
$('#js-geo-search, #js-location-search').on('click', myGeoLocationApp.searchLocationEnter); | |
var setMessageTimerMain = new myGeoLocationApp.SetMessageTimer('.information .js-geolocation-note', 'bg-warning', 3000); | |
setMessageTimerMain.showMessage(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<header class="header"> | |
<h4 class="fa header text-primary">Random Quote Machine</h4> | |
</header> | |
<main class="main center-block"> | |
<div class="content" id="quote"> | |
<i class="fa fa-quote-left"> |