code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
$(document).ready(function() {
$('#home-slide').cycle('fade');
}); | JavaScript |
/*******
*** Anchor Slider by Cedric Dugas ***
*** Http://www.position-absolute.com ***
Never have an anchor jumping your content, slide it.
Don't forget to put an id to your anchor !
You can use and modify this script for any project you want, but please leave this comment as credit.
*****/
... | JavaScript |
$(document).ready(function() {
$('#home-slide').cycle('fade');
}); | JavaScript |
/*******
*** Anchor Slider by Cedric Dugas ***
*** Http://www.position-absolute.com ***
Never have an anchor jumping your content, slide it.
Don't forget to put an id to your anchor !
You can use and modify this script for any project you want, but please leave this comment as credit.
*****/
... | JavaScript |
$(document).ready(function() {
$('#home-slide').cycle('fade');
}); | JavaScript |
/*******
*** Anchor Slider by Cedric Dugas ***
*** Http://www.position-absolute.com ***
Never have an anchor jumping your content, slide it.
Don't forget to put an id to your anchor !
You can use and modify this script for any project you want, but please leave this comment as credit.
*****/
... | JavaScript |
function getVal(id) {
return $("#" + id).val();
}
function getAttr(id, attr) {
return $("#" + id).attr(attr)
}
/**//************************************************************************
| 函数名称: setCookie |
| 函数功能: 设置cookie函数 ... | JavaScript |
/**
*
*/ | JavaScript |
/**
*
*/
colors = Array("#ffb","#fbf","#bff","#6ff","#ff6","#f6f","#6ff");
color = 0;
$(document).ready(function() {
$(".component").hover(function() {
$("#"+$(this).children(".position").text()).addClass("myhover");
//$("#"+$(this).attr("value")).css("color","#fff");
},function() {
$("#"+$(thi... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
/*
prop = {
header, // String
property, // String
events, //
type, // checkbox, select, ... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var baseDir = '/setting/';
var rules = [];
var scripts = [];
var issues = [];
var dirty = false;
function stringHash(str) {
... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
List.types.input = function(p, prop) {
p[0].listdata = this;
this.p = p;
var input = this.input = $('<input></input>').addClas... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var tabStatus = {};
var version;
var default_id = "lgllffgicojgllpmdbemgglaponefajn";
var debug = chrome.i18n.getMessage("@@extensio... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
// Permission for experimental not given.
var handler = chrome.webRequest;
function onBeforeSendHeaders(details) {
var rule = se... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
/*
Rule: {
identifier: an unique identifier
title: description
type: Can be "wild", "regex", "clsid"
... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
// Updater events:
// error
// updating
// complete
// success
// itemupdated
// progress
// properties:
// statu... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var FLASH_CLSID = '{d27cdb6e-ae6d-11cf-96b8-444553540000}';
var typeId = "application/x-itst-activex";
function executeScript(scrip... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var controlLogFName="__npactivex_log";
var controlLogEvent="__npactivex_log_event__";
var config = null;
var port = null;
var l... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
/*
prop = {
header, // String
property, // String
events, //
type, // checkbox, select, ... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
replaceDocument();
window.addEventListener('load', replaceDocument, false);
| JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var USE_RECORD_GAP = 3 * 60 * 1000; // 3 minutes
var background = chrome.extension.getBackgroundPage();
var _gaq = background._gaq ... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var tabId = parseInt(location.href.replace(/.*tabid=([0-9]*).*/, '$1'));
if (isNaN(tabId)) {
alert('Invalid tab id');
}
var bac... | JavaScript |
// Copyright (c) 2010 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var $$ = chrome.i18n.getMessage;
function loadI18n() {
document.title = chrome.i18n.getMessage("option_title")
var spans = docum... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var background = chrome.extension.getBackgroundPage();
var setting = background.setting;
var updateSession = background.updateSession... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
List.types.input = function(p, prop) {
p[0].listdata = this;
this.p = p;
var input = this.input = $('<input></input>').addClas... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var tabId = parseInt(location.href.replace(/.*tabid=([0-9]*).*/, '$1'));
if (isNaN(tabId)) {
alert('Invalid tab id');
}
var bac... | JavaScript |
$(document).ready(function() {
$('#userRole').datagrid({
data :null
});
$('#reloadList').linkbutton('disable');
$("#targetUser").combobox({
onSelect : function(record) {
loadGridData(record.id);
$('#reloadList').linkbutton('enable');
}
});
});
function loadGridData(username) {
... | JavaScript |
var inData;
$(document).ready(
function() {
toggleNotebooks();
var prjObjId = $("#prjObjId").val();
var oppId=$("#opportunityId").val();
$.getJSON('getCompleteOpportunity.htm?prjObjId=' + prjObjId + "&oppId=" + oppId,
function(data) {
inData = $.extend({}, data.opportunity, dat... | JavaScript |
$(document).ready(function() {
loadGridData("");
$('#dg').datagrid({
toolbar : toolbar,
rownumbers : true,
singleSelect : true
});
});
function loadGridData(filter) {
var userId = $("#userId").val();
if (userId == undefined)
return;
$.getJSON('listActionItems.htm?userId=' + userId + '&filt... | JavaScript |
$(document).ready(function() {
loadGridData("");
$('#resourceGrid').datagrid({
rownumbers : true,
singleSelect : true
});
});
function loadGridData(filter) {
var prjObjId = $("#prjObjId").val();
if (prjObjId == undefined)
return;
$.getJSON('getResourceDetails.htm?prjObjId=' + prjObjId,
func... | JavaScript |
$(document).ready(function() {
$("#contractValSel").click(addCost);
$("#contractValClear").click(clearCost);
var prjObjId = $("#prjObjId").val();
$.getJSON('getOpportunityViewData.htm?prjObjId=' + prjObjId, function(data) {
setFormData("ff", data);
//alert($("#hiddenAddNotes").val());
});... | JavaScript |
function saveReviewData() {
if (!$("#ff").form('validate')) {
showMessager("Alert", 'Required fields can not be left blank.');
return false;
}
var data = getFormData("ff");
data["userId"] = $("#userId").val();
data["opportunityId"] = $("#opportunityId").val();
data["prjObjId"] = $("#prjObjId").v... | JavaScript |
var timerId = null;
$(document).ready(function() {
loadCalendar();
drawChart();
updateProgress();
// setUserImg();
loadBullitenBoard();
});
function loadCalendar() {
$('#calendar').fullCalendar({
header : {
left : 'prev,next today',
center : 'title',
right : 'month,basicWeek,basicDay'
},
editable... | JavaScript |
$(document).ready(
function() {
initKendoGrid('orders', 'ordersTemplate',
'http://demos.telerik.com/kendo-ui/service/products');
$("#orders button[btnaction='addNew']").click(function() {
alert('Add new button fired');
});
$("#orders button[btnaction='edit']").click(function() {
... | JavaScript |
function toolbar_click() {
alert("Toolbar command is clicked!");
return false;
}
function initKendoGrid(containerId, toolbarId, dataUrl) {
var dataSource = new kendo.data.DataSource({
transport : {
read : {
url : dataUrl,
dataType : "jsonp"
}
},
serverPaging : false,
serverSorting ... | JavaScript |
$(document).ready(function() {
$(".search-query").keyup(function(e) {
if (e.which == 13)
initQuickSearch($(this).val());
});
$(".search-query").focus(function() {
$(this).select();
});
loadLists();
loadSideBarContents();
});
function initQuickSearch(value) {
alert(value);
}
function loadLists() {
$("... | JavaScript |
$(document).ready(function() {
$("#scheduler").kendoScheduler({
date : new Date("2013/6/6"),
showWorkHours : true,
height : 500,
views : [ {
type : "day",
title : "D"
}, {
type : "week",
title : "W"
}, {
type : "month",
title : "M"
} ],
dataSource : [ {
id : 1,
... | JavaScript |
$(document).ready(function () {
"use strict";
var $input1;
module("Setup jQuery, DOM and autocompleter");
test("Create INPUT tag", function() {
$input1 = $('<input type="text" id="input1">');
$('#qunit-fixture').append($input1);
$input1 = $("#input1");
equal($input1.at... | JavaScript |
/*!
* jQuery Autocompleter
* jquery.autocomplete.js
* http://code.google.com/p/jquery-autocomplete/
* Copyright 2011, Dylan Verheul
* Licensed under the MIT license
*/
(function($) {
"use strict";
/**
* Default settings for options
*/
var defaultOptions = {
inputClass: 'acInput',
... | JavaScript |
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v2.1.3 (2011-02-07)
*
* (c) 2009-2010 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*jslint forin: true */
/*global document, window, navigator, setInterval, clearInterva... | JavaScript |
/**
* @license Highcharts JS v2.1.3 (2011-02-07)
* MooTools adapter
*
* (c) 2010 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, Fx, $, $extend, $each, $merge, Events, Event */
var HighchartsAdapter = {
/**
* Initialize the adapter. This is ... | JavaScript |
/**
* Ajax upload
* Project page - http://valums.com/ajax-upload/
* Copyright (c) 2008 Andris Valums, http://valums.com
* Licensed under the MIT license (http://valums.com/mit-license/)
* Version 3.5 (23.06.2009)
*/
/**
* Changes from the previous version:
* 1. Added better JSON handling that allows ... | JavaScript |
$(document).ready(function(){
$("#formPaises").validate({
rules: {codigo:{digits:true}},
messages:{ codigo:'El codigo debe ser Numerico'}
});
$("#formBuques").validate({
rules: {codigo:{digits:true}},
messages:{codigo:'El codigo debe ser Numerico'}});
$("#formDespachante").vali... | JavaScript |
/**
* @license Highcharts JS v2.1.3 (2011-02-07)
* Exporting module
*
* (c) 2010 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, Math, setTimeout */
(function() { // encapsulate
// create shortcuts
var HC = Highcharts,
Cha... | 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 |
/*
* jQuery RTE plugin 0.3 - create a rich text form for Mozilla, Opera, and Internet Explorer
*
* Copyright (c) 2007 Batiste Bieler
* Distributed under the GPL (GPL-LICENSE.txt) licenses.
*/
// define the rte light plugin
jQuery.fn.rte = function(css_url, media_url) {
if(document.designMode || doc... | JavaScript |
tinymce.addI18n('es',{
"Cut": "Cortar",
"Header 2": "Header 2 ",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Tu navegador no soporta acceso directo al portapapeles. Por favor usa las teclas Crtl+X\/C\/V de tu teclado",
"Div": "Capa",
"Paste": ... | JavaScript |
function setSidebarHeight(){
setTimeout(function(){
var height = $(document).height();
$('.grid_12').each(function () {
height -= $(this).outerHeight();
});
height -= $('#site_info').outerHeight();
height-=1;
//salert(height);
$('.sidemenu').css('height', height);
},1... | JavaScript |
/**
* Dark blue theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
chart: {
backgroundColor: {
linearGradient: [0, 0, 250, 500],
stops: [
... | JavaScript |
/**
* Dark blue theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
chart: {
backgroundColor: {
linearGradient: [0, 0, 250, 500],
stops: [
... | JavaScript |
/**
* Grid theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
chart: {
backgroundColor: {
linearGradient: [0, 0, 500, 500],
stops: [
[0, 'rgb(255, 255, 255)'],
... | JavaScript |
/**
* Gray theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ["#DDDF0D", "#7798BF", "#55BF3B", "#DF5353", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
chart: {
backgroundColor: {
linearGradient: [0, 0, 0, 400],
stops: [
[0,... | JavaScript |
/*
http://www.JSON.org/json2.js
2011-02-23
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 |
// main function to process the fade request //
function colorFade(id,element,start,end,steps,speed) {
var startrgb,endrgb,er,eg,eb,step,rint,gint,bint,step;
var target = document.getElementById(id);
steps = steps || 20;
speed = speed || 20;
clearInterval(target.timer);
endrgb = colorConv(end);
er... | JavaScript |
var banner_index=0;//图片下标值
var time;
var banner_ico_now_count=0;//活动按钮当前值
var banner_url="";
function imagePlayer(){
if(images[banner_index]!=null)
{
APpendBannerIco();
}
banner_index++;
if(banner_index>=images.length)//循环完一次,重新初始化index
{
banner_index=0... | JavaScript |
function $(str){
return document.getElementById(str);
}
function CheckAll(obj)
{
var checkAll = true;
var checkList = document.getElementsByTagName("input");
if(obj == 2)
{
$("cb_All").checked = !$("cb_All").checked;
}
if(!$("cb_All").checked)
checkAll = false;
... | JavaScript |
/**
* jquery.slider - Slider ui control in jQuery
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* @author Egor Khmelev
* @version 1.1.0-RELEASE ($Id$)
*
* Dependencies:
*
* jQuery (http://jquery.com)
* jshashtable http://www.timdown.co.uk/jshashtable
* jquery.numberformatter (http://code.google.c... | JavaScript |
var $ = jQuery;
// Topmenu <ul> replace to <select>
function responsive(mainNavigation) {
var $ = jQuery;
var screenRes = $('.body_wrap').width();
if (screenRes < 700) {
//jQuery('ul.dropdown').css('display', 'none');
/* Replace unordered list with a "select" element to be populated with options, and ... | JavaScript |
/**
* --------------------------------------------------------------------
* jQuery customInput plugin
* Author: Maggie Costello Wachs maggie@filamentgroup.com, Scott Jehl, scott@filamentgroup.com
* Copyright (c) 2009 Filament Group
* licensed under MIT (filamentgroup.com/examples/mit-license.txt)
* -------------... | JavaScript |
jQuery(document).ready(function(){
tfuse_custom_form();
tfuse_feedback_form();
});
function tfuse_custom_form(){
var my_error;
var url = jQuery("input[name=temp_url]").attr('value');
jQuery("#send").bind("click", function(){
my_error = false;
jQuery(".ajax_form input, .ajax_form te... | JavaScript |
/**
* Creates a new Floor.
* @constructor
* @param {google.maps.Map=} opt_map
*/
function Floor(opt_map) {
/**
* @type Array.<google.maps.MVCObject>
*/
this.overlays_ = [];
/**
* @type boolean
*/
this.shown_ = true;
if (opt_map) {
this.setMap(opt_map);
}
}
/**
* @param {google.maps.M... | JavaScript |
/**
* Creates a new level control.
* @constructor
* @param {IoMap} iomap the IO map controller.
* @param {Array.<string>} levels the levels to create switchers for.
*/
function LevelControl(iomap, levels) {
var that = this;
this.iomap_ = iomap;
this.el_ = this.initDom_(levels);
google.maps.event.addList... | JavaScript |
/**
* @license
*
* Copyright 2011 Google 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 l... | JavaScript |
// Copyright 2011 Google
/**
* 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 wri... | JavaScript |
jQuery(document).ready(function(){
var navTag = '#gnav_' + jQuery('h2.menu_image').html() + ' a';
jQuery(navTag).attr("class", "current");
});
| JavaScript |
// -----------------------------------------------------------------------------------
//
// Lightbox v2.04
// by Lokesh Dhakar - http://www.lokeshdhakar.com
// Last Modification: 2/9/08
//
// For more information, visit:
// http://lokeshdhakar.com/projects/lightbox2/
//
// Licensed under the Creative Commons Attributi... | JavaScript |
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"),... | JavaScript |
// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
va... | JavaScript |
// -----------------------------------------------------------------------------------
//
// Lightbox v2.05
// by Lokesh Dhakar - http://www.lokeshdhakar.com
// Last Modification: 3/18/11
//
// For more information, visit:
// http://lokeshdhakar.com/projects/lightbox2/
//
// Licensed under the Creative Commons Attribut... | JavaScript |
goog.provide('bentlyschemistrylab.GamePlayer');
goog.require("lime.Sprite");
goog.require("lime.Label");
goog.require("lime.RoundedRect");
goog.require("lime.fill.Frame");
goog.require("lime.audio.Audio");
var objMap = {
easy : [
{answer: "Hydrogen", x: 0, y: 0, width: 128, height: 128},
{answer: "Heli... | JavaScript |
//set main namespace
goog.provide('bentlyschemistrylab');
//get requirements
goog.require("lime.Director");
goog.require("lime.Scene");
goog.require("lime.Layer");
goog.require("lime.transitions.Dissolve");
goog.require("lime.audio.Audio");
goog.require('bentlyschemistrylab.GamePlayer');
// entrypoint
b... | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// sid... | JavaScript |
/*
Holder - 1.6 - client side image placeholders
(c) 2012 Ivan Malopinsky / http://imsky.co
Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Commercial use requires attribution.
*/
var Holder = Holder || {};
(function (app, win) {
var preempted = false,
fallback = false,
canvas = d... | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// sid... | JavaScript |
/*
Holder - 1.6 - client side image placeholders
(c) 2012 Ivan Malopinsky / http://imsky.co
Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Commercial use requires attribution.
*/
var Holder = Holder || {};
(function (app, win) {
var preempted = false,
fallback = false,
canvas = d... | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// sid... | JavaScript |
/*
Holder - 1.6 - client side image placeholders
(c) 2012 Ivan Malopinsky / http://imsky.co
Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Commercial use requires attribution.
*/
var Holder = Holder || {};
(function (app, win) {
var preempted = false,
fallback = false,
canvas = d... | JavaScript |
jQuery(document).ready(function () {
jQuery("#facebook_right").hover(function () {
jQuery(this)
.stop(true, false)
.animate({ right: 0 }, 500); }, function () {
jQuery("#facebook_right")
.stop(true, false).animate({ right: -200 }, 500); });
}); | JavaScript |
function confirmurl(url,message)
{
if(confirm(message)) redirect(url);
}
function redirect(url) {
if(url.indexOf('://') == -1 && url.substr(0, 1) != '/' && url.substr(0, 1) != '?') url = $('base').attr('href')+url;
location.href = url;
}
//滚动条
$(function(){
//inputStyle
$(":text").addClass('input-text')... | JavaScript |
/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo
* The DHTML Calendar, version 1.0 "It is happening again"
* Details and latest version at:
* www.dynarch.com/projects/calendar
* This script is developed by Dynarch.com. Visit us at www.dynarch.com.
* This script is distributed under the GNU Lesse... | JavaScript |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6... | JavaScript |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uic... | JavaScript |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi... | JavaScript |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
var regexEnum =
{
intege:"^-?[1-9]\\d*$", //整数
intege1:"^[1-9]\\d*$", //正整数
intege2:"^-[1-9]\\d*$", //负整数
num:"^([+-]?)\\d*\\.?\\d+$", //数字
num1:"^[1-9]\\d*|0$", //正数(正整数 + 0)
num2:"^-[1-9]\\d*|0$", //负数(负整数 + 0)
decmal:"^([+-]?)\\d*\\.\\d+$", //浮点数
decmal1:"^[1-9]\\d*.\\d*|0.\... | JavaScript |
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas... | JavaScript |
/*
* 在jquery.suggest 1.1基础上针对中文输入的特点做了部分修改,下载原版请到jquery插件库
* 修改者:wangshuai
*
* 修改部分已在文中标注
*
*
* jquery.suggest 1.1 - 2007-08-06
*
* Uses code and techniques from following libraries:
* 1. http://www.dyve.net/jquery/?autocomplete
* 2. http://dev.jquery.com/browser/trunk/plugins/int... | JavaScript |
function setmodel(value, id, siteid, q) {
$("#typeid").val(value);
$("#search a").removeClass();
id.addClass('on');
if(q!=null && q!='') {
window.location='?m=search&c=index&a=init&siteid='+siteid+'&typeid='+value+'&q='+q;
}
} | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.