<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>JSON Sample</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript">
var MYBLOG_LIMIT = 5;
var MYWRAPPER_CLASS = 'wptitle';
var MYWRAPPER_CLASS2 = 'wpimage';
var MYWRAPPER_CLASS3 = 'wpdescription';
var WP={open:function(b){var a={posts:function(){var d=MYBLOG_LIMIT;var e=0;var c={all:function(g){var f=b+"/api/get_recent_posts/";f+="?count="+d+"&page="+e+"&callback=?";jQuery.getJSON(f,function(l){var k=l.posts;for(var j=0;j<k.length;j++){var h=k[j];h.createComment=function(i,m){i.postId=h.id;a.comments().create(i,m)}}g(k)})},findBySlug:function(f,h){var g=b+"/api/get_post/";g+="?slug="+f+"&callback=?";jQuery.getJSON(g,function(i){h(i.post)})},limit:function(f){d=f;return c},page:function(f){e=f;return c}};return c},pages:function(){var c={findBySlug:function(d,f){var e=b+"/api/get_page/";e+="?slug="+d+"&callback=?";jQuery.getJSON(e,function(g){f(g.page)})}};return c},categories:function(){var c={all:function(e){var d=b+"/api/get_category_index/";d+="?callback=?";jQuery.getJSON(d,function(f){e(f.categories)})}};return c},tags:function(){var c={all:function(e){var d=b+"/api/get_tag_index/";d+="?callback=?";jQuery.getJSON(d,function(f){e(f.tags)})}};return c},comments:function(){var c={create:function(f,e){var d=b+"/api/submit_comment/";d+="?post_id="+f.postId+"&name="+f.name+"&email="+f.email+"&content="+f.content+"&callback=?";jQuery.getJSON(d,function(g){e(g)})}};return c}};return a}};
var blog = WP.open('http://blogs.toledolibrary.org');
blog.posts().all(function(posts){
for(var i = 0; i < posts.length; i++){
jQuery('.'+MYWRAPPER_CLASS).append(function(){
return (posts[i].thumbnail) ? '<a target="_blank" class="lastpost_title" href="'+posts[i].url+'"><h4>'+posts[i].title+'</h4></a>' : '<a href="'+posts[i].url+'"><h4>'+posts[i].title+'</h4></a>';
})
jQuery('.'+MYWRAPPER_CLASS2).append(function(){
return (posts[i].thumbnail) ? '<a href="'+posts[i].url+'"><img src="'+posts[i].attachments[0].images.full.url+'"/></a>' : '<a href="'+posts[i].url+'"><img src="'+posts[i].attachments[0].images.full.url+'"/></a>';
})
jQuery('.'+MYWRAPPER_CLASS3).append(function(){
return (posts[i].thumbnail) ? posts[i].excerpt : posts[i].excerpt;
})
}
});
</script>
<style>
.sociable { display:none; }
</style>
</head>
<body>
<div class="wptitle"></div>
<div class="wpimage"></div>
<div class="wpdescription"></div>
</body>
</html>
Nice article.thank you for sharing with us...PHP Training in Bangalore || Oracle DBA Training in Bangalore
ReplyDeleteI have read your blog its very attractive and impressive. I like it your blog.
ReplyDeleteJavascript Training in Chennai | HTML5 Online Training
JavaScript Training Courses | Javascript Online Training | Angular 2 Training in Chennai
JavaScript Training in CHennai HTML5 Training in Chennai HTML5 Training in Chennai JQuery Training in Chennai JQuery Training in Chennai JavaScript Training in Chennai JavaScript Training in Chennai
ReplyDeleteJQuery Training in Chennai JQuery Training in Chennai HTML5 Training in Chennai HTML5 Training in Chennai JavaScript Training in Chennai JavaScript Training in Chennai MEAN Developer Training in Chennai MEAN Developer Training in Chennai JavaScript Training in CHennai
ReplyDeleteGreat.. Tutorial is just awesome..It is really helpful for a newbie like me...
ReplyDeleteJavaScript Online Training JavaScript Online Training JQuery Online Training JQuery Online Training
JavaScript Course | HTML5 Online Training
The development of artificial intelligence (AI) has propelled more programming architects, information scientists, and different experts to investigate the plausibility of a vocation in machine learning. Notwithstanding, a few newcomers will in general spotlight a lot on hypothesis and insufficient on commonsense application. IEEE final year projects on machine learning In case you will succeed, you have to begin building machine learning projects in the near future.
DeleteProjects assist you with improving your applied ML skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include projects into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Final Year Project Centers in Chennai even arrange a more significant compensation.
Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account.
The blog explanation is very clear content about this topic. I am surprised to visit your weblog and Thank you...!
ReplyDeleteExcel Training in Chennai
Excel Advanced course
Unix Training in Chennai
Linux Training in Chennai
Job Openings in Chennai
Pega Training in Chennai
Primavera Training in Chennai
Oracle Training in Chennai
Oracle DBA Training in Chennai
Power BI Training in Chennai
Appium Training in Chennai
I would definitely thank the admin of this blog for sharing this information with us. Waiting for more updates from this blog admin.
ReplyDeleteRPA Training in Chennai
Robotic Process Automation Certification
Robotic Process Automation Training
DevOps Training in Chennai
Azure Training in Chennai
VMware Training in Chennai
RPA Training in Porur
RPA Training in OMR
RPA Training in Adyar
RPA Training in Anna Nagar
ReplyDeleteI got wonderful information from this blog. Thanks for sharing this post. it becomes easy to read and understand the information.
PHP Training in Chennai
PHP Training in Bangalore
PHP Training in Coimbatore
PHP Course in Madurai
PHP Course in Bangalore
PHP Training Institute in Bangalore
PHP Classes in Bangalore
Best PHP Training Institute in Bangalore
DevOps Training in Bangalore
DOT NET Training in Bangalore
Amazing Post. keep update more information.
ReplyDeleteSelenium Training in Chennai
Selenium Training in Bangalore
Selenium Training in Coimbatore
Selenium Course in Bangalore
Best Selenium Training in Bangalore
Selenium training in marathahalli
Selenium training in Btm
Ethical Hacking Course in Bangalore
Tally Course in Chennai
This Blog is really informative!! keep update more about this…
ReplyDeleteAviation Courses in Bangalore
Air Hostess Training in Bangalore
Airport Management Courses in Bangalore
Ground Staff Training in Bangalore
Aviation Institute in Bangalore
Air Hostess Academy Bangalore
Airport Management in Bangalore
I'm more than happy to find this page. I wanted to thank you for your time for this wonderful read!! I definitely enjoyed every bit of it and I have you bookmarked to check out new things in your informative web site.
ReplyDelete