Skip to content

googlePreviewSnippet is a jQuery plugin that creates a simulation preview of Google's search engine results pages (SERPs)

Notifications You must be signed in to change notification settings

mabuenox/jquery.googlePreviewSnippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery.googlePreviewSnippet

googlePreviewSnippet is a jQuery plugin that creates a simulation preview of Google's search engine results pages (SERPs)

How to use

Add jQuery, the script file and css file to the document, and call plugin over an html element:

$(document).ready(function(){
	$("#snippet").serpSnippet({
		title: "This is an Example of a Title Tag that is Seventy Characters in Length",
		url: "www.example.com/example",
	  	description: "Here is an example of what a snippet looks like in Google's SERPs. The content that appears here is usually taken from the Meta Description tag if relevant.",
	  	search: ""
	});
});

The "search" option remarks on bold the word or words passed like Google. This is important because title long change and some words could be truncated on the result snippet.

About

googlePreviewSnippet is a jQuery plugin that creates a simulation preview of Google's search engine results pages (SERPs)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published