code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
// 1 - wall
// 2 - steel wall
// 3 - trees
module.exports.getMap = function()
{
return [
[0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
[0,0,1,1,0,0,1,1,0,0,0,1,1,1,1,0,0,0,1,1,0,0,1,1,0,0],
[0,0,1,1,0,0,1,1,0,0,0,0,0,0,... | JavaScript |
if (!window.availableLangs['default']) {
window.availableLangs['default'] = {};
}
window.availableLangs['default']['ru'] = {
'enter-nick': 'Введите ник:'
, 'legend-play': 'Игра'
, 'legend-learn': 'Учебник программирования'
, 'submit-play': 'Вход'
, 'submit-learn': 'Вход'
, 'he... | JavaScript |
window.availableLangs = {};
window.lang = {current: null};
function applyLang(lang, context, recursive)
{
if (!lang) {
lang = window.lang.current;
} else {
window.lang.current = lang;
}
var elements = $('.lang', context);
if (context) {
elements = elements.add(context.filt... | JavaScript |
if (!window.availableLangs['default']) {
window.availableLangs['default'] = {};
}
window.availableLangs['default']['en'] = {
'enter-nick': 'Enter nick:'
, 'legend-play': 'Game'
, 'legend-learn': 'Code tutorials'
, 'submit-play': 'Login'
, 'submit-learn': 'Login'
, 'header-play... | JavaScript |
/**
* Интерпритатор эмулирует синхронное выполнение кода оправляя команды обработчику
* и дожидаясь выполнения каждой команды.
*
* @var code массив действий для выполнения
*/
/*
Регистры (любое значение):
ax
Встроенные функции:
move (distance)
turn (direction)
fire
x - get tank x
y - get tank y
Che... | JavaScript |
PascalCompiler = function PascalCompiler(codeStr)
{
this.codeStr = codeStr;
this.cur = 0;
this.line = 1;
this.char = 1;
this.posStack = []; // stack to save cursor positions to properly show error place
this.buildInFunc = {
'write': {
'signature': 'var', // var args
... | JavaScript |
function SymbolTable()
{
this.identifiers = [];
};
SymbolTable.prototype._index = function(name, sig)
{
return name + (sig ? ':' + sig.join(',') : '');
};
SymbolTable.prototype.addVar = function(name, type)
{
if (this.look(name) == null) {
var v = {name: name, type: type};
v.offset = this... | JavaScript |
function VmRunner(client)
{
this.client = client;
this.vm = new Vm(client);
this.codeInterval = null;
var self = this;
client.socket.on('disconnect', function(){
clearInterval(self.codeInterval);
});
client.socket.on('unjoined', function(){
clearInterval(self.codeInterval);... | JavaScript |
Premade = function Premade(name, type)
{
this.name = name;
this.type = type || 'classic';
this.level = 1;
this.userCount = 0;
this.locked = false; // lock for new users
if (!isClient()) {
this.users = new TList(); // todo move to clan?
switch (this.type) {
case 'clas... | JavaScript |
/**
* public interface:
* void add(item)
* bool remove(item)
* bool move(item, newX, newY)
* object[] intersects(item)
*/
MapTiled = function MapTiled(width, height)
{
this.all = []; // for fast traversal
this.items = [];
this.maxX = Math.ceil(width/this.tileSize) - 1;
this.maxY = Math.ceil(height... | JavaScript |
/**
* this is for both, client and server.
*/
User = function User()
{
};
Eventable(User.prototype);
/**
* @todo hack for BcClient.onUserChange()
* @param data
* @return
*/
User.prototype.serialize = function()
{
var res = [];
res[1] = this.id;
res[2] = this.nick;
res[3] = this.lives;
res[... | JavaScript |
vector = function vector(x)
{
if (x) {
return x/Math.abs(x);
} else {
return 0;
}
};
isClient = function isClient()
{
return !(typeof window == 'undefined' && typeof global == 'object');
};
serializeTypeMatches = {
'Bullet' : 1,
'Tank' : 2,
'TankBot'... | JavaScript |
Game = function Game(map, premade)
{
this.running = true; // premade set this to false before game over
this.premade = premade;
this.stepableItems = [];
this.field = new Field(13*32, 13*32);
this.field.game = this;
this.field.on('add', this.onAddObject.bind(this));
this.field.on('remove', ... | JavaScript |
var path = require("path");
var fs = require("fs");
/**
* This object is an interface for "server-side" variables. All access to them
* should be done here.
*
* @param socket EventEmitter
*/
BcServerInterface = function BcServerInterface(socket)
{
this.user = null;
this.socket = socket;
socket.on('lo... | JavaScript |
Message = function Message(text)
{
this.time = Date.now();
this.text = text;
};
Eventable(Message.prototype);
Message.prototype.serialize = function()
{
return [
serializeTypeMatches[this.constructor.name] // 0
, this.id // 1
, this.time // 2
, this.user.id // 3
, this.use... | JavaScript |
// test is this node.js or browser
if (typeof require == 'function') {
EventEmitter = require('events').EventEmitter;
}
Eventable = function Eventable(object)
{
for (var i in EventEmitter.prototype) {
object[i] = EventEmitter.prototype[i];
}
};
| JavaScript |
/**
* Don't call Array methods which modify items, because they don't emit events.
*/
TList = function TList()
{
this.items = [];
};
Eventable(TList.prototype);
TList.prototype.get = function(id)
{
return this.items[id];
};
TList.prototype.add = function(item)
{
if (item.id !== undefined) {
th... | JavaScript |
/**
*
* @param context
* @param client
* @return
*/
function UiGameControls(context, client)
{
this.context = context;
this.resetState();
var self = this;
client.socket.on('gameover', this.setStateGameOver.bind(this));
client.socket.on('started', this.setStateGameRunning.bind(this));
clie... | JavaScript |
function WidgetPublic(context, client)
{
this.premades = new UiPremadeList(
client.premades,
$('.premades', context), 'premade');
this.publicChat = new WidgetPublicChat(context, client);
$('.premade', context).live('click', function(){
client.join($('.name', this).text());... | JavaScript |
function WidgetPremade(context, client)
{
this.levelSelector = new WidgetLevelSelector($('.level', context), client);
this.chat = new WidgetPremadeChat(context, client);
this.gameControls = new UiGameControls(context, client);
};
| JavaScript |
function UiList(list, container, itemClass)
{
if (arguments.length) {
this.container = container;
this.itemClass = itemClass;
list.on('add', this.onAdd.bind(this));
list.on('change', this.onChange.bind(this));
list.on('remove', this.onRemove.bind(this));
}
};
UiList.pro... | JavaScript |
//====== WidgetLevelSelector ===================================================
function WidgetLevelSelector(context, client)
{
client.currentPremade.on('change', function() {
// "this" is client.currentPremade
var levelSelect = $('select', context);
levelSelect.empty();
for (var ... | JavaScript |
function WidgetNotifier(client)
{
client.socket.on('user-message', function(data) {
alert(data.message);
});
client.socket.on('nickNotAllowed', function(){
alert('Ник занят. Выберите другой.');
});
client.socket.on('doNotFlood', function() {
alert('Слишком много сообщений за... | JavaScript |
function WidgetCreateBot(context, client)
{
this.context = context;
context.tabs({
show: function(event, ui) {
if (ui.index == 1) {
// hack to force codeMirror to show code
window.codeMirror.setValue(window.codeMirror.getValue());
window.codeM... | JavaScript |
function WidgetExercises(context, client)
{
this.courses = new UiCoursesList(client.courses, $('.courses', context), 'course', client);
this.exercises = new UiExercisesList(client.exercises, $('.exercise-list', context), 'exercise');
$('.exercise .select', context).live('click', function(){
var na... | JavaScript |
function WidgetPublicChat(context, client)
{
this.context = context;
this.client = client;
this.users = new UiUserList(
client.users,
$('.user-list', context), 'user');
this.messages = new UiMessageList(
client.messages,
$('.messages', context), 'message')... | JavaScript |
function FieldView(context, client)
{
this.field = client.field;
this.context = context;
this.c2d = $('#field', context).get(0).getContext('2d');
this.c2d.font ="bold 25px Arial";
this.step = 1;
this.animateIntervalId = null;
var self = this;
this.field.on('remove', function(object){
... | JavaScript |
function WidgetHelp(context, client)
{
client.socket.on('started', function(event){
var langfile = '/src/edu/' + event.courseName + '/ex' + event.exerciseId;
$('.lang', context).attr('langfile', langfile);
$('.content', context).attr('onlang', 'WidgetHelp.onLang');
applyLang(null, c... | JavaScript |
function WidgetGame(context, client)
{
this.controller = new TankController(client);
this.tankStack = new UiTankStack(
client.tankStack,
$('#bot-stack', context), 'bot');
this.userPoints = new UserPoint(client.premadeUsers);
this.fieldView = new FieldView(context, client);
t... | JavaScript |
function WidgetConsole(context, client)
{
client.on('compile-error', function(ex){
context.text(context.text() + ex.message + '\n');
});
client.on('write', function(data){
context.text(context.text() + data);
});
}
| JavaScript |
function UiManager(client)
{
this.client = client;
this.loginForm = new WidgetLoginForm($('#login'), client);
this.publicArea = new WidgetPublic($('#public'), client);
this.createGame = new WidgetCreateGame($('#create'), client);
this.premade = new WidgetPremade($('#premade'), client);
thi... | JavaScript |
//interface:
var self = this;
var store = {};
this.botCodeInterval = setInterval(function() {
var tank = {
getX : function()
{
return self.field.get(self.user.tankId).x;
},
getY : function()
{
return self.field.get(s... | JavaScript |
var util = require('util');
var vm = require('vm');
var fs = require("fs");
var sandbox = {
};
fs.readFile('untrusted.js', 'utf8', function(err, file) {
if(!err) {
// try {
vm.runInNewContext(file, sandbox);
// } catch (ex) {
// console.log(ex, ex.message);
// ... | JavaScript |
qwe(); | JavaScript |
var n = 0;
var id = 0;
/**
* this is also object manager, so all coordinate operations should be done here
* Ideally object should not know about x and y
*
* public interface:
* add(item)
* remove(item)
* move(item, newX, newY)
* intersects(item)
*/
function Area(x, y, hw, hh, leaf)
{
this.x = x;
thi... | JavaScript |
$(window).resize(function(){
$('#body').height($(this).height() - $('#mainmenu').height() - 1);
$('.chat-log').height($('#body').height() - 70);
$('.user-list').add('.premades').height($('#body').height() - 18 * 3);
$('#tabs-help').add('#tabs-editor').height($('#bot-editor').height() - $('#bot-editor .... | JavaScript |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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 limitation the rights to use, copy, modi... | JavaScript |
CodeMirror.defineMode("pascal", function(config) {
function words(str) {
var obj = {}, words = str.split(" ");
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
return obj;
}
var keywords = words("and array begin case const div do downto else end file for forward integer " +
... | JavaScript |
// CodeMirror v2.18
// All functions that need access to the editor's state live inside
// the CodeMirror function. Below that, at the bottom of the file,
// some utilities are defined.
// CodeMirror is the only global var we claim
var CodeMirror = (function() {
// This is the function that produces an editor insta... | JavaScript |
CodeMirror.defineMode("javascript", function(config, parserConfig) {
var indentUnit = config.indentUnit;
var jsonMode = parserConfig.json;
// Tokenizer
var keywords = function(){
function kw(type) {return {type: type, style: "keyword"};}
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"... | JavaScript |
CodeMirror.runMode = function(string, modespec, callback) {
var mode = CodeMirror.getMode({indentUnit: 2}, modespec);
var isNode = callback.nodeType == 1;
if (isNode) {
var node = callback, accum = [];
callback = function(string, style) {
if (string == "\n")
accum.push("<br>");
else if... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @name Store Locator for Google Maps API V3
* @version 0.1
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* @license
*
* Copyright 2012 Google Inc.
*
* License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Allows developers to specify a static set of stores to be used in the
* storelocator.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Feature model class for Store Locator library.
*/
/**
* 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 Licens... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* An info panel, which complements the map view of the Store Locator.
* Provides a list of stores, location search, feature filter, and directions.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Store model class for Store Locator library.
*/
/**
* 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 ... | JavaScript |
// Copyright 2013 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Provides access to store data through Google Maps Engine.
*/
/**
* 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... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* FeatureSet class for Store Locator library. A mutable, ordered set of
* storeLocator.Features.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | JavaScript |
/** @interface */
function storeLocator_Feature() {};
storeLocator_Feature.prototype.getId = function(var_args) {};
storeLocator_Feature.prototype.getDisplayName = function(var_args) {};
/** @interface */
function storeLocator_FeatureSet() {};
storeLocator_FeatureSet.prototype.toggle = function(var_args) {};
storeLoca... | JavaScript |
// A simple demo showing how to grab places using the Maps API Places Library.
// Useful extensions may include using "name" filtering or "keyword" search.
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.... | JavaScript |
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.LatLng(-28, 135),
zoom: 4,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var panelDiv = document.getElementById('panel');
var data = new store... | JavaScript |
/**
* @implements storeLocator.DataFeed
* @constructor
*/
function MedicareDataSource() {
}
MedicareDataSource.prototype.getStores = function(bounds, features, callback) {
var that = this;
var center = bounds.getCenter();
var audioFeature = this.FEATURES_.getById('Audio-YES');
var wheelchairFeature = this.F... | JavaScript |
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.LatLng(-28, 135),
zoom: 4,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var panelDiv = document.getElementById('panel');
var data = new Medic... | JavaScript |
/**
* @extends storeLocator.StaticDataFeed
* @constructor
*/
function MedicareDataSource() {
$.extend(this, new storeLocator.StaticDataFeed);
var that = this;
$.get('medicare.csv', function(data) {
that.setStores(that.parse_(data));
});
}
/**
* @const
* @type {!storeLocator.FeatureSet}
* @private
*... | JavaScript |
// Store locator with customisations
// - custom marker
// - custom info window (using Info Bubble)
// - custom info window content (+ store hours)
var ICON = new google.maps.MarkerImage('medicare.png', null, null,
new google.maps.Point(14, 13));
var SHADOW = new google.maps.MarkerImage('medicare-shadow.png', nul... | JavaScript |
(function($) {
$.fn.spasticNav = function(options) {
options = $.extend({
overlap : 5,
speed : 500,
reset : 1500,
color : '#0b2b61',
easing : 'easeOutExpo'
}, options);
return this.each(function() {
var nav = $(this),
currentPageItem = $('#selected', nav),
blob,
reset;
... | JavaScript |
/*
* jCarousel - Riding carousels with jQuery
* http://sorgalla.com/jcarousel/
*
* Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Built on top ... | JavaScript |
$(function() {
$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#login-form" ).dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons: {
},
close: function() {
allFields.val( "" ).removeClass( "ui-state-error" );
}
});
$( "#login" )
.click... | JavaScript |
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time to build CKEditor again.
*
* If you would like to bu... | JavaScript |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
| JavaScript |
/**
* @license Copyright (c) 2003-2013, 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 = ... | JavaScript |
/**
* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'myDialog', function( editor ) {
return {
title: 'My Dialog',
minWidth: 400,
minHeight: 200,
contents: [
{
id: 'tab1',... | JavaScript |
/**
* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
// Tool scripts for the sample pages.
// This file can be ignored and is not required to make use of CKEditor.
( function() {
CKEDITOR.on( 'instanceReady', ... | JavaScript |
/**
* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a combo
... | JavaScript |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time at http://ckeditor.com/builder to build CKEditor aga... | JavaScript |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
/**
* @license Copyright (c) 2003-2012, 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 the complete reference:
// http://docs.ckeditor.com/#... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'myDialog', function( editor ) {
return {
title: 'My Dialog',
minWidth: 400,
minHeight: 200,
contents: [
{
id: 'tab1... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a comb... | JavaScript |
/**
* @license wysihtml5 v0.3.0
* https://github.com/xing/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
*
* Copyright (C) 2012 XING AG
* Licensed under the MIT license (MIT)
*
*/
var wysihtml5 = {
version: "0.3.0",
// namespaces
commands: {},
dom: {},
qu... | JavaScript |
/* Set the defaults for DataTables initialisation */
$.extend( true, $.fn.dataTable.defaults, {
"sDom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r><'table-scrollable't><'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>", // horizobtal scrollable datatable
//"sDom": "<'row'<'col-md-6 col-sm-12'l><'co... | JavaScript |
/*
* Fuel UX Spinner
* https://github.com/ExactTarget/fuelux
*
* Copyright (c) 2012 ExactTarget
* Licensed under the MIT license.
*/
!function ($) {
// SPINNER CONSTRUCTOR AND PROTOTYPE
var Spinner = function (element, options) {
this.$element = $(element);
this.options = $.extend({}, $.fn.sp... | JavaScript |
/**
* @author Will Steinmetz
*
* jQuery notification plug-in inspired by the notification style of Windows 8
*
* Copyright (c)2013, Will Steinmetz
* Licensed under the BSD license.
* http://opensource.org/licenses/BSD-3-Clause
*/
;(function($) {
var settings = {
life: 10000,
theme: 'teal',
sticky: fals... | JavaScript |
/*!
* typeahead.js 0.10.0
* https://github.com/twitter/typeahead.js
* Copyright 2013 Twitter, Inc. and other contributors; Licensed MIT
*/
(function($) {
var _ = {
isMsie: function() {
return /(msie|trident)/i.test(navigator.userAgent) ? navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)... | JavaScript |
/*
Holder - 2.0 - client side image placeholders
(c) 2012-2013 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,
canva... | JavaScript |
/**
* jquery.plupload.queue.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*/
/* global jQuery:true, alert:true */
/**
jQuery based implementation of the Plupload API - multi-runtime fi... | JavaScript |
/**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.1.0
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2013-12-27
*/
/**
* Compiled inline version. (Library ... | JavaScript |
/**
* Plupload - multi-runtime File Uploader
* v2.1.0
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2013-12-27
*/
/**
* Plupload.js
*
* Copyright 2013, Moxiecode Systems AB
... | JavaScript |
/*! Backstretch - v2.0.3 - 2012-11-30
* http://srobbin.com/jquery-plugins/backstretch/
* Copyright (c) 2012 Scott Robbin; Licensed MIT */
;(function ($, window, undefined) {
'use strict';
/* PLUGIN DEFINITION
* ========================= */
$.fn.backstretch = function (images, options) {
// We need at le... | JavaScript |
/*
* MultiSelect v0.9.10
* Copyright (c) 2012 Louis Cuny
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar.... | JavaScript |
/*!
* Media helper for fancyBox
* version: 1.0.5 (Tue, 23 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* ... | JavaScript |
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for ... | JavaScript |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(fun... | JavaScript |
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and delta... | JavaScript |
/*!
* Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
* Dual-licensed under the BSD or MIT licenses
*/
;(function($, window, document, undefined)
{
var hasTouch = 'ontouchstart' in window;
/**
* Detect CSS pointer-events property
* events are normally disabled on t... | JavaScript |
/**
* jquery.Jcrop.js v0.9.12
* jQuery Image Cropping Plugin - released under MIT License
* Author: Kelly Hallman <[email protected]>
* http://github.com/tapmodo/Jcrop
* Copyright (c) 2008-2013 Tapmodo Interactive LLC {{{
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of th... | JavaScript |
/*!
* jQuery Color Animations v2.0pre
* http://jquery.org/
*
* Copyright 2011 John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function( jQuery, undefined ){
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor col... | JavaScript |
/**
Address editable input.
Internally value stored as {city: "Moscow", street: "Lenina", building: "15"}
@class address
@extends abstractinput
@final
@example
<a href="#" id="address" data-type="address" data-pk="1">awesome</a>
<script>
$(function(){
$('#address').editable({
url: '/post',
title: '... | JavaScript |
/**
Bootstrap wysihtml5 editor. Based on [bootstrap-wysihtml5](https://github.com/jhollingworth/bootstrap-wysihtml5).
You should include **manually** distributives of `wysihtml5` and `bootstrap-wysihtml5`:
<link href="js/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css" rel="styleshee... | JavaScript |
/*!
* FullCalendar v1.6.1 Google Calendar Plugin
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
(function($) {
var fc = $.fullCalendar;
var formatDate = fc.formatDate;
var parseISO8601 = fc.parseISO8601;
var addDays = fc.addDays;
var applyAll = fc.applyAll;
fc.sourceNormalizers.push... | JavaScript |
/*!
* FullCalendar v1.6.1
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
/*
* Use fullcalendar.css for basic styling.
* For event drag & drop, requires jQuery UI draggable.
* For event resizing, requires jQuery UI resizable.
*/
(function($, undefined) {
;;
var defaults = {
// ... | JavaScript |
// moment.js
// version : 2.1.0
// author : Tim Wood
// license : MIT
// momentjs.com
(function (undefined) {
/************************************
Constants
************************************/
var moment,
VERSION = "2.1.0",
round = Math.round, i,
// internal storage for... | JavaScript |
/**
* @version: 1.3
* @author: Dan Grossman http://www.dangrossman.info/
* @date: 2014-01-14
* @copyright: Copyright (c) 2012-2014 Dan Grossman. All rights reserved.
* @license: Licensed under Apache License v2.0. See http://www.apache.org/licenses/LICENSE-2.0
* @website: http://www.improvely.com/
*/
!function ($) {
... | JavaScript |
/* noUiSlider - refreshless.com/nouislider/ */
(function($, UNDEF){
$.fn.noUiSlider = function( options ){
var namespace = '.nui'
// Create a shorthand for document event binding
,all = $(document)
// Create a map of touch and mouse actions
,actions = {
start: 'mousedown' + namespace + ' touchsta... | JavaScript |
;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... | JavaScript |
/*
* jQuery Iframe Transport Plugin 1.8.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
*/
/* global define, window, document */
(function (factory) {
'use strict';
... | JavaScript |
/*
* jQuery File Upload jQuery UI Plugin 8.7.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, window */
(function (factory) {
... | JavaScript |
/*
* jQuery postMessage Transport Plugin 1.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
*/
/* global define, window, document */
(function (factory) {
'use strict... | JavaScript |
/*
* jQuery XDomainRequest Transport Plugin 1.1.3
* 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.