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
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
rovats/waltz
waltz-ng/client/extensions/components/change-initiative/change-initiative-section/db-change-initiative-section.js
JavaScript
apache-2.0
2,462
'use strict'; // Converts Celsius to Fahrenheit function celsiusToFahrenheit(tempC) { return Math.round(tempC * 1.8 + 32); } // Converts Fahrenheit to Celsius function fahrenheitToCelsius(f) { //f = c * 1.8 + 32 //c = (f - 32) / 1.8 return Math.round((f - 32.0) / 1.8); } // Rounds n up to the neares...
declanshanaghy/bbqberry
static/bbqberry/app/js/util.js
JavaScript
apache-2.0
566
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/array/shape/benchmark/benchmark.js
JavaScript
apache-2.0
4,914
/** * jQuery bxSlider v3.0 * http://bxslider.com * * Copyright 2011, Steven Wanderski * http://bxcreative.com * * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php * */ (function($){ $.fn.bxSlider = function(options){ var defaults = { mode: 'ho...
vikigroup/cbuilk
web/skin/temp7/scripts/jquery.bxSlider.js
JavaScript
apache-2.0
42,879
var indexerLanguage="en"; //Auto generated index for searching. w["-"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24"; w["-1"]="20"; w["-d"]="2,10,18"; w["-h"]="2"; w["-l"]="2,4"; w["-n"]="10"; w["-nr"]="16"; w["-o"]="2,18"; w["-p"]="2,18"; w["-pn"]="8"; w["-s"]="2,10"; w["-t"]="2"; w["-tulpen"]="0"...
midonet/midonet-docs
www/docs/en/troubleshooting-guide/5.0/content/search/index-1.js
JavaScript
apache-2.0
5,406
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { isEmpty } from 'ramda'; import { browserHistory as history } from 'react-router'; import { connect } from 'react-redux'; import { selectMostRecentVerification, selectPreviousVerificationCount, selectPartnerVerifications, } from...
unicef/un-partner-portal
frontend/src/components/partners/profile/overview/verification/verificationContent.js
JavaScript
apache-2.0
3,642
checkUser = function() { var user = Meteor.user(); if(!(Meteor.loggingIn() || user)) { throwNotification(TAPi18n.__('errorNotUser')); return false } else { return true } } checkLang = function() { // Init Lang var lang = getUserLanguage(); if(!localStorage.getItem('userLocale')) { localSto...
pfritsch/bandedejoueurs
client/main.js
JavaScript
apache-2.0
5,655
$(document).ready(function() { $('#addProperty').click(function() { addProperty('',''); }) $('#removeProperty').click(function() { $('#properties').find('.form-group:last-child').remove(); }); }); var addProperty = function(key, value) { var html = ''; html += '<div cl...
support-project/knowledge
src/main/webapp/js/mailhookconfig.js
JavaScript
apache-2.0
1,082
/*! jQuery UI - v1.10.0 - 2013-02-05 * http://jqueryui.com * Includes: jquery.ui.datepicker-nl.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.nl={closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","...
rjsteinert/taktaktak
assets/scripts/ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nl.min.js
JavaScript
apache-2.0
844
var addressBookDisallowed = function() { alert("Sorry!!!....you can not Access Address book."); }; /* var performAddressBookFunction = function() { var singleValue = ['recordId', 'firstName', 'middleName', 'lastName', 'fullName', 'prefix', 'suffix', 'nickname', 'firstPhonetic', 'middlePhonetic', 'lastPhonetic', 'orga...
jayeshIT/AlloyContactsDemo
app/assets/real.js
JavaScript
apache-2.0
5,772
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ goog.module('goog.events.BrowserEventTest'); goog.setTestOnly(); const BrowserEvent = goog.require('goog.events.BrowserEvent'); const Coordinate = goog.require('goog.math.Coordinate'); const PropertyReplacer = goog.re...
google/closure-library
closure/goog/events/browserevent_test.js
JavaScript
apache-2.0
7,844
/* * 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 ...
vohtaski/moodle-shindig
features/src/main/javascript/features/opensocial-reference/album.js
JavaScript
apache-2.0
3,607
/** * Copyright 2012 Mehran Ziadloo & Siamak Sobhany * Pomegranate Framework Project * (http://www.sourceforge.net/p/pome-framework) * * 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 Li...
ziadloo/JSAMI
offweb/packages/Pomegranate/framework/Pomegranate.js
JavaScript
apache-2.0
30,389
'use strict'; const React = require('react'); const Carousel = require('nuka-carousel'); const ResumePropTypes = require('../../prop_types/resume'); const Entry = React.createClass({ propTypes: { entry: ResumePropTypes.references }, render: function () { return ( <div> ...
suddi/suddi.github.io
app/components/section/references.js
JavaScript
apache-2.0
2,352
/* * Copyright 2015 IBM Corp. * * 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 ...
Juniper/contrail-horizon
neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/loadbalancers/detail.controller.spec.js
JavaScript
apache-2.0
2,343
Ext.define("Inubit.WebModeler.PropertyForm", { extend: 'Ext.form.Panel', displayProperties: function( object ) { //this.removeAll( true ); if ( object.properties ) { var gray = false; var visProperties = object.getVisibleProperties(); var toAdd = [] ...
bptlab/processeditor
www/js/pages/editor/PropertyForm.js
JavaScript
apache-2.0
6,629
Ti.include('lib/presentation/ui.js') var largeLabel = mcd.ui.createLargeLabel('Large Label', mcd.utils.scale(10, 'v'), 'center', 10) var uiObj = [largeLabel] var label = mcd.ui.createStandardLabel('StandardLabel', mcd.utils.scale(15, 'v'), 'center', 150) uiObj.push(label) var tintLabel = mcd.ui.createTintLab...
alanleard/SmartThings
modules/commonjs/ti.smart/1.0/example/Resources/testApp/testUi.js
JavaScript
apache-2.0
2,872
'use strict'; function Modal() { this.substrate = document.querySelector('#substrate'); this.setListeners(); } Modal.prototype.watch = function () { if(!app.modal.innerHTML.length){ return null; } app.modal.style.top = "50%"; app.modal.style.transform = "translate(-50%, -50%)"; ...
QuickBlox/quickblox-javascript-sdk
samples/chat/js/modal.js
JavaScript
apache-2.0
20,775
'use strict'; /** * @ngdoc overview * @name we99App * @description * # we99App * * Main module of the application. */ angular .module('we99App', [ 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'ui.bootstrap', 'smart-table', 'angularFileUpload',...
massfords/we99
we99-web/src/main/webapp/scripts/app.js
JavaScript
apache-2.0
3,632
function main() { var obj = { "t":"t", "i":0, "f":function(param){console.log("I am the best\n")} } console.log(JSON.stringify(obj)); var test; test = Object.assign({}, obj); test.f(); } main();
TuckerBMorgan/CardGame
Server/testFunction.js
JavaScript
apache-2.0
210
"use strict"; var mongoose = require('mongoose'), md5 = require('MD5'); var UserSchema = new mongoose.Schema({ email: { type: String, index: true }, password: String }); UserSchema.statics.createNew = function (email, password, cb) { if(!email) { cb("email is required for user creation"); ...
rkamradt/RetailInventory
app/models/user.js
JavaScript
apache-2.0
1,821
//产品积分列表相关操作 var game_addGameQuestionManager = function() { // 初始化页面相关按钮事件 var initEvent = function() { $("#singleAdd").on("click", function() { var submitForm = $("#submitForm"); if (!submitForm.valid()) { return; } var requestURL = "addInvestigationQuestion.html"; var tips = "增加失败!";...
xdvalue/mcoding
base_dependencies/sns_module/src/main/webapp/mobileview/resources/js/custom/investigation/addGameQuestion.js
JavaScript
apache-2.0
9,534
mm.Template( "src/test/resources/template-example.mustach", mm.Hash( 2, mm.Cycle([ mm.Pair("path", "search"), mm.Pair("query", mm.List(1, mm.Cycle([ mm.Pair("q", "word"), mm.Pair("as_epq",...
maxmind/jmeter-plugin-http-generator
src/test/resources/template-example.js
JavaScript
apache-2.0
351
// Copyright 2012 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
revelation/closure-library-2099
closure/goog/labs/result/deferredadaptor.js
JavaScript
apache-2.0
1,872
function addTenant(isUpdating, isPublicCloud, isEmailUser) { var reason = ""; var addTenantForm = document.getElementById('addTenantForm'); var adminPassword = document.getElementById('admin-password'); var adminPasswordRepeat = document.getElementById('admin-password-repeat'); var email ...
maheshika/carbon-multitenancy
components/tenant-mgt/org.wso2.carbon.tenant.mgt.ui/src/main/resources/web/tenant-mgt/js/tenant_config.js
JavaScript
apache-2.0
7,439
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
dremio/dremio-oss
dac/ui/src/components/Tree/ResourceTreeController-spec.js
JavaScript
apache-2.0
7,183
/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Unit tests for a strict connection checker that extends * Blockly.ConnectionChecker. Based on blockly's connection_checker_tests.js. * @author fenichel@google.com (Rachel Fenichel) */ const chai = require('...
google/blockly-samples
plugins/strict-connection-checker/test/checker_test.mocha.js
JavaScript
apache-2.0
10,500
$(document).ready(function() { if ( $(".contributioncontent").length) { tinymce.init({ selector: "textarea#content", language : 'de', browser_spellcheck : true , height: 500, convert_urls: false, extended_valid_elements : "i[class],span[itemprop|itemscope|itemtype|class]...
jochum-mediaservices/contentinum5.5
module/Mcwork/assets/backend/js/vendor/tinymce/hsgb.eildienst.js
JavaScript
apache-2.0
4,566
'use strict'; /*global describe,beforeEach,inject,it,expect*/ describe('Service: solrUrlSvc', function () { beforeEach(module('o19s.splainer-search')); var solrUrlSvc = null; beforeEach(inject(function (_solrUrlSvc_) { solrUrlSvc = _solrUrlSvc_; })); describe('parse args', function() { it('parses s...
o19s/splainer-search
test/spec/solrUrlSvc.js
JavaScript
apache-2.0
10,138
/*! * ${copyright} */ /*global HTMLScriptElement, HTMLLinkElement, XMLHttpRequest */ /* * Provides the AppCacheBuster mechanism to load application files using a timestamp */ sap.ui.define(['jquery.sap.global', 'sap/ui/base/ManagedObject', './Core', 'sap/ui/thirdparty/URI'], function(jQuery, ManagedObject, Core,...
cschuff/openui5
src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js
JavaScript
apache-2.0
20,335
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.FacetFilterList. sap.ui.define(['jquery.sap.global', './List', './library'], function(jQuery, List, librar...
openui5/packaged-sap.m
resources/sap/m/FacetFilterList.js
JavaScript
apache-2.0
27,076
/* * send.js * * David Janes * IOTDB.org * 2016-01-24 * * Demonstrate sending something * Make sure to see README first */ var Transport = require('../COAPTransport').COAPTransport; var transport = new Transport({ }); var _update = function() { var now = (new Date()).toISOString(); console.log...
dpjanes/iotdb-transport-coap
samples/send.js
JavaScript
apache-2.0
602
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/blas/ext/base/ssortsh/lib/main.js
JavaScript
apache-2.0
917
// export const API_ROOT = 'http://api.shop.app' // export const IMG_ROOT = 'http://shop.app' // export const SEC_IMG_ROOT = 'http://shop.app' export const API_ROOT = 'http://192.168.0.108' export const IMG_ROOT = 'http://192.168.0.108/shop-wap/' export const SEC_IMG_ROOT = 'http://shop.app' export const TOKEN_KEY = ...
alpfish/shop-wap
src/config.js
JavaScript
apache-2.0
363
(function() { function config($stateProvider, $locationProvider) { $locationProvider .html5Mode({ enabled: true, requireBase: false }); $stateProvider .state('landing', { url: '/', ...
jbag123/bloc-jams-angular
app/scripts/app.js
JavaScript
apache-2.0
994
/*! * ${copyright} */ /** * See {@link https://lodash.com/docs/4.17.21#pickBy} * * @function * @alias module:sap/base/util/restricted/_pickBy * @author SAP SE * @since 1.71 * @version ${version} * @private * @ui5-restricted */ sap.ui.define([ "sap/base/util/restricted/_/lodash.custom" ], function(lodash) { ...
SAP/openui5
src/sap.ui.core/src/sap/base/util/restricted/_pickBy.js
JavaScript
apache-2.0
361
/** * Timeago is a jQuery plugin that makes it easy to support automatically * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago"). * * @name timeago * @version 1.3.0 * @requires jQuery v1.2.3+ * @author Ryan McGeary * @license MIT License - http://www.opensource.org/licenses/mit-license.php ...
cjmarkham/asimpleforum
public/js/timeago.js
JavaScript
apache-2.0
5,620
/** * Copyright 2017 Google 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 agreed to i...
jsayol/firebase-js-sdk
integration/messaging/test/utils/getErrors.js
JavaScript
apache-2.0
752
/** * Created by Ting on 2014/11/17. */ var wlAlbumClient = angular.module('wlAlbumClient', ['ngRoute', 'ngTouch', 'ui.bootstrap', "wlcHelpersMod"]); wlAlbumClient.constant('WLC_CONF', { 'v1ContextPath': '/console', 'v2ContextPath': '/console2', 'shopContextPath': '/shop' }); wlAlbumClient.controller('w...
jarvisji/Demo-AngularJS-AdminConsole
app/album/album-client-controller.js
JavaScript
apache-2.0
4,200
var app = require('express')(); witek = require('../../..'); witek.load(app, __dirname + '/config'); console.log('app starts'); exports.app = app; // I'm returning it only for tests
irla/witek-mvc
test/fixtures/full_app/app.js
JavaScript
apache-2.0
184
angular.module('mnVerticalBar', []).directive('mnVerticalBar', function () { return { restrict: 'A', scope: { conf: '=' }, isolate: false, templateUrl: 'components/mn_vertical_bar/mn_vertical_bar.html' }; });
t3rm1n4l/ns_server
priv/public/angular/app/components/mn_vertical_bar/mn_vertical_bar_directive.js
JavaScript
apache-2.0
239
//based on: http://www.d3noob.org/2013/01/adding-tooltips-to-d3js-graph.html var trafficfines = trafficfines || {} !function() { var ttCounter = 0 function D3Tooltip (d3, ctx) { this.d3 = d3 this.id = 'd3-tooltip-' + ttCounter this.class = 'd3-tooltip' this.$el = d3.select('...
Code4SA/traffic-fines
times/libs/d3-tooltip.js
JavaScript
apache-2.0
2,017
var tape = require('tape'); var mjAPI = require("../lib/main.js"); tape('basic test: check MathJax core', function(t) { t.plan(1); var tex = '{\\displaystyle \\left(\\left(\\sum_A\\right)B \\right)}'; mjAPI.start(); mjAPI.typeset({ math: tex, format: "inline-TeX", svg: true ...
wikimedia/MathJax-node
test/T135955.js
JavaScript
apache-2.0
541
import getters from '../../assets/src/store/getters' describe('test getters', () => { it('check if is admin', () => { const state = { user: { role: 'normal' } } expect(getters.isAdmin(state)).toBe(false) state.user.role = 'admin' expect(getters.isAdmin(state)).toBe(true) state.user.role = 'supe...
g-plane/md-ui-for-bs
specs/store/getters.spec.js
JavaScript
apache-2.0
382
/* * Copyright 2016 IBM Corp. * * 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 i...
EclairJS/eclairjs
client/lib/server.js
JavaScript
apache-2.0
2,701
/** * Created by shusesshou on 2017/9/21. */ const getters = { status: state => state.user.status, username: state => state.user.username, name: state => state.user.name, roles: state => state.user.roles, addRouters: state => state.permission.addRouters } export default getters
ZhuXS/RESult
UI/src/store/getters.js
JavaScript
apache-2.0
302
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2014 SAP AG or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // A bridge between the jQuery.sap plugin and the SAPUI5 Core sap.ui.define(['jquery.sap.global', 'sap/ui/Global'], func...
esjewett/tdcode-examples
lib/openUI5/resources/jquery.sap.ui-dbg.js
JavaScript
apache-2.0
5,632
"use strict"; angular.module('ukebook').controller('SongTextCtrl', ['$rootScope', '$scope', '$location', '$routeSegment', '$interval', '$http', '$auth', 'songApi', 'upload', function($rootScope, $scope, $location, $routeSegment, $interval, $http, $auth, songApi, upload) { var scriptasaurus = ukeGeeks.scriptasaurus; ...
hutzelknecht/ukebook
frontend/src/song/songText/SongText.controller.js
JavaScript
apache-2.0
1,565
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/array/dataview/test/test.js
JavaScript
apache-2.0
5,169
"use strict"; 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 === "object" && typeof Reflect.decorate === "function") r = R...
kaular/ArchRef
ArchRefClient/ArchRefClient/node_modules/angular2-flash-message/module/flash-message.service.js
JavaScript
apache-2.0
1,384
function LogsWindow(user, isMe) { var customRows = require('rows').customTableRows; var logs_width = 230; var sideview_width = 40; var winTitle = L('mylog'); var ungrouped_status_array = []; if (!isMe) { if (user.custom_fields.sex == 'MALE') { winTitle = L('hislog'); } else winTitle = L('herlog'); ...
yangfan1003/youhere
Resources/ui/logs/LogsWindow.js
JavaScript
apache-2.0
6,389
'use strict'; var common = require('../common'); var assert = require('assert'); var t = Date.now(); var diff; setTimeout(function() { diff = Date.now() - t; console.error(diff); }, 0.1); process.on('exit', function() { assert.ok(diff < 100); });
dreamllq/node
test/parallel/test-regress-GH-897.js
JavaScript
apache-2.0
256
(function(){ "use strict"; var MessageModule = angular.module("AlphaApp"); MessageModule.component("messageComponent", { templateUrl: "views/messages/message-component.html", controllerAs: "model", bindings: { user: "=", recieved: "=msgsRecieved", sent: "=msgsSent" }, controller: funct...
rushabh-wadkar/Production-Workflow-System
views/messages/message-component.js
JavaScript
apache-2.0
4,887
import React, { PropTypes, Component } from 'react' import { Table, Button, Input, Select, Switch, Icon, Spin } from 'antd' import { FormattedMessage } from 'react-intl' import { intlMessage } from '@/app/i18n' import { fromJS } from 'immutable' const Option = Select.Option // 导入样式 import styles from '../../res/styles...
BriData/DBus
dbus-keeper/keeper-web/app/components/ProjectManage/ProjectHome/ProjectEditedTabs/Resource/EncodeConfig.js
JavaScript
apache-2.0
14,513
/* * testSuiteFilesAsync.js - list the test files in this directory * * Copyright © 2018, 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://www.apache.org/lice...
iLib-js/iLib
js/test/strings-ext/testSuiteFilesAsync.js
JavaScript
apache-2.0
775
'use strict'; var gulp = require('gulp'); gulp.task('watch', ['styles'], function () { gulp.watch('src/{app,components}/**/*.scss', ['styles']); gulp.watch('src/{app,components}/*.scss', ['styles']); gulp.watch('src/{app,components}/**/*.js', ['scripts']); gulp.watch('src/assets/images/**/*', ['images']); g...
amandeepg/matchbox
gulp/watch.js
JavaScript
apache-2.0
424
var _r_e_vector3_8h = [ [ "x", "_r_e_vector3_8h.html#a9dd4e461268c8034f5c8564e155c67a6", null ], [ "y", "_r_e_vector3_8h.html#a415290769594460e2e485922904f345d", null ], [ "z", "_r_e_vector3_8h.html#afbade9e36a3f36d3d676c1b808451dd7", null ] ];
OlehKulykov/re-sdk
doc/html/_r_e_vector3_8h.js
JavaScript
apache-2.0
256
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/strided/base/mskunary/test/test.main.js
JavaScript
apache-2.0
6,738
/* * angular-loading-bar * * intercepts XHR requests and creates a loading bar. * Based on the excellent nprogress work by rstacruz (more info in readme) * * (c) 2013 Wes Cruver * License: MIT */ (function() { 'use strict'; // Alias the loading bar for various backwards compatibilities since the project has...
Mobet/Mobet-Net
Mobet-Net/Mobet.Resources/Resources/plugins/angular-loading-bar/loading-bar.js
JavaScript
apache-2.0
9,962
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import Common from './common/common'; import Components from './components/components'; import AppComponent from './app.component'; import ngMockE2E from 'angular-mocks'; import autoFocus from 'angular-auto-focus'; import 'normalize.css'; angular...
agnellvj/zoo_roster
client/app/app.js
JavaScript
apache-2.0
732
/* * Copyright 2016 Space Dynamics Laboratory - Utah State University Research 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/LICE...
jbottel/openstorefront
server/openstorefront/tinymcetextarea/src/main/resources/META-INF/resources/webjars/tinymcetextarea/5.1/tinymce/plugins/savedsearchlink/plugin.js
JavaScript
apache-2.0
1,388
var Draggable = require('ti.draggable'); var win = Ti.UI.createWindow({ backgroundColor:'white', height: '100%', width: '100%', fullscreen: true, exitOnClose: true }); var sonido = Ti.Media.createSound({url:"/images/encabezados/colorea_miedo.m4a"}); var encabezado = Ti.UI.createImageView({ image: '/images/enc...
chenchienhao/Menu_PIA
app/controllers/colorea_nivel_4.js
JavaScript
apache-2.0
8,327
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _lodash = _interopRequireDefault(require("lodash")); var _postcss = _interopRequireDefault(require("postcss")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj };...
BigBoss424/portfolio
v6/node_modules/tailwindcss/lib/lib/substituteTailwindAtRules.js
JavaScript
apache-2.0
2,166
Polymer({ is: "paper-toolbar", hostAttributes: { role: "toolbar" }, properties: { bottomJustify: { type: String, value: "" }, justify: { type: String, value: "" }, middleJustify: { type: String, ...
Traderlynk/Etherlynk
communicator/extension/webcam/elements/js/wb-cam-app.63d34b8d-34.js
JavaScript
apache-2.0
1,529
//Collection publish methods Meteor.publish( 'fuzzylocations', function( stages ){ check( stages, Match.OneOf( Array, null, undefined ) ); let query = {}; let stagelocations = ''; //TODO optimize to add/remove only the changed stages to avoid reloading them all every time - not sure if necessary if ( stage...
vedelpuuks/BFEE-location-finder
server/publications/fuzzylocations.js
JavaScript
apache-2.0
620
(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['ApiClient'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = fact...
mrsimpson/vtiger-client
src/vtiger_consumer_swagger/src/model/GetChallengeResultBodyResult.js
JavaScript
apache-2.0
2,423
/** * Copyright 2021 Google LLC. 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 app...
googlemaps/semantic-release-config
release.config.js
JavaScript
apache-2.0
2,220
var React = require('react'); var App = React.createClass({ getInitialState: function() { return {text: ''}; }, handleChange: function (e) { this.setState({text: e.target.value}); }, render: function() { return ( <div> <h1>React Blank</h1> ...
zlykh/dspro
webservice/src/main/resources/static/js/App.js
JavaScript
apache-2.0
475
var webpack = require('webpack'); var path = require('path'); var host = 'localhost'; var port = 5001; module.exports = { devServerPort: port, devtool: 'inline-source-map', entry: [ // entry point for webpack-dev-server to enter 'webpack-dev-server/client?http://' + host + ':' + port, 'webpack/hot/only-d...
jsfeb26/gsd
webpack.config.dev.js
JavaScript
apache-2.0
820
import React, { useEffect, useRef } from 'react' import PropTypes from 'prop-types' import QRCode from 'qrcode' // FPCC function QrcodeModalContent({ closeHandler, url }) { const qrCodeRef = useRef(null) useEffect(() => { const canvas = qrCodeRef.current if (canvas) QRCode.toCanvas(canvas, url) }, []) ...
First-Peoples-Cultural-Council/fv-web-ui
frontend/app_v2/src/components/Actions/QrcodeModalContent.js
JavaScript
apache-2.0
1,216
var colorDictionary; var colorDictionaryEn; var currentColor; //var colorsName = []; $.getJSON("js/ColorDictionary.json", function(colorList){ colorDictionary = colorList; loadColorNames(colorDictionary); }); $.getJSON("js/ColorDictionary-en.json", function(colorList){ colorDictionaryEn = colorList; ...
northerneyes/ColorFinder
GoogleChrome/js/background.js
JavaScript
apache-2.0
521
function getBook(bookId) { showdiv(); $.ajax({ url:'../book/getTemporaryBook', type:"GET", data:{'bookId': bookId}, success:function(result){ $("#addAndUpdateBook").show(); if(null != result.bookTemporary) { $("#bookId").val(result.bookTemporary.id); $("#bookName").val(result.bookTemporary.book...
xuelinyi/scott
src/main/webapp/views/js/book.js
JavaScript
apache-2.0
1,107
// This is a sample skill called State Pop // It expects to receive a StateRequestIntent with a slot value called usstate. // var Alexa = require('alexa-sdk'); var MymockGet = require("../mockGet.js"); // adjust to match your project folder structure exports.handler = function(event, context, callback){ var ale...
tcardona/PSEG-Alexa-Project
ExternalCalls/tests/index.js
JavaScript
apache-2.0
1,232
var expect = require("chai").expect; var q = require("../newsquery"); describe("News Query", function () { describe("Raw query", function () { it("it will get a number of news without error", function (done) { this.timeout(10000); q.rawQuery('search=api management&$orderby=timestamp desc&$top=5', fun...
arafato/azure-news-explorer-api
lib/test/newsquery.t.js
JavaScript
apache-2.0
762
Ext.ns('jibu.security'); jibu.security.PM = Ext.extend(Ext.Panel,{ layout:'hbox', layoutConfig: { align : 'stretch', pack : 'start' }, initComponent:function() { var con...
cloudscode/jibu
jibu-web/jibu-core-extjs/src/main/webapp/js/system/administration/pm.js
JavaScript
apache-2.0
44,131
google.load('visualization', '1.0', { 'packages': ['corechart'] }); google.setOnLoadCallback(function () { $(document).ready(drawChart); }); function drawChart() { var elem = $('#issuechart'); var data = [['User', 'Issue Count']]; var dataPairs = elem.attr('data-values').split(';'); dataPairs.for...
jaredpar/random
dashboard/Dashboard/Scripts/issue-chart.js
JavaScript
apache-2.0
670
var targetAddressField = document.getElementById('target_address'); var validTargetAddressRegex = /^[a-z0-9][a-z0-9\.\-]*$/; var targetAddressValidBackgroundColor = '#d6e5f4'; var targetAddressInvalidBackgroundColor = 'pink'; function isTargetAddressValid() { return !!targetAddressField.value.match(validTargetAddres...
ivanilves/CloudPort
app/assets/javascripts/form_validate.js
JavaScript
apache-2.0
644
'use strict'; // ////////////////////////////////////////////////////////////////////////////// // / DISCLAIMER // / // / Copyright 2016 ArangoDB GmbH, Cologne, Germany // / // / Licensed under the Apache License, Version 2.0 (the "License") // / you may not use this file except in compliance with the License. // / Yo...
Simran-B/arangodb
js/server/modules/@arangodb/foxx/router/response.js
JavaScript
apache-2.0
10,782
import * as utils from 'src/utils'; import { registerBidder } from 'src/adapters/bidderFactory'; import { Renderer } from 'src/Renderer'; import { VIDEO, BANNER } from 'src/mediaTypes'; import find from 'core-js/library/fn/array/find'; import includes from 'core-js/library/fn/array/includes'; const ADAPTER_VERSION = '...
SpreeGorilla/Prebid.js
modules/beachfrontBidAdapter.js
JavaScript
apache-2.0
7,088
view = function(model) { var view = new View({ id: 'SocialWindow', className: 'Window' }); var refreshButton = AirView('button', { type: 'Refresh', callback: function() { table.update(); }}); var rightView; if (!Ti.Android) { rightView = new View({ layout: 'horizontal', width: 90, h...
appcelerator-titans/jab11
Resources/views/social/list.js
JavaScript
apache-2.0
4,089
define("ace/mode/sparql", function(require, exports, module) { var oop = require("../lib/oop"); var TextMode = require("./text").Mode; var Tokenizer = require("../tokenizer").Tokenizer; var SparqlHighlightRules = require("./sparql_highlight_rules").SparqlHighlightRules; var MatchingBraceOutdent = require("./matching_b...
Thellmann/callimachus
webapp/assets/ace/mode-sparql.js
JavaScript
apache-2.0
3,789
/** * @license * Copyright 2018 Google LLC. 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 a...
PAIR-code/interpretability
text-dream/webapp/src/components/MainComponent.js
JavaScript
apache-2.0
3,017
const html = require('choo/html'); const header = require('../components/header'); module.exports = (state, prev, act) => html` <main> ${header(state, act)} <h2>${state.location.params.room}</h2> </main> `;
jessehattabaugh/poller
views/room.js
JavaScript
apache-2.0
231
/* Modified version from CryptoJS v3.0.2 code.google.com/p/crypto-js (c) 2009-2012 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License */ var CryptoJS=CryptoJS||function(i,j){var f={},b=f.lib={},m=b.Base=function(){function a(){}return{extend:function(e){a.prototype=this;var c=new a;e&&c.mixIn(e...
vinh0604/client-shopdiscovery
Resources/lib/hmac-sha1.js
JavaScript
apache-2.0
4,776
import { Individual } from './Individual.js' function Problem() { this.maxGeneration = 100; this.bestIndividual = null; this.numIndividuals = 10; this.genomeSize = 10; this.populations = []; this.generation = 0; } Object.assign(Problem.prototype, { initPopulation: function() { for(var i=0;i<this.num...
xizhonghua/ec.js
src/Problem.js
JavaScript
apache-2.0
672
import renderer from 'react-test-renderer'; import { SimpleCard } from './SimpleCard'; describe("<SimpleCard />", () => { it("snapshot check", () => { const tree = renderer.create(<SimpleCard header='Create Bill' description={`This will initiate the flow of bill creation where ...
rishabhnehra/Invoicer
src/components/Card/SimpleCard/SimpleCard.test.js
JavaScript
apache-2.0
612
$('#zoe-vid-01').click(function () { var src = '//www.youtube.com/embed/nW1o1AT5qlo?rel=0&amp;autoplay=1'; $('#myModal').modal('show'); $('#myModal iframe').attr('src', src); }); $('#zoe-vid-02').click(function () { var src = '//www.youtube.com/embed/5PHwNObykhA?rel=0&amp;autoplay=1'; $('#myModal').modal('show'); ...
exihuatl/lpscenter
js/modal-zoe.js
JavaScript
apache-2.0
1,011
// 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...
NonVolatileComputing/arrow
js/gulpfile.js
JavaScript
apache-2.0
11,269
/*! * ${copyright} */ sap.ui.define([], function () { "use strict"; /** * Base class for all services. * To inherit use the extend method <code>Service.extend</code> * @class * @alias sap.ui.integration.services.Service * @private * @ui5-restricted sap.ushell * @experimental */ var Service = funct...
SAP/openui5
src/sap.ui.integration/src/sap/ui/integration/services/Service.js
JavaScript
apache-2.0
1,205
function updateTaskGroup(groupcb) { $('.chosen-select-group').trigger("chosen:updated").chosen({ width : "95%", no_results_text : 'Oops, no such Group!' }).on('change', function(evt, params) { var choosed = $('#inputGroupName_chosen .chosen-single span').text(); groupcb(evt, choosed); }); } function generat...
chickling/kmanager
src/main/resources/static/scripts/alerting.js
JavaScript
apache-2.0
2,406
/** * Turns the telephone number into canvas. */ (function() { 'use strict'; var per_tel_span = document.getElementById('per_tel'); if (!per_tel_span) return; var per_tel = per_tel_span.innerHTML; per_tel_span.remove(); var context = document.getElementById('per_tel_canvas').getCon...
francoischalifour/betisier-iut
public/js/phone-secure.js
JavaScript
apache-2.0
480
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
baby-gnu/one
src/sunstone/public/app/tabs/vms-tab/hooks/state.js
JavaScript
apache-2.0
3,185
/*globals requirejs */ 'use strict'; requirejs.config({ urlArgs: "bust=" + (new Date()).getTime(), paths: { 'd3js': '//d3js.org/d3.v3.min', 'custom': 'js/custom' }, priority: [ 'custom' ], shim: { 'custom': { deps: ['d3js'] } } }); requir...
martinkaru/d3
js/bootstrap.js
JavaScript
apache-2.0
337
define(['jquery', 'text!widgets/ghwa-summary/template.html'], function($, template) { Widget = function(element) { this.node = element; } Widget.prototype = { can_render: function() { return true; }, init: function() { var node = $(this.node); this.src = node.data('src'); this.draw(...
adieyal/ghwa_profiles
html/js/widgets/ghwa-summary/ghwa-summary.js
JavaScript
apache-2.0
1,187
/*jshint eqeqeq:false, eqnull:true, devel:true */ /*global jQuery, JSZip, pdfMake, XMLSerializer, define */ (function( factory ) { "use strict"; if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery", "./grid.base", "./jquery.fmatter", "./grid.ut...
pczhangyu/poseidon
poseidon-admin/src/main/webapp/static/plugins/jqgrid/js/grid.export.js
JavaScript
apache-2.0
42,100
var app_layer_modbus_8h = [ [ "ModbusTransaction_", "structModbusTransaction__.html", "structModbusTransaction__" ], [ "ModbusState_", "structModbusState__.html", "structModbusState__" ], [ "MODBUS_CAT_ALL", "app-layer-modbus_8h.html#a7d46d84c2679b476c5fdcbdfe3f7b9b8", null ], [ "MODBUS_CAT_NONE", "app-...
onosfw/apis
suricata/apis/app-layer-modbus_8h.js
JavaScript
apache-2.0
4,171
'use strict'; const fs = require('fs'); const path = require ('path'); const cassandra = require ('cassandra-driver'); // Development specific configuration // ================================== module.exports = { cassandra : { contactPoints : [ '127.0.0.1' ], keyspace : 'loanfi_dev', ...
DorkNstein/loanfi
src/server/config/environment/staging.js
JavaScript
apache-2.0
2,566
angular.module('profilePage', []);
googleinterns/step-2020-wipeout-jr
portfolio/src/main/webapp/profile-page/profile-page.module.js
JavaScript
apache-2.0
35
/* * Copyright 2020, Emanuel Rabina (http://www.ultraq.net.nz/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
ultraq/thymeleaf-js
source/standard/processors/XmlNsAttributeProcessor.js
JavaScript
apache-2.0
1,840
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 Licen...
emmettu/pnc
ui/app/configuration-set/_configuration-set.js
JavaScript
apache-2.0
4,348