code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
'use strict';
module.exports = function (context) {
return {
CallExpression: function (node) {
if (node.callee.name === 'alert') {
context.report(node, 'testing custom rules.');
}
}
};
};
| inswave/websquare-lint | conf/rules_notuse/no-alert.js | JavaScript | mit | 204 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... | Microsoft/ChakraCore | test/Function/apply3.js | JavaScript | mit | 6,608 |
/**
* Rooms
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Every chat room and battle is a room, and what they do is done in
* rooms.js. There's also a global room which every user is in, and
* handles miscellaneous things like welcoming the user.
*
* @license MIT license
*/
const TIMEOUT_EMPTY_DEALLOCA... | Nineage/Showdown-Boilerplate | rooms.js | JavaScript | mit | 46,612 |
/**
* Copyright (c) 2008-2011 The Open Planning Project
*
* Published under the BSD license.
* See https://github.com/opengeo/gxp/raw/master/license.txt for the full text
* of the license.
*/
/**
* @requires plugins/ZoomToExtent.js
*/
/** api: (define)
* module = gxp.plugins
* class = ZoomToSelectedFeatu... | flavour/porto | static/scripts/gis/gxp/plugins/ZoomToSelectedFeatures.js | JavaScript | mit | 2,820 |
version https://git-lfs.github.com/spec/v1
oid sha256:7076c06d1c5b0c8a10633ae2837be365f999203218d8484d9c4dd3bcb53c7e95
size 49060
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.7.3/calendar/calendar-coverage.js | JavaScript | mit | 130 |
'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var SocialPages = React.createClass({
displayName: 'SocialPages',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(
S... | dominikgar/flask-search-engine | node_modules/material-ui/lib/svg-icons/social/pages.js | JavaScript | mit | 588 |
import $ from 'jquery';
import ParsleyUI from '../../src/parsley/ui';
import Parsley from '../../src/parsley';
describe('ParsleyUI', () => {
before(() => {
Parsley.setLocale('en');
});
it('should create proper errors container when needed', () => {
$('body').append('<input type="text" id="element" data-... | geoffroygivry/CyclopsVFX-Polyphemus | static/polyphemus/assets/plugins/parsley/test/unit/ui.js | JavaScript | mit | 19,850 |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var is = require('@redux-saga/is');
var __chunk_1 = require('./chunk-5caa0f1a.js');
var __chunk_2 = require('./chunk-062c0282.js');
require('@babel/runtime/helpers/extends');
require('@redux-saga/symbols');
require('@redux-saga/delay-p');
v... | extend1994/cdnjs | ajax/libs/redux-saga/1.0.0-beta.3/redux-saga-effects.dev.cjs.js | JavaScript | mit | 11,792 |
YUI.add("yuidoc-meta", function(Y) {
Y.YUIDoc = { meta: {
"classes": [
"Amplitude",
"AudioIn",
"Env",
"FFT",
"Noise",
"Oscillator",
"Pulse",
"SoundFile",
"p5.Element",
"p5.MediaElement",
"p5.dom",
"p5.sound"
],
... | processing/p5.js-sound | docs/reference/api.js | JavaScript | mit | 784 |
/// <reference path="angular.d.ts" />
/// <reference path="angular-route.d.ts" />
/// <reference path="angular-sanitize.d.ts" />
/// <reference path="bootstrap.d.ts" />
/// <reference path="moment.d.ts" />
/// <reference path="moment-duration-format.d.ts" />
/// <reference path="d3.d.ts" />
/// <reference path="undersc... | dimamedvedev/bosun | cmd/bosun/web/static/js/bosun.js | JavaScript | mit | 97,399 |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import Typography from '../Typography';
import withStyles from '../styles/wit... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.9/esm/InputAdornment/InputAdornment.js | JavaScript | mit | 4,948 |
/*jshint eqeqeq:false */
/*global jQuery, define */
(function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([
"jquery",
"./grid.base"
], factory );
} else {
// Browser globals
factory( jQuery );
}
}(function( $ ) {
"use... | cdnjs/cdnjs | ajax/libs/jqgrid/5.5.3/js/grid.aria.js | JavaScript | mit | 14,585 |
'use strict';
var re = /\|/;
module.exports = function() {
if( typeof re.split !== 'function' ) return false;
return re.split( 'bar|foo' )[1] === 'foo';
};
| tracyapps/chad | node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/decompress/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/es6-set/node_modules/es5-ext/reg-exp/#/split/is-implemented.js | JavaScript | gpl-2.0 | 160 |
/**
* Ext.ux.grid.GridFilters v0.2.7
**/
Ext.namespace("Ext.ux.grid");
Ext.ux.grid.GridFilters = function(config){
this.filters = new Ext.util.MixedCollection();
this.filters.getKey = function(o){return o ? o.dataIndex : null};
for(var i=0, len=config.filters.length; i<len; i++)
this.addFilter(config.filter... | bundocba/unitedworld | components/com_ose_cpu/extjs/grid/GridFilters.js | JavaScript | gpl-2.0 | 9,021 |
var ManageIssueTypePage = new Ext.Panel({
id : 'ezTrack_Manage_IssueType_Page',
layout : 'fit',
autoScroll : true,
items: [
ManageIssueTypePanelEvent
]
});
| chusiang/ezScrum_Ubuntu | WebContent/javascript/ezTrackPage/ManageIssueType.js | JavaScript | gpl-2.0 | 177 |
/****************************************************************************
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... | zero5566/super_mahjong | mahjong/test/super_mahjong/frameworks/cocos2d-html5/cocos2d/core/platform/CCLoaders.js | JavaScript | gpl-2.0 | 5,370 |
/*
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.data.QueryReadStore"]){
dojo._hasResource["dojox.data.QueryReadStore"]=true;
dojo.provide("doj... | sguazt/dcsj-sharegrid-portal | web/resources/scripts/dojo/dojox/data/QueryReadStore.js | JavaScript | gpl-3.0 | 5,990 |
/** @jsx jsx */
import React from "react";
import PropTypes from "prop-types";
import moment from "moment";
import { css, jsx } from "@emotion/core";
import { withTheme } from "emotion-theming";
import constants from "../../../constants";
import { RegularText } from "../../atoms/typography";
const DatetimeFieldRespo... | smartercleanup/duwamish | src/base/static/components/form-fields/types/datetime-field-response.js | JavaScript | gpl-3.0 | 800 |
/* 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... | gallardo/alkacon-oamp | com.alkacon.opencms.v8.formgenerator/resources/system/modules/com.alkacon.opencms.v8.formgenerator/resources/grid/grid/calendar/calendar.js | JavaScript | gpl-3.0 | 49,345 |
/* Authors:
* Endi Sukma Dewata <edewata@redhat.com>
*
* Copyright (C) 2010 Red Hat
* see file 'COPYING' for use and warranty information
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Founda... | apophys/freeipa | install/ui/src/freeipa/rule.js | JavaScript | gpl-3.0 | 7,989 |
var search = require('./helpers/search'),
authoring = require('./helpers/pages').authoring,
monitoring = require('./helpers/monitoring');
describe('package', () => {
beforeEach(() => {
monitoring.openMonitoring();
});
it('increment package version', () => {
monitoring.actionOnItem(... | darconny/superdesk-client-core | spec/package_spec.js | JavaScript | agpl-3.0 | 3,433 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'removeformat', 'ja', {
toolbar: 'フォーマット削除'
});
| phamtuanchip/mailfilter | resources/src/main/webapp/ckeditor/plugins/removeformat/lang/ja.js | JavaScript | lgpl-3.0 | 239 |
$(document).ready(function () {
$("#bSort").hide();
$("#bShare").hide();
var movieCache = new Array();
//var movieRatingCache = new Array();
var isDebugMode = false;
var webSocketAddress, imdbServletUrl, treeUrl, sortUrl, shareServletUrl, sharedDataUrl;
if (isDebugMode) {
... | axefox/Rankix | server/web/js/code.js | JavaScript | apache-2.0 | 17,897 |
/* Copyright 2021 Mozilla Foundation
*
* 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... | mozilla/pdf.js | test/unit/base_viewer_spec.js | JavaScript | apache-2.0 | 4,511 |
dojo.provide("dijit.form.HorizontalRule");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.declare("dijit.form.HorizontalRule", [dijit._Widget, dijit._Templated],
{
// summary:
// Hash marks for `dijit.form.HorizontalSlider`
templateString: '<div class="dijitRuleContainer dijitRuleContainer... | feklee/rotogame | source/dojo-release-1.3.0-src/dijit/form/HorizontalRule.js | JavaScript | apache-2.0 | 1,692 |
/* */
"format cjs";
/**
* Groups the elements of an observable sequence according to a specified key selector function and comparer and selects the resulting elements by using a specified function.
*
* @example
* var res = observable.groupBy(function (x) { return x.id; });
* 2 - observable.groupBy(... | cfraz89/moonrock-js-starter | jspm_packages/npm/rx@2.5.3/src/core/linq/observable/groupby.js | JavaScript | apache-2.0 | 1,147 |
/* */
"format cjs";
function observableTimerTimeSpan(dueTime, scheduler) {
return new AnonymousObservable(function (observer) {
return scheduler.scheduleWithRelative(normalizeTime(dueTime), function () {
observer.onNext(0);
observer.onCompleted();
});
});
}
| cfraz89/moonrock-js-starter | jspm_packages/npm/rx@2.5.3/src/core/linq/observable/_observabletimertimespan.js | JavaScript | apache-2.0 | 299 |
function CreateUiSlider(args) {
var instanceSlider = Titanium.UI.createSlider({
height:"auto",
width:"auto",
//top:100,
min:0, //Minimum value for the slider (needed for Android)
max:10 //Maximum value for the slider (needed for Android)
});... | andi2/03_main | Resources/ui/components/uiSlider.js | JavaScript | apache-2.0 | 540 |
import {buildUrl} from '#ads/google/a4a/shared/url-builder';
import {dict} from '#core/types/object';
import {Services} from '#service';
/**
* A fake ad network integration that is mainly used for testing
* and demo purposes. This implementation gets stripped out in compiled
* production code.
* @implements {./a... | jpettitt/amphtml | extensions/amp-auto-ads/0.1/ping-network-config.js | JavaScript | apache-2.0 | 1,416 |
// Generated by CoffeeScript 1.9.3
(function() {
var CONNECTION_STRING_NAMED_INSTANCE, CONNECTION_STRING_PORT, DECLARATIONS, EMPTY_BUFFER, ISOLATION_LEVEL, Pool, TYPES, UDT, castParameter, createColumns, declare, isolationLevelDeclaration, msnodesql, ref, util, valueCorrection,
extend = function(child, parent) { ... | erkankoc1221647/MyGrade | node_modules/mssql/lib/msnodesql.js | JavaScript | apache-2.0 | 23,012 |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.uk');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Додати коментар";
Blockly.Msg.CANNOT_DELETE_VARIABLE_PROCEDURE = "Can't delete the variable '%1' because it's part of the definition of the function '%2'"; ... | lzairdking/blockly | msg/js/uk.js | JavaScript | apache-2.0 | 39,947 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.6-2-8
description: >
Object.defineProperty - argument 'P' is a number that converts to
a string (value is -0)
---*/
var obj = {};
Object.defineProperty(obj... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js | JavaScript | bsd-2-clause | 401 |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-module-namespace-exotic-objects-isextensible
description: The [[IsExtensible]] internal method returns `false`
flags: [module]
---*/
import * as ns from './is-extens... | sebastienros/jint | Jint.Tests.Test262/test/language/module-code/namespace/internals/is-extensible.js | JavaScript | bsd-2-clause | 381 |
// -*- coding: utf-8 -*-
// Copyright (C) 2014 Yusuke Suzuki <utatane.tea@gmail.com>
//
// 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 the above copyright
// ... | mysticatea/escope | test/es6-block-scope.js | JavaScript | bsd-2-clause | 8,227 |
// Copyright 2015 Microsoft Corporation. All rights reserved.
// This code is governed by the license found in the LICENSE file.
/*---
description: Math.acosh(1) returns +0
es6id: 20.2.2.3
info: |
Math.acosh ( x )
- If x is 1, the result is +0.
---*/
assert.sameValue(Math.acosh(+1), 0, "Math.acosh should produce... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Math/acosh/arg-is-one.js | JavaScript | bsd-2-clause | 333 |
// Copyright (C) 2017 Josh Wolfe. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Bitwise AND for BigInt values
esid: sec-bitwise-op
info: |
BitwiseOp(op, x, y)
1. Let result be 0.
2. Let shift be 0.
3. Repeat, until (x = 0 or x = -1) and (y = 0 o... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/bitwise-and/bigint.js | JavaScript | bsd-2-clause | 6,299 |
/**
* Use `Polymer.IronValidatableBehavior` to implement an element that validates user input.
*
* ### Accessiblity
*
* Changing the `invalid` property, either manually or by calling `validate()` will update the
* `aria-invalid` attribute.
*
* @demo demo/index.html
* @polymerBehavior
*... | TheTypoMaster/chromium-crosswalk | third_party/polymer/v1_0/components-chromium/iron-validatable-behavior/iron-validatable-behavior-extracted.js | JavaScript | bsd-3-clause | 1,835 |
/*! VelocityJS.org (1.2.1). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
/*************************
Velocity jQuery Shim
*************************/
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
/* This fil... | tpmanc/football | web/js/admin/vendor/bower/velocity/velocity.js | JavaScript | bsd-3-clause | 213,740 |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var _callbacks = {};
var _next_reply_id = 0;
var postMessage = function(msg, callback) {
var reply_id = _next_reply_id;
_next_reply_id += 1;
_call... | pk-sam/tizen-extensions-crosswalk | src/bluetooth/bluetooth_api.js | JavaScript | bsd-3-clause | 39,100 |
/*
* Author: Zoltán Lajos Kis <zoltan.lajos.kis@ericsson.com>
*/
"use strict";
(function() {
var util = require('util');
var ofp = require('../ofp.js');
var offsets = ofp.offsets.ofp_action_tp_port;
module.exports = {
"unpack" : function(buffer, offset) {
var action = {
... | gaberger/oflib-node | lib/ofp-1.0/actions/set-tp-dst.js | JavaScript | bsd-3-clause | 1,231 |
/*
* Author: Zoltán Lajos Kis <zoltan.lajos.kis@ericsson.com>
*/
"use strict";
module.exports.bin = [
0x00, 0x15, // type = 21
0x00, 0x08, // length = 8
0xff, 0xff, 0xff, 0x0ff, // queue_id = 0xffffffff
];
mod... | John-Lin/oflib-node | test/oflib-1.1/actions/set-queue-2.js | JavaScript | bsd-3-clause | 487 |
import React, { PureComponent } from 'react';
import { Animated, View, StyleSheet } from 'react-native';
var babelPluginFlowReactPropTypes_proptype_Style = require('../../TypeDefinition').babelPluginFlowReactPropTypes_proptype_Style || require('prop-types').any;
var babelPluginFlowReactPropTypes_proptype_NavigationSc... | gunaangs/Feedonymous | node_modules/react-navigation/lib-rn/views/TabView/TabBarIcon.js | JavaScript | mit | 3,575 |
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
//>>group: exclude
define([
"require",
"./widgets/loader",
"./events/navigate",
"./navigation/path",
"./navigation/history",
"./navigation/navigator",
"./navigation/method",
"./transitions/handlers",
"./transitions/visuals",
"./animationComplete",... | ericsteele/retrospec.js | test/input/projects/jquery-mobile/rev-1.4.5-2ef45a1/js/jquery.mobile.js | JavaScript | mit | 1,471 |
module.exports = {
name: 'basis.type',
test: [
require('./type/string.js'),
require('./type/number.js'),
require('./type/int.js'),
require('./type/enum.js'),
require('./type/array.js'),
require('./type/object.js'),
require('./type/date.js'),
{
name: 'definition of new types',
... | fateevv/basisjs | test/spec/type.js | JavaScript | mit | 4,048 |
/* Slovenia +*/
/*global jQuery */
(function ($) {
$.ig = $.ig || {};
$.ig.regional = $.ig.regional || {};
if ($.datepicker && $.datepicker.regional) {
$.datepicker.regional['sl'] = {
closeText: 'Zapri',
prevText: '<Prejšnji',
nextText: 'Naslednji>',
currentText: 'Trenutni',
mon... | ajbeaven/personal-finance-sample | PersonalFinance/Scripts/ig/modules/i18n/regional/infragistics.ui.regional-sl.js | JavaScript | mit | 1,974 |
const models = require('../../models');
const {i18n} = require('../../lib/common');
const errors = require('@tryghost/errors');
const urlUtils = require('../../../shared/url-utils');
const ALLOWED_INCLUDES = ['tags', 'authors', 'authors.roles'];
const UNSAFE_ATTRS = ['status', 'authors', 'visibility'];
module.exports ... | e10/Ghost | core/server/api/v2/pages.js | JavaScript | mit | 5,771 |
'use strict';
module.exports = {
env: 'test'
};
| anishreddy202/ng2-scaffold | server/sdk/test/config.js | JavaScript | mit | 51 |
function trading_init(){
if (!this.trading){
//if (this.trading === undefined || this.trading === null){
this.trading = apiNewOwnedDC(this);
this.trading.label = 'Trading';
this.trading_create_escrow_bag();
this.trading.currants = 0;
}
var escrow = this.trading_get_escrow_bag();
if (!escrow){
this.t... | yelworc/eleven-gsjs | players/inc_trading.js | JavaScript | mit | 22,066 |
/****************************************************************************
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... | oneliojr/CityDefender | frameworks/cocos2d-html5/extensions/cocostudio/armature/animation/CCTween.js | JavaScript | mit | 16,987 |
var path = require('path');
var async = require('async');
module.exports = function(content) {
var cb = this.async();
var json = JSON.parse(content);
async.mapSeries(
json.imports,
function(url, callback) {
this.loadModule(url, function(err, source, map, module) {
if (err) {
return callback(err);
... | nkzawa/webpack | test/cases/loaders/issue-2299/loader/index.js | JavaScript | mit | 684 |
var THREEx = THREEx || {}
//////////////////////////////////////////////////////////////////////////////////
// Constructor //
//////////////////////////////////////////////////////////////////////////////////
/**
* create a dynamic texture with a underlying canvas
*
* @param {Number} width width of the c... | gvcm/CWAPP | vendor/dynamictexture.js | JavaScript | mit | 4,633 |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var mobx = require('mobx');
var reactNative = requ... | sufuf3/cdnjs | ajax/libs/mobx-react/5.3.6/native.js | JavaScript | mit | 48,550 |
/*
This example renders a treemap using the built in
TreeDraw function.
*/
/**
* Create the actual tree.
* @return {mo.Tree}
*/
function makeTree(){
var tree = new mo.Tree();
var parent = new mo.Node('root', 'root');
var child1 = new mo.Node('c1', 'c1');
var child2 = new mo.Node('c2', 'c2');
tree.a... | fmacias64/moebio_framework | examples/treemap/index.js | JavaScript | mit | 1,433 |
var icms = icms || {};
icms.subscriptions = (function ($) {
this.active_link = {};
this.onDocumentReady = function () {
this.setSubscribe();
$('.subscriber').on('click', function () {
icms.subscriptions.active_link = this;
icms.subscriptions.showLoader();
... | filinov/icms2 | templates/default/js/subscriptions.js | JavaScript | gpl-2.0 | 2,818 |
(function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... | Jackamomo/beta.designmesh.co.uk | sites/default/files/js/js_epbrEI_0goJi4R57mtzv1h04XFGpS-jRxZzMGykmego.js | JavaScript | gpl-2.0 | 60,971 |
'use strict';
var path = require('path');
var _ = require('lodash');
module.exports = function (from, to, context, tplSettings) {
context = context || {};
tplSettings = tplSettings || {};
this.copy(from, to, {
process: function (contents) {
return _.template(contents.toString(), tplSettings)(context);... | ph3l1x/realestate | sites/all/themes/default/bootstrap/node_modules/mem-fs-editor/actions/copy-tpl.js | JavaScript | gpl-2.0 | 336 |
/*
* Require-CSS RequireJS css! loader plugin
* 0.1.8
* Guy Bedford 2014
* MIT
*/
/*
*
* Usage:
* require(['css!./mycssFile']);
*
* Tested and working in (up to latest versions as of March 2013):
* Android
* iOS 6
* IE 6 - 10
* Chome 3 - 26
* Firefox 3.5 - 19
* Opera 10 - 12
*
* browserling.com use... | sergez/carpc_client | www_src/js/requirejs/css.js | JavaScript | gpl-2.0 | 4,397 |
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.section = {
name: 'section',
version : '4.1.2',
settings : {
deep_linking: false,
one_up: true,
callback: function (){}
},
init :... | slamorte/dk | wp-content/themes/spine_old/foundation/javascripts/foundation/foundation.section.js | JavaScript | gpl-2.0 | 9,145 |
/**
* @name jQuery FullScreen Plugin
* @author Martin Angelov
* @version 1.0
* @url http://tutorialzine.com/2012/02/enhance-your-website-fullscreen-api/
* @license MIT License
*/
(function($){
// Adding a new test to the jQuery support object
$.support.fullscreen = supportFullScreen();
// Creating t... | mperceau/PhotoFloat | web/js/004-fullscreen.js | JavaScript | gpl-2.0 | 3,176 |
(function ($) {
/**
* Move a block in the blocks table from one region to another via select list.
*
* This behavior is dependent on the tableDrag behavior, since it uses the
* objects initialized in that behavior to update the row.
*/
Drupal.behaviors.taskbarUIDrag = {
attach: function (context, settings) {
... | chandra20/ch | sites/all/modules/taskbar/modules/taskbar_ui/taskbar_ui.js | JavaScript | gpl-2.0 | 4,863 |
// Can also be used with $(document).ready()
jQuery(window).load(function() {
jQuery('.flexslider').flexslider({
animation: "slide"
});
});
| kikecastillo/countries | themes/business/js/custom.js | JavaScript | gpl-3.0 | 148 |
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"Sunday",
"Monday",... | arie-benichou/go-dot | src/main/webapp/app/lib/angular/i18n/angular-locale_en-bw.js | JavaScript | gpl-3.0 | 2,001 |
/*
//! version : 3.1.3
=========================================================
bootstrap-datetimepicker.js
https://github.com/Eonasdan/bootstrap-datetimepicker
=========================================================
The MIT License (MIT)
Copyright (c) 2014 Jonathan Peterson
Permission is hereby granted,... | edwardbrosens/ambacht | upload/admin/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js | JavaScript | gpl-3.0 | 58,299 |
/**
* Collapse sections then reveal them when an associated link is clicked.
*
* - Each section should have the class `js-hide-reveal`
* - Each section should have an id attribute
* - Links that open a section should have the class `js-hide-reveal-link`
* - Each links' href attribute should specify the id of the ... | patricmutwiri/pombola | pombola/core/static/js/hide-reveal.js | JavaScript | agpl-3.0 | 1,019 |
/**
* @file
* @copyright 2020 WarlockD (https://github.com/warlockd)
* @author Original WarlockD (https://github.com/warlockd)
* @author Changes stylemistake
* @author Changes ThePotato97
* @author Changes Ghommie
* @author Changes Timberpoes
* @license MIT
*/
import { classes } from 'common/react';
import { ... | Bawhoppen/-tg-station | tgui/packages/tgui/interfaces/PaperSheet.js | JavaScript | agpl-3.0 | 19,192 |
description(
"Tests that the CompareEq optimization for the case where one side is predicted final object and the other side is predicted either final object or other (i.e. null or undefined) doesn't assert when the other side is also proven final object."
);
function foo(a, b) {
return [b.f, a == b];
}
for (var ... | youfoh/webkit-efl | LayoutTests/fast/js/script-tests/dfg-compare-final-object-to-final-object-or-other-when-proven-final-object.js | JavaScript | lgpl-2.1 | 483 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | zosiakropka/flat-calc | platforms/blackberry10/cordova/check_reqs.js | JavaScript | apache-2.0 | 1,491 |
import eachWeekendOfInterval from '../eachWeekendOfInterval/index.js';
import startOfMonth from '../startOfMonth/index.js';
import endOfMonth from '../endOfMonth/index.js';
import requiredArgs from '../_lib/requiredArgs/index.js';
/**
* @name eachWeekendOfMonth
* @category Month Helpers
* @summary List all the Satur... | BigBoss424/portfolio | v8/development/node_modules/date-fns/esm/eachWeekendOfMonth/index.js | JavaScript | apache-2.0 | 1,394 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("placeholder","no",{title:"Egenskaper for plassholder",toolbar:"Opprett plassholder",name:"Navn på plassholder",invalidName:"Plassholderen kan ikke væ... | viticm/pfadmin | vendor/frozennode/administrator/public/js/ckeditor/plugins/placeholder/lang/no.js | JavaScript | apache-2.0 | 405 |
module.exports = function () {
this.When(/^I use S3 managed upload to upload(?: a| an) (empty|small|large) buffer to the key "([^"]*)"$/, function (size, key, callback) {
var self = this;
var buffer = self.createBuffer(size);
var params = {Bucket: self.sharedBucket, Key: key, Body: buffer};
self.s3.u... | guymguym/aws-sdk-js | features/s3/step_definitions/managed_upload.js | JavaScript | apache-2.0 | 4,358 |
require('./node_loader');
var AWS = require('./core');
// Load all service classes
require('../clients/all');
/**
* @api private
*/
module.exports = AWS;
| chrisradek/aws-sdk-js | lib/aws.js | JavaScript | apache-2.0 | 159 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.2.3.2
description: >
Set.prototype.clear ( )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
---*/
assert.sameValue(Set.prototype.cle... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Set/prototype/clear/name.js | JavaScript | bsd-2-clause | 543 |
/*
* L.SVG renders vector layers with SVG. All SVG-specific code goes here.
*/
L.SVG = L.Renderer.extend({
_initContainer: function () {
this._container = L.SVG.create('svg');
// makes it possible to click through svg root; we'll reset it back in individual paths
this._container.setAttribute('pointer-events... | lee101/Leaflet | src/layer/vector/SVG.js | JavaScript | bsd-2-clause | 4,575 |
// Copyright 2008 The Closure Library Authors. 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 requ... | isabela-angelo/scratch-tangible-blocks | scratch-blocks/node_modules/google-closure-library/closure/goog/module/modulemanager.js | JavaScript | bsd-3-clause | 44,420 |
var assert = require('chai').assert;
assert.isDeferred = function (object) {
if (typeof object.resolve !== 'function') {
return false;
}
return String(object.resolve) === String($.Deferred().resolve);
};
var sinon;
var withData = require('leche').withData;
var StringUtils = {
repeatString: f... | yiisoft/yii2 | tests/js/tests/yii.validation.test.js | JavaScript | bsd-3-clause | 79,127 |
/**
GridStoreAdapter
Stores files in Mongo using GridStore
Requires the database adapter to be based on mongoclient
@flow weak
*/
import { MongoClient, GridStore, Db} from 'mongodb';
import { FilesAdapter } from './FilesAdapter';
import defaults from '../../defaults';
export cl... | rendongsc/parse-server | src/Adapters/Files/GridStoreAdapter.js | JavaScript | bsd-3-clause | 2,208 |
//>>built
define("dijit/form/HorizontalRule",["dojo/_base/declare","../_Widget","../_TemplatedMixin"],function(_1,_2,_3){return _1("dijit.form.HorizontalRule",[_2,_3],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div clas... | NCIP/cabio | software/cabio-api/system/web/dijit/form/HorizontalRule.js | JavaScript | bsd-3-clause | 989 |
/**
* @author Yongnan
* @version 1.0
* @time 11/26/2014
* @name PathBubble_BiPartite
*/
PATHBUBBLES.BiPartite = function (x, y, w, h, data, name) {
var tmp;
PATHBUBBLES.BubbleBase.call(this, {
type: 'BiPartite',
mainMenu: true, closeMenu: true, groupMenu: true,
html_elements: ['svg'... | garba1/GraphMirrors | js/BiPartite.js | JavaScript | bsd-3-clause | 3,873 |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sProcessing" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
"bDeferRender": true,
"bProcessing": true
} );
var oSettings = oTable.fnSettings... | stevemoore113/ch_web_- | 資源/Facemash/DataTables-1.9.4/media/unit_testing/tests_onhold/6_delayed_rendering/oLanguage.sProcessing.js | JavaScript | mit | 1,314 |
import React from "react";
import { NotFoundRoute, Route } from "react-router";
import App from "./components/App";
import Home from "./components/Home";
import NotFound from "./components/NotFound";
import Stargazer from "./components/Stargazer";
import Stargazers from "./components/Stargazers";
export default (
<... | shaunstanislaus/react-resolver | examples/react-v0.13/src/routes.js | JavaScript | isc | 720 |
/**
* Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
* of an array-like value.
*/
var MAX_SAFE_INTEGER = 9007199254740991;
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This function is based on [`ToLength`](http://ecma-international.or... | hoka-plus/p-01-web | tmp/babel-output_path-MNyU5yIO.tmp/modules/lodash/internal/isLength.js | JavaScript | mit | 641 |
/*
html2canvas 0.5.0-alpha1 <http://html2canvas.hertzen.com>
Copyright (c) 2015 Niklas von Hertzen
Released under MIT License
*/
(function(window, document, exports, global, define, undefined){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, To... | tttor/csipb-jamu-prj | webserver/src/assets/js/h2c/html2canvas.js | JavaScript | mit | 123,760 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _moment = require('moment');
var _moment2 = _interopRequireDefault(_moment);
var _en_US = require('rc-pagination/lib/locale/en_US');
var _en_US2 = _interopRequireDefault(_en_US);
var _en_US3 = require('../date-picker/locale/en_US... | yhx0634/foodshopfront | node_modules/antd/lib/locale-provider/en_US.js | JavaScript | mit | 1,712 |
;(function(){
// CommonJS require()
function require(p){
var path = require.resolve(p)
, mod = require.modules[path];
if (!mod) throw new Error('failed to require "' + p + '"');
if (!mod.exports) {
mod.exports = {};
mod.call(mod.exports, mod, mod.exports, require.relative(path));
}
... | wenjoy/homePage | node_modules/node-captcha/node_modules/canvas/node_modules/should/node_modules/vinyl-source-stream2/node_modules/vinyl-map/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/mocha/mocha.js | JavaScript | mit | 13,312 |
module.exports = require('./lib/knox'); | heroku/vulcan | server/node_modules/knox/index.js | JavaScript | mit | 40 |
//>>built
define("dijit/tree/_dndSelector",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/Deferred","dojo/_base/kernel","dojo/_base/lang","dojo/cookie","dojo/mouse","dojo/on","dojo/touch","./_dndContainer"],function(_1,_2,_3,_4,_5,_6,_7,_8,on,_9,_a){
return _3("dijit.tree._dndSelector",_a,{co... | niug/DirClia | web/dojo/dijit/tree/_dndSelector.js | JavaScript | mit | 4,729 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 so... | darwin/terraform | src/editor/ace/theme-solarized_dark.js | JavaScript | mit | 4,766 |
var ContactUs = function () {
return {
//main function to initiate the module
init: function () {
var map;
$(document).ready(function(){
map = new GMaps({
div: '#map',
lat: -13.004333,
lng: -38.494333,
});
var marker = map.addMarker({
... | EssamKhaled/es-blog | web/bundles/layout/Frontend/assets/scripts/contact-us.js | JavaScript | mit | 642 |
/*
My Profile link: https://app.roll20.net/users/262130/dxwarlock
GIT link: https://github.com/dxwarlock/Roll20/blob/master/Public/HeathColors
Roll20Link: https://app.roll20.net/forum/post/4630083/script-aura-slash-tint-healthcolor
Last Updated 2/27/2017
*/
/*global createObj getAttrByName spawnFxWithDefinition getObj ... | shdwjk/roll20-api-scripts | HealthColors/1.2.0/HealthColors.js | JavaScript | mit | 23,582 |
describe('paging', function(){
var welcomeHolder = app.PageStore.welcome;
var roomsHolder = app.PageStore.rooms;
beforeEach(function(){
app.PageStore.welcome = welcomeHolder;
app.PageStore.rooms = roomsHolder;
});
it('should have a welcome route that invokes a callback', function(){
var counter... | drabinowitz/Brainstorm | specs/client/PageStoreSpec.js | JavaScript | mit | 1,171 |
/**
*
* Copyright 2005 Sabre Airline Solutions
*
* 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 r... | sgruhier/prototype_window | samples/rico/rico_change.js | JavaScript | mit | 92,933 |
var struct_jmcpp_1_1_group_info_updated_event =
[
[ "fromUser", "struct_jmcpp_1_1_group_info_updated_event.html#a01d445e6f171e3f38103f38d1f82e041", null ],
[ "groupId", "struct_jmcpp_1_1_group_info_updated_event.html#a7775458e8f2504cbdea378e5005a544a", null ],
[ "users", "struct_jmcpp_1_1_group_info_updated... | xiongtiancheng/jpush-docs | zh/jmessage/client/im_win_api_docs/struct_jmcpp_1_1_group_info_updated_event.js | JavaScript | mit | 377 |
define({
"unit": "Jedinica",
"style": "Stil",
"dual": "dvostruki",
"english": "engleski",
"metric": "metrički",
"ruler": "ravnalo",
"line": "linija",
"number": "broj",
"spinnerLabel": "Zaokruži broj mjerila na: ",
"decimalPlace": "decimalno mjesto",
"separator": "Prikaži razdjelnik tisućica"
}); | tmcgee/cmv-wab-widgets | wab/2.15/widgets/Scalebar/setting/nls/hr/strings.js | JavaScript | mit | 322 |
var fs = require('fs');
var path = require('path');
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
main: {
files: [
{src: 'numbro.js', dest: 'dist/numbro.js'},
... | atuttle/numbro | Gruntfile.js | JavaScript | mit | 4,121 |
module.exports={title:"RubyGems",slug:"rubygems",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>RubyGems icon</title><path d="M7.81 7.9l-2.97 2.95 7.19 7.18 2.96-2.95 4.22-4.23-2.96-2.96v-.01H7.8zM12 0L1.53 6v12L12 24l10.47-6V6L12 0zm8.47 16.85L12 21.73l-8.47-4.88V7.12L12 2.24l8.47 4... | cdnjs/cdnjs | ajax/libs/simple-icons/4.16.0/rubygems.min.js | JavaScript | mit | 470 |
/*
Copyright (c) 2007 John Dyer (http://johndyer.name)
MIT style license
*/
if (!window.Refresh) Refresh = {};
if (!Refresh.Web) Refresh.Web = {};
Refresh.Web.ColorValuePicker = Class.create();
Refresh.Web.ColorValuePicker.prototype = {
initialize: function(id) {
this.id = id;
this.onValuesChange... | williamgrosset/OSCAR-ConCert | src/main/webapp/colorpicker/colorvaluepicker.js | JavaScript | gpl-2.0 | 5,774 |
//>>built
define("dijit/nls/da/loading",({loadingState:"Indlæser...",errorState:"Der er opstået en fejl"}));
| hariomkumarmth/champaranexpress | wp-content/plugins/dojo/dijit/nls/da/loading.js | JavaScript | gpl-2.0 | 113 |
OSM.Note = function (map) {
var content = $("#sidebar_content"),
page = {},
halo, currentNote;
var noteIcons = {
"new": L.icon({
iconUrl: OSM.NEW_NOTE_MARKER,
iconSize: [25, 40],
iconAnchor: [12, 40]
}),
"open": L.icon({
iconUrl: OSM.OPEN_NOTE_MARKER,
iconSize:... | tomhughes/openstreetmap-website | app/assets/javascripts/index/note.js | JavaScript | gpl-2.0 | 2,943 |
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'tr',
classNames: ['clickable'],
click() {
this.sendAction('action', this.imaging);
}
});
| tsaron/dariya | app/imaging/index/requested-list-item/component.js | JavaScript | gpl-3.0 | 180 |
import { Type } from 'angular2/src/core/facade/lang';
import { CanActivate } from './lifecycle_annotations_impl';
import { reflector } from 'angular2/src/core/reflection/reflection';
export function hasLifecycleHook(e, type) {
if (!(type instanceof Type))
return false;
return e.name in type.prototype;
}... | NodeVision/NodeVision | node_modules/angular2/es6/prod/src/router/route_lifecycle_reflector.js | JavaScript | gpl-3.0 | 681 |