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 |
|---|---|---|---|---|---|
'use strict';
module.exports = require('./Toptip');
| glinjy/react-native-apex-ui | src/Toptip/index.js | JavaScript | apache-2.0 | 54 |
Titanium.include("config/config.js");
Titanium.include("libs/library.js");
var wLoginWin = Ti.UI.currentWindow;
var image = Titanium.UI.createImageView({
top: 65,
width:200,
height:40,
image:'logo.png',
backgroundImage:'logo.png'
});
var lblUsername = forms.label("Username", "username", "textLabel");
var lblPass... | jatazoulja/medsup | Resources/login.js | JavaScript | apache-2.0 | 2,600 |
var a00238 =
[
[ "base", "a00238.html#ac5d4112c2573fe16f4747e613afa67a4", null ],
[ "MemberSignature", "a00238.html#a4603c553f24ec204ce4d446f34439f3d", null ],
[ "_TessMemberResultCallback_5_3", "a00238.html#a8a2fc7656591d4543132cbaf7c7296ef", null ],
[ "Run", "a00238.html#a42d9599faeacb571ea5dc6be83d0c... | stweil/tesseract-ocr.github.io | 3.x/a00238.js | JavaScript | apache-2.0 | 335 |
/**
* @author vHawk / https://github.com/vHawk/
*/
import {
Vector2,
Vector3,
DirectionalLight,
MathUtils,
ShaderChunk,
Matrix4,
Box3
} from '../../../build/three.module.js';
import Frustum from './Frustum.js';
import Shader from './Shader.js';
const _cameraToLightMatrix = new Matrix4();
const _lightSpaceFru... | webmaster444/webmaster444.github.io | other/mypointcloud/three/examples/jsm/csm/CSM.js | JavaScript | apache-2.0 | 8,877 |
define(
({
"viewer": {
"main": {
"scaleBarUnits": "metric",
"timePattern": "h:mma", // added 2.5.2013
"datePattern": "MMM d, yyyy" // added 2.5.2013
},
"applicationTitle": {
"PIM": "خريطة المعلومات العامة" // ad... | Esri/social-media-map-template-js | nls/ar/template.js | JavaScript | apache-2.0 | 10,304 |
export default {
"0": "0",
"1": "1",
"10": "10",
"100": "100",
"11": "11",
"12": "12",
"13": "13",
"14": "14",
"15": "15",
"16": "16",
"17": "17",
"18": "18",
"19": "19",
"2": "2",
"20": "20",
"21": "21",
"22": "22",
"23": "23",
"24": "24",
... | CenterForOpenScience/isp | app/locales/et/translations.js | JavaScript | apache-2.0 | 55,636 |
import rootReducer from '../reducers';
import { createStore, compose, applyMiddleware } from 'redux';
function configureStoreDev(initialState) {
const middleware = [
//add in future workshop (thunk / loggers etc)
];
const store = createStore(rootReducer, initialState, compose (
applyMiddl... | denniskenny/react-teacher | src/store/configureStore.js | JavaScript | apache-2.0 | 443 |
"use strict";
import paper from 'paper';
import 'seedrandom';
class Tree {
constructor(options) {
this.options = Object.assign({
branch: {
style: {
strokeColor: 'black',
strokeCap: 'round'
},
angle: 0,
... | StephanGerbeth/fibonacci | src/js/partials/canvas/TreeRelative0.js | JavaScript | apache-2.0 | 2,056 |
var qajax = require("qajax");
var uniqueCalls = [];
function removeCall(options) {
uniqueCalls.splice(uniqueCalls.indexOf(options.url), 1);
}
var qajaxWrapper = function (options) {
if (!options.concurrent) {
if (uniqueCalls.indexOf(options.url) > -1) {
return {
error: () => { return this; },
... | yp-engineering/marathon-ui | src/js/helpers/qajaxWrapper.js | JavaScript | apache-2.0 | 1,697 |
/** CONFIG **/
var debug = true;
var log_level = 1; // 1: No, 3: verbose
var encoding = 'utf-8';
var public_html_path = 'public_html';
var http_port = 8000;
var host_ip = '127.0.0.1';
if (process.argv.length > 2) {
host_ip = process.argv[2];
}
if (process.argv.length > 3) {
http_port = process.argv[3];
}
/** ... | picxenk/FaKeMata | ws_server.js | JavaScript | artistic-2.0 | 1,371 |
/*
*
* JSON schema data validation.
* Requires json.js (http://json.org)
* Author: Maxim Derkachev (max.derkachev@gmail.com)
* http://www.ragbag.ru/2007/05/03/json_validator/lang/en/
*
Schema is a JSON-compliant string or JavaScript object, is an example of a valid data structure.
Example schemas:
* '["str... | tsuraan/jsonvalidator | jsonvalidator.js | JavaScript | bsd-2-clause | 15,306 |
// For future use.
| revarbat/epubber | epubber/static/js/application.js | JavaScript | bsd-2-clause | 20 |
chrome.runtime.onInstalled.addListener(function() {
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
chrome.declarativeContent.onPageChanged.addRules([
{
conditions: [
new chrome.declarativeContent.PageStateMatcher({
pageUrl: { urlMatches: '(http|http... | hwangmoretime/fastback | background.js | JavaScript | bsd-2-clause | 475 |
var Log = require('./implementation/log.js');
window.Trace = new Log();
| txase/trackr | src/log.js | JavaScript | bsd-2-clause | 73 |
define([
'codemirror/codemirror'
], function () {
return CodeMirror;
}); | jnewman/rasp | amd/codemirror.js | JavaScript | bsd-2-clause | 80 |
var searchData=
[
['header',['HEADER',['../namespacegen__gtest__pred__impl.html#aab0c5147255ea91bb78a787c0c75e979',1,'gen_gtest_pred_impl']]],
['help_5fregex',['HELP_REGEX',['../namespacegtest__help__test.html#a0cc445bb25250e09cfa21c64a00e209e',1,'gtest_help_test']]]
];
| crurik/GrapeFS | Doxygen/html/search/variables_68.js | JavaScript | bsd-2-clause | 275 |
/*!
* OS.js - JavaScript Cloud/Web Desktop Platform
*
* Copyright (c) 2011-2016, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribu... | afang/OS.js-Apps | src/client/javascript/vfs/onedrive.js | JavaScript | bsd-2-clause | 17,182 |
const ScratchRender = require('../RenderWebGL');
const getMousePosition = require('./getMousePosition');
const canvas = document.getElementById('scratch-stage');
let fudge = 90;
const renderer = new ScratchRender(canvas);
renderer.setLayerGroupOrdering(['group1']);
const drawableID = renderer.createDrawable('group1')... | LLK/scratch-render | src/playground/playground.js | JavaScript | bsd-3-clause | 6,093 |
'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u00d6\u00d6",
... | mudunuriRaju/tlr-live | frontend/web/js/angular/i18n/angular-locale_tr-cy.js | JavaScript | bsd-3-clause | 3,597 |
// Copyright 2013 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.
(function() {
/**
* The element used to vertically position the most visited section on
* window resize.
* @type {Element}
*/
var topMarginElement;
/... | codenote/chromium-test | chrome/browser/resources/local_ntp/local_ntp.js | JavaScript | bsd-3-clause | 16,173 |
import {DisassembleBytesWithRecursiveTraversalIntoOptimizedArray, DisassembleBytesWithRecursiveTraversalFormatted, DisassembleBytesWithRecursiveTraversalFormattedWithHeader} from '../../disassembler/recursiveTraversalDisassembler/RecursiveTraversalDisassembler';
import * as assert from 'assert';
import {describe, it, b... | amorri40/GameboyDisassembler | roms/game/game.gb.integration.js | JavaScript | bsd-3-clause | 1,615 |
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2010 elements.at New Media ... | theghostbel/pimcore | pimcore/static/js/pimcore/object/classes/data/geopolygon.js | JavaScript | bsd-3-clause | 1,157 |
/**
* Created by wangxufeng on 2015/8/6.
*/
module.exports = {
MODULE_LOST: 'lost'
};
| dolphin1987318/web-component | component/analysis_module/js/constants/Modules.js | JavaScript | bsd-3-clause | 93 |
'use strict';
import core from 'metal';
import { dom, features } from 'metal-dom';
class Anim {
/**
* Emulates animation or transition end event, the end event with longer
* duration will be used by the emulation. If they have the same value,
* transitionend will be emulated.
* @param {!Element} element
* ... | metal/metal-anim | src/Anim.js | JavaScript | bsd-3-clause | 2,596 |
/* FILE: js/jquery.js */
/*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MI... | undoware/neutron-drive | neutron-drive/static/compressed/footer.js | JavaScript | bsd-3-clause | 382,976 |
// Const
const Uglify = require('uglifyjs-webpack-plugin');
// Exporting
module.exports = {
entry: './index.js',
output: {filename: 'xp-emitter.js', path: `${__dirname}/dist`},
plugins: [new Uglify({uglifyOptions: {output: {comments: /^$/}}})],
externals: {
'expandjs': 'XP'
}
};
| expandjs/xp-emitter | webpack.config.js | JavaScript | bsd-3-clause | 309 |
/**
Custom module for you to write your own javascript functions
**/
var Remove_item_vb = function () {
// public functions
return {
//main function
init: function () {
//initialize here something.
$('#remove_box_form').validate({
errorElement: 's... | yorg76/test | public/assets/admin/pages/scripts/remove_item_vb.js | JavaScript | bsd-3-clause | 12,423 |
/**
* @file
* A StrictMap that clears the key after its value has been retrieved.
*/
Module("Cactus.Data", function () {
var StrictMap = Cactus.Data.StrictMap;
Class("StrictFlushMap", {
isa : StrictMap,
methods : {
/**
* @param string key
* @return mixed
*/
get : function... | bergmark/Cactus | module/Core/lib/Data/StrictFlushMap.js | JavaScript | bsd-3-clause | 442 |
// Предпросмотр картинки при загрузке
$(document).ready(function () {
var filesCounter = 0;
//publicity photos update validate checking
$('#update-publicity-form').on('afterValidateAttribute', function (evt, attribute, messages) {
if (attribute.name == 'photos[]') {
if (messages.lengt... | artempetrovjava/yii-project | web/js/script.js | JavaScript | bsd-3-clause | 3,181 |
{
"AssetAdmin.BATCHACTIONSDELETECONFIRM": "Ertu viss um að þú viljir eyða %s möppunni?",
"AssetAdmin.ConfirmDelete": "Ertu viss um að þú viljir eyða þessari möppu og skrám sem tilheyra henni",
"AssetTableField.MOVING": "Færi %s skrá(r)",
"AssetTableField.REALLYDELETE": "Ertu viss um að þú viljir eyða me... | dhensby/silverstripe-cms | javascript/lang/src/is.js | JavaScript | bsd-3-clause | 3,344 |
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
// defines the parent mode
var TextMode = require("./text").Mode;
var Tokenizer = require("../tokenizer").Tokenizer;
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
... | CAAL/ace | lib/ace/mode/tccs.js | JavaScript | bsd-3-clause | 1,880 |
/*! HTML5 Shiv vpre3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
Uncompressed source: https://github.com/aFarkas/html5shiv */
(function (a, b) {
function h(a, b) {
var c = a.createElement("p"),
d = a.getElementsByTagName("head")[0] || a.documentElement;
return c.innerHTML... | diablodf/valbebidas | public/js/html5.js | JavaScript | bsd-3-clause | 3,054 |
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
*/
/**
* Class: OpenLayers.... | bianchimro/django-openlayers | openlayers/static/lib/OpenLayers/Control/ZoomIn.js | JavaScript | bsd-3-clause | 934 |
/*
* Copyright (c) 2011-2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/*jslint anon:true, sloppy:true, nomen:true*/
YUI.add('scrollBinderIndex', function (Y, NAME) {
Y.namespace('mojito.binders')[NAME] = {
in... | michaelBenin/mojito | examples/developer-guide/scroll_views/mojits/scroll/binders/index.js | JavaScript | bsd-3-clause | 1,042 |
// @flow
import { faReply } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import invariant from 'invariant';
import * as React from 'react';
import { createMessageReply } from 'lib/shared/message-utils';
import type { InputState } from '../input/input-sta... | Ashoat/squadcal | web/chat/message-reply-button.react.js | JavaScript | bsd-3-clause | 1,261 |
jQuery(function($){
$.datepicker.regional['cs'] = {"Name":"cs","closeText":"Close","prevText":"Prev","nextText":"Next","currentText":"Today","monthNames":["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec",""],"monthNamesShort":["1","2","3","4","5","6","7","8","... | 0vermind/kooboo | Scripts/jquery-ui-i18n/jquery.ui.datepicker-cs.js | JavaScript | bsd-3-clause | 657 |
describe('backendValidation', function(){
var validator;
var updateFormValidity;
var backendAdapterResults = {};
var response = {};
var backendAdapter;
var form = {};
beforeEach(function(){
module('ngValidation');
});
beforeEach(function(){
backendAdapter =
... | mightymoose/ng-validation | spec/backendValidationSpec.js | JavaScript | bsd-3-clause | 1,041 |
define(['jquery', 'backbone', 'views/commentView'],
function($, Backbone, CommentView){
return Backbone.View.extend({
initialize: function() {
this.subViews = [];
},
attachToView: function() {
var self = this;
thi... | calcutec/flask-burtonblog | app/static/js/views/commentsView.js | JavaScript | bsd-3-clause | 1,320 |
/*
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE.txt file for terms.
*/
/*jslint nomen:true, node:true*/
/*global YUI*/
YUI.add('default-app-server', function (Y, NAME) {
'use strict';
Y.DefaultApp = Y.Base.create(... | caridy/feecbr-lib | lib/apps/default-app-server.js | JavaScript | bsd-3-clause | 532 |
$(document).on('click', '.unfollowSpaceButton', function (event) {
event.preventDefault();
var spaceid = $(this).data("spaceid");
$.ajax({
url: $(this).attr("href"),
type: "POST",
success: function () {
$(".unfollowSpaceButton[data-spaceid='" + spaceid + "']").hide();
... | LeonidLyalin/vova | common/humhub/resources/space/followButton.js | JavaScript | bsd-3-clause | 838 |
/* jshint node: true */
/* jshint esversion: 6 */
'use strict';
module.exports = {
up: function(queryInterface, Sequelize) {
return queryInterface.createTable('Workouts', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
... | scott-w/reps-js | migrations/20160112212733-create-workout.js | JavaScript | bsd-3-clause | 989 |
/**
* @version: 2.1.19
* @author: Dan Grossman http://www.dangrossman.info/
* @copyright: Copyright (c) 2012-2015 Dan Grossman. All rights reserved.
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
* @website: https://www.improvely.com/
*/
(function(root, factory) {
... | EpykOS/MSI | public/themes/gentelella/js/datepicker/daterangepicker.js | JavaScript | bsd-3-clause | 64,876 |
/*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | greggman/hft-jamjam | scripts/game.js | JavaScript | bsd-3-clause | 13,925 |
import ExtendableError from 'es6-error';
import _ from 'underscore';
const UNEXPECTED_ERROR_MSG = 'There was an unexpected error when processing your request.';
class CSError extends ExtendableError {
constructor(errors = [], statusCode = 400, internalMessage = null) {
super();
this.errors = {
errors
... | openAgile/CommitStream.Web | src/app/middleware/es6/csError.js | JavaScript | bsd-3-clause | 840 |
angular.module('job')
.factory('ProfileService', ['async', '$resource', '$http', 'cmsConfig', function (async, $resource, $http, cmsConfig) {
var ProfileResource = $resource('', {}, {
// serverUrl
getProfile: {method: 'GET', url: cmsConfig.serverApi + '/profile'},
updateProfile: {method: 'POST',... | valor-software/dollar-street-cms-pages | src/components/administrator/profile/profile.service.js | JavaScript | bsd-3-clause | 2,441 |
/*
@example
<img ui="type:photo-hotspot">
*/
(function () {
//{if 0}//
var core = ecui,
dom = core.dom,
effect = core.effect,
ui = core.ui,
util = core.util;
//{/if}//
var currHotspot,
currImg = dom.create(
'IMG',
{
className: 'ui-m... | allskystar/ECUI | src/mobile/m-photo-hotspot.js | JavaScript | bsd-3-clause | 10,801 |
// version: 2016-10-09
/**
* o--------------------------------------------------------------------------------o
* | This file is part of the RGraph package - you can learn more at: |
* | |
* | ... | mkiwebs/churchapp | backend/web/RGraph/libraries/RGraph.gauge.js | JavaScript | bsd-3-clause | 49,547 |
var fn = require('fn.js');
var Record = require('immutable').Record;
var Packet = require('./packet');
var Log = Record({
log: '',
level: '',
cid: null,
uuid: null,
timestamp: null,
payload: null,
source: null
});
exports.new = function(blueprint) {
return new Log(blueprint);
};
exports.make = fn.c... | kartesus/reactive-agent | lib/log.js | JavaScript | bsd-3-clause | 588 |
$(document).ready(function () {
$(document).on('change', '.notificationList input[type="checkbox"]', function () {
preLoaderShow();
$.post('/ajax/user/manage-notification', {type: $(this).val()}, function () {
preLoaderHide();
}, 'json');
});
}); | chumoleg/finder | frontend/web/js/dashboard/profile.js | JavaScript | bsd-3-clause | 290 |
/**
* Copyright (c) 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.
*/
// This file requires the functions defined in test_functions.js.
var gFingerprints = [];
// Public interface.
/**
* Starts capturing fram... | mogoweb/chromium-crosswalk | chrome/test/data/webrtc/video_detector.js | JavaScript | bsd-3-clause | 2,950 |
const generate = require('../lib')
const assert = require('assert')
const records = []
generate({
seed: 1,
objectMode: true,
columns: 2,
length: 2
})
.on('readable', function(){
let record
while(record = this.read()){
records.push(record)
}
})
.on('error', function(err){
console.error(err)
})
.on('... | wdavidw/node-csv-generate | samples/api.stream.js | JavaScript | bsd-3-clause | 431 |
import createRollupConfig from './base.rollup.config'
export default createRollupConfig({
outputFile: "dist/react-finite-es6.js",
outputFormat: "es",
}) | errendir/react-finite | rollup.es6.config.js | JavaScript | bsd-3-clause | 158 |
// Copyright 2014 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.
/**
* @implements {SDK.SDKModelObserver<!SDK.DebuggerModel>}
* @implements {UI.ListDelegate<!SDK.DebuggerModel>}
*/
Sources.ThreadsSidebarPane = class e... | youtube/cobalt | third_party/devtools/front_end/sources/ThreadsSidebarPane.js | JavaScript | bsd-3-clause | 5,060 |
'use strict';
const path = require('path');
const webpack = require('webpack');
const webConfig = /** @type WebpackConfig */ {
name: 'Web',
context: __dirname,
target: 'webworker', // web extensions run in a webworker context
entry: './src/web/extension.ts',
output: {
path: path.join(__dirname, 'dist', ... | wakatime/vscode-wakatime | webpack.config.js | JavaScript | bsd-3-clause | 2,287 |
var Backbone = require('backbone');
var _ = require('underscore');
var carto = require('../../../../../src/api/v4/index');
function createHistogramInternalModelMock (options) {
options = options || {};
_.extend({
data: null,
nulls: null
}, options);
var internalModelMock = {
set: function () {},
... | splashblot/cartodb.js | test/spec/api/v4/dataview/histogram.spec.js | JavaScript | bsd-3-clause | 8,733 |
define(["lib/depends_parse"], function(parser) {
describe("Depedency expression parser", function() {
describe("Simple expressions", function() {
it("Input has a value", function() {
var ast = parser.parse("foo");
expect(ast).toEqual({type: "truthy",
... | Patternslib/require-experimental-build | tests/specs/lib/depends_parse.js | JavaScript | bsd-3-clause | 5,531 |
/**
* Created by Samuel Gratzl on 25.01.2016.
*/
import { scale } from 'd3';
import { BaseUtils } from 'phovea_core';
import { AList } from './internal/AList';
export class BarPlot extends AList {
constructor(data, parent, options = {}) {
super(data, parent, BaseUtils.mixin({ cssClass: 'phovea-barplot', w... | phovea/phovea_vis | dist/list/barplot.js | JavaScript | bsd-3-clause | 1,238 |
import ReanimatedModule from '../../ReanimatedModule';
import { Platform } from 'react-native';
const UPDATED_NODES = [];
let loopID = 1;
let propUpdatesEnqueued = null;
let nodeCount = 0;
let callID = '';
export function getCallID() {
return callID;
}
export function setCallID(nextCallID) {
callID = nextCallID... | exponentjs/exponent | packages/expo-dev-menu/vendored/react-native-reanimated/src/reanimated1/core/AnimatedNode.js | JavaScript | bsd-3-clause | 5,161 |
/**
* Feeds
* @namespace pj-feed.feeds.services
*/
(function () {
'use strict';
angular
.module('pjfeedreader.feeds.services')
.factory('Feeds', ['$http', Feeds]);
/**
* @namespace Feeds
* @returns {Factory}
*/
function Feeds($http) {
var Feeds = {
... | jokimies/django-pj-feedreader | pjfeedreader/static/js/feeds/services/feeds.service.js | JavaScript | bsd-3-clause | 2,337 |
CKEDITOR.plugins.setLang("scayt","hr",{btn_about:"O SCAYT",btn_dictionaries:"Rječnici",btn_disable:"Onemogući SCAYT",btn_enable:"Omogući SCAYT",btn_langs:"Jezici",btn_options:"Opcije",text_title:"Provjeri pravopis tijekom tipkanja (SCAYT)"}); | luzfcb/django_documentos | django_documentos/static/django_documentos/ckeditor/sei/2.6/plugins/scayt3/lang/hr.js | JavaScript | bsd-3-clause | 248 |
/*
* 此方法用于 图书搜索页面 的 搜索结果中的 “编辑” 按钮进去 编辑页面后 三个 下拉框的默认选择。
* 分别是 “图书类型” “书架” “出版社”
*/
function selectOption( name )
{
nameVal = $('.' + name).find('select').attr('value');
nameElm = $('.' + name);
nameElm.find('li').each(function(){
if ( $(this).attr('data-raw-value') == nameVal) {
text = $(this).text(... | smartMao/Library-Management-System | web/js/bookSreach/editSelect.js | JavaScript | bsd-3-clause | 740 |
/*
* Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | endlessm/chromium-browser | third_party/devtools-frontend/src/front_end/ui/SettingsUI.js | JavaScript | bsd-3-clause | 5,699 |
/**
* @file
*
* @brief the main entry point for routes
*
* this exports a function that gets passed the express app as an argument,
* which can be used to define routes
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
import { successResponse, errorResponse } from './utils'
import... | e1528532/libelektra | src/tools/web/elektrad/src/routes/index.js | JavaScript | bsd-3-clause | 2,157 |
/*jslint nomen:true, node:true*/
/*jshint esnext:true*/
import {PN} from 'pn';
import {Template} from 'photonews-template-about';
var AboutView = PN.View.extend({
template: Template.get('photonews/about'),
events: {},
render: function () {
var container = this.get('container'),
html... | imalberto/photonews | views/about.js | JavaScript | bsd-3-clause | 464 |
var dir_feea6657ea66b259c8fdbc321b3a3443 =
[
[ "cCubic.h", "c_cubic_8h_source.html", null ],
[ "SensorCalibration.cpp", "_sensor_calibration_8cpp_source.html", null ],
[ "SensorCalibration.h", "_sensor_calibration_8h_source.html", null ],
[ "stdafx.cpp", "adtf_base_2_a_a_d_c___a_d_t_f___base_filters_2sr... | KAtana-Karlsruhe/AADC_2015_KAtana | doc/html/dir_feea6657ea66b259c8fdbc321b3a3443.js | JavaScript | bsd-3-clause | 542 |
import Relay from 'react-relay';
export default class SignInMutation extends Relay.Mutation {
getMutation() {
return Relay.QL`mutation {facebookLogin}`;
}
getVariables() {
return {
authorization_code: this.props.authorization_code,
};
}
getFatQuery() {
return Relay.QL`
fragment ... | xuorig/form-check-app | js/mutations/FacebookLoginMutation.js | JavaScript | bsd-3-clause | 658 |
it(
"A membrane-like proxy set always returns the same object for a prototype lookup",
function() {
"use strict";
const ShadowKeyMap = new WeakMap();
/**
* Define a shadow target, so we can manipulate the proxy independently of the
* original target.
*
* @argument value {Object} Th... | ajvincent/es7-membrane | spec/non-membrane/prototypes.js | JavaScript | isc | 5,941 |
"use strict";
class ExitError extends Error {
constructor(message, fileName, lineNumber) {
super(message, fileName, lineNumber);
this.exit = true;
}
}
module.exports = ExitError; | SandJS/http | lib/ExitError.js | JavaScript | isc | 192 |
/*global define*/
define([
'Core/clone',
'Core/defaultValue',
'Core/defined',
'Core/queryToObject',
'Renderer/Context',
'Specs/createCanvas',
'Specs/createFrameState'
], function(
clone,
defaultValue,
defined,
queryToObject,
... | linkitapps/linkit-cesium-app | app/Cesium/Specs/createContext.js | JavaScript | mit | 1,384 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
AsyncStorage: {}
}; | typesettin/periodicjs.ext.reactapp | adminclient/_src/util/server-side-react-native.js | JavaScript | mit | 121 |
'use strict';
const assert = require('assert');
const { capture } = require('..');
describe('.capture()', () => {
it('should return null if no match', () => {
assert.equal(capture('test/*', 'hi/123'), null);
});
it('should return an empty array if there are no captures', () => {
assert.deepEqual(captur... | jonschlinkert/micromatch | test/api.capture.js | JavaScript | mit | 2,985 |
/*
* 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.
*/
'... | lmazuel/azure-sdk-for-node | lib/services/computerVision/lib/models/ocrRegion.js | JavaScript | mit | 1,982 |
'use strict';
var path = require('path');
/**
* Receives a `namespace`, and an Hash of `options` to invoke a given
* generator. The usual list of arguments can be set with `options.args`
* (ex. nopt's argv.remain array)
*
* @param {String} namespace
* @param {Object} options
* @param {Function} cb
*
* @mixin
... | twlk28/generator-lego | node_modules/yeoman-generator/lib/actions/invoke.js | JavaScript | mit | 790 |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... | yyc-git/Wonder-FRP | dist/commonjs/stream/AnonymousStream.js | JavaScript | mit | 2,446 |
module.exports = isPromise;
function isPromise(obj) {
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}
| Moccine/global-service-plus.com | web/libariries/bootstrap/node_modules/is-promise/index.js | JavaScript | mit | 170 |
// Karma configuration
// Generated on Sun Jun 26 2016 14:46:31 GMT+0200 (CEST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '../..',
// frameworks to use
// available frameworks: https://npmjs.org/browse/key... | boehlke/OpenSlides | tests/karma/karma.conf.js | JavaScript | mit | 2,018 |
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
const updatePasswordSchema = new SimpleSchema({
old: {
type: String,
max: 50,
},
new: {
type: String,
min: 6,
max: 20,
},
confirm: {
type: String,
min: 6,
max: 20,
// TODO: Resolve consistent-return
// eslint-... | Digipalvelutehdas/APIKA | users/client/account/password/schema.js | JavaScript | mit | 655 |
(function (angular, window) {
'use strict';
var regModules = ['ng', 'oc.lazyLoad'],
regInvokes = {},
regConfigs = [],
modulesToLoad = [],
// modules to load from angular.module or other sources
realModules = [],
// real modules called from angular.module
recordDe... | Jchavez/ocLazyLoad | dist/modules/ocLazyLoad.core.js | JavaScript | mit | 32,166 |
import Ember from "ember-metal/core"; // Ember.Logger, Ember.LOG_BINDINGS, assert
import { get } from "ember-metal/property_get";
import { trySet } from "ember-metal/property_set";
import { guidFor } from "ember-metal/utils";
import {
addObserver,
removeObserver,
_suspendObserver
} from "ember-metal/observer";
im... | thejameskyle/ember.js | packages/ember-metal/lib/binding.js | JavaScript | mit | 15,123 |
var expect = require('expect.js'),
$ = require('../'),
fruits = require('./fixtures').fruits;
describe('$(...)', function() {
describe('.find', function() {
it('() : should return this', function() {
expect($('ul', fruits).find()[0].name).to.equal('ul');
});
it('(single) : should find on... | renwall/john-harrigan | node_modules/grunt-svg-cleaner/node_modules/svg-cleaner/node_modules/cheerio/test/api.traversing.js | JavaScript | mit | 5,037 |
var Chain = Divhide.Chain;
var Maths = new Chain(
/// the chaining fns
{
sum: function(i,j){
return i + j;
},
sub: function(i, j){
return i - j;
}
},
/// the evaluation fns
{
calculate: function(result, err){
return re... | divhide/node-divhide | .readme/includes/Chain/ChainExample.js | JavaScript | mit | 678 |
/*
* L.TileLayer.Cordova
* A subclass of L.TileLayer which provides caching of tiles to a local filesystem using Cordova's File API
* as well as methods for "switching" the layer between online mode (load from URLs) or offline mode (load from local stash)
* Intended use is with Cordova/Phonegap applications, to cac... | gregallensworth/L.TileLayer.Cordova | test/www/leaflet-tilelayer-cordova.js | JavaScript | mit | 18,089 |
/* globals Promise:true */
var _ = require('lodash')
var Promise = require('bluebird')
var errors = require('../../../../lib/errors')
var SQL = require('../../sql')
var qutil = require('../util/query')
module.exports.v1 = {}
module.exports.v2 = {}
function latest (req) {
return req.storage.executeQuery(SQL.select... | jeorgen/chromanode-regtest-test | app/slave/http/controllers/headers.js | JavaScript | mit | 2,581 |
/**
* @author Geert Fokke [geert@sector22.com]
* @www sector22.com
*/
//@formatter:off
var Result = require('./Result');
var inherits = require('../../core/utils/inherits');
//@formatter:on
inherits(DataResult, Result);
/**
* An object containing result data with a data object
* @param data {*}... | Sector22/toolkit | data/result/DataResult.js | JavaScript | mit | 685 |
$(function() {
$.getJSON('api', updateFeedback);
$('.feedback-form').submit(function(e) {
e.preventDefault();
$.post('api', {
name: $('#feedback-form-name').val(),
title: $('#feedback-form-title').val(),
message: $('#feedback-form-message').val()
}, updateFeedback);
});
$('.feedb... | BBQ4ever/fooddeliversystem | app/public/js/feedback.js | JavaScript | mit | 1,585 |
var NRS = (function(NRS, $, undefined) {
NRS.forms.errorMessages.startForging = {
"5": "您无法锻造,主要是您余额是0,而且帐号太新了(至少要超过一天的时间)."
};
NRS.forms.startForgingComplete = function(response, data) {
if ("deadline" in response) {
$("#forging_indicator").addClass("forging");
$("#forging_indicator span").html("Forging... | NTXcrypto/NTXcoin | html/ui_zh/js/nrs.modals.forging.js | JavaScript | mit | 2,285 |
// MooTools: the javascript framework.
// Load this file's selection again by visiting: http://mootools.net/more/8eff294bf56290a32b86a9b78d3695b6
// Or build this file again with packager using: packager build More/Chain.Wait More/Array.Extras More/Date.Extras More/Number.Format More/URI.Relative More/Hash.Extras More/... | fakedarren/mootools-docs | assets/js/mootools-more-1.3-full.js | JavaScript | mit | 220,913 |
import tokenize from './tokenizer';
const assert = require('assert');
const inspect = require('util').inspect;
const tests = [
{
jacks: [
'if (x < 153) { let city = "Paris"; }',
'if (x<153) // comment\n{ let city = "Paris"; }',
'if (x < 153) { /* comment */ let city = "... | peferron/nand2tetris | 11/tokenizer_test.js | JavaScript | mit | 1,604 |
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
var config = require('./env/' + process.env.NODE_ENV);
module.exports = config;
| barry-napier/scrum-poker | server/config/index.js | JavaScript | mit | 144 |
'use strict';
var chai = require('chai');
var chaiHttp = require('chai-http');
chai.use(chaiHttp);
var expect = chai.expect;
process.env.MONGO_URL = 'mongodb://localhost/user_test';
require(__dirname + '/../server');
var mongoose = require('mongoose');
var User = require(__dirname + '/../models/user');
var host = 'loc... | sschadwick/file_locker | test/user_routes_test.js | JavaScript | mit | 1,441 |
define(function(require) {
var zrUtil = require('zrender/core/util');
var graphic = require('../../util/graphic');
var DataDiffer = require('../../data/DataDiffer');
var helper = require('./helper');
var Breadcrumb = require('./Breadcrumb');
var RoamController = require('../../component/helper... | yjwz0428/yjwz0428.github.io | 作业(1)/echarts-master/src/chart/treemap/TreemapView.js | JavaScript | mit | 33,316 |
const express = require('express')
const app = express()
const bodyParser = require('body-parser')
app.use(bodyParser.json())
const users = [{
id: 1,
name: 'Christian Alfoni',
githubUsername: 'christianalfoni'
}, {
id: 2,
name: 'Aleksey tha man'
}, {
id: 3,
name: 'Brian Fitch'
}, {
id: 4,
name: 'Gar... | FWeinb/cerebral | demos/function-tree-demos/server.js | JavaScript | mit | 1,187 |
// Platform specific overrides will be placed in the merges folder versions of this file | Jerome2606/Ionic-TypeScript-MDHA-Starter | Sample-App/www/scripts/platformOverrides.js | JavaScript | mit | 92 |
var _ = require("underscore");
var Fiber = require("fibers");
exports.parallelEach = function (collection, callback, context) {
const errors = [];
context = context || null;
const results = Promise.all(_.map(collection, (...args) => {
async function run() {
return callback.apply(context, args);
}
... | Hansoft/meteor | tools/utils/fiber-helpers.js | JavaScript | mit | 3,583 |
(function () {
var app = angular.module('app', ['firebase', 'ui.router'])
.constant('firebaseUrl', "https://popping-torch-4767.firebaseio.com/");
app.config(function ($stateProvider, $urlRouterProvider, firebaseUrl) {
$urlRouterProvider.otherwise('/home');
$stateProvi... | jmanock/FirebaseAngularjsAuth | public/javascripts/app/app.js | JavaScript | mit | 1,146 |
// @flow strict-local
import createSheet from '../../styles/create-sheet';
export type Data = { disabled: boolean };
export default createSheet('Label', {
label: {
display: 'flex',
alignItems: 'center',
},
text: {
padding: '4px 4px 4px 8px',
userSelect: 'none',
cursor: (data: Data) => (dat... | TF2PickupNET/components | src/components/Label/Sheet.js | JavaScript | mit | 437 |
// 20170424172403
// https://raw.githubusercontent.com/nodemailer/nodemailer/master/lib/well-known/services.json
module.exports = {
"126": {
"host": "smtp.126.com",
"port": 465,
"secure": true
},
"163": {
"host": "smtp.163.com",
"port": 465,
"secure": true
},
"1und1": {
"host": "s... | popey456963/Maily | app/generated-data/nodemailer_listed_services.js | JavaScript | mit | 4,574 |
/**
* Copyright (c) 2008-2011 The Open Planning Project
*
* Published under the BSD license.
* See https://github.com/opengeo/gxp/raw/master/license.txt for the full text
* of the license.
*/
/**
* @requires plugins/LayerSource.js
*/
/** api: (define)
* module = gxp.plugins
* class = Google... | sinsai/Sahana_eden | static/scripts/gis/gxp/plugins/GoogleSource.js | JavaScript | mit | 11,890 |
function mapFilenames(filenames) {
return filenames.map(filename => `"${filename}"`).join(' ');
}
module.exports = {
'*': () => [
'yarn run test',
'yarn run test:ts',
],
'*.ts': (filenames) => [
`eslint --fix --cache ${mapFilenames(filenames)}`,
],
};
| JohnWhiteTB/TypedJSON | lint-staged.config.js | JavaScript | mit | 297 |
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['specs/e2e/ng-sticky-element.js'],
capabilities: {
'browserName': 'firefox'
}
};
| mvdkleijn/ng-sticky-element | test/e2e.travis.conf.js | JavaScript | mit | 169 |