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
function showThunk (thunk) { return thunk.function+"("+thunk.arguments.map(showTerm).join(", ")+")" } function showTerm (term) { if (term.Right) { return (typeof term.Right === "string") ? JSON.stringify(term.Right) : term.Right } return "?"+term.Left } return function (datas) { var ready = true var hi...
lachrist/kusasa-hs
client/js/pursuer.js
JavaScript
gpl-2.0
3,446
DateInput = (function ($) { function DateInput(el, opts) { if (typeof (opts) != "object") opts = {}; $.extend(this, DateInput.DEFAULT_OPTS, opts); this.input = $(el); this.bindMethodsToObj("show", "hide", "hideIfClickOutside", "keydownHandler", "selectDate"); this.build(); ...
lavajumper/pgmmcfe
www/js/jquery.date_input.pack.js
JavaScript
gpl-2.0
12,327
( function(){ var Promise = function() { var callbacks = []; var result = null; this.then = function(cb) { if(result != null) cb(result); else callbacks.push(cb); return this; }; this.fulfil = function(res) { result = res; for(var i in callbacks) { ...
manuels/pdftex.js
release/pdftex.js
JavaScript
gpl-2.0
3,238
'use strict'; egdApp .config(function ($stateProvider) { $stateProvider .state('test', { abstract: true, parent: 'site' }); });
esutoniagodesu/egd-web
src/main/webapp/scripts/app/test/test.js
JavaScript
gpl-2.0
201
Ext.define('EscomApp.model.admin.Submodule', { extend : 'Ext.data.Model', fields : [ {name: 'modulo_k', type: 'int'}, {name: 'submodulo_k', type: 'int'}, {name: 'text', type: 'string', mapping: 'nombre'}, {name: 'descripcion', type: 'string'}, ...
BucketDev/escom
assets/js/escomapp/model/admin/Submodule.js
JavaScript
gpl-2.0
436
/* * Author: Pleisterman * Info: * Web: www.pleisterman.nl * Mail: [email protected] * GitHub: Pleisterman * * Purpose: this module controls the drawing of the mars for the application space invaders * mars is animated along the bottom middle of the screen * * Last revisio...
Pleisterman/gameDevelopment
gameDevelopment/spaceInvaders/javascript/marsModule.js
JavaScript
gpl-2.0
8,127
app.factory("Menus", ["WPRest", "SITE_INFO", function(WPRest, SITE_INFO) { //our old friend from bootstrap_play function createHashMap(MenuLinksData) { var menuTree = []; var hash = {}; MenuLinksData.sort(function(x, y) { return x.order > y.order; }); MenuLinksData.forEach(function(li...
moller-g-peter/sellforce
wp-content/themes/ngTheme-master/js/services/menufactory.js
JavaScript
gpl-2.0
2,271
/** * Custom Media Library modal window interaction * * @package SlideDeck * @author dtelepathy * @version 1.0.0 */ var SlideDeckMediaLibrary = function(){ // Class for single add buttons this.singleAddClass = "add-to-slidedeck-button"; // ID for multi add button this.addAllId = "slid...
rigelstpierre/Everlovin-Press
wp-content/plugins/slidedeck2-pro/decks/image/medialibrary.js
JavaScript
gpl-2.0
8,235
var url = require('url') , querystring = require('querystring'); module.exports = function(rules) { 'use strict'; rules = (rules || []).map(function(rule) { var parts = rule.replace(/\s+|\t+/g, ' ').split(' '); var flags = '', flagRegex = /\[(.*)\]$/; if(flagRegex.test(rule)) { fla...
localnerve/wpspa
node_modules/connect-modrewrite/src/modrewrite.js
JavaScript
gpl-2.0
3,873
(function($){ $(window).load(function(){ var _p="mPS2id", _o=mPS2id_params; for(var i=0; i<_o.total_instances; i++){ var shortcodeClass=_o.shortcode_class; // Shortcode without suffix //var shortcodeClass=_o.shortcode_class+"_"+(i+1); // Shortcode with suffix $(_o.instances[_p+"_instance_"+i][...
afhall/uSamp
wp-content/plugins/page-scroll-to-id/js/jquery.malihu.PageScroll2id-init.js
JavaScript
gpl-2.0
1,433
export function getConfiguredTitanMailboxCount( domain ) { return domain.titanMailSubscription?.numberOfMailboxes ?? 0; }
Automattic/wp-calypso
client/lib/titan/get-configured-titan-mailbox-count.js
JavaScript
gpl-2.0
123
var QrValidation = function() { }; QrValidation.prototype.stringExtractor = function(string){ container = string.split(','); return container; }; QrValidation.prototype.postcodeValidator = function(postcode){ if (postcodeCounter(postcode) == true && postcodeSplitter(postcode) == true){ return true; } else { ...
lukeexton96/Postcode-Validator
QR-Format_validations/src/QrValidations.js
JavaScript
gpl-2.0
1,583
define("dc/boardevents",[],function(){ return function(board){ var events=this.events={}; this.on=board.on=function(event,callback){ if(!events[event]) events[event]=[]; events[event].push(callback); } this.send=function(event){ if(!events[...
KaltZK/drawcraft
static/script/dc/boardevents.js
JavaScript
gpl-2.0
551
jQuery(function($){ var BRUSHED = window.BRUSHED || {}; /* ================================================== Mobile Navigation ================================================== */ var mobileMenuClone = $('#menu').clone().attr('id', 'navigation-mobile'); BRUSHED.mobileNav = function(){ var windowWidth = $(windo...
sudocoda/crimzonbeats_onepage
v3/_include/js/main.js
JavaScript
gpl-2.0
12,367
/** * DO NOT EDIT THIS FILE. * See the following change record for more information, * https://www.drupal.org/node/2815083 * @preserve **/ (function ($, Drupal, window) { Drupal.MediaLibrary = { currentSelection: [] }; Drupal.AjaxCommands.prototype.updateMediaLibrarySelection = function (ajax, response, sta...
gitkyo/tamtam
core/modules/media_library/js/media_library.ui.js
JavaScript
gpl-2.0
7,770
/* * Copyright (c) 2009, 2010 and 2011 Frank G. Bennett, Jr. All Rights * Reserved. * * The contents of this file are subject to the Common Public * Attribution License Version 1.0 (the “License”); you may not use * this file except in compliance with the License. You may obtain a * copy of the License at: * *...
co-alliance/adr
sites/all/modules/islandora_contrib/islandora_scholar/modules/citeproc/lib/citeproc-js/tests/citeproc-js/fun.js
JavaScript
gpl-2.0
2,584
var searchData= [ ['j',['j',['../class_m_matrix.html#aac8360b87dde4abf36fc5993594adf87',1,'MMatrix']]] ];
DruggedBunny/openb3d.mod
openb3d.mod/html/search/variables_9.js
JavaScript
gpl-2.0
108
var searchData= [ ['reset',['reset',['../interface_a_f_d_x_detector.html#a854270927a6a4c95ea9953507dcde899',1,'AFDXDetector']]] ];
Affectiva/developerportal
pages/platforms/v3/ios/classdocs/search/functions_4.js
JavaScript
gpl-2.0
133
/** * Created by faiz on 11/25/15. */
faizulhaque/oyster-auth
lib/middlewares/index.js
JavaScript
gpl-2.0
40
/** * @file * A JavaScript file for the theme. * * In order for this JavaScript to be loaded on pages, see the instructions in * the README.txt next to this file. */ // JavaScript should be made compatible with libraries other than jQuery by // wrapping it with an "anonymous closure". See: // - https://drupal.or...
stevepolitodesign/cjv
sites/all/themes/cjv/js/script.js
JavaScript
gpl-2.0
1,435
/* * 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/kendo.touch.js
JavaScript
gpl-2.0
4,885
'use strict'; /** * @ngdoc function * @name d8intranetApp.controller:MainCtrl * @description * # MainCtrl * Controller of the d8intranetApp */ angular.module('d8intranetApp') .controller('UserCtrl', function ($scope, $http, $routeParams, getJsonData) { getJsonData.getUsers().then(function (d) { $s...
M1r1k/d8intranet
angular/app/scripts/controllers/user.js
JavaScript
gpl-2.0
1,596
(function($){ window.YouTubeSource = { elems: {}, updateYouTubePlaylists: function(){ var self = this; $.ajax({ url: ajaxurl + "?action=update_youtube_playlists&youtube_username=" + $('#options-youtube_username').val(), type: "GET", ...
elmehdiboutaleb/mjwebsite
wp-content/plugins/slidedeck3/sources/youtube/source.js
JavaScript
gpl-2.0
3,518
/* * translate * * allow to translate text in input * */ ; (function($) { $.fn.translate = function(inParam) { var toInit = []; this.each(function(){ var translate = this; var $translate = $(translate); if ($(translate).data('initialized')) { ...
grlf/eyedock
amember/application/default/views/public/js/translate.js
JavaScript
gpl-2.0
4,038
exports.requestOptions = { hostname: '127.0.0.1', port: 8000, path: '/', method: 'POST', rejectUnauthorized: false, requestCert: true, agent: false } exports.procedure_auth = 'key'; exports.uniqueId = '987';
dpxxdp/Pipes
client/client/client_settings.js
JavaScript
gpl-2.0
241
/** * Copyright (c) 2009-2010 The Open Planning Project */ GeoExt.Lang.add("es", { "GeoExplorer.prototype": { zoomSliderText: "<div>Nivel de detalle: {zoom}</div><div>Escala: 1:{scale}</div>", loadConfigErrorText: "Problemas leyendo la configuración guardada: <br />", loadConfigErrorDefau...
fedesanchez/suite-3.1
geoexplorer/app/static/script/app/locale/app/es.js
JavaScript
gpl-2.0
1,642
/* * dashboard.js * * (c) 2020-2021 Jörg Wendel * * This code is distributed under the terms and conditions of the * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. * */ var widgetWidthBase = null; var widgetHeightBase = null; var weatherData = null; var wInterval = null; var actDashboard = -1;...
horchi/linux-p4d
htdocs/dashboard.js
JavaScript
gpl-2.0
96,718
angular.module('bhima.controllers') .controller('StockDefineLotsModalController', StockDefineLotsModalController); StockDefineLotsModalController.$inject = [ 'appcache', '$uibModalInstance', 'uiGridConstants', 'data', 'LotService', 'InventoryService', 'SessionService', 'CurrencyService', 'NotifyService', 'Exch...
IMA-WorldHealth/bhima
client/src/modules/stock/entry/modals/lots.modal.js
JavaScript
gpl-2.0
16,796
/*----------------------------------------------------------------------------------| www.giz.de |----/ Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb /-------------------------------------------------------------------------------------------------------/ @version 3.4.x @build 2nd March, 20...
namibia/CBP-Joomla-3-Component
media/js/health_data.js
JavaScript
gpl-2.0
3,118
module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON( 'package.json' ), makepot: { target: { options: { domainPath: '/languages', // Where to save the POT file. exclude: ['.git/.*', '.svn/.*', '.node_modules...
priard/anspress
Gruntfile.js
JavaScript
gpl-2.0
4,416
var KEYS = { moveForward: 119, moveBackward: 115, strideLeft: 97, strideRight: 100, turnLeft: 113, turnRight: 101 }; function processKeyPress(key) { switch (key) { case KEYS.moveForward: if (!dr.webGLPositionDiff.anythingToMove) { party.position.forward(); } break; case KEYS.turnLeft: if (!dr.web...
lotcz/ghobok
src/controls.js
JavaScript
gpl-2.0
932
function capitalise(t){return t.charAt(0).toUpperCase()+t.slice(1)}function cleanseCSV(t){var e=t.split(",");return _.map(e,function(t){return t.trim()})}function getCSSPath(){return _.getDebug(),"/assets/css/litchi.css"}function getDebug(){var t=document.location.hostname,e=["localhost"];return-1==_.indexOf(e,t)?!1:!0...
slavomirvojacek/litchi-www
www/app/build/lodash.js
JavaScript
gpl-2.0
558
/** * Youxi Gallery Form Field JS * * This script contains the initialization code for the gallery form field. * * @package Youxi Core * @author Mairel Theafila <[email protected]> * @copyright Copyright (c) 2013-2015, Mairel Theafila */ ;(function( $, window, document, undefined ) { "use st...
yemingyuen/mingsg
wp-content/plugins/youxi-core/admin/field_assets/js/youxi.form.gallery.js
JavaScript
gpl-2.0
2,808
/** * Creates an instance of the canvas. Also handles the configuration of the canvas. * @constructor * @param {HTML} document - The descriptor of the HTML. */ function GraphicsDevice(document) { "use strict"; /*global Element*/ this.canvas = document.querySelector("canvas"); } /** * Gets the preferre...
Rockam/XgameJS
src/JS/XNA_Classes/GraphicsDevice.js
JavaScript
gpl-2.0
4,744
/** * @file * Views Slideshow Xtra Javascript. */ (function ($) { Drupal.viewsSlideshowXtra = Drupal.viewsSlideshowXtra || {}; var pageX = 0, pageY = 0, timeout; Drupal.viewsSlideshowXtra.transitionBegin = function (options) { // Find our views slideshow xtra elements $('[id^="views-slideshow-xtra-"]:...
gocosmonaut/packwood
sites/default/files/js/js_CfeNDle0-FEDne-b5nwDvZC3V5IyC1g2IYKSzrjdUCQ.js
JavaScript
gpl-2.0
19,386
openerp.bahmni_web_extensions.fixingErrorInCancelEdition = function(instance) { instance.web.ListView.include({ cancel_edition: function (force) { var self = this; return this.with_event('cancel', { editor: this.editor, form: this.editor.form, ...
3dfxsoftware/cbss-addons
bahmni_web_extensions/static/src/js/fixingErrorInCancelEdition.js
JavaScript
gpl-2.0
1,215
import $ from 'jquery' /** * Display a message or error to the user with an appropriate timeout * @param String msg The message to be displayed * @param Integer timeout How long to show the message * @param Boolean error Whether to show an error (true) or a message (false or undefined) * @return void * ...
blueliquiddesigns/gravity-forms-pdf-extended
src/assets/js/admin/helper/showMessage.js
JavaScript
gpl-2.0
757
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { CKEDITOR.plugins.add( 'templates', { requires : [ 'dialog' ], init : function( editor ) { CKEDITOR.dialog.add( 'templates', CKEDITOR.getUrl( th...
JonathanMatthey/hudsongray-website2
wp-content/themes/grey/js/ckeditor/_source/plugins/templates/plugin.js
JavaScript
gpl-2.0
2,321
(function($) { $.fn.getWidget = function () { return $( '#ctx_linker' ); } $.fn.getWidgetType = function () { return $.fn.getWidget().attr( 'widget-type' ); } $.fn.classChanger = function ( widgetClass, hasClassName, addClassName) { if( $( '.' + widgetClass ).hasClass( hasClassN...
Make-Magazine/makeblog
includes/contextly-related-links/js/mobile_optimization.js
JavaScript
gpl-2.0
5,265
(function(){var m=window.cfx,b=window.sfx,s={Version:"7.2.5289.19355"};m.highlow=s;var o=function j(){j._ic();this.a=this.b=0};o.prototype={_0dM:function(j,a){j.x==a.x?(this.a=j.x,this.b=b.D.e):(this.a=(a.y-j.y)/(a.x-j.x),this.b=a.y-this.a*a.x);return this},d:function(j){if(this.a==j.a)return new b.e;var a=0,c=0;b.D.h(...
elayarajap/dolo_dev
includes/charts/js/jchartfx.highlow.js
JavaScript
gpl-2.0
3,655
var searchData= [ ['increment',['increment',['../classBmobObject.html#ac725ea22c4471549c97481f86f4c0bd1',1,'BmobObject::increment(string column, int value=1)'],['../classBmobObject.html#a4005600e120af2ed659623eaaad13e41',1,'BmobObject::increment(string column, int value=1)']]], ['index',['index',['../classJson_1_1V...
bmob/BmobCocos2d-x
html/search/functions_7.js
JavaScript
gpl-2.0
1,828
EasyBlog.module("media/constrain",function($){var module=this;EasyBlog.require().library("image").done(function(){$.fn.constrain=function(){var constrain=this.data("constrain");if(constrain instanceof $.Constrain)if(arguments.length>0)constrain.update(arguments[0]);else return constrain;else{constrain=new $.Constrain(t...
cuongnd/banhangonline88_joomla
media/com_easyblog/scripts_/media/constrain.min.js
JavaScript
gpl-2.0
4,657
$(document).ready(function() { //// Menu var scrollOffset; function getOffset(){ scrollOffset = $('header').outerHeight(); } getOffset(); $('.content').anchorific({ anchorText: '', spyOffset: -30 }); ///// Navigation $('nav li a').on('click', navclick); $('#logo a').on('click', navclick); func...
stinlemp/praxis
site/templates/scripts/main.js
JavaScript
gpl-2.0
3,338
//require <jquery.packed.js> //require <xmp-js/xmp.iif.min.js> (function() { var $ = jQuery; registerXatafaceDecorator(function() { $('img[attribution]').each(function() { console.log("found attribution"); var src = $(this).attr('src'); if (!src) { ret...
shannah/xataface
js/xataface/img_attribution.js
JavaScript
gpl-2.0
771
var searchData= [ ['page',['Page',['../classPage.html',1,'']]], ['pagegenerator',['PageGenerator',['../classPageGenerator.html',1,'']]], ['panel',['Panel',['../classPanel.html',1,'']]], ['passwordtpl',['PasswordTpl',['../classPasswordTpl.html',1,'']]], ['pluginconfig',['PluginConfig',['../classmmc_1_1support_...
pulse-project/mmc-core
doc-doxy/html/search/classes_d.js
JavaScript
gpl-2.0
1,865
function LunaAssistant() { // we'll need this for the subscription based services this.subscription = false; }; LunaAssistant.prototype.setup = function() { this.controller.get('title').innerHTML = $L("Luna Manager"); this.controller.get('rescan-text').innerHTML = $L("Due to a webOS bug, this will close and sto...
webos-internals/preware
app/assistants/luna-assistant.js
JavaScript
gpl-2.0
5,187
if(Drupal.jsEnabled) { // Run the code when the DOM has been fully loaded $(document).ready(function(){ // Attach the code to click plusone-click $('a.plusone-link').click(function(){ var voteSaved = function(data){ $('div.score').html(data.total_votes); $('div.vote').html(data.voted); }; alert(t...
niying126/beacon
sites/all/modules/plusone/plusone.js
JavaScript
gpl-2.0
482
function reverse(s){ return s.split("").reverse().join(""); } rs=reverse("Hello Javascript"); console.log(rs);
sebastiankalinowski/coderbyte
eReverse/Reverse.js
JavaScript
gpl-2.0
112
'use strict'; angular.module('yeashopApp', [ 'ngCookies', 'ngResource', 'ngSanitize', 'btford.socket-io', 'ui.router', 'ngAnimate', 'ui.navbar', 'ui.bootstrap', 'ngFileUpload', //za slike 'ngCart', 'braintree-angular' //paypal, kartice ]) .config(function($stateProvider, $urlRouterProvider, $lo...
yeahnyea/yshop
client/app/app.js
JavaScript
gpl-2.0
1,695
/* * jQuery plugin used do the message loading, into the main view */ (function($) { $.fn.loadCommunityMessage = function() { // Locate the content to be added $content = $(this) .find('.node-type-community_message') .parent(); // Locate the view content area $wrapper = $(this) ...
bsiete2000/redinmob
sites/default/modules/community_messages_alters/js/jquery.plugins.js
JavaScript
gpl-2.0
1,497
var express = require('express'); var Model = require('../models/Model'); var router = express.Router(); var Errors = require('../controllers/common/errors'); var Constants = require('../controllers/common/constants'); /* GET users listing. */ router.get('/', function(req, res, next) { var result = []; var age...
neer300/uberchallenge
RTTransit/routes/agency.js
JavaScript
gpl-2.0
5,362
var searchData= [ ['galeshapleyadmission',['GaleShapleyAdmission',['../classalgo1_1_1GaleShapleyAdmission.html',1,'algo1']]] ];
animeshbaranawalIIT/SeatAllocation
lab10_group26_final/code/GS/html/search/classes_1.js
JavaScript
gpl-2.0
130
//define used to prevent the polluting of global namespace. //first argument of define requires other modules. // second argument is function that requires modules. define([ 'jquery' , 'url/main' , 'backbone' ], function ( $ , BurberryPictureRouter , Backbone ){ var DOMReady = function (){ URL.route...
NaomiGaynor/playback
public/js/contents.js
JavaScript
gpl-2.0
884
/* global setUserSetting, ajaxurl, commonL10n, alert, confirm, pagenow */ var showNotice, adminMenu, columns, validateForm, screenMeta; ( function( $, window, undefined ) { // Removed in 3.3. // (perhaps) needed for back-compat adminMenu = { init : function() {}, fold : function() {}, restoreMenuState : function() {...
hanwoody/WordPress
wp-admin/js/common.js
JavaScript
gpl-2.0
24,308
/** * Contempo Mapping * * @package WP Pro Real Estate 3 * @subpackage JavaScript */ var estateMapping = (function () { var self = {}, marker_list = [], open_info_window = null, x_center_offset = 0, // x,y offset in px when map gets built with marker bounds y_center_offset = -100, x_info...
Alexscandal/Motel-explore
wp-content/themes/realestate_3/js/mapping.js
JavaScript
gpl-2.0
5,516
// remap jQuery to $ ;(function($){ $.fn.attentionGrabber = function(options) { var defaults = { duration : 500, position : 'top', closeable : true, showAfter : 0, keepHidden : false, borderSize : 3, height : 40, easing : "linear" }, settings = $.extend({}, defaults, options); if...
damond-pocketatl/invitationHomes
wp-content/plugins/attentionGrabber_v1.6/js/attentionGrabber.js
JavaScript
gpl-2.0
7,237
/** * Created with JetBrains PhpStorm. * User: edvinbrobeck * Date: 2013-08-28 * Time: 15:50 * To change this template use File | Settings | File Templates. */
MaxHill/omelettfoto
wp-content/themes/omelettfoto/assets/js/source/plugins/sample.js
JavaScript
gpl-2.0
166
var stones = [] var running = true function stonePlaced(stoneComponent, parent) { if(running) { var stone = stoneComponent.createObject(parent); stone.handleDetectionStarted() stones.push(stone); stone.destructionRequested.connect(removeStone) console.log("added stone to lis...
bbvch/farbsort-gui
qml/items/StoneHandler.js
JavaScript
gpl-3.0
3,648
'use strict'; const http = require('http'); module.exports = function *errorHandler(next) { try { yield next; if (this.response.status === 404 && !this.response.body) { this.throw(404); } } catch (err) { this.status = err.status || 500; this.app.emit('erro...
plugCubed/plugCubed-Website
middleware/error.js
JavaScript
gpl-3.0
1,044
/** * Created by kozhevnikov on 01.04.2016. */ var onmotion = {}; onmotion.gallery = function (id, extOptions) { document.getElementById('gallery-links').onclick = function (event) { event = event || window.event; var target = event.target || event.srcElement, options = typeof extOptio...
onmotion/yii2-gallery
assets/js/onmotion-gallery.js
JavaScript
gpl-3.0
3,510
'use strict'; var logger = require('winston'); module.exports = function(role){ return function(req, res, next){ logger.debug(req.user); if(!req.user) return res.status(401).json({ err: 'Unauthorized' }); if( req.user.role !== role ) return res.status(403).json({ err: 'Access Denied' });...
ahmed-dinar/JustOJ
server/middlewares/roles.js
JavaScript
gpl-3.0
341
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.document} class, which * represents a DOM document. */ /** * Represents a DOM win...
ernestbuffington/PHP-Nuke-Titanium
includes/wysiwyg/ckeditor/core/dom/window.js
JavaScript
gpl-3.0
2,489
/** * @author Timur Kuzhagaliyev <[email protected]> * @copyright 2017 * @license GPL-3.0 */ class Helper { lerp(current, target, fraction) { if(isNaN(target) || target === Infinity || target === -Infinity) return current; return current + (target - current) * fraction; } constrain(m...
TimboKZ/Akko
lib/Helper.js
JavaScript
gpl-3.0
425
/** File menu / Top navigation control @class NavigationView @constructor @return {Object} instantiated FileMenu **/ define(['jquery', 'backbone', 'bootbox'], function ($, Backbone, bootbox) { BB.SERVICES.NAVIGATION_VIEW = 'NavigationView'; var NavigationView = BB.View.extend({ /** Cons...
onezerone/msgetstarted
_views/NavigationView.js
JavaScript
gpl-3.0
4,578
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
telldus/telldus-live-mobile-v3
js/App/Components/Device/AddDevice/NoDeviceFound.js
JavaScript
gpl-3.0
4,116
function register() { if($("#span1").text()=="" && $("#span2").text()=="" && $("#span3").text()=="" && $("#span4").text()=="" ){ if($("#cname").val()=="" || $("#cpwd").val()=="" || $("#checkpwd").val()=="" || $("#email").val()=="" ){ alert("请按要求填写!"); return false; } alert("注册成功,请前往邮箱激活后登...
mavenBell1994/DrivingTest
DrivingTest/src/main/webapp/js/formregister.js
JavaScript
gpl-3.0
2,139
"use strict"; const dataFrame = require('./data-frame.js'); const KeyedData = require('./data-pool.js').KeyedData; const sqlite3 = require('sqlite3'); const jsonfile = require('jsonfile'); const config = jsonfile.readFileSync('../resources/fellajn.conf'); $.fn.serializeObject = function() { var o = {}; var...
mksimpler/fellajn
fellajn.app/appcode/index.js
JavaScript
gpl-3.0
3,937
/* Copyright 2011 OCAD University Copyright 2011 Lucendo Development Ltd. Licensed under the Educational Community License (ECL), Version 2.0 or the New BSD license. You may not use this file except in compliance with one these Licenses. You may obtain a copy of the ECL 2.0 License and BSD License at https://github.c...
gregrgay/booking
Web/scripts/infusion/components/uiOptions/js/FatPanelUIOptions.js
JavaScript
gpl-3.0
15,480
'use strict'; const _ = require('lodash'); const path = require('path'); const config = require('../../config'); const formatAddress = require('../common/behaviours/format-address'); const getPageCustomBackLink = require('./behaviours/custom-back-links'); const existingAuthorityController = require('../common/controll...
UKHomeOffice/firearms
apps/new-dealer/index.js
JavaScript
gpl-3.0
15,500
Ext.define('Onc.controller.DashboardController', { extend: 'Ext.app.Controller', stores: ['ComputesStore', 'PhysicalComputesStore', 'GaugesChartComputesStore', 'TasksPortletStore', 'VmGridTypeStore'], });
opennode/opennode-console
app/controller/DashboardController.js
JavaScript
gpl-3.0
214
import ColorMap from '../src/ColorMap.js' import Model from '../src/Model.js' import { util } from '../agentscript/agentscript.esm.js' util.toWindow({ ColorMap, Model, util }) class LinksModel extends Model { setup() { this.turtles.own('speed') this.turtles.setDefault('atEdge', 'bounce') /...
backspaces/asx
models/links.js
JavaScript
gpl-3.0
1,552
define( "dojo/cldr/nls/nb/indian", //begin v1.x content { "field-quarter-short-relative+0": "dette kv.", "field-quarter-short-relative+1": "neste kv.", "field-tue-relative+-1": "forrige tirsdag", "field-year": "år", "field-wed-relative+0": "onsdag", "field-wed-relative+1": "neste onsdag", "field-minute": "minutt...
ustegrew/ustegrew.github.io
courses/it001/lib/dojo/dojo/cldr/nls/nb/indian.js.uncompressed.js
JavaScript
gpl-3.0
8,997
import anime from 'animejs'; export function animeBatch({ targets, props, sharedProps }) { const properties = (props) ? Object.keys(props) : []; const animes = targets.map((target, targetIndex) => { const targetProperties = { targets: target }; properties.forEach((property) => { targetProperties[prop...
soulchainer/simongamejs
src/utils/animation.js
JavaScript
gpl-3.0
1,034
angular.module('kunturApp') .controller('MainCtrl', function ($scope, $mdSidenav, $location, rolFactory, socketFactory) { $scope.toggle = function() { $mdSidenav('menu-general').toggle(); }; $scope.navigateTo = function(url, event) { $location.path(url); $mdSidenav('menu-general').close(); }; $s...
org-kuntur/kuntur
app/scripts/controllers/main.js
JavaScript
gpl-3.0
1,911
document.addEventListener('polymer-ready', function() { setTimeout(function() { Array.prototype.forEach.call(document.querySelectorAll('paper-input[hidden]'), function(node) { node.removeAttribute('hidden'); }); }, 500); });
burnnat/midi-player
bower_components/paper-input/demo.html.0.js
JavaScript
gpl-3.0
278
function testAudio() { var bufferLoader; var filter; var audio; var source; var frequency = 40; var buffer; var gainNode; var volume = 1; var src = 'https://access-all-areas-assets.s3.amazonaws.com/uploads/production/2015/10/20/11/03/54/569/AAA_Rod_Onboarding_Stereo_32000_2.mp3'; window.AudioContex...
dodi-rotterdam/dodi-rotterdam.github.io
eredivisie2016/scripts/audio_test.js
JavaScript
gpl-3.0
1,929
/** * * Generic configuration file for all the GulpJS tasks. */ var gulp = require( 'gulp' ); var path = require( 'path' ); var os = require( 'os' ); var fs = require( 'fs' ); var expand = require( 'glob-expand' ); var plugins = require( 'gulp-load-plugins' )( { camelize: true } ); var minimist = require( 'minimist...
michaelbeers/WordPresskit
gulpfile.js/config.js
JavaScript
gpl-3.0
4,070
/*** * Contains basic SlickGrid editors. * @module Editors * @namespace Slick */ (function ($) { // register namespace $.extend(true, window, { "Slick": { "Editors": { "Text": TextEditor, "Integer": IntegerEditor, "Date": DateEditor, "SelfDate": SelfDateEditor, ...
s249359986/JavaBaasServer
src/main/resources/static/lib/slickgrid/slick.editors.js
JavaScript
gpl-3.0
34,101
function polarToVector(theta, radius) { let x = cos(theta) * radius let y = sin(theta) * radius return createVector(x, y) } function getSlope(v1, v2) { //m = rise/run //m = y/x return (v2.y - v1.y) / (v2.x - v1.x) } //THE B IS INVERTED!!!! function getYintersect(slope, v) { //y = mx + b ...
peteyhayman/peteyhayman.github.io
Libraries/Geometry/geometry.js
JavaScript
gpl-3.0
3,427
"use strict"; var SHOW_DATA = { "venue_name": "Oklahoma City Fairgrounds Arena, Oklahoma City, Oklahoma", "venue_id": 208, "show_date": "19th of Oct, 1973", "sets": [ {"set_title": "1st set", "encore": false, "songs": [ {"name": "Promised Land", "length":"3:01", "trans":"/"}, {"name": "Sugaree", "len...
maximinus/grateful-dead-songs
gdsongs/static/data/shows/19.js
JavaScript
gpl-3.0
2,467
var navlist = Y.one('.instancelist-wrapper'); var details = Y.one('.instanceinfo'), page = getDataFromStr('page', window.location.toString(), '='), resetpage = true; if(!page){ page = 0; } if($("#region-main").length) { // Скрываем первую пагинацию if (Y.one('.paging')) { Y.o...
Slaffka/moodel
blocks/manage/yui/base.js
JavaScript
gpl-3.0
11,043
var CRUD = require('../crud'); module.exports = { middlewares: { params: (req, res, next) => { if(CRUD.valid.params(req.params.entity)) { return next(); } res.status(400).send(Object.assign({ entity: req.params.entity }, CRUD.e...
jiminikiz/mean-auth
controllers/crud.js
JavaScript
gpl-3.0
2,107
/*global annotator*/ /*global Markdown*/ angular.module('madisonApp.controllers') .controller('DocumentPageController', ['$scope', '$state', '$timeout', 'growl', '$location', '$window', 'Doc', '$sce', '$stateParams', '$http', 'loginPopupService', 'annotationService', '$anchorScroll', 'AuthService', ...
OpinionWise/madison
public/js/controllers/documentPageController.js
JavaScript
gpl-3.0
7,175
import React from 'react'; import Header from '../components/Header'; import Mainstage from '../components/Mainstage'; import * as KeyboardActions from '../actions/KeyboardActions'; import NavigationStore from '../stores/NavigationStore'; import TypographyStore from '../stores/TypographyStore'; export default class...
storfarmand/dmlf
scripts/experiences/Dmlf.js
JavaScript
gpl-3.0
2,981
var methods = ["isa100.getSystemStatus", "user.logout"]; function InitSystemStatusPage() { SetPageCommonElements() InitJSON(); GetData(); start(); //start counter } function GetData() { var response; try { var service = new jsonrpc.ServiceProxy(serviceURL, methods); ...
irares/WirelessHart-Gateway
MCSWebsite/scripts/systemstatus.js
JavaScript
gpl-3.0
5,655
var colors = require('colors'); var _ = require('lodash'); var async = require('async'); var Store = require('./store.js'); var download = require('./download.js'); var init = function() { var json = {}; var currentYear = (new Date()).getFullYear(); var thatYear = 2009; async.whilst( function() { return th...
spacewander/GSoC
lib/GSoC.js
JavaScript
gpl-3.0
5,394
import AIHandler from '@/classes/AIHandler/AIHandler' import PlayBestCard from '@/classes/AIHandler/PlayBestCard' import PlayRandomCard from '@/classes/AIHandler/PlayRandomCard' // card orders for different AI personalities const CARD_ORDER = { standard: [ "INSTRUCTION", "METHOD", "VARIABLE", "REPEAT", "SORT", "...
johnanvik/program-wars
src/classes/AIHandler/AIHandlerFactory.js
JavaScript
gpl-3.0
2,009
Template.arfcnBands.helpers({ count: function(){ return ARFCNBands.ARFCNBands.find().count() } });
He3556/SDR-Detector
client/templates/arfcn-bands/arfcnBands.js
JavaScript
gpl-3.0
107
/* Developed with the contribution of the European Commission - Directorate General for Maritime Affairs and Fisheries © European Union, 2015-2016. This file is part of the Integrated Fisheries Data Management (IFDM) Suite. The IFDM Suite is free software: you can redistribute it and/or modify it under the terms o...
UnionVMS/UVMS-Frontend
app/service/common/model/getListRequestModel-spec.js
JavaScript
gpl-3.0
7,224
/* Copyright (c) 2015-2016 The Open Source Geospatial Foundation * * 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. ...
eoss-cloud/madxxx_catalog_client
extgui/packages/remote/GeoExt/src/data/model/Feature.js
JavaScript
gpl-3.0
1,119
/* --------------------------------------------------- By Pellgrain - 05/04/2016 Page de chat --------------------------------------------------- */ var encap = require('./util/encap'); // Hérite de l'objet page var page = require('./util/page'); var p = new page(); // Code spécifique p.scriptFileList.push('/soc...
VivienGaluchot/NodeProject
pages/chat.js
JavaScript
gpl-3.0
1,193
var searchData= [ ['name_5fstring',['name_string',['../strutture__dati_8h.html#a0229c622e2f5ffe85ce727c022a9442f',1,'strutture_dati.h']]], ['numbering_5fstring',['numbering_string',['../strutture__dati_8h.html#a84f11ad7f630d06f905b5353288a42ac',1,'strutture_dati.h']]] ];
broskh/SpaceInvaders
doc/html/search/typedefs_1.js
JavaScript
gpl-3.0
276
App = function() { "use strict"; /* <!-- DEPENDS on JQUERY to work, but not to initialise --> */ /* <!-- Returns an instance of this if required --> */ if (this && this._isF && this._isF(this.App)) return new this.App().initialise(this); /* <!-- Internal Constants --> */ const ID = "Debug_Tests"; /* <!...
Educ-IO/educ-io.github.io
_includes/apps/debug.js
JavaScript
gpl-3.0
11,122
var searchData= [ ['cachedutilities',['CachedUtilities',['../classpstat_1_1_cached_utilities.html',1,'pstat']]], ['cachedutilities',['CachedUtilities',['../classpstat_1_1_cached_utilities.html#a81ef2e6118c5be2a3100f41cc0a93fb4',1,'pstat::CachedUtilities']]], ['concurrent_5fqueue',['concurrent_queue',['../classtbb...
ParallelMazen/pstat
docs/html/search/all_0.js
JavaScript
gpl-3.0
1,420
/// <autosync enabled="true" /> /// <reference path="js/app.js" /> /// <reference path="js/controllers/about_ctr.js" /> /// <reference path="js/controllers/assist_ctr.js" /> /// <reference path="js/controllers/climate_history_ctr.js" /> /// <reference path="js/controllers/crop_forecast_ctr.js" /> /// <reference path="...
CIAT-DAPA/usaid_forecast_web
src/CIAT.DAPA.USAID.Forecast.Web/wwwroot/_references.js
JavaScript
gpl-3.0
2,630
/* * Facebox (for jQuery) * version: 1.2 (05/05/2008) * @requires jQuery v1.2 or later * * Examples at http://famspam.com/facebox/ * * Licensed under the MIT: * http://www.opensource.org/licenses/mit-license.php * * Copyright 2007, 2008 Chris Wanstrath [ [email protected] ] * * Usage: * * jQuery(document)...
bjverde/formDin
base/js/jquery/facebox/facebox.js
JavaScript
gpl-3.0
9,219
/** * Render a frog demo for infohub_demo * * @author Peter Lembke <[email protected]> * @version 2019-03-28 * @since 2018-04-21 * @copyright Copyright (c) 2018, Peter Lembke * @license https://opensource.org/licenses/gpl-license.php GPL-3.0-or-later * @see https://github.com/...
peterlembke/infohub
folder/plugins/infohub/demo/frog/infohub_demo_frog.js
JavaScript
gpl-3.0
10,722
function ValidURL(str) { var pattern = new RegExp('^(https?:\/\/)?'+ // protocol '((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|'+ // domain name '((\d{1,3}\.){3}\d{1,3}))'+ // OR ip (v4) address '(\:\d+)?(\/[-a-z\d%_.~+]*)*'+ // port and path '(\?[;&a-z\d%_.~+=-]*)?'+ // query string '(\#[-a-z\d_]*...
doodzik/semantic-tag
src/semantic-tag.js
JavaScript
gpl-3.0
705
(function() { var directives = { }; var filters = { }; var app = angular.module('optc'); /************** * Directives * **************/ directives.characterTable = function($rootScope, $timeout, $compile, $storage) { return { restrict: 'E', replace: true, template: '<table id="mainTabl...
mvshivaa71/mvshivaa71.github.io
characters/js/directives.js
JavaScript
gpl-3.0
19,912
"use strict"; // ScriptQueue // script queue { const $g = Symbol.for( '[[global]]' ); // ScriptQueue - for exploring and loading scripts class ScriptQueue_Tools { constructor( queue ) { this.queue = queue; } requestScript( queue, next ) { ...
dosaygo-coder-0/postjs
postloader/test/script_queue.js
JavaScript
gpl-3.0
7,840