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
// $Id: gravatar.js,v 1.1.2.2 2008/11/17 03:39:20 davereid Exp $ Drupal.behaviors.gravatarPreview = function (context) { $('input[name=gravatar_default]:not(.gravatarPreview-processed)', context).addClass('gravatarPreview-processed').click(function () { var selected_image = $('img#gravatar-imagepreview-' + this....
circularvortex/testme
sites/all/modules/gravatar/gravatar.js
JavaScript
gpl-2.0
707
/** * OpenLayers Raw Layer Handler */ Drupal.openlayers.layer.openlayers_raw = function(title, map, options) { options.options = options.options || {}; // Note, so that we do not pass all the features along to the Layer // options, we use the options.options to give to Layer options.options.drupalID = optio...
tommeir/mifgaim
sites/all/modules/openlayers/includes/layer_types/js/raw.js
JavaScript
gpl-2.0
600
window.__exeJS__.gradient = function(init_stops) { var stops = []; //accepts colors as { r:#, g:#, b:# } this.addStop = function(color, p) { stops.push({color:color, p:p}); stops.sort(function(a, b) { return a.p - b.p; }); }; function interpolate(color_a, color_b, p) { var c = {}; c.r = (color_a....
brendan-w/execute-js
js/gradient.js
JavaScript
gpl-2.0
1,268
/*globals window, document, jQuery, _, Backbone, _wpmejsSettings */ (function ($, _, Backbone) { "use strict"; var WPPlaylistView = Backbone.View.extend({ initialize : function (options) { this.index = 0; this.settings = {}; this.data = options.metadata || $.parseJSON( this.$('script').html() ); this....
daryltulay/xs
wp-includes/js/mediaelement/wp-playlist.js
JavaScript
gpl-2.0
4,646
define( ({ commonWebmap: { selector: { lblWebMap: "Карта", lblLocation: "Местоположение", lblContent: "Ресурсы", lblPopup: "Всплывающая информация", lblControls: "Дополнения", lblOverview: "Обзорная карта", lblLegend: "Легенда", lblGeocoder: "Поиск адреса или места", tooltipG...
EsriCanada-CE/ecce-app-challenge-2016
SpatialCOGnition/BuildingResilience/resources/common/nls/ru/webmap.js
JavaScript
gpl-2.0
6,729
var models = require('../models/models.js'); exports.load = function(req, res, next, quizId) { models.Quiz.find(quizId).then( function(quiz) { if (quiz) { req.quiz = quiz; next(); } else { next( new Error('No existe quizId = ' + quizId ))} } ).catch(function(error){ next(error)...
ccggithub/quiz2
controllers/quiz_controller.js
JavaScript
gpl-2.0
2,867
/* * Copyright (C) eZ Systems AS. All rights reserved. * For full copyright and license information view LICENSE file distributed with this source code. */ YUI.add('ez-roleserversideview', function (Y) { "use strict"; /** * Provides the role server side view * * @module ez-roleserversideview ...
pg18/perso_website
vendor/ezsystems/platform-ui-bundle/Resources/public/js/views/serverside/ez-roleserversideview.js
JavaScript
gpl-2.0
11,889
example.propertypane.PropertyPaneState = Class.extend({ init:function(stateFigure){ this.figure = stateFigure; }, injectPropertyView: function( domId) { var view = $("<form class='form-horizontal'>"+ "<div class='control-group'>"+ " <label class='control-label' ...
SnipyJulmy/MSE_1617_PA
ViewingLibrary/Draw2D/lib/draw2d/examples/apps/state_diagram/src/propertypane/PropertyPaneState.js
JavaScript
gpl-2.0
1,402
/** A data model representing a post in a topic @class Post @extends Discourse.Model @namespace Discourse @module Discourse **/ Discourse.Post = Discourse.Model.extend({ shareUrl: function() { if (this.get('postnumber') === 1) return this.get('topic.url'); var user = Discourse.User.current(); ...
erlend-sh/discourse
app/assets/javascripts/discourse/models/post.js
JavaScript
gpl-2.0
10,957
/** This controller handles general user actions @class UserController @extends Discourse.ObjectController @namespace Discourse @module Discourse **/ Discourse.UserController = Discourse.ObjectController.extend({ viewingSelf: (function() { return this.get('content.username') === Discourse.get('current...
alexknowshtml/discourse
app/assets/javascripts/discourse/controllers/user_controller.js
JavaScript
gpl-2.0
581
jq(document).ready(function(){ //Start search stuff here var portal_search = "#portal-searchbox"; var google_search = "#google-searchbox"; var campus_checkbox = "#portal-searchbox-checkbox-campus"; var site_checkbox = "#portal-searchbox-checkbox-site"; var portal_search_input = "#portal-searchbox input[t...
uwosh/uwosh.intranet_theme_clean
uwosh/intranet_theme_clean/skins/uwosh_intranet_theme_clean_custom_templates/uwosh.js
JavaScript
gpl-2.0
1,710
$perceptStrategy("position" , function(percept){ //$log("Strategy for percept 'position'. Percept => " + JSON.stringify(percept)); $('.messages').append('<div> lat: ' + percept.data['latitude'] + ' - long: ' + percept.data['longitude'] + '</div>'); })
cloudtm/geograph
geograph-agent-farm/app/assets/javascripts/madmass/position_percept_strategy.js
JavaScript
gpl-3.0
257
import { Achievement, AchievementTypes } from '../achievement'; export class Boxer extends Achievement { static achievementData(player) { const value = player.$statistics.countChild('Character.Treasure'); const baseValue = 15; let tier = 1; while(value >= baseValue * tier) { tier++; } ...
Anexes/IdleLands
src/plugins/achievements/achievements/Boxer.js
JavaScript
gpl-3.0
972
/*@preserve * Tempus Dominus Bootstrap4 v5.1.2 (https://tempusdominus.github.io/bootstrap-4/) * Copyright 2016-2018 Jonathan Peterson * Licensed under MIT (https://github.com/tempusdominus/bootstrap-3/blob/master/LICENSE) */ if (typeof jQuery === 'undefined') { throw new Error('Tempus Dominus Bootstrap4\'s requi...
madpilot78/ntopng
httpdocs/tempusdominus/js/tempusdominus-bootstrap-4.js
JavaScript
gpl-3.0
116,491
(function (root, factory) { define([ "jquery", "mock", "test_utils" ], function ($, mock, test_utils) { return factory($, mock, test_utils); } ); } (this, function ($, mock, test_utils) { var b64_sha1 = converse_api.env.b64_sha1; return describe("The ...
specktator/conversejs-prebind-php
converse.js-0.9.4/spec/otr.js
JavaScript
gpl-3.0
1,626
'use strict' App.controller('clientController', [ '$scope', 'clientService',function($scope, clientService) { console.info('Client Controller *****************************************'); var self = this; $scope.client = {id:'',nom:'',prenom:'',adresse:'',dateNaissance:''}; $scope.selectedClient = null; $scope.clie...
das2016/medecin
rdvmedecin/rdvmedecin-web/target/rdvmedecin/static/app/controller/clientController.js
JavaScript
gpl-3.0
3,925
// https://jestjs.io/docs/en/webpack module.exports = {}
kynikos/wiki-monkey
tests/styleMock.js
JavaScript
gpl-3.0
58
var battlelogplaybar = { createPlaybarButton: function (elementid, label, onclick) { if ($('#' + elementid).length == 0) { var button = $("<button/>", { id: elementid, onclick: onclick, class: 'common-button-large main-loggedin-playbutton', ...
Battlelogium/Battlelogium
Battlelogium.Core/Javascript/playbar/battlelog.mohw.playbar.js
JavaScript
gpl-3.0
2,203
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 Foundation, either version 3 of the License, or // (at your option) any lat...
nipunn1313/parity
js/src/dapps/registry/reducers.js
JavaScript
gpl-3.0
2,699
/*! * VisualEditor DataModel ImageNode class. * * @copyright 2011-2016 VisualEditor Team and others; see http://ve.mit-license.org */ /** * DataModel image node. * * @class * @abstract * @mixins ve.dm.FocusableNode * @mixins ve.dm.ResizableNode * * @constructor */ ve.dm.ImageNode = function VeDmImageNode(...
Facerafter/starcitizen-tools
extensions/VisualEditor/lib/ve/src/dm/nodes/ve.dm.ImageNode.js
JavaScript
gpl-3.0
844
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("devtools","eo",{title:"Informo pri la elemento",dialogName:"Nomo de la dialogfenestro",tabName:"Langetnomo",elementId:"ID de la elemento",elementType...
Daniel-KM/Omeka-S
application/asset/vendor/ckeditor/plugins/devtools/lang/eo.js
JavaScript
gpl-3.0
345
/** API pour pousser les notifications du navigateur. Ces notifications sont visibles sur toutes les fenêtres de browser. Pour lancer une notification, utiliser dans un event la fonction pushNotification(title, tag, body) TODO : Trouver une solution pour ne pas que la notification se ferme au bout de quelques second...
Romular/caissevl
staticlibs/libs/tma-notify/notify.js
JavaScript
gpl-3.0
1,375
// Mod: Special Days for Xin Calendar 2 (In-Page/Popup-Window) // Copyright 2004 Xin Yang All Rights Reserved. function setLoopWeek(co,cw,cx,jh,ke){var eu=0;for(var i=5;i<setLoopWeek.arguments.length;i++){if(setLoopWeek.arguments[i].search(/(sun|mon|tue|wed|thu|fri|sat)/i)!=-1){eu=xc_br(RegExp.$1);for(j=jh-1;j<6;j...
mattsimpson/entrada-1x
www-root/javascript/calendar/script/mod_days.js
JavaScript
gpl-3.0
1,102
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("filetools","pl",{loadError:"Błąd podczas odczytu pliku.",networkError:"W trakcie wysyłania pliku pojawił się błąd sieciowy.",httpError404:"Błąd HTTP ...
Daniel-KM/Omeka-S
application/asset/vendor/ckeditor/plugins/filetools/lang/pl.js
JavaScript
gpl-3.0
645
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'print', 'et', { toolbar: 'Printimine' } );
Mediawiki-wysiwyg/WYSIWYG-CKeditor
WYSIWYG/ckeditor_source/plugins/print/lang/et.js
JavaScript
gpl-3.0
214
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on('Therapy Type', { setup: function(frm) { frm.get_field('exercises').grid.editable_fields = [ {fieldname: 'exercise_type', columns: 7}, {fieldname: 'difficulty_level', colu...
saurabh6790/erpnext
erpnext/healthcare/doctype/therapy_type/therapy_type.js
JavaScript
gpl-3.0
2,240
// Set theme am4core.useTheme(am4themes_animated); // Generate random data var data = []; var visits = 10; for (var i = 1; i < 366; i++) { visits += Math.round((Math.random() < 0.5 ? 1 : -1) * Math.random() * 10); data.push({ date: new Date(2018, 0, i), name: "name" + i, value: visits }); } // Crea...
rhomicom-systems-tech-gh/Rhomicom-ERP-Web
cmn_scrpts/amcharts_4.1.4/amcharts4/examples/json/simple-line-chart/index.js
JavaScript
gpl-3.0
1,109
/* * Copyright (c) 2017 OBiBa. All rights reserved. * * This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. *...
kazoompa/opal
opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/ace/client/js/noconflict/theme-tomorrow.js
JavaScript
gpl-3.0
3,425
(function (module) { mifosX.controllers = _.extend(module, { SavingProductController: function (scope, resourceFactory, location) { scope.products = []; scope.routeTo = function (id) { location.path('/viewsavingproduct/' + id); }; if (!scope....
dtsuran/community-app
app/scripts/controllers/product/SavingProductController.js
JavaScript
mpl-2.0
1,100
#!/usr/bin/env node "use strict"; var opus = require('../'); var ogg = require('ogg'); var fs = require('fs'); var program = require('commander'); var packagejson = require('../package.json'); function toInt( n ) { return parseInt( n ); } program .version( packagejson.version ) .option('--bitrate [N.nnn]', ...
Kalissaac/Mountainz
node_modules/node-opus/bin/opusdec-js.js
JavaScript
mpl-2.0
1,316
/* Omega Ship Destruction Audio Effect * * Copyright (C) 2014 Mohammed Morsi <mo@morsi.org> * Licensed under the AGPLv3 http://www.gnu.org/licenses/agpl.txt */ /// TODO subclass from base audio Omega.ShipDestructionAudioEffect = function(){ this.audio = Omega.Config.audio['destruction']; }; Omega.ShipDestruct...
movitto/omega
site/source/javascripts/omega/ship/audio/destruction.js
JavaScript
agpl-3.0
1,857
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, o...
pydio/pydio-core
core/src/plugins/access.fs/res/js/callback/openInEditor.js
JavaScript
agpl-3.0
1,062
define(['knockout', 'knockout-mapping', 'viewmodels/function', 'bindings/chosen'], function (ko, koMapping, FunctionViewModel, chosen) { return ko.components.register('views/components/functions/local-file-storage', { viewModel: function(params) { FunctionViewModel.app...
cvast/arches
arches/app/media/js/views/components/functions/local-file-storage.js
JavaScript
agpl-3.0
587
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
djbender/canvas-lms
app/jsx/developer_keys/NewKeyTrigger.js
JavaScript
agpl-3.0
2,919
/** * Controllers for common purposes */ angular.module('pcApp.common.controllers', []) /**** Used to search metrics using elasticsearch api ******//* .factory('SearchMetrics', ['$resource', 'API_CONF', function($resource, API_CONF) { var url = "/"+API_CONF.ELASTIC_INDEX_NAME+'/:type/_search'; //var url = 'ht...
mmilaprat/policycompass-frontend
app/modules/common/controllers/common.js
JavaScript
agpl-3.0
6,475
/** * $Id: Toolbar.js 1176 2009-08-04 09:42:14Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ /** * This class is used to create toolbars a toolbar is a container for other controls like buttons etc. * * @class tinymce.ui.Toolbar * ...
Alfresco/explorer
web-client/source/web/scripts/tiny_mce/classes/ui/Toolbar.js
JavaScript
lgpl-3.0
2,742
import Relay from 'react-relay'; export default class extends Relay.Route { static path = '/'; static queries = { example: (Component) => Relay.QL` query { example { ${Component.getFragment('example')} } } ` }; static routeName = 'ExampleRoute'; }
educostachaves/graphql-relay-react-kit
src/frontend/roots/ExampleRoot.js
JavaScript
unlicense
302
var assert = require('assert'), fs = require('fs'), test = require('selenium-webdriver/testing'), webdriver = require('selenium-webdriver'), user = '', pass = ''; // Run the bash script "setup.sh" to assign static credentials as environment // variables for use with this and other example scripts of ours. user =...
Blustery/examples
js/selenium/pinterest.js
JavaScript
apache-2.0
5,834
import { Directive, ElementRef, Input, Renderer } from '@angular/core'; import { Config } from '../../config/config'; import { Ion } from '../ion'; /** * \@name Badge * \@module ionic * \@description * Badges are simple components in Ionic containing numbers or text. You can display a badge to indicate that there i...
sajithaliyanage/Travel_SriLanka
node_modules/ionic-angular/es2015/components/badge/badge.js
JavaScript
apache-2.0
1,970
/* * Copyright 2021 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
GaneshSPatil/gocd
server/src/main/webapp/WEB-INF/rails/spec/webpack/lib/form_helper_spec.js
JavaScript
apache-2.0
2,601
(function() { angular .module('bloctime') .factory('completedTasksFactory', ['$firebaseArray', Tasks]); function Tasks($firebaseArray) { var firebaseRef = new Firebase('https://glaring-heat-8178.firebaseio.com') var tasks = $firebaseArray(firebaseRef); return { all: tasks }; } })(...
rolfea/bloctime
dist/scripts/services/Tasks.js
JavaScript
apache-2.0
323
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
xingwu1/azure-sdk-for-node
lib/services/labservicesManagement/lib/models/environmentSettingFragment.js
JavaScript
apache-2.0
4,670
/** * @author Toru Nagashima <https://github.com/mysticatea> * See LICENSE file in root directory for full license. */ "use strict" const { READ, ReferenceTracker } = require("eslint-utils") module.exports = { meta: { docs: { description: "disallow the `String.raw` method.", cat...
BigBoss424/portfolio
v6/node_modules/eslint-plugin-es/lib/rules/no-string-raw.js
JavaScript
apache-2.0
1,247
/********************************************************************************** * $URL: $ * $Id: $ *********************************************************************************** * * Copyright (c) 2003, 2004, 2005, 2006, 2007 The Sakai Foundation * * Licensed under the Educational Community License, Vers...
kwedoff1/sakai
reference/library/src/webapp/js/headscripts.js
JavaScript
apache-2.0
19,530
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var async = require("async"); var Tapable = require("tapable"); var Parser = require("./Parser"); var Dependency = require("./Dependency"); var EntryModuleNotFoundError = require("./EntryModuleNotFoundError"); var Modul...
raml-org/raml-dotnet-parser-2
source/Raml.Parser/node_modules/raml-1-0-parser/node_modules/webpack/lib/Compilation.js
JavaScript
apache-2.0
22,527
//// [superCallBeforeThisAccessing6.ts] class Base { constructor(c) { } } class D extends Base { private _t; constructor() { super(this); } } //// [superCallBeforeThisAccessing6.js] var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf |...
synaptek/TypeScript
tests/baselines/reference/superCallBeforeThisAccessing6.js
JavaScript
apache-2.0
1,015
/** * Copyright 2016 The AMP HTML 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 require...
JuliusThms/amphtml
extensions/amp-sidebar/0.1/amp-sidebar.js
JavaScript
apache-2.0
9,452
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import isEqual from 'lodash.isequal'; import getDerivedStateFromProps from './...
carbon-design-system/carbon-components-react
src/components/DataTable/DataTable.js
JavaScript
apache-2.0
15,168
/*! * dependencyLibs/inputmask.dependencyLib.jquery.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2019 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 4.0.8 */ (function(factory) { if (typeof define === "function" && define.amd)...
vito16/shop
src/main/resources/static/common/plugins/inputmask/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.js
JavaScript
apache-2.0
562
var isLocalStorage = false; var mxLoadStylesheets = false; function getUrlParam(param) { var result = (new RegExp(param + '=([^&]*)')).exec(window.location.search); if (result != null && result.length > 0) { return decodeURIComponent(result[1].replace(/\+/g, '%20')); } return null; }; var remoteMath = getU...
jgraph/drawio
src/main/webapp/js/export-init.js
JavaScript
apache-2.0
398
/* * 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 may ...
zhengsg/nifi
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js
JavaScript
apache-2.0
76,814
var _ = require('lodash'); /** * Makes sure that the query is valid. * @param where */ exports.checkWhereQuery = function checkWhereQuery(where) { for (var key in where) { if (where.hasOwnProperty(key)) { var val = where[key]; if (key === '$regex') { if (val.substr(0, 3) === '^.*') { throw new Err...
titanium-forks/appcelerator.appc.arrowdb
lib/utility/checkWhereQuery.js
JavaScript
apache-2.0
615
var moment = require('moment'); module.exports = function (journey, index) { console.log(' - #' + index + ' -----------------------------'); console.log('departure', moment(journey.departure_date_time, 'YYYYMMDDTHHmm').format('YYYY/MM/DD - hh:mm:ss A')); console.log('arrival', moment(journey.arrival_date_time, '...
AceS6/fire-gtfs
node_modules/navitia/examples/journey/descriptor.js
JavaScript
apache-2.0
1,191
/* global describe, it, before, beforeEach, afterEach */ // ////////////////////////////////////////////////////////////////////////////// // / @brief JavaScript cluster functionality // / // / @file // / // / DISCLAIMER // / // / Copyright 2017 ArangoDB GmbH, Cologne, Germany // / // / Licensed under the Apache Licen...
hkernbach/arangodb
js/server/tests/cluster-sync/cluster-sync-test-noncluster-spec.js
JavaScript
apache-2.0
40,791
/* Copyright 2015 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
pvagner/vector-web
src/skins/vector/views/molecules/ChangeDisplayName.js
JavaScript
apache-2.0
1,714
var followReference = require("./followReference"); var onError = require("./onError"); var onMissing = require("./onMissing"); var onValue = require("./onValue"); var onValueType = require("./onValueType"); var isExpired = require("./util/isExpired"); var iterateKeySet = require("falcor-path-utils").iterateKeySet; var...
kublaj/falcor
lib/get/walkPath.js
JavaScript
apache-2.0
3,700
$(function() { $("#datepicker").datepicker({dateFormat: 'yy-mm-dd'}); }); function conf(id) { if (window.confirm("Are you sure?")) { location.href = "./competitions.php?delete=" + id; } } function confir(id, name) { if (window.confirm("Are you sure want to delete " + name + " ?")) { lo...
jokera/timing
js/main.js
JavaScript
apache-2.0
1,940
({ /** * verify modal displays and transition events are fired. */ testTransitionEventsFired:{ test: [function(cmp){ cmp.find('createPanelBtn').get('e.press').fire(); }, function(cmp) { this.waitForPanel("uiModal", true); }, function(cmp) { this.waitForTransitionCounts(cmp, 1); ...
forcedotcom/aura
aura-components/src/test/components/uitest/panelMobileActionModal/panelMobileActionModalTest.js
JavaScript
apache-2.0
1,954
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
kylebyerly-hp/grommet
src/js/components/icons/base/FormTrash.js
JavaScript
apache-2.0
1,765
$(document).ready(function(){ //setInterval("suretime()",60*1000*60); }) function suretime() { $.ajax({ url:'suretime',//这里是你的action或者servlert的路径地址 type:'get', //数据发送方式 error: function(msg) { //失败 alert('校时失败'); }, ...
shaqiang/jtd
WebRoot/js/privateleft.js
JavaScript
apache-2.0
486
/* * 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")...
adamrduffy/trinidad-1.0.x
trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/PPR.js
JavaScript
apache-2.0
24,929
"use strict"; var assign = require('../../../../lib/utils').assign; exports['Should correctly print warning when non mongos proxy passed in seed list'] = { metadata: { requires: { generators: true, topology: "single" } }, test: function(configuration, test) { var Mongos = configuration.r...
christkv/mongodb-core
test/tests/functional/mongos_mocks/mixed_seed_list_tests.js
JavaScript
apache-2.0
7,269
/** * Copyright 2021 The AMP HTML 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 require...
rsimha-amp/amphtml
extensions/amp-soundcloud/1.0/base-element.js
JavaScript
apache-2.0
1,413
module.exports = { rules: { // enforces getter/setter pairs in objects 'accessor-pairs': 'off', // enforces return statements in callbacks of array's methods // http://eslint.org/docs/rules/array-callback-return 'array-callback-return': 'error', // treat var statements as if they were block ...
tausifmuzaffar/bisApp
node_modules/eslint-config-airbnb-base/rules/best-practices.js
JavaScript
apache-2.0
8,141
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "LoadingPopup"; ...
leandromacrini/fci1908
Resources/iphone/alloy/controllers/LoadingPopup.js
JavaScript
apache-2.0
2,179
/* * 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 ...
shanti/olio
webapp/java/trunk/ws/apps/webapp/web/resources/jmaki/menu/component.js
JavaScript
apache-2.0
8,797
/* global arango, print */ 'use strict'; // ////////////////////////////////////////////////////////////////////////////// // / @brief Common replication utilities // / // / @file // / // / DISCLAIMER // / /// Copyright 2018 ArangoDB GmbH, Cologne, Germany // / // / Licensed under the Apache License, Version 2.0 (the ...
Simran-B/arangodb
js/common/modules/@arangodb/replication-common.js
JavaScript
apache-2.0
1,958
OC.L10N.register( "files_trashbin", { "Couldn't delete %s permanently" : "Kohdetta %s ei voitu poistaa pysyvästi", "Couldn't restore %s" : "Kohteen %s palautus epäonnistui", "Deleted files" : "Poistetut tiedostot", "Restore" : "Palauta", "Delete permanently" : "Poista pysyvästi", "Error"...
kebenxiaoming/owncloudRedis
apps/files_trashbin/l10n/fi_FI.js
JavaScript
apache-2.0
755
/** * weefloat.js * @category javascript * @package jquery * @author ePim <WanJiDong@gmail.com> * @version */ (function ($) { var weefloat = function (content, options) { var self = this; this.dh = null; this.closeable = true; this.delay = 3; this.direction = '...
tcxy/EasyCMS
web/js/weebox0.4/weefloat.js
JavaScript
apache-2.0
12,867
/* global describe, it */ 'use strict'; var expect = require('expect.js'), JSONP = require('../lib/jsonp'); describe('JSONP', function() { it('Should request content from the server via script tag and global callback function.', function(done) { JSONP({ url: '/base/public/jsonp-test.js', callbackFn: 'CNVR_onRes...
conversant/adlibs
test/jsonp.test.js
JavaScript
apache-2.0
463
/* * selectList.js * Select list view file. */ function SelectListView() { console.log('Creating new SelectListView().'); var $ = {}; $.window = Ti.UI.createWindow({ title: 'Select List', top: util.isIos7OrGreater() ? 20 : 0, bottom: 0, orientationModes: [ Ti.UI.PORTRAIT ] }); $.addNewListButt...
centrevilletech/diorite
Resources/views/selectList.js
JavaScript
apache-2.0
1,002
import React from 'react'; import { gettext } from '../../utils/constants'; const { nameLabel, enableUpdateUserInfo, enableUserSetContactEmail } = window.app.pageOptions; class UserBasicInfoForm extends React.Component { constructor(props) { super(props); const { contact_email, login_id, ...
miurahr/seahub
frontend/src/components/user-settings/user-basic-info-form.js
JavaScript
apache-2.0
2,814
/** * 系统代码模块 */ var log = require('./log'); /** * 主题类型枚举 */ var topicCatgEnums = [{ 'key': 'blog', 'value': '博客' }, { 'key': 'album', 'value': '美图' }, { 'key': 'news', 'value': '资讯' }, { 'key': 'misc', 'value': '杂谈' }]; /** * 所有枚举对象 */ exports.topicCatgEnums = function() { return topicCatgEnums; }; /*...
xiow/osnode-site
lib/enms.js
JavaScript
apache-2.0
751
/* Copyright 2013 Roy Russo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
hangxin1940/elasticsearch-cn-out-of-box
plugins/HQ/js/collection/index/IndicesStatusModel.js
JavaScript
apache-2.0
1,253
(function (){ function Metric($rootScope) { $rootScope.songPlays = []; return { registerSongPlay: function(songObj) { if (songObj) { songObj['playedAt'] = new Date(); $rootScope.songPlays.push(songObj); } ...
mtanzillo/bloc-jams-angular
dist/scripts/services/Metric.js
JavaScript
apache-2.0
1,058
var perfStats = null; var currentRun = {}; function perfService(message) { if (perfStats.numResults++ === 0) { perfStats.firstMsg = message; // stored since it has "real" start time } perfStats.bytesReceived += message.length; }; function clearPerfStats(inOrOut) { perfStats = { numResults: 0, byte...
hgschmie/shindig
javascript/container/rpctest_perf.js
JavaScript
apache-2.0
3,062
/** * Created by zhutao on 2016/7/30. */ function openWin(params) { $(params.button).on('click', function () { if (params.type == "del") { var rows = $(params.tableGrid).bootstrapTable('getSelections') if (rows.length < 1) { layer.alert('请至少选择一行', { ...
ordinary/smile
smile-web/src/main/webapp/resources/js/common.js
JavaScript
apache-2.0
5,620
/** * @license Copyright 2017 The Lighthouse 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 required by applica...
umaar/lighthouse
lighthouse-core/test/audits/byte-efficiency/total-byte-weight-test.js
JavaScript
apache-2.0
3,318
module('$fh.sec'); test('legacy', function(){ $fh.sec({act:'keygen', params:{algorithm:'AES', keysize: 16}}, function(keys){ ok(null !== keys.secretkey); ok(null == keys.iv); strictEqual(keys.secretkey.length, 32); }); var plaintext = "ZwxG7cpk07N6qSF8j1Lyocb7WRlT3raJZFxLjbtSY2imza3LLqrGNTQQyhcYMjWvV...
edewit/fh-js-sdk
test/legacy/sec.js
JavaScript
apache-2.0
2,958
/* * L.GridLayer is used as base class for grid-like layers like TileLayer. */ L.GridLayer = L.Layer.extend({ options: { pane: 'tilePane', tileSize: 256, opacity: 1, unloadInvisibleTiles: L.Browser.mobile, updateWhenIdle: L.Browser.mobile, updateInterval: 150 /* minZoom: <Number>, maxZoom: <Nu...
lizardtechblog/Leaflet
src/layer/tile/GridLayer.js
JavaScript
bsd-2-clause
12,740
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.commons.layout.BorderLayout. sap.ui.define(['jquery.sap.global', 'sap/ui/commons/library', 'sap...
mindmill/open-cmis-explorer
resources/sap/ui/commons/layout/BorderLayout-dbg.js
JavaScript
bsd-2-clause
11,708
/* * L.TileLayer is used for standard xyz-numbered tile layers. */ //(function (ymaps, L) { L.Yandex = L.Layer.extend({ includes: L.Mixin.Events, options: { minZoom: 0, maxZoom: 18, attribution: '', opacity: 1, overlay: false, traffic: false }, // Pos...
MasterHK/leaflet-plugins
layer/tile/Yandex.js
JavaScript
bsd-2-clause
4,872
/* ***** 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...
admiral2/ace-builds
textarea/src/ext-searchbox.js
JavaScript
bsd-3-clause
11,378
/* eslint-env mocha */ describe('ExportColumn', function () { var selectedColumn, advancedColumn, deletedColumn, table, instance, viewModels = hqImport('export/js/models'); beforeEach(function () { var mockObservable = function () { return 'foo'; }; sel...
dimagi/commcare-hq
corehq/apps/export/static/export/spec/ExportColumn.spec.js
JavaScript
bsd-3-clause
2,354
import Dispatcher from 'dashboard/dispatcher'; import Config from 'dashboard/config'; import { extend } from 'marbles/utils'; import { objectDiff, applyObjectDiff } from 'dashboard/utils'; var updateAppEnv = function (appID, changedRelease, env) { var client = Config.client; client.getAppRelease(appID).then(function...
rikur/flynn
dashboard/app/lib/javascripts/dashboard/actions/app-env.js
JavaScript
bsd-3-clause
1,312
module.exports = { selector: '.lifts_info', parse: { name: 0, status: node => node.prev.children[0].attribs.alt } };
pirxpilot/liftie
lib/resorts/sugarbowl/index.js
JavaScript
bsd-3-clause
131
/*! jQuery UI - v1.10.4 - 2015-11-22 * http://jqueryui.com * Copyright jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.ar={closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["كانون الثاني","شباط","آذار","نيسان","مايو","حز...
goldblade/ieducar2
public/componentes/jquery-ui-1.10.4.custom/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ar.min.js
JavaScript
bsd-3-clause
1,011
/** @license Copyright (c) 2016 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://...
endlessm/chromium-browser
third_party/node/node_modules/polymer-css-build/lib/pathresolver.js
JavaScript
bsd-3-clause
1,901
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
timami/stratux
GoPositionalAudio/jsimplementation/node_modules/web-audio-engine/lib/impl/AudioScheduledSourceNode.js
JavaScript
bsd-3-clause
4,148
/*! Video.js - HTML5 Video Player Version GENERATED_AT_BUILD LGPL v3 LICENSE INFO This file is part of Video.js. Copyright 2011 Zencoder, Inc. Video.js is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, eith...
Harvard-ATG/Catool
app/webroot/js/lib/video.js
JavaScript
bsd-3-clause
152,258
define(function() { var theme = { // 全图默认背景 backgroundColor: '#FFF', // 默认色板 color: ['#d8361b','#f16b4c', '#f7b4a9','#d26666','#99311c','#c42703','#d07e75'], // 图表标题 title: { x: 'left', // 水平安放位置,默认为左对齐,可选为: // 'center...
xautchao/echarts
doc/example/theme/red.js
JavaScript
bsd-3-clause
30,332
import { hoverTransition } from '../../../../styles/style-utils'; import { Popup } from 'semantic-ui-react'; import propTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; import Table from './Table'; import TableRow from './TableRow'; const URL = "https://freecodecamp.org/"; c...
FCC-Alumni/alumni-network
client/src/components/dashboard/Profile/Public/FCCTables.js
JavaScript
bsd-3-clause
3,564
/*! * Copyright(c) 2010 Ciaran Jessup <ciaranj@gmail.com> * MIT Licensed */ var OAuth= require("oauth").OAuth2, url = require("url"), http = require('http'); module.exports= function(options, server) { options= options || {} var that= {}; var my= {}; // Construct the internal OAuth client my._o...
tamzi/blog
node_modules/connect-auth/lib/auth.strategies/facebook.js
JavaScript
mit
3,458
'use strict'; /* Services */ var ffServices = angular.module('ffServices', []);
jayjzheng/ff_rankings
app/js/services/main.js
JavaScript
mit
82
/* */ "format global"; var PATH = require("path"); var LESS = require("../../less-js"); var CSSMIN = require("cssmin").cssmin; module.exports = function(grunt) { grunt.registerMultiTask("less", "Build CSS styles", function(){ var task = this; var destDir = task.options().destDir; task.file...
burkeholland/itunes-artist-search
jspm_packages/github/kendo-labs/bower-kendo-ui@2015.2.720/src/build/grunt/tasks/less.js
JavaScript
mit
1,293
'use strict'; //concat config var fs = require('fs'), srcFiles = [ 'src/scss/helpers/*.scss', 'src/scss/*.scss', ], processFunc = function(src, filepath) { src = src.replace(/(^|\n)[ \t]*(@charset "UTF-8";);?\s*/g, '$1'); src = src.replace(/(^|\n)[ \t]*(@import ([^)]...
sass-projects/stringy
tasks/concat.js
JavaScript
mit
984
define({ "setSelectionColor": "Imposta colore di selezione", "selectionMode": "Modalità di selezione interattiva", "partiallyWithin": "Parzialmente compresa", "whollyWithin": "Interamente compresa", "allowExport": "Consenti di esportare feature selezionate", "layerToSelect": "Scegliere i layer disponibili p...
tmcgee/cmv-wab-widgets
wab/2.15/widgets/Select/setting/nls/it/strings.js
JavaScript
mit
521
'use strict'; var forEach = require('lodash/collection').forEach, forIn = require('lodash/object').forIn, sortBy = require('lodash/collection').sortBy; function D3SNHelpers(){ } D3SNHelpers.prototype.calculateLinkNoteAnchor = function(d) { var anchor = 'end', sourcePoint = {x: d.source.x, y: d.source.y}, ...
davcs86/d3-simple-networks
lib/utils/helper.js
JavaScript
mit
10,229
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"2":"D X g H L"},C:{"2":"0 2 3 4 RB F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r PB OB"},D:{"2":"0 2 4 8 F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r DB AB SB ...
UrbanRiskSlumRedevelopment/Maya
node_modules/caniuse-lite/data/features/css-marker-pseudo.js
JavaScript
mit
738
'use strict'; console.log("importMap:start"); require('../models'); // injects DB Schemas in global.db var mongoose = require('mongoose'); var Promise = require("bluebird"); // set it either in path: (node createDemoData.js 'demo_data.json') or default var fileName = process.argv[2] || '../../data/demo_data.json'; var...
Cha-OS/KnAllEdge
src/backend/tools/importMap.js
JavaScript
mit
8,941