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
requirejs(['jquery', 'util', 'datatables', 'pagination', 'baiduTemplate'], function ($, util, dataTables, pagination, baiduTemplate) { $(function () { var param = { gid: $('#gid').val(), page: 0 } if (parent.frameOnload !== undefined) { parent.frameOnl...
chenyongze/iwshop
static/script/Wdmin/customers/iframe_list_customer.js
JavaScript
apache-2.0
1,322
// Copyright 2022 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleapis/nodejs-automl
samples/generated/v1beta1/auto_ml.get_model.js
JavaScript
apache-2.0
1,651
angular.module('manager.filters',[]) .filter('containerstatus',['ContainerStatus', function(ContainerStatus) { return function(element,type) { var res; switch (type) { case "status": res = ContainerStatus.get(element).status; ...
nathanIL/docker-manager
static/application/shared/filters.js
JavaScript
apache-2.0
1,471
// Copyright 2015 the V8 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. (function(global, utils) { "use strict"; %CheckIsBootstrapping(); // ------------------------------------------------------------------- // Imports ...
dreamllq/node
deps/v8/src/harmony-atomics.js
JavaScript
apache-2.0
5,763
import { CommonModule } from "@angular/common"; import { FormsModule } from "@angular/forms"; import { NgModule } from "@angular/core"; import { MyDatePicker } from "./datepickerComponent"; import { FocusDirective } from "./directives/datepickerFocusDirective"; import { InputAutoFillDirective } from "./directives/datep...
mayuranjan/the-hawker-front-end
src/app/angular-bootstrap-md/pro/date-picker/datepickerModule.js
JavaScript
apache-2.0
910
module.exports = [{"isClass":true,"priority":10000.0072,"key":"container","style":{}}];
MrOctober/DCOA-Demo
Resources/mobileweb/alloy/styles/website.js
JavaScript
apache-2.0
87
var a01313 = [ [ "FPCUTPT", "a04778.html", "a04778" ], [ "check_pitch_sync2", "a01313.html#a3e20de9a4ced394798b92a2edcba2313", null ], [ "check_pitch_sync3", "a01313.html#a40cc2d2a65d895b7ea644c293605ffb2", null ] ];
stweil/tesseract-ocr.github.io
4.0.0-beta.1/a01313.js
JavaScript
apache-2.0
228
/*! * ${copyright} */ // Provides control sap.uxap.ObjectPageSectionBase. sap.ui.define(["jquery.sap.global", "sap/ui/core/Control", "sap/ui/core/library", "./library", "jquery.sap.keycodes"], function (jQuery, Control, coreLibrary, library) { "use strict"; // shortcut for sap.ui.core.TitleLevel var TitleLevel =...
cschuff/openui5
src/sap.uxap/src/sap/uxap/ObjectPageSectionBase.js
JavaScript
apache-2.0
17,137
/*! MessJS | mess.pagination.js | 0.1.0 | ajax工具类 | by wukong(wukonggg@139.com) */ /** 依赖:raw.util.js - raw.util.string */ window.mess = window.mess || {}; window.mess.error = window.mess.error || {}; window.mess.error.type = window.mess.error.type || {}; window.mess.error.type.danger = "mz-alert-danger"; /** * 从re...
wukonggg/mz-g
src/main/webapp/assets/js/mess.error.js
JavaScript
apache-2.0
1,311
const path = require('path'); const webpack = require('webpack'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const config = { context: path.resolve(__dirname, 'src'), entry: { main: './index.js', }, output: { path: path.resolve(__dirname, 'd...
appbaseio/reactivesearch
site/webpack.config.js
JavaScript
apache-2.0
1,272
'use strict'; System.register(['source-map-support/register', 'babel-polyfill', './base', './configuration'], function (_export, _context) { return { setters: [function (_sourceMapSupportRegister) {}, function (_babelPolyfill) {}, function (_base) { var _exportObj = {}; _exportObj.Base = _base.Base; ...
NOD-studios/base
dist/systemjs/index.js
JavaScript
apache-2.0
752
$(function(){ console.log('hola desde cont val cotiza'); /* //------------------------------------------------------------------------------ var tipo_user = $("#tipo_user").val(); var cedula = $("#cedula_user").val(); var id_user = $("#id_cliente").val(); //-----------------------------------------------------...
jsmorales/brick_web
js/scripts_cont/cont_cotizacion_val.js
JavaScript
apache-2.0
1,796
/* * Copyright 2015-present Open Networking 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 appli...
osinstom/onos
web/gui/src/main/webapp/app/view/device/device.js
JavaScript
apache-2.0
10,248
exports.definition = { config : { "columns" : { name : 'TEXT', nickname : 'TEXT', // column values can have types with keywords fighterId : 'TEXT PRIMARY KEY' }, "adapter" : { "type" : "sql_new", // The table name inside the sqlite database to use for // models and collections based on this de...
aaronksaunders/ci.behave.test
app/models/stuff.js
JavaScript
apache-2.0
955
'use strict'; const express = require('abacus-express'); const request = require('abacus-request'); const router = require('..'); /* jshint noyield: true */ describe('abacus-router exceptions', () => { let exit; let app; let routes; beforeEach(() => { exit = process.exit; process.exit = spy(); ...
cloudfoundry-incubator/cf-abacus
lib/utils/router/src/test/exceptions-test.js
JavaScript
apache-2.0
1,887
/* * Sinh.js - include file for normalization data for a particular script * * Copyright © 2013-2018, 2020-2021 JEDLSoft * * 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...
iLib-js/iLib
js/lib/nfd/Sinh.js
JavaScript
apache-2.0
794
// our monkey patches to Function, properly namespaced. /* bind the context and return a lambda */ Function.prototype.hjq_bind = function(context) { var that=this; return function() { return that.apply(context, arguments); } }; /* return a lambda that calls "this" and then calls "f". Depending on...
raygao/SFRWatcher
vendor/plugins/hobo-jquery/public/javascripts/hobo-jquery.js
JavaScript
apache-2.0
17,734
//>>built define("dojox/json/query",["dojo/_base/kernel","dojo/_base/lang","dojox","dojo/_base/array"],function(m,l,h){l.getObject("json",!0,h);h.json._slice=function(b,c,e,f){var a=b.length,d=[];e=e||a;c=0>c?Math.max(0,c+a):Math.min(a,c);for(e=0>e?Math.max(0,e+a):Math.min(a,e);c<e;c+=f)d.push(b[c]);return d};h.json._f...
Caspar12/zh.sw
zh.web.site.admin/src/main/resources/static/js/dojo/dojox/json/query.js
JavaScript
apache-2.0
3,102
/** * @author alteredq / http://alteredqualia.com/ * @author mr.doob / http://mrdoob.com/ */ Detector = { canvas : !! window.CanvasRenderingContext2D, webgl : ( function () { try { return !! window.WebGLRenderingContext && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { r...
NeftaliYagua/neftaliyagua.github.io
js/Detector.js
JavaScript
apache-2.0
1,496
var ui = 'app/ui/'; var components = 'app/ui/components/'; var o = { //App components APPWINDOW: ui + 'AppWindow', INDEXVIEW: ui + 'IndexView', INDEXROWVIEW: ui + 'IndexRowView', DEMOWIN: ui + 'DemoWin', TEMPLATEDEMO: ui + 'TemplateDemoView', //Others TOOLS: 'app/Tools', STYLES: ui + 'Styles', //Demos ...
jaraen/TitanTricksMobileWeb
Resources/ModulePaths.js
JavaScript
apache-2.0
852
/** @Name:layer v3.1.0 Web弹层组件 @Author:贤心 @Site:http://layer.layui.com @License:MIT */ ;!function(window, undefined){ "use strict"; var isLayui = window.layui && layui.define, $, win, ready = { getPath: function(){ var js = document.scripts, script = js[js.length - 1], jsPath = script.src; if(sc...
lcg0124/bootdo
bootdo/src/main/resources/static/js/lay/modules/layer.js
JavaScript
apache-2.0
39,208
'use strict'; define(['jquery', 'backbone', 'template'], function($, Backbone, Template) { return Backbone.View.extend({ el: '#widget-creative', /** * @var data */ storyline: null, /** * @var template */ template: Template['app/template/creative.hbs'], /** * Set t...
jrcryer/newshack
public/js/newshack/view/creative.js
JavaScript
apache-2.0
561
/*! * utility - lib/number.js * * Copyright(c) 2012 - 2014 fengmk2 <fengmk2@gmail.com> * MIT Licensed */ "use strict"; // http://www.2ality.com/2013/10/safe-integers.html // http://es6.ruanyifeng.com/#docs/number exports.MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; exports.MIN_SAFE_INTEGER ...
WebDeltaSync/WebR2sync_plus
node_modules/ali-oss/node_modules/utility/lib/number.js
JavaScript
apache-2.0
1,899
/* * Copyright (C) 2014 FIZ Karlsruhe * * 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 agr...
Deutsche-Digitale-Bibliothek/apd
web-app/js/search/stateManager.js
JavaScript
apache-2.0
15,655
let mongoose = require('mongoose'); let User = require('../backEnd/models/user.js'); // Connect to the db mongoose.connect("mongodb://localhost:33333"); // create a new user let newUser = User({ name: 'Root', email: 'root@root.com', password: 'secret', }); // save the user newUser.save(function (err) { ...
kopecmartin/IoTRegistryPortal
src/scripts/initiateMongoDB.js
JavaScript
apache-2.0
522
const assert = require('assert'); const withV4 = require('../support/withV4'); const BucketUtility = require('../../lib/utility/bucket-util'); const bucket = 'functestabortmultipart'; const key = 'key'; const itSkipIfAWS = process.env.AWS_ON_AIR ? it.skip : it; const westLocation = 'scality-us-west-1'; const eastLo...
tomateos/S3
tests/functional/aws-node-sdk/test/object/deleteMpu.js
JavaScript
apache-2.0
4,317
// ECMAScript 5 strict mode "use strict"; assert2(cr, "cr namespace not created"); assert2(cr.plugins_, "cr.plugins_ not created"); ///////////////////////////////////// // Plugin class cr.plugins_.Rex_tmx_importer_v2 = function(runtime) { this.runtime = runtime; }; (function () { var pluginProto = cr.plugins_.Re...
jasonshortphd/construct2games
plugins/plugins/rex_tmx_importer_v2/runtime.js
JavaScript
apache-2.0
38,911
"use strict"; var core_1 = require('angular2/core'); var compiler_1 = require('angular2/compiler'); var browser_common_1 = require('angular2/src/platform/browser_common'); var browser_adapter_1 = require('angular2/src/platform/browser/browser_adapter'); var animation_builder_1 = require('angular2/src/animate/animation_...
tzerb/Learning
WebApplication3/src/WebApplication3/jspm_packages/npm/dist/js/cjs/platform/testing/browser_static.js
JavaScript
apache-2.0
2,738
// @ts-check import path from "path"; import parser from "swagger-parser"; import yaml from "js-yaml"; import resolveAllOf from "json-schema-resolve-allof"; import contentful from "contentful"; import fs from "mz/fs"; import globby from "globby"; import contentfulpagifier from "./metalsmith/utils/contentfulpa...
saasquatch/saasquatch-docs
static.config.js
JavaScript
apache-2.0
12,450
'use strict'; // 获取全局应用程序实例对象 var app = getApp(); var useUrl = require('../../utils/service'); // 创建页面实例对象 Page({ /** * 页面的初始数据 */ data: { title: 'user', userInfo: { avatarUrl: '../../images/login-img.png' }, // 视屏 hasmessage: false, // 有消息状态 videoSrc: '', videoCover: '', ...
Say-hi/wx-dating
dist/pages/user/user.js
JavaScript
apache-2.0
11,205
(function () { "use strict"; XML3D.debug.loglevel = 0; /** * Registering JS Operators * */ Xflow.registerOperator("xflow.desaturateImage", { outputs: [ {type: 'texture', name: 'output', sizeof: 'input'} ], params: [ {type: 'texture', sourc...
Cyberlightning/Cyber-WeX
DataflowProcessing/demos/xflowWebCL/XflowWebCLNodes.js
JavaScript
apache-2.0
5,497
if (!window["DMP_CONTEXT"]) { /** Main DMP class - a single instance of this class is set as window.DMP_CONTEXT */ class DMP { constructor() { this.__version__ = '5.11.2'; // DMP version to check for mismatches this.contexts = {}; // id -> context1 thi...
doconix/django-mako-plus
django_mako_plus/webroot/dmp-common.src.js
JavaScript
apache-2.0
12,477
$(function(){ $(window).scroll(function (){ if ($(this).scrollTop() > 400) $('#scrollTop').fadeIn(); else $('#scrollTop').fadeOut(); }); $('#scrollTop').click(function (){ $('html, body').animate({scrollTop: 0}, 600); return false; }); $('time').age(); });
anestv/pa
resources/js/qfeed.js
JavaScript
artistic-2.0
309
import React, {useEffect} from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; const ReactMarkdown = require('react-markdown') import {Form, Grid, Header, Segment, Divider, Button} from 'semantic-ui-react'; import EntryInputContainer from '../containers/EntryInputContainer'; import ...
javascript-obfuscator/javascript-obfuscator-ui
App/containers/OptionsContainer.js
JavaScript
bsd-2-clause
26,786
// This file was procedurally generated from the following sources: // - src/annex-b-fns/func-no-skip-try.case // - src/annex-b-fns/func/switch-dflt.template /*--- description: Extension is observed when creation of variable binding would not produce an early error (try statement) (Funtion declaration in the `default` ...
sebastienros/jint
Jint.Tests.Test262/test/annexB/language/function-code/switch-dflt-func-no-skip-try.js
JavaScript
bsd-2-clause
1,554
goog.provide('ol.test.style.Text'); describe('ol.style.Text', function() { describe('constructor', function() { it('accepts literal values', function() { var symbolizer = new ol.style.Text({ color: '#ff0000', fontFamily: 'Arial', fontSize: 11, text: 'Test', opacity...
yinxiaomei/ol3
test/spec/ol/style/textsymbolizer.test.js
JavaScript
bsd-2-clause
11,273
/* jslint node: true */ 'use strict'; const mimeTypes = require('mime-types'); exports.resolveMimeType = resolveMimeType; function resolveMimeType(query) { if(mimeTypes.extensions[query]) { return query; // alreaed a mime-type } return mimeTypes.lookup(query) || undefined; // lookup() returns false; we want ...
snazzware/enigma-bbs
core/mime_util.js
JavaScript
bsd-2-clause
331
// 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-function-definitions es6id: 14.1 description: > The `yield` token is interpreted as an IdentifierReference within a generator and outside of strict mode info: | ...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/function/param-dflt-yield-strict.js
JavaScript
bsd-2-clause
678
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-rest-ary-elem.case // - src/dstr-binding/default/cls-expr-gen-meth-static.template /*--- description: Rest element containing an array BindingElementList pattern (static class expression generator method) esid: sec-class-...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/class/dstr-gen-meth-static-ary-ptrn-rest-ary-elem.js
JavaScript
bsd-2-clause
3,732
var eps = angular.module('Eps'); eps.controller('Index', indexController); indexController.$inject = ['$rootScope', '$location', '$auth']; function indexController($rootScope, $location, $auth) { var self = this; self.close = function() { // console.log("close"); }; $rootScope.pageTitle = 'Inicio'; $...
SergioGutzB/FrontEPS
app/js/controllers/index.js
JavaScript
bsd-2-clause
571
$(document).foundation({ orbit: { slide_number: false, pause_on_hover: false, timer: false, bullets: false } }); $('#type').dropkick();
premthebuilder/UGLYMONA_UI
public/scripts/app.js
JavaScript
bsd-2-clause
156
import React from 'react'; import PropTypes from 'prop-types'; function backgroundImages () { $('.background-image-holder').each((i, elem) => { const imgSrc = $(elem).children('img').attr('src'); $(elem).css('background', `url("${imgSrc}")`); $(elem).children('img').hide(); $(elem).css('background-position', ...
pletcher/cltk_frontend
imports/ui/components/pages/BackgroundImageHolder/BackgroundImageHolder.js
JavaScript
bsd-2-clause
1,207
var storage = chrome.storage.sync; var messages = chrome.i18n.getMessage; /** * Show a saved message and disappear after 10 seconds */ var messageTimer; function showMessage(message) { message = message ? message : ""; document.getElementById('response_message').innerText = message; document.getElementById('respo...
alvinhkh/remove-google-logo-in-new-tab-page
options.js
JavaScript
bsd-2-clause
3,705
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.indexof es5id: 15.4.4.14-9-a-4 description: > Array.prototype.indexOf - deleted properties in step 2 are visible here ---*/ var arr = { 2: 6....
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
JavaScript
bsd-2-clause
556
// Copyright (C) 2016 The V8 Project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 18.2.2 esid: sec-isfinite-number description: > Throws a TypeError if the result of calling number.@@toPrimitive is a symbol info: | isFinite (number) 1. Let num...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/isFinite/toprimitive-result-is-symbol-throws.js
JavaScript
bsd-2-clause
921
import Feature from '../../../../src/ol/Feature.js'; import GML2 from '../../../../src/ol/format/GML2.js'; import WFS from '../../../../src/ol/format/WFS.js'; import _ol_format_filter_ from '../../../../src/ol/format/filter.js'; import LineString from '../../../../src/ol/geom/LineString.js'; import MultiLineString from...
planetlabs/ol3
test/spec/ol/format/wfs.test.js
JavaScript
bsd-2-clause
46,799
var stream = require('stream'); var util = require('util'); var RawSatelliteStream = require('./raw-satellite-stream'); var Transform = stream.Transform; util.inherits(PerSecondSatelliteStream, Transform); function PerSecondSatelliteStream(options) { Transform.call(this, { objectMode: true }); options = options |...
essdot/satellite-streams
stream-classes/per-second-satellite-stream.js
JavaScript
bsd-2-clause
1,332
/* jslint node: true */ 'use strict'; // ENiGMA½ const MenuModule = require('./menu_module.js').MenuModule; const ViewController = require('./view_controller.js').ViewController; const ansi = require('./ansi_term.js'); const theme = require('./theme.js'); const FileE...
NuSkooler/enigma-bbs
core/file_area_list.js
JavaScript
bsd-2-clause
28,915
var logging = require('logging'); var parser = require('./parser.js'); var AlignmentsParser = parser.AlignmentsParser; var StorageLocal = function(parent, options) { options = options || {}; this.parent = parent; this._enabled = options.enabled || false; if (window.Storage === undefined) { logging.error("...
Harvard-ATG/wordmapper
src/js/services/storage_local.js
JavaScript
bsd-3-clause
2,080
$(function () { var lineData = { labels: ["January", "February", "March", "April", "May", "June", "July"], datasets: [ { label: "Example dataset", fillColor: "rgba(220,220,220,0.5)", strokeColor: "rgba(220,220,220,1)", poin...
lunactico/laskekas
frontend/assets/js/chart_js-custom.js
JavaScript
bsd-3-clause
4,901
/** * J2D (jQuery plugin of the fork j2ds) * * @authors Skaner, likerRr, DeVinterX * @license zlib * @version 0.1.8 * @see https://github.com/SkanerSoft/J2ds/commit/fa7474a338f040ecdf439390ab69f9e4b7052f4d */ !function (root, factory) { if (typeof define === 'function' && define.amd) { define('j2d.s...
fsggs/jquery.j2d
src/js/j2d/j2d.scene.js
JavaScript
bsd-3-clause
7,066
/*jslint browser: true, unparam: true, todo: true*/ /*globals define: true, MutationObserver: false, requestAnimationFrame: false, performance: false, btoa: false*/ 'use strict'; import { mergeHiddenRowRanges } from './groups/util'; export default function (self) { /** * Converts a integer into a letter A - ZZZZ...
TonyGermaneri/canvas-datagrid
lib/publicMethods.js
JavaScript
bsd-3-clause
64,241
/* ***** 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 sou...
Bluefinch/ace-builds
textarea/src/theme-cobalt.js
JavaScript
bsd-3-clause
3,803
//= require 'spree/backend/package_type_selector'
railsdog/spree_shipping_labels
app/assets/javascripts/spree/backend/shipping-labels.js
JavaScript
bsd-3-clause
50
'use strict'; function csvToArray(text) { let p = '', row = [''], ret = [row], i = 0, r = 0, s = !0, l; for (l of text) { if ('"' === l) { if (s && l === p) row[i] += l; s = !s; } else if (',' === l && s) l = row[++i] = ''; else if ('\n' === l && s) { ...
openaq/openaq-upload
scripts/test_parse_csv.js
JavaScript
bsd-3-clause
953
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. function createDartOnly() { return new dart.test.library2.DartOnly(); } namespace = {}; namespace.G...
a14n/js-interop
test_sources/non_transformed/lib/library2.js
JavaScript
bsd-3-clause
1,400
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; var debug = require('debug')('Fluxible:Context'); var objectAssign = require('object-assign'); var isPromise = require('is-promise'); var PromiseLib = global.Promise || re...
DelvarWorld/fluxible
lib/FluxibleContext.js
JavaScript
bsd-3-clause
11,906
/** * AJAX Nette Framwork plugin for jQuery * * @copyright Copyright (c) 2009 Jan Marek * @license MIT * @link http://nettephp.com/cs/extras/jquery-ajax * @version 0.2 */ jQuery.extend({ nette: { updateSnippet: function (id, html) { $("#" + id).html(html); }, success: ...
jkuchar/TabControl
document_root/js/jquery.nette.js
JavaScript
bsd-3-clause
2,487
/** * Casales Library PHP version 5.4 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO * EVENT SHALL KAATERSKIL M...
kaaterskil/casales
public/js/casales.js
JavaScript
bsd-3-clause
10,180
import PropTypes from 'prop-types'; import React from 'react'; import { render, shallow, mount } from 'enzyme'; import Snackbar from 'material-ui/Snackbar'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import ConnectedLayout, { Layout } from './Layout'; import configureStore from 'store/configureStore'; i...
uprisecampaigns/uprise-app
app/client/src/components/Layout/Layout.spec.js
JavaScript
bsd-3-clause
2,555
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.5.4.18_A10; * @section: 15.5.4.18; * @assertion: The String.prototype.toUpperCase.length property has the attribute ReadOnly; * @description: Checking if varying the Stri...
luboid/ES5.Script
TestScripts/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.18_String.prototype.toUpperCase/S15.5.4.18_A10.js
JavaScript
bsd-3-clause
1,328
/* * Copyright (c) 2016, Two Sigma Open Source * 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 the above copyright notice, * this list of...
jhedwardyang/git-meta
node/lib/util/print_status_util.js
JavaScript
bsd-3-clause
17,918
EmberIntl.__addLocaleData({"locale":"bez","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";},"fields":{"second":{"displayName":"Sekunde","relative":{"0":"now"},"relativeTime":{"future":{"other":"+{0} s"},"past":{"other":"-{0} s"}}},"minute":{"displayName":"Dakika","relativeTime":{"f...
rlivsey/ember-intl
packaging/dist/locale-data/locales/bez.js
JavaScript
bsd-3-clause
969
/** * CommentNode * * @constructor */ jstpl.CommentNode = { render: function() { return ''; } };
repejota/jstpl
src/jstpl.node.comment.js
JavaScript
bsd-3-clause
119
/** * Copyright (c) 2009-2012, Brad Griffith <bgriffith@deltasys.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: * * - Redistributions of source code must retain the above copyright...
griffbrad/Minion
minion/site.js
JavaScript
bsd-3-clause
16,937
const crypto = require('crypto'); const mongoose = require('mongoose'); const consts = require('../const'); const { ClientError, ClientErrorCode } = require('../error'); const config = require('../config'); const logger = require('../logger'); const User = require('../models/user'); const LoginToken = require('../model...
zesik/insnota
server/services/user.js
JavaScript
bsd-3-clause
9,220
hqDefine("hqwebapp/js/validators.ko", [ 'jquery', 'knockout', 'knockout-validation/dist/knockout.validation.min', // needed for ko.validation ], function ( $, ko ) { ko.validation.rules['emailRFC2822'] = { validator: function (val) { if (val === undefined || val.length === 0)...
dimagi/commcare-hq
corehq/apps/hqwebapp/static/hqwebapp/js/validators.ko.js
JavaScript
bsd-3-clause
2,926
(function ( $ ){ /* EXAMPLE CONFIGURATION var defaultKey = 'fje329iun52ngtuijo2f4jeun432A', // Unique master Xively API key to be used as a default defaultFeeds = [61916,12425,94322], // Comma separated array of Xively Feed ID numbers applicationName = 'My Company\'s Application', // Replaces Xively logo in t...
LeeHewitt/test
follows.js
JavaScript
bsd-3-clause
16,393
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"bokeh-blue-purple-4","name":"bokeh-blue-purple-4-1","rgb":[136,65,157]},{"group":"bokeh-blue-purple-4","name":"bokeh-blue-purple...
netbek/chrys
illustrator/bokeh-blue-purple-4.js
JavaScript
bsd-3-clause
13,968
angular.module('os.biospecimen.models.specimenlist', ['os.common.models']) .factory('SpecimenList', function(osModel, $http, $translate, Specimen) { var SpecimenList = osModel('specimen-lists', function(list) { if (list.specimens && list.specimens.length > 0) { list.specimens = list.specim...
krishagni/openspecimen
www/app/modules/biospecimen/models/specimen-list.js
JavaScript
bsd-3-clause
3,388
Polymer('core-drawer-panel', { /** * Fired when the narrow layout changes. * * @event core-responsive-change * @param {Object} detail * @param {boolean} detail.narrow true if the panel is in narrow layout. */ publish: { /** * Max-width when the panel changes to n...
devoncarew/paper_sample_app.js
bower_components/core-drawer-panel/core-drawer-panel.js
JavaScript
bsd-3-clause
4,509
var TableDatatablesResponsive = function () { var initTable1 = function () { var table = $('#team'); var oTable = table.dataTable({ // Internationalisation. For more info refer to http://datatables.net/manual/i18n "language": { "aria": { ...
pmcms/project
backend/web/createasset/js/table-datatables-responsive.js
JavaScript
bsd-3-clause
3,102
/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.gi...
kaelfeitosa/material-pair
gulpfile.js
JavaScript
bsd-3-clause
9,228
/* * Javascript EXIF Reader - jQuery plugin 0.1.3 * Copyright (c) 2008 Jacob Seidelin, cupboy@gmail.com, http://blog.nihilogic.dk/ * Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] */ define(['jquery'], function (jQuery) { (function($) { var BinaryFile = function(str...
LocalData/localdata-mobile-web
src/js/lib/jquery.exif.js
JavaScript
bsd-3-clause
32,335
$('.nav-tabs').find('a.disabled').on('click', function(e) { e.preventDefault(); });
wizard2014/parser.local
assets/scripts/base/tab.js
JavaScript
bsd-3-clause
87
// @flow /* global SETTINGS: false */ import R from "ramda" import { createSelector } from "reselect" import { userListApiURL, userListDetailApiURL } from "../url" import { DEFAULT_POST_OPTIONS, constructIdMap } from "../redux_query" import type { UserList } from "../../flow/discussionTypes" export const userListReq...
mitodl/open-discussions
static/js/lib/queries/user_lists.js
JavaScript
bsd-3-clause
2,945
var _ = require('lodash'); function objValues(obj) { var vals = []; for (var prop in obj) { if (! obj.hasOwnProperty(prop)) continue; vals.push(obj[prop]); } return vals; } function Room(name) { this.name = name; this.messages = []; this.admins = {}; // Admins indexed by clientId this.clients = {}; /...
Dragory/qwl-2014
app/room.js
JavaScript
bsd-3-clause
2,685
/* Copyright (c) 2004-2010, 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["dijit._editor.plugins.ViewSource"]){ //_hasResource checks added by build. Do not use _hasResource d...
najamelan/vhffs-4.5
vhffs-panel/js/dijit/_editor/plugins/ViewSource.js
JavaScript
bsd-3-clause
16,737
'use strict'; import React from 'react'; import { Dropdown } from 'openaq-design-system'; var ShareBtn = React.createClass({ displayName: 'ShareBtn', propTypes: { }, render: function () { var encodedURI = encodeURIComponent(window.location.href); return ( <Dropdown triggerElement='butt...
openaq/openaq.github.io
app/assets/scripts/components/share-btn.js
JavaScript
bsd-3-clause
1,025
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc4-master-4aa7160 */ function createDirective(e,i){return["$mdUtil",function(n){return{restrict:"A",multiElement:!0,link:function(t,o,r){var a=t.$on("$md-resize-enable",function(){a();var c=window.getComputedStyle(o[0]);t....
westerncapelabs/gopherairtime
controlinterface/static/controlinterface/js/angular-material/modules/closure/showHide/showHide.min.js
JavaScript
bsd-3-clause
855
function removeExnodes(e) { files = db.exnodes.find({$and: [{mode: "file", parent: e.id}]}) files.forEach(function(f) { extents = db.extents.remove({parent: f.id}) print("removing file: " + f.name); db.exnodes.remove(f) }) sdirs = db.exnodes.find({$and: [{mode: "directory"}, {parent: e.id}]}) sdi...
periscope-ps/unis
scripts/unis_remove_exnode_dir.js
JavaScript
bsd-3-clause
830
define([ "models/todo-list", "models/events", "test/mock/models/time-source" ], function( TodoList, Events, TimeSource ) { describe('TodoList', function() { var todoList; var events = []; beforeEach(function() { todoList = new TodoList(); tod...
unageanu/container-js
samples/todo-list/test/specs/models/todo-list.js
JavaScript
bsd-3-clause
5,798
// @flow import React from "react" import sinon from "sinon" import { mount, shallow } from "enzyme" import { assert } from "chai" import { Provider } from "react-redux" import configureTestStore from "redux-asserts" import rootReducer from "../reducers" import * as libVideo from "../lib/video" import VideoEmbedPage f...
mitodl/odl-video-service
static/js/containers/VideoEmbedPage_test.js
JavaScript
bsd-3-clause
2,132
// This file is concerned with altering the Firefox 4+ Add-ons Manager window, // for those sorts of functionality we want that the API does not handle. (As // opposed to addons4.jsm which is responsible for what the API does handle.) (function private_scope() { Components.utils.import("resource://gre/modules/AddonMan...
Ventero/greasemonkey
content/addons4-overlay.js
JavaScript
bsd-3-clause
12,567
/* * 2018-09 * Warning, Visual Studio Team Services changed layout slightly (at least in HTML structure) * Some additional mumbo jumbo for detection is required * See more below */ 'use strict'; function getContainer (selector) { const visibleContainers = Array .from(document.querySelectorAll(selector)) ...
glensc/toggl-button
src/scripts/content/visualstudio.js
JavaScript
bsd-3-clause
2,109
/** * Asset item previewing image * * - It needs a model with asset url and state (idle, selected, destroying). * * new cdb.admin.AssetsItem({ * model: asset_model * }) */ cdb.admin.AssetsItem = cdb.core.View.extend({ _SIZE: 42, // Thumbnail size (same cm for width and height...
comilla/map
lib/assets/javascripts/cartodb/table/asset_manager/asset_item.js
JavaScript
bsd-3-clause
3,800
/* * Copyright (c) 2013, IT Services, Stockholm University * 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 the above copyright notice, this *...
carllarsson/hermes
assets/www/spec/modules/student/student-service-view.spec.js
JavaScript
bsd-3-clause
3,482
var aliasi = 0; var positioni = 0; function globalCharacterInit() { globalInit('Character', 'image'); datePicker('Character_birth_date'); datePicker('Character_death_date'); datePicker('Character_from_position0'); datePicker('Character_to_position0'); } function addAlias() { if ($('#Character_alias' + aliasi)....
ereslibre/documentrepository
documentrepository/js/character.js
JavaScript
bsd-3-clause
4,046
function loadTxt() { var txtLang = document.getElementsByName("txtLang"); txtLang[0].innerHTML = "F\u00F6rhandsgranska"; txtLang[1].innerHTML = "CSS Text"; txtLang[2].innerHTML = "Klassnamn"; document.getElementById("btnCancel").value = "Avbryt"; document.getElementById("btnApply").value = ...
techvn/webstore
public/assets/backend/system/upload-file/editor/scripts/language/sv-SE/styles_cssText2.js
JavaScript
bsd-3-clause
760
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Wrapped from '../TicketPage'; import { sendSms } from 'actions/sms-actions'; export default connect( state => ({ events: state.event.get('events'), smsSending: state.sms.get('sending'), smsStatus: stat...
pekkis/kino-kobros
src/components/container/TicketPageContainer.js
JavaScript
bsd-3-clause
471
(function() { var els = document.getElementsByTagName('script'), srcPath = ''; for (var i = 0; i < els.length; i++) { var src = els[i].src.split(/apps[\\\/]/g); if (src[1]) { srcPath = src[0]; break; } } //通过以下update-tag,来解决core与dom不是同时提测的问题 //update-tag: core/* - //update-tag: dom/* t...
wuzheng40/qwrap
resource/js/apps/core_dom_youa.js
JavaScript
bsd-3-clause
2,691
var searchData= [ ['database_5fhandler_2epy',['database_handler.py',['../database__handler_8py.html',1,'']]], ['dataclass_2epy',['DataClass.py',['../_data_class_8py.html',1,'']]], ['deviceclass_2epy',['DeviceClass.py',['../_device_class_8py.html',1,'']]] ];
improve-project/platform
doc/database_handler/search/files_2.js
JavaScript
bsd-3-clause
264
/* * Copyright (c) 2015 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. */ 'use strict'; var videoElement = document.querySelector('video'); var videoSelect = document.qu...
Temasys/Google-WebRTC-Samples
src/content/devices/select-screen/js/main.js
JavaScript
bsd-3-clause
2,453
'use strict' const PathUtils = require('./path-utils') const fs = require('fs') const BundleUtils = { bundleResource (inPath, outPath) { return new Promise((resolve, reject) => { require('browserify')(inPath) .bundle() .pipe(fs.createWriteStream(outPath)) .once('finish', () => resol...
endlessm/chromium-browser
third_party/devtools-frontend/src/node_modules/karma/lib/utils/bundle-utils.js
JavaScript
bsd-3-clause
684
/* * Copyright (C) 2013 Google 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 the above copyright * notice, this list of conditio...
endlessm/chromium-browser
third_party/devtools-frontend/src/front_end/sdk/PaintProfiler.js
JavaScript
bsd-3-clause
5,337
/*globals namespace */ (function (namespace) { "use strict"; /** * Collection of {@link ursa.model.ApiMember} instances. * @memberof ursa.model * @name ApiMemberCollection * @public * @extends {Array} * @class * @param {ursa.model.ApiMember} owner Owner if this instance bein...
alien-mcl/URSA
URSA.Client/app/scripts/ursa/model/ApiMemberCollection.js
JavaScript
bsd-3-clause
2,216
import { connect } from 'react-redux' import LinkModule from '../components/linkModule'; function mapStateToProps(store, props) { return { title: 'titleLinkModule', daoAddress: props.daoAddress, module: props.module, address: props.address } } export default connect(mapStateToProps)(LinkModule)
airalab/DAO-IPCI
dapp/src/shared/dao/main/containers/linkModule.js
JavaScript
bsd-3-clause
318
var config = { auth_token : 'auth_token', gcm_authorization_key : 'gcm_authorization_key_provided_by_google', port: '3000', // database configuration db: require('rc')('notifications',{ // need not to change this line host: 'localhost', // host user : 'root', // username of mysql password : 'itsmine', // ...
FindAllTogether/node-rtc
config.js
JavaScript
bsd-3-clause
515
var binary = require('@mapbox/node-pre-gyp'); var path = require('path'); var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json'))); var binding = require(binding_path); module.exports = exports = binding;
mapbox/node-sqlite3
lib/sqlite3-binding.js
JavaScript
bsd-3-clause
233
var class_app_store_1_1_models_1_1_word_model = [ [ "WordModel", "dc/df7/class_app_store_1_1_models_1_1_word_model.html#a8607da2a2713171589b623100d10fc92", null ], [ "getDescription", "dc/df7/class_app_store_1_1_models_1_1_word_model.html#a62c8068a19bae66c6f8bfe4fbc9430c5", null ], [ "getWord", "dc/df7/clas...
BuildmLearn/BuildmLearn-Store
WP/doc/DOxygen_HTML/dc/df7/class_app_store_1_1_models_1_1_word_model.js
JavaScript
bsd-3-clause
882