Posted by Alcides Fonseca on Sat 25 Aug 23:46
report abuse | download | new post
- // Prototype extra javascript stuff
- // http://alcides.ideias3.com
- Position.GetWindowSize = function(w) {
- var width, height;
- w = w ? w : window;
- this.width = w.innerWidth || (w.document.documentElement.clientWidth || w.document.body.clientWidth);
- this.height = w.innerHeight || (w.document.documentElement.clientHeight || w.document.body.clientHeight);
- return this;
- }
- String.prototype.trim = function() {
- return this.replace(/^\s+|\s+$/g,"");
- }
- Array.prototype.haskey = function(item) {
- var j = 0;
- while (j < this.length) {
- if (this[j] == item) {
- return true;
- } else { j++; }
- }
- return false;
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.