Month: June 2013

Tag Making Javascript Utility Function

Want to make tags dynamically with Javascript? https://github.com/jasonmhead/makeTag makeTag ======= Tag making Javascript function Usage: makeTag(tag,tContent,tID,tClass,tValue,tAlt,tOther); // JQuery dom insert var tag1 = makeTag(‘button’,’Test’,’testBtn’,’TestBtnClass’,”,’Test Alt’,’title=”Test Title”‘); var tag2 = makeTag(‘input’,”,’testInput’,’testInputClass’,”,”,’title=”test title”‘); $(document).ready(function() { $(‘#node-9-tagArea’).append(tag1); $(‘#node-9-tagArea’).append(tag2); }); The result:

Pulsing box-shadow Blur JQuery CSS Animation

A css attribute animation I put together for an app: https://github.com/jasonmhead/pulseBoxShadowBlur Pulsing Box Shadow Blur pulseBoxShadowBlur ================== Dependency: JQuery Usage: pulseBoxShadowBlur([pulseElement],[max blur],[blur color],[delay time between loops]); e.g. pulseBoxShadowBlur($(‘#getData-btn’),14,’#fff’,100); // start the process See it in action: http://trajectory.namelsoftware.com/ (the “Get Trajectory”