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"; /*! * OS.js - JavaScript Operating System * * Copyright (c) 2011-2013, Anders Evenrud <andersevenrud@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Red...
yangsheng1/OS.js-v2
src/javascript/gui/checkbox.js
JavaScript
bsd-2-clause
3,311
/* Copyright (C) 2014 Yusuke Suzuki <utatane.tea@gmail.com> Copyright (C) 2019-2020 Apple Inc. 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 th...
estools/escodegen
gulpfile.js
JavaScript
bsd-2-clause
2,662
/* * Copyright (C) <year> <copyright holder> * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ var bcrypt = require("bcrypt-nodejs"); function UsrDAO(client) { "use strict"; this.addUsr = function(usr, ...
anidata/ht-archive
routes/daos/usrdao.js
JavaScript
bsd-2-clause
2,348
module("forge.contact"); if (forge.is.mobile()) { asyncTest("Select all", 1, function() { forge.contact.selectAll(['name'], function (data) { askQuestion("We found "+data.length+" contacts - sound right?", { Yes: function () { var question = "Recognise these? <pre>"; for (var idx=0; idx<Math.min(3,...
kflynn/trigger.io-contact
module/tests/interactive.js
JavaScript
bsd-2-clause
3,043
/** * utils file for ndp-video-spa on 23-Mar-16. */ /** * Created by 206445994 on 16-Feb-16. */ define('configuration-utils-model',['jquery','configuration-object-mapper-model'],function ($, Models) { Date = window.Date; var wait = window.$PAGE_WAIT; function Utils() { Object.defineProperties...
likwidmack/VideoSample
app/scripts/data/utils/utils.js
JavaScript
bsd-2-clause
12,531
const ErrorMessagesComponent = { template: ` <div class="help-block" ng-messages="$ctrl.input.$error" ng-show="$ctrl.input.$touched || $ctrl.form.$submitted"> <span class="error" ng-message="required">This field is required.</span> <span class="error" ng-message="minlength">This field is too short.</span> ...
chriszs/redash
client/app/components/error-messages.js
JavaScript
bsd-2-clause
630
var links = require('./links'); var State = L.Class.extend({ options: { }, initialize: function(map, lrm_control, tools, default_options) { this._lrm = lrm_control; this._map = map; this._tools = tools; this.set(default_options); console.log(this.options); this._lrm.on('routeselected', ...
c0ldice/c0ldice.github.io
src/state.js
JavaScript
bsd-2-clause
1,834
/*! DataTables Foundation integration * ©2011-2015 SpryMedia Ltd - datatables.net/license */ /** * DataTables integration for Foundation. This requires Foundation 5 and * DataTables 1.10 or newer. * * This file sets the defaults and adds options to DataTables to style its * controls using Foundation. See http:/...
ptonini/battuta-manager
battuta/libraries/DataTables-1.10.10/js/dataTables.foundation.js
JavaScript
bsd-2-clause
3,692
/*jslint forin:true sub:true anon:true, sloppy:true, stupid:true nomen:true, node:true continue:true*/ /* * Copyright (c) 2012, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ var log4js = require("log4js"); var Arrow = require("...
yahoo/arrow
lib/session/testsession.js
JavaScript
bsd-3-clause
16,886
/*--------------------------------------------------------------------------- Copyright 2012 Daniel C. Bünzli. All rights reserved. Distributed under a BSD3 license. ---------------------------------------------------------------------------*/ /** The Ui module handles interaction with the DOM */ var Ui = ...
dbuenzli/remat
attic/js/ui.js
JavaScript
bsd-3-clause
10,371
const NorgesGruppen = require('./NorgesGruppen'); function Meny() { Meny.super_.apply(this, arguments); } Meny.super_ = NorgesGruppen; Meny.prototype = Object.create(NorgesGruppen.prototype, { constructor: { value: Meny, enumerable: false, }, }); Meny.prototype.getName = function () { return 'Meny';...
arneke/fetchstores
lib/Meny.js
JavaScript
bsd-3-clause
409
var test = require('tape'); var tilelive = require('tilelive'); var imageEqualsFile = require('./image.js'); var Testsource = require('./testsource'); var xray = require('..').xray; var fs = require('fs'); var UPDATE = process.env.UPDATE; var path = require('path'); // Tilelive test source. tilelive.protocols['test:']...
nyurik/tilelive-vector
test/xray.js
JavaScript
bsd-3-clause
3,888
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails o...
chentsulin/relay
packages/react-relay/classic/legacy/store/__tests__/recycleNodesInto-test.js
JavaScript
bsd-3-clause
8,565
$( document ).ready(function() { var height = $('.qweqwe .owl-wrapper-outer'); var button = $('.show__more'); height.css("height", "1040px"); button.on('click',function(){ height.css("height", "100%"); button.css("display", "none"); }); });
syrexby/repostni
frontend/web/js/advert_right.js
JavaScript
bsd-3-clause
278
var pkg = require('ritp');
JacksonGL/NPM-Vuln-PoC
directory-traversal/ritp/test.js
JavaScript
bsd-3-clause
26
(function() { "use strict"; /* hook up event handlers */ function register_event_handlers() { /* button Button */ $(document).on("click", ".uib_w_1091", function(evt) { activate_subpage("#settingspage"); }); /* button #settingsBut */ $(document).on("cl...
rwedoff/SurveyApp
www/js/index_user_scripts.js
JavaScript
bsd-3-clause
2,437
var EventEmitter = require('events').EventEmitter; var util = require('util'); var dispatcher = require('../dispatcher'); var fb_login = require('./fb_login').fb_login; var post = require('./authedPost'); var puller = require('./puller'); var C = require('../constants'); function Me() { this.user = null; this.logs...
songgao/HalfDomeChallenge
static/js/lib/stores/me.js
JavaScript
bsd-3-clause
3,875
d3 = (function(){ var d3 = {version: "3.1.9"}; // semver
laurihy/hellojs-d3
src/start.js
JavaScript
bsd-3-clause
59
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers...
Profitrol/Cot-freelance
plugins/ckeditor/ckeditor/ckeditor_basic_source.js
JavaScript
bsd-3-clause
1,534
tinyMCE.addI18n('es.advanced',{ style_select:"Estilos", font_size:"Tama\u00F1o", fontdefault:"Fuente", block:"Formato", paragraph:"P\u00E1rrafo", div:"Div", address:"Direcci\u00F3n", pre:"Preformateado", h1:"Encabezado 1", h2:"Encabezado 2", h3:"Encabezado 3", h4:"Encabezado 4", h5:"Encabezado 5", h6:"Enc...
racontemoi/shibuichi
jsparty/tiny_mce2/themes/advanced/langs/es.js
JavaScript
bsd-3-clause
2,231
iris.screen(function(self) { self.create = function() { self.tmpl(iris.path.example_instance_tmpl); self.get("btncreateUI").click(instanceUi); } function instanceUi() { self.ui("container", iris.path.ui_example_basic); self.get("btncreateUI").remove(); } }, iris.path.example_instance);
thegameofcode/iris
examples/basic/app/screen/example_instance.js
JavaScript
bsd-3-clause
300
/* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the Clear BSD license. * See http://svn.openlayers.org/trunk/openlayers/license.txt for the * full text of the license. */ /** * @requires OpenLayers/Format/XML.js * @requires OpenLayers/For...
orfur/GeoExplorer
app/static/externals/openlayers/lib/OpenLayers/Format/CSWGetDomain/v2_0_2.js
JavaScript
bsd-3-clause
8,219
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; /** * Handler of device event. * @constructor */ function DeviceHandler() { /** * Map of device path and mount status of devices. ...
patrickm/chromium.src
chrome/browser/resources/file_manager/background/js/device_handler.js
JavaScript
bsd-3-clause
10,193
/* Flot plugin for selecting regions of a plot. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin supports these options: selection: { mode: null or "x" or "y" or "xy", color: color, shape: "round" or "miter" or "bevel", minSize: number of pixels } Selection supp...
ththao/yii2template
web/admin/plugins/flot/jquery.flot.selection.js
JavaScript
bsd-3-clause
13,130
/* * Copyright 2012-present, Polis Technology Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights for non-commercial use can be found in the PATENTS file * in the sam...
colinmegill/polis-admin-console
src/reducers/seed_comments.js
JavaScript
bsd-3-clause
1,890
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
shergin/react
src/umd/ReactWithAddonsUMDEntry.js
JavaScript
bsd-3-clause
1,112
define(function (require) { var test = require('intern!object'), assert = require('intern/chai!assert'), toMQL = require('intern/dojo/node!../../lib/toMQL'), Query = require('intern/dojo/node!rql/query').Query; test({ name: 'cayley-perstore toMQL', beforeEach: function () { }, 'is a function': functi...
neonstalwart/cayley-perstore
tests/lib/toMQL.js
JavaScript
bsd-3-clause
1,571
/* * Playlist Object for the jPlayer Plugin * http://www.jplayer.org * * Copyright (c) 2009 - 2014 Happyworm Ltd * Licensed under the MIT license. * http://www.opensource.org/licenses/MIT * * Author: Mark J Panaghiston * Version: 2.4.0 * Date: 1st September 2014 * * Requires: * - jQuery 1.7.0...
landasystems/tamanharapan
frontend/web/tamanharapan/js/audioplayer/js/jplayer.playlist.min.js
JavaScript
bsd-3-clause
9,189
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ /* More information about these options at jshint.com/docs/options */ /* globals displayError, ...
behramcelen/Shuffle-Chat-with-WebRTC
samples/web/content/apprtc/js/sdputils.js
JavaScript
bsd-3-clause
8,245
var assert = require('assert'); var adapter = require('../index.js'); var config = require('./support/config.js'); var makeSlowQuery = require('./support/makeSlowQuery.js'); var ConnectionPool = false; try { ConnectionPool = require('any-db-pool'); } catch (e) { ConnectionPool = false; } var delaySeconds = 2; var ...
Hypermediaisobar-admin/node-any-db-mssql
test/pool.js
JavaScript
bsd-3-clause
3,537
/** * Item for rendering service data (such as Dropbox, GDrive, etc) * * - It doesn't need any new paramater or option, just the model * to render. * * new cdb.admin.ImportServiceItem() */ cdb.admin.ImportServiceItem = cdb.core.View.extend({ tagName: 'li', events: { '...
raquel-ucl/cartodb
lib/assets/javascripts/cartodb/old_common/import/service/service_item.js
JavaScript
bsd-3-clause
786
//>>built define("dojo/cldr/nls/ja/roc",{eraAbbr:["\u6c11\u56fd\u524d","\u6c11\u56fd"]}); //@ sourceMappingURL=roc.js.map
xblox/control-freak
Code/client/src/xfile/dojo/cldr/nls/ja/roc.js
JavaScript
bsd-3-clause
121
/* * jQuery dragscrollable Plugin * version: 1.0 (25-Jun-2009) * Copyright (c) 2009 Miquel Herrera * * Portions Copyright (c) 2010 Reg Braithwaite * Copyright (c) 2010 Internet Archive / Michael Ang * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-l...
ExLibrisGroup/Rosetta.IABookReader
web/BookReader/dragscrollable.js
JavaScript
bsd-3-clause
8,361
/*! * * * Part of the Antares Project package. * * * * NOTICE OF LICENSE * * * * Licensed under the 3-clause BSD License. * * * * This source file is subject to the 3-clause BSD License that is * * bundled with this package in the LICENSE file. * * * * @package Global * * @version 0.9.2 *...
antaresproject/project
public/_dist/js/filters.js
JavaScript
bsd-3-clause
21,336
var Board = initBoard(); var Score = initScore(initBoard); var $Board = init$Board(); var $Pass = init$Pass(); var $Status = init$Status(); var $Score = init$Score(); var GameController = initGameController(); var Client = initClient(initWSClient, initWebRTCClient); var coordinates2command = function(color, coordinate...
rbelouin/go.js
src/main.js
JavaScript
bsd-3-clause
2,474
'use strict'; console.log("Welcome to the", console); // An example of how we can script state changing, and through this send notifications to sockets // We should probably have a slightly easier way to look up state changes, and only apply them if // needed. But there's a lot to be said for using JS, as it allows ...
pughlab/tracker
src/test/resources/tracker.js
JavaScript
bsd-3-clause
2,418
import {PropTypes} from 'react'; import styled, {css} from 'styled-components'; const Alert = styled.div` color: #fff; padding: 10px 20px; margin: 0 0 20px; background-color: ${(props) => props.theme.gray3}; border-radius: 4px; ${(props) => { switch (props.type) { case 'error': return cs...
changepane/changepane
src/components/Alert.js
JavaScript
bsd-3-clause
917
var searchData= [ ['gl2dbacteriumrenderer',['GL2DBacteriumRenderer',['../class_cell_modeller_1_1_g_u_i_1_1_renderers_1_1_g_l2_d_bacterium_renderer.html',1,'CellModeller::GUI::Renderers']]], ['glbacteriumrenderer',['GLBacteriumRenderer',['../class_cell_modeller_1_1_g_u_i_1_1_renderers_1_1_g_l_bacterium_renderer.html...
pakpoomton/CellmodellerShadow
html/search/classes_1.js
JavaScript
bsd-3-clause
1,448
var dl = require('datalib'), d3 = require('d3'), d3_cloud = require('d3-cloud'), canvas = require('vega-scenegraph').canvas, Tuple = require('vega-dataflow/src/Tuple'), log = require('vega-logging'), Transform = require('./Transform'), BatchTransform = require('./BatchTransform'); function ...
mcanthony/vega
src/transforms/Wordcloud.js
JavaScript
bsd-3-clause
6,402
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @noflow */ 'use strict'; /** * Ensure a vanilla package.json before deploying so other tools do not * interpret the built output a...
enaqx/graphql-js
resources/copy-package-json.js
JavaScript
bsd-3-clause
981
import React from 'react'; import ReactTable from 'react-table'; import 'react-table/react-table.css'; import Checkbox from 'widgets/checkbox'; export default class CheckboxTable extends React.Component { constructor(props) { super(props); this.visible = []; this.state = { checked: new Set...
jotes/pontoon
pontoon/static/js/widgets/tables/checkbox.js
JavaScript
bsd-3-clause
4,963
import {daysToMonths, monthsToDays} from './bubble'; import {normalizeUnits} from '../units/aliases'; import toInt from '../utils/to-int'; export function as(units) { if (!this.isValid()) { return NaN; } var days; var months; var milliseconds = this._milliseconds; units = normalizeUnit...
hieupham0206/yii-cloudteam-app
vendor/bower/moment/src/lib/duration/as.js
JavaScript
bsd-3-clause
2,067
/*globals describe,it,beforeEach */ "use strict"; require('node-jsx').install({ extension: '.jsx' }); var path = require('path'); var expect = require('chai').expect; var Component = require('../../fixtures/applications/basic/components/Application.jsx'); var Fluxible = require('../../../'); describe('Fluxible', func...
ali1k/fluxible
tests/unit/lib/Fluxible.js
JavaScript
bsd-3-clause
4,808
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2014 pimcore GmbH (http://www.pimcore...
ChristianBre/pimcore
pimcore/static5/js/pimcore/layout/portal.js
JavaScript
bsd-3-clause
6,751
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
rosskevin/relay
packages/relay-compiler/util/RelayCompilerCache.js
JavaScript
bsd-3-clause
1,693
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactWidgets/CompositePipelineWidget.mcss'; import ChildItem from './ChildItem'; /** * This React component expect the following input properties: * - model: * Expect a LokkupTable instance that you want to render a...
Kitware/paraviewweb
src/React/Widgets/CompositePipelineWidget/RootItem.js
JavaScript
bsd-3-clause
4,243
var searchData= [ ['kinovaangles',['KinovaAngles',['../classkinova_1_1_kinova_angles.html',1,'kinova']]], ['kinovaapi',['KinovaAPI',['../classkinova_1_1_kinova_a_p_i.html',1,'kinova']]], ['kinovacomm',['KinovaComm',['../classkinova_1_1_kinova_comm.html',1,'kinova']]], ['kinovacommexception',['KinovaCommExceptio...
Kinovarobotics/kinova-ros
kinova_docs/kinova_comm/html/search/classes_1.js
JavaScript
bsd-3-clause
572
/** * +--------------------------------------------------------------------+ * | This HTML_CodeSniffer file is Copyright (c) | * | Squiz Australia Pty Ltd ABN 53 131 581 247 | * +--------------------------------------------------------------------+ * | IMPORTANT: Your...
burnworks/HTML_CodeSniffer-ja
Standards/Section508/Sniffs/D.js
JavaScript
bsd-3-clause
5,506
$module('loop', function () { var $static = this; $static.DoSomething = function () { var $current = 0; syncloop: while (true) { switch ($current) { case 0: $t.fastbox(1234, $g.________testlib.basictypes.Integer); $current = 1; continue syncloop; case 1: ...
Serulian/compiler
generator/es5/tests/statements/loop.js
JavaScript
bsd-3-clause
499
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2014 pimcore GmbH (http://www.pimcore...
daaquan/pimcore
pimcore/static6/js/pimcore/object/classes/data/structuredTable.js
JavaScript
bsd-3-clause
9,012
$(document).ready(function(){ // }); function welcomeVisible() { if ( $(".or-wrapper").hasClass("internal-page") ) { setTimeout(function() { $(".start-welcome").addClass("animate-active") }, 200); setTimeout(function() { $(".or-wrapper").addClass("wr-activate") }, 200); setTimeout(...
zserg84/webteam
prj/orange/scripts/configuration.js
JavaScript
bsd-3-clause
6,190
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"bokeh-magma-7","name":"bokeh-magma-7-1","rgb":[0,0,3]},{"group":"bokeh-magma-7","name":"bokeh-magma-7-2","rgb":[43,17,94]},{"gro...
netbek/chrys
illustrator/bokeh-magma-7.js
JavaScript
bsd-3-clause
14,121
/** * Example 05 - How to retrieve your payments history. */ const express = require('express'); const { createMollieClient } = require('@mollie/api-client'); const app = express(); const mollieClient = createMollieClient({ apiKey: 'test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM' }); app.get('/', (req, res) => { let paymen...
mollie/mollie-api-node
examples/with-express/05-payments-history.js
JavaScript
bsd-3-clause
1,367
app.controller('fieldController',function($scope,httpService,$state,$stateParams){ if($state.is('field-add')){ $scope.crop ={"selected":null}; $scope.field = {}; $scope.setFormScope = function(scope){ this.formScope = scope; } $scope.field.start_date = null; $scope.field.irrigation_day = ""; ...
ehtesham/agro-project
public/app/controllers/fieldController.js
JavaScript
bsd-3-clause
2,233
var ydm = require('../../ydm') , path = require('path') , fs = require('fs') , logger = require('winston') module.exports = function(req, res, next) { var filePath = path.join(ydm.dropsPath, req.params.name+'.js') fs.writeFile(filePath, req.body, function(err) { if (err) { logger.error(err.stack) ...
kfatehi/ydm-api
src/server/middleware/create.js
JavaScript
isc
464
module.exports = function (app,io,jwt) { io.on('connection', function(socket) { socket.auth = false; socket.on('authenticate', function(data){ var user = jwt.decode(data.token, app.get('superSecret')); app.get('connections')[user._id] = socket; socket.auth = t...
humornetworking/expl-V2
server/util/socket.js
JavaScript
mit
353
module.exports = { FlatWaterRenderer: require('./FlatWaterRenderer'), ProjectedGrid: require('./ProjectedGrid'), ProjectedGridWaterRenderer: require('./ProjectedGridWaterRenderer') }; if (typeof(window) !== 'undefined') { for (var key in module.exports) { window.goo[key] = module.exports[key]; } }
GooTechnologies/goojs
src/goo/addons/waterpack/index.js
JavaScript
mit
305
import * as assert from 'assert'; import {qw, qwm} from '../src/js-utils'; describe('qw', () => { it('simple', () => { const qwRes = qw(` str1 123 str2 str3\nstr4\tstr5 `); assert.deepEqual(qwRes, ['str1', '123', 'str2', 'str3', 'str4', 'str5']); }); it('empty', () => { const qwRes = qw(` `); a...
js-utils/js-utils
test/qw.js
JavaScript
mit
665
Clazz.declarePackage ("JS"); Clazz.load (null, "JS.ScriptExt", ["JU.AU"], function () { c$ = Clazz.decorateAsClass (function () { this.vwr = null; this.e = null; this.chk = false; this.st = null; this.slen = 0; Clazz.instantialize (this, arguments); }, JS, "ScriptExt"); Clazz.defineMethod (c$, "init", funct...
sxhexe/reaction-route-search
reactionroute_web/reaction/static/j2s/JS/ScriptExt.js
JavaScript
mit
5,041
(function($, cornerstone, cornerstoneTools) { 'use strict'; function multiTouchDragTool(touchDragCallback, options) { var configuration = {}; var events = 'CornerstoneToolsMultiTouchDrag'; if (options && options.fireOnTouchStart === true) { events += ' CornerstoneToolsMulti...
swederik/cornerstoneTools
src/imageTools/multiTouchDragTool.js
JavaScript
mit
1,973
export { browserActions } from './actions'; export { browserReducer } from './reducer'; export { browserSagas } from './sagas'; export { getBrowserMedia } from './selectors'; export { infiniteScroll } from './scroll/infinite-scroll';
zerubeus/sawt
src/core/browser/index.js
JavaScript
mit
235
import test from 'ava'; test('test.js', t => { t.pass(); });
sindresorhus/ava
test/globs/fixtures/treat-patterns-as-files/test.js
JavaScript
mit
63
var kunstmaanbundles = kunstmaanbundles || {}; kunstmaanbundles.mediaChooser = (function(window, undefined) { var init, initDelBtn; var $body = $('body'); init = function() { // Save and update preview can be found in url-chooser.js initDelBtn(); }; // Del btn initDelBtn = ...
jverdeyen-forks/KunstmaanBundlesCMS
src/Kunstmaan/AdminBundle/Resources/ui/js/_media-chooser.js
JavaScript
mit
757
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
bengimbel/Solstice-React-Contacts-Project
node_modules/react-icons/lib/md/crop-16-9.js
JavaScript
mit
1,161
/*! * jQuery Simulate v0.0.1 - simulate browser mouse and keyboard events * https://github.com/jquery/jquery-simulate * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Sun Dec 9 12:15:33 2012 -0500 */ ;(function( $, undefined )...
sbreslav/mimic
web/static/js/lib/jquery.simulate.dandd.js
JavaScript
mit
9,422
function s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); } function guid() { return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); }
palavatv/palava-portal
source/assets/js/lib/uuid.js
JavaScript
mit
199
this.define([ 'scaffolding', 'strongforce', 'models/Hexagon', 'models/HexCell' ], function(S, strongforce) { 'use strict'; var Model = strongforce.Model, selectDirection; selectDirection = { N: function(cellId) { return [ cellId[0] - 2, cellId[1] ]; }, NE: f...
lodr/strongforce
demo/scripts/models/Neighborhood.js
JavaScript
mit
1,948
// req: glMatrix T5.Registry.register('renderer', 'webgl', function(view, panFrame, container, params, baseRenderer) { params = cog.extend({ }, params); /* some shaders */ var DEFAULT_SHADER_FRAGMENT = [ '#ifdef GL_ES', 'precision highp float;', '#endif', ...
DamonOehlman/tile5
src/plugins/renderer.webgl.js
JavaScript
mit
10,926
import Ember from 'ember'; import FilterContent from 'ember-cli-filter-component/components/filter-content'; export default FilterContent;
kscherling/ember-cli-filter-component
app/components/filter-content.js
JavaScript
mit
139
$(function() { var sidebarId = '#sidebar', $sidebar = $(sidebarId), $sidenav = $sidebar.children('.nav'); // Call the ScrollSpy plugin which is for automatically // updating nav targets based on scroll position. $('body').scrollspy({ target: sidebarId }); /** * Kee...
amchicas/CodeIgniter-Skeleton
assets/js/modules/skeleton.js
JavaScript
mit
4,252
import React from 'react' import Icon from 'react-icon-base' const FaComments = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.4 17.1q0 3.1-2.1 5.8t-5.7 4.1-7.9 1.6q-1.9 0-3.9-0.4-2.8 2-6.2 2.9-0.8 0.2-1.9 0.3h-0.1q-0.3 0-0.5-0.2t-0.2-0.4q0-0.1 0-0.2t0-0.1 0-0.1l0.1-0.2 0-0.1 0.1-0.1 0.1...
bengimbel/Solstice-React-Contacts-Project
node_modules/react-icons/fa/comments.js
JavaScript
mit
816
/* AngularJS v1.2.24-build.438+sha.992101d (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(n,e,A){'use strict';function x(s,g,h){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,c,b,f,w){function y(){p&&(p.remove(),p=null);k&&(k.$destroy(),k=null);l&&(h.le...
aadarsh-shetty/EnglishPremierLeagueGeekFantasy
app/bower_components/angular-route/angular-route.min.js
JavaScript
mit
3,908
// Utility funcitons module.exports = {};
evanlask/aframe-chroma-key
gulp/utils.js
JavaScript
mit
42
module.exports = (gulp, plugins, utilities) => { return () => gulp.src(utilities.paths.BUILD_FOLDER, {read: false}).pipe(plugins.clean()); };
ebello/generator-wintersmith-perf
tasks/clean.js
JavaScript
mit
146
function js() { console.log("js/file.js should have tab width 8"); }
azz/prettier
tests_integration/cli/config/js/file.js
JavaScript
mit
71
(function() { "use strict"; // Place page specific javascript here })();
nodes-vapor/sandbox
Resources/Assets/Js/Pages/example.js
JavaScript
mit
74
module.exports = function (d) { if(!d)return null; var ds = ''; var f = function(name,o) { for(var i in o){ var v = o[i]; if((typeof v)==='object'){ f(i,v); }else{ ds +=(name+'.'+i+'='+(v?v:'')+'&'); } } } ...
lijianhu1/japi
node/plugins/form.js
JavaScript
mit
497
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports['default'] = { // Options.jsx items_per_page: '/ صفحه', jump_to: 'برو به', jump_to_confirm: 'تایید', page: '', // Pagination.jsx prev_page: 'صفحه قبلی', next_page: 'صفحه بعدی', prev_5: '۵ صفحه قبلی', next_5: '۵ ...
ligangwolai/blog
node_modules/_rc-pagination@1.12.9@rc-pagination/lib/locale/fa_IR.js
JavaScript
mit
486
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'preview', 'ro', { preview: 'Previzualizare' } );
waxe/waxe.xml
waxe/xml/static/ckeditor/plugins/preview/lang/ro.js
JavaScript
mit
230
define({ "settingsHeader": "지오룩업 위젯에 대한 세부정보 설정", "settingsDesc": "맵의 폴리곤 레이어에 대해 CSV 파일에서 위치 목록을 보강합니다. 폴리곤 레이어에서 선택한 필드가 위치에 추가됩니다.", "settingsLoadingLayers": "레이어를 불러오는 동안 기다려 주세요.", "settingsConfigureTitle": "레이어 필드 구성", "layerTable": { "colEnrich": "보강", "colLabel": "레이어", "colFieldSelector":...
cmccullough2/cmv-wab-widgets
wab/2.3/widgets/GeoLookup/setting/nls/ko/strings.js
JavaScript
mit
2,116
"use strict"; var cache = {}, fs = require('fs'), path = require('path'), vm = require('vm'); module.exports = function (file, mocks, context) { var script; mocks = mocks || {}; context = context || {}; file = path.join(path.dirname(module.parent.filename), file); cache[file] = cache[f...
nathanmacinnes/injectr
lib/injectr.js
JavaScript
mit
1,088
export const APPEND_FILES = "APPEND_FILES"; export const APPEND_OBS_CARDS = "APPEND_OBS_CARDS"; export const APPEND_TO_SELECTED_OBS_CARDS = "APPEND_TO_SELECTED_OBS_CARDS"; export const CREATE_BLANK_OBS_CARD = "CREATE_BLANK_OBS_CARD"; export const DRAG = "DRAG"; export const INSERT_CARDS_BEFORE = "INSERT_CARDS_BEFORE"; ...
pleary/inaturalist
app/webpack/observations/uploader/constants/constants.js
JavaScript
mit
988
// Testing the main file describe(".closest(selector)", function() { afterEach(function(){ // A previous bug that would change the inner of the original reference expect(base.length).to.equal(1); }); it("should be a function", function() { expect(typeof base.closest).to.equal('function'); }); i...
umbrellajs/umbrella
src/plugins/closest/test.js
JavaScript
mit
552
'use strict' const {BrowserWindow, MenuItem, webContents} = require('electron') const EventEmitter = require('events').EventEmitter const v8Util = process.atomBinding('v8_util') const bindings = process.atomBinding('menu') // Automatically generated radio menu item's group id. var nextGroupId = 0 // Search between s...
brave/electron
lib/browser/api/menu.js
JavaScript
mit
9,767
/* global device: false */ /* global PushNotification: false */ var getService = function() { if (/android/i.test(device.platform)) { return 'gcm'; } else if (/ios/i.test(device.platform)) { return 'apn'; } else if (/win/i.test(device.platform)) { return 'mpns'; } return 'unknown'; }; /** * htt...
RocketChat/push
lib/client/cordova.js
JavaScript
mit
4,500
var searchData= [ ['randomdouble',['randomDouble',['../namespace_num_utils.html#a402b26db626888d32e79bfab0e6ba5c2',1,'NumUtils']]], ['randomint',['randomInt',['../namespace_num_utils.html#abb2bad9628db7cd63498680a6f84e13c',1,'NumUtils']]], ['read_5fkernels_5ffrom_5ffile',['read_kernels_from_file',['../class_c_l_h...
spg63/cppcommon
docs/search/functions_e.js
JavaScript
mit
1,080
export const message = "Hello Chunk";
webpack/webpack
test/statsCases/output-module/chunk.js
JavaScript
mit
38
/*! DataTables Foundation integration ©2011-2014 SpryMedia Ltd - datatables.net/license */ (function(){var d=function(e,f){e.extend(f.ext.classes,{sWrapper:"dataTables_wrapper dt-foundation",sProcessing:"dataTables_processing panel"});e.extend(!0,f.defaults,{dom:"<'row'<'small-6 columns'l><'small-6 columns'f>r>t<'row...
montrothstein/DataTables
media/js/dataTables.foundation.min.js
JavaScript
mit
1,582
/* global Restivus */ class API extends Restivus { constructor(properties) { super(properties); this.logger = new Logger(`API ${properties.version ? properties.version : 'default'} Logger`, {}); this.authMethods = []; this.helperMethods = new Map(); this.defaultFieldsToExclude = { joinCode: 0, $loki: 0...
NMandapaty/Rocket.Chat
packages/rocketchat-api/server/api.js
JavaScript
mit
3,529
import faker from 'faker' import React from 'react' import CardHeader from 'src/views/Card/CardHeader' import * as common from 'test/specs/commonTests' describe('CardHeader', () => { common.isConformant(CardHeader) common.rendersChildren(CardHeader) describe('description prop', () => { it('renders child te...
aabustamante/Semantic-UI-React
test/specs/views/Card/CardHeader-test.js
JavaScript
mit
470
/* @flow */ const entries = require('lodash/entries'); module.exports = getDependencyRegistry; function getDependencyRegistry(file: File, seed: DependencyRegistry = {}): DependencyRegistry { // eslint-disable-line no-use-before-define return entries(file.dependencies || {}) .reduce((registry, entry) => { const...
Fahrradflucht/patternplate-transform-browserify
source/create-bundler/get-dependency-registry.js
JavaScript
mit
703
(function(win) { var dataType = { form: getFormData, json: getJsonData, data: getData }; function genUId() { var date = new Date().getTime(); var uuid = 'xxxxxx4xxxyxxxxxxx'.replace(/[xy]/g, function(c) { var r = (date + Math.random() * 16) % 16 | 0; date = Math.floor(date / 16); return (c == 'x...
rongcloud/websdk-demo
integrate/message/upload/upload.js
JavaScript
mit
5,099
/*! WOW - v1.1.2 - 2015-08-19 * Copyright (c) 2015 Matthieu Aussaguel; Licensed MIT */ (function() { var a, b, c, d, e, f = function(a, b) { return function() { return a.apply(b, arguments) } }, g = [].indexOf || function(a) { for (var b = 0, c = this.length; c > b; ...
TindleWei/WeiBlog
assets/js/wow.min.js
JavaScript
mit
11,140
// Easy Responsive Tabs Plugin // Author: Samson.Onna <Email : samson3d@gmail.com> (function ($) { $.fn.extend({ easyResponsiveTabs: function (options) { //Set the default values, use comma to separate the settings, example: var defaults = { type: 'default', //default...
pynef/turismo
mobile/static/js/easyResponsiveTabs.js
JavaScript
mit
5,716
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import {combineReducers} from 'redux'; im...
kreta/kreta
CompositeUi/src/Reducers.js
JavaScript
mit
1,049
import PolicyBase from './policy_base' export default class <%= policy_class_name %> extends PolicyBase { constructor(user, record = null) { super(user, record) } index() { // return false } show() { // return false } create() { // return false } update() { // return false }...
FunnyQ/espresso_martini
lib/generators/espresso/vue/policy/templates/policies/policy_template.js
JavaScript
mit
362
//>>built define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/connect","dojo/_base/fx","./AnalogIndicatorBase"],function(k,l,m,n,p){return k("dojox.gauges.AnalogArcIndicator",[p],{_createArc:function(e){if(this.shape){var d=this._gauge._mod360(this._gauge.startAngle),a=this._gauge._getRadians(this._gauge._getAng...
ycabon/presentations
2020-devsummit/arcgis-js-api-road-ahead/js-api/dojox/gauges/AnalogArcIndicator.js
JavaScript
mit
1,735
var cluster = require('cluster'); exports.Runner = function (req, res) { console.log('req.originalUrl :', req.originalUrl); console.log('req.baseUrl :', req.baseUrl); console.log('req.protocol :', req.protocol); console.log('req.hostname :', req.hostname); console.log('req.query :', req.que...
wanglei8381/interface
examples/message_service/msg/interfaces/app/app.js
JavaScript
mit
866
describe("HelloKitty", function() { var helloKitty , goodPicture = "hk_good.gif" , badPicture = "hk_bad.gif" , deadPicture = "hk_dead.png"; beforeEach(function() { helloKitty = new HelloKitty(); }); it("must have a Tamagocci as Prototype", function() { // Then ...
sheplu/Tamagocci.js-Base-3
spec/hellokitty-spec.js
JavaScript
mit
1,455
//>>built define("dojo/_base/lang dojo/_base/declare dojo/_base/Color ../utils ../../RectangularGauge ../../LinearScaler ../../RectangularScale ../../RectangularValueIndicator ../../RectangularRangeIndicator ../../TextIndicator ../DefaultPropertiesMixin".split(" "),function(f,l,k,a,m,n,p,q,u,r,t){return l("dojox.dgauge...
ycabon/presentations
2020-devsummit/arcgis-js-api-road-ahead/js-api/dojox/dgauges/components/default/VerticalLinearGauge.js
JavaScript
mit
2,588