groups

name language licence
mailto with subject HTML Other
JavaScript Compressor - HTML HTML GPL 2
RapidWeaver Media Albums with prettyPhoto JavaScript Other
jQuery boiler plate JavaScript Other
sikbox Live Search JavaScript Other
jsPathto.min.js JavaScript Other
SearchInWindow JavaScript Other
JavaScript Compressor - JavaScript JavaScript GPL 2

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 >



language: JavaScript
licence: Other

jsPathto.min.js

options: view full snippetsend to code collector
// jsPathto v0.0.2 07-17-09 09:52
// A nifty bit'o code to make use of RapidWeaver's %pathto()% syntax in javascript files. 
// Assembled for your RapidWeaver developing pleasure by Adam Merrifield (http://www.seydoggy.com)
function rtrim ( str, charlist ) { charlist = !charlist ? ' \s\xA0' : (charlist+'').replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g, '\$1'); var re = new RegExp('[' + charlist + ']+$', 'g'); return (str+'').replace(re, ''); } trimFromPatha = "/jspathto.js"; jsPathtoa = rtrim(rwPathto, trimFromPatha); trimFromPathb = "scripts"; jsPathto = rtrim(jsPathtoa, trimFromPathb);
	
(Continues...)