This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ui-table {width:100%} | |
.ui-table thead tr, | |
.ui-table tfoot tr, | |
.ui-table-header { background: #cccccc url(images/ui-bg_glass_75_cccccc_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #000000; outline: none;text-shadow:1px 1px 1px white} | |
.ui-table th,.ui-table td {font-weight:bold;text-align:left;padding:0.5em 0.3em;border:1px solid #ffffff;border-width:0 0 1px 1px} | |
.ui-table thead th {border-width:0 0 1px 1px;text-align:center} | |
.ui-table thead > tr > th:first-child,.ui-table tfoot > tr > th:first-child {border-width: 0 0 1px} | |
.ui-table tbody > tr > td:first-child {border-width: 0 0 1px 0} | |
.ui-table tbody td {font-weight:normal} | |
.ui-table .text-center,.ui-table .text-center * {text-align:center} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Provides remote server communications options using [curl][ref-curl]. | |
* | |
* [ref-curl]: http://php.net/curl | |
* | |
* @author icyleaf <icyleaf.cn@gmail.com> | |
* @link http://icyleaf.com | |
* @version 0.3.1 | |
* @license http://www.opensource.org/licenses/bsd-license.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("a.thickbox").click( | |
function(e) { | |
e.preventDefault(); | |
var link = this; | |
var $loading = $("<div></div>").dialog({ title: "Loading..." }); | |
$("<img>").attr({ "src": this.href }).css({ "padding": 0 }).load( | |
function() { | |
$loading.dialog("destroy").remove(); | |
var maxWidth = $(window).width() - 20; | |
var maxHeight = $(window).height() - 20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jalert jQuery JavaScript Plugin v0.0.1 | |
* | |
* Copyright 2010, Eric Christensen | |
* | |
* Permission to use, copy, modify, and distribute this software and its | |
* documentation for any purpose and without fee is hereby granted, provided | |
* that the above copyright notice appear in all copies and that both that | |
* copyright notice and this permission notice appear in supporting | |
* documentation, and that the name of the copyright holder not be used in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#ac_me").autocomplete({ | |
source: function( request, response ) { | |
$.getJSON("http://api.addressfinder.co.nz/search/location?callback=?", | |
{q:request.term,key:"YOUR-API-KEY"}, | |
function( data ) { | |
response( $.map( data.results, function( item ) { | |
return { | |
label: item.a, | |
pxid: item.pxid | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Copyright 2011 Couchbase, Inc. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// jQuery UI combobox | |
// Based on the combobox example on the jQuery UI home page. | |
// Must load both jQuery and jQuery UI Widgets before loading this document. | |
// I use CSS to position the button inside the input element, so it looks just | |
// like a drop down box. | |
// | |
$.widget("ui.combobox", { | |
_create: function () { | |
var self = this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( $, prototype ) { | |
$.extend( prototype.options, { | |
spinner: "<em>Loading…</em>" | |
}); | |
var _create = prototype._create; | |
prototype._create = function() { | |
_create.call( this ); | |
var self = this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var __setOption = $.ui.dialog.prototype._setOption; | |
$.extend($.ui.dialog.prototype, { | |
_setOption : function (key, value) { | |
var self = this, | |
uiDialog = self.uiDialog; | |
if (key === 'message') { | |
self.element.html("" + (value || ' ')); | |
} | |
__setOption.apply(self, arguments); | |
} |
OlderNewer