sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
00c8c31177ec78a62f031e75ac515bab030415f756b35aeac371860f2cbcd2b7 | JavaScript | 543 | 21 | import "../core/noop";
var d3_geo_pathBoundsX0,
d3_geo_pathBoundsY0,
d3_geo_pathBoundsX1,
d3_geo_pathBoundsY1;
var d3_geo_pathBounds = {
point: d3_geo_pathBoundsPoint,
lineStart: d3_noop,
lineEnd: d3_noop,
polygonStart: d3_noop,
polygonEnd: d3_noop
};
function d3_geo_pathBoundsPoint(x, y) {
i... |
d453f7f41fac92e8d8a2925fc7eda06b6bc0dc5814993a2a20b768fe02330bac | JavaScript | 544 | 8 | export {fmin, minimizeConjugateGradient, bisect} from "./src/fmin";
export {intersectionArea, circleCircleIntersection, circleOverlap, circleArea,
distance, circleIntegral} from "./src/circleintersection";
export {venn, greedyLayout, scaleSolution, normalizeSolution, bestInitialLayout,
lossFunction, dis... |
c6cb3d9fd45cd998975ca045a5825bab5ed933e17ac7e50ce6936e978670b92f | JavaScript | 555 | 30 | var path = require("path");
var buildDir = path.resolve(__dirname, 'static/js');
module.exports = {
entry: {bundle: "./index.jsx"},
output: {
path: buildDir,
filename: "[name].js"
},
module: {
loaders: [
{
test: /\.css$/, loader: "style!css"
},
{
test: /\.js[x]?$/... |
6127ae2f62d83420a5c10ee8b8592fed294a0a5f06c8a590feab44d919659b0a | JavaScript | 557 | 27 | import "../core/class";
import "map";
d3.set = function(array) {
var set = new d3_Set;
if (array) for (var i = 0, n = array.length; i < n; ++i) set.add(array[i]);
return set;
};
function d3_Set() {
this._ = Object.create(null);
}
d3_class(d3_Set, {
has: d3_map_has,
add: function(key) {
this._[d3_map_... |
975c107632e2de639cdab1e11aa79c9378a648aa78b393aa99140938dd313f2d | JavaScript | 558 | 18 | var d3_nsXhtml = "http://www.w3.org/1999/xhtml";
var d3_nsPrefix = {
svg: "http://www.w3.org/2000/svg",
xhtml: d3_nsXhtml,
xlink: "http://www.w3.org/1999/xlink",
xml: "http://www.w3.org/XML/1998/namespace",
xmlns: "http://www.w3.org/2000/xmlns/"
};
d3.ns = {
prefix: d3_nsPrefix,
qualify: function(name) ... |
bb83f06894d5375db63a4d021b74f33386d32e50e413fe4abfb05ccde73e42a3 | JavaScript | 561 | 29 | import "../math/number";
d3.variance = function(array, f) {
var n = array.length,
m = 0,
a,
d,
s = 0,
i = -1,
j = 0;
if (arguments.length === 1) {
while (++i < n) {
if (d3_numeric(a = d3_number(array[i]))) {
d = a - m;
m += d / ++j;
s += d * (a ... |
c8077952ffdf7e3dce7f520c048ea634dd3164cbc60ed4f964d12152f3d9f1f6 | JavaScript | 561 | 25 | // Abstract azimuthal projection.
function d3_geo_azimuthal(scale, angle) {
function azimuthal(λ, φ) {
var cosλ = Math.cos(λ),
cosφ = Math.cos(φ),
k = scale(cosλ * cosφ);
return [
k * cosφ * Math.sin(λ),
k * Math.sin(φ)
];
}
azimuthal.invert = function(x, y) {
var ρ = ... |
2f1e1afea8263e2e159ebc4e0500417f2c697a828b5f6c358594a09ddab4619e | JavaScript | 569 | 21 | d3.extent = function(array, f) {
var i = -1,
n = array.length,
a,
b,
c;
if (arguments.length === 1) {
while (++i < n) if ((b = array[i]) != null && b >= b) { a = c = b; break; }
while (++i < n) if ((b = array[i]) != null) {
if (a > b) a = b;
if (c < b) c = b;
}
} el... |
510f2b8358fa1326a8f8263bdee29598463ad1d5f50d67af5746f5eae1e28c10 | JavaScript | 569 | 24 | import "../arrays/bisect";
function d3_scale_polylinear(domain, range, uninterpolate, interpolate) {
var u = [],
i = [],
j = 0,
k = Math.min(domain.length, range.length) - 1;
// Handle descending domains.
if (domain[k] < domain[0]) {
domain = domain.slice().reverse();
range = range.sli... |
4842bc6d62c334890857a77ea421cea770a58ad866f3ee3b46516e455f55c5a6 | JavaScript | 579 | 22 | import "../selection/filter";
import "transition";
d3_transitionPrototype.filter = function(filter) {
var subgroups = [],
subgroup,
group,
node;
if (typeof filter !== "function") filter = d3_selection_filter(filter);
for (var j = 0, m = this.length; j < m; j++) {
subgroups.push(subgroup =... |
4e11094301e4f340a41a501c8481cfeeaa80be52b1e172083fd3b4952c0b52bf | JavaScript | 581 | 13 | import "../math/trigonometry";
import "geo";
// Length returned in radians; multiply by radius for distance.
d3.geo.distance = function(a, b) {
var Δλ = (b[0] - a[0]) * d3_radians,
φ0 = a[1] * d3_radians, φ1 = b[1] * d3_radians,
sinΔλ = Math.sin(Δλ), cosΔλ = Math.cos(Δλ),
sinφ0 = Math.sin(φ0), cosφ... |
f15698271e649a5f34b881ec90345b06a673d5b1777df45979aeb4bc8bcf78e0 | JavaScript | 597 | 21 | import "interval";
import "time";
import "year";
d3_time.day = d3_time_interval(function(date) {
var day = new d3_date(2000, 0);
day.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());
return day;
}, function(date, offset) {
date.setDate(date.getDate() + offset);
}, function(date) {
return date... |
321b4da20ae702121c11367cc45de0b1c9d10ea7b8340ab606d478a1d385c469 | JavaScript | 599 | 16 | // Copies a variable number of methods from source to target.
d3.rebind = function(target, source) {
var i = 1, n = arguments.length, method;
while (++i < n) target[method = arguments[i]] = d3_rebind(target, source, source[method]);
return target;
};
// Method is assumed to be a standard D3 getter-setter:
// If ... |
cf8c4bd4e2fffc81759d5825cb7c6a843dcc170a239db0fb0f95228a82441f07 | JavaScript | 599 | 27 | (function(){science.lin = {};
/**
* Solves tridiagonal systems of linear equations.
*
* Source: http://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm
*
* @param {number[]} a
* @param {number[]} b
* @param {number[]} c
* @param {number[]} d
* @param {number[]} x
* @param {number} n
*/
science.lin.tridag =... |
382cd19225bbc2a835514ea9dc1769a578ec8e86b5ba2ec20b645e2c22731fc0 | JavaScript | 609 | 16 | import "locale";
var d3_locale_frCA = d3.locale({
decimal: ",",
thousands: "\xa0",
grouping: [3],
currency: ["", "$"],
dateTime: "%a %e %b %Y %X",
date: "%Y-%m-%d",
time: "%H:%M:%S",
periods: ["", ""],
days: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],
shortDays: ["dim... |
20484d59cc9eb852af57999f021d5fd35d81f84b7ddc9dfba2f6608ed88ca75d | JavaScript | 610 | 16 | import "locale";
var d3_locale_enCA = d3.locale({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["$", ""],
dateTime: "%a %b %e %X %Y",
date: "%Y-%m-%d",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
shortDays:... |
7c12a363e1f6d7d1c3a08d8bba166fa6f6d052ba132b54e5edee134a99800173 | JavaScript | 610 | 16 | import "locale";
var d3_locale_enUS = d3.locale({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["$", ""],
dateTime: "%a %b %e %X %Y",
date: "%m/%d/%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
shortDays:... |
2bc56fb494c424da817d7993bf44b51ed46012711af9ab5810d2289ad3d35987 | JavaScript | 611 | 16 | import "locale";
var d3_locale_enGB = d3.locale({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["£", ""],
dateTime: "%a %e %b %X %Y",
date: "%d/%m/%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
shortDays:... |
1e816929dc2b9061304840a49e10d049eaa1e88adc8801d2f6de69df97e2a2fa | JavaScript | 618 | 16 | import "locale";
var d3_locale_svSE = d3.locale({
decimal: ",",
thousands: "\xa0",
grouping: [3],
currency: ["", "SEK"],
dateTime: "%A den %d %B %Y %X",
date: "%Y-%m-%d",
time: "%H:%M:%S",
periods: ["fm", "em"],
days: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"],
shortDay... |
56d5d8b8fac37d8fee336efc6973d6a660351ef89b4047b2e563539e71364601 | JavaScript | 618 | 30 | import "../core/identity";
function d3_scale_nice(domain, nice) {
var i0 = 0,
i1 = domain.length - 1,
x0 = domain[i0],
x1 = domain[i1],
dx;
if (x1 < x0) {
dx = i0, i0 = i1, i1 = dx;
dx = x0, x0 = x1, x1 = dx;
}
domain[i0] = nice.floor(x0);
domain[i1] = nice.ceil(x1);
retur... |
e027149478a0302ad7ce71d0e29c7afeb97e6853c565fcf928239a570386827c | JavaScript | 618 | 16 | import "locale";
var d3_locale_ptBR = d3.locale({
decimal: ',',
thousands: '.',
grouping: [3],
currency: ['R$', ''],
dateTime: '%A, %e de %B de %Y. %X',
date: '%d/%m/%Y',
time: '%H:%M:%S',
periods: ['AM', 'PM'],
days: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],
shortDays... |
7dc7350129baa96c3300f850fbdbbbcb5be9acd798ccddb9fc7f572df8a99d89 | JavaScript | 620 | 16 | import "locale";
var d3_locale_nlNL = d3.locale({
decimal: ",",
thousands: ".",
grouping: [3],
currency: ["€ ", ""],
dateTime: "%a %e %B %Y %T",
date: "%d-%m-%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"], // unused
days: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"],... |
1d90330fdf3ff9352b7ba16f1c029cf95e2bde6a2bb6f900f410d17648a9240f | JavaScript | 624 | 16 | import "locale";
var d3_locale_esES = d3.locale({
decimal: ",",
thousands: ".",
grouping: [3],
currency: ["", " €"],
dateTime: "%A, %e de %B de %Y, %X",
date: "%d/%m/%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"],
short... |
8059a8aa267ed39b59d9773de349700e1a3cd06904b8798b23d37b0aeb945c23 | JavaScript | 624 | 16 | import "locale";
var d3_locale_deCH = d3.locale({
decimal: ",",
thousands: "'",
grouping: [3],
currency: ["", " CHF"],
dateTime: "%A, der %e. %B %Y, %X",
date: "%d.%m.%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"], // unused
days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "... |
b1e23fee88d27bae18130cdece7cb3ce0e4ea3689d6c4de258d633a6484dfda3 | JavaScript | 624 | 16 | import "locale";
var d3_locale_deDE = d3.locale({
decimal: ",",
thousands: ".",
grouping: [3],
currency: ["", " €"],
dateTime: "%A, der %e. %B %Y, %X",
date: "%d.%m.%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"], // unused
days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Sa... |
ccb67a1f3295c4b35858279545ba6792bc886e0dea6a8c566ff3bbc1d8519d8f | JavaScript | 625 | 16 | import "locale";
var d3_locale_koKR = d3.locale({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["₩", ""],
dateTime: "%Y/%m/%d %a %X",
date: "%Y/%m/%d",
time: "%H:%M:%S",
periods: ["오전", "오후"],
days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"],
shortDays: ["일", "월", "화", "수", "목", "금... |
d1c4bf463b0cb6bb49b44b473461a1ca5d24da72a865bfb41a3c93f695993c97 | JavaScript | 634 | 16 | import "locale";
var d3_locale_caES = d3.locale({
decimal: ",",
thousands: ".",
grouping: [3],
currency: ["", " €"],
dateTime: "%A, %e de %B de %Y, %X",
date: "%d/%m/%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"],
... |
18c73478151d94fa0d66300c781a7e5629478ec143ac426061d7de475958bbfa | JavaScript | 636 | 16 | import "locale";
var d3_locale_itIT = d3.locale({
decimal: ",",
thousands: ".",
grouping: [3],
currency: ["€", ""],
dateTime: "%A %e %B %Y, %X",
date: "%d/%m/%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"], // unused
days: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
... |
1587a30919ac7a30adb099fc39d9b3efefcca6e6f3de7d0a84fc921234896b0d | JavaScript | 641 | 26 | import "../math/abs";
d3.range = function(start, stop, step) {
if (arguments.length < 3) {
step = 1;
if (arguments.length < 2) {
stop = start;
start = 0;
}
}
if ((stop - start) / step === Infinity) throw new Error("infinite range");
var range = [],
k = d3_range_integerScale(abs(s... |
032004b1edd0719ee2beda336a9e33ea1db58e9da8e8adc03e5dc9fcb9683848 | JavaScript | 643 | 16 | import "locale";
var d3_locale_jaJP = d3.locale({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["", "円"],
dateTime: "%Y %b %e %a %X",
date: "%Y/%m/%d",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"],
shortDays: ["日", "月", "火", "水", "木", "金... |
207138245950128b5a599338a4c368a044194cf27bacf59df7c6831beaed2ff2 | JavaScript | 650 | 16 | import "locale";
var d3_locale_frFR = d3.locale({
decimal: ",",
thousands: ".",
grouping: [3],
currency: ["", " €"],
dateTime: "%A, le %e %B %Y, %X",
date: "%d/%m/%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"], // unused
days: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],
... |
27526fcb168d0000a7168b06aa57eebda0cf99a4b81aaacea1c7d13f9aeb90c4 | JavaScript | 652 | 27 | import "../math/trigonometry";
import "arc";
import "diagonal";
import "svg";
d3.svg.diagonal.radial = function() {
var diagonal = d3.svg.diagonal(),
projection = d3_svg_diagonalProjection,
projection_ = diagonal.projection;
diagonal.projection = function(x) {
return arguments.length
? pro... |
2cdae6a33c0c7db64c926be7414ff5c61289d75a160afdcb1a3e292d0d1e5bed | JavaScript | 653 | 33 | import "linear";
import "scale";
d3.scale.identity = function() {
return d3_scale_identity([0, 1]);
};
function d3_scale_identity(domain) {
function identity(x) { return +x; }
identity.invert = identity;
identity.domain = identity.range = function(x) {
if (!arguments.length) return domain;
domain =... |
35e24fcc6de62330b87121dfc9230687168a42a19946f59b372f2b46339c8de3 | JavaScript | 662 | 31 | /**
* jspsych-call-function
* plugin for calling an arbitrary function during a jspsych experiment
* Josh de Leeuw
*
* documentation: docs.jspsych.org
*
**/
jsPsych.plugins['call-function'] = (function() {
var plugin = {};
plugin.trial = function(display_element, trial) {
// one of the only plugins w... |
f5d71b32941da01139e1cefde6b15cb88a522f3d82c95239f1179e611670b9b1 | JavaScript | 669 | 16 | import "locale";
var d3_locale_huHU = d3.locale({
decimal: ",",
thousands: "\xa0",
grouping: [3],
currency: ["", "\xa0Ft"],
dateTime: "%Y. %B %-e., %A %X",
date: "%Y. %m. %d.",
time: "%H:%M:%S",
periods: ["de.", "du."], // unused
days: ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "s... |
1db978ecdafc2d7fb653fae89228a4d9f81485a9bf9228cb2edeee1d49d21831 | JavaScript | 676 | 21 | import "../core/subclass";
import "selection";
function d3_selection_enter(selection) {
d3_subclass(selection, d3_selection_enterPrototype);
return selection;
}
var d3_selection_enterPrototype = [];
d3.selection.enter = d3_selection_enter;
d3.selection.enter.prototype = d3_selection_enterPrototype;
d3_selection... |
b45ecb20c3ca1393084ec7ac3eaba9e1599e8d36de60ae3d5ea2eabf19d7abe6 | JavaScript | 676 | 28 | import "selection";
d3_selectionPrototype.filter = function(filter) {
var subgroups = [],
subgroup,
group,
node;
if (typeof filter !== "function") filter = d3_selection_filter(filter);
for (var j = 0, m = this.length; j < m; j++) {
subgroups.push(subgroup = []);
subgroup.parentNode = ... |
ec03d13969f8316e40693304cbad080b730183ebe31f4cffa1ba33a31f0dba47 | JavaScript | 678 | 27 | import "selection";
import "enter";
d3_selection_enterPrototype.select = function(selector) {
var subgroups = [],
subgroup,
subnode,
upgroup,
group,
node;
for (var j = -1, m = this.length; ++j < m;) {
upgroup = (group = this[j]).update;
subgroups.push(subgroup = []);
subg... |
27f70214a1a99bd8debf8e86fe3f4288542c2b34e922b51a54fcd2a7106272d1 | JavaScript | 681 | 36 | import "../arrays/bisect";
import "scale";
d3.scale.threshold = function() {
return d3_scale_threshold([0.5], [0, 1]);
};
function d3_scale_threshold(domain, range) {
function scale(x) {
if (x <= x) return range[d3.bisect(domain, x)];
}
scale.domain = function(_) {
if (!arguments.length) return doma... |
42072ee20ee415dd2ea7ebe8d286c1e1afa859e186fb94c990f6f8b9d827f7b1 | JavaScript | 681 | 16 | import "locale";
var d3_locale_fiFI = d3.locale({
decimal: ",",
thousands: "\xa0",
grouping: [3],
currency: ["", "\xa0€"],
dateTime: "%A, %-d. %Bta %Y klo %X",
date: "%-d.%-m.%Y",
time: "%H:%M:%S",
periods: ["a.m.", "p.m."],
days: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perja... |
d75408984970c617cb3aaa9530ccaf865bf99ba2a7894bca96cb74a55f21e320 | JavaScript | 683 | 21 | // import "../transition/transition";
import "selection";
d3_selectionPrototype.transition = function(name) {
var id = d3_transitionInheritId || ++d3_transitionId,
ns = d3_transitionNamespace(name),
subgroups = [],
subgroup,
node,
transition = d3_transitionInherit || {time: Date.now(), ... |
0d2ded30fcb9fe3096c584988f843a24d405fe5fa0c25c28687cd2199c52d71d | JavaScript | 686 | 16 | c3_chart_fn.transform = function (type, targetIds) {
var $$ = this.internal,
options = ['pie', 'donut'].indexOf(type) >= 0 ? {withTransform: true} : null;
$$.transformTo(targetIds, type, options);
};
c3_chart_internal_fn.transformTo = function (targetIds, type, optionsForRedraw) {
var $$ = this,
... |
c7597f0d85e4ce68407d8c035ab96369db481215ab4c1f8c59bd2a282b5df014 | JavaScript | 686 | 27 | import "../core/array";
import "selection";
d3_selectionPrototype.selectAll = function(selector) {
var subgroups = [],
subgroup,
node;
selector = d3_selection_selectorAll(selector);
for (var j = -1, m = this.length; ++j < m;) {
for (var group = this[j], i = -1, n = group.length; ++i < n;) {
... |
057da146f3218bd1b6fd2d9686380d720ea34ff45779d6693f3b9e2c338aa676 | JavaScript | 693 | 22 | c3_chart_fn.zoom = function (domain) {
var $$ = this.internal;
if (domain) {
if ($$.isTimeSeries()) {
domain = domain.map(function (x) { return $$.parseDate(x); });
}
$$.brush.extent(domain);
$$.redraw({withUpdateXDomain: true, withY: $$.config.zoom_rescale});
... |
796d3de762ed52efb5e725909403b32a751495e060b5a7270ca33e3e074a94dd | JavaScript | 702 | 16 | import "locale";
var d3_locale_zhCN = d3.locale({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["¥", ""],
dateTime: "%x %A %X",
date: "%Y年%-m月%-d日",
time: "%H:%M:%S",
periods: ["上午", "下午"],
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
shortDays: ["周日", "周一", "周二", "周三", "周四", ... |
7d17dcab09b1f1aa05d52432773acd8ae950a783ae80073a6365b1ee86984724 | JavaScript | 703 | 33 | import "geo";
import "area";
import "bounds";
import "centroid";
import "circle";
import "distance";
import "graticule";
import "greatArc";
import "interpolate";
import "length";
import "path";
import "path-area";
import "path-buffer";
import "path-centroid";
import "path-context";
import "projection";
import "rotation... |
2445888dad80c8a7037d1cf7da4bf8dc234de45dab9afa738260e6693522deaa | JavaScript | 713 | 26 | import "../color/color";
import "../color/rgb";
import "rgb";
import "object";
import "array";
import "number";
import "string";
d3.interpolate = d3_interpolate;
function d3_interpolate(a, b) {
var i = d3.interpolators.length, f;
while (--i >= 0 && !(f = d3.interpolators[i](a, b)));
return f;
}
d3.interpolator... |
0deffb7b785e941c2136b43d4ca75bf2e908b938df2b73ed1556372634bb3d8e | JavaScript | 714 | 25 | import "transition";
d3_transitionPrototype.transition = function() {
var id0 = this.id,
id1 = ++d3_transitionId,
ns = this.namespace,
subgroups = [],
subgroup,
group,
node,
transition;
for (var j = 0, m = this.length; j < m; j++) {
subgroups.push(subgroup = []);
... |
48fdcd7f55f6b0b148a0ad309ceefed07f4a43d290dcc7a2842a834e5964b64e | JavaScript | 734 | 16 | import "locale";
var d3_locale_heIL = d3.locale({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["₪", ""],
dateTime: "%A, %e ב%B %Y %X",
date: "%d.%m.%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"],
shortDays: ["א׳", "ב׳", "ג׳"... |
51af50a3406789da23c0fe64a5087c6107eaa4ebe88cfcbef646f50943edbf30 | JavaScript | 736 | 24 | import "precision";
import "round";
import "../math/abs";
var d3_formatPrefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(d3_formatPrefix);
d3.formatPrefix = function(value, precision) {
var i = 0;
if (value = +value) {
if (value < 0) value *= -1;
if (precision) value = d3... |
46ebefc73ecec987517924c0fa723852f663fd56b314ff72f2f66856b5f04837 | JavaScript | 755 | 33 | import "../math/trigonometry";
import "geo";
import "conic";
import "projection";
function d3_geo_conicEqualArea(φ0, φ1) {
var sinφ0 = Math.sin(φ0),
n = (sinφ0 + Math.sin(φ1)) / 2,
C = 1 + sinφ0 * (2 * n - sinφ0),
ρ0 = Math.sqrt(C) / n;
function forward(λ, φ) {
var ρ = Math.sqrt(C - 2 * n * ... |
471cf4f5784fd2fb787e24fa80c36cd981d744fb0a62fa40d5fd370fa60f3efc | JavaScript | 767 | 17 | import "../selection/each";
import "transition";
d3_transitionPrototype.tween = function(name, tween) {
var id = this.id, ns = this.namespace;
if (arguments.length < 2) return this.node()[ns][id].tween.get(name);
return d3_selection_each(this, tween == null
? function(node) { node[ns][id].tween.remove(na... |
8965d8d7f8cc5a572eb03e50247b8dd9957090a3f7fdf127f8b331d2041bc503 | JavaScript | 771 | 28 | import "../selection/select";
import "transition";
d3_transitionPrototype.select = function(selector) {
var id = this.id,
ns = this.namespace,
subgroups = [],
subgroup,
subnode,
node;
selector = d3_selection_selector(selector);
for (var j = -1, m = this.length; ++j < m;) {
sub... |
01d734e560a08f411b5ca8b96ca6796132963f2007a503ac63f39abf17cc8604 | JavaScript | 772 | 28 | import "../core/ns";
import "selection";
d3_selectionPrototype.append = function(name) {
name = d3_selection_creator(name);
return this.select(function() {
return this.appendChild(name.apply(this, arguments));
});
};
function d3_selection_creator(name) {
function create() {
var document = this.ownerD... |
46191dd33d0ed351196fdfc8fe5e9e4c01c85803593f0f6aeac8a139347b8df7 | JavaScript | 791 | 34 | d3.random = {
normal: function(µ, σ) {
var n = arguments.length;
if (n < 2) σ = 1;
if (n < 1) µ = 0;
return function() {
var x, y, r;
do {
x = Math.random() * 2 - 1;
y = Math.random() * 2 - 1;
r = x * x + y * y;
} while (!r || r > 1);
return µ + σ * x * ... |
906b4126b5a5d5d94d7d1bc61b0e24e935ddef93039c1473ff958d5a76e62f6c | JavaScript | 794 | 16 | import "locale";
var d3_locale_ruRU = d3.locale({
decimal: ",",
thousands: "\xa0",
grouping: [3],
currency: ["", " руб."],
dateTime: "%A, %e %B %Y г. %X",
date: "%d.%m.%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота... |
3188887db702fbe375a7317d2709d54ea1649947919c1e8ffd50a370ae697402 | JavaScript | 795 | 16 | import "locale";
var d3_locale_mkMK = d3.locale({
decimal: ",",
thousands: ".",
grouping: [3],
currency: ["", " ден."],
dateTime: "%A, %e %B %Y г. %X",
date: "%d.%m.%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["недела", "понеделник", "вторник", "среда", "четврток", "петок", "сабота"],
short... |
a189417ba235cd347d669fbcc6b4d311359a002c9fa4647c930012c76a235a4f | JavaScript | 796 | 26 | import "../selection/each";
import "transition";
d3_transitionPrototype.each = function(type, listener) {
var id = this.id, ns = this.namespace;
if (arguments.length < 2) {
var inherit = d3_transitionInherit,
inheritId = d3_transitionInheritId;
try {
d3_transitionInheritId = id;
d3_sele... |
a870f0d76b8671d22e8b1edca708b4161d8509c31ff08ae2d6663129098c83d4 | JavaScript | 798 | 27 | c3_chart_fn.resize = function (size) {
var $$ = this.internal, config = $$.config;
config.size_width = size ? size.width : null;
config.size_height = size ? size.height : null;
this.flush();
};
c3_chart_fn.flush = function () {
var $$ = this.internal;
$$.updateAndRedraw({withLegend: true, withT... |
e0c1433e7a12bfdf2c3c3be2412928a7dfed27025c5ae1805cf65081ec46aea4 | JavaScript | 800 | 16 | import "locale";
var d3_locale_plPL = d3.locale({
decimal: ",",
thousands: ".",
grouping: [3],
currency: ["", "zł"],
dateTime: "%A, %e %B %Y, %X",
date: "%d/%m/%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"], // unused
days: ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota"... |
6e924a5ce2ae291ed2ca0a82600149c66850343268c0a1d6fdaee52e04106269 | JavaScript | 801 | 1 | (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79466,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"default",{enumerable:!0,get:function(){return d}});let r=e.r(41705),l=e.r(91398),u=r._(e.r(91788)),n=e.r(... |
d3689402c34699aa43cd3b9c9971e432176ccea5e1c5e0fe86abf7df5ee9d0e6 | JavaScript | 813 | 27 | // import "../transition/transition";
import "selection";
// TODO Interrupt transitions for all namespaces?
d3_selectionPrototype.interrupt = function(name) {
return this.each(name == null
? d3_selection_interrupt
: d3_selection_interruptNS(d3_transitionNamespace(name)));
};
var d3_selection_interrupt =... |
3d7110f1ba551714eae40930dbe9ffb2577bdee3143bee97e5ab3d5e578e9d55 | JavaScript | 817 | 36 | import "../math/abs";
import "../math/trigonometry";
import "conic";
import "equirectangular";
import "geo";
import "projection";
function d3_geo_conicEquidistant(φ0, φ1) {
var cosφ0 = Math.cos(φ0),
n = φ0 === φ1 ? Math.sin(φ0) : (cosφ0 - Math.cos(φ1)) / (φ1 - φ0),
G = cosφ0 / n + φ0;
if (abs(n) < ε) ... |
3e6c4ff087b6ec44309e6ad2d0cce9e6d04e75da68dce483abb7b6d9bc65afde | JavaScript | 823 | 31 | import "../math/trigonometry";
import "geo";
import "mercator";
function d3_geo_transverseMercator(λ, φ) {
return [Math.log(Math.tan(π / 4 + φ / 2)), -λ];
}
d3_geo_transverseMercator.invert = function(x, y) {
return [-y, 2 * Math.atan(Math.exp(x)) - halfπ];
};
(d3.geo.transverseMercator = function() {
var proj... |
b328b79c521cd66adac0e14ae3574168fb866136568cbd166fa06a6b636f7ad3 | JavaScript | 825 | 32 | import "selection";
d3_selectionPrototype.select = function(selector) {
var subgroups = [],
subgroup,
subnode,
group,
node;
selector = d3_selection_selector(selector);
for (var j = -1, m = this.length; ++j < m;) {
subgroups.push(subgroup = []);
subgroup.parentNode = (group = thi... |
3f8e322eecf4b60d0413022ee8f9ee8b34e5c5fad198300ece45036f4f4d0f81 | JavaScript | 843 | 32 | /*
* Example plugin template
*/
jsPsych.plugins["PLUGIN-NAME"] = (function() {
var plugin = {};
plugin.trial = function(display_element, trial) {
// set default values for parameters
trial.parameter = trial.parameter || 'default value';
// allow variables as functions
// this allows any trial... |
e9921cb49375a0eef021ba3d7aaca0ec55bd1f22e3e8c63dfd2af001b4335b22 | JavaScript | 843 | 31 | import "../selection/selectAll";
import "transition";
d3_transitionPrototype.selectAll = function(selector) {
var id = this.id,
ns = this.namespace,
subgroups = [],
subgroup,
subnodes,
node,
subnode,
transition;
selector = d3_selection_selectorAll(selector);
for (var j... |
dab224c768e58e5f95ba14ddcf1def57de5a381fdf61176386ec5239bd977117 | JavaScript | 856 | 25 | import "../core/true";
import "../scale/linear";
import "scale";
import "format-utc";
var d3_time_scaleUtcMethods = d3_time_scaleLocalMethods.map(function(m) {
return [m[0].utc, m[1]];
});
var d3_time_scaleUtcFormat = d3_time_formatUtc.multi([
[".%L", function(d) { return d.getUTCMilliseconds(); }],
[":%S", fun... |
394c8cca3460ac7410dd02ae7828b686382f01dbe90b293d386f0ef3611a3a44 | JavaScript | 869 | 44 | import "scale";
d3.scale.quantize = function() {
return d3_scale_quantize(0, 1, [0, 1]);
};
function d3_scale_quantize(x0, x1, range) {
var kx, i;
function scale(x) {
return range[Math.max(0, Math.min(i, Math.floor(kx * (x - x0))))];
}
function rescale() {
kx = range.length / (x1 - x0);
i = ra... |
81f85741d0d177bf24bae4efcd5fef075a8a67f0b66048888d0266cdde69039a | JavaScript | 889 | 47 | // TODO
// cross and scale return new vectors,
// whereas add and normalize operate in-place
function d3_geo_cartesian(spherical) {
var λ = spherical[0],
φ = spherical[1],
cosφ = Math.cos(φ);
return [
cosφ * Math.cos(λ),
cosφ * Math.sin(λ),
Math.sin(φ)
];
}
function d3_geo_cartesianDot(a... |
67ff5cec983be65ea3be1f9526f81efc2f6ceb90529cbab2b69637f44beb0647 | JavaScript | 898 | 36 | import "ascending";
function d3_bisector(compare) {
return {
left: function(a, x, lo, hi) {
if (arguments.length < 3) lo = 0;
if (arguments.length < 4) hi = a.length;
while (lo < hi) {
var mid = lo + hi >>> 1;
if (compare(a[mid], x) < 0) lo = mid + 1;
else hi = mid;
... |
e24a0fbd02c761c9165fd2a97266bfa74518bfca02aeca0208a0e1bdd5f0bba6 | JavaScript | 937 | 25 | // PhantomJS doesn't have support for Function.prototype.bind, which has caused confusion. Use
// this polyfill to avoid the confusion.
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Polyfill
if (!Function.prototype.bind) {
Function.prototype.bind = function(oThis) ... |
4a36a7068374e83b1dd49e49eb3cdfe69942c8dd642aecc0e0df83b8eb08bbfe | JavaScript | 985 | 43 | import "../core/functor";
import "../core/source";
import "../core/target";
import "svg";
d3.svg.diagonal = function() {
var source = d3_source,
target = d3_target,
projection = d3_svg_diagonalProjection;
function diagonal(d, i) {
var p0 = source.call(this, d, i),
p3 = target.call(this, d,... |
4cdb90bc1273e4113cc081a03ead80f3316dd9eaf692a1588d7c7fde197d9fc5 | JavaScript | 987 | 23 | import "../core/document";
// Redefine style.setProperty et al. if the browser doesn’t coerce arguments.
if (d3_document) {
try {
d3_document.createElement("DIV").style.setProperty("opacity", 0, "");
} catch (error) {
var d3_element_prototype = this.Element.prototype,
d3_element_setAttribute = d3_e... |
5671107f47e2a423bd150c0101c7464e7656ddf8002e999621dac6c01e2e2f36 | JavaScript | 990 | 34 | // Adds floating point numbers with twice the normal precision.
// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and
// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)
// 305–363 (1997).
// Code adapted from GeographicLib by Charles F. F. Karney,
// http://geographicl... |
2f567284e1e32a91a5841b86cc13025a4ac5da47d1acd4ca31564825f9918736 | JavaScript | 1,000 | 27 | c3_chart_fn.data = function (targetIds) {
var targets = this.internal.data.targets;
return typeof targetIds === 'undefined' ? targets : targets.filter(function (t) {
return [].concat(targetIds).indexOf(t.id) >= 0;
});
};
c3_chart_fn.data.shown = function (targetIds) {
return this.internal.filter... |
14461c1e06a5372c9e35d2a2c18eb94765f0c4d0eb974ce96b11da0190273915 | JavaScript | 1,007 | 31 | import "day";
import "interval";
import "time";
import "year";
["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"].forEach(function(day, i) {
i = 7 - i;
var interval = d3_time[day] = d3_time_interval(function(date) {
(date = d3_time.day(date)).setDate(date.getDate() - (date.getDay()... |
4b52ef5d36ba40a20b54439f02dd9ba4ec0c9255500d7aebb2980736eff1900d | JavaScript | 1,010 | 2 | /*! Chained 1.0.0 - MIT license - Copyright 2010-2014 Mika Tuupola */
!function(a,b){"use strict";a.fn.chained=function(c){return this.each(function(){function d(){var d=!0,g=a("option:selected",e).val();a(e).html(f.html());var h="";a(c).each(function(){var c=a("option:selected",this).val();c&&(h.length>0&&(h+=b.Zepto?... |
7aa21b98ad1b042428ec59cb46faa054cc4d0baa1961b40b1922cd067aa2e2e2 | JavaScript | 1,023 | 36 | import "geo";
import "../core/array";
d3.geo.transform = function(methods) {
return {
stream: function(stream) {
var transform = new d3_geo_transform(stream);
for (var k in methods) transform[k] = methods[k];
return transform;
}
};
};
function d3_geo_transform(stream) {
this.stream = s... |
12e506c7a8d878b7a5e8f8c300f09bc1959b5fd5f1acf62d2d75567c9b8ec435 | JavaScript | 1,027 | 49 | import "../core/noop";
import "../math/trigonometry";
function d3_geo_pathContext(context) {
var pointRadius = 4.5;
var stream = {
point: point,
// While inside a line, override point to moveTo then lineTo.
lineStart: function() { stream.point = pointLineStart; },
lineEnd: lineEnd,
// While ... |
02b722f9fe912f1660b94b14458665297e834f546aafeb2b5e8de864946e9f1d | JavaScript | 1,032 | 34 | import "../math/trigonometry";
import "color";
import "lab";
import "rgb";
d3.hcl = d3_hcl;
function d3_hcl(h, c, l) {
return this instanceof d3_hcl ? void (this.h = +h, this.c = +c, this.l = +l)
: arguments.length < 2 ? (h instanceof d3_hcl ? new d3_hcl(h.h, h.c, h.l)
: (h instanceof d3_lab ? d3_lab_hc... |
4e5f2adbc5188472a8263b22ac4181d0064fb811b52f192462c7246398958cde | JavaScript | 1,041 | 41 | import "../core/noop";
import "../math/abs";
// TODO Unify this code with d3.geom.polygon area?
var d3_geo_pathAreaSum, d3_geo_pathAreaPolygon, d3_geo_pathArea = {
point: d3_noop,
lineStart: d3_noop,
lineEnd: d3_noop,
// Only count area for polygon rings.
polygonStart: function() {
d3_geo_pathAreaPolyg... |
9932359693b36fd422453fcca0ddc1678101e93633eaa13654c103844d39c4d5 | JavaScript | 1,042 | 42 | import "../core/source";
import "../core/target";
import "geo";
import "distance";
// @deprecated use {type: "LineString"} or d3.geo.distance instead.
d3.geo.greatArc = function() {
var source = d3_source, source_,
target = d3_target, target_;
function greatArc() {
return {type: "LineString", coordinate... |
ae16583a4c99532d14871ebe646a99afa7e4d911f3fb959bc591e562d64feb00 | JavaScript | 1,043 | 54 | var path = require("path");
// To build use `webpack --mode production` then copy bundle.js to resources
var buildDir = path.resolve(__dirname, "build");
var moduleConfig = {
rules: [
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
},
{
test: /\.js[x]?$/,
exclude: /(node_mo... |
e35517c78a6e63045520d3913124a9e51e0f189c895904904b530978f6437b1f | JavaScript | 1,044 | 31 | c3_chart_fn.xgrids = function (grids) {
var $$ = this.internal, config = $$.config;
if (! grids) { return config.grid_x_lines; }
config.grid_x_lines = grids;
$$.redrawWithoutRescale();
return config.grid_x_lines;
};
c3_chart_fn.xgrids.add = function (grids) {
var $$ = this.internal;
return t... |
3080afa1b829da2931847b818368c883bf3b316dc691a42472f256668f5a4ebb | JavaScript | 1,054 | 44 | var ε = 1e-6,
ε2 = ε * ε,
π = Math.PI,
τ = 2 * π,
τε = τ - ε,
halfπ = π / 2,
d3_radians = π / 180,
d3_degrees = 180 / π;
function d3_sgn(x) {
return x > 0 ? 1 : x < 0 ? -1 : 0;
}
// Returns the 2D cross product of AB and AC vectors, i.e., the z-component of
// the 3D cross product in a q... |
1797a7af19b21a0d9bf2e41569b6d5d64e5af85b4828ca363c4360e0550d7f30 | JavaScript | 1,055 | 39 | import "../math/abs";
import "../math/trigonometry";
import "conic";
import "geo";
import "projection";
function d3_geo_conicConformal(φ0, φ1) {
var cosφ0 = Math.cos(φ0),
t = function(φ) { return Math.tan(π / 4 + φ / 2); },
n = φ0 === φ1 ? Math.sin(φ0) : Math.log(cosφ0 / Math.cos(φ1)) / Math.log(t(φ1) / ... |
9ec6f50aebb4d388f7bc740e081488c1094befe88ce862042ea201a964e4cc13 | JavaScript | 1,068 | 38 | import "../math/trigonometry";
import "geo";
d3.geo.interpolate = function(source, target) {
return d3_geo_interpolate(
source[0] * d3_radians, source[1] * d3_radians,
target[0] * d3_radians, target[1] * d3_radians
);
};
function d3_geo_interpolate(x0, y0, x1, y1) {
var cy0 = Math.cos(y0),
sy0 = M... |
27635d58f6532a12f51f490ba494c8bf8ab0adf3319bb9cdad6af1de261482a0 | JavaScript | 1,136 | 35 | c3_chart_fn.tooltip = function () {};
c3_chart_fn.tooltip.show = function (args) {
var $$ = this.internal, index, mouse;
// determine mouse position on the chart
if (args.mouse) {
mouse = args.mouse;
}
// determine focus data
if (args.data) {
if ($$.isMultipleX()) {
... |
ccd8b8e338bfe09b6ee0aafa177efc60391e059e165c71f9de6fb48efc3b0d57 | JavaScript | 1,144 | 49 |
/* Class to track focus shifts during experiment
* **Requires Jquery**
*
*/
var focus_tracker = function(win) {
var self = this;
this.shift_away = 0;
this.get_shifts = function() {
return this.shift_away;
};
this.reset = function() {
this.shift_away = 0;
};
$(win).blur(function() {
... |
1784fc6e0c46f63f4907306bbeb0470688839a3d42ca5ffe6183e4930f36cb99 | JavaScript | 1,147 | 51 | import "layout";
import "hierarchy";
d3.layout.partition = function() {
var hierarchy = d3.layout.hierarchy(),
size = [1, 1]; // width, height
function position(node, x, dx, dy) {
var children = node.children;
node.x = x;
node.y = node.depth * dy;
node.dx = dx;
node.dy = dy;
if (chil... |
163edc93186fbd652840805e76d8920de64f46204b72af43f6b14ce6eb4c9040 | JavaScript | 1,155 | 36 | import "../core/document";
import "../core/vendor";
import "../selection/on";
var d3_event_dragSelect,
d3_event_dragId = 0;
function d3_event_dragSuppress(node) {
var name = ".dragsuppress-" + ++d3_event_dragId,
click = "click" + name,
w = d3.select(d3_window(node))
.on("touchmove" + name,... |
00c30a59608cefb4ba6f3b55425c36ffff52ef10aef6e36d26511f14956cbcaf | JavaScript | 1,175 | 48 | import "../math/trigonometry";
import "geo";
import "projection";
function d3_geo_mercator(λ, φ) {
return [λ, Math.log(Math.tan(π / 4 + φ / 2))];
}
d3_geo_mercator.invert = function(x, y) {
return [x, 2 * Math.atan(Math.exp(y)) - halfπ];
};
function d3_geo_mercatorProjection(project) {
var m = d3_geo_projectio... |
493fa317eff049477efdab8f5ae62a726092c2a1199baa783d20a402b748a86c | JavaScript | 1,175 | 44 | import "../core/noop";
import "../math/abs";
import "../math/trigonometry";
import "geo";
import "stream";
d3.geo.length = function(object) {
d3_geo_lengthSum = 0;
d3.geo.stream(object, d3_geo_length);
return d3_geo_lengthSum;
};
var d3_geo_lengthSum;
var d3_geo_length = {
sphere: d3_noop,
point: d3_noop,
... |
1e1cbaba4ef73a96630d6538d4c6b44376b5141eb7af6c1aac8a5faec76c2e5e | JavaScript | 1,189 | 1 | (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27423,e=>{"use strict";e.s(["ThemeProvider",()=>o,"useTheme",()=>i]);var t=e.i(43476),s=e.i(71645);let r=(0,s.createContext)(void 0);function o(e){let{children:o}=e,[i,a]=(0,s.useState)("system"),[l,d]=(0,s.u... |
c54fe97c26f1fcdecd6a461f6917b91459b982c15ca63d3b318b34ea71a29b33 | JavaScript | 1,200 | 53 | import "../math/trigonometry";
var ρ = Math.SQRT2,
ρ2 = 2,
ρ4 = 4;
// p0 = [ux0, uy0, w0]
// p1 = [ux1, uy1, w1]
d3.interpolateZoom = function(p0, p1) {
var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
dx = ux1 - ux0,
dy = uy1 - uy0,
d2 = dx * dx + dy *... |
f178a513bd222fcd5f987557b1d611312543a47c0aa5b0f79da69ea61cb8421b | JavaScript | 1,207 | 40 |
// to be used as an onClick method
// (Figures out what the target URL is from the item parameter)
function logger(item, label) {
var URL = item.href;
var xhttp = new XMLHttpRequest();
// use a random code to prevent caching
var request = "../cgi-bin/noop.cgi?label=" + label + "&URL=" + encodeURI(URL) ... |
0b6f5dec501481ea4342367b1dd4a3ac4c17a6ad1dc7f9148cdd4dfd99b3c037 | JavaScript | 1,223 | 55 | import "../arrays/ascending";
import "../arrays/bisect";
import "../arrays/quantile";
import "../math/number";
import "scale";
d3.scale.quantile = function() {
return d3_scale_quantile([], []);
};
function d3_scale_quantile(domain, range) {
var thresholds;
function rescale() {
var k = 0,
q = range.... |
0bb6d2b41836a0228bc4ca2de9da807b1a17911966765f1ff2a1393b9f421821 | JavaScript | 1,262 | 43 | window.revealMenuToolHandler = function (handler) {
return function (event) {
event.preventDefault();
handler();
Reveal.getPlugin("menu").closeMenu();
};
};
window.RevealMenuToolHandlers = {
fullscreen: revealMenuToolHandler(function () {
const element = document.documentElement;
const reques... |
f2c4619c78a1013a21edf6ef15f8b70862b927a21c711f1c149a5758cace900f | JavaScript | 1,265 | 43 | function loadjscssfile(filename, filetype){
if (filetype == "js") {
document.write('<script src =' + filename + '></script>')
}
else if (filetype = "css") {
document.write('<link href =' + filename + ' rel="stylesheet" type="text/css">')
}
}
/* Draws experiments randomly to fill up a certain amount of time.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.