Skip to content

Instantly share code, notes, and snippets.

@Jaybuz
Jaybuz / index.html
Created February 16, 2012 17:19
JS Validation function
<html>
<head>
<title>js validate</title>
</head>
<body>
<form id="loginform" method="post" action="#" onsubmit="return validateFields(this)">
<div>
<label class="labelarea">Customer Num:</label>
<input id="custninputID" type="text" name="custninput" class="inputarea" onblur="validateFields(this)" data-validate='{"pattern":"/^\\d{4}$/"}' data-error='{"empty":"Please enter something in the customer number input.", "pattern":"Customer number must be 4 digits!"}' /><br />
<span id="custninputID-info"></span><br />
@Jaybuz
Jaybuz / style.css
Created October 15, 2009 13:36
Show your xboxGamercard.
/* Xbox 360 Gamercard */
.gamercard * {
padding: 0;
margin: 0;
}
.gamerCard {
/* float: left; */
background: #fefffe url('imgs/layout_news_body.gif') no-repeat right top;
border: 1px solid #b2b2b2;