Skip to content

quickdraw6906/Search-Widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search-Widget

A javascript widget that allows someone to find a list of their representatives by entering their zipcode.

Documentation

USING THE WIDGET

Place the code on to your server where it is publicly accessable.

Edit init.search1.js to reflect the proper settings.

Place the following code into your HTML.

<!-- BEGIN VOTESMART WIDGET -->
<script type="text/javascript" src="http://votesmart.org/js/widgets/search/js/jquery-1.2.js"></script>
<script type="text/javascript" src="http://votesmart.org/js/widgets/search/js/init.search1.js"></script>
<div id="pvs_search"><a href="http://votesmart.org">Project Vote Smart</a> - Search Candidates, Elections and Officials<br /><br />Javascript must be enabled.</div>
<!-- END VOTESMART WIDGET -->

NOTICE - You may have to alter the script tags to point to the proper location of the widget scripts.

Any questions can be directed to webmaster@votesmart.org

LICENSE

Copyright© 2007 Project Vote Smart

Widget code released under the BSD License

FORK DESCRIPTION

Changes:

This fork was created for WordPress sites. Because Wordpress loads jQuery in 'no-conflicts' mode, the '$' function is not available. This fork replaces all occurances of '$(' with 'jQuery(' and '$.' with 'jQuery.'

The stylesheet pvs_search.css was also modified to display a very simple layout of the widget (div elements floated left, borders removed, padding tweaked to create a responsive layout).

Screenshot of modified widget

About

A javascript widget that allows someone to find a list of their representatives by entering their zipcode.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 92.5%
  • CSS 7.5%