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 |
|---|---|---|---|---|---|
$(document).ready(function(){
$("#startDate").datepicker({dateFormat:'yy-mm-dd'});
$("#endDate").datepicker({dateFormat:'yy-mm-dd'});
//$('#startDate').datepicker();
//$('#endDate').datepicker();
}) | sorabhv6/mylib | php_lib/google_analytics/js/custom.js | JavaScript | gpl-2.0 | 211 |
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"opensap/manageproducts/model/models",
"opensap/manageproducts/controller/ErrorHandler"
], function (UIComponent, Device, models, ErrorHandler) {
"use strict";
return UIComponent.extend("opensap.manageproducts.Component", {
metadata : {
m... | carlitosalcala/openui | ManageProducts/webapp/Component.js | JavaScript | gpl-2.0 | 2,424 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER
*
* Copyright (c) 2012-2013 Universidad Politécnica de Madrid
* Copyright (c) 2012-2013 the Center for Open Middleware
*
* Licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in complia... | sixuanwang/SAMSaaS | wirecloud-develop/src/wirecloud/platform/static/js/wirecloud/ui/WiringEditor/GenericInterface.js | JavaScript | gpl-2.0 | 67,661 |
module.exports = {
browserSync: {
hostname: "localhost",
port: 8080,
openAutomatically: false,
reloadDelay: 50
},
drush: {
enabled: false,
alias: 'drush @SITE-ALIAS cache-rebuild'
},
twig: {
useCache: true
}
};
| erdfisch/DBCD16 | web/themes/custom/dbcd_theme_base/example.config.js | JavaScript | gpl-2.0 | 253 |
var expect = require('expect.js');
var Quantimodo = require('../../index');
var instance;
beforeEach(function(){
instance = new Quantimodo.PostUserSettingsDataResponse();
});
describe('PostUserSettingsDataResponse', function(){
it('should create an instance of PostUserSettingsDataResponse', function(){
... | QuantiModo/quantimodo-android-chrome-ios-web-app | plain-javascript-client/test/generated/model/PostUserSettingsDataResponse.spec.js | JavaScript | gpl-2.0 | 2,975 |
function updateLabel() {
var form = $('contentForm');
var preset_ddm = form.elements['preset'];
var presetIndex = preset_ddm[preset_ddm.selectedIndex].value;
if ( labels[presetIndex] ) {
form.newLabel.value = labels[presetIndex];
} else {
form.newLabel.value = '';
}
}
window.addEvent('domready', up... | pliablepixels/ZoneMinder | web/skins/classic/views/js/controlpreset.js | JavaScript | gpl-2.0 | 332 |
jQuery(function($) {
//Get Level 2 Category
$('#level1').on("change", ":checkbox", function () {
$("#imageloader").show();
if (this.checked) {
var parentCat=this.value;
// call ajax add_action declared in functions.php
$.ajax({
url: "/wp-admin/admin-aja... | moveable-dev1/rep1 | wp-content/themes/marsaec/js/toggle.js | JavaScript | gpl-2.0 | 7,013 |
(function ($) {
'use strict';
function Ninja() {
this.keys = {
arrowDown: 40,
arrowLeft: 37,
arrowRight: 39,
arrowUp: 38,
enter: 13,
escape: 27,
tab: 9
};
this.version = '0.0.0development';
}
Ninja.prototype.log = function (message) {
if (console && '... | Bremaweb/streber | js/ninja.js | JavaScript | gpl-2.0 | 2,022 |
define([
'container/BasicContainer',
'text!./CascadeContainer.html',
'core/functions/ComponentFactory',
'jquery',
'underscore'
], function (BasicContainer, template, ComponentFactory, $, _) {
var CascadeContainer = BasicContainer.extend({
events: {
"click .btn-prev": "clickPr... | MaxLeap/MyBaaS | webroot/javascript/core/container/CascadeContainer.js | JavaScript | gpl-2.0 | 4,532 |
var requestQueue = new Request.Queue({
concurrent: monitorData.length,
stopOnFailure: false
});
function Monitor(monitorData) {
this.id = monitorData.id;
this.connKey = monitorData.connKey;
this.url = monitorData.url;
this.status = null;
this.alarmState = STATE_IDLE;
this.lastAlarmState = STATE_IDLE;
... | Simpler1/ZoneMinder | web/skins/classic/views/js/montage.js | JavaScript | gpl-2.0 | 16,321 |
System.register(['angular2/core'], function(exports_1) {
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "obje... | burner/AngularVibed | Examples2/Example05/node_modules/angular2/ts/examples/core/ts/prod_mode/my_component.js | JavaScript | gpl-3.0 | 1,526 |
/****************************************
* This file is part of UNIX Guide for the Perplexed project.
* Copyright (C) 2014 by Assaf Gordon <[email protected]>
* Released under GPLv3 or later.
****************************************/
/* Each test in 'tests' array has the following elements:
* 1. short name... | agordon/agnostic | src/tests/shell_syntax_tests.js | JavaScript | gpl-3.0 | 27,765 |
import React, { PropTypes } from 'react'
import classnames from 'classnames'
const SettingsPageMenuLayout = ({ children, title, className }) => (
<div
className={classnames(
'settings-page-menu-layout bg-white pt3 pr4 pl5 border-only-bottom border-gray94',
className
)}
>
<h1 className="h1 m... | igr-santos/hub-client | app/components/Layout/SettingsPageMenuLayout.js | JavaScript | gpl-3.0 | 624 |
export default class FilesUploadHandler {
static isUploadEnabled( mediaType ) {
const unfilteredFilesTypes = [ 'svg', 'application/json' ];
if ( ! unfilteredFilesTypes.includes( mediaType ) ) {
return true;
}
return elementor.config.filesUpload.unfilteredFiles;
}
static setUploadTypeCaller( frame ) {
... | pojome/elementor | assets/dev/js/editor/utils/files-upload-handler.js | JavaScript | gpl-3.0 | 1,087 |
'use superstrict';
try {
if ((-25 >> 3) === -4) {
'ok';
} else {
'fail';
}
} catch (e) {
}
| vacuumlabs/babel-plugin-superstrict | test/eval_tests/casting_signed_right_shift_numbers.js | JavaScript | gpl-3.0 | 106 |
/**
* Copyright 2013 hbz NRW (http://www.hbz-nrw.de/)
*
* This file is part of regal-drupal.
*
* regal-drupal 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 y... | jschnasse/regal-drupal | edoweb/js/edoweb.js | JavaScript | gpl-3.0 | 13,745 |
/*
* Copyright (c) 2018 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/>.
*... | obiba/mica2 | mica-webapp/src/main/webapp/app/contact/contact-service.js | JavaScript | gpl-3.0 | 3,513 |
/*!
* web-SplayChat v0.4.0 - messaging web application for MTProto
* http://SplayChat.com/
* Copyright (C) 2014 SplayChat Messenger <[email protected]>
* http://SplayChat.com//blob/master/LICENSE
*/
chrome.app.runtime.onLaunched.addListener(function(launchData) {
chrome.app.window.create('../index.html', {
... | ishmaelchibvuri/splayweb.io | app/js/background.js | JavaScript | gpl-3.0 | 481 |
'use strict';
/**
* A class representation of the BSON Double type.
*/
class Double {
/**
* Create a Double type
*
* @param {number} value the number we want to represent as a double.
* @return {Double}
*/
constructor(value) {
this.value = value;
}
/**
* Access the number value.
*
... | TamataOcean/TamataSpiru | node_modules/bson/lib/double.js | JavaScript | gpl-3.0 | 993 |
/*
Scripts for cnprog.com
Project Name: Lanai
All Rights Resevred 2008. CNPROG.COM
*/
var lanai = {
/**
* Finds any <pre><code></code></pre> tags which aren't registered for
* pretty printing, adds the appropriate class name and invokes prettify.
*/
highlightSyntax: function(){
var style... | simalytics/askbot-devel | static/default/media/js/post.js | JavaScript | gpl-3.0 | 160,054 |
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
extends: 'airbnb-base',
// required to lint *.vue files
plugins: [
'html'
],
// check if imports actually resolve
... | gera2ld/Stylish-mx | .eslintrc.js | JavaScript | gpl-3.0 | 1,429 |
var interval = setInterval(function () {
$("button[type=submit]").hide();
$("p.info").hide();
try {
var prompting = loadTXT("/data/status.json");
if (prompting.indexOf("started")>0 || prompting.indexOf("active")>0 ) {
$("button[type=submit]").show();
$("p.warning").hide();
$("p.info").show();
clearI... | opendomo/OpenDomoOS | src/odbase/var/www/scripts/wizFirstConfigurationStep5.sh.js | JavaScript | gpl-3.0 | 389 |
/*
* Copyright 2012 OSBI 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... | clevernet/CleverNIM | saiku-ui/js/ga.js | JavaScript | gpl-3.0 | 1,366 |
// Copyright � 2010 - May 2014 Rise Vision Incorporated.
// Use of this software is governed by the GPLv3 license
// (reproduced in the LICENSE file).
function rvPlayerDCPage() {
var pageHTML = "";
this.get = function (port, ports, dcStatus, onStr, offStr) {
var res = pageHTML.replace("[PORT]", port)... | xlsuite/reach.network | player-socialweedia/app/js/player/dc_page.js | JavaScript | gpl-3.0 | 985 |
import WordCombination from "../../src/values/WordCombination";
import relevantWords from "../../src/stringProcessing/relevantWords";
import polishFunctionWordsFactory from "../../src/researches/polish/functionWords.js";
const getRelevantWords = relevantWords.getRelevantWords;
const polishFunctionWords = polishFunctio... | Yoast/js-text-analysis | spec/stringProcessing/relevantWordsPolishSpec.js | JavaScript | gpl-3.0 | 3,204 |
function gestionSelectElement(elementId,msgConfirm)
{field=document.getElementById(elementId);if(confirm(msgConfirm))
{selectedIndexASupprimer=field.options.selectedIndex;indice=new Array();texte=new Array();for(i=0;i<field.length;i++)
{indice[i]=field.options[i].value;texte[i]=field.options[i].text;}
field.innerHTML... | rotagraziosi/archi-wiki-inpeople | includes/common.js | JavaScript | gpl-3.0 | 510 |
YUI.add("lang/calendar-base_es",function(e){e.Intl.add("calendar-base","es",{very_short_weekdays:["Do","Lu","Ma","Mi","Ju","Vi","Sa"],first_weekday:1,weekends:[0,6]})},"patched-v3.18.1");
| Behzadkhosravifar/Alloy-DiagramBuilder-MVC | src/AlloyDiagram/Scripts/AlloyUi/calendar-base/lang/calendar-base_es.js | JavaScript | gpl-3.0 | 188 |
var http = require('https')
, qs = require('querystring')
, Cleverbot = function (options) {
this.configure(options);
};
Cleverbot.prepare = function(cb){
// noop for backwards compatibility
cb();
};
Cleverbot.prototype = {
configure: function (options){
if(options && options.cons... | SrNativee/BotDeUmBot | node_modules/cleverbot-node/lib/cleverbot.js | JavaScript | gpl-3.0 | 2,085 |
/*
* This file is generated and updated by Sencha Cmd. You can edit this file as
* needed for your application, but these edits will have to be merged by
* Sencha Cmd when upgrading.
*/
Ext.application({
name: 'LPB',
extend: 'LPB.Application',
requires: [
'LPB.util.sha256',
'Ext.plugin... | Lytjepole/Lytjepole-Beheer | LPB/app.js | JavaScript | gpl-3.0 | 1,604 |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var Page = require('../../../../../ba... | together-web-pj/together-web-pj | node_modules/twilio/lib/rest/api/v2010/account/queue/member.js | JavaScript | gpl-3.0 | 17,007 |
/*
Product Name: dhtmlxSuite
Version: 5.0
Edition: Standard
License: content of this file is covered by GPL. Usage outside GPL terms is prohibited. To obtain Commercial or Enterprise license contact [email protected]
Copyright UAB Dinamenta http://www.dhtmlx.com
*/
(function(){
var dhx = {};
//check some rule,... | vijaysebastian/bill | public/plugins/dhtmlxSuite_v50_std/sources/dhtmlxDataStore/codebase/datastore.js | JavaScript | gpl-3.0 | 94,389 |
import Component from './component';
export default class ElementsColorPicker extends elementorModules.ViewModule {
/**
* Initialize the Eye-Dropper module.
*
* @returns {void}
*/
onInit() {
super.onInit();
$e.components.register( new Component() );
}
}
| pojome/elementor | modules/elements-color-picker/assets/js/editor/module.js | JavaScript | gpl-3.0 | 271 |
// ==UserScript==
// @name Letterboxd Backdrop Remover
// @namespace https://github.com/emg/userscripts
// @description Removes backdrop image from film pages
// @copyright 2014+, Ramón Guijarro (http://soyguijarro.com)
// @homepageURL https://github.com/soyguijarro/userscripts
// @supportURL https://github... | rcalderong/userscripts | Letterboxd_Backdrop_Remover.user.js | JavaScript | gpl-3.0 | 1,478 |
/**
* @license
* Copyright 2012 Dan Vanderkam ([email protected])
* MIT-licensed (http://opensource.org/licenses/MIT)
*/
Dygraph.Plugins.Annotations = (function() {
"use strict";
/**
Current bits of jankiness:
- Uses dygraph.layout_ to get the parsed annotations.
- Uses dygraph.plotter_.area
It would be nice if ... | CINF/DataPresentationWebsite | sym-files2/dygraph/plugins/annotations.js | JavaScript | gpl-3.0 | 4,587 |
'use strict';
var desks = require('./helpers/desks');
describe('desks management', function () {
beforeEach(function() {
desks.openDesksSettings();
});
it('lists macros under the Macro tab for new desks', function () {
desks.newDeskBtn.click();
desks.showTab('macros');
e... | nistormihai/superdesk | client/spec/desks_management_spec.js | JavaScript | gpl-3.0 | 386 |
var searchData=
[
['booltobyte',['boolToByte',['../convert_8cpp.html#a86cb12eecbe381c8a16ab8334bb3d96f',1,'boolToByte(bool b): convert.cpp'],['../convert_8h.html#a86cb12eecbe381c8a16ab8334bb3d96f',1,'boolToByte(bool b): convert.cpp']]],
['bytetoint',['byteToInt',['../convert_8cpp.html#a5ceb93f16a36822ce84... | ttomasini/AWS | dist/Doxygen/html/search/functions_0.js | JavaScript | gpl-3.0 | 510 |
var searchData=
[
['file',['File',['../class_gra_vito_n_1_1_utils_1_1_file.html',1,'GraVitoN::Utils']]]
];
| null--/graviton | doc/GraVitoN/html/search/classes_66.js | JavaScript | gpl-3.0 | 109 |
/**
* (C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011
* (C) OpenEyes Foundation, 2011-2014
* This file is part of OpenEyes.
*
* OpenEyes 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, eithe... | openeyesarchive/eyedraw | src/ED/Drawing/Range.js | JavaScript | gpl-3.0 | 4,875 |
/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2014 Mozilla Corporation
Contributors:
Jeff Bryner [email protected]
Anthony Verez [email protected]
Yash ... | ameihm0912/MozDef | meteor/app/lib/collections.js | JavaScript | mpl-2.0 | 12,418 |
var FileBrowserComponent = BaseComponent.extend({
update: function(){
var myself = this,
$ph = $("#"+this.htmlObject),
root = this.rootFolder.charAt(this.rootFolder.length - 1) == "/" ? this.rootFolder : this.rootFolder+"/",
$content;
if (!this.fileExtensions)
this.fileEx... | jvelasques/cfr | cfr-core/resources/cdeComponents/FileBrowserComponent/FileBrowserComponent.js | JavaScript | mpl-2.0 | 2,715 |
// Usage:
// - Start rtc_server.js first:
// ./rtc_server --port 8000
//
// - Then use a docker build of slimerjs to run the test:
// IP_ADDR=$(hostname -I | awk '{print $1}')
// docker run -it -v `pwd`/test:/test slimerjs-0.9.6 slimerjs /test/test_up.js http://${IP_ADDR}:8000/
var common = require('common'),
... | moquist/raft.js | test/test_up.js | JavaScript | mpl-2.0 | 1,370 |
import React from 'react';
import { OverlayTrigger, Tooltip, NavItem, Glyphicon } from 'react-bootstrap';
// This authenticates to Auth0 by opening a new Window where Auth0 will do its
// thing, then closing that window when login is complete.
export default class Auth0LoginMenuItem extends React.PureComponent {
st... | lundjordan/services | src/shipit/frontend/src/components/auth/Auth0LoginMenuItem.js | JavaScript | mpl-2.0 | 925 |
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {... | SoftwareFactoryUPC/ProjectTemplates | Mobile/Windows Phone/Ejemplos Windows Phone 8.1/App tiles and badges sample/Shared/js/scenario9_imageProtocols.js | JavaScript | mpl-2.0 | 5,266 |
import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import { AccountApp } from '../../app/js/account/AccountApp'
describe('AccountApp', () => {
let props
let wrapper
before(() => {
props = {
children: {},
storageConnected: true,
location: {
path... | blockstack/blockstack-portal | test/account/AccountApp.test.js | JavaScript | mpl-2.0 | 621 |
import DS from 'ember-data';
import Ember from 'ember';
const { decamelize } = Ember.String;
export default DS.RESTSerializer.extend({
primaryKey: 'name',
keyForAttribute: function(attr) {
return decamelize(attr);
},
normalizeSecrets(payload) {
if (payload.data.keys && Array.isArray(payload.data.keys... | Aloomaio/vault | ui/app/serializers/transit-key.js | JavaScript | mpl-2.0 | 1,606 |
/*
YUI 3.10.0 (build a03ce0e)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('uploader', function (Y, NAME) {
/**
* Provides UI for selecting multiple files and functionality for
* uploading multiple files to the server with support for either... | miing/mci_migo | identityprovider/static/yui/3.10.0/uploader/uploader.js | JavaScript | agpl-3.0 | 1,747 |
// A frame represents the flow of game time, and is updated up to 60 times per second.
define(["data"], function (data) {
var Option = function () {
// The name of the option setting
this.name = "";
// The value of the option setting
this.value = false;
};
return data.de... | topiacloud/topia-online | src/plugins/core/data/option.js | JavaScript | agpl-3.0 | 349 |
var status = 0;
var request;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
... | ronancpl/MapleSolaxiaV2 | scripts/npc/2042009.js | JavaScript | agpl-3.0 | 511 |
//////////////////////////////////////////////////////////////////////////
// //
// This is a generated file. You can view the original //
// source in your browser if your browser supports source maps. //
// Source maps are s... | clinical-meteor/meteor-on-fhir | cordova-build-release/www/application/packages/clinical_accounts-oauth.js | JavaScript | agpl-3.0 | 10,784 |
/*File: tagsService.js
*
* Copyright (c) 2013-2016
* Centre National d’Enseignement à Distance (Cned), Boulevard Nicephore Niepce, 86360 CHASSENEUIL-DU-POITOU, France
* ([email protected])
*
* GNU Affero General Public License (AGPL) version 3.0 or later version
*
* This file is part of a program whi... | cnedDI/AccessiDys | app/scripts/services/tagsService.js | JavaScript | agpl-3.0 | 1,918 |
describe('Markdown plugin', function() {
const Vue = require('vue');
Vue.use(require('plugins/markdown'));
Vue.config.async = false;
afterEach(function() {
fixture.cleanup();
});
/**
* Remove invisible nodes generated by Vue.js
*/
function strip(el) {
[...el.chil... | opendatateam/udata | specs/plugins/markdown.specs.js | JavaScript | agpl-3.0 | 6,254 |
/*!
* CanJS - 2.2.9
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Fri, 11 Sep 2015 23:12:43 GMT
* Licensed MIT
*/
/*[email protected]#util/hashchange*/
define(['can/util/can'], function (can) {
(function () {
var addEvent = function (el, ev, fn) {
if (el.addEventListener) {
... | et304383/passbolt_api | app/webroot/js/lib/can/dist/amd/can/hashchange.js | JavaScript | agpl-3.0 | 719 |
define([
'collections/catalog_collection',
'test/mock_data/catalogs'
],
function(CatalogCollection,
MockCatalogs) {
'use strict';
var collection,
response = MockCatalogs;
beforeEach(function() {
collection = new CatalogCollection();
});
... | eduNEXT/edunext-ecommerce | ecommerce/static/js/test/specs/collections/catalog_collection_spec.js | JavaScript | agpl-3.0 | 924 |
(function (plugin, core, scene) {
var plug = new plugin.GlobalRendering({
name: "Axes",
tooltip: "Show world space axes",
icon: "img/icons/axis.png",
toggle: true,
on: false
});
var DEFAULTS = {
planeSize: 10,
gridSpacing: 10,
gridColor:... | cignoni/meshlabjs | js/mlj/plugins/rendering/Axes.js | JavaScript | agpl-3.0 | 16,533 |
import Ember from 'ember';
export default Ember.Controller.extend({
canCreateTask: Ember.computed('model.isAdmin', function() {
return this.get('model.isAdmin');
}),
});
| singularities/circular-works | frontend/app/controllers/organizations/show.js | JavaScript | agpl-3.0 | 180 |
var searchData=
[
['narrowing_5ferror',['narrowing_error',['../structgsl_1_1narrowing__error.html',1,'gsl']]],
['not_5fnull',['not_null',['../classgsl_1_1not__null.html',1,'gsl']]],
['null_5fspin_5fpolicy',['null_spin_policy',['../structquickcpplib_1_1__xxx_1_1configurable__spinlock_1_1null__spin__policy.html',1,... | FSMaxB/molch | outcome/include/outcome/quickcpplib/doc/html/search/classes_9.js | JavaScript | lgpl-2.1 | 369 |
define(['psc-tests-assert','Psc/UI/ErrorPane'], function(t) {
var setup = function(test) {
return t.setup(test);
};
module("Psc.UI.ErrorPane");
test("acceptance", function() {
setup(this);
var errorPane = new Psc.UI.ErrorPane({
container: $('#qunit-fixture'),
label: 'some',
... | webforge-labs/psc-cms-js | tests/Psc/UI/ErrorPaneTest.js | JavaScript | lgpl-3.0 | 1,066 |
/**
* SPDX-FileCopyrightText: © 2014 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
Loader.define(
'local-require/to-url',
['module', 'require'],
(module, require) => {
module.exports = require.toUrl('local-require/to-url');
}
);
| ipeychev/lfr-amd-loader | src/loader/__tests__/__fixtures__/loader/local-require/to-url.js | JavaScript | lgpl-3.0 | 278 |
/// <reference name="MicrosoftAjax.debug.js" />
/// <reference path="../ExtenderBase/BaseScripts.js" />
/// <reference path="../Common/Common.js" />
/// <reference path="../Animation/Animations.js" />
/// <reference path="../Animation/AnimationBehavior.js" />
(function() {
var scriptName = "ExtendedPopup"... | consumentor/Server | trunk/tools/AspNetAjaxLibraryBeta0911/Scripts/extended/PopupExtender/PopupBehavior.debug.js | JavaScript | lgpl-3.0 | 30,754 |
/*jslint nomen: true */
/*jslint plusplus: true */
/*jslint browser: true*/
/*jslint node: true*/
/*global d3, io, nunjucks*/
'use strict';
//
// JavaScript unit
// Add-on for the string and number manipulation
//
// Copyright (c) 2005, 2006, 2007, 2010, 2011 by Ildar Shaimordanov
//
/*
The following code is describ... | flower1024/nodePoloApi | public/string.js | JavaScript | unlicense | 23,495 |
(function() {
var Detail;
Detail = function(detailData) {
// 詳細情報を載せるwindow表示(半透明)
var t = windowAnimation(0);
var win = Ti.UI.createWindow({
backgroundColor:'#333333',
borderWidth:1,
borderColor:'#666',
width:"100%",
height:"1... | kirou/books_app_list | sinkancheaker/Resources/ui/Detail.js | JavaScript | apache-2.0 | 3,996 |
/**
* Test for Bidi restrictions on IDNs from RFC 3454
*/
var Cc = Components.classes;
var Ci = Components.interfaces;
var idnService;
function expected_pass(inputIDN)
{
var isASCII = {};
var displayIDN = idnService.convertToDisplayIDN(inputIDN, isASCII);
do_check_eq(displayIDN, inputIDN);
}
function expecte... | sergecodd/FireFox-OS | B2G/gecko/netwerk/test/unit/test_bug427957.js | JavaScript | apache-2.0 | 3,088 |
var welcomeText = (
' ____ _ ____ \n'+
'| _ \\ __ __ | / ___| \n'+
'| |_) |\\ \\/ / | \\___ \\ \n'+
'| _ < > < |_| |___) | \n'+
'|_| \\_\\/_/\\_\\___/|____/ \n'+
'\n试试下面这段代码来开启 RxJS 之旅:\n'+
'\n var subscription = Rx.Observable.interval(500)'+
'.take(4).subscribe(function ... | SangKa/RxJS-Docs-CN | doc/asset/devtools-welcome.js | JavaScript | apache-2.0 | 826 |
'use strict';
angular.module('publisherApp')
.factory('Register', function ($resource) {
return $resource('api/register', {}, {
});
});
| GIP-RECIA/esup-publisher-ui | src/main/webapp/scripts/components/auth/services/register.service.js | JavaScript | apache-2.0 | 163 |
/*
* 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/datafactoryManagement/lib/models/responsysObjectDataset.js | JavaScript | apache-2.0 | 3,288 |
/**
* @license
* Copyright 2015 Google Inc. 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
*/
CLASS({
pack... | mdittmer/foam | js/foam/ui/md/SectionView.js | JavaScript | apache-2.0 | 3,734 |
define(["jquery", "bootstrap", "d3","jnj_chart", "ohdsi_common", "datatables", "datatables-colvis", "colorbrewer", "tabletools"],
function ($, bootstrap, d3, jnj_chart, common, DataTables, DataTablesColvis, colorbrewer, TableTools) {
function ObservationsRenderer() {}
ObservationsRenderer.prototype... | OHDSI/Olympus | src/main/webapp/Heracles/src/js/charts/observations.js | JavaScript | apache-2.0 | 25,745 |
/*global require*/
'use strict';
// Require.js allows us to configure shortcut alias
require.config({
// The shim config allows us to configure dependencies for
// scripts that do not call define() to register a module
shim: {
underscore: {
exports: '_'
},
backbone: {
deps: [
'underscore',
'jque... | jiangjianqing/flow-demo | activiti/activiti5.springmvc/src/main/webapp/app/main.js | JavaScript | apache-2.0 | 867 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.fieldsConflictMessage = fieldsConflictMessage;
exports.OverlappingFieldsCanBeMerged = OverlappingFieldsCanBeMerged;
var _error = require('../../error');
var _find = require('../../jsutils/find');
var _find2 = _interopRequireDefau... | Khan/khan-linter | node_modules/graphql/validation/rules/OverlappingFieldsCanBeMerged.js | JavaScript | apache-2.0 | 25,753 |
/**
* @preserve Copyright 2012 Martijn van de Rijdt & Modilabs
*
* 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... | alxndrsn/enketo-core | src/widget/note/notewidget.js | JavaScript | apache-2.0 | 2,293 |
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Blockly module for Node. It includes Blockly core,
* built-in blocks, all the generators and the English locale.
*/
/* eslint-disable */
'use strict';
// Include the EN Locale by default.
Bloc... | google/blockly | scripts/package/node/index.js | JavaScript | apache-2.0 | 339 |
// 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
// distributed ... | jay-hodgson/SynapseWebClient | src/main/webapp/js/goog/ui/editor/toolbarcontroller.js | JavaScript | apache-2.0 | 9,007 |
//// [invalidTaggedTemplateEscapeSequences.ts]
function tag (str: any, ...args: any[]): any {
return str
}
const a = tag`123`
const b = tag`123 ${100}`
const x = tag`\u{hello} ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld`;
const y = `\u{hello} ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld... | microsoft/TypeScript | tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es5).js | JavaScript | apache-2.0 | 3,182 |
L.Polygon.polygonEditor = L.Polygon.extend({
_prepareMapIfNeeded: function() {
var that = this;
if(this._map._editablePolygons != null) {
return;
}
// Container for all editable polylines on this map:
this._map._editablePolygons = [];
// Click anywhere ... | NYPL/building-inspector | app/assets/javascripts/lib/vendor/leaflet-editable-polygon.js | JavaScript | apache-2.0 | 23,188 |
(function () {
'use strict';
angular.module('horizon.framework.widgets.help-panel', [])
.directive('helpPanel', ['horizon.framework.widgets.basePath',
function (path) {
return {
templateUrl: path + 'help-panel/help-panel.html',
transclude: true
};
}
]);
})();... | Hodorable/0602 | horizon/static/framework/widgets/help-panel/help-panel.js | JavaScript | apache-2.0 | 321 |
/*
* 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/hdInsightManagement/lib/models/clusterMonitoringRequest.js | JavaScript | apache-2.0 | 1,464 |
/**
* Copyright 2016 Google Inc. 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 applic... | cedricbellet/lighthouse | lighthouse-core/test/audits/dobetterweb/external-anchors-use-rel-noopener-test.js | JavaScript | apache-2.0 | 2,145 |
/*
* Copyright 2014-2018 the original author or authors.
*
* 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 app... | codecentric/spring-boot-admin | spring-boot-admin-server-ui/src/main/frontend/views/instances/details/process-uptime.js | JavaScript | apache-2.0 | 1,540 |
module.exports = function(ctx) {
var fs = ctx.requireCordovaModule('fs'),
path = ctx.requireCordovaModule('path'),
os = require("os"),
readline = require("readline"),
deferral = ctx.requireCordovaModule('q').defer();
var lineReader = readline.createInterface({
terminal: ... | alfredo777/btmglobalconsulting | plugins/phonegap-plugin-push/scripts/copyAndroidFile.js | JavaScript | apache-2.0 | 856 |
/**
* This module sets default values and validates ortb2 first part data
* @module modules/firstPartyData
*/
import { config } from '../../src/config.js';
import * as utils from '../../src/utils.js';
import { ORTB_MAP } from './config.js';
import { submodule } from '../../src/hook.js';
import { getStorageManager } ... | tchibirev/Prebid.js | modules/validationFpdModule/index.js | JavaScript | apache-2.0 | 7,184 |
var AddressInSeattleView = function (answerService) {
this.initialize = function () {
// Define a div wrapper for the view (used to attach events)
this.$el = $('<div/>');
var queryAddress = function(evt) {
var geocodeDeferred = $.Deferred();
var geocoder = new google.maps.Geocoder(... | working-wa/whats-my-wage-app | www/js/AddressInSeattleView.js | JavaScript | apache-2.0 | 2,780 |
"use strict";
var CONST = require('../persistence/sqlconst');
var util = require("util");
var DEFAULT_LIMIT = 50;
var MAX_THRESHOLD = 500;
var knexModule = require("knex");
/**
*
* @param name
* @constructor
*/
function Blog(knexConfig) {
this.knex = knexModule(knexConfig);
}
//DDL Functions
Blog.prototype.dr... | mohan82/myblog-api | persistence/blog.js | JavaScript | apache-2.0 | 2,864 |
/a/lib/tsc.js --w
//// [/user/username/projects/myproject/a.ts]
export interface Point {
name: string;
c: Coords;
}
export interface Coords {
x2: number;
y: number;
}
//// [/user/username/projects/myproject/b.ts]
import { Point } from "./a";
export interface PointWrapper extends Point {
}
//// ... | nojvek/TypeScript | tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js | JavaScript | apache-2.0 | 7,454 |
(function() {
function timecode() {
return function(seconds) {
var seconds = Number.parseFloat(seconds);
if (Number.isNaN(seconds)) {
return '-:--'
};
var wholeSeconds = Math.floor(seconds);
var minutes = Math.floor(wh... | sjcliu/bloc-jams-angular | dist/scripts/filters/timecode.js | JavaScript | apache-2.0 | 692 |
/**
* 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-iframely/0.1/test/test-amp-iframely.js | JavaScript | apache-2.0 | 12,110 |
import { get } from 'lodash';
class WizardHelper {
constructor() {}
isScheduleModeEvery(scheduleString) {
return !!scheduleString.match(/every\s(\d+)\s(seconds|minutes|hours|days|months|years)/);
}
isWizardWatcher(watcher) {
return get(watcher, 'wizard.chart_query_params');
}
getUniqueTagId(name... | elasticfence/kaae | public/pages/watcher_wizard/services/wizard_helper/wizard_helper.js | JavaScript | apache-2.0 | 414 |
// (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/DocumentConfig.js | JavaScript | apache-2.0 | 1,979 |
//>>built
define("dojo/NodeList-data",["./_base/kernel","./query","./_base/lang","./_base/array","./dom-attr"],function(_1,_2,_3,_4,_5){var _6=_2.NodeList;var _7={},x=0,_8="data-dojo-dataid",_9=function(_a){var _b=_5.get(_a,_8);if(!_b){_b="pid"+(x++);_5.set(_a,_8,_b);}return _b;};var _c=_1._nodeData=function(_d,_e,_f){... | Appudo/Appudo.github.io | static/release/dojo/NodeList-data.js | JavaScript | apache-2.0 | 930 |
/*
* Copyright 2016 e-UCM (http://www.e-ucm.es/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* This project has received funding from the European Union’s Horizon
* 2020 research and innovation programme under grant agreeme... | e-ucm/a2 | routes/applications.js | JavaScript | apache-2.0 | 25,370 |
import React from 'react';
import { Box, WorldMap } from 'grommet';
export const SelectPlace = () => {
const [places, setPlaces] = React.useState();
const onSelectPlace = (place) => {
console.log('Selected', place);
setPlaces([{ color: 'graph-1', location: place }]);
};
return (
<Box align="cent... | HewlettPackard/grommet | src/js/components/WorldMap/stories/SelectPlace.js | JavaScript | apache-2.0 | 595 |
/*!
* ${copyright}
*/
// Provides the Design Time Metadata for the sap.m.Slider control
sap.ui.define([],
function () {
"use strict";
return {
name: {
singular: "SLIDER_NAME",
plural: "SLIDER_NAME_PLURAL"
},
palette: {
group: "INPUT",
icons: {
svg: "sap/m/designtime/Slider.icon.svg... | SAP/openui5 | src/sap.m/src/sap/m/designtime/Slider.designtime.js | JavaScript | apache-2.0 | 709 |
var zkUtil = require('../util');
var zkConstants = require('../constants');
var ZK = require('zookeeper').ZooKeeper;
/**
* @constructor
* encapsulate the lock algorithm. I didn't want it exposed in the client.
* @param {ZkClient} client client doing the locking.
* @param {String} node name of lock.
* @param {Fu... | racker/service-registry | node_modules/zookeeper-client/lib/algorithms/lock.js | JavaScript | apache-2.0 | 6,297 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
When "String" is called as part of a new expression, it is a constructor: it initialises the newly created object and
The [[Value]] property of the newly constructed... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/String/S15.5.2.1_A1_T16.js | JavaScript | bsd-2-clause | 4,487 |
/* global define */
define([
'jquery',
'underscore',
'./dist',
'./axis'
], function($, _, dist, axis) {
var EditableFieldChart = dist.FieldChart.extend({
template: 'charts/editable-chart',
toolbarAnimationTime: 200,
formAnimationTime: 300,
events: _.extend({
... | chop-dbhi/cilantro | src/js/cilantro/ui/charts/editable.js | JavaScript | bsd-2-clause | 8,396 |
module.exports =
{
"WMSC": {
"WMSC_1_1_1" : require('./1.1.1/WMSC_1_1_1')
}
};
| juanrapoport/ogc-schemas | scripts/tests/WMSC/WMSC.js | JavaScript | bsd-2-clause | 84 |
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.events.condition');
goog.require('ol.interaction.Select');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.source.GeoJSON');
goog.require('ol.source.MapQuest');
var raster = new ol.layer.Tile({
source: new ol.source.Ma... | mechdrew/ol3 | examples/select-features.js | JavaScript | bsd-2-clause | 1,939 |
// Copyright 2012 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.
var chrome;
if (!chrome)
chrome = {};
if (!chrome.searchBox) {
chrome.searchBox = new function() {
var safeObjects = {};
chrome.searchBoxOnWin... | leiferikb/bitpop-private | chrome/renderer/resources/extensions/searchbox_api.js | JavaScript | bsd-3-clause | 10,187 |
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2015, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|--------------------------------------------------... | dwillmer/playground | scripts/dtsbundle.js | JavaScript | bsd-3-clause | 539 |
/*
Language: Brainfuck
Author: Evgeny Stepanischev <[email protected]>
Website: https://esolangs.org/wiki/Brainfuck
*/
function(hljs){
var LITERAL = {
className: 'literal',
begin: '[\\+\\-]',
relevance: 0
};
return {
aliases: ['bf'],
contains: [
hljs.COMMENT(
'[^\\[\\]\\.,\\+\\-<... | MakeNowJust/highlight.js | src/languages/brainfuck.js | JavaScript | bsd-3-clause | 792 |
'use strict';
var _ = require('lodash');
var utility = require('../utility');
describe('language alias', function() {
before(function() {
var testHTML = document.querySelectorAll('#language-alias .hljs');
this.blocks = _.map(testHTML, 'innerHTML');
});
it('should highlight as aliased language', ... | tenbits/highlight.js | test/special/languageAlias.js | JavaScript | bsd-3-clause | 557 |