code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/* Italian initialisation for the jQuery UI date picker plugin. */
/* Written by Apaella (apaella@gmail.com). */
jQuery(function($){
$.datepicker.regional['it'] = {
closeText: 'Chiudi',
prevText: '<Prec',
nextText: 'Succ>',
currentText: 'Oggi',
monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Ma... | JavaScript |
/* Arabic Translation for jQuery UI date picker plugin. */
/* Khaled Al Horani -- koko.dw@gmail.com */
/* خالد الحوراني -- koko.dw@gmail.com */
/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
jQ... | JavaScript |
/* Finnish initialisation for the jQuery UI date picker plugin. */
/* Written by Harri Kilpi� (harrikilpio@gmail.com). */
jQuery(function($){
$.datepicker.regional['fi'] = {
closeText: 'Sulje',
prevText: '«Edellinen',
nextText: 'Seuraava»',
currentText: 'Tänään',
monthName... | JavaScript |
/* Swedish initialisation for the jQuery UI date picker plugin. */
/* Written by Anders Ekdahl ( anders@nomadiz.se). */
jQuery(function($){
$.datepicker.regional['sv'] = {
closeText: 'Stäng',
prevText: '«Förra',
nextText: 'Nästa»',
currentText: 'Idag',
monthNames: ['Januari','Febr... | JavaScript |
/* Inicialitzaci� en catal� per a l'extenci� 'calendar' per jQuery. */
/* Writers: (joan.leon@gmail.com). */
jQuery(function($){
$.datepicker.regional['ca'] = {
closeText: 'Tancar',
prevText: '<Ant',
nextText: 'Seg>',
currentText: 'Avui',
monthNames: ['Gener','Febrer','Març','Abril','Maig','... | JavaScript |
/* Japanese initialisation for the jQuery UI date picker plugin. */
/* Written by Kentaro SATO (kentaro@ranvis.com). */
jQuery(function($){
$.datepicker.regional['ja'] = {
closeText: '閉じる',
prevText: '<前',
nextText: '次>',
currentText: '今日',
monthNames: ['1月','2月','3月','4月','5月','6月',
'7月','8月','... | JavaScript |
/* German initialisation for the jQuery UI date picker plugin. */
/* Written by Milian Wolff (mail@milianw.de). */
jQuery(function($){
$.datepicker.regional['de'] = {
closeText: 'schließen',
prevText: '<zurück',
nextText: 'Vor>',
currentText: 'heute',
monthNames: ['Januar','Februar','März','April'... | JavaScript |
/* Hungarian initialisation for the jQuery UI date picker plugin. */
/* Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */
jQuery(function($){
$.datepicker.regional['hu'] = {
closeText: 'bezárás',
prevText: '« vissza',
nextText: 'előre »',
currentText: 'ma',
monthNames: ['Janu... | JavaScript |
/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* @author Arturas Paleicikas <arturas.paleicikas@metasite.net> */
jQuery(function($){
$.datepicker.regional['lv'] = {
closeText: 'Aizvērt',
prevText: 'Iepr',
nextText: 'Nāka',
currentText: 'Šodien',
monthNames: ['Janvāris','Februāris... | JavaScript |
/* Danish initialisation for the jQuery UI date picker plugin. */
/* Written by Jan Christensen ( deletestuff@gmail.com). */
jQuery(function($){
$.datepicker.regional['da'] = {
closeText: 'Luk',
prevText: '<Forrige',
nextText: 'Næste>',
currentText: 'Idag',
monthNames: ['Januar','Fe... | JavaScript |
/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */
/* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/
jQuery(function($){
$.datepicker.regional['hy'] = {
closeText: 'Փակել',
prevText: '<Նախ.',
nextText: 'Հաջ.>',
currentText: 'Այսօր',
monthNames: ['Հունվար','Փետրվար','... | JavaScript |
/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */
/* Javad Mowlanezhad -- jmowla@gmail.com */
/* Jalali calendar should supported soon! (Its implemented but I have to test it) */
jQuery(function($) {
$.datepicker.regional['fa'] = {
closeText: 'بستن',
prevText: '<قبلي',
nextText: 'بعدي... | JavaScript |
/* Polish initialisation for the jQuery UI date picker plugin. */
/* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */
jQuery(function($){
$.datepicker.regional['pl'] = {
closeText: 'Zamknij',
prevText: '<Poprzedni',
nextText: 'Następny>',
currentText: 'Dziś',
monthNames: ['Styczeń','Luty','Ma... | JavaScript |
/* Bulgarian initialisation for the jQuery UI date picker plugin. */
/* Written by Stoyan Kyosev (http://svest.org). */
jQuery(function($){
$.datepicker.regional['bg'] = {
closeText: 'затвори',
prevText: '<назад',
nextText: 'напред>',
nextBigText: '>>',
current... | JavaScript |
/* Turkish initialisation for the jQuery UI date picker plugin. */
/* Written by Izzet Emre Erkan (kara@karalamalar.net). */
jQuery(function($){
$.datepicker.regional['tr'] = {
closeText: 'kapat',
prevText: '<geri',
nextText: 'ileri>',
currentText: 'bugün',
monthNames: ['Ocak','Şubat','Mart','Nisan'... | JavaScript |
/* Czech initialisation for the jQuery UI date picker plugin. */
/* Written by Tomas Muller (tomas@tomas-muller.net). */
jQuery(function($){
$.datepicker.regional['cs'] = {
closeText: 'Zavřít',
prevText: '<Dříve',
nextText: 'Později>',
currentText: 'Nyní',
monthNames: ['leden','únor','březen','dub... | JavaScript |
/* Inicializaci�n en espa�ol para la extensi�n 'UI date picker' para jQuery. */
/* Traducido por Vester (xvester@gmail.com). */
jQuery(function($){
$.datepicker.regional['es'] = {
closeText: 'Cerrar',
prevText: '<Ant',
nextText: 'Sig>',
currentText: 'Hoy',
monthNames: ['Enero','Febrero','Marzo','Ab... | JavaScript |
/* French initialisation for the jQuery UI date picker plugin. */
/* Written by Keith Wood (kbwood@virginbroadband.com.au) and Stéphane Nahmani (sholby@sholby.net). */
jQuery(function($){
$.datepicker.regional['fr'] = {
closeText: 'Fermer',
prevText: '<Préc',
nextText: 'Suiv>',
currentText: 'Courant... | JavaScript |
/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* Written by Maxim Drogobitskiy (maxdao@gmail.com). */
jQuery(function($){
$.datepicker.regional['uk'] = {
clearText: 'Очистити', clearStatus: '',
closeText: 'Закрити', closeStatus: '',
prevText: '<', prevStatus: '',
prevBigTex... | JavaScript |
/* Indonesian initialisation for the jQuery UI date picker plugin. */
/* Written by Deden Fathurahman (dedenf@gmail.com). */
jQuery(function($){
$.datepicker.regional['id'] = {
closeText: 'Tutup',
prevText: '<mundur',
nextText: 'maju>',
currentText: 'hari ini',
monthNames: ['Januari','Februari','Ma... | JavaScript |
/* Korean initialisation for the jQuery calendar extension. */
/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */
jQuery(function($){
$.datepicker.regional['ko'] = {
closeText: '닫기',
prevText: '이전달',
nextText: '다음달',
currentText: '오늘',
monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)... | JavaScript |
/* Icelandic initialisation for the jQuery UI date picker plugin. */
/* Written by Haukur H. Thorsson (haukur@eskill.is). */
jQuery(function($){
$.datepicker.regional['is'] = {
closeText: 'Loka',
prevText: '< Fyrri',
nextText: 'Næsti >',
currentText: 'Í dag',
monthNames: ['Janúa... | JavaScript |
/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* @author Arturas Paleicikas <arturas@avalon.lt> */
jQuery(function($){
$.datepicker.regional['lt'] = {
closeText: 'Uždaryti',
prevText: '<Atgal',
nextText: 'Pirmyn>',
currentText: 'Šiandien',
monthNames: ['Sausis','Vasa... | JavaScript |
/* Greek (el) initialisation for the jQuery UI date picker plugin. */
/* Written by Alex Cicovic (http://www.alexcicovic.com) */
jQuery(function($){
$.datepicker.regional['el'] = {
closeText: 'Κλείσιμο',
prevText: 'Προηγούμενος',
nextText: 'Επόμενος',
currentText: 'Τρέχων Μήνας',
monthNames: ['Ιανουάριος','... | JavaScript |
/* Serbian i18n for the jQuery UI date picker plugin. */
/* Written by Dejan Dimić. */
jQuery(function($){
$.datepicker.regional['sr-SR'] = {
closeText: 'Zatvori',
prevText: '<',
nextText: '>',
currentText: 'Danas',
monthNames: ['Januar','Februar','Mart','April','Maj','Jun',
'Jul','Avgust','Sept... | JavaScript |
/*
* jQuery UI Droppable 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Droppables
*
* Depends:
* ui.core.js
* ui.draggable.js
*/
(function($) {
$.widget("ui.droppable",... | JavaScript |
/*
* jQuery UI Effects Pulsate 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Effects/Pulsate
*
* Depends:
* effects.core.js
*/
(function($) {
$.effects.pulsate = functio... | JavaScript |
/*
* jQuery UI Effects Shake 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Effects/Shake
*
* Depends:
* effects.core.js
*/
(function($) {
$.effects.shake = function(o) {... | JavaScript |
/*
* jQuery UI Tabs 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Tabs
*
* Depends:
* ui.core.js
*/
(function($) {
$.widget("ui.tabs", {
_init: function() {
if (this... | JavaScript |
/*
* jQuery UI Effects Bounce 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Effects/Bounce
*
* Depends:
* effects.core.js
*/
(function($) {
$.effects.bounce = function(o... | JavaScript |
/*!
* jQuery UI 1.8rc3
*
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI
*/
;jQuery.ui || (function($) {
var isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9);
//He... | JavaScript |
$(document).ready(function(){
$("#simular").click(function(){alert('simular');});
$("#faturar").click(function(){alert('Todos');});
$("#selecionados").click(function(){alert('Apenas Selecionados');});
}); | JavaScript |
(function() {
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event;
var initTopMenu = function() {
/*
Instantiate a MenuBar: The first argument passed to the
constructor is the id of the element in the page
representin... | JavaScript |
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (na... | JavaScript |
$(document).ready(function(){
$('#tabs').tabs();
$.ajaxSetup({
cache: false,
type: 'POST',
dataType: 'json',
error: function () {
alert('Um erro de comunicação com o servidor ocorreu!');
$('#ajax-ldr').fadeOut('fast');
... | JavaScript |
YAHOO.widget.Chart.SWFURL = "/js/yui/build/charts/assets/charts.swf";
var oDSGrupo = new YAHOO.util.XHRDataSource('/contarc/porgrupo');
oDSGrupo.connMethodPost = true;
oDSGrupo.responseType = YAHOO.util.XHRDataSource.TYPE_JSARRAY;
oDSGrupo.responseSchema = {
fields : [ 'descricao', 'valor' ]
};
//oDSGrupo.sen... | JavaScript |
$(document).ready(function(){
$.ajaxSetup({
cache: false,
type: 'POST',
dataType: 'json',
error: function () {
alert('Um erro de comunicação com o servidor ocorreu!');
$('#ajax-ldr').fadeOut('fast');
$('#wait').fadeOut('fast');
}
});
... | JavaScript |
/*
This file is part of Ext JS 4
Copyright (c) 2011 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the p... | JavaScript |
/*
Sizzle CSS Selector Engine
Copyright 2011, The Dojo Foundation
Released under the MIT, BSD, and GPL Licenses.
More information: http://sizzlejs.com/
jQuery JavaScript Library v1.7.2
http://jquery.com/
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/lice... | JavaScript |
/*
* jQuery Iframe Transport Plugin 1.5
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint unparam: true, nomen: true */
/*global define, window, document */
(funct... | JavaScript |
/*
* jQuery File Upload Plugin JS Example 6.7
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true, regexp: true */
/*global $, window, docu... | JavaScript |
/*
* jQuery XDomainRequest Transport Plugin 1.1.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*
* Based on Julian Aubourg's ajaxHooks xdr.js:
* https://github.com/jaubou... | JavaScript |
/*
* jQuery postMessage Transport Plugin 1.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint unparam: true, nomen: true */
/*global define, window, document */
(... | JavaScript |
$(document).ready(function(){
//$('#left-container').hide("slide", { direction: "right" }, 1000);
$('.pesquisa').button().click(function(){
$('form').submit();});
$.ajaxSetup({
cache: false,
type: 'POST',
dataType: 'json',
error: function () {
alert('U... | JavaScript |
$.fn.alternateRowColors = function() {
$('tbody tr:odd', this).removeClass('even').addClass('odd');
$('tbody tr:even', this).removeClass('odd').addClass('even');
return this;
};
$(document).ready(function(){
var alternateRowColors = function($table) {
$('tbody tr:odd', $table).removeClass('even... | JavaScript |
$(document).ready(function(){
//$('#left-container').hide("slide", { direction: "right" }, 1000);
// $('.pesquisa').button().click(function(){
// $('form').submit();
// });
$("#anterior").click(function(){
var pag = $("#pagina").val();
if (pag>0){
pag--;
}
... | JavaScript |
$(document).ready(function(){
$('#submit').button();
$('#accordion').accordion();
$.ajaxSetup({
cache: false,
type: 'POST',
dataType: 'json',
error: function () {
alert('Um erro de comunicação com o servidor ocorreu!');
$('#ajax-ldr').fadeOut('fast');
... | JavaScript |
$(document).ready(function(){
$('.messages').fadeOut(6500);
$("#anterior").click(function(){
var pag = $("#pagina").val();
if (pag>0){
pag--;
}
$("#pagina").val(pag);
$('form:first').submit();
return false;
});
$("#proximo").click(function(even... | JavaScript |
$(function(){
$('#addcontato').click(function(){
$('.ui-state-error').hide();
if ($('#newcontato').is(':visible')){
$('#newcontato').slideUp();
}else{
$('#newcontato').slideDown(2000);
$('#idcolaborador').val($('#codusu').val());
}
return f... | JavaScript |
/**
* Flash (http://jquery.lukelutman.com/plugins/flash)
* A jQuery plugin for embedding Flash movies.
*
* Version 1.0
* November 9th, 2006
*
* Copyright (c) 2006 Luke Lutman (http://www.lukelutman.com)
* Dual licensed under the MIT and GPL licenses.
* http://www.opensource.org/licenses/mit-license.php
* htt... | JavaScript |
/* =========================================================
* bootstrap-modal.js v2.0.4
* http://twitter.github.com/bootstrap/javascript.html#modals
* =========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* yo... | JavaScript |
$(function(){
$.ajaxSetup({
beforeSend: function(){
$('submit').attr('disabled',true);
$('#ajax-ldr').show();
},
error: function(){
alert('Um erro ocorreu e a tarefa não pode ser completada!');
$('#ajax-ldr').fadeOut();
... | JavaScript |
$(document).ready(function(){
$('.tips').tipsy({title:'obs',gravity: $.fn.tipsy.autoNS, delayIn:1000,html:true});
$('.odd').tipsy({title:'obs',gravity: $.fn.tipsy.autoNS, delayIn:1000,html:true});
$('.even').tipsy({title:'obs',gravity: $.fn.tipsy.autoNS, delayIn:1000,html:true});
$("#anterior").click(fu... | JavaScript |
$(document).ready(function(){
$.ajaxSetup({
cache: false,
type: 'POST',
dataType: 'json',
error: function () {
alert('Um erro de comunicação com o servidor ocorreu!');
$('#ajax-ldr').fadeOut('fast');
}
});
$('#dialog').dialog({
autoOpe... | JavaScript |
$(document).ready(function(){
$('#tabs').tabs();
$('#submitcon').button().click(function(){ $('form').submit();})
$('#accolaborador').autocomplete({
source: function(request, response) {
$.ajax({
url: "/colaborador/index",
type: "POST",
dat... | JavaScript |
/* http://keith-wood.name/themes.html
Applying CSS themes for jQuery v1.2.0.
Written by Keith Wood (kbwood{at}iinet.com.au) September 2008.
Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.... | JavaScript |
$(document).ready( function(){
$("#data_saida").datepicker({
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'],
dateFormat: 'dd/mm/yy'
});
$('#ac_col... | JavaScript |
$(document).ready(function() {
$.ajaxSetup({
cache: false,
type: 'POST',
dataType: 'json',
error: function() {
alert('Um erro de comunicação com o servidor ocorreu!');
}
});
$('#btn_novaconexao').click(function() {
$('#janela-nova-conexao').toggle(... | JavaScript |
jQuery.expr[':'].contains = function(a, i, m) {
return jQuery(a).text().toUpperCase()
.indexOf(m[3].toUpperCase()) >= 0;
};
$(document).ready(function(){
$('.tips').tipsy({
title:'obs',
gravity: $.fn.tipsy.autoWE,
html:true
});
$('.list-card').mouseover(function(){
$... | JavaScript |
$(document).ready(function(){
$.ajaxSetup({
cache: false,
type: 'POST',
dataType: 'json',
error: function () {
alert('Um erro de comunicação com o servidor ocorreu!');
$('#wait').fadeOut('fast');
}
});
$('textarea.tinymce').tinymce({
//... | JavaScript |
$(document).ready(function(){
$('#tabs').tabs();
$("#dtvalidade").datepicker({
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'],
dateFormat: 'dd/mm/yy'
... | JavaScript |
YAHOO.example.autocomplete = function() {
var oConfigs = {
prehighlightClassName: "yui-ac-prehighlight",
queryDelay: .5,
minQueryLength: 3,
animVert: .01,
}
// instantiate remote data source
// code based on example at
// ... | JavaScript |
function fechaTarefas(e){
var options = {
method : 'get',
parameters : 'grupo_id='+$('grupo_id').getValue(),
nome : '/id/'+$('grupo_id').getValue(),
onSuccess : function (transport){
var aux = $('subgrupo_id');
aux.options.length = 0;
aux.options[0] =... | JavaScript |
$(document).ready(function(){
$('.tips').tipsy({title:'obs',gravity: 'e', delayIn:1000,delayOut:500,html:true});
$('.tipsw').tipsy({title:'obs',gravity: 'w', delayIn:1000,delayOut:500,html:true});
$("#anterior").click(function(){
var pag = $("#pagina").val();
if (pag>0){
pag--;
... | JavaScript |
$(function(){
function showErrors(form,errors){
$.each(errors, function(i,v){
var aux = '';
var valor = '';
$.each(v, function(j,k){
valor+='<li>'+k+'</li>'
})
valor = "<div class='error'>"+valor+'</div>';
aux = '#'... | JavaScript |
/**
* Ajax Queue Plugin
*
* Homepage: http://jquery.com/plugins/project/ajaxqueue
* Documentation: http://docs.jquery.com/AjaxQueue
*/
/**
<script>
$(function(){
jQuery.ajaxQueue({
url: "test.php",
success: function(html){ jQuery("ul").append(html); }
});
jQuery.ajaxQueue({
url: "test.php",
success: ... | JavaScript |
/*
* jQuery Autocomplete plugin 1.1
*
* Copyright (c) 2009 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
*/
;(... | JavaScript |
/*
Uploadify v2.1.0
Release Date: August 24, 2009
Copyright (c) 2009 Ronnie Garcia, Travis Nickels
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitatio... | JavaScript |
// tipsy, facebook style tooltips for jquery
// version 1.0.0a
// (c) 2008-2010 jason frame [jason@onehackoranother.com]
// releated under the MIT license
(function($) {
function fixTitle($ele) {
if ($ele.attr('title') || typeof($ele.attr('original-title')) != 'string') {
$ele.attr('origin... | JavaScript |
UsuarioRegistro = Class.create();
UsuarioRegistro.prototype = {
form : null,
initialize : function (form)
{
this.form = $(form);
//this.form.observe('submit',this.onSubmit.bindAsEventListener(this));
$('novo').observe('click',this.onSubmit.bindAsEventListener(this))
this.resetErrors;
},
sho... | JavaScript |
(function($) {
$.extend({
tablesorterPager: new function() {
function updatePageDisplay(c) {
var s = $(c.cssPageDisplay,c.container).val((c.page+1) + c.seperator + c.totalPages);
}
function setPageSize(table,size) {
var c = table.config;
c.size = size;
c.totalPages = Math.ceil(c.tot... | JavaScript |
UsuarioRegistro = Class.create();
UsuarioRegistro.prototype = {
form : null,
initialize : function (form)
{
this.form = $(form);
this.form.observe('submit',this.onSubmit.bindAsEventListener(this));
this.resetErrors;
},
showError : function(key,val)
{
var formElement = this.form[key];
... | JavaScript |
$.fn.alternateRowColors = function() {
$('tbody tr:odd', this).removeClass('even').addClass('odd');
$('tbody tr:even', this).removeClass('odd').addClass('even');
return this;
};
$(document).ready(function(){
var alternateRowColors = function($table) {
$('tbody tr:odd', $table).removeClass('even... | JavaScript |
$.fn.alternateRowColors = function() {
$('tbody tr:odd', this).removeClass('even').addClass('odd');
$('tbody tr:even', this).removeClass('odd').addClass('even');
return this;
};
$(function(){
$('.tips').tipsy({title:'title',gravity: $.fn.tipsy.autoWE, delayIn:1000,delayOut:500,html:true});
$("#dialo... | JavaScript |
$(document).ready(function(){
$("#anterior").click(function(){var pag = $("#pagina").val();if (pag>0){pag--;}$("#pagina").val(pag);$('form:first').submit();return false;});
$("#proximo").click(function(event){var pag = $("#pagina").val();pag++;$("#pagina").val(pag);$('form').submit();return false;});
$("#fi... | JavaScript |
var currentdate = 0
var core = 0
function StringArray (n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
image = new StringArray(5)
image[0] = 'http://www.inovadora.com.br/code/mkt/s1.jpg'
image[1] = 'http://www.inovadora.com.br/code/mkt/s2.jpg'
image[2] = 'http://www.inovadora.com.br/code... | JavaScript |
// JavaScript for IE
// Para funcionar o Placeholder
$(function() {
if(!$.support.placeholder) {
var active = document.activeElement;
$(':text').focus(function () {
if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) {
$(this).val('').removeClass('hasPlac... | JavaScript |
// JavaScript for IE
// Para funcionar o Placeholder
$(function() {
if(!$.support.placeholder) {
var active = document.activeElement;
$(':text').focus(function () {
if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) {
$(this).val('').removeClass('hasPlac... | JavaScript |
/* Inovadora Sistemas | Global.JS : v1.0 | �ltima atualiza��o: 2012-11-09 */
//Painel Lateral Esq
$(function () {
$.each($('a.disabled'), function(){
$(this).click(function(){
return false;
})
})
function PanelEsq (id){
$('#panel-content div.paneltabs').hide();
$(id).show();
$('#panel-abas li a').remo... | JavaScript |
/**
*@class VCM Vanchu Mobile JavaScript library
*@author Anderlu
*@param
*/
var VCM = {};
VCM.version = "0.1";
/**
*@author Anderlu
*@param args:
*/
VCM.doAjax = function(args){
};
/**
*@author Anderlu
*@arguments args: {object}
*@param id: VCM.uuid(), // dialog id
*@param type:"custom... | JavaScript |
var BrowserDetect = function(){
var _console = function(){
if (window.console && window.console.log){
console.log(arguments);
}
};
var browser = {
"userAgent" : window.navigator.userAgent,
"platform" : window.navigator.platform,
"appName" : window.navigator.appName,
"appVersion" : window.n... | JavaScript |
/*
* TagLoader for PreloadJS
* Visit http://createjs.com/ for documentation, updates and examples.
*
*
* Copyright (c) 2012 gskinner.com, inc.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Softwar... | JavaScript |
/*
* PreloadJS
* Visit http://createjs.com/ for documentation, updates and examples.
*
*
* Copyright (c) 2012 gskinner.com, inc.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* re... | JavaScript |
/*
* XHRLoader for PreloadJS
* Visit http://createjs.com/ for documentation, updates and examples.
*
*
* Copyright (c) 2012 gskinner.com, inc.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Softwar... | JavaScript |
/*
* AbstractLoader for PreloadJS
* Visit http://createjs.com/ for documentation, updates and examples.
*
*
* Copyright (c) 2012 gskinner.com, inc.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the So... | JavaScript |
/*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... | JavaScript |
/*
http://www.JSON.org/json2.js
2009-09-29
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EX... | JavaScript |
/* http://keith-wood.name/countdown.html
Countdown for jQuery v1.5.11.
Written by Keith Wood (kbwood{at}iinet.com.au) January 2008.
Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.
Ple... | JavaScript |
/**
*@class VCScroller
*@author Ander Lu
*@param {Element , Object}
*@description touch device scroll simulator
*/
var VCScroller = function(content, options) {
console.log(content, options);
this.initialize(content, options);
};
VCScroller.prototype = {
initialize : function(content, options){
th... | JavaScript |
function debug(log){
var conLog = document.getElementById("console");
conLog.innerText += log +"\n";
}
function generatorContent(args){
var frag = document.createDocumentFragment();
if(args.pSize){
for (var cell=0, cl=args.pSize/args.cSize; cell<cl; cell+... | JavaScript |
/*
* Scroller
* http://github.com/zynga/scroller
*
* Copyright 2011, Zynga Inc.
* Licensed under the MIT License.
* https://raw.github.com/zynga/scroller/master/MIT-LICENSE.txt
*
* Based on the work of: Unify Project (unify-project.org)
* http://unify-project.org
* Copyright 2011, Deutsche Telekom AG
* Licen... | JavaScript |
/*
* Scroller
* http://github.com/zynga/scroller
*
* Copyright 2011, Zynga Inc.
* Licensed under the MIT License.
* https://raw.github.com/zynga/scroller/master/MIT-LICENSE.txt
*
* Based on the work of: Unify Project (unify-project.org)
* http://unify-project.org
* Copyright 2011, Deutsche Telekom AG
* Licen... | JavaScript |
/*
* Scroller
* http://github.com/zynga/scroller
*
* Copyright 2011, Zynga Inc.
* Licensed under the MIT License.
* https://raw.github.com/zynga/scroller/master/MIT-LICENSE.txt
*
* Based on the work of: Unify Project (unify-project.org)
* http://unify-project.org
* Copyright 2011, Deutsche Telekom AG
* Licen... | JavaScript |
Sort = {
Bubble : function(array) {
length = array.length;
for (var i = 0; i <= length - 2; i++) {
for (var j = length - 1; j >= 1; j--) {
// 对两个元素进行交换
if (array[j] < array[j - 1]) {
temp = array[j];
array[j] = array[j - 1];
array[j - 1] = temp;
}
}
}
}
} | JavaScript |
// backbone Model and Collection test
var data = {
jobCatList :[
{
id : "cat1",
name : "扶老奶奶",
jobList:[
{id:"1",name:"a"},
{id:"2",name:"b"}
]
},
{
id : "cat2",
name : "过大马路",
jobList:[
{id:"3",name:"c"},
{id:"4",name:"b"}
... | JavaScript |
(function ($) {
//Backbone中的router,见名知意,router有路由的意思,显然这里是要控制url的。
//Backbone.Router会把你连接中的#标签当做是url路径
//1、来看一个简单的例子
var AppRouter = Backbone.Router.extend({
routes: {
"help" : "help",
"search/:actions" : "search",
"search/:actions/:type" : "search"... | JavaScript |
// An example Backbone application contributed by
// [Jérôme Gravel-Niquet](http://jgn.me/). This demo uses a simple
// [LocalStorage adapter](backbone-localstorage.html)
// to persist Backbone models within your browser.
// Load the application once the DOM is ready, using `jQuery.ready`:
$(function(){
// ... | JavaScript |
$(function(){
var World = Backbone.Model.extend({
//创建一个World的对象,拥有name属性
name: null
});
var Worlds = Backbone.Collection.extend({
//World对象的集合
initialize: function (models, options) {
this.bind("add", options.view.addOneWorld);
}
... | JavaScript |
// backbone Model and Collection test
var data = {
jobCatList :[
{
id : "cat1",
name : "扶老奶奶",
jobList:[
{id:"1",name:"内地6月份CPI涨2.2%"},
{id:"2",name:"创29个月新低"},
{id:"11",name:"内地613月份CPI涨2213.21%"},
{id:"22",name:"创219个月新低"}
]
},
{
id : "... | JavaScript |
// Underscore.js 1.3.3
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore is freely distributable under the MIT license.
// Portions of Underscore are inspired or borrowed from Prototype,
// Oliver Steele's Functional, and John Resig's Micro-Templating.
// For all details and doc... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.