code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/**
* Modified by quake, add new clipboard swf to support none IE browser and generic language highlight
* Code Syntax Highlighter.
* Version 1.5.1
* Copyright (C) 2004-2007 Alex Gorbatchev.
* http://www.dreamprojections.com/syntaxhighlighter/
*
* This library is free software; you can redistribute it an... | JavaScript |
Object.Event={
extend:function(object){
object._objectEventSetup=function(event_name){
this._observers=this._observers||{};
this._observers[event_name]=this._observers[event_name]||[];
};
object.observe=function(event_name,observer){
if(typeof(event_name)=='string'&&typeof(observer)!='undefined'){
this._objectEventSetu... | JavaScript |
(function(root) {
var $ = root.jQuery;
var BlockCookieName = 'azk-blocks';
var VoteEvent = {
upvote: 10,
downvote: 11,
uninteresting: 12,
misleading: 13,
offensive: 14,
repetitive: 15
};
root.azRegisterExtension('adFeedback', function(divName, pixels) {
if ... | JavaScript |
(function() {
var write_string = '<iframe src="http://widgets.dzone.com/links/widgets/zoneit.html?t=';
write_string += window.dzone_style ? window.dzone_style : '1';
write_string += '&url=';
if (window.dzone_url) write_string += encodeURIComponent(dzone_url);
else write_string += encodeURIComponent(window.locatio... | JavaScript |
function LinkManager() { }
LinkManager._path = '/links/dwr';
LinkManager.getLinkById = function(p0, callback) {
DWREngine._execute(LinkManager._path, 'LinkManager', 'getLinkById', p0, callback);
}
LinkManager.setLinkStatus = function(p0, p1, callback) {
DWREngine._execute(LinkManager._path, 'LinkManager', 's... | JavaScript |
(function(root) {
var $ = root.jQuery;
var BlockCookieName = 'azk-blocks';
var VoteEvent = {
upvote: 10,
downvote: 11,
uninteresting: 12,
misleading: 13,
offensive: 14,
repetitive: 15
};
root.azRegisterExtension('adFeedback', function(divName, pixels) {
if ... | JavaScript |
///#source 1 1 /Scripts/MetroJs/src/js/init.js
/*!
* Metro JS for jQuery
* http://drewgreenwell.com/
* For details and usage info see: http://drewgreenwell.com/projects/metrojs
Copyright (C) 2012, Drew Greenwell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software an... | JavaScript |
/** LICENCE
*
* SteamGifts Plus Addon
* Copyright (c) 2012-2013 Kaitlyn <reowkaitlyn@gmail.com>
* http://steamgifts-plus.googlecode.com
*
* 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 Softwa... | JavaScript |
import RAIN.Action;
import RAIN.Core;
class ActionTemplate_JS extends RAIN.Action.Action
{
function newclass()
{
actionName = "ActionTemplate_JS";
}
function Start(agent:Agent, deltaTime:float):ActionResult
{
return ActionResult.SUCCESS;
}
function Execute(agent:Agent, deltaTime:flo... | JavaScript |
/*
* 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 law or agreed to ... | JavaScript |
/*
* 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 law or agreed to ... | JavaScript |
/*
* 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 law or agreed to ... | JavaScript |
/*
* jsTree 1.0-rc3
* http://jstree.com/
*
* Copyright (c) 2010 Ivan Bozhanov (vakata.com)
*
* Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* $Date: 2... | JavaScript |
/*
* 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 law or agreed to ... | 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 law o... | 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 law o... | 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 law o... | JavaScript |
/**
* @authors TODO
* @fileoverview TODO
*/
document.cancelFullScreen = document.webkitCancelFullScreen ||
document.mozCancelFullScreen;
/**
* @constructor
*/
function SlideDeck(el) {
this.curSlide_ = 0;
this.prevSlide_ = 0;
this.config_ = null;
this.container = el || document.... | JavaScript |
(function(window) {
var ORIGIN_ = location.protocol + '//' + location.host;
function SlideController() {
this.popup = null;
this.isPopup = window.opener;
if (this.setupDone()) {
window.addEventListener('message', this.onMessage_.bind(this), false);
// Close popups if we reload the main window.
win... | JavaScript |
/*
Copyright (C) 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 law or agreed to in writing, softwa... | JavaScript |
/*
* Hammer.JS
* version 0.4
* author: Eight Media
* https://github.com/EightMedia/hammer.js
*/
function Hammer(element, options, undefined)
{
var self = this;
var defaults = {
// prevent the default event or not... might be buggy when false
prevent_default : false,
css_hacks ... | JavaScript |
require(['order!../slide_config', 'order!modernizr.custom.45394',
'order!prettify/prettify', 'order!hammer', 'order!slide-controller',
'order!slide-deck'], function(someModule) {
});
| JavaScript |
var SLIDE_CONFIG = {
// Slide settings
settings: {
title: 'Building Web Applications that use Google APIs and the JavaScript Client for Google APIs',
subtitle: '',
useBuilds: true, // Default: true. False will turn off slide animation builds.
usePrettify: true, // Default: true
enableSlideAreas:... | JavaScript |
/*
Quicksand 1.2.2
Reorder and filter items with a nice shuffling animation.
Copyright (c) 2010 Jacek Galanciak (razorjack.net) and agilope.com
Big thanks for Piotr Petrus (riddle.pl) for deep code review and wonderful docs & demos.
Dual licensed under the MIT and GPL version 2 licenses.
http://github.com/jquery/jq... | JavaScript |
function answerQuestion(answer) {
var agentName = $("input#agentName").val();
var question = $("input#question").val();
$.ajax({
url: "functions/ajax/answerQuestion.php",
context: self,
type: "post",
data: {name: agentName,
question: question,
an... | JavaScript |
/**
* Get the list of agents and make the select box for them
*/
function initInfo(living) {
$.ajax({
url: "functions/ajax/getAgentList.php",
context: self,
type: "post",
success: function(data, textStatus, jqXHR) {
var agentArray = jQuery.parseJSON(data);
... | JavaScript |
// Define the overlay, derived from google.maps.OverlayView
function Label(opt_options) {
// Initialization
this.setValues(opt_options);
// Label specific
var span = this.span_ = document.createElement('span');
span.style.cssText = 'position: relative; left: -50%; top: -8px; ' +
'white-space... | JavaScript |
function page1() {
var text = "";
text += "A <b>killer</b> is on the loose!";
text += "<p>You are a detective from the local police office and you must catch ";
text += "the killer as soon as you can to prevent him from killing again.</p>";
text += "<p>In order to figure out <i>who</i> the ki... | JavaScript |
/*
http://www.JSON.org/json2.js
2011-10-19
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 EXTREMELY UNWISE... | JavaScript |
/**
* Get the agent details
*/
function initConvo(agentName) {
$.ajax({
url: "functions/ajax/getAgentDetails.php",
context: self,
type: "post",
data: {name: agentName},
success: function(data, textStatus, jqXHR) {
var agent = jQuery.parseJSON(data);
... | JavaScript |
var map;
var mapCenter;
var marker;
//todo change from agents markers to agents with name and id and stuff
var agentMarkers;
if (!agentMarkers) {
agentMarkers = new Array();
}
var deathCount=0;
var totalEnemies;
function reattachMap() {
var myOptions = {
zoom: 17,
center: mapCenter,
mapTypeI... | JavaScript |
function initAccuse() {
$.ajax({
url: "functions/ajax/getAgentList.php",
context: self,
type: "post",
success: function(data, textStatus, jqXHR) {
var agentArray = jQuery.parseJSON(data);
var agentSelect = $("select#agentGuessList");
// first re... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2013 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @website http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
* @version 4.1.5 (201... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
* Arabic Translation By ... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2013 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @website http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
* @version 4.1.5 (201... | JavaScript |
1 | JavaScript |
/*!
* Minify URI Builder
*/
var MUB = {
_uid : 0,
_minRoot : '/min/?',
checkRewrite : function () {
var testUri = location.pathname.replace(/\/[^\/]*$/, '/rewriteTest.js').substr(1);
function fail() {
$('#minRewriteFailed')[0].className = 'topNote';
}
$.ajax({
... | JavaScript |
javascript:(function(){
var d = document
,c = d.cookie
,m = c.match(/\bminifyDebug=([^; ]+)/)
,v = m ? decodeURIComponent(m[1]) : ''
,p = prompt('Debug Minify URIs on ' + location.hostname + ' which contain:'
+ '\n(empty for none, space = OR, * = any string, ? = any char... | JavaScript |
javascript:(function() {
var d = document
,uris = []
,i = 0
,o
,home = (location + '').split('/').splice(0, 3).join('/') + '/';
function add(uri) {
return (0 === uri.indexOf(home))
&& (!/[\?&]/.test(uri))
&& uris.push(escape(uri.substr(home.length)));
... | JavaScript |
(function($) {
$.fn.tipsy = function(options) {
options = $.extend({}, $.fn.tipsy.defaults, options);
return this.each(function() {
var opts = $.fn.tipsy.elementOptions(this, options);
$(this).hover(function() {
$.data(this... | JavaScript |
jQuery(document).ready(function($){
$('body').removeClass('no_js');
$('.news-home ul').cycle({
fx: "scrollDown",
easing: "easeOutCubic",
speed: 600,
timeout: 5000
});
// removeFilter = function (el) {
// if (!$.support.opaci... | JavaScript |
/*
* tweetable 1.3 - jQuery twitter feed generator plugin
*
* Copyright (c) 2009 Philip Beel (http://www.theodin.co.uk/)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Revision: $Id: jquery.tweetable... | JavaScript |
/*
tabSlideOUt v1.3
By William Paoli: http://wpaoli.building58.com
To use you must have an image ready to go as your tab
Make sure to pass in at minimum the path to the image and its dimensions:
example:
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', ... | JavaScript |
(function($) {
$.fn.arrowFade = function(options) {
options = $.extend({
speed : 500,
easingNav : 'easeOutBack',
timeout : 5000,
fxSlide : 'fade',
navSlider : '#nav-slider ul',
slider : '#slider .inner',
activeItem : 'current',
arrowClass : 'arrow'
}, options);
return ... | JavaScript |
/* ------------------------------------------------------------------------
Class: prettyPhoto
Use: Lightbox clone for jQuery
Author: Stephane Caron (http://www.no-margin-for-errors.com)
Version: 3.0.1
------------------------------------------------------------------------- */
(function($) {
$.prettyPhoto = {ver... | JavaScript |
function twitterCallback2(twitters) {
var statusHTML = [];
for (var i=0; i<twitters.length; i++){
var username = twitters[i].user.screen_name;
var status = twitters[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g, function(url) {
return '<a href="'+url+'">'+url+'</a>';
... | JavaScript |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
... | JavaScript |
/**
* 获取网页的宽度和高度
* @param {string} get 需要的宽(w)或高(h)
* @return 如果参数get存在,则返回相应宽或高,如果get没有写则返回数组
*/
function getBodySize(get) {
var bodySize = [];
bodySize['w']=($(document.body).width()>$(window).width())? $(document.body).width():$(window).width();
bodySize['h']=($(document.body).height()>$(window).... | JavaScript |
/*
* AsyncBox jQuery Popup-Plugin v1.5 Beta
* Copyright 2012, Wuxinxi007
* Date: 2012-3-13 http://asyncui.com
*/
window.popup=window.asyncbox = {
//动画效果
Flash : true,
//遮挡 select (ie6)
inFrame : true,
//初始索引值
zIndex : 1987,
//自适应最小宽度
minWidth : 330,
//自适应最大宽度
maxWidth : 700,
//模态层
Cover... | JavaScript |
(function($) {
$.fn.arrowFade = function(options) {
options = $.extend({
speed : 500,
easingNav : 'easeOutBack',
timeout : 5000,
fxSlide : 'fade',
navSlider : '#nav-slider ul',
slider : '#slider .inner',
activeItem : 'current',
arrowClass : 'arrow'
}, options);
return ... | JavaScript |
var sweetTitles = {
x : 10,
y : 20,
tipElements : "a",
init : function() {
$(this.tipElements).mouseover(function(e){
this.myTitle = this.title;
this.myHref = this.href;
this.myHref = (this.myHref.length > 30 ? this.myHref.toString().substring(0,30)+"..." : this.myHref);
this.title = "";
... | JavaScript |
/*
* Poshy Tip jQuery plugin v1.1
* http://vadikom.com/tools/poshy-tip-jquery-plugin-for-stylish-tooltips/
* Copyright 2010-2011, Vasil Dinkov, http://vadikom.com/
*/
(function($) {
var tips = [],
reBgImage = /^url\(["']?([^"'\)]*)["']?\);?$/i,
rePNG = /\.png$/i,
ie6 = $.browser.msie && $.browser.version =... | JavaScript |
/*
* Poshy Tip jQuery plugin v1.1
* http://vadikom.com/tools/poshy-tip-jquery-plugin-for-stylish-tooltips/
* Copyright 2010-2011, Vasil Dinkov, http://vadikom.com/
*/
(function($) {
var tips = [],
reBgImage = /^url\(["']?([^"'\)]*)["']?\);?$/i,
rePNG = /\.png$/i,
ie6 = $.browser.msie && $.browser.version =... | JavaScript |
$(function(){
// =================================
// init SHJS (syntax highlither)
// =================================
window.sh_highlightDocument();
$('pre.sh_sourceCode').parent()
.hover(function(){
var $div = $(this);
if ($div.data('hideTimeout')) {
clearTimeout($div.data('hideTimeout'));
$di... | JavaScript |
function loadRegion(sel,type_id,selName,url){
$("#"+selName+" option").remove();
$("<option value=0>请选择</option>").appendTo($("#"+selName));
if($("#"+sel).val()==0) return;
$.getJSON(url,{
pid:$("#"+sel).val(),
type:type_id
},function(data){
if(data){
$.each(data... | JavaScript |
/*!
* jQuery Form Plugin
* version: 3.27.0-2013.02.06
* @requires jQuery v1.5 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Project repository: https://github.com/malsup/form
* Dual licensed under the MIT and GPL licenses:
* http://malsup.github.com/mit-license.txt
* http:/... | JavaScript |
// This is a manifest file that'll be compiled into application.js.
//
// Any JavaScript file within this directory can be referenced here using a relative path.
//
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
//= require... | JavaScript |
function foo(arg1, arg2, arg3, arg4, arg5, arg6) {
var a = 5;
{
var d = 10, mak = 20, buz = 30;
var q = buz * 2;
}
if (moo) {
var a, b, c;
}
for (var arg1 = 0, d = 20; arg1 < 10; ++arg1)
console.log(arg3);
... | JavaScript |
#! /usr/bin/env node
global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util");
var fs = require("fs");
var uglify = require("uglify-js"), // symlink ~/.node_libraries/uglify-js.js to ../uglify-js.js
jsp = uglify.parser,
pro = uglify.uglify;
var code = fs.readFileSync("hoist.js", "utf8");
var ... | JavaScript |
#! /usr/bin/env node
global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util");
var fs = require("fs");
var uglify = require("uglify-js"), // symlink ~/.node_libraries/uglify-js.js to ../uglify-js.js
jsp = uglify.parser,
pro = uglify.uglify;
var code = fs.readFileSync("hoist.js", "utf8");
var ... | JavaScript |
// sample on how to use the parser and walker API to instrument some code
var jsp = require("uglify-js").parser;
var pro = require("uglify-js").uglify;
function instrument(code) {
var ast = jsp.parse(code, false, true); // true for the third arg specifies that we want
... | JavaScript |
/**
* @license r.js 2.1.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
/*
* This is a bootstrap script to allow running RequireJS in the command line
* in either a Java/Rhino or Node environ... | JavaScript |
//convienence function(src, [options]);
function uglify(orig_code, options){
options || (options = {});
var jsp = uglify.parser;
var pro = uglify.uglify;
// java.lang.System.out.println("Options being passed: " + options.mangle_options);
var ast = jsp.parse(orig_code, options.strict_semicolons); // parse code... | JavaScript |
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
This version is suitable for Node.js. With minimal changes (the
exports stuff) it should work on any JS platform.
This file contains the tokenizer/parser. It is a port to Java... | JavaScript |
/**
* @preserve Copyright 2012 Robert Gust-Bardon <http://robert.gust-bardon.org/>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain t... | JavaScript |
// var uglify = uglify || {};
uglify.squeeze = function() {
var exports = this;
var jsp = uglify.parser,
pro = uglify.uglify,
slice = jsp.slice,
member = jsp.member,
curry = jsp.curry,
MAP = pro.MAP,
PRECEDENCE = jsp.PRECEDENCE,
OPERATORS = jsp.OPERATORS;
function ast_squeeze_more(... | JavaScript |
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
This version is suitable for Node.js. With minimal changes (the
exports stuff) it should work on any JS platform.
This file implements some AST processors. They work on data b... | JavaScript |
#! /usr/bin/env node
global.sys = require("sys");
var fs = require("fs");
var jsp = require("../lib/parse-js");
var pro = require("../lib/process");
var filename = process.argv[2];
fs.readFile(filename, "utf8", function(err, text){
try {
var ast = time_it("parse", function(){ return jsp.parse... | JavaScript |
#! /usr/bin/env node
global.DIGITS_OVERRIDE_FOR_TESTING = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";
'use strict';
/*jshint bitwise:true, curly:true, eqeqeq:true, forin:true, immed:true,
latedef:true, newcap:true, noarge:true, noempty:true, nonew:true,
onevar:true, plusplus:true, reg... | JavaScript |
global.DIGITS_OVERRIDE_FOR_TESTING = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";
var fs = require('fs'),
uglify = require('../../uglify-js'),
jsp = uglify.parser,
nodeunit = require('nodeunit'),
path = require('path'),
pro = uglify.uglify;
var Script = process.binding('evals').Script;
va... | JavaScript |
foo+"",a.toString(16),b.toString.call(c)
| JavaScript |
1e20,1e21 | JavaScript |
new(A,B),new(A||B),new(X?A:B) | JavaScript |
print(a/ /[a-z]/)
| JavaScript |
var a={a:1,b:2} | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.