Insert title here
Vikaspedia Data

Vikaspedia Widget

To use this Vikaspedia widget feature, user must provide a link in the anchor tag as below with desired height and width
Its available for all 23 languages portals of http://vikaspedia.in/index/
Widget also works in very slower network.
---- Urls for Widget -- default height(500px) width(400px)--
<a class="vikaspedia-widget" href="http://vikaspedia.in/e-governance/digital-payment" ></a>
<a class="vikaspedia-widget" href="http://ml.vikaspedia.in/agriculture" ></a>


----OR with costomized size ----
<a class="vikaspedia-widget" href="http://vikaspedia.in/e-governance/digital-payment" height=500px width=400px ></a>
<a class="vikaspedia-widget" href="http://ml.vikaspedia.in/agriculture" height=500px width=400px ></a>	



---- Sctipt required once either in footer or on page of URLs ----
<script type="text/javascript" src="http://data.vikaspedia.in/resources/js/vikaspedia-widget.min.js" ></script>
The link turns into an widget window if the link provided in the anchor tag is a valid link i.e the link must be an existing link in the portal sitemap.
Note: Anchor tags can be one or multiple and script code should always be added at the end of the anchor tags.
anchor tag: Anchor tag must contain class vikaspedia-widget
href: Must contain a valid Vikaspedia url otherwise widget is not formed
height & width: Height and width specified will be applied to the Vikaspedia widget
script tag: Should be included to convert the anchor tag to Vikaspedia widget

Ways of implementing Vikaspedia widget:


Adding script in footer
  • 1. Add script tag in the footer section
  • 2. Add anchor tag in any page with class = "vikaspedia-widget" and that will be converted into Vikaspedia widget
Adding script in body
  • 1. Add anchor tag in any page with class = "vikaspedia-widget"
  • 2. Add script tag in the body tag of the page below anchor tag
  • 3. Anchor tag is converted into Vikaspedia widget
Adding multiple anchor tags
  • 1. Add script tag in any of the above two ways
  • 2. Add multiple anchor tags in any page with class = "vikaspedia-widget" and they will be converted into Vikaspedia widget

Note: If second way is followed the script tag should be placed below all the anchor tags included.

.
.
Insert title here