groups

name language licence
JavaScript Compressor - HelloWorld JavaScript GPL 2
Bookmarks_customJS JavaScript Other
delay function JavaScript Other
RwSetGet JavaScript Other
Dock Menu JavaScript JavaScript Other
extracontent.jq.js JavaScript Other
jQuery - show random div JavaScript Other
jsPathto.src.js JavaScript Other

< 1 2 3 4 5 >



language: JavaScript
licence: Other

jsPathto.src.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)

// 1. Put this file in your RapidWeaver theme, and establish a link to it from your index.html template.
//    In this case, I am putting it in a folder I have in all my themes called "scripts":
//<script type="text/javascript" src="%pathto(scripts/jspathto.js)%"></script>

// 2. Next we need to establish a good ol' PHP style rtim function, javascript style.
//    I borrowed this one from http://kevin.vanzonneveld.net (as it states), but you could easily
//    write your own.
function rtrim ( str, charlist ) {
    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +      input by: Erkekjetter
	
(Continues...)