Notes to self
Written on Mon, 29 Mar 2010 22:24:54 +0000 - Last updated on Sun, 25 Jul 2010 07:29:19 +0000disable roundy corners in jquery ui:
.ui-corner-all, .ui-corner-top, .ui-corner-bottom {
-moz-border-radius: 0px !important;
-webkit-border-radius: 0px !important;
}
simple method to get query string parameters from a url
function getGetParamsFromURL(url) {
var queryString = url.substring(url.indexOf("?") + 1);
var queryParams = queryString.split("&");
var get = {};
for(var i = 0; i < queryParams.length; i++) {
var queryPair = queryParams[i].split("=",2);
get[queryPair[0]] = queryPair[1];
}
return get;
}
To obtain query string params from the currently running script URL, put an id on the script tag, like so
<script id="my-script" type="text/javascript" src="http://eightzees.net/script.js?foo=bar"></script>
and then invoke above function on the tag
$_GET = getGetParamsFromURL($("script#my-script").attr("src"));
Or without jquery,
$_GET = getGetParamsFromURL(document.getElementById("my-script").src);
svnserve --root=/var/repos --daemon