JQuery Live Search on an RSS Feed
How do I make an jquery live search on an rss feed?
JQuery live search snippet combined with the jQuery RSS plugin created by Sascha Depold (https://github.com/sdepold/jquery-rss). What is a jquery live search on an rss feed? How do you make a jquery live search on an rss feed? This script and codes were developed by Html5andblog on 09 August 2022, Tuesday.
JQuery Live Search on an RSS Feed - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>jQuery Live Search on an RSS Feed</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="rss-feed">
<input type="text" class="live-search-box" placeholder="Live Search Posts" />
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.min.js'></script>
<script src='http://s3-us-west-2.amazonaws.com/s.cdpn.io/130527/jquery.rss.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
JQuery Live Search on an RSS Feed - Script Codes CSS Codes
.rss-feed {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 1em;
background-color: #2c3e50;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
font-family: 'Lato', sans-serif;
}
.live-search-box {
width: 100%;
display: block;
padding: 1em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #3498db;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.rss-feed ul {
list-style: none;
padding: 0;
margin: 1em 0 0.5em;
}
.rss-feed a {
text-decoration: none;
color: #fff;
}
JQuery Live Search on an RSS Feed - Script Codes JS Codes
jQuery(document).ready(function($){
$('.rss-feed').rss(
'http://feeds.feedburner.com/Html5AndBeyondHtml5AndBeyond',{
limit: 10,
entryTemplate: '<li><a href="{url}" target="_blank">{title}</a></li>',
success: function(){
$('.rss-feed ul li a').each(function(){
$(this).attr('data-search-term', $(this).text().toLowerCase());
});
}
})
$('.live-search-box').on('keyup', function(){
var searchTerm = $(this).val().toLowerCase(); $('.rss-feed ul li a').each(function(){ if ($(this).filter('[data-search-term *= ' + searchTerm + ']').length > 0 || searchTerm.length < 1) { $(this).parent('li').show(); } else { $(this).parent('li').hide(); } });
});
});
Developer | Html5andblog |
Username | html5andblog |
Uploaded | August 09, 2022 |
Rating | 3 |
Size | 2,312 Kb |
Views | 87,032 |
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 |
Coin Flip Application | 2,361 Kb |
Snow Flurry - Wordpress and jQuery Plugin | 2,614 Kb |
Fix Navigation to Screen on Scroll | 3,673 Kb |
Type It Out jQuery Plugin - Basic | 2,290 Kb |
HTML5 Video Color Filter Effect | 2,398 Kb |
Snow Flurry Version 2 | 1,898 Kb |
Letter by Letter JS Basic Example | 2,141 Kb |
HTML5 Canvas Animated Background Part 1 | 2,070 Kb |
HTML5 Canvas Animated Background Part 2 | 3,154 Kb |
Detect Image Orientation with JavaScript | 1,870 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 |
Basecamp 3 Document | Lachlanjc | 3,811 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
Pomodoro Timer | Sdas13 | 2,900 Kb |
Css3 slide | Nakome | 3,190 Kb |
Dice | Fraina | 5,026 Kb |
My Starter Kit For Codepen | Dkdesign | 2,012 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
Break Out | AzazelN28 | 12,431 Kb |
Prism | Pyrografix | 2,843 Kb |
Haml Calendar | Katydecorah | 5,643 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!