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 |
|---|---|---|---|---|---|
// Compiled by ClojureScript 0.0-2371
goog.provide('clojure.browser.net');
goog.require('cljs.core');
goog.require('clojure.browser.event');
goog.require('clojure.browser.event');
goog.require('goog.json');
goog.require('goog.json');
goog.require('goog.net.XhrIo');
goog.require('goog.net.EventType');
goog.require('goog... | jaen/projekt-bd-frontend | javascripts/cljs-out/clojure/browser/net.js | JavaScript | epl-1.0 | 18,987 |
(function() {
'use strict';
angular.module('app.ui.form.ctrls', []).controller('DatepickerDemoCtrl', [
'$scope', function($scope) {
$scope.today = function() {
return $scope.dt = new Date();
};
$scope.today();
$scope.showWeeks = true;
$scope.toggleWeeks = function() {
... | pandasoft6/Angular-Dashboard | scripts/Form/FormCtrl.js | JavaScript | gpl-2.0 | 3,476 |
var Subject = require('../models/Subject.js');
module.exports = function (app) {
app.post('/login', function (req, res) {
req.session.subject = new Subject(req.body.name, req.body.password);
req.session.subject.auth(function (err) {
if (err) {
delete req.session.subject;
res.send(err);
... | akasfei/bugfree-actrl | routes/main.js | JavaScript | gpl-2.0 | 884 |
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|11 May 2015 07:09:16 -0000
vti_extenderversion:SR|12.0.0.0
vti_author:SR|jafnote1\\jafnote
vti_modifiedby:SR|jafnote1\\jafnote
vti_timecreated:TR|11 May 2015 07:09:16 -0000
vti_cacheddtm:TX|11 May 2015 07:09:16 -0000
vti_filesize:IR|1977
vti_backlinkinfo:VX|
| Siguana/square | wp-admin/js/_vti_cnf/media.dev.js | JavaScript | gpl-2.0 | 307 |
define([
"helpers/urls",
"helpers/contract",
"module",
// Reuse the main content parser
"components/content/entities/parser",
// Reuse the one to many type
"components/content/entities/specializations/onetomany"
], function(urls, contract, module, parser, OneToMany) {
// definition of the search model
... | localnerve/wpspa | app/components/search/model.js | JavaScript | gpl-2.0 | 899 |
var Resume = (function() {
var self;
var buf = {
//page varibles
//all text in page
localText : false,
language : "",
//last side menu item that was focused, default value is "PostPointer"
lastFocusedItem : "InfoPointer",
... | yarmyarch/Imitated-Resume | src/js/Resume.js | JavaScript | gpl-2.0 | 68,541 |
var $builtinmodule = function(name)
{
var mod = {};
mod.get = new Sk.builtin.func(function(property, index, index_value) {
Sk.builtin.pyCheckArgs("get", arguments, 3, 3);
Sk.builtin.pyCheckType("property", "string", Sk.builtin.checkString(property));
Sk.builtin.pyCheckType("index"... | RealTimeWeb/datasets | datasets/blockpy/classics/classics_skulpt.js | JavaScript | gpl-2.0 | 6,134 |
import store from '@/store'
import StoreModule from './_store'
export const useRouter = $router => {
return {
goToCollection: () => $router.push({ name: 'admin_roles' }),
goToItem: params => $router
.push({ name: 'admin_role', params })
.catch(e => { if (e.name !== "NavigationDuplicated") throw e... | inverse-inc/packetfence | html/pfappserver/root/src/views/Configuration/adminRoles/_router.js | JavaScript | gpl-2.0 | 1,706 |
/**
* EntitlementController
*
* @description :: Server-side logic for managing entitlements
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*
* jshint undef:false
*/
/* jshint undef:false */
module.exports = {
assignToRole: function (req, res) {
const roleId = req.param('rol... | featureguardian/fg-service | api/controllers/EntitlementController.js | JavaScript | gpl-2.0 | 1,526 |
/**
* Created by Administrator on 2016/5/27.
*/
console.info('--------');
//console.info('');
var async;
async = require('async');
async.waterfall([
function(callback){
callback(null,1);
},
function(data,callback){
console.info(data);
callback('test',2);
},
function(data... | jeansheepfish/jsVirya | node/ch03.async-waterfall.js | JavaScript | gpl-2.0 | 493 |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | xjdesigns/Luna | src/app/NG2/alert-display/alert-display.component.js | JavaScript | gpl-2.0 | 1,831 |
import React from 'react';
class EnumeratedList extends React.Component
{
//constructor(props)
//{
// super(props);
// this.state = {source: props.source};
//}
//
//shouldComponentMount(nextProps, nextState)
//{
// // If there are no items do not render
// if(this.st... | Page-Carbajal/Software-Engineering | Javascript/ReactJS/MyMoney/lib/components/EnumeratedList.js | JavaScript | gpl-2.0 | 1,615 |
/**
* @class Ext.feature
* @singleton
*
* A simple class to verify if a browser feature exists or not on the current device.
*
* if (Ext.feature.has.Canvas) {
* // do some cool things with canvas here
* }
*
* See the {@link #has} property/method for details of the features that can be detected... | AlexeyPopovUA/Learning-ExtJS-6-Classes | ext/packages/core/src/env/Feature.js | JavaScript | gpl-2.0 | 50,701 |
function winWid() {
var myWidth = 0; //, myHeight = 0;
if (typeof(window.innerWidth) == 'number') {
//Non-IE
myWidth = window.innerWidth;
} else if (document.documentElement
&& (document.documentElement.clientWidth
|| document.documentElement.clientHeight)) {
//IE 6+ in 'standards compliant... | oracc/oracc | misc/www/winlib.js | JavaScript | gpl-2.0 | 1,123 |
var History = exports.History = function(xMax, yMax){
this.history=[];
var i=xMax;
while(i-->0)
{
var j=yMax;
this.history[i]=[];
while(j-->0)
{
this.history[i][j]={
enabled: false,
callback: function(){
}
};
}
}
return this;
}
History.prototype={
execute: function(xpos, ypos,d... | AdrianArroyoCalle/norzarea | js/history.js | JavaScript | gpl-2.0 | 739 |
jQuery(document).ready(function ($) {
// Get token from suno page
$.ajax({
type : "POST",
url : "/wp-admin/admin-ajax.php",
enctype : 'multipart/form-data',
data : {
'action' : "get_suno_login_page",
},
success : function(data) {
$("#token-suno").val(data.token_suno);
},
cache :... | mypiglet/w-p-m-vnam | wp-content/themes/pmwtheme/js/page/category.js | JavaScript | gpl-2.0 | 439 |
Meteor.methods({
'createUserWithRole': function(data, role) {
var userId;
Meteor.call('createUserNoRole', data, function(err, result) {
if (err) {
return err;
}
Roles.addUsersToRoles(result, role);
return userId = result;
});
return userId;
},
'createUserNoRole': ... | angb/space | server/Methods.js | JavaScript | gpl-2.0 | 4,120 |
'use strict';
describe('Controller: AboutCtrl', function () {
// load the controller's module
beforeEach(module('entityDisambiguationApp'));
var AboutCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
Abo... | barooney/EntityDisambiguation | test/spec/controllers/about.js | JavaScript | gpl-2.0 | 523 |
jQuery(document).ready(function ($) {
function animateEvent() {
var getOtherDirection = function (currentDirection) {
return currentDirection === 'up' ? 'down' : 'up';
}
$('.down, .up').click(function () {
var $this = jQuery(this),
direction... | part-time-project/italians | wp-content/themes/theflavour-parent/js/events.js | JavaScript | gpl-2.0 | 7,749 |
var sass = require('gulp-sass');
var gulp = require('gulp');
var handleErrors = require('../util/handleErrors');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer-core');
gulp.task('sass', function() {
return gulp.src('./app/scss/*.scss')
.pipe(sass({
style: 'nested',
... | codeforrva/codeforrva | wp-content/themes/codeforrva/gulp/tasks/sass.js | JavaScript | gpl-2.0 | 895 |
/**
* Created by hjx on 10/26/2015.
*/
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var fs = require('fs');
var replaceThis ='<div id="root"></div>';
var withThis ='<div id="root"></div>' +
'<script src="/static/vendors.bundle.js"></script>... | ndxm/nd-react-scaffold | webpack.config.js | JavaScript | gpl-2.0 | 2,124 |
try {
require('./gulp.ftp.auth');
} catch (e) {
if (!e.code || e.code !== 'MODULE_NOT_FOUND') {
throw e;
}
console.log([
'Error: ' + e.message,
'Please create file gulp.ftp.auth.js with the form:\n',
'module.exports = {',
' user: \'[username]\'',
' password: \'[password]\'',
'}'
... | gusbicalho/expound-ierfh | gulp.config.js | JavaScript | gpl-2.0 | 880 |
process.chdir(__dirname);
var OpenPilot = require('./openpilot.js');
var child_process = require('child_process');
var async = require('async');
var fs = require("fs");
var LEVEL_SAMPLES = 100;
var op = new OpenPilot();
op.debug = process.argv[2];
async.waterfall([ function(callback) {// connect to openpilot
op.init... | ohmydigifab/OpenBLW | software/server/level_test.js | JavaScript | gpl-2.0 | 636 |
describe('Controller: NewRepositoryController', function() {
var $scope,
FormUtils,
Notification,
DownloadPolicy,
OstreeUpstreamSyncPolicy,
$httpBackend;
beforeEach(module('Bastion.repositories', 'Bastion.test-mocks'));
beforeEach(inject(function($injector) {
... | stbenjam/katello | engines/bastion_katello/test/products/details/repositories/new/new-repository.controller.test.js | JavaScript | gpl-2.0 | 3,976 |
//Converter Class
var fs = require("fs");
var Converter = require("csvtojson").Converter;
var fileStream = fs.createReadStream("./data/file.csv");
//new converter instance
var param={delimiter: ';'};
var converter = new Converter(param);
//to store result JSON-Array
var result = {}
//end_parsed will be emitted onc... | jaaguilar/traderjs | lib/js/tests/csv2json.test.js | JavaScript | gpl-2.0 | 1,131 |
define(['app/core', 'game/render/canvas-helper', 'game/math/vector2', 'lib/cuon-matrix.js', ], function(core, CanvasHelper, Vector2) {
'use strict';
/*global document */
/*global Matrix4 */
return function($canvas){
if($canvas === null){
return false;
}
var height... | Slemgrim/snakepong | src/game/render/render3D.js | JavaScript | gpl-2.0 | 11,963 |
tinyMCE.addI18n('es.simple',{
bold_desc:"Negrita (Ctrl+B)",
italic_desc:"Cursiva (Ctrl+I)",
underline_desc:"Subrayado (Ctrl+U)",
striketrough_desc:"Tachado",
bullist_desc:"Lista desordenada",
numlist_desc:"Lista ordenada",
undo_desc:"Deshacer (Ctrl+Z)",
redo_desc:"Rehacer (Ctrl+Y)",
cleanup_desc:"Limpiar c\u00f3digo ba... | Tantacom/tantacom-web | sites/all/libraries/tinymce/jscripts/tiny_mce/themes/simple/langs/es.js | JavaScript | gpl-2.0 | 330 |
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @api
*/
define([
'jquery',
'Magento_Ui/js/modal/modal'
], function ($) {
'use strict';
return function (config, el) {
var widget,
content;
if (config.contentSelector) ... | kunj1988/Magento2 | app/code/Magento/Ui/view/base/web/js/modal/modalToggle.js | JavaScript | gpl-2.0 | 910 |
document.crdist = {};
document.crdist.dist_event = new CustomEvent("load_district");
document.crdist.canton_event = new CustomEvent("load_canton");
function loadDoc(url) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
obj = J... | solvo/crdist | crdist/static/crdist/form.js | JavaScript | gpl-2.0 | 3,156 |
/*
* Copyright (C) 2021 Inera AB (http://www.inera.se)
*
* This file is part of sklintyg (https://github.com/sklintyg).
*
* sklintyg 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 t... | sklintyg/privatlakarportal | test/cypress/integration/personuppgifter.spec.js | JavaScript | gpl-2.0 | 1,473 |
/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* JavaScript for SOGo.MailerUI module */
(function() {
'use strict';
angular.module('SOGo.MailerUI', ['ngCookies', 'ui.router', 'ck', 'angularFileUpload', 'SOGo.Common', 'SOGo.ContactsUI', 'SOGo.SchedulerUI', 'ngAnimate', 'SOGo.PreferencesU... | SlavekB/sogo | UI/WebServerResources/js/Mailer/Mailer.app.js | JavaScript | gpl-2.0 | 9,865 |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'popup');
CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
{
/**
* Opens Browser in a popup. The "width" and "height" parameters accept
* numbers... | JonathanMatthey/hudsongray-website2 | wp-content/themes/grey/js/ckeditor/_source/plugins/popup/plugin.js | JavaScript | gpl-2.0 | 1,798 |
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/* modular fixture view file located inside the nested view of the custom theme */
| kunj1988/Magento2 | dev/tests/integration/testsuite/Magento/Theme/Model/_files/design/frontend/Vendor/custom_theme/Fixture_Module/web/fixture_script.js | JavaScript | gpl-2.0 | 182 |
(function ($) {
Drupal.behaviors.browserid = {
performLogin: function(context) {
navigator.id.getVerifiedEmail(function(assertion) {
if (assertion) {
$.post(Drupal.settings.basePath +'index.php?q=browserid/verify', {
'assertion': assertion,
'audience': window.location.host
... | MozillaUK/mozilla.org.uk | sites/all/modules/browserid/browserid.js | JavaScript | gpl-2.0 | 1,602 |
//Parent has to be "position: relative"
$(document).ready(function(){
$(window).load(function(){
initTooltip();
});
$(window).resize(function() {
initTooltip();
});
$(window).scroll(function() {
});
});
function initTooltip() {
var toolTip = $('.tbs-tooltip');
var a... | Linusvo/shoppingchauau | typo3conf/ext/tbs_templates/Resources/Public/Scripts/Plugins/tbs.tooltip.js | JavaScript | gpl-2.0 | 1,235 |
/**
* @file
* @brief sigplus Image Gallery Plus activation hooks for Fancybox
* @author Levente Hunyadi
* @version 1.3.0
* @remarks Copyright (C) 2009-2010 Levente Hunyadi
* @remarks Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
* @see http://hunyadi.info.hu/projects/sigplus
*/
(_... | lucashappy/ibmodels | plugins/content/sigplus/engines/fancybox/js/activation.js | JavaScript | gpl-2.0 | 493 |
// VERSION: 1.8 LAST UPDATE: 9.03.2011
/*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*
* Made by Wilq32, wilq32@gmail.com, Wroclaw, Poland, 01.2009
* Website: http://code.google.com/p/jqueryrotate/
*/
// Documentation removed from script file (was kinda useless and out... | Fredeveloppe/fredeveloppe | themes/fredeveloppe/js/jQueryRotate.2.1.js | JavaScript | gpl-2.0 | 10,418 |
/* prevent execution of jQuery if included more than once */
if(typeof window.jQuery == "undefined") {
// Global undefined variable
window.undefined = window.undefined;
var jQuery = function(a,c) {
// If the context is global, return a new object
if ( window == this )
return new jQuery(a,c);
// Make sure that a ... | oluabbeys/drupzod | js/javascript/jquery.js | JavaScript | gpl-2.0 | 59,033 |
/**
* loads tasks into array and returns
*/
module.exports = function() {
var tasks = [];
// Every Day
tasks.push({
title : 'Unload Dishwasher',
start : new Date(2014, 0, 1),
end : new Date(2014, 0, 1),
allDay : true,
frequency : 'day',
recurrence : {
... | HammNCheez/Cleansweep | LoadTasks.js | JavaScript | gpl-2.0 | 2,254 |
//
// CreatorLandscape2DContext
//
function CreatorLandscape2DContext() {
this.offsetX = 0;
this.offsetY = 0;
this.width = 16;
this.height = 16;
this.map = false;
}
CreatorLandscape2DContext.prototype = Object.create(Object.prototype);
CreatorLandscape2DContext.prototype.constructor = CreatorLandscape2DContext;
... | AndyThiel/raidaces | src/main/webapp/js/modules/pcg/creator_landscape2d_context.js | JavaScript | gpl-2.0 | 766 |
/**
* External dependencies
*/
import { assert } from 'chai';
/**
* Internal dependencies
*/
import actions from './fixtures/actions';
describe( 'Plugins Log Store', () => {
let Dispatcher, LogStore, initialErrors;
beforeEach( () => {
Dispatcher = require( 'dispatcher' );
LogStore = require( '../log-store'... | tinkertinker/wp-calypso | client/lib/plugins/test/log-store.js | JavaScript | gpl-2.0 | 750 |
'use strict';
var _ = require('lodash');
var fs = require('fs');
var path = require('path');
var winston = require('./winston.js');
var aclDefinitions = {};
/* Load and register ACL definitions */
var aclDirectory = path.join(__dirname, '../acl');
winston.log('verbose', 'Loading and registering ACL definitions...');
... | nathanchrs/oprecarc | app/components/acl.js | JavaScript | gpl-2.0 | 871 |
var db = require('../lib/db');
exports.getProjects = function (req, res, next) {
'use strict';
var sql =
'SELECT p.id, p.enterprise_id, p.abbr, p.name FROM project AS p;';
db.exec(sql)
.then(function (rows) {
res.status(200).json(rows);
})
.catch(next)
.done();
};
| IMA-WorldHealth/bhima-1.X | server/controllers/projects.js | JavaScript | gpl-2.0 | 291 |
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
window.matchMedia = window.matchMedia |... | bretkoppel/bretkoppel.github.com | assets/js/main.js | JavaScript | gpl-2.0 | 27,830 |
//IE8Respond.js
//Version:0.0.2
//Author:Arun Kumar
//Configuration
var nonResponsive = false;
var resizeEnd = false;
//Check Jquery
if ("undefined" == typeof jQuery) { throw new Error("Script Requires jQuery"); }
else {
//Variables
var mediaQueries = new Array();
var jsMQ = new Array();
var $current... | arunkumr/Media-Query-Parser-IE8 | IE8Respond.js | JavaScript | gpl-2.0 | 2,419 |
WebFontConfig = {
google: { families: [ 'Tangerine', 'Cantarell' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.typ... | KhanhTran88/New-Rubik | wp-content/themes/rubik2012/js/google.js | JavaScript | gpl-2.0 | 484 |
/*!
* jQuery UI Datepicker 1.9.2
* http://jqueryui.com
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/datepicker/
*
* Depends:
* jquery.ui.core.js
*/
(function( $, undefined ) {
$.extend($.ui, { datepicke... | Smiter/voodoo | voodoo/admin_center/static/js/jquery.ui.datepicker.js | JavaScript | gpl-2.0 | 77,482 |
var fs = require('fs');
var http = require('http');
var url = require("url");
var zlib = require('zlib');
var async = require('async');
var redis = require('redis');
var config = JSON.parse(fs.readFileSync('config.json'));
var logger = require('./logUtil.js')({
logLevel: config.logLevel,
logColors: config.lo... | lucasjones/node-boolberry-pool | lib/api.js | JavaScript | gpl-2.0 | 9,340 |
var classsorting_test_1_1_sorting_test =
[
[ "setUp", "classsorting_test_1_1_sorting_test.html#af6e2aa51c92f7fa5e53338621dc4bcf5", null ],
[ "test_ProvidedInDocument", "classsorting_test_1_1_sorting_test.html#a711be0994263a230f34937c31923c9b2", null ],
[ "test_random_1", "classsorting_test_1_1_sorting_test.... | mbartling/QtLC3 | Documentation/html/classsorting_test_1_1_sorting_test.js | JavaScript | gpl-2.0 | 468 |
'use strict';
/**********************************************************************
* Home controller
**********************************************************************/
angular.module('myApp')
.controller('HomeCtrl', function($scope,$log, data) {
$scope.msgs=data;
var ds=$scope.msgs;
$scope.$on('socket:m... | cloudhongcai/- | public/js/controllers.js | JavaScript | gpl-2.0 | 2,735 |
function GraphHopperEngine(id, vehicleType) {
var GH_INSTR_MAP = {
"-3": 7, // sharp left
"-2": 6, // left
"-1": 5, // slight left
0: 0, // straight
1: 1, // slight right
2: 2, // right
3: 3, // sharp right
4: 14, // finish reached
5: 14, // via reached
6: 10 // roundabout
};... | simonpoole/openstreetmap-website | app/assets/javascripts/index/directions/graphhopper.js | JavaScript | gpl-2.0 | 2,723 |
// Prototypal inheritance in Javascript
function Person(name) {
this.name = name;
}
Person.prototype = {
greet: function () {
return "Hello, my name is " + this.name;
}
};
var dean = new Person("Dean Shelton");
dean.greet(); | deanshelton913/certainlyshelton.me | sites/all/themes/deanshelton/code-samples/prototypal-inheritance.js | JavaScript | gpl-2.0 | 235 |
/**
* Created by hywanliyuan on 16/8/3.
*/
var dataObject = [
{id: 1, flag: 'EUR', currencyCode: 'EUR', currency: 'Euro', level: 0.9033, units: 'EUR / USD', asOf: '08/19/2015', onedChng: 0.0026},
{id: 2, flag: 'JPY', currencyCode: 'JPY', currency: 'Japanese Yen', level: 124.3870, units: 'JPY / USD', asOf: '08... | wanliyuan/wanliyuan.github.io | createTb2/main.js | JavaScript | gpl-2.0 | 5,811 |
var o2 = o2 || {};
o2.Collections = o2.Collections || {};
o2.Collections.LiveCommentsItems = ( function( $, Backbone ) {
return Backbone.Collection.extend( {
model: o2.Models.LiveCommentsItem,
comparator: function( item1, item2 ) {
// the collection should have newer items at the end of the collection
ret... | Automattic/o2 | modules/live-comments/js/collections/items.js | JavaScript | gpl-2.0 | 1,067 |
/*
* LayerSlider
*
* (c) 2011-2016 George Krupa, John Gera & Kreatura Media
*
* Plugin web: https://kreaturamedia.com/
* licenses: http://codecanyon.net/licenses/
*/
function lsShowNotice(lsobj,issue,ver){
var el;
if( typeof lsobj == 'string' ){
el = jQuery('#'+lsobj);
}else if( typeof lsobj == 'o... | namwoody/ctwclimo.com | wp-content/plugins/codecanyon-1362246-layerslider-responsive-wordpress-slider-plugin-/sources/js/layerslider.kreaturamedia.jquery.js | JavaScript | gpl-2.0 | 152,688 |
/**
* Simplified Chinese translation for bootstrap-datepicker
* Yuan Cheung <advanimal@gmail.com>
*/
;(function($){
$.fn.datepicker.dates['zh-CN'] = {
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
daysMin: ["日", "一", "二", "三", "四"... | littcai/saap | saap/saap-web/src/main/webapp/static/widgets/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh_CN.js | JavaScript | gpl-2.0 | 844 |
import { combineReducers } from 'redux';
import { persistReducer } from 'redux-persist';
import storage from 'redux-persist/es/storage';
import courseReducer from '../../routes/courses/courses/modules/courseReducer';
import courseChapterReducer from '../../routes/courses/courses/single/chapters/modules/courseChapterRe... | ia-toki/judgels | judgels-frontends/raphael/src/modules/jerahmeel/jerahmeelReducer.js | JavaScript | gpl-2.0 | 960 |
// I18N constants
// LANG: "tr", ENCODING: UTF-8
// translated: sedat http://www.cakiragakoyu.de/
{
"Please confirm that you want to open this link": "Bu köprüyü açmak istiyormusunuz",
"Cancel": "İptal",
"Dictionary": "Sözlük",
"Finished list of mispelled words": "Sözlükte bulunmayan kelimeler",
"I will open... | grlf/eyedock | javascript/scribite_editors/xinha/plugins/SpellChecker/lang/tr.js | JavaScript | gpl-2.0 | 1,280 |
function isDefined(obj) {
return typeof obj !== 'undefined';
};
function convertToField(text) {
var field = [];
var x = 0, y = 0;
for (var i = 0; i < text.length; i++) {
if (text.charAt(i) === "\n") {
x = 0;
y++;
} else {
if (!isDefined(field[x])) {
field[x] = [];
}
if (text.charAt(i) ===... | sealor/WebWorkerContest | test/TestCommons.js | JavaScript | gpl-2.0 | 940 |
(function($) {
window.cLocator = window.cLocator || {};
var map = map || {
Map: {},
markers: {},
located: {},
infoBubble: false,
bounds: new google.maps.LatLngBounds(),
markerClusterer: false,
needsFit: true,
isPanned: false,
formIndex: 0
};
/**
* Marker
*
* An individual marker. Passed e... | cornelous/jobtree | wp-content/themes/jobify/inc/integrations/wp-job-manager/js/source/wp-job-manager-map.js | JavaScript | gpl-2.0 | 9,059 |
/**
* Copyright 2009 Society for Health Information Systems Programmes, India (HISP India)
*
* This file is part of Patient-dashboard module.
*
* Patient-dashboard module is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | kenyaehrs/patient-dashboard | omod/src/main/webapp/resources/scripts/page-actions.js | JavaScript | gpl-2.0 | 20,231 |
/*jslint node: true, vars: true, nomen: true */
"use strict";
var debug = require('debug')('upnpserver:class:object.item');
var Xmlns = require('../xmlns');
var FILEMEDATA_TIMES_LIST = [ 'modifiedTime', 'changeTime', 'accessTime',
'birthTime' ];
var Item = function() {
};
module.exports = Item;
Item.UPNP_CLAS... | Jhorlin/upnpserver | lib/class/object.item.js | JavaScript | gpl-2.0 | 8,403 |
define(
[
'jquery'
],
function(
$
){
$(document).on('click', 'a[href^=http]', function(e){
var $this = $(this)
,url = $this.attr('href')
,newtab = ($this.attr('target') === '_blank' || e.metaKey || e.ctrlKey)
... | minutelabsio/Optics | library/js/modules/tracking.js | JavaScript | gpl-2.0 | 792 |
'use strict';
let assert = require( 'assert' )
, splitargs = require( 'splitargs' );
function Splitter() {
this.handle = function(o) {
o.argv = splitargs(o.input);
o.next();
};
}
module.exports = Splitter; | mucbuc/micro-box | layers/splitter.js | JavaScript | gpl-2.0 | 224 |
/*
* jQuery.upload v1.0.3
*
* Copyright (c) 2013 Bass Jobsen
* http://www.w3masters.nl/
* Dual licensed under the MIT and GPL licenses.
*
* Original written by Lagos (http://lagoscript.org/)
*
* Contributors:
* Mr Rogers http://rcode5.wordpress.com/
*/
(function($) {
var uuid = 0;
$.fn.upload = funct... | tarry2009/TestingCakeAdmin | app/webroot/js/jqueryupload.js | JavaScript | gpl-2.0 | 3,268 |
//
// Google Prettify
// A showdown extension to add Google Prettify (http://code.google.com/p/google-code-prettify/)
// hints to showdown's HTML output.
//
(function(){
var prettify = function(converter) {
return [{
type: 'output',
filter: function(source) {
r... | jiin/Puffi | scripts/showdown/src/extensions/prettify.js | JavaScript | gpl-2.0 | 821 |
/*********************************************************
*
* Author: Pablo Gutierrez Alfaro <pablo@royappty.com>
* Last Edit: 16-08-2014
* Version: 0.03
*
*********************************************************/
$(document).ready(function(){
$.ajax({
async: false,
type: "... | prismamec/prisma-welcome | src/data/assets/js/welcome/welcome.js | JavaScript | gpl-2.0 | 1,085 |
// $Id$
/**
* Move a block in the blocks table from one region to another via select list.
*
* This behavior is dependent on the tableDrag behavior, since it uses the
* objects initialized in that behavior to update the row.
*/
Drupal.behaviors.termDrag = {
attach: function(context) {
var table = $('#taxono... | springnet/drupal | modules/taxonomy/taxonomy.js | JavaScript | gpl-2.0 | 1,809 |
var data;
var instanceRead = false;
var instanceName = "";
var routes = [];
var circleRadius;
var x;
var y;
var svg;
var maing;
// viz sizes
var margin = {top: 100, right: 50, bottom: 20, left: 100};
var width = 764 - margin.left - margin.right;
var height = 500 - margin.top - margin.bottom;
// User-uploaded instan... | VRP-REP/mapper | assets/js/instancemapper.js | JavaScript | gpl-2.0 | 12,337 |
/*
*/
jQuery(function(){
jQuery(".menuparent").not(".active-trail").mouseenter(function() {
jQuery(".menuparent .active-trail > ul").fadeTo('fast',0.0);
});
jQuery(".menuparent").not(".active-trail").mouseout(function() {
jQuery(".menuparent .active-trail > ul").fadeTo('fast',1);
});
/*
jQuery('.menupare... | motionbank/public-site-and-workspace-drupal | sites/all/themes/mborg/js/nice-menu-custom-hover.js | JavaScript | gpl-2.0 | 1,395 |
dump('entering util/print.js\n');
if (typeof util == 'undefined') util = {};
util.print = function (context) {
JSAN.use('util.error'); this.error = new util.error();
JSAN.use('OpenILS.data'); this.data = new OpenILS.data(); this.data.init( { 'via':'stash' } );
JSAN.use('util.window'); this.win = new util.... | ubcic/evergreen | Open-ILS/xul/staff_client/chrome/content/util/print.js | JavaScript | gpl-2.0 | 39,216 |
/*
Copyright (C) 2016
Emmanuel ROECKER and Rym BOUCHAGOUR
http://dev.glicer.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 License, or
(at your option) any later version.... | emmanuelroecker/GL-Browser | tests/riot/tabs.js | JavaScript | gpl-2.0 | 1,219 |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | mixmix/facilawho | build/client.js | JavaScript | gpl-2.0 | 96,559 |
//browser-update.org notification script, <browser-update.org>
//Copyright (c) 2007-2009, MIT Style License <browser-update.org/LICENSE.txt>
(function() {
var $buo = function() {
// sam: my main concern here is mobile, but its an outlier, for now we support ie9, set conditionally and stuff with pushState
if (win... | concordia-publishing-house/discourse | app/assets/javascripts/external/browser-update.js | JavaScript | gpl-2.0 | 1,664 |
document.addEventListener( 'DOMContentLoaded', () => {
const search = document.getElementById( 'icon-search' );
search.addEventListener( 'keyup', ( e ) => {
const $ = jQuery;
const inputValue = $( e.target ).val();
$( '.ys-icon-search__item' ).each( ( index, element ) => {
if ( ! inputValue ) {
$( elemen... | yosiakatsuki/ystandard | src/js/admin/search-icons.js | JavaScript | gpl-2.0 | 563 |
//= require_tree ./discourse/ember
// The Vendored JS
//= require LAB.js
//= require Markdown.Converter.js
//= require Markdown.Editor.js
//= require Markdown.Sanitizer.js
//= require better_markdown.js
//= require bootbox.js
//= require bootstrap-alert.js
//= require bootstrap-button.js
//= require bootstrap-dropdown... | cloud66-samples/discourse | app/assets/javascripts/main_include.js | JavaScript | gpl-2.0 | 2,340 |
const ModLog = require("./../../Modules/ModerationLogging.js");
module.exports = (bot, db, config, winston, userDocument, serverDocument, channelDocument, memberDocument, msg, suffix) => {
if(suffix) {
let member, reason;
if(suffix.indexOf("|" )> -1 && suffix.length > 3) {
member = bot.memberSearch(suffix.subs... | ChatterBoxGames/ChatterBot | Commands/Public/ban.js | JavaScript | gpl-2.0 | 2,634 |
/* DHTML-Bibliothek */
var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;
var counter = 0; var d;
var keymap = Array();
keymap[110] = 'next';
keymap[112] = 'prev';
keymap[116] = 'toc';
keymap[113] = 'quit';
function DHTML_init() {
if (window.opera) {
OP = 1;
}
if (document.getElementById) {
D... | traverseda/pylize-traverseda | lib/pylize.js | JavaScript | gpl-2.0 | 6,831 |
var xmlhttp = new XMLHttpRequest();
var type = "get";
var url = "";
var async = true;
xmlhttp.open(type, url, async);
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyStatus==4){//1 2 3 4
if(xmlhttp.status==200){//http 状态码
}
}
};
var data = null;
xmlhttp.send(data);
/**
掌握 Ajax,第 1 部分: Ajax 入门简介
http://ww... | simonbaker/javascript | js/profile-test/XMLHttpRequest.js | JavaScript | gpl-2.0 | 458 |
module.exports = {
dist: {
files: {
'dist/static/flicks.js': [ '.tmp/concat.js' ]
}
}
};
| buzz/flicks | flicksfrontend/grunt/uglify.js | JavaScript | gpl-2.0 | 107 |
/*
* Wazuh app - Authentication sample alerts
* Copyright (C) 2015-2021 Wazuh, Inc.
*
* 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... | wazuh/wazuh-kibana-app | server/lib/generate-alerts/sample-data/authentication.js | JavaScript | gpl-2.0 | 8,156 |
var stage;
var time = 0;
var interval = 0.005;
var shape;
var shapePoints = 6;
var shapeDepth = 2;
var shapeAng = 360/shapePoints;
var shapeSize = 82;
var lineThickness = 1.5;
var homeLink;
function buildLogo() {
stage = new createjs.Stage("logo");
if(shape) {
stage.removeChild(shape);
}
TweenLite.ticker.addE... | vectorclash/vectorplayground | sites/all/themes/vectorplayground/js/logo.js | JavaScript | gpl-2.0 | 5,087 |
const noop = () => {};
const WAIT_INITIAL = 1; // initial wait in milliseconds
const WAIT_MULTIPLIER = 2;
const WAIT_MAX = 2048; // give up waiting when delay has grown to ~4 seconds
const wait = ( { condition, consequence, delay = 0, onError = noop } ) => {
if ( condition() ) {
consequence();
return;
}
if ( d... | Automattic/wp-calypso | client/layout/guided-tours/wait.js | JavaScript | gpl-2.0 | 553 |
showWord(["v.","Bay pwazon. Yo di se anpwazonnen yo anpwazonnen Lisi, men pèsonn moun pa konnen si se vre."
]) | georgejhunt/HaitiDictionary.activity | data/words/anpwazonnen.js | JavaScript | gpl-2.0 | 112 |
(function (QUnit) {
// jQuery promise objects have .then and .always methods
// Q promise objects have .then and .finally methods
function verifyPromise(promise) {
if (!promise) {
throw new Error('expected a promise object');
}
if (typeof promise.then !== 'function') {
thro... | sarahhenderson/enduring-stash | src/lib/qunit/qunit.promises.js | JavaScript | gpl-2.0 | 3,173 |
var searchData=
[
['arene',['Arene',['../class_arene.html',1,'']]],
['arme',['Arme',['../class_arme.html',1,'']]]
];
| JunkiesCorporation/Ultimate-Penguin-Rampage | UltimatePenguinRampage/doc/html/search/classes_0.js | JavaScript | gpl-2.0 | 121 |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('timeline-item', 'Unit | Serializer | timeline item', {
// Specify the other units that are required for this test.
needs: ['serializer:timeline-item']
});
// Replace this with your real tests.
test('it serializes records', function(assert) {
le... | mestafrica/mestlife | tests/unit/serializers/timeline-item-test.js | JavaScript | gpl-3.0 | 429 |
angular.module('habitrpg')
.filter('roundLargeNumbers', function(){
return function (num) {
return _calculateRoundedNumber(num);
}
});
function _calculateRoundedNumber(num) {
if (num > 999999999) {
return _convertToBillion(num);
} else if (num > 999999) {
return _convertToMillion(num);
... | labinno/ipc-gamification | website/public/js/filters/roundLargeNumbers.js | JavaScript | gpl-3.0 | 678 |
/* global describe it expect jest */
jest.unmock("chomex");
jest.unmock("../../src/js/Application/Models/Queue/Queue");
import {Mission} from "../../src/js/Application/Models/Queue/Queue";
// Dependencies
jest.unmock("../../src/js/Services/Assets");
jest.unmock("../../src/js/Application/Models/Config");
import Config ... | yajamon/kanColleWidget | tests/Models/Queue-test.js | JavaScript | gpl-3.0 | 1,209 |
var signalManager = {};
function SignalManager() {
this.itemUseSignal = new Phaser.Signal();
}
| valrak/shinySlimy | ui/generic/SignalManager.js | JavaScript | gpl-3.0 | 98 |
function GetGrid(){
jQuery("#list2").jqGrid({
url:'controller/server/smscenter/smscenter.php?orgid='+defaultorgid,
datatype: "json",
colNames:['Id','Агент','Логин','Пароль','Отправитель','Файл настройки вызова','Порог отправки','Основной','Действия'],
colModel:[
{name:'id',index:'id', width:55},
... | donpadlo/webuseorg3 | controller/client/js/smscenter/smscenter.js | JavaScript | gpl-3.0 | 2,222 |
const development = {
NODE_ENV: process.env.NODE_ENV,
NODE_LOG_LEVEL: process.env.NODE_LOG_LEVEL,
nsq: {
server: '127.0.0.1',
wPort: 32769, // TCP nsqd Write Port, default: 4150
rPort: 32770, // HTTP nsqlookupd Read Port, default: 4161
lookupdHTTPAddresses: ['127.0.0.1:32770'] // HTTP default: '12... | darvydas/trackinops-crawler | configuration.js | JavaScript | gpl-3.0 | 1,146 |
// flow-typed signature: aa4b029e120670405b727459ea3b67ba
// flow-typed version: <<STUB>>/eslint_v^3.19.0/flow_v0.54.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* comm... | laundree/laundree | flow-typed/npm/eslint_vx.x.x.js | JavaScript | gpl-3.0 | 69,964 |
/* 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/common/scripts/controller/navigationCtrl.js | JavaScript | gpl-3.0 | 1,534 |
//jQuery to collapse the navbar on scroll
$(window).scroll(function() {
if ($(".navbar").offset().top > 50) {
$(".navbar-fixed-top").addClass("top-nav-collapse");
} else {
$(".navbar-fixed-top").removeClass("top-nav-collapse");
}
});
//jQuery for page scrolling feature - requires ... | Koshux/Portfolio | website/js/scrolling-nav.js | JavaScript | gpl-3.0 | 724 |
import { isEmpty, isString, isObject, defaultToJSON } from './r_helpers.js';
import DisplayOptions from './DisplayOptions.js';
import RandomTableEntry from './RandomTableEntry.js';
import { getWeightedRandom } from './randomizer.js';
/**
* RandomTable: Model for tables used by TableRoller
*/
export default class Ran... | derikb/rpg-table-randomizer | src/RandomTable.js | JavaScript | gpl-3.0 | 8,268 |
'use strict';
var moduleHandler = require('./lib/module-handler');
module.exports = moduleHandler; | Wh1teRabbitHU/ModuleHandler | index.js | JavaScript | gpl-3.0 | 100 |
"use strict";
var journalDataAccessLib = require('../../dataaccess/journal/journal.dataaccess');
var JournalMaintenanceService = (function () {
function JournalMaintenanceService() {
}
JournalMaintenanceService.prototype.init = function () {
this.journalDataAccess = new journalDataAccessLib.JournalD... | marthinusswart/goalfish | services/maintenance/journal.service.js | JavaScript | gpl-3.0 | 1,778 |
import React from 'react';
import { withHandlers, withProps, compose } from 'recompose';
import { Backdrop, Button } from '@blendle/lego';
import withRouter from 'react-router/lib/withRouter';
import { getBaseUrl } from 'helpers/baseUrl';
import AuthStore from 'stores/AuthStore';
import AffiliatesStore from 'stores/Aff... | BramscoChill/BlendleParser | information/blendle-frontend-react-source/app/modules/premiumSignup/components/VodafoneConnect/index.js | JavaScript | gpl-3.0 | 2,075 |
// Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 la... | immartian/musicoin | js/src/dapps/tokenreg/Tokens/Token/token.js | JavaScript | gpl-3.0 | 8,754 |