source: main/trunk/model-interfaces-dev/heritage-nz/iframe/heritage-nz-dl_files/jquery_009.js@ 32796

Last change on this file since 32796 was 32796, checked in by davidb, 5 years ago

Initial set of files to provide look and feel of Heritage NZ site, plus SVN clickable map in an iframe

  • Property svn:executable set to *
File size: 524 bytes
Line 
1/*
2 * jQuery Toggle Attribute Plugin - v1.0 - 2013-04-11
3 * Created by Andreas Nylin
4 * [email protected] / @andreasnylin / http://andreasnylin.com
5 */
6(function(f){f.fn.toggleAttr=function(a,c){function h(d){var b,a;b=0;for(a=c.length;b<a&&c[b]!==d;b++);return b+1>=c.length?c[0]:c[b+1]}return this.each(function(){var d=f(this),b="undefined"!==typeof c,e=b&&c instanceof Array,g=d.attr(a);!b&&!d.is("["+a+"]")?d.attr(a,a):b?!e&&g===c?d.removeAttr(a):e?e&&d.attr(a,h(g)):d.attr(a,c):d.removeAttr(a)})}})(jQuery);
Note: See TracBrowser for help on using the repository browser.