Tumblr API
How do I make an tumblr api?
Display Tumblr Photo posts into Masonry layout.. What is a tumblr api? How do you make a tumblr api? This script and codes were developed by Juan Vargas on 14 October 2022, Friday.
Tumblr API - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tumblr API</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <div class="menu"> <ul> <li class="active"><a>Home</a></li> <li><a>Audio</a></li> <li><a>Video</a></li> <li><a>Photo</a></li> <li><a>Text</a></li> </ul> </div>
<div class="container">
<div id="posts"></div>
</div>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://rawgithub.com/desandro/masonry/v2.1.08/jquery.masonry.js'></script>
<script src='https://imagesloaded.desandro.com/imagesloaded.pkgd.js'></script> <script src="js/index.js"></script>
</body>
</html>
Tumblr API - Script Codes CSS Codes
body { background:#f2f2f2; padding:0px; margin:0px; font-family:Arial; font-size:13px; color:#777;
}
h1,h2,h3,h4,h5 { margin:0px; padding:0px;
}
p { line-height:25px;
}
a { cursor:pointer; text-decoration:none;
}
.menu { background:white; border-bottom:solid 2px #e5e5e5; height:60px;
}
.menu ul { width:980px; margin:0px auto; padding:0px;
}
.menu ul li{ float:left; list-style:none; display:inline;
}
.menu ul li.active a{ border-bottom:solid 2px dodgerblue; color:dodgerblue;
}
.menu ul li a{ height:60px; line-height:60px; padding:0 10px; display:block; color:grey;
}
.menu ul li a:hover{ color:dodgerblue;
}
.container { width:980px; margin: 0 auto; margin-top:15px;
}
.container #posts .post { width:270px; float:left; background: #fff; border: solid 1px #eee; padding:12px; margin:0 15px 15px 0; border-radius:3px;
}
.container #posts .post:hover img{ opacity:.7;
}
.container #posts .post img { width:100%;
}
Tumblr API - Script Codes JS Codes
var api_key = 'B5Kb46SjUOGxT9WlYekcs3izcwzMfAlR5ucf8Xvic7MrbsZMxP';
var limit = '20';
$.getJSON('https://api.tumblr.com/v2/blog/festus912.tumblr.com/posts/photo?limit=' + limit + '&api_key=' + api_key + '&callback=?', function(data) { $.each(data.response.posts, function(i, posts) { var image = $("<img/>").attr("src",posts.photos[0].alt_sizes[0].url); var item = $("<div class='post'>").append(image); var $container = $("#posts"); var $item = $(item); $container.append($item).imagesLoaded(function(){ $container.masonry().masonry( 'appended', $item).masonry(); }); });
});
Developer | Juan Vargas |
Username | juanv911 |
Uploaded | October 14, 2022 |
Rating | 3.5 |
Size | 2,436 Kb |
Views | 22,264 |
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 |
Envato API - New API Version | 4,159 Kb |
A Pen by Juan Vargas | 2,315 Kb |
Question and Answer | 2,865 Kb |
SocialCounters - Rounded Buttons | 2,776 Kb |
Flickr API | 2,456 Kb |
Envato API | 3,337 Kb |
Unsplash API | 2,166 Kb |
Base | 2,606 Kb |
Foursquare API - Search Places | 1,913 Kb |
Navigation Menu | 2,839 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 |
React Recipe Box | Krokodill | 5,347 Kb |
A Pen by lizz | Lizz | 10,068 Kb |
Portfolio Landing Page | FDfranklin | 3,585 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
After America | Jonathangarner | 2,686 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
React Template | Isac | 1,241 Kb |
Animated rainbow wave on canvas | Icodeforlove | 2,777 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Colorful Sliders | Chanrith | 1,246 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!