Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: ae47bb8bcb
Fetching contributors…

Cannot retrieve contributors at this time

99 lines (95 sloc) 3.077 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>iPhone Style Radios Demo</title>
<script src="" type="text/javascript"></script>
<script src="libs/jquery.actual/jquery.actual.js"></script>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<style type="text/css">
body {
padding: 10px; }
th {
text-align: right;
padding: 4px;
padding-right: 15px;
vertical-align: top; }
.css_sized_container .iPhoneCheckContainer {
width: 250px; }
<script src="coffee/iphone-style-checkboxes.js"></script>
<script type="text/javascript">
$(window).load(function() {
var onchange_checkbox;
($('.on_off :checkbox')).iphoneStyle();
($('.disabled :checkbox')).iphoneStyle();
($('.ios5 :checkbox')).iOSCheckbox();
($('.css_sized_container :checkbox')).iphoneStyle({
resizeContainer: false,
resizeHandle: false
($('.long_tiny :checkbox')).iphoneStyle({
checkedLabel: 'Very Long Text',
uncheckedLabel: 'Tiny'
onchange_checkbox = ($('.onchange :checkbox')).iphoneStyle({
onChange: function(elem, value) {
setInterval(function() {
onchange_checkbox.prop('checked', !':checked')).iphoneStyle("refresh");
}, 2500);
<tr class="disabled">
<th><label for="disabled">Disabled</label></th>
<input type="checkbox" id="disabled" disabled="disabled" />
<tr class="on_off">
<th><label for="on_off">Default</label></th>
<input type="checkbox" id="on_off" />
<tr class="ios5">
<th><label for="ios5">iOS 5</label></th>
<input type="checkbox" id="ios5" />
<tr class="on_off">
<th><label for="on_off_on">Default On</label></th>
<input type="checkbox" checked="checked" id="on_off_on"/>
<tr class="css_sized_container">
<th><label for="css_sized_container">CSS Sized Container and Handle</label></th>
<input type="checkbox" id="css_sized_container" />
<tr class="long_tiny">
<th><label class="left" for="long_tiny">Long and short labels</label></th>
<input type="checkbox" id="long_tiny" />
<tr class="onchange">
<th>Event tracking</th>
<input type="checkbox" id="onchange" />
<p>Checkbox status is <strong><span id="status">...</span></strong>.</p>
Jump to Line
Something went wrong with that request. Please try again.