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 |
|---|---|---|---|---|---|
var should = require('should')
var scalar = require('../src/1scalar.js')
describe('scalar', function() {
it('should take a number as input', function() {
should(scalar(10)).be.a.Number()
})
it('should take a string as input', function() {
should(scalar('hello')).be.a.String()
})
it('should take a boolean as... | andorfermichael/MMT-B2014-Frontend-Development-1 | 07-tdd/test/1scalar.js | JavaScript | gpl-3.0 | 606 |
(function(){
var app = angular.module('gnsApp', ['firebase', 'gns.controllers', 'ui.router'])
app.controller('loadController', function($scope, $firebaseObject){
var storage = firebase.storage();
$scope.storageRef = storage.ref()
$scope.one = []
$scope.empty_alert = false/*
$scope.alert_empty_field = ... | JGuillenY/GrowNSow | Desktop_Master/release-builds/GrowNSow-darwin-x64/GrowNSow.app/Contents/Resources/app/js/app.js | JavaScript | gpl-3.0 | 4,304 |
// Copyright Rob Jinman 2014
//
// This file is part of SvgTetris.
//
// SvgTetris 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 later version.
/... | RobJinman/SvgTetris | app/js/dev/SvgTetris.js | JavaScript | gpl-3.0 | 16,356 |
/**
* Copyright 2020 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import{LitElement as i,html as e,css as t}from"../../../lit/index.js";import{ElmslnStudioUtilities as s}from"./elmsln-studio-utilities.js";import{ElmslnStudioStyles as a}from"./elmsln-studio-styles.js";impo... | elmsln/elmsln | core/dslmcode/cores/haxcms-1/build/es6/node_modules/@lrnwebcomponents/elmsln-studio/lib/elmsln-studio-dashboard.js | JavaScript | gpl-3.0 | 18,054 |
var GEAR = {
//Basic gear
"Adventuring Gear":{id:"Adventuring Gear",cost:1,use:5,wt:1,tags:["gear","basic"]},
"Healing Potion":{id:"Healing Potion",cost:1,use:1,wt:0,tags:["gear","basic"]},
"Sunwand":{id:"Sunwand",cost:1,use:1,wt:0,tags:["gear","basic"]},
"Antitoxin":{id:"Antitoxin",cost:1,use:1,wt:0,tags:["gear",... | JTeamDevelop/CPXHero | src/gear.js | JavaScript | gpl-3.0 | 2,461 |
/*
* Revel Systems Online Ordering Application
*
* Copyright (C) 2014 by Revel Systems
*
* This file is part of Revel Systems Online Ordering open source application.
*
* Revel Systems Online Ordering open source application is free software: you
* can redistribute it and/or modify it under the terms of the GN... | hanekedesign/Online-Ordering | js/views/rewards.js | JavaScript | gpl-3.0 | 13,262 |
import { css } from 'styled-components';
export default css`
.italic, .oblique, em, i { font-style: italic; }
.bold, strong, b { font-weight: bold; }
.regular, .normal, address { font-weight: normal; }
.thin, .light { font-weight: lighter; }
h3, h4, h5, h6 {
line-height: 1.2;
margin: 0;
font-wei... | alia-code/flamework | src/typography.js | JavaScript | gpl-3.0 | 805 |
import React from 'react';
import useAlert from './useAlert';
import Alert from './Alert';
const AlertNotification = () => {
const { alert, removeAlert } = useAlert();
if (!alert) {
return null;
}
return <Alert alert={alert} onClose={removeAlert} />;
};
export default AlertNotification;
| mchaffotte/geo-application | geoquiz-react/src/components/alert/AlertNotification.js | JavaScript | gpl-3.0 | 303 |
// script to create worldmapdb
conn = new Mongo();
db = conn.getDB('worldmapdb');
// drop
db.dropDatabase();
// recreate
db.createCollection('category');
db.category.insert([
{ '_id' : 1, 'displayName' : 'Geography' },
{ '_id' : 2, 'displayName' : 'Civilization' },
{ '_id' : 3, 'displayName' : 'Informatio... | Shamae/DPALambert | database/menu/create.js | JavaScript | gpl-3.0 | 2,862 |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class TodoList extends Component {
render() {
return (
<View style={styles.container}... | tom-sanftenberg/reactNativeTodoList | index.ios.js | JavaScript | gpl-3.0 | 1,066 |
"use strict";
var checkAuth = require("./lib/checkAuth");
var pug = require("pug");
var async = require("async");
var models = require("./models");
module.exports = function(app){
////////////////////////////////////////////////////////////////////////////////
app.get("/listSwitchesMACTable", checkAuth, function(... | Casm82/macHistory | 08_switchMACTable.js | JavaScript | gpl-3.0 | 3,284 |
import models from '../../../../../model';
import bcrypt from 'bcrypt';
const Grant = models.grant;
const Post = models.post;
const Project = models.project;
const Review = models.review;
const Skill = models.skill;
const University = models.University;
const User = models.User;
const UserSkill = models.userkSkill;
/... | ArmRay/Arm_Ray_App | server/instances/api/src/api/services/University.js | JavaScript | gpl-3.0 | 20,268 |
(function () {
'use strict';
var components = angular.module('lavagna.components');
components.component('lvgPagination', {
templateUrl: 'app/components/pagination/pagination.html',
bindings: {
totalPages: '<',
currentPage: '<',
maxSize: '<',
... | digitalfondue/lavagna | src/main/webapp/app/components/pagination/pagination.js | JavaScript | gpl-3.0 | 2,617 |
/*
* LIXUZ content management system
* Copyright (C) Utrop A/S Portu media & Communications 2008-2011
*
* This program 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, ... | portu/lixuz | root/source-js/articles/viewArticleRevisions.js | JavaScript | gpl-3.0 | 5,801 |
MODX Evolution 1.0.5 = 6546203722a7b8f0f11a3c335f9ae383
| gohdan/DFC | known_files/hashes/assets/plugins/tinymce/jscripts/tiny_mce/langs/ru.js | JavaScript | gpl-3.0 | 56 |
// ==UserScript==
// @name SaveTube+
// @version 2016.10.07
// @description Download videos from web sites.
// @author sebaro
// @namespace http://isebaro.com/savetube
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @downloadURL https://raw.githubusercontent.com/sebaro/sav... | sebaro/SaveTube | savetubeplus.user.js | JavaScript | gpl-3.0 | 4,856 |
/**
* sanitize.js
* Utilities for removing dangerous code from href/html. whitelist-based
* @author: based on http://refactormycode.com/codes/333-sanitize-html
*/
'use strict';
/* eslint-disable */
if (!this.Foxtrick)
// @ts-ignore
var Foxtrick = {};
/* eslint-enable */
if (!Foxtrick.util)
Foxtrick.util = {};... | minj/foxtrick | content/util/sanitize.js | JavaScript | gpl-3.0 | 2,849 |
/**
* Scales.js — the flexible game management daemon built for PufferPanel.
* Licensed under a GPL-v3 license.
*/
var Rfr = require('rfr');
var Logger = Rfr('lib/logger.js');
var Config = {
global: Rfr('config.json')
};
var Fs = require('fs-extra');
var Restify = require('restify');
var Plugin = Rfr('lib/plugin... | PufferPanel/Scales | lib/interfaces/restify.js | JavaScript | gpl-3.0 | 11,405 |
(function ($) {
$.fn.showMap = function(options) {
var self = this;
//config
var config = {
latitude : 49.038138,
longitude : 13.482742,
zoom : 14,
zoomControl : true,
layerControl : 'none',
showMarkers : false,
... | Tomucha/coordinator | coordinator-server/src/main/webapp/js/openlayers-plugin.js | JavaScript | gpl-3.0 | 23,704 |
module.exports = {
dom(element,type){
let DOM = document.createElement(element);
if(type){
for(let key in type){
DOM.setAttribute(key,type[key])
}
}
return DOM
},
// 添加类
addClass(element,newclass){
if(element.className){
var oldClass=element.className;
element.cl... | xiangzongliang/iantoo | dev/lib/elem.js | JavaScript | gpl-3.0 | 1,153 |
'use strict';
/**
* Serverless Module: Lambda Handler
* - Your lambda functions should be a thin wrapper around your own separate
* modules, to keep your code testable, reusable and AWS independent
* - 'serverless-helpers-js' module is required for Serverless ENV var support. Hopefully, AWS will add ENV support t... | Backfeed/protocol-service | restApi/util/cleansedb/handler.js | JavaScript | gpl-3.0 | 670 |
import { forEach } from 'lodash';
import createStore from 'viter/store';
describe('Store', function () {
it('should be properly initialized', function () {
let defaults = {
a: 0,
b: 'str',
c: null,
d: false,
e: {},
};
let store = createStore(defaults);
forEach(defaults,... | mbme/vita | web/app/viter/store.spec.js | JavaScript | gpl-3.0 | 3,056 |
var addNumbers = function add(x, y) {
var a = x + y;
return a
};
// console.log(addNumbers(5, 10));
| rahulcomp24/jQuery-and-Advance-JavaScript-Workshop | Demo/Function/js/functionExpression.js | JavaScript | gpl-3.0 | 115 |
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import contract from 'truffle-contract';
import ExchangeJson from '@melonproject/protocol/build/contracts/Exchange.json';
import web3 from '/imports/lib/web3';
import addressList from '/imports/melon/interface/addressList';
import specs fro... | melonproject/portal | imports/api/trades.js | JavaScript | gpl-3.0 | 3,343 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'removeformat', 'ms', {
toolbar: 'Buang Format'
});
| tsmaryka/hitc | public/javascripts/ckeditor/plugins/removeformat/lang/ms.js | JavaScript | gpl-3.0 | 227 |
if (Meteor.isServer) Meteor.methods({
'updatePrices': function () {
this.unblock;
Drugs.find({active: true}).forEach(function (drug) {
var numberAvailable = 1;
var numberPlayers = 0;
var price = 0;
Meteor.users.find({"status.online": true}).forEach(... | gtheilman/RxWars | server/server.js | JavaScript | gpl-3.0 | 7,799 |
/*
http://www.apache.org/licenses/LICENSE-2.0.html Apache 2 License
*/
(function(b){b.widget("neatline.positioner",{options:{draggable:!0,mapFullscreen:!0,colors:{drag_active:"#1e1e1e"},markup:{map:"#map",timeline:"#timeline",items:"#items"},constants:{h_percent:24,v_percent:84,drag_width:5},positions:{is_map:!1,i... | floss-bush/adsh | plugins/Neatline/views/shared/javascripts/utilities/positioner.js | JavaScript | gpl-3.0 | 14,948 |
// ==UserScript==
// @name Speak the Web
// @namespace https://github.com/rotemdan
// @description Speak any text on the page by middle-clicking it.
// @author Rotem Dan <rotemdan@gmail.com>
// @include http://*
// @include https://*
// @version 0.1.5
// @grant GM_getValue
// @grant ... | rotemdan/speak-the-web | build/speak-the-web.user.js | JavaScript | gpl-3.0 | 18,570 |
/*! jQuery UI - v1.11.4 - 2016-02-24
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, draggable.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([ "jqu... | dannyakakong/ultimirror | src/modules/scheduler/js/jquery-ui.js | JavaScript | gpl-3.0 | 63,258 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/tests/auto/qml/ecmascripttests/test262/test/suite/ch15/15.4/15.4.4/15.4.4.17/15.4.4.17-3-22.js | JavaScript | gpl-3.0 | 1,504 |
(function ($) {
var defaults = { WidgetID: "", WidgetContentClass: ".content", WidgetContentMaxHeight: "100%" };
var widgetConstants = {
EMPTY_VALUE: '',
DOT_VALUE: '.'
}
var config = {};
var thisObject;
var isActiveOnly = new Boolean();
isActiveOnly = true;
... | bhassett/Expressions-CB13 | admin/js/widget/widget-stockalert-plugin.js | JavaScript | gpl-3.0 | 6,618 |
"use strict";
import L from "leaflet";
const map_scale = 255 / 16384; // tile size / # of pixels
L.CRS.AirshipPirates = L.extend({}, L.CRS.Simple, {
projection: L.Projection.LonLat,
transformation: L.transformation(map_scale, 0, -map_scale, 0)
});
| KnownUnown/APMap | src/ap-crs.js | JavaScript | gpl-3.0 | 259 |
function parseJSON(){
var json = JSON.parse("{}");
if(json){
console.log("worked :)");
//doSomethingUseful;
}
else{
console.log("failed");
//callFBI();
}
}
function parseJSON(){
try{
var json = JSON.parse("{}");
if(json){
console.lo... | aloksguha/jsprom | callbacks/simpleCallback.js | JavaScript | gpl-3.0 | 2,041 |
var mongoose = require('mongoose');
var GroupSchema = new mongoose.Schema({
name: {
type:String,
required : true
},
members: [{type:mongoose.Schema.Types.ObjectId, ref:'Member'}],
//picture
// Schedule: [{
// standardTrainers:[{type: mongoose.Schema.Types.ObjectId,ref:... | Evert-De-Vos/azl-app | server/models/Groups.js | JavaScript | gpl-3.0 | 858 |
define([
'app',
'marionette',
'backbone'
], function (
App,
Marionette,
Backbone
) {
// routes
App.roles = {
user: {
access: [
'logout',
'files',
'upload',
'folders',
'gallery',
... | DevilRep/imagery-laravel | public/js/roles.js | JavaScript | gpl-3.0 | 639 |
/**
Copyright (C) 2010- Peter Lembke, CharZam soft
the program is distributed under the terms of the GNU General Public License
InfoHub 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 ... | peterlembke/infohub | folder/plugins/infohub/doc/visited/infohub_doc_visited.js | JavaScript | gpl-3.0 | 6,434 |
/*
* Copyright (C) 2010-2021 Structr GmbH
*
* This file is part of Structr <http://structr.org>.
*
* Structr 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, or... | ckramp/structr | structr-ui/src/main/resources/structr/js/contents.js | JavaScript | gpl-3.0 | 32,671 |
/**
* Overrides the ExtJs Controller constructor and adds some functions to it
*
* @class Calc.library.service.ControllerInjection
* @overrides Ext.app.Controller
* @author Arg0n <argonthechecker@gmail.com>
*/
Ext.define('Calc.library.service.ControllerInjection', {
override: 'Ext.app.Controller',
... | 4rg0n/poe_orb_calc | js/ext/app/library/service/ControllerInjection.js | JavaScript | gpl-3.0 | 1,299 |
define(["knockout"], function (ko) {
ko.components.register("client", {
viewModel: { require: basePath + "app/components/client.viewmodel.js" },
template: { require: "text!" + basePath + "app/components/client.component.html" }
});
}); | ignas-sakalauskas/NetCoreEfCoreKnockoutRequireJs | WebApplication1.Web/wwwroot/app/components/client.component.js | JavaScript | gpl-3.0 | 262 |
/* Free Template by www.templatemo.com */
/*
Dragonfruit Template
http://www.templatemo.com/preview/templatemo_411_dragonfruit
*/
jQuery(function(){
$ = jQuery;
$(window).load( function() {
$('.external-link').unbind('click');
});
//main menu
$("#templatemo_banner_men... | andrevst/helloworldfrontend | estudoSites/templates/dragonfruit/js/templatemo_script.js | JavaScript | gpl-3.0 | 18,144 |
'use strict'
class MergeServerConfig {
// eslint-disable-next-line max-params
updateNestedIfChanged(config, remote, local, remoteKey, localKey, logger) {
var value = remote[remoteKey]
// if the value hasn't changed, skip this work.
// currently, this will always treat objects as
// new as it does ... | ety04/birthday-bot | node_modules/newrelic/lib/config/merge-server-config.js | JavaScript | gpl-3.0 | 1,919 |
module.exports = function(app){
var Rx = require('rxjs/Rx');
var emptyResult = (data) => { //see person.js for other usage
return Array.isArray(data) && data.length == 0;
}
var testAddModels = function(modelName,callback){
addModels(modelName).subscribe(app.observable.concatAndFinalize(... | wardance-ferret/es | localtime/server/boot/z-migrate-base-data.js | JavaScript | gpl-3.0 | 1,837 |
var avatar_id;
// Excercise: check your avatar id by typing "avatar_id" in the
// console window. Avatar id, unlike player id can be made public - it
// simply identifies your avatar in the game. When other players will
// see your avatar on the radio, it will report the same avatar
// id. The same rule applies to al... | A-M-T/SpaceBots | static/important_objects.js | JavaScript | gpl-3.0 | 3,502 |
(function ( root , factory ) {
if ( 'function' === typeof define && define.amd ) {
define( [ '../lib/jquery' ] , factory );
} else {
root.storage = factory( jQuery );
}
}( this , function ( $ ) {
var ls = chrome.storage.local ,
changeCallbacks = $.Callbacks( 'uniqu... | islife/crx-selection-translate | src/js/module/storage.js | JavaScript | gpl-3.0 | 6,005 |
angular.module('retro').controller('HomeController',
($scope, LocationWatcher, Auth, AuthData, BlockState) => {
$scope.auth = Auth;
const setAuthData = (data) => {
$scope.authData = data;
if(data.attemptAutoLogin && !BlockState.get().Login) {
Auth.autoLogin()... | reactive-retro/retro-app | src/js/controllers/home.js | JavaScript | gpl-3.0 | 450 |
/**
* Colegio.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
module.exports = {
attributes: {
nombre: {
type: 'string'
},
grados: {
col... | HenderOrlando/colfatima | encuesta/backend/api/models/Colegio.js | JavaScript | gpl-3.0 | 471 |
/* jshint esversion: 6, strict: true, strict: global, eqeqeq: true */
/* exported range2dates */
'use strict';
const mapSrc = 'https://upload.wikimedia.org/wikipedia/commons/5/51/BlankMap-Equirectangular.svg';
const euromapSrc = 'https://upload.wikimedia.org/wikipedia/commons/9/90/Europe_satellite_image_location_map.jp... | Mocha2007/mocha2007.github.io | maps/history_map.js | JavaScript | gpl-3.0 | 92,327 |
var searchData=
[
['rcc_2ec',['rcc.c',['../rcc_8c.html',1,'']]],
['rcc_2ed',['rcc.d',['../rcc_8d.html',1,'']]],
['rcc_2eh',['rcc.h',['../rcc_8h.html',1,'']]],
['rcc_5fadc',['RCC_ADC',['../group__rcc__defines.html#gga54c7db24941f636ee238833c481ada48aecec311190c999f58ff3e8a3a74cf385',1,'rcc.h']]],
['rcc_5fahb_5... | Aghosh993/TARS_codebase | libopencm3/doc/stm32f0/html/search/all_f.js | JavaScript | gpl-3.0 | 87,127 |
(function (app) {
'use strict';
app.registerModule('nodes', ['core']);// The core module is required for special route handling; see /core/client/config/core.client.routes
app.registerModule('nodes.services');
app.registerModule('nodes.routes', ['ui.router', 'nodes.services']);
}(ApplicationConfiguration));
| datautamanet/idHotspot | modules/nodes/client/nodes.client.module.js | JavaScript | gpl-3.0 | 317 |
{"exchanges":[{"info":[{"onclick":null,"link":"mailto:","value":"Antonio Harris, Executive Director"},{"onclick":null,"link":null,"value":"54 11 4326 0777"},{"onclick":null,"link":"mailto:info@cabase.org.ar","value":"info@cabase.org.ar"},{"onclick":"window.open(this.href,'ix-new-window');return false;","link":"http://w... | brangerbriz/webroutes | nw-app/telegeography-data/internetexchanges/buildings/20165.js | JavaScript | gpl-3.0 | 586 |
jQuery(function($) {
getPreference();
$('#community-nav-collapse-toggle').on('click', function (e) {
setPreference();
e.preventDefault();
if ($('#right-community-nav').hasClass('hide')) {
expandMenu();
} else {
collapseMenu();
}
});
func... | EntradaProject/entrada-1x | www-root/community/templates/default/js/common.js | JavaScript | gpl-3.0 | 1,708 |
var digital_8h =
[
[ "digital", "group__digital.html#ga3eb7db79d996b92f7063b65dc34b3484", null ],
[ "get_digital_output", "group__digital.html#ga865e9d1807739ddc9585c5665de1281c", null ],
[ "get_digital_pullup", "group__digital.html#ga2d37bb1981515925418bd5a624eb1aa6", null ],
[ "get_digital_value", "gr... | kipr/harrogate | shared/client/doc/digital_8h.js | JavaScript | gpl-3.0 | 665 |
import React, { Component, PropTypes } from "react";
import classnames from "classnames";
import { Translation } from "../";
class Divider extends Component {
renderLabel() {
return (
<Translation defaultValue={this.props.label} />
);
}
render() {
const { label, i18nKeyLabel } = this.props;
... | bradleywiebe2/sleepy-tundra | imports/plugins/core/ui/client/components/divider/divider.js | JavaScript | gpl-3.0 | 883 |
var argv = require('optimist')
.usage('Usage: $0 --name [name] --template [Default, Java Based Selenium, Java Based Appium]')
.demand(['name','template'])
.argv;
var projects = require('../routes/projects');
var common = require('../common');
common.initLogger("cli");
common.parseConfig(function(){
com... | chenc4/RedwoodHQ | cli/createProject.js | JavaScript | gpl-3.0 | 615 |
var kruskal = function(params,callback){
var k = this; // get instance
k.nodelist = []; // nodelist
k.callback = callback; // callback function to execute after completion
k.edges = []; // edgelist
k.keepedges = []; // edges that we want to keep
// create edge kects
params.edges.forEach(function(edge,i){
k... | weltwinkel/kruskal | kruskal.js | JavaScript | gpl-3.0 | 3,842 |
/**
* Local wallet data flow
*
* local data plumbing
* @class levelLocal
*
* @package dsensor.org open source project
* @copyright Copyright (c) 2017 James Littlejohn
* @license http://ww
* @version $Id$
*/
var util = require('util');
var events = require("events");
var fs = require('fs');
var level = requi... | Dsensor/resolutionwallet | src/server/levellocal.js | JavaScript | gpl-3.0 | 2,737 |
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
*
* EspoCRM is free software: you can redistribute it and... | lucasmattos/crm | client/modules/crm/src/views/dashlets/sales-pipeline.js | JavaScript | gpl-3.0 | 4,217 |
export default {
mounted () {
this.$bindResize()
},
methods: {
$bindResize () {
this._handleResize = (e) => {
if (this.onResize) this.onResize()
}
typeof window !== 'undefined' && window.addEventListener('resize', this._handleResize)
},
$unBindResize () {
if (this._... | YoZiLin/wukongss | wukongss-html/src/muse-components/internal/resize.js | JavaScript | gpl-3.0 | 454 |
define ("theme_snap/rearrange_tab_handler-lazy",function(){var a=function(a,b,c){a.on("keydown",function(a){var d=a.keyCode||a.which;if(9===d){if(!a.shiftKey&&b!==void 0){a.preventDefault();b.focus()}else if(a.shiftKey&&c!==void 0){a.preventDefault();c.focus()}}})};return{init:function init(b){for(var c=0;c<b.length;c+... | moodlerooms/moodle-theme_snap | amd/build/rearrange_tab_handler-lazy.min.js | JavaScript | gpl-3.0 | 410 |
/* bender-tags: editor,widget */
/* bender-ckeditor-plugins: mathjax */
( function() {
'use strict';
var mathJaxLib = bender.config.mathJaxLibPath;
if ( !mathJaxLib ) {
throw new Error( 'bender.config.mathJaxLibPath should be defined with the path to MathJax lib (MathJax.js?config=TeX-AMS_HTML).' );
}
bender... | ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/tests/plugins/mathjax/framewrapper.js | JavaScript | gpl-3.0 | 5,362 |
var group___renderings___radiobutton =
[
[ "gwinRadioDraw_Button", "group___renderings___radiobutton.html#ga20079de84051bcd3b13164398aaab705", null ],
[ "gwinRadioDraw_Radio", "group___renderings___radiobutton.html#ga75f3ac1b35a6c7f4a80d0cedf15470f8", null ],
[ "gwinRadioDraw_Tab", "group___renderings___rad... | netik/chibios-orchard | ext/ugfx/docs/html/group___renderings___radiobutton.js | JavaScript | gpl-3.0 | 380 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("erpnext.accounts");
{% include 'erpnext/public/js/controllers/buying.js' %};
erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({
setup: function(doc... | ovresko/erpnext | erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js | JavaScript | gpl-3.0 | 15,141 |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'pagebreak', 'en-au', {
alt: 'Page Break',
toolbar: 'Insert Page Break for Printing'
} );
| ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/plugins/pagebreak/lang/en-au.js | JavaScript | gpl-3.0 | 281 |
import classNames from "classnames"
import { BrowserRouter as Router, Switch, Redirect, Route } from "react-router-dom"
import { Reader } from "./reader/Reader"
export const App = () => (
<div className={classNames("App", navigator.maxTouchPoints > 0 ? "touch-mode" : "click-mode")}>
<Router>
<Switch>... | tughi/aggregator-python | clients/web/src/App.js | JavaScript | gpl-3.0 | 520 |
/* Copyright (C) 2016 Ole Reglitzki
*
* This program 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 later
* version.
*
* This program is distribut... | frissdiegurke/murderer.js | public/active/scripts/main.js | JavaScript | gpl-3.0 | 722 |
/**
* Gateway-related constants
* @type {Object}
*/
export const gatewayConstants = {
CLEAR: 'GATEWAYS_CLEAR',
GETALL_REQUEST: 'GATEWAYS_GETALL_REQUEST',
GETALL_SUCCESS: 'GATEWAYS_GETALL_SUCCESS',
GETALL_FAILURE: 'GATEWAYS_GETALL_FAILURE',
CREATE_REQUEST: 'GATEWAYS_CREATE_REQUEST',
CREATE_S... | pvorotnikov/open-home-ui | src/public/js/src/_constants/gateway.constants.js | JavaScript | gpl-3.0 | 854 |
import OptionParser from './optionparser.js';
import Detector from './detector.js';
import Bakery from './bakery.js';
const DEFAULT_PLATFORMS = 'android,ios';
const DEFAULT_CLOSE_LABEL = 'Close';
let datas = {
originalTop: 'data-smartbanner-original-top',
originalMarginTop: 'data-smartbanner-original-margin-top'
... | ain/smartbanner.js | src/smartbanner.js | JavaScript | gpl-3.0 | 7,156 |
define(['app', 'schema/fixed/users'], function(app, schema) {
var users;
beforeEach(function() {
defaultAppOptions(app);
users = schema.getUsers({en: "English"});
});
describe('Users Table', function() {
it('should have these attributes', function() {
expect(users.id).toBe('directus_users');... | Sonans/directus | tests/app/schema/fixed/usersSpec.js | JavaScript | gpl-3.0 | 1,873 |
exports['default'] = {
twilio: function(api){
return {
'SID': 'AC5141620b88f73454391315ea8b747f6d',
'AUTHTOKEN': 'cc0027f79089219204fe37100e2d355e',
'PHONE': '+12014318839'
};
}
};
| StratosAgein/Sigma.API | API/config/twilio.js | JavaScript | gpl-3.0 | 213 |
var SELECT_LAYER_TEXT = "Choose the layers you want to add.",
catalogFamilies;
function catalog() {
if ($("#catalog").is(":visible")) {
$("#maps").show();
$("#catalog").slideUp();
}
else{
$("#maps").hide();
$("input[layer_name]:checked").each(function(){
$... | GeographicaGS/Medinageoportal | www/js/catalog.js | JavaScript | gpl-3.0 | 8,734 |
/* sintez.js */
$(document).ready(function(){
$("#dropdownleft").hover(
function() {
$('.dropdown-menu', this).stop( true, true ).slideDown("fast");
$(this).toggleClass('open');
},
function() {
$('.dropdown-menu', this).stop( true, tru... | vocxod/cintez | www/catalog/view/javascript/sintez.js | JavaScript | gpl-3.0 | 918 |
// @flow
import ReactDOM from 'react-dom'
import React from 'react'
import { HashRouter, Switch, Route } from 'react-router-dom'
import SamplesCollecton from 'experimental/components/samples_collection'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'assets/css/main.css'
import { Sample } from 'experimental/comp... | enotsimon/home | app/index.js | JavaScript | gpl-3.0 | 4,846 |
/**
Projeto OTTC - Operadora de Tecnologia de Transporte Compartilhado
Copyright (C) <2017> Scipopulis Desenvolvimento e Análise de Dados Ltda
This program 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, ei... | scipopulis/ottc_backend | consumer/service/rideshare/rideshare.js | JavaScript | gpl-3.0 | 4,104 |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'elementspath', 'fi', {
eleLabel: 'Elementin polku',
eleTitle: '%1 elementti'
} );
| ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/plugins/elementspath/lang/fi.js | JavaScript | gpl-3.0 | 274 |
function loginKey(event) {if(event.keyCode == 13) login();}
function login() {
var username = document.getElementById('username').value;
var password = document.getElementById('password').value;
var success = Handler.Login(username,password);
var out = document.getElementById('t');
if(success) {
... | SwapnilB31/SQLNavigator | User Login/Resource/login.js | JavaScript | gpl-3.0 | 944 |
define(['underscore','backbone','text!./results.tmpl','text!./item.tmpl'
,'text!../config.json'],
function(_,Backbone,template,itemtemplate,config) {
return {
type:"Backbone",
resize:function() {
var that=this;
var texts=$("div.mainview");
var parentheight=texts.height();
var space... | yapcheahshen/kse | aura_components/results4-widget/main.js | JavaScript | gpl-3.0 | 2,377 |
/*
*
* Copyright (c) 2015 Daniel D. Bruce
*
* This file is part of thermopi.
*
* thermopi 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 later ver... | ddbruce/thermopi | app.js | JavaScript | gpl-3.0 | 3,737 |
//bamMap.js
//now for map setup
var map = L.map('map', {
//so we can place the zoom control where we want it
zoomControl: false
});
//zoom to map state
setInitialMapState(map, bamConfigJson.bamMapSetViewX, bamConfigJson.bamMap... | Blacklunchtable/Blacklunchtable.github.io | BAM-map-functionality.js | JavaScript | gpl-3.0 | 2,194 |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { dataBind } from 'dbdi/react';
import {
Alert, Button, Jumbotron, Well, Panel
} from 'react-bootstrap';
import { LoadOverlay } from 'src/views/components/overlays';
import CohortList from 'src/views/components/cohorts/CohortList'... | Domiii/project-empire | src/views/pages/CohortPage.js | JavaScript | gpl-3.0 | 873 |
!function(t){t(document).ready(function(){t(".page-article .fulltext img").addClass("img-responsive"),t("#medallero").tablesorter({sortList:[[0,0]]}),t("#medallero thead th").append('<span class="caret"></span>');var e=t(".page-article .shareAffix");e.affix({offset:{top:function(){var a=e.offset().top,o=t(".navbar-vang... | carlitorweb/tmpl_vanguardia | src/media/tmpl_vanguardia_vanguardia/js/theme/olimpiadas/olimpiadas.min.js | JavaScript | gpl-3.0 | 739 |
'use strict';
var async = require('async');
var user = require('../../user');
var meta = require('../../meta');
var events = require('../../events');
module.exports = function (SocketUser) {
SocketUser.changeUsernameEmail = function (socket, data, callback) {
if (!data || !data.uid || !socket.uid) {
return ca... | hgGeorg/NodeBB | src/socket.io/user/profile.js | JavaScript | gpl-3.0 | 4,191 |
var sitlCopterParams = [
["FRAME", "0"],
["MAG_ENABLE", "1"],
["FS_THR_ENABLE", "1"],
["BATT_MONITOR", "4"],
["CH7_OPT", "7"],
["COMPASS_LEARN", "0"],
["COMPASS_OFS_X", "5"],
["COMPASS_OFS_Y", "13"],
["COMPASS_OFS_Z", "-18"],
["RC1_MAX", "2000"],
["RC1_MIN", "1000"],
["RC... | arctic-fire-development/dapper-gcs | assets/js/libs/platforms.js | JavaScript | gpl-3.0 | 2,020 |
/*global require*/
// relative or absolute path of Components' main.js
require([
'../../submodules/fenix-ui-common/js/Compiler',
//'../../submodules/fenix-ui-metadata-editor/js/paths'
//], function (Compiler, MetadataEditor, Menu) {
], function (Compiler, Menu) {
//var metadataEditorConfig = MetadataEditor... | FENIX-Platform-Projects/amis-ui-policy | src/main/webapp/scripts/mains/createdatasetPolicy4.js | JavaScript | gpl-3.0 | 12,324 |
// Copyright 2014-2015, University of Colorado Boulder
//package edu.colorado.phet.sugarandsaltsolutions.common.view;
//
//import java.awt.BasicStroke;
//import java.awt.Color;
//import java.awt.geom.Rectangle2D;
//import java.awt.image.BufferedImage;
//
//import edu.colorado.phet.common.phetcommon.model.property.Prope... | phetsims/sugar-and-salt-solutions | js/common/view/MinimizedConcentrationBarChart.js | JavaScript | gpl-3.0 | 3,349 |
"use strict"
const UNITS = 9;
const TENS = 90;
let units = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"];
let tens = ["ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen",
"twenty", "twentyone", "twentytwo", "twentythree", "twentyfou... | bobblestiltskin/project_euler | javascript/pe017.js | JavaScript | gpl-3.0 | 1,896 |
/**
* Created by ljiang on 2015-09-14.
*/
(function ($) {
Drupal.behaviors.scrollingTranscript = {
attach: function (context, settings) {
$('[data-transcripts-role=transcript]', context)
.addBack('[data-transcripts-role=transcript]')
.once('scrolling-transcript'... | digitalutsc/islandora_solution_pack_oralhistories | js/transcripts_ui.js | JavaScript | gpl-3.0 | 725 |
Module.ComponentWrapper( 'Wrapper', function(Wrapper) {
Wrapper.fn.init = function() {
this.addEventListeners();
};
Wrapper.fn.addEventListeners = function() {
this.addEvent( 'click', 'open-menu' );
};
Wrapper.fn._onClickOpenMenu = function() {
this.$el.toggleClass( 'activ... | Apiki/wp-cursos-html | ghost/assets/javascripts/app/component-wrapper.js | JavaScript | gpl-3.0 | 338 |
/* jshint expr:true */
"use strict";
/* The intent is for this to only add unit tests to this file going forward.
*
* XXX Before long, we're going to want to create a home for backend functional
* tests, and move many of the tests that current live in this file there.
*/
var EventEmitter = require( "events" ).Eve... | mozilla/talkilla | test/server/presence_test.js | JavaScript | mpl-2.0 | 20,205 |
function switchDTModals() {
$("#addDefectTracker").modal('hide');
$("#createDefectTracker").modal('show');
return false;
};
function switchWafModals() {
$("#addWaf").modal('hide');
$("#createWaf").modal('show');
return false;
};
var reloadDefectSubmissionDiv = function () {
var tableDiv = $(... | jqxin2006/threadfixRack | src/main/webapp/scripts/application_page.js | JavaScript | mpl-2.0 | 11,914 |
/* 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/>. */
// @flow
/**
* Utils for working with Source URLs
* @module utils/source
*/
import { isOriginalId, isGenera... | ruturajv/debugger.html | src/utils/source.js | JavaScript | mpl-2.0 | 12,030 |
describe('button-name virtual-rule', function() {
it('should pass for aria-label', function() {
var results = axe.runVirtualRule('button-name', {
nodeName: 'button',
attributes: {
'aria-label': 'foobar'
}
});
assert.lengthOf(results.passes, 1);
assert.lengthOf(results.violat... | dequelabs/axe-core | test/integration/virtual-rules/button-name.js | JavaScript | mpl-2.0 | 4,959 |
/* eslint-env jest */
import environment from 'js/relay-env'
import commitMutation from 'relay-commit-mutation-promise'
jest.mock('js/relay-env')
jest.mock('relay-commit-mutation-promise')
const getMockInput = () => ({
userId: 'user-id-123',
enabled: true,
})
afterEach(() => {
jest.clearAllMocks()
})
describ... | gladly-team/tab | web/src/js/mutations/__tests__/SetV4BetaMutation.test.js | JavaScript | mpl-2.0 | 741 |
/**
* 上午9:16
* 2017年6月28日
* Author : 罗浩 (Luo Hao)
* GitHub : https://github.com/RoJoHub
* Blog : http://blog.csdn.net/mandmg
*/
import React, { PureComponent } from 'react';
import { View, Text, Image, TouchableOpacity, ViewPropTypes } from 'react-native'
import PropTypes from 'prop-types'
export default cla... | RoJoHub/SFKJ_ReactNative_App | src/widget/ImageButton.js | JavaScript | mpl-2.0 | 1,165 |
/*
Rotation matrices start looking a little bit more complicated than scaling and transform
matrices. They use trigonometric functions to perform the rotation. While this section
won't break the steps down into exhaustive detail, take this example for illustration.
// Manually rotating a point about the or... | TatumCreative/mdn-matrix-math | lessons/04-rotate/script.js | JavaScript | mpl-2.0 | 1,401 |
import Alert from '/imports/ui/alert';
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
import Surveys from '/imports/api/surveys/surveys';
import Survey from '/imports/ui/components/surveyForm/Survey';
import { DefaultAdminAccessRoles } from '/imports/config/permissions'... | ctagroup/home-app | imports/ui/enrollments/enrollmentsNew.js | JavaScript | mpl-2.0 | 2,668 |
'use strict';
/* global keys */
const test = require('tape');
const sinon = require('sinon');
const jwt = require('jsonwebtoken');
const openpgp = require('openpgp');
const Signal = require('../../app/models/Signal');
require('../../server');
const {Model} = require('../../app/models/User');
const {clean... | Laverna/laverna-server | test/models/signal.js | JavaScript | mpl-2.0 | 7,218 |
/* 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/. */
define(function (require, exports, module) {
'use strict';
const $ = require('jquery');
const chai = requir... | shane-tomlinson/fxa-content-server | app/tests/spec/views/mixins/settings-panel-mixin.js | JavaScript | mpl-2.0 | 4,275 |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.shadow.pattern.transparent.2
// Description:Shadows are not drawn for transparent parts of fill patterns
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
... | DominoTree/servo | tests/wpt/web-platform-tests/offscreen-canvas/shadows/2d.shadow.pattern.transparent.2.worker.js | JavaScript | mpl-2.0 | 1,597 |
module.exports = {
coverageDirectory: './coverage/',
rootDir: './build/',
moduleFileExtensions: [
'js',
'json',
],
testMatch: [
'<rootDir>/test/**/*-test.js',
],
testPathIgnorePatterns: [
'/node_modules/',
'/src/',
],
transform: {
'\\.js$': 'babel-jest',
},
setupFilesAfterE... | moziot/gateway | jest.config.js | JavaScript | mpl-2.0 | 393 |
// Source: https://www.w3.org/TR/wai-aria-1.1/#roles
/* easiest way to see allowed roles is to filter out the global ones
from the list of inherited states and properties. The dpub spec
does not have the global list so you'll need to copy over from
the wai-aria one:
const globalAttrs = Array.from(
docu... | dequelabs/axe-core | lib/standards/aria-roles.js | JavaScript | mpl-2.0 | 21,347 |