Posts marked with "JavaScript" in categories

How to add Subins Like button to blogger/blogspot

You might have know The Subins Project created by me. It is hosted by AppFog. If you want to add Subins Like button to your blog, then follow these steps.

Go to Blogger
Place this code where you want to add the Subins Like Button.


BLOG URL‘>

If you want to add like button on post footer then follow the steps mentioned below.
Go to Blogger -> Template -> Edit HTML
Click Expand Widget Templates.
Search for the line post-footer’ (within the quote).
Add this code after the first line you just founded.

... [READ MORE]

Selecting a particular parent in Jquery

If you want to select a particular parent div. Then you should use parents() function. If you use parent() function It won’t work. For Example:
index.html


 

  
 

If you want to get the id of the main parent which is .main then you should use Jquery code like this:

$("#click").live(‘click’, function(){
alert($(this).parents(".main").attr(‘id’));
});

The code above will alert the id of the main parent. Try it out yourself.

... [READ MORE]

Create Text Editor like Blogger Using HTML & jQuery

You might have seen text editors where you can bold a text, italic a text etc… The perfect example of this the Blogger Post Text Editor

This is a simple tutorial that will create a text editor using HTML, Jquery & JavaScript.

We have two files, index.html which contains the HTML code and texteditor.js which contains the jQuery code. You should include the texteditor.js in index.html.index.html

... [READ MORE]

Removing HTML tags in an input element.

index.html (Removing HTML in INPUT element).






in" value="Subin">

If the code above didn’t worked try placing the script after the input element.
This is the script

 

... [READ MORE]

How to Stop your Blogger Blog from Redirecting to Country Domains

When you open your blog you will be redirected to the country based domain of your blog.
This will affect your blog badly. For Example:

  1. The social stats – or Facebook Likes, Google +1s and Tweet counts – for your blog stories may be diluted as the URLs for the same story become different from different visitors.
  2. You will have a similar problem if you are using an external commenting platform like Disqus or Facebook Comments.

To prevent this you need to add this code to your Template.
Go to Blogger -> Template -> EDIT HTML

... [READ MORE]

Follow/Subscribe

Telegram 

Mastodon  Twitter

GitHub GitLab

Subdomains

Demos  Lab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab