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 |
|---|---|---|---|---|---|
app.controller("DeleteCardController", function($scope, FlashCardsFactory, $state) {
$scope.deleteCard = function(card) {
FlashCardsFactory.removeCard($scope.card).then(function(data) {
FlashCardsFactory.deletedCard = true;
$state.go('home');
});
};
if (confirm("Are y... | fvcproductions/Flashcards | flashcards-ui-router/public/js/controllers/DeleteCardController.js | JavaScript | gpl-2.0 | 476 |
/**
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* http://code.google.com/p/blockly/
*
* 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/... | technologiescollege/Blockly-at-rduino_offline | wwwBlockly@rduino/core_BlocklyArduino/blockly@rduino_boards.js | JavaScript | gpl-2.0 | 23,663 |
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import request, { parseError } from '../../utils/request';
import { search, create, update, view, remove } from '../../services/user';
import pathToRegexp from 'path-to-regexp';
const mergeQuery = (oldQuery, newQuery) => {
return {
... | iWantMoneyMore/ykj | ykj-web/src/models/users/index.js | JavaScript | gpl-2.0 | 7,437 |
import { includes } from 'lodash';
import getSiteSetting from 'calypso/state/selectors/get-site-setting';
/**
* Check if an email address is disallowed according to
* the list of blocked addresses for the site.
*
* @param {object} state Global state tree
* @param {number} siteId Site ID
* @param {string} email A... | Automattic/wp-calypso | client/state/selectors/is-authors-email-blocked.js | JavaScript | gpl-2.0 | 642 |
!function(ns){var $,options,enqueue=function(fn){var queue=[],locked=1,working=0,fn=fn,instance=function(){queue.push([this,arguments]),locked||instance.execute()};return instance.execute=function(){if(!working){working=1,locked=0;for(var q;q=queue.shift();)fn.apply(q[0],q[1]);working=0}},instance.lock=function(){locke... | Creativetech-Solutions/joomla-easysocial-network | media/foundry/4.0/config/97962a748b53f74679c17cd2f0758fdd.js | JavaScript | gpl-2.0 | 3,119 |
jQuery( document ).ready(function() {
// hide the bottom buy links if the excerpt is closed
if (jQuery('.mbm-book-excerpt-read-more').is(":visible")) {
jQuery('#mbm-book-links2').hide();
}
// handle the editions hide/show
jQuery('.mbm-book-editions-toggle').on('click', function() {
jQuery(this).siblings('.mbm... | christiespeich/Mooberry-Book-Manager | js/single-book.js | JavaScript | gpl-2.0 | 1,009 |
tinyMCE.addI18n('pt.autosave',{
restore_content: "Restaurar conteúdo salvo automáticament",
warning_message: ""Se você restaurar o conteúdo gravado, você vai perder todo o conteúdo que está atualmente no editor.\n\nVocê tem certeza de que deseja restaurar o conteúdo salvo?"
}); | proizprojetos/olhemaisumavez | media/editors/tinymce/jscripts/tiny_mce/plugins/autosave/langs/pt.js | JavaScript | gpl-2.0 | 287 |
/**
* Created by xykong on 2014/7/15.
*/
var protobuf = require('pomelo-protobuf');
var util = require('pomelo-protobuf/lib/util');
var should = require('should');
var tc = require('./testMsg');
describe('msgEncoderTest', function () {
var protos = protobuf.parse(require('./example.json'));
protobuf.init({... | huojiecs/game1 | game-server/test/protobuf/testProtobuf.js | JavaScript | gpl-2.0 | 813 |
(function() {
'use strict';
/**
* @name config
* @description config block
*/
function config($stateProvider) {
$stateProvider
.state('root.sub-bar-professors.professors', {
url: '/professors',
templateUrl: 'src/app/professors/professors.tpl.html',
controller: 'Profess... | ubcio/webApp | client/src/app/professors/professors.js | JavaScript | gpl-2.0 | 1,248 |
// Util: PatternFly Sidebar
// Set height of sidebar-pf to height of document minus height of navbar-pf if not mobile
(function ($) {
'use strict';
$.fn.sidebar = function () {
var documentHeight = 0,
navbarpfHeight = 0,
colHeight = 0;
if ($('.navbar-pf .navbar-toggle').is(':hidden')) {
d... | nutmegdevelopment/nutcracker-ui | assets/js/patternfly.js | JavaScript | gpl-2.0 | 44,345 |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('gradientsApp'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = $cont... | EugeneEmelyanov/gradients | test/spec/controllers/main.js | JavaScript | gpl-2.0 | 508 |
/*-----------------------------------------------------------
* Story的儲存結構
-------------------------------------------------------------*/
var releaseStoryStore = new Ext.data.Store({
fields: [
{name: 'Id', type: 'int'},
{name: 'Link'},
{name: 'Tag'},
{name: 'Name'},
... | chusiang/ezScrum_Ubuntu | WebContent/javascript/ezScrumDataModel/ReleasePlanDataModel.js | JavaScript | gpl-2.0 | 5,312 |
define(['proscenium'], function (Proscenium) {
return {
curtains: ['splash'],
prep: function () {
var $splash = $(Proscenium.curtains.splash.element);
$splash.show();
}
};
});
| Bootjack/ld32 | src/scenes/title.js | JavaScript | gpl-2.0 | 232 |
var expect = require('chai').expect;
var restify = require('restify');
var helper = require('../test-helper')();
var schema = require('../../lib/schema');
var configCalendar = require('../fixtures/config-school-calendar.json');
var modelTests = [
{
url: '/families',
schema... | glenc/village-api | test/api/model-api-test.js | JavaScript | gpl-2.0 | 13,634 |
var sce={
"image": "snap/test/test-001.png",
"name": "test",
"steps": [
[
{
"action": "stepStart",
"image": "snap/test/test-001.png"
},
{
"action": "text",
"type": "markdown",
"content... | orochvilato/tutorial-builder | data2.js | JavaScript | gpl-2.0 | 7,156 |
var fs = require('fs'),
path = require('path');
var gui = require('nw.gui');
function dirTree(filename) {
var stats = fs.lstatSync(filename),
info = {
title: path.basename(filename),
key: filename,
path: filename,
name: path.basename(filename)
};... | mcaravind/PagesBuilder | js/index.js | JavaScript | gpl-2.0 | 5,699 |
/* global module */
/**
* Created by chriscai on 2015/1/23.
*/
var fs = require('fs');
var connect = require('connect'),
log4js = require('log4js'),
logger = log4js.getLogger();
var path = require("path");
var dbPath = path.join(__dirname , ".." , "project.db");
var ProjectService = function(clusters) {... | highmind/Study | badJS/badjs-acceptor/service/ProjectService.js | JavaScript | gpl-2.0 | 1,429 |
var config = module.exports = {};
//app
config.app = {};
config.app.port = 3000;
//mongodb
config.mongo = {};
config.mongo.uri = '127.0.0.1';
config.mongo.db = 'movies';
| ivanmarban/node-movies-restful | config/config.js | JavaScript | gpl-2.0 | 172 |
'use strict';
angular.module('adminApp')
.controller('StudentReportCtrl', function ($scope, QueryService) {
$scope.query = {
grade: 'all'
};
$scope.refreshView = function() {
var p = {};
if ($scope.query.grade != 'all') {
p.grade = $scope.query.grade;
}
QueryService... | glenc/pace | admin/app/scripts/controllers/reports/student-report.js | JavaScript | gpl-2.0 | 576 |
/**
* @version $Id$
* Kunena Component
* @package Kunena
*
* @Copyright (C) 2008 - 2011 Kunena Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.org
**/
window.addEvent('domready', function() {
function insert_text(textString,nb)
{
var pollt... | viollarr/alab | components/com_kunena/template/default/plugin/poll/js/kunena.poll.ajax.js | JavaScript | gpl-2.0 | 2,291 |
define('js/producer/view/customScriptsParameters', [
'backbone',
'js/util/ui/view/button',
'js/bower_components/achy/message',
'js/util/string',
'js/util/ui/view/modal',
'js/util/api/producer',
'js/util/api/mc',
'js/util/ui/view/list',
'js/util/ui/... | Great-Bee/NVWA-Client | js/producer/view/customScriptsParameters.js | JavaScript | gpl-2.0 | 10,232 |
"use strict";
const socket = require("socket.io-client");
const Client = function() {
let io = null;
let params = {};
let connected = false;
this.connect = (config, statusFn) => {
params = config;
statusFn = statusFn || (() => {});
return new Promise((resolve, reject) => {
... | mattiasrunge/api.io | api.io-client.js | JavaScript | gpl-2.0 | 6,211 |
// PreMeFi - A MetaFilter viewer for Palm's WebOS
// Copyright (C) 2011 Gaelan D'costa <gdcosta@gmail.com>
//
// 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 2 of the Lic... | RobotDisco/PreMeFi | app/models/MetaFeed.js | JavaScript | gpl-2.0 | 4,383 |
var Input = function(player)
{
this.currentlyPressedKeys = {};
this.player = player
}
Input.prototype.handleKeyDown = function(event)
{
this.currentlyPressedKeys[event.keyCode] = true;
}
Input.prototype.handleKeyUp = function(event)
{
this.currentlyPressedKeys[event.keyCode] = false;
}
Input.prototyp... | pjan284/among-the-trees | js/input.js | JavaScript | gpl-2.0 | 4,402 |
function UniprocessorCalculations(type, priority, resources, busy, taskNumber, resourcesNumber){
this.type = type;
this.priority = priority;
this.resources = resources;
this.busy = busy;
this.taskNumber = taskNumber;
this.maxBusy = 10;
this.setTasksInformation = setTasksInformation;
this.implicitOrdering = i... | ikerexxe/RTRTA | src/platforms/android/assets/www/js/uniprocessor_calculations.js | JavaScript | gpl-2.0 | 8,300 |
(function($) {
/**
* Attach this editor to a target element.
*/
Drupal.wysiwyg.editor.attach.nicedit = function(context, params, settings) {
// Intercept and ignore submit handlers or they will revert changes made
// since the instance was removed. The handlers are anonymous and hidden out
// of scope ... | prsnjtb/ceatint | sites/all/modules/contrib/wysiwyg/editors/js/nicedit.js | JavaScript | gpl-2.0 | 4,193 |
"use strict";
//#region Utility Classes
function Player() {
this.team = 0;
this.uniqueID = 0.0;
this.ordersGiven = false;
this.feedbackGiven = false;
this.toJSON = function () {
return { team: this.team, uniqueID: this.uniqueID };
};
}
function ArmyUnit() {
this.position = null; /... | azziliz/hexasniper | server.js | JavaScript | gpl-2.0 | 22,110 |
'use strict';
var hp = require('../modules/hyperpin');
var error = require('../modules/error');
var logger = require('winston');
exports.actions = function(req, res, ss) {
req.use('session');
require('../modules/announce').registerSocketStream(ss);
return {
/**
* Inserts a coin into the pinball... | freezy/node-pind | server/rpc/control.js | JavaScript | gpl-2.0 | 835 |
/*
* This file is part of CDS Invenio.
* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 2009 CERN.
*
* CDS Invenio 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 2 of the
* Licen... | ppiotr/Bibedit-some-refactoring | modules/bibedit/lib/bibedit_reccomparer.js | JavaScript | gpl-2.0 | 9,117 |
const Applet = imports.ui.applet;
const Mainloop = imports.mainloop;
const GMenu = imports.gi.GMenu;
const Lang = imports.lang;
const Cinnamon = imports.gi.Cinnamon;
const St = imports.gi.St;
const Clutter = imports.gi.Clutter;
const Main = imports.ui.main;
const PopupMenu = imports.ui.popupMenu;
const AppFavorites = i... | alindt/Cinnamon | files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js | JavaScript | gpl-2.0 | 92,082 |
z=fac(y)
| ivanortegaalba/web-application-security | TP1/examples/callFactorial.js | JavaScript | gpl-2.0 | 9 |
function ShowHelp_Toggle(id)
{
$("#button1, #button2").css("background-color", "");
$("#" + id).css("background-color", "#92e4ff");
$("#usage, #about").hide();
if (id == "button1")
$("#usage").show();
else if (id == "button2")
$("#about").show();
CommonLib_RefreshTableStyle();
}
function ShowHelp_PageReady()
... | zhangboyang/zbyprinting | src/htdocs/zbyprinting/scripts/ShowHelp.js | JavaScript | gpl-2.0 | 472 |
/* ===================================================
* popover-extra-placements.js v0.1
* http://twitter.github.com/bootstrap-popover-extra-placements
* ===================================================
* Copyright 2012 Daniel Kleehammer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | Zingeon/gloobers | sites/all/themes/new_design/js/popover-extra-placements.min.js | JavaScript | gpl-2.0 | 5,509 |
'use strict';
let path = require('path');
let defaultSettings = require('./defaults');
// Additional npm or bower modules to include in builds
// Add all foreign plugins you may need into this array
// @example:
// let npmBase = path.join(__dirname, '../node_modules');
// let additionalPaths = [ path.join(npmB... | allevaton/classdesigner | cfg/base.js | JavaScript | gpl-2.0 | 1,359 |
/*----------------------------------------------------------------------------*\
DIVIDER SHORTCODE
\*----------------------------------------------------------------------------*/
( function( $ ) {
"use strict";
function init_shortcode( $divider ) {
$divider.trigger( 'mpc.inited' );
}
if ( typeof win... | seyekuyinu/highlifer | wp-content/plugins/mpc-massive/shortcodes/mpc_divider/js/mpc_divider.js | JavaScript | gpl-2.0 | 1,111 |
jQuery(function($) {
var CF = CF || {};
CF.postFormats = function($) {
return {
switchTab: function(clicked) {
var $this = $(clicked),
$tab = $this.closest('.nav-tab');
if (!$this.hasClass('nav-tab-active')) {
$this.addClass('nav-tab-active');
$tab.siblings().removeClass('nav... | bonfil1/masmuscular | wp-content/themes/sportexx/inc/admin/post-formats/js/admin.js | JavaScript | gpl-2.0 | 8,848 |
/*
* jsPlumb
*
* Title:jsPlumb 2.0.2
*
* Provides a way to visually connect elements on an HTML page, using SVG.
*
* This file contains utility functions that run in browsers only.
*
* Copyright (c) 2010 - 2015 jsPlumb (hello@jsplumbtoolkit.com)
*
* http://jsplumbtoolkit.com
* http://github.com/sporritt/jsp... | rhalff/jsPlumb | es6/src/common/util-browser.js | JavaScript | gpl-2.0 | 6,893 |
/*
* Copyright (C) 2014 rafa
*
* 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 2
* of the License, or (at your option) any later version.
*
* This program is distributed ... | AngelAlpanez/ausiasYield2014 | src/main/webapp/js/specific/producto/control.js | JavaScript | gpl-2.0 | 3,662 |
Crconnect = Class.create();
Crconnect.prototype = {
initialize: function() {
},
confirmMainKey: function(manual) {
var key = $("crroot_crconnect_api_key").value;
if (manual){
$$(".simple-added-row").each(function(el){
callRowDelete(el.id);
... | Schrank/Conlabz_CRConnect | skin/adminhtml/base/default/js/crconnect.js | JavaScript | gpl-2.0 | 7,811 |
(function ($) {
// Controls events for panel menu.
// We use context here on click events to compensate for a stupid bug in views ajax.
Drupal.behaviors.menuPanelBehavior = {
attach: function(context, settings) {
$(document).ready(function() {
$('body', context).click(function(e) {
// ... | eastoncat/cm.eastoncat | profiles/cm_bootstrap/themes/cmb_theme/js/cm_bootstrap.js | JavaScript | gpl-2.0 | 17,579 |
var STATUS_STATE_PRESENT = 'here'; // strings instead of ints just for easier debugging. always use the vars, don't hardcode strings w/these states elsewhere.
var STATUS_STATE_AWAY = 'away';
(function () {
var server = false, models;
if (typeof exports !== 'undefined') {
_ = require('underscore')._;
Backbone = r... | felixonmars/app | extensions/wikia/Chat2/js/models/models.js | JavaScript | gpl-2.0 | 9,101 |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
// Purpose - Required for updating UI daemon configuration page.
// Version - unexported version
// Date - 12 Jun 2008
function refreshNow()
{
// Delay before refresh... | segp2sg1/earth | public/javascripts/application.js | JavaScript | gpl-2.0 | 606 |
(function ($) {
jQuery(document).on('click', '.bf_add_files a', function (event) {
var $el = $(this);
// BuddyForms gallery file uploads
var buddyforms_gallery_frame;
var $image_gallery_ids = $('#' + $el.data('slug'));
var bf_files = $('#bf_files_container_' + $el.data('sl... | Hannah93/BuddyForms | assets/js/media-uploader.js | JavaScript | gpl-2.0 | 4,214 |
(function($, BUE) {
'use strict';
/**
* @file
* Defines bueditor button object.
*/
/**
* Button constructor
*/
BUE.Button = function(def) {
this.construct(def);
};
/**
* Extend the prototype with state manager.
*/
var Button = BUE.extendProto(BUE.Button.prototype, 'state');
/**
* Constructs the button.
... | vanilla-bear/julien | modules/bueditor/library/js/BUE.Button.js | JavaScript | gpl-2.0 | 3,023 |
(function ($) {
/**
* Attach handlers to evaluate the strength of any password fields and to check
* that its confirmation is correct.
*/
Drupal.behaviors.password = {
attach: function (context, settings) {
var translate = settings.password;
$('input.password-field', context).once('password', fun... | phpindonesia/official-website | sites/default/files/js/js_bsyyWTkoJZ4YhrDCIFW_5aY_6Ee0kp3hkq3TqP7lKxA.js | JavaScript | gpl-2.0 | 10,195 |
/**
* External dependencies
*/
const { BundleAnalyzerPlugin } = require( 'webpack-bundle-analyzer' );
const LiveReloadPlugin = require( 'webpack-livereload-plugin' );
const path = require( 'path' );
/**
* WordPress dependencies
*/
const DependencyExtractionWebpackPlugin = require( '@wordpress/dependency-extraction... | semperfiwebdesign/all-in-one-seo-pack | webpack-config.js | JavaScript | gpl-2.0 | 2,683 |
define([
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/topic',
'dojo/on',
'dojo/_base/array',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'ngw-compulink-libs/dgrid-0.4.0/dstore/Rest',
'ngw-compulink-libs/dgrid-0.4.0/dgrid/OnDemandGrid',
'ngw-compulink-libs/dgrid-0.4.0/dgrid/Ke... | nextgis/nextgisweb_compulink | nextgisweb_compulink/compulink_admin/amd/ngw-compulink-admin/reference_books/Districts.js | JavaScript | gpl-2.0 | 1,128 |
/*
* Kendo UI v2015.2.624 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... | cuongnd/test_pro | media/Kendo_UI_Professional_Q2_2015/src/js/cultures/kendo.culture.fr.js | JavaScript | gpl-2.0 | 2,652 |
module.exports = function(grunt) {
var log = require('../node_modules/qunit/lib/log.js');
var qunit = require("qunit");
grunt.registerMultiTask("node-qunit", "Runs node-qunit ", function() {
var done = this.async(),
started = new Date(),
callback = this.data.callback;
// Setup Qunit
qunit.setup(this.dat... | mabdelmoez/nodejs-ws-ajax-rest | node_modules/grunt-node-qunit/tasks/node-qunit.js | JavaScript | gpl-2.0 | 1,217 |
define([
'js/widgets/classic_form/widget',
'js/bugutils/minimal_pubsub',
], function(ClassicForm, MinimalPubSub) {
var generateQuery = function(field, selector) {
return function() {
return $(selector, 'div[data-field=' + field + ']');
};
};
var $Q = {
dbAstronomy: generateQuery('database',... | romanchyla/bumblebee | test/mocha/js/widgets/classic_search_widget.spec.js | JavaScript | gpl-2.0 | 9,514 |
/* eslint jest/expect-expect: ["error", { "assertFunctionNames": ["expectHostedOnPhoton", "expectHostedOnPhotonInsecurely", "expectPathname", "expectQuery", "expect"] }] */
import photon from '../src';
function expectHostedOnPhoton( url ) {
expect( url ).toEqual( expect.stringMatching( /^https:\/\/i0\.wp\.com/ ) );
... | Automattic/wp-calypso | packages/photon/test/index.js | JavaScript | gpl-2.0 | 5,229 |
var searchData=
[
['vmax',['VMAX',['../ex3_8c.html#aff4b1376965cfdb32a775db8565d2540',1,'ex3.c']]]
];
| thaynamorim/discreta03g01 | doc/html/search/defines_3.js | JavaScript | gpl-2.0 | 104 |
var _ = typeof Frame5 === 'object'
if (!_) {
/***
* Node modules
*/
var EventEmitter = require('events').EventEmitter;
var Stream = require('stream');
var inherits = require('util').inherits;
//
exports = module.exports = {}
} else {
var EventEmitter = Frame5.EventEmitter;
var Stream = Frame5.Stream;
v... | FLYBYME/Frame5 | streams/split.js | JavaScript | gpl-2.0 | 1,545 |
(function(e){if(typeof define==="function"&&define.amd){define(["../widgets/datepicker"],e)}else{e(jQuery.datepicker)}})((function(e){e.regional.af={closeText:"Selekteer",prevText:"Vorige",nextText:"Volgende",currentText:"Vandag",monthNames:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","Septe... | smartcitiescommunity/Civikmind | public/lib/jquery-ui/i18n/datepicker-af.min.js | JavaScript | gpl-2.0 | 793 |
showWord(["np.","premye moun ki te rete sou latè, dapre istwa labib. Adan ak Ev te rete nan Jaden Edenn."
]) | georgejhunt/HaitiDictionary.activity | data/words/Adan.js | JavaScript | gpl-2.0 | 109 |
var searchData=
[
['argumentdefinition',['argumentDefinition',['../ezpgenerateautoloads_8php.html#ab9a0a1710f335bc48a13e8a94802be23',1,'argumentDefinition(): ezpgenerateautoloads.php'],['../ezpgenerateautoloads_8php.html#aed0ba19f5204d9659e823271642a6594',1,'argumentDefinition(): ezpgenerateautoloads.php']]... | donaldinou/ezadvancedautoload | doc/doxygen/html/search/all_61.js | JavaScript | gpl-2.0 | 744 |
module.exports = {
free: {
src: [
'**',
'!bin/**',
'!build/**',
'!grunt-tasks-config/**',
'!node_modules/**',
'!tests/**',
'!wpcs/**',
'!.git/**',
'!gruntfile.js',
'!package.json',
'!.gitignore',
'!.ftpauth',
'!.travis.yml',
'!travis-examples/**',
'!phpunit.xml',
'!re... | pppdog/customizr | grunt-tasks-config/copy.js | JavaScript | gpl-2.0 | 947 |
/** The minplayer namespace. */
var minplayer = minplayer || {};
/**
* @constructor
* @class A wrapper class used to provide all the data necessary to control an
* individual file within this media player.
*
* @param {object} file A media file object with minimal required information.
*/
minplayer.file = functio... | srandolph/drpl-otrs | sites/all/modules/html5_media/player/src/minplayer.file.js | JavaScript | gpl-2.0 | 4,359 |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | DSI-ETSII-ULL/2015-TravelApp | app/assets/javascripts/application.js | JavaScript | gpl-2.0 | 712 |
var iat = 0;
function atclick() {
if (iat === 2) {location.href = "/wp-login.php"; } else {iat = iat + 1; }
}
$(function(){
var scrollTo = function(top, duration, callback) {
var w = $(window);
var FPS = 50;
var currentTop = w.scrollTop();
var offset = (currentTop - top) / (durat... | answerai/wordpress | wp-content/themes/LunarLoveS-2.04/js/functions.js | JavaScript | gpl-2.0 | 1,031 |
// ==UserScript==
// @name Brazil New Year 2009 Official Orkut Theme By OrkutPlus.Net
// @namespace OrkutPlus.Net
// @description Let's English Orkut users to enjoy and feel New Year 2009 Official 'Brazilian' Orkut Theme.
// @include http://www.orkut.co*/*
// @author OrkutPlus.Net
// =... | GautamGupta/orkutplus | files/userscripts/new-year-brazil-orkut-theme.user.js | JavaScript | gpl-2.0 | 709 |
function AddSection(NumSection,GrosEntry){
var TabLink = ($('<li/>',{class: "subSection","data-toggle":"tab"})).append($('<a/>',{class:"LinktoAnchor", "href":"#Sect"+NumSection,"data-toggle":"tab",text:GrosEntry}))
// var SectionBody = $('<div/>',{id: 'One',class:'tab-pane',html:"<h2>@</h2>"})
$("#tabs").app... | goshva/Bootstrap-Shop | js/catalog.js | JavaScript | gpl-2.0 | 1,729 |
showWord(["v. ","repwodui dapre metòd polikopi, ki se repwodiksyon ki sèvi ak estansil pou fè plizyè kopi."
]) | georgejhunt/HaitiDictionary.activity | data/words/polikopye.js | JavaScript | gpl-2.0 | 114 |
var GroupView = function(json) {
"use strict";
var template;
if (!json.$t) {
var albums = [];
var a, album_id, i;
for (album_id in json.all_songs_for_sid) {
a = json.all_songs_for_sid[album_id][0].albums[0];
// cut off a circular memory reference quick-like
json.all_songs_for_sid[album_id][0].albums =... | williamjacksn/rainwave | static/js5/detail/GroupView.js | JavaScript | gpl-2.0 | 1,221 |
var websrv__help__functions_8c =
[
[ "mk_net_str", "websrv__help__functions_8c.html#aa16e3221d8abe2b08c51832976606df3", null ],
[ "parse_ip", "websrv__help__functions_8c.html#a58fb5d4e8cdd22df05e2b5c455f90c28", null ]
]; | axillent/stavr | doxygen/html/websrv__help__functions_8c.js | JavaScript | gpl-3.0 | 228 |
/** Pagination functions for the store */
(function (fn) {
fn.page = fn.page || {};
fn.page.first = function () { this.page = 0; this.update(); };
fn.page.next = function () { this.page += 1; this.update(); };
fn.page.prev = function () { this.page -= 1; this.update(); };
fn.page.last = function ()... | joshbrooks/libuntl | libuntl/static/riot/pagination_mixin.js | JavaScript | gpl-3.0 | 509 |
var searchData=
[
['validate_5farchitecture',['VALIDATE_ARCHITECTURE',['../seccomp-bpf_8h.html#a6487ed6835a31f9962e8b865a25028f2',1,'seccomp-bpf.h']]]
];
| outscale/outscale.github.io | packetgraph/doc/master/search/defines_7.js | JavaScript | gpl-3.0 | 156 |
// Generated on 2015-11-23 using generator-jhipster 2.24.0
'use strict';
var fs = require('fs');
// Returns the first occurence of the version number
var parseVersionFromBuildGradle = function () {
var versionRegex = /^version\s*=\s*[',"]([^',"]*)[',"]/gm; // Match and group the version number
var buildGradle ... | Raysmond/expper | Gruntfile.js | JavaScript | gpl-3.0 | 16,622 |
function FindProxyForURL(url,host){
if (isPlainHostName(host))
return "DIRECT";
var r = /(^|\.)(local(\.)?|mydomain\.com|mydomain\.net|apple\.com|icloud\.com|mzstatic\.com|googlevideo\.com)$/i;
if (r.test(host))
return "DIRECT";
var ip = dnsResolve(host);
if (isInNet(ip,"10.0.0.0","255.0.0.0")||isInNet(ip,"127... | lkrms/extensions | squid/pac.wan.default.js | JavaScript | gpl-3.0 | 491 |
/**
* © 2013-2015 GreekTurtle
*
* LICENSE:
*
* This file is part of Inscribe (http://inscribe.io).
*
* The contents of this file cannot be copied, distributed or modified without prior
* consent from the author.
*
* Project : Inscribe
* File : assets/js/validation.js
* Description : Validate Form fields
*... | pranjal-goswami/gtmvc | assets/js/validation.js | JavaScript | gpl-3.0 | 1,781 |
var gulp = require('gulp');
var server = require('gulp-server-livereload');
gulp.task('webserver', function() {
gulp.src('app')
.pipe(server({
livereload: true,
directoryListing: true,
open: true
}));
}); | jmocana2/moment-react | gulpfile.js | JavaScript | gpl-3.0 | 234 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* @author Municipio de Itajaí - Secretaria de Educação - DITEC *
* @updated 30/06/2016 *
* Pacote: Erudio *
* ... | educacaoitajai/erudio | erudio-front-beta/apps/admin/alunosANEE/services/AlunoANEE.js | JavaScript | gpl-3.0 | 3,230 |
// https://gist.github.com/1670507
// underscore addon with sum, mean, median and nrange function
// see details below
_.mixin({
// Return sum of the elements
sum : function(obj, iterator, context) {
if (!iterator && _.isEmpty(obj)) return 0;
var result = 0;
if (!iterator && _.isArray(obj)){
f... | drewda/pedplus | vendor/assets/javascripts/underscore-addons.js | JavaScript | gpl-3.0 | 2,875 |
import Param from './param'
// 字段结构 模型
class Schema {
constructor (index = 1) {
this.status = 200
this.statusText = `status${index}`
this.example = null
this.params = [new Param()]
}
}
export default Schema
| DXY-F2E/api-mocker | client/src/model/schema.js | JavaScript | gpl-3.0 | 241 |
$(function () {
var linearPeriodDefaults = {
step: 1,
start: 0,
increasing: true
};
interference.LinearPeriod = function (options) {
var settings = $.extend({}, linearPeriodDefaults, options);
this._floor = settings.floor;
this._ceiling = settings.ceiling;
this._step = settings.step;
this._c... | wohanley/interferencejs | js/color-sequence.js | JavaScript | gpl-3.0 | 2,103 |
var searchData=
[
['write',['write',['../classSha256Class.html#a0f0fc4bd4d8c53d232df0d41d7ea25e0',1,'Sha256Class']]]
];
| TaaviE/TooAutomation | docs/html/search/functions_b.js | JavaScript | gpl-3.0 | 122 |
"use strict";
parserFactory.register("comrademao.com", function() { return new ComrademaoParser() });
class ComrademaoParser extends Parser{
constructor() {
super();
}
disabled() {
return chrome.i18n.getMessage("warningParserDisabledComradeMao");
}
// This site can't handle more ... | dteviot/WebToEpub | plugin/js/parsers/ComrademaoParser.js | JavaScript | gpl-3.0 | 2,385 |
/*
LifeStream - Instant Photo Sharing
Copyright (C) 2014-2016 Kayateia
Please see LICENSE for more info
*/
'use strict';
// Stream permissions
//
// PUBLIC: anyone can search for, view images in, and subscribe to stream
// APPROVAL: anyone can search for and request invite to stream
// HIDDEN: stream hidden from ... | kayateia/lifestream-node-server | lib/dbconst.js | JavaScript | gpl-3.0 | 887 |
define([
"underscore",
"backbone",
"common/websockets/connection"
], function (_, Backbone, WSConnection) {
var currentTopic = null;
var callbackStack = [];
var callbackHandler = function (topic, msg) {
_.each(callbackStack, function(cb) {
cb(topic, msg);
});
};
... | nlegoff/Phraseanet | www/scripts/common/websockets/subscriberManager.js | JavaScript | gpl-3.0 | 989 |
var oQuery = require('../index.js');
var obj = {
a: 'str',
b: {
num: 123
},
e: {
f: {
num: 'string num'
}
},
arr: [1,2,4, {num: 321}, {num: 'str num in arr'}]
};
console.log('Main object');
console.log(obj);
console.log();
console.log('Find all objects will contains "num" property');
console.log(oQuery.... | VashurkinAnton/object-query | tests/tests.js | JavaScript | gpl-3.0 | 1,293 |
describe('Core_validate', function () {
var id = 'testContainer';
beforeEach(function () {
this.$container = $('<div id="' + id + '"></div>').appendTo('body');
});
afterEach(function () {
if (this.$container) {
destroy();
this.$container.remove();
}
});
var arrayOfObjects = functi... | maltsev/LatexWebOffice | app/static/handsontable/test/jasmine/spec/Core_validateSpec.js | JavaScript | gpl-3.0 | 33,285 |
beforeEach(function () {
jasmine.addMatchers({
toEqualData: function () {
return {
compare: function (actual, expected) {
var pass = angular.equals(actual, expected);
var toEqual = pass ? "not to equal" : "to equal";
ret... | ubc/compair | compair/static/test/helpers/matcher.js | JavaScript | gpl-3.0 | 3,301 |
/*
* PLUGIN GEOIP
*
* Swedish language file.
*
* Initial Author: art.spb, December 2009.
*
* Author: Magnus Holm (holmen@brasse.se)
*/
theUILang.peerComment = "Lägg till kommentar";
theUILang.peerCommentLabel = "Ange ny kommentar för peer";
theUILang.commentName = "Kommentar";
theUILang.countryName = ... | Rapiddot/ruTorrent | plugins/geoip/lang/sv.js | JavaScript | gpl-3.0 | 11,158 |
import React, { useEffect, useState } from "react";
import {
ScrollView,
View,
TouchableWithoutFeedback,
KeyboardAvoidingView,
Platform,
Keyboard,
} from "react-native";
import { generatePassword } from "./passwordGenerator";
import TextInput from "../ui/TextInput";
import { useDispatch, useSelector } from ... | lesspass/lesspass | mobile/src/password/PasswordGeneratorScreen.js | JavaScript | gpl-3.0 | 9,937 |
require('./styles.css');
const html = require('./template.html');
function init(element) {
element.innerHTML += html;
}
module.exports = {
init
};
| Ctrl-X/Siribro | src/DOM.js | JavaScript | gpl-3.0 | 154 |
$.fn.extend({
// NOTE: this function does not always return a jQuery object!
amarkalUIComponent: function( method ) {
// Store arguments for use with methods
var args = arguments.length > 1 ? Array.apply(null, arguments).slice(1) : null,
selection, methodReturnVal;
... | askupasoftware/amarkal-ui | assets/js/src/jquery.amarkalUIComponent.js | JavaScript | gpl-3.0 | 1,579 |
function padDigits(number, digits) {
return Array(Math.max(digits - String(number).length + 1, 0)).join(0) + number;
} | richardbishop/LoadRunnerSamples | DateJS/ExtraFunctions.js | JavaScript | gpl-3.0 | 122 |
import ShipLanePage from './ship_lane.vue';
export default ShipLanePage; | StrictlySkyler/harbormaster | imports/ui/pages/lanes/ship_lane/index.js | JavaScript | gpl-3.0 | 74 |
var blockedModule = {
find: function (UserBlocked, user, blocked) {
return UserBlocked.findOne({
or: [{
user: user.id,
blocked: blocked.id
}, {
blocked: user.id,
user: blocked.id
}]
});
},
isUserBlocked: function (UserBlocked, user, blocked) {
return b... | calidion/server.xiv.im | lib/v2/sharable/blocked.js | JavaScript | gpl-3.0 | 949 |
/*
* This file is part of the cb50_ctrl distribution (https://github.com/johnerlandsson/cb50_ctrl).
* Copyright (c) 2017 John Erlandsson
*
* 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 Foundat... | johnerlandsson/cb50_ctrl | www/assets/js/parameters.js | JavaScript | gpl-3.0 | 3,781 |
module.exports = function () {
var mongoose = require('mongoose');
var UserSchema = mongoose.Schema({
username: String,
password: String,
firstName: String,
lastName: String,
email: String,
phone: String,
websites: [{type: mongoose.Schema.ObjectId, re... | knuevena/knueven-andrew-webdev | assignment/model/user/user.schema.server.js | JavaScript | gpl-3.0 | 453 |
var a00498 =
[
[ "L2CAP API", "a00499.html", null ]
]; | DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware | nrf51_sdk/Documentation/s120/html/a00498.js | JavaScript | gpl-3.0 | 58 |
import { combineReducers } from 'redux'
import repos from './RepoReducer'
const rootReducer = combineReducers({
repos
})
export default rootReducer
| bobony/reactjs-redux-starter-kit | src/reducers/index.js | JavaScript | gpl-3.0 | 150 |
/*
* Dicziunari-Web -- Webserver backend for a multi-idiom Rhaeto-Romance
* online dictionary.
*
* Copyright (C) 2012-2013 Uli Franke (cls) et al.
*
* 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
*... | cls-nebadje/dicziunari-web | tschercha/static/tschercha.js | JavaScript | gpl-3.0 | 2,180 |
/* Custom syntax highlighter for SpaceWorld setting for brace
* (which is used by react-ace editor).
* Expects global ace variable to be present.
* Usage:
* ```
* import AceEditor from 'react-ace';
* import '../core/spaceWorldHighlighter';
* ...
* <AceEditor mode="spaceworld" />
* ```
*/
/* glob... | adaptive-learning/flocs-visual-components | src/core/spaceWorldHighlighter.js | JavaScript | gpl-3.0 | 2,576 |
var structure=require('../structures/./assay')
var controller=require('../controllers/./getSpecifiedTables')
module.exports={
index
}
function index(study_id){
var sourceTable='Assay'
let where={study:study_id}
let tableConnections={
Assay_Modality:{
Modality:{
Factor:{}
}
}
,where
}
return con... | forestbiotech-lab/sRNA-Portal-workflow | components/miRNADB/queryModels/assay.js | JavaScript | gpl-3.0 | 369 |
var alarmCtrl = function ($scope) {
$scope.currentListName = getCurrentListFromLocalStorage();
$scope.currentTodo = getCurrentTodoFromLocalStorage();
$scope.isAlarmSet = $scope.currentTodo.isAlarmSet;
$scope.alarmTime = null;
function getAlarmDate(time) {
alert(time);
var hours = ... | harokb/ToDo | js/alarmCtrl.js | JavaScript | gpl-3.0 | 2,349 |
/*
* CKFinder
* ========
* http://cksource.com/ckfinder
* Copyright (C) 2007-2013, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file, and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying, or distribu... | csalgadow/demokratian_2.x.x | modulos/ckfinder/lang/sv.js | JavaScript | gpl-3.0 | 14,097 |
( function () {
'use strict';
var events = new Observers(
// Общение между choice.query и list
'queryChanged', // Доступна новая строка запроса
'resetQuery', // Запрос очистки строки запроса
// Общение между choice.list и counter
'editRecord', // Запрос редкатирования записи в counter'е
... | kahless/diet | static/src/counter/choice/events.js | JavaScript | gpl-3.0 | 877 |
define(["exports", "../../../lit/index.js", "../../editable-table/editable-table.js"], function (_exports, _index, _editableTable) {
"use strict";
Object.defineProperty(_exports, "__esModule", {
value: true
});
_exports.GradeBookTable = void 0;
var _templateObject_6f5f68709bf111ec9d3703fd9549253d, _temp... | elmsln/elmsln | core/dslmcode/cores/haxcms-1/build/es5-amd/node_modules/@lrnwebcomponents/grade-book/lib/grade-book-table.js | JavaScript | gpl-3.0 | 3,621 |