1
2
3
4
this.rotate = function (antiClockwise)
{
  if (antiClockwise)
...

JavaScript Rotate co-ordinates

by Nathan, March 05, 2010 15:49, 4 refactorings, tagged with co-ordinates, rotate, matrix

A nice and fun one here. I ...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
function matches(matchString,list)
...

JavaScript Search a string with wildcards

by Nathan, March 03, 2010 00:48, 5 refactorings

I want to have a string whi...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
rightOffset = 20;
topOffset = 20;
               
...

JavaScript Center text along a sloping...

by Nathan, February 26, 2010 23:46, 1 refactoring

I've written a countdown to...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
// this is a function that creates with_libraryname functions
var lazy_load_library = function (path) {
	return function () {
...

JavaScript Lazy Library Loading

by raganwald, February 26, 2010 22:31, 2 refactorings, tagged with javascript, jquery, jgesture, periodicalupdater, lazy loading, lazy evaluation

There are certain libraries...

Fd0d54f1856a8c9cc03f2e5de7c4bc6d Talk
1
2
3
4
		
var getRandomNo = function(seed){
	
...

JavaScript learn more explodeEffect

by adardesign.myopenid.com, February 21, 2010 14:51, 2 refactorings, tagged with javascript, jquery, random, ui

This jQuery snippet creates...

Avatar Talk
1
2
3
4
function changeColours(headerClassColour,contentClassColour,bannerDivColour)
{
	document.getElementById("content").className = contentClassColour + "-content";
...

JavaScript Colour changer

by Nathan, February 19, 2010 13:55, 2 refactorings

Intended to give a create a...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
(function($) {
    $.fn.SelectedNav = function(options) {

...

JavaScript jQuery plugin: add class to...

by chad.tolkien.id.au, February 15, 2010 07:03, 4 refactorings, tagged with jquery, plugin, html, website

I'm using this plugin in co...

8cb49c7ceb3bf250a0d470009ac9f047 Talk
1
2
3
;(function($) {
        $.fn.extend(
...

JavaScript filter selectbox with 3000+...

by akarzim, February 03, 2010 23:05, 2 refactorings, tagged with jquery, dom, speed, select

This is a little jQuery scr...

0018abed2b5e8b460993ed915adc0d11 Talk
1
2
3
4
Date.prototype.addBizDays = function(n){
 var day = this.getDay();
 var d =  new Date();
...

JavaScript Business Days

by 3nz0, January 23, 2010 21:51, No refactoring, tagged with javascript prototype, javascript date

The function add or substra...

Fa876f707d4e3f879985bfd748c6f0d7 Talk
1
2
3
4
function redim_img(apodimg)
{
...

JavaScript pb resize image

by mr6686, January 19, 2010 18:47, 8 refactorings, tagged with resize, image

As a noob in js I ask help ...

3a09c0954a8ee7951398becbb5553f37 Talk
1
2
3
4
function autogeneratepassword(params) {
	this.chartype_upper 	= params.chartype_upper 
	this.chartype_lower 	= params.chartype_lower 
...

JavaScript Cpanel like password generator

by armano.myopenid.com, January 13, 2010 03:05, 3 refactorings, tagged with password generator, autogenerate password, cpanel

Good day guys,
Ive jst mad...

1cd9c8984f2fdeb996130d54d62a98d9 Talk
1
2
3
4
/**
 * timer.class.js - Version 1.0.0
 * Last update: 01 Jan 2010
...

JavaScript timer.class

by Livingston Samuel, January 01, 2010 14:20, 3 refactorings, tagged with javascript, timer

please review this tiny jav...

5c73a4df4d3d5e8e1f2dc7d7d55a32f1 Talk
1
2
3
4
<script type="text/javascript" src="prototype.js"></script>
<ul id="theUL">
	<li class="toto titi">1</li>
...

JavaScript Select Element with multipl...

by Denis Jacquemin, December 03, 2009 08:23, 4 refactorings, tagged with javascript, prototype, prototypejs, css

Hi all,

With the help of...

56c449f1a408dba893793094599f7fb5 Talk
1
2
3
4
function format_money(n) {
  var buf = [], 
...

JavaScript Money formatting

by Tj Holowaychuk, November 25, 2009 23:05, 7 refactorings, tagged with money, formatting

Just needed to whip up a re...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
  	  if ($('invoice_discount')) {
  	    this.invoice_discount = this.form.down('#invoice_discount');
		    this.invoice_discount.observe('change', this._checkFormat.bindAsEventListener(this));
...

JavaScript Need help with creating a loop

by chipcastle.myopenid.com, November 01, 2009 18:37, 5 refactorings, tagged with javascript prototype

I have the following code t...

31e2b397e15442a2d3ba42db7bd4584e Talk
1
2
3
4
// Copyright (c) 2009 Benjamin P. DeLillo

// Unless otherwise specified, vectors and matricies are assumed to be
...

JavaScript WebGLU, a library for worki...

by bjartr.blogspot.com, October 28, 2009 21:49, No refactoring, tagged with webgl, webglu, javascript

I'm new to javascript and a...

Avatar Talk
1
2
3
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

...

JavaScript Playing with dom

by Denis Jacquemin, October 24, 2009 21:33, 2 refactorings, tagged with javascript, select, option, prototype

This code works fine, I jus...

56c449f1a408dba893793094599f7fb5 Talk
1
2
3
4
document.observe('dom:loaded', function(event) {
  
  var MemberReviews = Class.create({
...

JavaScript Common unobtrusive javascri...

by chipcastle.myopenid.com, October 22, 2009 13:41, 1 refactoring, tagged with javascript unobtrusive ajax prototype rails

I have this javascript patt...

31e2b397e15442a2d3ba42db7bd4584e Talk
1
2
3
4
<html>
<head>
<script type="text/javascript">
...

JavaScript My1stJavascript: Dice roller

by tenpn, October 19, 2009 13:45, 2 refactorings, tagged with javascript, helloworld

A C++ programmer who is lea...

A31fbafa397845ab6ec33df5139ae589 Talk
1
2
3
4
$('#page').inlineEdit();
$.fn.inlineEdit = function (opts) {
    var options = $.extend({
...

JavaScript edit inplace plugin with wy...

by kristian, October 14, 2009 11:02, -3 refactorings, tagged with javascript, jquery, wysiwyg

This is based on jquery and...

Eaf2025323bb63b0befc35491afa618e Talk
1
2
3
4
;(function(){
  YAML = {
...

JavaScript JS YAML parser

by Tj Holowaychuk, September 23, 2009 23:01, No refactoring

obviously not a full implem...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
function checkInterval(event) {
	if ( true == new RegExp( /^\d$/ ).match( event.element().value ) ) {
...

JavaScript check pattern and add zeroes

by insanegigolo.livejournal.com, September 14, 2009 14:51, 4 refactorings, tagged with javascript prototypejs

procedure check user inform...

98143bd59423d34790c9f42f886c1f86 Talk
1
2
3
4
;(function($) {
  
  /**
...

JavaScript "Smart" polling w...

by Tj Holowaychuk, September 11, 2009 18:53, No refactoring

Library can be found at htt...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
fireEvent: function(event){
		var type = event.type;
		
...

JavaScript Error on closure

by Mikhas, September 08, 2009 14:17, 3 refactorings, tagged with javascript, closure

This code used to works fine.

54aceba7df836ea9396d6a14cc2f19c0 Talk
1
2
3
<div id="notices">

...

JavaScript jQuery remove warnings.

by lukas, September 04, 2009 14:21, No refactoring, tagged with jquery, remove elements

Hey,

so I have all this ...

A54000a44341dc35ab30a332a49784d3 Talk