Stylize Stories
How do I make an stylize stories?
What is a stylize stories? How do you make a stylize stories? This script and codes were developed by Joo Vctor De Oliveira Santos on 27 August 2022, Saturday.
Stylize Stories - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Stylize Stories</title> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='http://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.3/animate.min.css'>
</head>
<body> <div class="jumbotron"> <div class="container"> <div class="row"> <div class="page-title text-center"> <h1>Camper News Hot Stories</br><small><a href="www.freecodecamp.com">FreeCodeCamp.com</a></small></h1> </div> </div> </br> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="progress" id="loadingBar" > <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"> Loading... </div> </div> <div id="list" class="list-group"> </div> </div> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Stylize Stories - Script Codes JS Codes
var template = '<a id="{ID}" href="{LINK_POST}" target="_blank" class="list-group-item list-group-item-info"><table><tr><td rowspan="2"><img src="{IMAGE}" class="img-responsive img-circle" style="width: 60px" /></td><td style="padding-left:2em"><h4 class="list-group-item-heading"><strong>{TITLE} </strong><span class="label label-success"><span class="glyphicon glyphicon-heart" aria-hidden="true"></span> {LIKES}</span></h4></td></tr><tr><td style="padding-left:3em;"><p class="list-group-item-text"><small>Posted on {DATE} by <a target="_blank" href="http://www.freecodecamp.com/{USERNAME}">{USERNAME}</a></small></p></td></tr></table></a>';
function generateItem(id, title, username, likes, image, date, link) { var item = template.replace(/{TITLE}/g, title).replace(/{ID}/g, id).replace(/{IMAGE}/g, image).replace(/{USERNAME}/g, username).replace(/{LINK_POST}/g, link).replace(/{LIKES}/g, likes).replace(/{DATE}/g, date.toDateString()); return item;
}
function addItem(value){ var item = generateItem(value.id,value.headline, value.author.username, value.rank, value.author.picture, new Date(value.timePosted), value.link); $("#list").html($("#list").html() + item); $("#"+value.id).addClass("animated zoomIn");
}
//$("#list").html($("#list").html() + generateItem("Testing title", "jvhti", 32, 34, "https://avatars.githubusercontent.com/u/7606025?v=3", new Date(1452731915396)));
$.get("http://www.freecodecamp.com/news/hot", function(json) { json.forEach(addItem); $('#loadingBar').addClass("animated fadeOut");
});
Developer | Joo Vctor De Oliveira Santos |
Username | jvhti |
Uploaded | August 27, 2022 |
Rating | 3 |
Size | 2,465 Kb |
Views | 36,432 |
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 |
Simon Game | 3,197 Kb |
Local Weather | 2,478 Kb |
Page Size Menu Example | 2,009 Kb |
A Pen by Joo Vctor de Oliveira Santos | 1,647 Kb |
Markdown Previewer | 11,087 Kb |
JavaScript Calculator | 2,542 Kb |
Price Table | 2,460 Kb |
Stylize Stories | 2,465 Kb |
Portfolio Flat | 3,642 Kb |
Twitch JSON API | 2,808 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 |
BSP Dungeon Generation | Xgundam05 | 5,326 Kb |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Simple Accordion | Wearebold | 3,683 Kb |
Alter bg opacity on hover... | Chrisboon27 | 2,054 Kb |
Filter inputs | Rowinf | 1,721 Kb |
This in constructor context | _shree33 | 1,718 Kb |
Example SVGZ Data URI | Joeyhoer | 2,981 Kb |
About Mazano | Kiti | 2,585 Kb |
Exploding Text | Jjmartucci | 4,749 Kb |
ECharts Version 3.0 - Bar Marker Chart | WebCodePro | 2,726 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!