Template:Team:UC Davis/Head
From 2011.igem.org
(Difference between revisions)
Line 9: | Line 9: | ||
<script> | <script> | ||
+ | /* | ||
+ | * jQuery replaceText - v1.1 - 11/21/2009 | ||
+ | * http://benalman.com/projects/jquery-replacetext-plugin/ | ||
+ | * | ||
+ | * Copyright (c) 2009 "Cowboy" Ben Alman | ||
+ | * Dual licensed under the MIT and GPL licenses. | ||
+ | * http://benalman.com/about/license/ | ||
+ | */ | ||
+ | (function($){$.fn.replaceText=function(b,a,c){return this.each(function(){var f=this.firstChild,g,e,d=[];if(f){do{if(f.nodeType===3){g=f.nodeValue;e=g.replace(b,a);if(e!==g){if(!c&&/</.test(e)){$(f).before(e);d.push(f)}else{f.nodeValue=e}}}}while(f=f.nextSibling)}d.length&&$(d).remove()})}})(jQuery); | ||
+ | |||
jQuery.noConflict(); | jQuery.noConflict(); | ||
jQuery.extend(jQuery.easing, | jQuery.extend(jQuery.easing, | ||
Line 157: | Line 167: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('.floatbox a').css('color', colorsarray[thispagenumber]); | $('.floatbox a').css('color', colorsarray[thispagenumber]); | ||
+ | ${'.floatbox').replaceText(/(A-Z)(0-9){4,}/g, 'hihi$ihiho'); | ||
}); | }); | ||
Revision as of 23:58, 15 September 2011