blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
132
path
stringlengths
3
236
src_encoding
stringclasses
29 values
length_bytes
int64
8
7.94M
score
float64
2.52
5.72
int_score
int64
3
5
detected_licenses
listlengths
0
142
license_type
stringclasses
2 values
text
stringlengths
8
7.94M
download_success
bool
1 class
ccaa327fe015b52ca9bea85677294b376e9b95c2
JavaScript
nagreme/G4EMMA-site
/g4emma/static/g4emma/form_messages.js
UTF-8
473
2.578125
3
[]
no_license
$(document).ready(function(){ // // display a message to the user upon submit to let them know the results // will take a while and scroll back to top so they can see any relevant msgs $("#sim_form").submit(function(){ $("#submit-msg").text("You will be redirected to the results once the simulation is comple...
true
95a5c38350c510566dbde3d41f02150d0178b3e0
JavaScript
gabbijonsson/hamsterwars-hamsterburen
/src/components/BattlePage.jsx
UTF-8
1,257
2.53125
3
[]
no_license
import React, {useEffect, useState} from 'react'; import './BattlePage.css'; import GenericBtn from '../components/GenericBtn'; import CombatantCard from '../components/CombatantCard'; import PickWinnerBtn from '../components/PickWinnerBtn'; const BattlePage = ({img1,img2}) => { function getRandomHamsters(callback) {...
true
033a974f470f4abcddc06aa0f59f5a485348dc6d
JavaScript
Oblivion-Calculate-Creed/Promises-Example
/promises-example/sampleSolutionCode.js
UTF-8
2,481
2.578125
3
[]
no_license
const https = require("https"); // will need to be retrieved from Secrets Manager // const secretName = process.env.secretName // let secrets; // try { // secrets = await AWS.SecretsManager.getSecretValue(secretName); // if (!secrets) { // throw new Error('No Secrets') // ...
true
0ecc7e3118e132ae9947462cda96c854cfae9dd7
JavaScript
EdinaBMakers/exercism-javascript-track
/armstrong-numbers/armstrong-numbers.js
UTF-8
435
3.3125
3
[]
no_license
export const validate = (number) => { let digits = String(number).split('').map(Number); if (digits.length === 1) { return true; } if (digits.length === 2) { return false; } const poweredDigits = digits.map((digit => Math.pow(digit, digits.length))); const sumOfPoweredDigits = poweredDigits ...
true
7f31c704ee9c4a820385f9f0df057e0c15220a4d
JavaScript
mayankrd/web-app-maker
/webappmaker-client/public/services/user.service.client.js
UTF-8
3,150
2.859375
3
[]
no_license
/** * Created by: Mayank * Client service for User views * Registered app by Angular module name WebAppMaker */ (function (){ angular .module("WebAppMaker") // Registered app by Angular module name WebAppMaker .factory("UserService", UserService); // forming REST Request using Express $htt...
true
f423da05aa7ba0245535a495f2bd5d9c0fab094d
JavaScript
Sayali267/simple-helium-hotspots
/handlers.js
UTF-8
604
2.546875
3
[]
no_license
const axios = require('axios'); const HELIUM_API_URL = 'https://api.helium.io/v1/'; const getCities = async () => { try { const url = HELIUM_API_URL + 'cities'; const resp = await axios.get(url); return resp.data; } catch (err) { console.error(err); } } const getHotspotsBy...
true
daaeef18417d108c9eea6c2794f5b7d29652a800
JavaScript
joannegs/geradorPDF-ss
/generate-PDF.js
UTF-8
1,138
2.671875
3
[]
no_license
const hbs = require('handlebars'); const fs = require('fs'); const path = require('path'); const data = require('./JSON/JSONStory.json'); const browser = require('./browser.js'); function renderTemplate(data) { const html = fs.readFileSync(path.join('./template-PDF.hbs'), { encoding: "utf8" }); c...
true
f07686322255508c657380484c88725c67e7603c
JavaScript
ikke09/odenwald-garbage
/functions/garbages.js
UTF-8
2,053
2.8125
3
[]
no_license
const scraper = require('./garbages/scrape'); const moment = require('moment'); const DATE_FORMAT = process.env.DATE_FORMAT; const cache = { threshhold: moment.duration(86400000), // 1 Day in ms lastFetch: moment.utc(), garbageDictionary: {} }; async function loadGarbages({ city, district, date: dateString }) ...
true
a5615fd1c2698064ab3f447780b0a28d2ec6d4c0
JavaScript
sirleito/juego-cartas
/js/maquetador.js
UTF-8
1,081
2.9375
3
[]
no_license
(function(){ function maquetadorCartas(items){ let fragmento = document.createDocumentFragment() items.forEach(function(a, b){ let div = creador("div", "contenedor") div.appendChild(creador("h2", "titulo-carta", a.titulo)) div.appendChild(creador("p", "texto-carta", a.mensaje)) div.appendChild(cread...
true
28d9d74137ffd8e1421c4a5cc7364e0bf58de1b4
JavaScript
sglmoon/layui_web
/assets/js/article/artCate.js
UTF-8
4,043
2.5625
3
[]
no_license
$(function() { //获取文章列表 getCateList() // 定义美化时间的过滤器 template.defaults.imports.dataFormat = function(date) { const dt = new Date(date) var y = dt.getFullYear() var m = padZero(dt.getMonth() + 1) var d = padZero(dt.getDate()) var hh = padZero(dt.getHours()) ...
true
3ad9ab18cfcaab231266167c36996260051b97a0
JavaScript
rdaly1490/Vanilla-JS-Todo-List
/dist/main.js
UTF-8
632
3.03125
3
[]
no_license
var list = []; var myButton = document.getElementById("submit"); var messageInput = document.getElementById("message"); var messageList = document.getElementById("message-list"); myButton.addEventListener("click", onButtonClick); myButton.addEventListener("click", render); function onButtonClick(eventObj) { console....
true
4755215ad86577ba2308591224708222e424e07f
JavaScript
jonnyleealas/apple-store-io
/storeHub.js
UTF-8
2,886
3.09375
3
[]
no_license
'use strict'; const io = require('socket.io')(3000); const storeNameSpace = io.of('/store'); // building up 4 empty queues for different events var salesOrderQueue = {}, repairOrderQueue = {}, salesCompleteQueue={}, repairCompleteQueue={}; // building a map to pair queues with event names var map = { 'purchase_or...
true
27c322d1a4d361aa6c1508125f5cd8e448209199
JavaScript
kernel72/express-lib
/lib/middlewares/catchError/index.js
UTF-8
356
2.734375
3
[]
no_license
function catchError(func){ return async function catchErrorMiddleware(req, res, next){ try { await func(req, res, next); } catch (e){ if(typeof e === 'undefined'){ return next(new Error("Unhandled error")); } return next(e); } ...
true
3c0a8e25da0f31603bbe39b6732bd0a2b86cd17c
JavaScript
kohbis/led-blinker
/nodejs/ledBlinker.js
UTF-8
430
2.8125
3
[ "MIT" ]
permissive
'use strict'; const Gpio = require('onoff').Gpio; const pin = new Gpio(2, 'out'); const sleep = (ms) => { return new Promise(resolve => setTimeout(resolve, ms)) } const main = async () => { try { for (let i = 0; i < 7; i++) { pin.writeSync(1); await sleep(1000); pin.writeSync(0); awai...
true
cf25d57258cb2e15ee102b35a560cfd41ca98758
JavaScript
amarqueze/app-context-js
/lib/services.js
UTF-8
615
2.796875
3
[ "MIT" ]
permissive
'use strict'; class Services { constructor() { this.Containers = new Map(); } publish(name, api, info = {}) { this.Containers.set(name, {name, api, info}); } getService(name) { return this.Containers.get(name); } getServices(names = []) { var temp_services...
true
e636fc6f8d4df937ae7a0591dd459323f0e8e161
JavaScript
acdiasjunior/girin
/app/webroot/js/maskinput.js
UTF-8
1,887
2.625
3
[]
no_license
// JavaScript Document // JavaScript Document $(document).ready(function () { $.mask.definitions['~']='[0-3]'; $.mask.definitions['^']='[0-1]'; $.mask.definitions['#']='[1-2]'; $(".maskdata").mask("~9/^9/#999"); $(".maskdatahora").mask("~9/^9/#999 99:99:99"); $(".maskplaca").mask("aaa-9999");...
true
e4ab5b9b4a1f5b9a47cfebe30409d997aee26963
JavaScript
MahendraRapeti/Todo-List-WebApp
/todo.js
UTF-8
1,762
3.171875
3
[]
no_license
var btn=document.getElementById("btn"); var list=document.getElementById("list"); var value=""; var x=0; var input=document.getElementById("input"); input.addEventListener('input',function(e){ value=e.target.value; }); function createimage() { var image=document.createElement("img"); image.src="data:...
true
735e42df4ae707270d08fec0fdc899ad1c983d26
JavaScript
VenkatReddy135/JAVASCRIPT-TOPICS-ALL
/RestvsSpreadOperators.js
UTF-8
1,831
4.59375
5
[]
no_license
//1)Rest Operators // function add(...x){ // let sum=0; // for(let value of x){ // sum+=value // } // return sum; // } // console.log(add(1,2)); // console.log(add(1,2,3,4)); //2)Spread Operators //it convers the array into an (,) seperated arguments // let arr=[1,2,3...
true
665283802843446850f9b9ec1f2972ffba08ef19
JavaScript
JonathanWexler/node-examples
/3_timing_function/1_timing.js
UTF-8
878
3.984375
4
[]
no_license
// First we set up variables to indicate our stopping time and interval times var waitingTime = 5000; var intervalTime = 500; var currentTime = 0; // Next we can set up a setTimeout as a variable // This alone will run through the timing function. var timeout = function(){ setTimeout(function(){ writePercentage(500...
true
da3fa3b00d997207dd685758b781d402eee76ae4
JavaScript
AndyBoat/qimai-rank-parser-crx
/popup.js
UTF-8
1,831
2.734375
3
[]
no_license
let parseButton = document.getElementById('clickParse') parseButton.onclick = function(element) { chrome.tabs.query({ active: true, currentWindow: true }, function(tabs) { chrome.tabs.executeScript(tabs[0].id, { // code: 'document.body.style.backgroundColor = "' + color + '";' file: 'parse.js' })...
true
d914c3c9540b0b47cd63ea9b66f0fa422e58e095
JavaScript
LehtiTuomas/weather
/src/components/AllWeather.jsx
UTF-8
5,529
2.546875
3
[]
no_license
import './AllWeather.css'; import React from 'react'; import North from '@material-ui/icons/ArrowUpward'; import East from '@material-ui/icons/ArrowForward'; import South from '@material-ui/icons/ArrowDownward'; import West from '@material-ui/icons/ArrowBack'; import NI from '@material-ui/icons/CallMade'; import SE fr...
true
12ff504ebd61082111c9afd00d9615db7ca4a7be
JavaScript
omarmercha/react_web_app
/src/views/social/store/reducer/index.js
UTF-8
854
2.53125
3
[]
no_license
const initialState = { profileProviders: [], profilePets: [], profilePhotos: [], profileDocuments: [], profileFriendships: [], profileActorVotes: [] } const socialReducer = (state = initialState, action) => { switch (action.type) { case 'GET_PROFILE_PROVIDERS': return { ...state, profileProvid...
true
dd76a05d0f567b25f25bd355654009e26bfa2a30
JavaScript
zahanm/ytroom
/client/lib/asyncget.js
UTF-8
1,410
2.515625
3
[]
no_license
var fun = require('../extlib/uki-core/function'), utils = require('../extlib/uki-core/utils'), asyncget = exports; /** * Really simple on purpose * Just use the get() method */ asyncget.get = function(url, data, cb) { var g = window.asyncget._guid++ ; utils.extend(data || {}, { callback: 'asyncget._ca...
true
099c903627cdfb3ba15f37264ccf014de374416f
JavaScript
hapihapi777/kakugamer_zinrou
/js/village.js
UTF-8
2,502
3.203125
3
[]
no_license
// 'use strict'; // { class Village { constructor(id) { this.id = id; this.Init(); } Init() { let member_list = GetMember(); member_decision.disabled = true; let this_member_list = []; this_member_list = this_member_list.concat(shuffle(member_list)); console.log(this_...
true
a4dbb540b4a78ef1969604336fb74ffb7f5c8cc8
JavaScript
sojurner/Website-v2
/assets/data/quotes.js
UTF-8
162,148
2.6875
3
[]
no_license
export default [ [ 'Johann Wolfgang von Goethe', 'If you must tell me your opinions, tell me what you believe in. I have plenty of douts of my own. ' ], [ 'Von Glitschka', 'A healthy creative process should be able to give a coherent rationale to a client as to why you designed what you designed.'...
true
d1c130d6eb778ad0436241973b9846e5f6aad014
JavaScript
AeroX2/wave
/diamond.js
UTF-8
3,092
3.1875
3
[]
no_license
(() => { let size = 50; class Diamond { constructor(x,y) { this.x = x; this.y = y; this.y_direction = false; this.squeeze_x = true; this.squeeze_y = false; this.top = { x: this.x, y: this.y - size }; this.bottom = { x...
true
cf358b8e38e610780c6632a51bf540ccc0e24062
JavaScript
tannerjaime/tannerjaime.github.io
/towerOverTime/sketch.js
UTF-8
6,267
2.84375
3
[]
no_license
var options = ["temperature_f", "rain_in", "humidity_per", "wind_direction_deg", "wind_speed_mph", "pressure_pa", "light_v"]; var optionNames = ["Temperature", "Rain", "Humidity", "Wind Direction", "Wind Speed", "Pressure", "Light"]; var tempMapped = []; var xTemp = []; var xVariable = "time"; var yVariable...
true
73334cf31aec815227d33b39c0e93afa3a5f9509
JavaScript
axwain/BTTEncoding
/src/data_structures/priorityQueue.test.js
UTF-8
2,696
3.578125
4
[ "MIT" ]
permissive
import { maxComparator, maxPriorityComparator, minComparator, minPriorityComparator, PriorityElement, PriorityQueue } from './priorityQueue' const Elements = [5, 10, 7, 2, 15] const PriorityElements = Elements.map(e => { return new PriorityElement(e) }) function buildQueue (size, comparator = ...
true
f2616c23ff3c4c3debdaec994f7575d3b5ac460f
JavaScript
buchi-1996/spinning-cards
/js/app.js
UTF-8
3,361
2.9375
3
[ "MIT" ]
permissive
const cardRow = document.querySelector('.card-row'); class UI{ spinCard(item){ if(item.classList.contains('card-link')){ const mainCard = item.parentElement.parentElement; const face_1 = item.parentElement; const face_2 = item.parentElement.nextElementSibling; ...
true
bff9493795cd9417b2cde9f4adcee4e9e5aac884
JavaScript
DanielCasanova/BootCamp
/Section 25/FirstExpressApp/app.js
UTF-8
405
3.109375
3
[]
no_license
const express = require("express"); const app = express(); const port = 3000; app.get('/', (request, response) => response.send("Hi there!")); app.get('/bye', (request, response) => response.send("Buh-Bye!")); app.get('/dog', (request, response) => { console.log("Request made to dog"); response.send("Woof!"...
true
2a4c370bca3238e0ba9e5fe8664107487021b9f8
JavaScript
cody1991/learn
/Eloquent-JavaScript/ch5-higher-order/index.js
UTF-8
1,122
4.125
4
[]
no_license
// 单纯的打印?要加入一些方法 // function logEach(array) { // for (let i = 0; i < array.length; i++) { // console.log(array[i]) // } // } function forEach(array, action) { for (let i = 0; i < array.length; i++) { action(array[i]) } } forEach(['Wampter', 'Foma', 'Granfalloon'], console.log) let numbers = [1, 2, 3,...
true
172361ea04aeae233d4ee643d556dd0b8250b3a6
JavaScript
RobWill1015/RobWill1015.github.io
/projects/eloquent-javascript/chapter-04/exercises.js
UTF-8
5,648
3.734375
4
[]
no_license
//////////////////////////////////////////////////////////////////////////////// // range /////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// function range(num1, num2, step) { //takes two numbers and returns an arra...
true
9f1fccf1c5e7d74490512bf26d90ce83a2bb7e12
JavaScript
droman21/api_mastery
/frontend-spa/src/js/components/recipes.js
UTF-8
1,322
2.515625
3
[ "MIT" ]
permissive
export default function Recipes(recipes){ return ` <h1><u>Recipes</h1></u> <h2>Scroll down to add a new receipe or edit/delete an existing one</h2> ${recipes.map(recipe => { return ` <div id="recipes" <ul><article><h2 class='recipe__name'>${rec...
true
439e6f761915c7538629d0080757faef3a049db9
JavaScript
AncutaIoan/FMI-LABS
/An 2, Sem 2/Algoritmi Avansati/Cursuri/Suport vizual/JavaScript/utils.js
UTF-8
7,072
3.234375
3
[]
no_license
var near = 10; function nextChar(c) { return String.fromCharCode(c.charCodeAt(0) + 1); } function nextLiter(c) { if (c == "Z"){ return "Aa"; } if (c.length == 1) { return nextChar(c); } if (c[1] == "z") return nextChar(c[0]) + "a"; return c[0] + nextChar(c[1]); } function extend(ar...
true
1e480c5dab1f5b8aff2adcc1b2680ae0109c46ad
JavaScript
MarkLimML/prosdev-hw-unittest
/src/index.test.js
UTF-8
6,854
3.34375
3
[]
no_license
const { gradeClassifier } = require('./index'); // TODO: Write unit tests here describe('When grade is at most 100 and at least 95.00, then display grade of O - Outstanding', () => { //OUTSTANDING it('When grade is at 100.00, then return grade O - Outstanding', () => { // Arrange const grade = 100.00; ...
true
e525793d8e21db7fd5613d9318c6a1fd3fefab78
JavaScript
PrinceIssar/BeCode-BootCamp
/3.The-Mountain/FRONTEND/Advanced-interactions/script.js
UTF-8
246
3.453125
3
[]
no_license
Array.from(document.querySelectorAll(".letter")).forEach(el => { el.innerText = randomLetter(); }); function randomLetter(){ const alphabet = "abcdefghijklmnopqrstuvwxyz" return alphabet[Math.floor(Math.random() * alphabet.length)] }
true
ee578f83bf60985677484046059707e662eca6f9
JavaScript
alex-r-bigelow/efg-lite
/scripts/script.js
UTF-8
8,493
2.703125
3
[ "MIT" ]
permissive
var windowBounds = { width : 200, height : 200 }; var data = { nodes : [ { attrs : { label : "", id : 0 } } ], links : [] }, currentNode = 0, force, drag, node, link, ...
true
cf2041cc50a16d816a7007d8a59fc341beafa1ef
JavaScript
preemptive/testing
/Js-2.0/lw.js
UTF-8
424
3.78125
4
[]
no_license
///examples of how to use loops: the while and for stuff //for when you want to repeat stuff // while (condition) {<code>} //let i = 0; //while (i < 3) { // alert(i); // i++ //} //The do...while loop //let a = 0; //do { // alert(a); // a++; //} while (a<3); /// for loops and usages for(begin; condition; step) {loop b...
true
8b889056b4284b941353f87106f09028852a7cae
JavaScript
LenaTevar/LNU-Kurser
/Kurser/ServerJS/ht222fd-examination-3-master/public/scripts/client.js
UTF-8
916
2.609375
3
[]
no_license
'use strict' import AlertsDOM from './alertsDOM.js' const socket = io.connect('https://cscloud603.lnu.se/') /** * dev: http://localhost:3000 * prod: https://cscloud603.lnu.se/ */ const newAlert = new AlertsDOM() let cloudAlive = false socket.on('connect', function () { console.log('Connected') cloudAlive = true...
true
6dda5979e313a90a1c7774cf108d7ac6ae3366e0
JavaScript
polyakusha/react-learning-task1
/11042018-firsttask/src/ValidationComponent/ValidationComponent.jsx
UTF-8
710
2.8125
3
[]
no_license
import React from 'react'; const red = { color: 'red' } const green = { color: 'green' } const validationComponent = (props) => { const inputLength = props.symbols; let validationMessage = null; if (inputLength === 7) { validationMessage = ( <p style={green}>Bingo!</p> ...
true
da8352d1264e4fcc8246cd6c972c3a378ca9cc4c
JavaScript
xXDerpyXx/Country-Battle-Bot
/functions/randomName.js
UTF-8
1,010
2.796875
3
[]
no_license
module.exports = function randomName(c, rand = Math) { var v = require.main.require('./vars.js'); var vowels = c.lang.vowels; var output = ""; var type = "c"; if(rand.random() > 0.5) { // 5/10 of the time, type = "v"; } //Generate a random first letter and capitalise it based o...
true
d11cc64770933fec50e6fbdb34c2636a0e7d83ca
JavaScript
itzFlubby/ETIT-Chef-JS
/helper/settings.js
UTF-8
470
2.578125
3
[ "MIT" ]
permissive
const fs = require('fs'); class Settings { promise_ready = false; prefix = null; constructor() { this.promise_ready = this.loadSettings(); } async loadSettings() { await fs.readFile("./settings/settings.json", (err, data) => { if (err) throw err; const parsedJSON = JSON.parse(data); this.prefix...
true
6729feb1f54aa8f9c0ae33efa371e34bb5db79c4
JavaScript
VVValx/weatherApp
/routes/geocoding.js
UTF-8
566
2.59375
3
[]
no_license
const express = require("express"); const geoCode = require("../utils/geocoding"); const router = express.Router(); const location = "Helsinki"; router.get("/", (req, res) => { geoCode(location, (data) => { res.send(data); }); }); router.get("/coordinates", (req, res) => { geoCode(location, (data) => { ...
true
5178d7d6ed751da3c276b2d388520c1b9c18c45e
JavaScript
payalpatel26/Fun_With_JS
/JsSynchoAsynchoConcept.js
UTF-8
5,235
3.4375
3
[]
no_license
/* //<------example of Synchonous Concept //where if we have five fuction so it excute one by one. and its dependent by one by one. // best you can work with one hand. console.log("---I---"); console.log("---eat--"); console.log("---icecream---"); console.log("---with---"); console.log("---spoon---"); //<------exampl...
true
7882228f0c98d83d4065b5c30e136a4b65e8740d
JavaScript
nileshlaxmi/react
/to-do-list/src/App.js
UTF-8
1,190
3
3
[]
no_license
import React, { Component } from 'react'; import './App.css'; class App extends Component { constructor(props){ super(props); this.state = { text: '', items: [] } this.onInputChange = this.onInputChange.bind(this); this.onSubmitInput = this.onSubmitInput.bind(this); } onInputCh...
true
f69575a64d1aeab72fdae03b7965c074d47387fd
JavaScript
tensory/wikimedia
/index_files/script.js
UTF-8
11,524
2.75
3
[]
no_license
/* * Wikimedia Foundation coding exercise. * * Includes find-on-page and image lightbox modules. * * by Ari Lacenski, except where attributed in Finder module. * 04012012 */ (function($) { $(document).ready(function() { // Reset sizing on all document images Optimize.resetImageSizing($('img')); // Set...
true
b6d2b8af22a2c13591f0ad84ef1ffd4b51aa5f42
JavaScript
ericathegreat/Elevator
/Assets/World.js
UTF-8
1,338
2.65625
3
[]
no_license
#pragma strict static var time : int = 150; static var points : int = 0; static var lockout : boolean = false; static var storeScoreAs : String; var timeoutTick: AudioClip; var timeoutOver: AudioClip; var lockoutSeconds: int = 4; private var lockoutCountDown : int = 0; function Start () { time = 150; points = 0...
true
057ba9763d6e0dda0066e3b8267d10607189ecc5
JavaScript
pdehaan/known-spam-emails
/index.js
UTF-8
747
2.8125
3
[]
no_license
var lists = []; var fs = require('fs'); var pathToLists = __dirname + '/spam_lists/'; loadLists(); function loadLists() { fs.readdir(pathToLists, function(err, files) { if(err) { throw "could not find spam_lists directory"; } files.forEach(function(file) { readFile(pathToLists + file); }); }); } func...
true
05395e96382fb8a6834246ec8d048dce54b5d157
JavaScript
sirSayed98/BigTable
/clientTwo.js
UTF-8
12,799
2.640625
3
[]
no_license
const express = require("express"); const io = require("socket.io-client"); const dotenv = require("dotenv"); const inquirer = require("inquirer"); const axios = require("axios"); // Load env vars dotenv.config({ path: "./config/.env" }); //const { configure,updatemetadata } = require("./controllers/clientController...
true
7f1049d3b97604085acb820af43f64834bca0c68
JavaScript
tosone/snippets
/public/js/add.js
UTF-8
696
2.859375
3
[]
no_license
$("#submit").click(function() { var intro = $("#intro").val(); var code = escapeHtml($("#code").val()); var lang = $("#lang").val().split('-')[1]; if(intro == "" || code == "") { alert("介绍或者代码不能为空!"); } else { $.post(url, { intro: intro, code: code, ...
true
3993753b1f875ac47d290b9557dacf3609315650
JavaScript
chdo002/croissantview
/src/socket.js
UTF-8
960
2.59375
3
[]
no_license
import store from '@/store' const socket = new WebSocket('ws://localhost:8980/'); socket.onopen = function() { // eslint-disable-next-line no-console console.log("Connection open ..."); store.commit('changeSocketState',true); }; socket.onmessage = function(evt) { // eslint-disable-next-line no-conso...
true
cad56a2dec2f578bdbd4e1c486cc19f071c74543
JavaScript
jackeline-villalobos/proyecto-software
/js/modificar-recinto-controlador.js
UTF-8
5,368
2.734375
3
[ "MIT" ]
permissive
'use strict'; let idRecinto = sessionStorage.getItem('idRecinto'); const imagen = document.querySelector('#imagePreview'); const inputEncargado = document.querySelector('#txt-encargado'); const inputRecinto = document.querySelector('#txt-nombreRecinto'); const inputCapacidad = document.querySelector('#txt-capacidad')...
true
5ed31140cd1b41a2935fca1eb1e343d806e05395
JavaScript
ahmeds47/suleiman-weather-app
/src/panels/Form.js
UTF-8
1,670
2.75
3
[]
no_license
import React from "react"; import Geocode from "react-geocode"; class Form extends React.Component{ constructor(props) { super(props); this.initialState = { city: '', country: '' }; this.state = this.initialState; } handleChange = event => { const {name, value} = event...
true
a2f5e9c8edb728b6d6f906b75fbeeaab6783581a
JavaScript
KranteshSingh/JavaScript-Exercise
/01 JavaScript Basics/05Program.js
UTF-8
382
4.34375
4
[]
no_license
let person = { name: 'Krantesh', age: 23, email: 'krantesh@gmail.com' }; // KEYS are called properties of the object console.log(person); // Accessing the values of an object // 1. Using DOT notation // 2. Using square bracket person.name = 'Rahul'; console.log(person.name); person['age'] = 24.5; console.log(p...
true
e58741f1c0cd71ea9e11d2cb31d8b11d79a68568
JavaScript
koraytugay/daily-coding-problem
/src/amazon/printMatrixClockwise.js
UTF-8
1,396
3.78125
4
[]
no_license
// Given a N by M matrix of numbers, print out the matrix in a clockwise spiral. exports.printMatrixClockwise = function (matrix) { let s = ''; let visited = 0; let east = (index, matrix) => { for (let i = index; i < matrix[index].length - index; i++) { visited++; s = s.conc...
true
147798c718f515c837706c63087a6caa58d3ebd8
JavaScript
Brolly0204/algorithm008-class02
/Week_04-2/Day5/122. 买卖股票的最佳时机 II.js
UTF-8
297
3.109375
3
[]
no_license
var maxProfit = function(prices) { var profit = 0 for (var i = 0, len = prices.length; i < len; i++) { if (prices[i + 1] > prices[i]) { profit += prices[i + 1] - prices[i] } } return profit } console.log(maxProfit([7, 1, 5, 3, 6, 4])) console.log(maxProfit([1, 2, 3, 4, 5]))
true
6ba7d80427bfad26fc384f67b663217e3d1a244b
JavaScript
abhishek-wd/gazetteer-app
/js/calls/news.js
UTF-8
1,651
2.53125
3
[]
no_license
import { errorCard } from "../helper/styles.js"; export let getNews = (keyword) => { return $.ajax({ type: "POST", url: "php/news.php", dataType: 'json', data: { keyword }, success: (result) => { if (result.status.name == "ok" && result.data)...
true
22b46cec3852f4a8d2c161ddbfd91608ba4c4e58
JavaScript
jykkim111/public_bike_infovis
/detailedview.js
UTF-8
7,245
2.671875
3
[]
no_license
const lineBarChartWidth = 600; const lineBarChartHeight = 500; const lineBarChart = d3 .select("#linebarchart") .append("svg") .attr("width", lineBarChartWidth + margin * 2) .attr("height", lineBarChartHeight + margin * 1.5) .append("g") .attr("transform", `translate(${margin * 1.2}, ${margin / 2}...
true
1d4d010cb688d1fa90ee3abfc9ebb1c943729da5
JavaScript
shawon39/DM-project
/js/create-meeting.js
UTF-8
5,529
2.953125
3
[]
no_license
$(document).ready(function() { let obj = { agendas: [], participants: [] }; $("#next1").on("click", function(e) { e.preventDefault(); infoToAgenda(); }); $("#next2").on("click", function(e) { e.preventDefault(); agendaToParticipants(); }); $("#next3").on("click", function(e) { e.preventDefault()...
true
4d151dd4eb397a89364cc1bc4713d0742135c1fe
JavaScript
WhatFor/Web-Application
/resources/hiscoreLocal.js
UTF-8
727
2.828125
3
[]
no_license
var client = require('./dbHelper'); module.exports = function(location) { //Find our user's location ID client.query("SELECT locationID FROM location WHERE location = \'" + location + "\'", function(err, result) { if (result[0] !== undefined) { //Our location is in the database var locationID = result[0]["lo...
true
ab0a0781590033f1637a2e91349368a8117ffb45
JavaScript
rickyMelida/ejemplos-ES6
/falcon/video_5/src/app.js
UTF-8
204
3.015625
3
[]
no_license
//Template string/// let nombre = 'Ricardo'; let edad = 27; let pais = 'Paraguay'; console.log('La persona es de y tiene años'); console.log(`La persona ${nombre} es de ${pais} y tiene ${edad} anhos`);
true
202ee63a6738956f170d2c587349bd1108d3e6b4
JavaScript
hung55pm/Chat_nodejs_Android_SV
/public/assets/jquery/dist/statistic.js
UTF-8
6,011
2.703125
3
[ "MIT" ]
permissive
$(document).ready(function () { $('#choose-type').on('change', function () { var type = this.value; console.log(type); if (type == "full") { $('#vung').hide(); $('#tinh').hide(); $('#div-tbl-info-employee').hide(); $('#chart').show(); ...
true
ec877c14bf7316e91e07d038efe8d708a1ea79c8
JavaScript
ramankarki/learning-javascript
/stop-watch (small project)/main.js
UTF-8
2,215
2.75
3
[]
no_license
DOM = { "hr": ".hr-js", "min": ".min-js", "sec": ".sec-js", "miliSec": ".mili-sec-js", "start": ".start-js", "stop": ".stop-js", "reset": ".reset-js", }; let time = { hr: 0, min: 0, sec: 0, miliSec: 0 } let interval; let lastClicked = ""; let updateUI = (hr, min, sec, mil...
true
f9a67d35b378360788bb6b6d6175482249b45a76
JavaScript
AlanContrerasM/devfroja
/claseprogrfuncional.js
UTF-8
679
3.984375
4
[]
no_license
//maps es una forma de iterar sin usar for var lista = [1,3,2,5,4,6,8,7,9,0] var obj = [ {data:"hola",nombre:"Pedro"}, {data:"holi",nombre:"juan"}, {data:"carnal",nombre:"Galans"}, ] //x es cada uno, y es los indices, y z imprime la lista las veces que itero lista.map((x,y,z)=>{ console.log(x) }) le...
true
e087c7c14de359ed6d4e0aa890e259f2de27220d
JavaScript
dionboles/nodePhotoResize
/resizer.js
UTF-8
1,263
2.671875
3
[]
no_license
const Jimp = require('jimp'); const fs = require("fs"); const path = require("path"); // Make the build folder this is your output folder const buildDir = './build/img'; if (!fs.existsSync(buildDir)){ fs.mkdirSync(buildDir,{ recursive: true }); } // Make the src folder this is your input folder const srcDir = '...
true
6a6ab1467e5295db17520927c9bbfe1b19294315
JavaScript
ShaiMesisterano/Presentation_Functional-Programming-In-Javascript
/map-functional.js
UTF-8
583
3.21875
3
[]
no_license
var allEmployees = [ { name: "a", location: { country: "Israel", city: "Tel Aviv" } }, { name: "b", location: { country: "Israel", city: "Jerusalem" } }, { name: "c", location: { ...
true
7be654910e782b71dc091362f832f45b0148668c
JavaScript
MegSherman/react-drills
/app-2/src/App.js
UTF-8
1,001
2.578125
3
[]
no_license
import React, {Component} from 'react'; import logo from './logo.svg'; import './App.css'; export default class App extends Component { constructor() { super() this.state = { friends: ['Calista', 'Arianne', 'Jeena', 'Alisha', 'Josh', 'Ben', 'Kayla', 'Levi'] } } render() { let friendsDispla...
true
c99fdf2cd96d1a43edc0984ae5f07fda2d4bac4a
JavaScript
samba-code/data-visualization
/src/projects/WeatherHistory/constants.js
UTF-8
1,641
2.515625
3
[]
no_license
import { parseISO, getYear } from "date-fns"; import { range } from "lodash"; export const weatherMeasures = { "Average temperature": { label: "Average temperature", accessor: (d) => Number(d.temp), format: (d) => `${d}°C`, default: true, }, "Maximum temperature": { label: "Maximum temperatur...
true
b1580aea8c71763394f612f1b599acb7c11a3866
JavaScript
tmk7777/tmk7777.github.io
/public/javascript/main-js.js
UTF-8
16,328
2.9375
3
[]
no_license
// ------------------------------------------------------------------------------ // var text = document.getElementById('myInfo'); // var newDom = ''; // var animationDelay = 6; // for (let i = 0; i < text.innerText.length; i++) { // newDom += '<span class="char">' + (text.innerText[i] == ...
true
484c0d5592314961e16e50403bf866094916f8c9
JavaScript
filbot/metro-status
/server.js
UTF-8
902
2.828125
3
[]
no_license
var express = require('express'); var rp = require('request-promise'); var app = express(); // set the port of our application // process.env.PORT lets the port be set by Heroku var port = process.env.PORT || 3000; function mean(numbers) { var total = 0; for (i = 0; i < numbers.length; i += 1) { total += num...
true
0c3e95e9c1caeab0aa6dd360cdcec6176b17295d
JavaScript
StephenJayYoung/PCSExercises
/closures.js
UTF-8
1,624
3.15625
3
[]
no_license
var storeOassword = function(passwd) { var verifyPassword = function(checkPasswd){ if(passwd === checkPasswd){ return true; } else { return false; } }; return verifyPassword } /////////////////////////////////////////////////////////// ///Iffy: an immedietly invoked function /// var factory = (function...
true
461033e232ec1f1c3cddf6ddb508d4caff9f0058
JavaScript
wcyjoyce/timer
/src/components/countdown.jsx
UTF-8
1,524
2.890625
3
[]
no_license
import React, { Component } from "react"; import timeFormat from "../constants/timeFormat.js"; class Countdown extends Component { state = { time: 0, started: false }; startCountdown = (event) => { if (!this.state.started && this.state.time > 0) { this.countdown = setInterval( () => this.state....
true
303082bf291f0613920958204426a41f3096cf27
JavaScript
jenshaw86/js-deli-counter-js-apply-000
/index.js
UTF-8
1,614
4.34375
4
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
// 1. The function, `takeANumber`, should accept two paramaters: the current line of people, along with the new person's name. The function should return a welcome message including the new person's position in line, such as `"Welcome, Ada. You are number 1 in line."`. function takeANumber(lineUp, name){ lineUp.pus...
true
15243fcb3dc8aca5fe364b319c22879ec78f87e1
JavaScript
LinaBell/Stem
/assets/scripts/timespanSelector.jsx
UTF-8
1,003
2.78125
3
[ "MIT" ]
permissive
var TimespanSelector = React.createClass({ getInitialState: function() { return{ timeSpan: [1 , 7, 30, 60 , 90, -1], selectedIndex: null } }, componentDidMount: function() { this.props.onChange(this.state.timeSpan[0]); }, setTimespan: function(index){ this.setState({ selectedIndex:...
true
cd396cf7235efa0075aa484b26bdd096eecadd19
JavaScript
mcube25/edabit3
/max number.js
UTF-8
140
2.609375
3
[]
no_license
function maxPossible(n1, n2) { n2 = [... ''+n2].sort((a,b)=>b-a); return +([... ''+n1].map(v => v < n2[0] ? n2.shift() : v).join('')); }
true
1760f5f4c7483907dd90acf3c971d66222d391ca
JavaScript
DevBaweja/Contribute
/src/ramda/Prototype unwindAll.txt
UTF-8
797
3.421875
3
[]
no_license
const keys = ['hobbies', 'colors']; const object = { name: 'alice', hobbies: ['Golf', 'Hacking'], colors: ['red', 'green'], }; const unwind = (key, object) => { return object[key].reduce((acc, item) => { acc.push({ ...object, [key]: item }); return acc; }, []); }; const unwindAll =...
true
a1c55007285989347bc3eff3516513da1fdfee6b
JavaScript
micwehrle/voila
/voila.js
UTF-8
5,642
2.625
3
[]
no_license
/*! * Voilà - v0.1.0 * (c) 2014 Nick Stakenburg * * MIT License */ (function($) { var _slice = Array.prototype.slice; function Voila(elements, callback) { if (!(this instanceof Voila)) { return new Voila(elements, callback); } this.options = $.type(callback) == 'function' ? { complete: ca...
true
422d1de6477523f38a877a79d61f07fdb445dc0e
JavaScript
tegacodes/Drawing-Seeing-Moving-with-Code
/students/brendanrooney/ecosystem/echo.location/public/biggie.js
UTF-8
1,219
3.046875
3
[]
no_license
//Biggie is pretty similar to the vehicle in terms of display, //but only has an echo for a body. //It provides a drone of the root note, C (or occasionally F/A), and acts as an attractor. function Biggie(m, x, y) { this.mass = m; this.position = createVector(x, y); this.r = m * 4; this.trans = random(100, 200...
true
dfc398c98af6199a2ba4435de67f24881b82f062
JavaScript
zenglinan/algorithm-note
/src/RegExp/-2hamp.js
UTF-8
443
3.390625
3
[]
no_license
/** * 以 - 为分隔符,将第二个起的非空单词首字母转为大写 * 示例:-webkit-border-image 转换后的结果为 webkitBorderImage * * 思路:先把匹配 -字母 的情况,最后再判断开头是否有 - * @param {String} sName */ function cssStyle2DomStyle(sName) { let reg = /(?!^)(-\w{1})/g sName = sName.replace(reg, s => s.slice(1).toUpperCase()) return sName[0] === '-' ? sName.slice(1...
true
0f02807c625c8336f42a72bc5ac8b80e775a87dc
JavaScript
DevendraSinghNagar/javascript-validation
/js/javascript.validation.js
UTF-8
3,823
3.15625
3
[]
no_license
//Form validation by javascript function formValidation() { //trim() is not support ie8 and below //So Use this function in head section of your webpage and then use trim() function. if(typeof String.prototype.trim !== 'function') { String.prototype.trim = function() { return this.replace(/^...
true
17d1beb7b95e026439f537e325dc555b5196755f
JavaScript
caitp/proposal-temporal
/polyfill/test/PlainDateTime/prototype/subtract/order-of-operations.js
UTF-8
1,889
2.921875
3
[ "BSD-3-Clause", "ISC" ]
permissive
// Copyright (C) 2020 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.plaindatetime.prototype.subtract includes: [compareArray.js] ---*/ const instance = new Temporal.PlainDateTime(2000, 5, 2, 12, 34, 56, 987, 654, 321); const expected ...
true
e290c5282b5ea604ac7893894bf215bcc7a597f1
JavaScript
gigmap/back-end
/src/rest/routes/songkick/controllers/mappers/makeAttendanceMap.js
UTF-8
285
2.578125
3
[ "MIT" ]
permissive
/** * @param {UserCalendarEntry[]} userEvents * @return {Object<string, string>} */ const makeAttendanceMap = (userEvents) => { return userEvents.reduce((acc, it) => { acc[it.event.id] = it.reason.attendance; return acc; }, {}); }; module.exports = {makeAttendanceMap};
true
52a8c7246239884a2d772ff3c0efeefdd0e88f31
JavaScript
kprasadbio/JavaScript
/04_If_Else.js
UTF-8
3,339
4
4
[]
no_license
// var year=2015 // if (year == 2015) { // console.log( "That's correct!" ); // console.log( "You're so smart!" ); // } // var year = prompt('In which year was ECMAScript-2015 specification published?', ''); // var year=2015 // if (year < 2015) { // console.log( 'Too early...' ); // } else if (year > 2015) { ...
true
ebed0e28df01259ba86dff242622e7a8135f3cb0
JavaScript
PqES/msdclcheck
/DCL+_AST_orquestracao/MsVenda/controllers/authenticationController.js
UTF-8
1,237
2.625
3
[]
no_license
// var configFile = '../config'; // var config = require(configFile); var config = require('../config'); var path = require('path'); var request = require('request'); console.log(request); /** * Recupera a página de login. * * @param {*} req requisição * @param {*} res resposta - página de login */ module.expo...
true
fec049fb483c8d252cbb37461e0970e864478d88
JavaScript
JeongJaeUk/ComputerApplication
/routes/exchange.js
UTF-8
32,288
2.6875
3
[]
no_license
//===== MySQL 데이터베이스를 사용할 수 있도록 하는 mysql 모듈 불러오기 =====// var mysql = require('mysql'); //===== MySQL 데이터베이스 연결 설정 =====// var pool = mysql.createPool({ connectionLimit : 10, host : 'localhost', user : 'root', password : 'cjswo465', database : 'computerapplication', debug : ...
true
76f80560c6528ac8580ef6fa975d484c6dd64b1a
JavaScript
zouzhenxing/0425
/1week/js/shopcaroop.js
UTF-8
3,381
2.75
3
[ "MIT" ]
permissive
(function( global,factory ){ factory(global); }( window,function( global ){ var fn = function( obj ){ var that = this; this.shopcar = obj; obj.get(0).ondragover = function( event ) { event.preventDefault(); } obj.get(0).ondrop = function( event ) { that.add(JSON.parse(event.dataTransfer.getData("obj"))); } ...
true
820ad8109d5a553ab33ce9fb7d283a8583cab4ed
JavaScript
myheartyourname/10.11
/10.11/js/index.js
UTF-8
1,548
2.703125
3
[]
no_license
/* * @Author: lenovo * @Date: 2017-10-10 12:04:32 * @Last Modified by: lenovo * @Last Modified time: 2017-10-11 19:56:18 */ window.onload=function(){ let tools=document.querySelectorAll('.tool'); let eraser1=document.querySelector('.eraser1'); let opacity=document.querySelector('.opacity'); let clip...
true
fbc99c84adbdc219db825bd8273fbb3a638810a9
JavaScript
georgehsin/meanBelt
/server/controllers/users.js
UTF-8
743
2.53125
3
[]
no_license
console.log('users controller'); var mongoose = require('mongoose') var Users = mongoose.model('Users'); function UsersController(){ this.index = function(req,res){ //your code here Users.find({}, function(err, results){ res.json(results); }) }; this.create = function(req,res){ //your cod...
true
f5e7852256b174a834d600b51f6adee9d94f43c6
JavaScript
aarushbhutra/plaguecraftbot
/commands/clear.js
UTF-8
617
2.671875
3
[]
no_license
module.exports = { name: 'clear', description: "Clears Text", async execute(messages, args) { if(!args[0]) return message.reply("Please enter the ammount of messages to clear!"); if(isNaN(args[0])) return message.reply("Please use a real number!"); if(args[0] > 100) return message.reply("...
true
733fafc7283b4c20f18769fde9a8700aa6e5e93c
JavaScript
dolare/chat-room-MEAN
/email/mail.js
UTF-8
1,177
2.71875
3
[]
no_license
var nodemailer = require('nodemailer'); var smtpTransport = require('nodemailer-smtp-transport'); var mail = {}; var transporter = nodemailer.createTransport((smtpTransport({ host: 'smtp.gmail.com', secureConnection: false, // use SSL port: 587, // port for secure SMTP auth: { user: ...
true
6802035f5b239e3941edd0ee9ee77aae97790414
JavaScript
f0xx21/-portfolio
/app.js
UTF-8
187
3.015625
3
[]
no_license
const slides = document.querySelectorAll('.slide') for(const slide of slides){ slide.addEventListener('click', () => { slide.classList.add('active') return false }) }
true
71bbb8add3d8062a0836daa9399b0c87d140aade
JavaScript
sxfad/well-go
/auto-sidebar.js
UTF-8
2,931
2.515625
3
[]
no_license
const fs = require('fs'); const path = require('path'); const chokidar = require('chokidar'); // 解析需要遍历的文件夹 const rootDir = 'docs'; // 输出文件 const outFileName = 'docs/_sidebar.md'; // 当前目录 let catalog = {}; // 每行目录数据 let catalogText = []; /** * 文件遍历添加 * @param filePath 需要遍历的文件路径 * @param level 当前文件展示级别 */ const f...
true
4c90cfafd99fe5f40d0e50d3a534b7807fe05b11
JavaScript
zjhch123/vis-project
/src/main/devlop/src/components/Situation/Radar/Radar.js
UTF-8
1,528
2.546875
3
[]
no_license
import React from 'react'; import style from './Radar.scss'; export default class Radar extends React.Component { constructor(props) { super(props) this.state = { isFind: false, count: 0 } } handlerClick() { if (!this.state.isFind) { return } this.setState({ isFi...
true
a7e5c9d03db4756056d354a8db926c5167aac137
JavaScript
zejunli/RoboPal
/src/Components/CardList.js
UTF-8
580
2.578125
3
[]
no_license
import React from 'react'; import Card from './Card'; // key is for the purpose of performance of DOM, when deleting one of them, // the react needs to know which to delete, and the key is like the ID of the item. // without the key, it'll have to re-render the entire list. const CardList = ({robots}) => { return ( ...
true
39bb385b1c3151eca12dd40fcd2bcb48785e0c15
JavaScript
diegov/time_tracking_visualisation
/js/drawing.js
UTF-8
7,332
2.6875
3
[]
no_license
diego = {}; diego.drawing = {}; //TODO: Move away String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length) str = padString + str; return str; }; String.prototype.rpad = function(padString, length) { var str = this; while (str.length < length) ...
true
47f99a0b08d6dc8d40cffc7be0642312bbb263e5
JavaScript
ShinkeKosuke/PGTEST_2018_1
/2018_second/test_2/test2.js
SHIFT_JIS
2,148
3.65625
4
[]
no_license
document.onkeydown = keydown ; // Cxgo document.onkeyup = keyup ; // Cxgo // 摜̕\WEړ var x = 400 ; // \W var pv = 50 ; // 1̈ړ // L[{[h̃tO@i1 : Ă / 0 : Ăj var left = 0 ; var right = 0 ; var image = ""; //摜zɊi[ var img_left = new Array(); var img_right = new Array(); img_right[0] = new Image(); img_right[0].src =...
true
af4e8002f4e17bcacccec4d4002bf76e43518112
JavaScript
Aleksey-Naumenko/js-practice
/lesson8/task2/index.js
UTF-8
235
3.28125
3
[]
no_license
function concatProps(obj) { let arrFromObj = []; for (let key in obj) { arrFromObj.push(obj[key]); } return arrFromObj; } console.log(concatProps({ name: 'John Doe', age: 17, interest: 'football' }));
true
b02c25232e4c1597e2fa0c21217da925099e21cc
JavaScript
hrach-g/aca
/index4.js
UTF-8
1,746
3.890625
4
[]
no_license
function ex_1(num1 , num2 ){ let numbers = []; for( let i = num1; i <= num2; i++){ if(i % 2 == 0){ numbers.push(i); } } console.log(numbers.toString()); } ex_1(19, 47); function ex_2 (array , letter){ let result = []; for(let i = 0; i < array.length; i++){ i...
true
768646a7425a80bed0b39c2772e71e763fd50b48
JavaScript
mats31/mani
/src/objects/Project.js
UTF-8
5,481
2.515625
3
[]
no_license
import { BufferGeometry, Color, DoubleSide, LinearFilter, Mesh, Object3D, PlaneGeometry, ShaderMaterial, Vector2 } from 'three'; const glslify = require('glslify'); import ExplodeModifier from 'utils/webgl/ExplodeModifier'; export default class Project extends Object3D { constructor( width, height, offset, texture...
true
e06d88ca9f2d3c2d6d054cd44e98fa0526a2b40f
JavaScript
MichaelPaddon/sevenbridges
/EllipticalLayout.js
UTF-8
1,723
2.8125
3
[ "BSD-3-Clause", "AFL-2.1" ]
permissive
dojo.provide("sevenbridges.EllipticalLayout"); dojo.require("sevenbridges.AnimatedLayout"); dojo.declare("sevenbridges.EllipticalLayout", sevenbridges.AnimatedLayout, { // summary: // Layout the vertices around an ellipse. // cx: Number // X coordinate of center (default 0). cx: 0, // cy: Number // Y coor...
true