sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
483198ddf395629ddf1b4e17f9aa6992fa6b4ac51713aa27301d70a83fcbffdd
JavaScript
3,510
110
$(document).ready(function() { $('#test-init').on('click', function () { //retrieved.clear().draw(); getData('/demographics').then((data) => { // Show console.log(data) //document.getElementById("auxtb").innerHTML = data.table // Create columns informat...
b843755978677000194f9023d31db0ff5399006e05a65d0ed5b1011ca6bca8e6
JavaScript
3,510
143
/* eslint-env node */ /* eslint no-process-env: 0 */ const path = require('path') const ip = require('ip') const { browsers, browsersKeys } = require('./browsers') const jqueryFile = process.env.USE_OLD_JQUERY ? 'https://code.jquery.com/jquery-1.9.1.min.js' : 'node_modules/jquery/dist/jquery.slim.min.js' const bu...
b49eed7226ef5cc21e19632638ff84c50d605838e55a490289dd3df914a631e8
JavaScript
3,530
105
/* * Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights...
76e69e20ac421015a40deba28a73ff3aa121abd1ccd7c47e3332698d9a6a65ed
JavaScript
3,598
118
/* * Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights...
a2450699e38473c3ddca7dfe439ac5eebd2e5fc6adf24ac24a0bce2540dcc9e3
JavaScript
3,600
108
/* * Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights...
814e8aefc0282c5b443c3ad32ed62ef1398bd5c6b63c411316eab409dcbfecd9
JavaScript
3,607
102
(function() { // Create the connector object var myConnector = tableau.makeConnector(); // Define the schema myConnector.getSchema = function(schemaCallback) { var cells = { id: "cells", alias: "Cell Model Info", columns: [ { ...
bf8e2dcac6a785eaae73744b1f6fb1d84993b64fe4ecdbf6a18a7d55a210c950
JavaScript
3,673
133
var webdriver_chrome = require('selenium-webdriver/chrome'); var webdriver = require('selenium-webdriver'); var until = webdriver.until; var should = require('should'); var express = require("express"); var path = require("path"); var config = require('./config.js'); var app = express(); describe('Incremental Refresh...
3e9fb74061133f9dc6c809fb777bdcdc8e02b6812ad5bf39aad5f6c69f1b96dd
JavaScript
3,714
121
/* * Superfish v1.4.8 - jQuery menu widget * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt */ ;(functi...
4ceb787a1f34441b9f12ff3eeff43c0a88a660ac83b0a4230a57acaf91359779
JavaScript
3,719
112
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT // IT'S ALL JUST JUNK FOR OUR DOCS! // ++++++++++++++++++++++++++++++++++++++++++ /*! * JavaScript for Bootstrap's docs (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under the Creative Commons Att...
c47cd9615e8dce53839dfb37fb1d00dba807e926b6439331d0e59c17a5f3a2ba
JavaScript
3,785
95
RootsSettings = class extends BaseSettings{ static settings_keydown_handler = undefined static on_settings(){ super.on_settings() const $dialog = $('#settings-dialog') const dialog = $dialog[0] if(this.settings_keydown_handler) dialog.removeEventListener('keydown'...
55f5e753d7fffe3f2883d7fdc87a52796ad9460678cf051521b414724e79622b
JavaScript
3,820
94
var revisionGraph = null; function drawRevisionGraph(holder, commits_hash, graph_space) { var XSTEP = 20, CIRCLE_INROW_OFFSET = 10; var commits_by_scmid = commits_hash, commits = $.map(commits_by_scmid, function(val,i){return val;}); var max_rdmid = commits.length - 1; var commit_table_...
ddd337b0bb74e6d0e0b23d9f022743f43722e99b2f4e5e8ba0bb77fb00769402
JavaScript
3,831
99
RootDetection = class extends BaseDetection{ static async on_process_image(event){ const filename = $(event.target).closest('[filename]').attr('filename') return await this.process_image(filename) } static async on_process_all(event){ const filenames = Object.keys(GLOBAL.files) ...
eb96296b394b7c59324f1f588042be98d64d58c8b0a1e12ad744cf09ef9837e8
JavaScript
3,862
123
$(function () { 'use strict' QUnit.module('alert plugin') QUnit.test('should be defined on jquery object', function (assert) { assert.expect(1) assert.ok($(document.body).alert, 'alert method is defined') }) QUnit.module('alert', { beforeEach: function () { // Run all tests in noConflict ...
1d1e2f6a1c58b4ab02e36ad832619889011212633d97e6f989a144b06bf6250e
JavaScript
3,877
179
/** * -------------------------------------------------------------------------- * Bootstrap (v4.4.1): alert.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ import $ from 'jquery' import Util from './ut...
9aaf9e5965e685d8cf2a5d274a151d3e8d81988796c8bbe70aa558c506f9bde0
JavaScript
3,942
139
$(document).ready(function() { /* var retrieved = $('#datatable-retrieved').DataTable( { dom: 'Bfrtip', //ajax: { // 'url': 'get_k_random', //}, scrollY: 300, //scrollX: true, scrollCollapse: true, paging: false, fixed...
7cc3cf6d147741c0c073f1aa3095482571f6b6fa2a835a65054aa9dabd772a63
JavaScript
3,952
162
define( [ "../core", "../core/camelCase", "../var/rnothtmlwhite", "./var/acceptData" ], function( jQuery, camelCase, rnothtmlwhite, acceptData ) { "use strict"; function Data() { this.expando = jQuery.expando + Data.uid++; } Data.uid = 1; Data.prototype = { cache: function( owner ) { // Check if the owner...
7edb0cbf5f2d6c3cce84e7e9349e7e3788afd5de0c8865a86afb6150f593967b
JavaScript
3,979
99
RootSecurity = class { static token = undefined static limits = undefined static asset_schema = 'rootdetector-web-rc2-1' static async initialize(){ const session = await $.get('/api/session') if(session.asset_schema != this.asset_schema){ const error = new Error( ...
14f34aa855f165f6fc3a63b10645753325a4829091cda3a5330dd30c256a9d83
JavaScript
4,099
131
/* * Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights...
2454c26f20d22c1a7012f02f38b13b7970247c12041f25aee955c7e37707919c
JavaScript
4,125
122
/** * Detect the end of the FID signal. * * Algorithm: * 1. Skip first 150 points. * 2. Use moving max and moving min (window size = min(256, N/1024)) to extract envelope. * 3. Rough signal end: where envelope drops below 1% of max amplitude (A0). * 4. Noise estimation: * - Region: from rough signal end to ...
76b1844dc19e0eb4afda43fb8ec24b6725cc2f169b1433a2d6d221e014b8b373
JavaScript
4,249
191
define( [ "../core", "../core/stripAndCollapse", "./support", "../core/nodeName", "../var/isFunction", "../core/init" ], function( jQuery, stripAndCollapse, support, nodeName, isFunction ) { "use strict"; var rreturn = /\r/g; jQuery.fn.extend( { val: function( value ) { var hooks, ret, valueIsFunction, ...
9c97fc03fe9550602e3f2370ba74260a9fd416788115675cd6b18e0a0ca65d03
JavaScript
4,271
96
var user_articles_toggle = window.parent.document.getElementById('user_articles_toggle'); user_articles_toggle.style.display='none'; function loadUID(){ var uid = localStorage.getItem('_uid'); if (!uid) return false; uid = atob(uid); uid = JSON.parse(uid); return uid; } var UID = loadUID(); if (UID != false...
7c57e62cf9f051e043773f78d54926201d9af853d7cb537a35252985735763a4
JavaScript
4,290
5
/*! jQuery UI - v1.10.4 - 2014-04-07 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t,e){function n(e,n){var r,s,o,a=e.nodeName.toLowerCase();return"area"===a?(r=e.parentNode,s=r.name,e.href&&s&&"map"===r.nodeName.toLowerCase()?(o=t("img[usemap=#"+s+"]")[0],!...
d6e441d67a50ce277441f1e292347d9dd147b5c4d9498471d25d4c7536a796dc
JavaScript
4,320
131
/* * Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights...
5814baf819cf2deda8c6bc5ee4595d3e201adf6f1d2933f5b06a82f4e3184b46
JavaScript
4,321
180
define( [ "./core", "./core/access", "./core/camelCase", "./data/var/dataPriv", "./data/var/dataUser" ], function( jQuery, access, camelCase, dataPriv, dataUser ) { "use strict"; // Implementation Summary // // 1. Enforce API surface and semantic compatibility with 1.9.x branch // 2. Improve the module's maintai...
6221bc7d1db844ad8d35cc8e73b7f275dbb9c29bb9d936b71402ac7a80814625
JavaScript
4,339
170
define( [ "../core", "../var/support", "../ajax" ], function( jQuery, support ) { "use strict"; jQuery.ajaxSettings.xhr = function() { try { return new window.XMLHttpRequest(); } catch ( e ) {} }; var xhrSuccessStatus = { // File protocol always yields status code 0, assume 200 0: 200, // Support: IE ...
cfa49ca8e717576e14567211c6bdb520ec075d3575bcc862963c3627b012b881
JavaScript
4,367
152
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>t<'row'<'col-xs-6'i><'col-xs-6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.exte...
6cb0342bf22f4e520eb6bf5ae83036df3801011f223acbcf42aa6622ae888a51
JavaScript
4,374
184
/** * -------------------------------------------------------------------------- * Bootstrap (v4.4.1): popover.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ import $ from 'jquery' import Tooltip from ...
468e7f00c802a60596b6a49402a70b78ae9a929aaef27d1372f3594964f4d5ec
JavaScript
4,428
100
RootDetectorApp = class extends BaseApp { static Detection = RootDetection; static Download = RootDetectionDownload; static ViewControls = ViewControls; static Settings = RootsSettings; static FileInput = RootsFileInput; static Training = RootsTraining; ...
0fc642c6c72631d423154f2d3f3651314af357c93651f2ea7a3526f9f0b23a5c
JavaScript
4,447
186
define( [ "../core", "../core/stripAndCollapse", "../var/isFunction", "../var/rnothtmlwhite", "../data/var/dataPriv", "../core/init" ], function( jQuery, stripAndCollapse, isFunction, rnothtmlwhite, dataPriv ) { "use strict"; function getClass( elem ) { return elem.getAttribute && elem.getAttribute( "class" ) ...
a0d2abcb1573c06ef1277d2165a9fcaa110059a92f00cfa94c06da8fda92e0cd
JavaScript
4,466
211
/* ***** BEGIN LICENSE BLOCK ***** * This file is part of DotClear. * Copyright (c) 2005 Nicolas Martin & Olivier Meunier and contributors. All * rights reserved. * * DotClear 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...
127ee5f03538de1a9f26a22fb7bafdb8bfea45b2b4399ba27edf55b13489e482
JavaScript
4,500
191
define( [ "./core", "./var/indexOf", "./traversing/var/dir", "./traversing/var/siblings", "./traversing/var/rneedsContext", "./core/nodeName", "./core/init", "./traversing/findFilter", "./selector" ], function( jQuery, indexOf, dir, siblings, rneedsContext, nodeName ) { "use strict"; var rparentsprev = /^(?...
3cb0da974b1e228150fa624f3546f688f651e08bc9673743799da2c7b6261171
JavaScript
4,501
170
module.exports = function(grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); var envJSON = grunt.file.readJSON(".env.json"); var PROJECT_DIR = "docs/"; switch (grunt.option('project')) { case "docs": PROJECT_DIR = envJSON.DOCS_DIR; break; ...
679677a872231def2bb4fc8203a5244051e4b25d19b39147a02236ab0b338d03
JavaScript
4,518
123
import SseTool from "./SseTool"; import Paper from "paper"; export default class SseRectangleTool extends SseTool { constructor(editor) { super(editor); this.editingPath = null; // The path currently created this.editingPoint = null; // The second point for defining a rectangle thi...
5564b26c1c3f9931b850eefb4e5b611ef5b91f40ab6aeba0889762a7eb584ba2
JavaScript
4,527
117
/*! * English Translations for krajee-markdown-editor * * This file must be loaded after 'markdown-editor.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * @see http://plugins.krajee.com/markdown-editor * * NOTE: this file must be saved in UTF-8 en...
e351aa0fae5c4737bc4f8a80534fa344c07864de9655c9f8221ef3f90c6b0c22
JavaScript
4,643
117
/*! * English Translations for krajee-markdown-editor * * This file must be loaded after 'markdown-editor.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * @see http://plugins.krajee.com/markdown-editor * * NOTE: this file must be saved in ...
a75bc2f4f473534760b9f796f47cf24b1013e97f1cfaf34cdee37c5dcd5abb4e
JavaScript
4,650
117
/*! * English Translations for krajee-markdown-editor * * This file must be loaded after 'markdown-editor.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * @see http://plugins.krajee.com/markdown-editor * * NOTE: this file must be saved in UTF-8 enc...
b7c5ed64389b34f0f043e43786796e0ff46df52b4594cee77c62d9427e953f3b
JavaScript
4,711
129
/*- * #%L * Triangulated surface for deforming in 3D. * %% * Copyright (C) 2013 - 2023 University College London * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restricti...
a93a60129ee06e95e4c9e178ca735f1f0d95ac6ffdc17dc63bd1add820173fdd
JavaScript
4,730
150
/* *** Ramer Douglas Peucker The Ramer-Douglas–Peucker algorithm is an algorithm for reducing the number of points in a curve that is approximated by a series of points. It does so by "thinking" of a line between the first and last point in a set of points that form the curve. It checks which point in between is far...
9936c56c526a9b5fa795d109d22b64fdf328de67e21bee5a938a1dea5946fb4d
JavaScript
4,751
135
/* * Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights...
39bae0d3dd7ec87889a0b43e4e4696a5f357c96f7761aa9f96c44c3b98c5e2b3
JavaScript
4,786
180
/*! * jQuery UI Touch Punch 0.2.3 * * Copyright 2011–2014, Dave Furfero * Dual licensed under the MIT or GPL Version 2 licenses. * * Depends: * jquery.ui.widget.js * jquery.ui.mouse.js */ (function ($) { // Detect touch support $.support.touch = 'ontouchend' in document; // Ignore browsers without to...
a6d240ae1bb84758f791230f526467764e141f61809c92d04f2b128d00e2e780
JavaScript
4,798
6
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxWebServices.js //---------------------------------------------------------- // Copyright (C) Microsoft Corporation. All rights reserved. //---------------------------------------------------------- // MicrosoftAjaxWebServices.js Type._registerScript("Microso...
401b01d84a5380cd7601a2de00fe321b71c4441c79f2d9db104e3db5c9fee542
JavaScript
4,888
150
import FIC from "fastintcompression"; import SseMsg from "./SseMsg"; export default class SseDataManager { constructor() { SseMsg.register(this); this.LZW = { compress: function (uncompressed) { "use strict"; // Build the dictionary. let ...
2885d92796f1489c7ff5db932000dd0a2a07b3bee700ba8b6b5cb63b08d6776d
JavaScript
4,937
141
import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import should from 'should'; import jsdom from 'jsdom'; import sinon from 'sinon'; import * as consts from '../../utils/consts.js'; import * as simulatorActions from '../../actions/simulator_actions.js'; import * as messagingActions f...
1efc18850c9bf128a9812294584e6a26782bdd52b0f13ededd4b2a1067e44331
JavaScript
4,954
118
/*! * French Translations for krajee-markdown-editor * * This file must be loaded after 'markdown-editor.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * @see http://plugins.krajee.com/markdown-editor * * NOTE: this file must be saved in U...
7a4552baa9706c4a530b3626caa901c261b2077692af17cf1f9df48ea12695ea
JavaScript
5,090
154
(function( $ ) { $.widget( "custom.combobox", { _create: function() { this.wrapper = $( "<span>" ) .addClass( "custom-combobox" ) .insertAfter( this.element ); this.element.hide(); this._createAutocomplete(); this._createShowAl...
888ab81a0a125b2bc8986168030dfecb58f870b7d7a87ef3829a2d1b1f783ed0
JavaScript
5,185
234
/** * -------------------------------------------------------------------------- * Bootstrap (v4.4.1): toast.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ import $ from 'jquery' import Util from './ut...
e485b856ddaf2b4b25bfbfefc8819e95e8e90ad24fe4738cbbad838e54d95534
JavaScript
5,211
186
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row'<'large-6 columns'l><'large-6 columns'f>r>"+ "t"+ "<'row'<'large-6 columns'i><'large-6 columns'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); ...
8c2f69d0ae9525e9c673fd729efed3a0ab7c98a7680140facd132b7c8b6bc59a
JavaScript
5,355
150
import Cookie from 'js-cookie'; import { createAction } from 'redux-actions'; import { cleanUrl } from '../utils/misc'; import * as consts from '../utils/consts'; // Redux action creator functions // more info can be found here: // http://redux.js.org/docs/basics/Actions.html // Conventional Actions // Wdc Actions ex...
2067788d112de2234e267c83a4d9dd525c286b2fbc62d1e3653c6e6041eed933
JavaScript
5,358
1
!function(e,n,t){function r(e,n){return typeof e===n}function o(){var e,n,t,o,i,s,f;for(var a in w)if(w.hasOwnProperty(a)){if(e=[],n=w[a],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(o=...
2f7574d8e21513edb5cf0b641aad6b19f5c71caf6041c96476322d82ff22b0ba
JavaScript
5,377
195
/** * -------------------------------------------------------------------------- * Bootstrap (v4.4.1): util.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ import $ from 'jquery' /** * ---------------...
20a8289d6584a1685551b06902bb9970566d8bdc603b7984f5465358aeb87373
JavaScript
5,407
199
define( [ "../core", "../var/document", "../data/var/dataPriv", "../data/var/acceptData", "../var/hasOwn", "../var/isFunction", "../var/isWindow", "../event" ], function( jQuery, document, dataPriv, acceptData, hasOwn, isFunction, isWindow ) { "use strict"; var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,...
b4dd828c1c1ab40ef92aee3986f64973f5e0391cbfea41850e15fadcff7f8110
JavaScript
5,520
198
/*! * Bootstrap alert.js v4.4.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof mo...
34e4f53e39a9f967224555baf27fc5d16758222fc0bc0fb0fcb2ccc0ed9243a6
JavaScript
5,546
147
import SseDataWorkerServer from "./SseDataWorkerServer"; import configurationFile from "./config"; import {basename} from "path"; import {readFile} from "fs"; import * as THREE from 'three'; import SsePCDLoader from "../imports/editor/3d/SsePCDLoader"; WebApp.connectHandlers.use("/api/json", generateJson); WebApp.conn...
e2dbcc08c2ab7b5dbf5f562d55aea9faab11280b97dc317d73054ed1887f7265
JavaScript
5,552
236
define( [ "./core", "./core/toType", "./var/isFunction", "./var/rnothtmlwhite" ], function( jQuery, toType, isFunction, rnothtmlwhite ) { "use strict"; // Convert String-formatted options into Object-formatted ones function createOptions( options ) { var object = {}; jQuery.each( options.match( rnothtmlwhite ) ...
e44572f05d670ff6a28fc30086c45d8a1a240dc023cbe297e5886f946d8966a5
JavaScript
5,618
166
/* * Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights...
b9bbaa41124933b95320703295a6e0ed92c7e0ad3c51c6a9aa1ef6ac41f5914e
JavaScript
5,647
208
function FastIntegerCompression() { } function bytelog(val) { if (val < (1 << 7)) { return 1; } else if (val < (1 << 14)) { return 2; } else if (val < (1 << 21)) { return 3; } else if (val < (1 << 28)) { return 4; } return 5; } // compute how many bytes an arra...
6972506a14a0b17ee57a9d5783c7e841f7b2e10d8c1c794429b611abc905f2f3
JavaScript
5,713
181
import SseTool from "./SseTool"; import Paper from "paper"; import MagicWand from "./magicwand" import simplify from "simplify-js"; import SseMsg from "../../../common/SseMsg"; export default class SseFloodTool extends SseTool { constructor(editor) { super(editor); this.colorThreshold = 15; ...
5b7e03e62dc8528355d8f946afd55df252dbf5b19a1eb5abdbf06f565d8beb4e
JavaScript
5,724
188
/* Redmine - project management software Copyright (C) 2006-2013 Jean-Philippe Lang */ function addFile(inputEl, file, eagerUpload) { if ($('#attachments_fields').children().length < 10) { var attachmentId = addFile.nextAttachmentId++; var fileSpan = $('<span>', { id: 'attachments_' + attachmentId });...
03cfc025393115c12cc1d08705a20d775951ec3cbb5b5a1d48e74fd63f839807
JavaScript
5,787
283
/** * @license * jQuery Tools 1.2.5 Tabs- The basics of UI design. * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/tabs/ * * Since: November 2008 * Date: Wed Sep 22 06:02:10 2010 +0000 */ (function($) { // static constructs $.tools = $.tools || {version: '1.2.5'}...
a4439362f9f2e63a3c81b645e29cac190a877b3771e6f797aa940ee45e5b3023
JavaScript
5,787
6
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxSerialization.js //---------------------------------------------------------- // Copyright (C) Microsoft Corporation. All rights reserved. //---------------------------------------------------------- // MicrosoftAjaxSerialization.js Type._registerScript("Mic...
ae987e323065e685098709d6c92908fbed79f4cf8a3610e76f5b8701ca4813fd
JavaScript
5,827
9
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat // // AnchorJS - v4.2.1 - 2019-11-11 // https://www.bryanbraun.com/anchorjs/ // Copyright (c) 2019 Bryan Braun; Licensed MIT // // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat !functio...
8096365742ec94349b659deff0918663588fdb92f31685134761e0516f23fdbf
JavaScript
5,856
205
var webdriver_chrome = require('selenium-webdriver/chrome'); var webdriver = require('selenium-webdriver'); var until = webdriver.until; var should = require('should'); var express = require("express"); var path = require("path"); var config = require('./config.js'); var app = express(); describe('General Simulator T...
2ebbfdc45852b755e4f0122f7bdd7957423e1c99765e770aabbffbad8f8137a2
JavaScript
5,877
226
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Dual licensed under the MIT (MIT_LICENSE.txt) * and GPL Version 2 (GPL_LICENSE.txt) licenses. * * Version: 1.1.1 * Requires jQuery 1.3+ * Docs: http://docs.jquery.com/Plugins/livequery */ (function($) { $.extend($.fn, { livequery: function(type,...
f8de3c553278fd8b401647c58c97a41d6f53e9c970c2bd3c592cb05958a1ed0d
JavaScript
5,929
175
/* * Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights...
f2699e36daaf0e5f1e44614bdc6c8c4aa3eb4052f802ddd75c7225cb83eeb9be
JavaScript
5,971
2
/*! markdown-it-footnote 3.0.1 https://github.com//markdown-it/markdown-it-footnote @license MIT */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof globa...
3567be3a3104b1f14366d277560d48de09c9794492930f849c82d4efecd0cfbb
JavaScript
5,985
5
/*! jQuery UI - v1.10.4 - 2014-04-07 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t){function e(t,e,i){return t>e&&e+i>t}t.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass...
2eb01cd525c47f7edb976b10fc0cfc563ff5d7d83822a41d77e2afc37ea54020
JavaScript
5,987
168
$(function () { 'use strict' window.Util = typeof bootstrap !== 'undefined' ? bootstrap.Util : Util QUnit.module('util', { afterEach: function () { $('#qunit-fixture').html('') } }) QUnit.test('Util.getSelectorFromElement should return the correct element', function (assert) { assert.expe...
ab1496352373620a3304c921a5f928aa4be161e5985984554bb8dce14e935d9a
JavaScript
5,994
16
/*! Responsive 1.0.1 2014 SpryMedia Ltd - datatables.net/license */ (function(m,o){var k=function(c,k){var h=function(e,a){if(!k.versionCheck||!k.versionCheck("1.10.1"))throw"DataTables Responsive requires DataTables 1.10.1 or newer";e.responsive||(this.s={dt:new k.Api(e),columns:[]},a&&"string"===typeof a.details&&(...
55337a1be6c2cb4aaf208ea68ccd31fd7fc53afa217ad56400e0a4fe78470316
JavaScript
6,015
154
/* ~~~~~~~~~~~~~~ * cloud.base.js *~~~~~~~~~~~~~~ * * Base JS utils needed by cloud js instrumentation. * Split out so they can be used by theme-independant extensions (e.g. auto_redirect) * * This initializes a "window.CSP.utils" object * * :copyright: Copyright 2017 by Assurance Technologies * :license: BSD...
940e695b0533cd151be310ae4afd8915886923a6be392c96f571fcf806fa4bff
JavaScript
6,091
1
/*! markdown-it-cjk-breaks 1.1.0 https://github.com//markdown-it/markdown-it-cjk-breaks @license MIT */!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?glo...
786615128b6ed2e5d3bb99715eeaeabd9157f69bb8a4488b0b687dfac5ea8227
JavaScript
6,132
218
function FastIntegerCompression() { } function bytelog(val) { if (val < (1 << 7)) { return 1; } else if (val < (1 << 14)) { return 2; } else if (val < (1 << 21)) { return 3; } else if (val < (1 << 28)) { return 4; } return 5; } // compute how many bytes an array...
59aaeec86fdeac341f409c5ec83fd6405c51f93f23c4b486d3049e0ad556c87a
JavaScript
6,150
210
/* Created by Teodora Vekony (vekteo@gmail.com) Lyon Neuroscience Research Center Universite Claude Bernard Lyon 1 Github:https://github.com/vekteo/ASRT_PDP_jsPsych */ /*************** VARIABLES ***************/ const responseKeys = [['s','f','j','l']]; const images = []; let timeline = []; let trialNumber = -1; le...
03732dd129def87da6c9d53337842929ca02268d980a927305d49d032c08a85c
JavaScript
6,176
1
(function(t){"use strict";t.isFunction(t.fn.popover)&&t("[data-toggle=popover]").popover()}).apply(this,[jQuery]),function(t){"use strict";t.isFunction(t.fn.tooltip)&&t("[data-toggle=tooltip],[rel=tooltip]").tooltip({container:"body"})}.apply(this,[jQuery]),function(t){"use strict";t(".sidebar-widget").each(function(){...
98536a7cc4f75c58b960bdfaec1a35632a53d29cf6c0366dfc4298fa0f9b4e93
JavaScript
6,205
111
const en = { welcomePage: { welcome: "Welcome!", clickNext: "Click on <strong>Next</strong> to continue." }, instruction: { fourCircles: "In this task, you will see four circles on the screen. From left to right, the <strong>'S'</strong>, <strong>'F'</strong>, <strong>'J'</strong> an...
d374e880e441a53b4626922ccf718d87b8e7a6a67318feaa49c673721b4c6ad0
JavaScript
6,206
150
import {Meteor} from 'meteor/meteor'; import {createWriteStream, lstatSync, readdirSync, readFile, readFileSync, existsSync} from "fs"; import {basename, extname, join} from "path"; import url from "url"; import ColorScheme from "color-scheme"; import config from "./config"; const demoMode = Meteor.settings.configurati...
2bfea0f926933574818c3d0bfb16dd1907411904c145edf8cdd699b8f226a919
JavaScript
6,227
213
/** * -------------------------------------------------------------------------- * Bootstrap (v4.4.1): button.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ import $ from 'jquery' /** * -------------...
806bae110cd86d2a4fae743c5c553689827025f7f90eb162da75e1c8bdfe044b
JavaScript
6,394
237
define( [ "./core", "./var/document", "./var/documentElement", "./var/hasOwn", "./var/indexOf" ], function( jQuery, document, documentElement, hasOwn, indexOf ) { "use strict"; /* * Optional (non-Sizzle) selector module for custom builds. * * Note that this DOES NOT SUPPORT many documented jQuery * features ...
f5274e88f8512ebdfae19c55689a34283fc704c81f4bc4944fab72ca21d4c978
JavaScript
6,434
117
/*! * Russian Translations for krajee-markdown-editor * * This file must be loaded after 'markdown-editor.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * @see http://plugins.krajee.com/markdown-editor * * NOTE: this file must be saved in UTF-8 en...
b009ed534950150474c9e3c428d751997789fbf37ab58b1c5a88cc5d1c40ba5f
JavaScript
6,522
5
/*! jQuery UI - v1.10.4 - 2014-04-07 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t,e){var i=0,n=Array.prototype.slice,s=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(o){}s(e)},t.widget=function...
4028046b93062b4384fabfdf098dc03f5baadfb58c12204fd9882838406769f4
JavaScript
6,545
236
var contextMenuObserving; var contextMenuUrl; function contextMenuRightClick(event) { var target = $(event.target); if (target.is('a')) {return;} var tr = target.parents('tr').first(); if (!tr.hasClass('hascontextmenu')) {return;} event.preventDefault(); if (!contextMenuIsSelected(tr)) { contextMenuUns...
17ea821b8197457f42cc66766646f9b25cd9bea1fcefd2886c02aa7d450dc9b2
JavaScript
6,585
189
/*! * Bootstrap util.js v4.4.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof mod...
c134e4c6f58826a9ba3535a5d523845b14f01d9ae5b66e5eaf591dad2eab5068
JavaScript
6,634
299
(function( $ ) { 'use strict'; var EditableTable = { options: { addButton: '#addToTable', submitButton: '#submitTable', table: '#datatable-editable', dialog: { wrapper: '#dialog', cancelButton: '#dialogCancel', confirmButton: '#dialogConfirm', }, }, initialize: function() { t...
03238a5dbcac08383ed30a7f4f7b0d2128f9d8b1313959b0767586b4719cef3b
JavaScript
6,663
18
/*! KeyTable 1.2.1 ©2010-2014 SpryMedia Ltd - datatables.net/license */ var KeyTable; (function(F,n,K){var A=function(d){KeyTable=function(j){function A(a){return function(e,c,p){(null===e||"number"==typeof e)&&(null===c||"number"==typeof c)&&"function"==typeof p?k[a].push({x:e,y:c,fn:p}):"object"==typeof e&&"functio...
06dc3e80d88d0ebba545a5f9fc9207479a1c2aaab7515da3166e1900ac474fec
JavaScript
6,664
260
/** * -------------------------------------------------------------------------- * Bootstrap (v4.4.1): tab.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ import $ from 'jquery' import Util from './util...
c1549904a8f102f6cd28492ea284d81bb772e69abccbe9d4052b278e06475c10
JavaScript
6,687
199
const assert = require('assert') const fs = require('fs') const path = require('path') const vm = require('vm') const repository = path.resolve(__dirname, '..', '..') global.$ = { get: async () => ({}), ajax: () => ({}), } global.BaseFileInput = class {} global.sleep = async () => {} global.upload_file_to_fla...
9a7f76fdc1930049302dff8d3cb5e6e0cbfcf8feb6d1b1a06ef16a7445b05111
JavaScript
6,717
72
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
eda24d7ba88b491471b7013a5747471f51b66a55ee089756c05404ed0be6da7c
JavaScript
6,721
6
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxHistory.js //---------------------------------------------------------- // Copyright (C) Microsoft Corporation. All rights reserved. //---------------------------------------------------------- // MicrosoftAjaxHistory.js Type._registerScript("MicrosoftAjaxHi...
6692bbc139f2e3b2b26b0f37db677fb133a9eb6607400cbd86e17f7b3c14e8e8
JavaScript
6,811
169
RootDetectionDownload = class extends BaseDownload{ //override static zipdata_for_file(filename){ var f = GLOBAL.files[filename]; if(!f.results) return undefined; var zipdata = {}; var segmentation ...
effe50eb1a805a00dc0e175a2736eab71a999740d80d10084b9aa7eaba2e64e3
JavaScript
6,868
233
define( [ "./core", "./core/access", "./var/document", "./var/documentElement", "./var/isFunction", "./css/var/rnumnonpx", "./css/curCSS", "./css/addGetHookIf", "./css/support", "./var/isWindow", "./core/init", "./css", "./selector" // contains ], function( jQuery, access, document, documentElement, isFunc...
69c15b8bf36bf55ae42e596357130a17468cbb33574b25ba664c8a36e4a75e65
JavaScript
6,874
5
/*! jQuery UI - v1.10.4 - 2014-04-07 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(e){var t,i="ui-button ui-widget ui-state-default ui-corner-all",n="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-ico...
2ee3ad619f7298f5475e8756615c288b7fcc72f581d11b9cf583988dae85974c
JavaScript
6,890
5
/*! jQuery UI - v1.10.4 - 2014-04-07 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{ver...
f8c11ef262949f9c0d27e368f7219fab0aaae6457fb6c72bcda3cd01b12e1e10
JavaScript
6,893
244
require('dotenv').config(); const { join } = require('path'); const { readFileSync, writeFileSync } = require('fs'); const { stringify } = require('javascript-stringify'); const deepAssign = require('deep-assign'); const prettier = require('prettier'); const fs = require('fs-extra'); const prettierOptions = { ...J...
0b0f022034b3151d8a1072525aa8867bbe262411ca03b9c74eba749c85edef38
JavaScript
7,019
13
/** * DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>. * Author: Drew Diller * Email: drew.diller@gmail.com * URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/ * Version: 0.0.8a * Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license * * ...
af7d2bc128cd4e1b5b39daa31c3f8c6f5f0ffc4dfb569da7d75e99021fd7d309
JavaScript
7,083
200
/* Created by Teodora Vekony (vekteo@gmail.com) MEMO Team (PI: Dezso Nemeth) Lyon Neuroscience Research Center Universite Claude Bernard Lyon 1 Github:https://github.com/vekteo/Nback_JSPsych */ /*************** VARIABLES ***************/ let nbackStimuli = {}; let instruction; let timeline = []; const buttonToPress...
3f2ec31543eade7d74f0fdf3c1a69b713216b6812cddefde9922951f80a5e3db
JavaScript
7,157
217
/* Created by Teodora Vekony (vekteo@gmail.com) Lyon Neuroscience Research Center Universite Claude Bernard Lyon 1 Github:https://github.com/vekteo/ASRT_PDP_jsPsych */ function expStart(subject, session) { /*************** VARIABLES ***************/ const responseKeys = [['s','f','j','l']]; const image...
0c68bd7dbc84c45b1672bd4f7145dd91c5f64e41ae17ac909c7f0aa38ce6e2e1
JavaScript
7,171
169
import SseTool from "./SseTool"; import Paper from "paper"; import simplify from "simplify-js"; import SseGlobals from "../../../common/SseGlobals"; export default class SseCutTool extends SseTool { constructor(editor) { super(editor); this.minDistance = 0; this.segmentsFromDivision = new ...
090fa84e35dd4f1e4a8fbbffc4abaac073c8dbabef7c95acd3ab9a7f04262759
JavaScript
7,203
197
/* Offline shim for the static demo. * * The demo is a copy of the platform's own frontend. Rather than rewrite 2,700 lines of * application JavaScript, this file removes the two things that reach the outside world, * so that the copied main.js / dashboard.js / read_article.js run unmodified: * * 1. Firebase. T...
3d7e51129b27260d40ed257ad9af59a077c357b8f370af9e7b1c3f44c72761d9
JavaScript
7,496
172
var draw_gantt = null; var draw_top; var draw_right; var draw_left; var rels_stroke_width = 2; function setDrawArea() { draw_top = $("#gantt_draw_area").position().top; draw_right = $("#gantt_draw_area").width(); draw_left = $("#gantt_area").scrollLeft(); } function getRelationsArray() { var arr = new Arr...
a8efdbf74de260195e2b9bb8687ea9e9ddb1ec86f583a3007aeb639b5b9b1e9b
JavaScript
7,544
205
/* Created by Teodora Vekony (vekteo@gmail.com) MEMO Team (PI: Dezso Nemeth) Lyon Neuroscience Research Center Universite Claude Bernard Lyon 1 Github:https://github.com/vekteo/Nback_JSPsych */ function expStart(subject, session) { /*************** VARIABLES ***************/ let instruction; let timeline = [...
b339b0c02afdf4024e14afaa9a3c23cfe3bb3bd90c515b653baf50c6089915ff
JavaScript
7,573
234
/*! * Bootstrap button.js v4.4.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof m...