text stringlengths 8.5k 48.7k |
|---|
$(function() {
setInterval("showTime()",1000);
$('.selectCombo').comboSelect();
modelCenter();//模态库居中
inintSale();//初始化销售明细表
inintReject();//初始化退货明细表
keyEvent();//按钮触发事件
});
//点击导航栏的销售
function saleFun(){
$("#my-sale").trigger("click");
}
//点击导航栏的退货
function rejectFun(){
$("#my-reject").... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var colors = require('@carbon/colors');
/**
* Copyright IBM Corp. 2018, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var interactive01 = co... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
class Plot {
constructor(selection, {width = 640, height = 250, innerwidth=undefined, innerheight=undefined, top = 20, right = 50, bottom = 55, left = 50, xlabel="", ylabel= "", colors=undefined}={}) {
this.width = width;
this.height = height;
this.xlabel = xlabel;
this.ylabel = ylab... |
// Copyright 2018-2021, University of Colorado Boulder
/**
* The state of a single (potentially in-progress) challenge for a level.
*
* @author <NAME> <<EMAIL>>
*/
import DerivedProperty from '../../../../axon/js/DerivedProperty.js';
import dotRandom from '../../../../dot/js/dotRandom.js';
import Vector2 from '..... |
/**
* @author <NAME>
* @version 2.2.0
* @license MIT
*/
"use strict";
/* import package.json file as PACKAGE_JSON constant */
import PACKAGE_JSON from "../package.json";
/* define PACKAGE_NAME constant */
const PACKAGE_NAME = PACKAGE_JSON.name;
/* define PACKAGE_VERSION constant */
const PACKAGE_VERSION = PACKA... |
//import { ElectronBlocker } from '@cliqz/adblocker-electron';
const ipc = require('electron').ipcRenderer;
const path = require('path');
const url_module = require('url');
const fs = require("fs");
//const session = require('electron');
//const blocker = ElectronBlocker.parse(fs.readFileSync('src/assets/js/eas... |
import React, { useRef, useLayoutEffect, useEffect, useState } from "react";
import * as am4core from "@amcharts/amcharts4/core";
import * as am4charts from "@amcharts/amcharts4/charts";
import am4themes_animated from "@amcharts/amcharts4/themes/amchartsdark";
import * as am4plugins_timeline from "@amcharts/amcharts4/p... |
// Scrivi App Index //
// by <NAME>
var Scrivi = new Vue({
el: '#scriviapp',
updated() {
feather.replace({'class': 'icon'});
},
data: {
client: 'web', // The Current Client, Web or Desktop
idbenabled: false, // Checked if IDB is supported.
idb: false, // References the IDB.
ui: { // Holds which UI m... |
import { MetricsPanelCtrl } from 'app/plugins/sdk'; // eslint-disable-line
import _ from 'lodash';
import moment from 'moment';
// import angular from 'angular';
import $ from 'jquery'; // eslint-disable-line
import * as d3 from 'd3'; // eslint-disable-line
im... |
var DRYOBJ = ( function ( ) {
/*################ ES5 pragma ######################*/
'use strict';
// The Browser Prefixes
var _arVendorPREs = [ "moz", "ms", "webkit", "o" ];
// ######################
// ## Window object
// ######################
var _window = window; // GLOBAL element
// ###########... |
/*
@ TAGS
ERROR
ADD
EXPLORE
*/
"use strict";
// DEVICE
let device_touch = 0;
function device_information() {
if (navigator.maxTouchPoints > 0) { device_touch = 1; }
}
device_information();
/*-------------
DOM BODY
---------------*/
let DOM_body = document.body;
DOM_body.style.margin = "0px";
DOM_body.sty... |
//start connection
var _ = require('lodash');
var safeEval = require('safe-eval');
const aws = require('aws-sdk');
var request = require('./request');
var build_es_query = require('./esbodybuilder');
var handlebars = require('./handlebars');
var translate = require('./translate');
var kendra = require('./kendraQuery');... |
var pg, nav; // global variables
// catalog of all abbreviations in use
var _abbrev = {
'sctn': 'section',
'tbl': 'table',
'v': 'view',
'schm': 'schema',
'idxs': 'indexes',
'cols': 'columns'
};
function navigationChangedListener(navObject, oldNavObject){
// redirect to the next page as gotten from the location ... |
// Object Game
function Game(){
this.WIDTH_BRICK = 50; this.HEIGHT_BRICK = 25; // Brick measurements
this.canvas, this.context; // Context to draw the canvas
this.width, this.height; // Canvas measurements
this.LEVELS = new Array();
this.paddle;
this.ball;
this.brick;
this.t = 0; /... |
import { S as SvelteComponentDev, i as init, s as safe_not_equal, d as dispatch_dev, v as validate_slots, a as space, e as element, t as text, q as query_selector_all, b as detach_dev, c as claim_space, f as claim_element, g as children, h as claim_text, j as attr_dev, k as add_location, l as insert_dev, m as append_de... |
/* pntr :: IO Painter2d */
const pntr = M_IO.getElementById('canvas').bind(canvas =>
Painter2d.create(canvas).bind(p =>
p.setScreen()));
/* initStates :: IO IMap */
const initStates = M_IO.unit(new IMap({
titleCursor: 0,
stage_p1: Stage.init(Ex.repeatedly(Quark.randomNext, 4)),
stage_p2: Stage.init(Ex.repe... |
function criminalRecords() {
total_weights = 0
total_weights_crime_lime = 0
jsonfile = "data/user_study/P1-crime.json"
criminal_list = "data/user_study/list.csv"
dataR = [
{label:"Age", value:0},
{label:"Marriage", value:0},
{label:"Educat... |
const StatusCodes = require('http-status-codes');
const HTTPRequest = require('request-promise-native');
const Config = require('../src/config' );
const Request = require('../src/requests' );
const Invoice = require('../src/invoices' );
const Folio = require('../src/folio' ... |
/*
Copyright Netfoundry, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... |
//var ensembl_rest_api = require("tnt.ensembl");
var nav = require("./navigation.js");
var browser_tooltips = require("./tooltips.js");
var aggregation = require("./aggregation.js");
var RSVP = require('rsvp');
var apijs = require("tnt.api");
var biotypes = require("./biotypes.js");
var cttvRestApi = require("cttv.api"... |
var adventureParameter = {
mode: 'garbagefire',
chapter: 1,
level: 1,
seed: 1,
localStorageSession:{
chapter1:{
1:{
stars:0,
highscore:0
},
},
chapter2:{
1:{}
}
},
task: {
'Garbage Fire': {
hp: 30,
duration: 100,
strength: 5,
name: '',
activity: {
hp: 30,
duratio... |
'use strict';
import React, { PureComponent } from 'react';
import { Text, View, Dimensions, Platform, Image, TouchableOpacity, PermissionsAndroid, StatusBar, TextInput, Alert, Button, Animated, ListView, Keyboard } from 'react-native';
import { Container, Col, Row } from 'native-base';
import { RNCamera } from 'react-... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
//var fs = require('fs'); // Load the File System to execute our common tasks (CRUD)
//var elect = require('electron');
const electron = require('... |
var prizes = [];
var medallions = [];
var itemGrid = [];
var itemLayout = [];
var showchests = true;
var showprizes = true;
var showmedals = true;
var editmode = false;
var selected = {};
function setCookie(obj) {
var d = new Date();
d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000));
var expires = "ex... |
var that = this;
function __skpm_run (key, context) {
that.context = context;
var exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/****... |
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* @fileoverview function used in table data manipulation pages
*
* @requires jQuery
* @requires jQueryUI
* @requires js/functions.js
*
*/
/**
* Modify form controls when the "NULL" checkbox is checked
*
* @param theType string the MySQL field ty... |
$.fn.serializeObject = function() {
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || '');
} else {
o[this.... |
import moment from 'moment';
var types = /*#__PURE__*/Object.freeze({
__proto__: null
});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
th... |
'use strict';
const ip = require('ip');
const fs = require('fs-extra');
const tar = require('tar-fs');
const nas = require('./nas');
const path = require('path');
const debug = require('debug')('fun:local');
const Docker = require('dockerode');
const docker = new Docker();
const dockerOpts = require('./docker-opts');
... |
class CyberdonosContentJSListener {
constructor() {
this.PERSONS = {
twitter: {},
vk: {},
facebook: {},
youtube: {}
}
this.TAGS = [],
this.STATUSES = [],
this.ROLE_ID = 3,
this.SERVER = null,
this.SELECT_TAGS = null
this.TYPE = null
this.CONFIG = {}
}
... |
const remSize = parseInt(getComputedStyle(document.documentElement).fontSize);
const infoPanel = document.getElementById("infoPanel");
const playPanel = document.getElementById("playPanel");
const countPanel = document.getElementById("countPanel");
const scorePanel = document.getElementById("scorePanel");
const startBu... |
import React from "react"
class InsertWords extends React.Component {
// F
// Is black box
// Return false
// Is not black box
// Is not active
// return true
// Is active
// Return 3rd
... |
// eslint-disable-next-line no-unused-vars
const { Message, MessageEmbed, MessageReaction, Util, TextChannel } = require('discord.js');
const { DateTime, Duration } = require('luxon');
const fetch = require('node-fetch');
const { firstBy } = require('thenby');
const csv_parse = require('csv-parse');
const DatabaseFilt... |
/* global APP, $, config, interfaceConfig, JitsiMeetJS */
import UIUtil from '../util/UIUtil';
import UIEvents from '../../../service/UI/UIEvents';
import SideContainerToggler from "../side_pannels/SideContainerToggler";
let emitter = null;
let Toolbar;
const buttonHandlers = {
"toolbar_button_profile": function ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj... |
'use strict';
/*! main.js - v0.1.1
* Copyright (c) 2017 Masters Corp.;*/
/* Core theme functions required for
* most of the themes vital functionality */
var Core = function(options) {
// Variables
var Window = $(window);
var Body = $('body');
var Navbar = $('.navbar');
var Topbar = $('#topbar');
... |
// Simpatico main Interactive Front-End (simpatico-ife.js)
//-----------------------------------------------------------------------------
// This JavaScript is the main entry point to the Interactive Front-End
// component of the Simpatico Project (http://www.simpatico-project.eu/)
//
//------------------------------... |
/*
ccsasir.js
Connected Compartment as Spatial Advancement of
Suceptible-Infected-Recovery Model for Modelling
Spread of Infection
<NAME> | https://github.com/dudung
<NAME> | <EMAIL>
<NAME> | <EMAIL>
<NAME> | <EMAIL>
<NAME> | <EMAIL>
20200322
1045 Start this project.
1100 Design SIR parameters for NA ... |
var imml = {};
imml.timelines = [];
imml.loadFromUri = function (uri) {
_fetchImmlFromUri(uri, function (xDoc) {
imml.load(xDoc.firstChild);
});
}
function _fetchImmlFromUri(uri, completed) {
var oReq = new XMLHttpRequest();
oReq.onload = function (e) {
//var xDoc = oReq.responseTex... |
import React, { Component } from 'react';
import { Slider, NativeModules, StyleSheet, View, InteractionManager, Text, TextInput, Image, ListView, Button, Animated, ScrollView, ToastAndroid, StatusBar, TouchableOpacity } from 'react-native';
import { COLOR, SCALE, SCALE2, SCALE1, EventEmitter, throttle, toast } from '..... |
import DBC from "./models/can/dbc";
const CivicDbc = new DBC(`
VERSION ""
NS_ :
NS_DESC_
CM_
BA_DEF_
BA_
VAL_
CAT_DEF_
CAT_
FILTER
BA_DEF_DEF_
EV_DATA_
ENVVAR_DATA_
SGTYPE_
SGTYPE_VAL_
BA_DEF_SGTYPE_
BA_SGTYPE_
SIG_TYPE_REF_
VAL_TABLE_
SIG_GROUP... |
const sql = require("sqlite");
sql.open("./servants.sqlite");
var fs = require('fs');
var Discord = require('discord.js');
const client = new Discord.Client();
exports.run = (client, message, args) => {
servantInput = args.shift().toLowerCase();
properName = servantInput.charAt(0).toUpperCase() + servantInput.slice(1)... |
import React, { useState, useEffect } from "react"
import { Modal, Button } from "react-bootstrap"
import useCommons from "../../../lib/hooks/useCommons"
import { Form } from "lib/elektra-form"
import useListener from "../../../lib/hooks/useListener"
import SelectInput from "../shared/SelectInput"
import ErrorPage from... |
/*globals module exports resource require*/
/*jslint undef: true, strict: true, white: true, newcap: true, browser: true, indent: 4 */
"use strict";
var util = require('util'),
Texture2D = require('cocos2d/Texture2D').Texture2D,
cocos = require('cocos2d'),
events = require('events'),
nodes ... |
/*global $, jsbin, vex, setTimeout */
var analytics = require('../chrome/analytics');
var Panels = require('../editors/panels');
var helper = require('../helper/global_helper');
var saveChecksum = require('../helper/global_helper').saveChecksum;
var store = require('../chrome/storage');
var ESC = require('../chrome/es... |
/************************************/
/* MENACE */
/* Machine Educable Noughts */
/* and Crosses Engine */
/************************************/
/* Based on the first MENACE built */
/* by <NAME> in 1960 using */
/* 304 matchboxes. */
/**************... |
var express = require('express')
, fs = require("fs")
, jsonminify = require("jsonminify")
, router = express.Router()
, settings = require('../lib/settings')
, locale = require('../lib/locale')
, db = require('../lib/database')
, lib = require('../lib/explorer')
, qr = require('qr-image');
function ro... |
// /* KRYPTOBOOKZ ENGINE : KBZ
// * descriptions:
// * This engine looks up EPISODE IDTs
// * From BLOCKCHAIN.
// * Then converts IDX to IPFS URIs
// * The content from IPFS is then
// * LOAD and RENDER.
// * If IDT is array, display last.
// * LINKS displayed by 8GRID hash.
// * On LINK, lookup and RENDER.
//... |
function addToURL(value){
if (history.pushState) {
var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + value;
window.history.pushState({path:newurl},'',newurl);
}
}
const version = "v0.0.1";
log('COSMiC Explorer', version);
el('#footerversion').innerHTML = ver... |
class Matrix4 {
get el() {
return this._el;
}
constructor() {
this._el = new Float32Array(16);
this.identity();
}
identity() {
this._el[0] = 1;
this._el[1] = 0;
this._el[2] = 0;
this._el[3] = 0;
this._el[4] = 0;
this._el[5] =... |
$(function(){
var base_url = $("body").data('base_url'); //url
var datas = $("body").data('datas'); // data for query
var search_label = $("body").data('label'); //label search
var passCustomerLink = $(".passCustomerLink").val();
returnEntries = [];
shipping = 0;
total = 0;
// reuseable toa... |
var vgGID = [
991015174, //Mechanics
190462791, //Ren - DPS
811503596, //FB - DPS
838391600, //Condi BS
1058908524, //Power BS
1785579560, //Weaver - DPS
1657696023, //Slb - DPS
1339404060, //... |
// Implements template rendering via Nunjucks. **You should use the
// `self.render` method of *your own* module**,
// which exist courtesy of [@apostrophecms/module](../@apostrophecms/module/index.html)
// and invoke methods of this module more conveniently for you.
//
// You may have occasion to call `self.apos.templ... |
var site = "http://site1840.tw.cs.unibo.it/";
var starter_list;
var search_list;
var cronology = new Array();
var timer;
var player;
var added=false;
var counter=0;
var recommender='Starter';
var global_pop = new Array();
var global_relative = new Array();
var h_state = false;
var artist = "";
var track = "";
var title... |
/**
* qcPageChart_PPM_Error_PSM.js
*
* Javascript for the viewQC.jsp page - Chart PPM Error - in PSM Error section
*
* page variable qcPageChart_PPM_Error_PSM
*
* !!!! Currently only works for single search.
*
* The page is designed to work with multiple merged searches
* but the code and SQL ne... |
//文件input,选择完文件之后的事件处理函数,用于处理文件上传
var rootURL = window.location.protocol + "//" + window.location.host;
function fileInputClick(uploadUrl,element) {
$(element).parent().children(".m-loader").show();
var formData = new FormData();
formData.append("fileUpload", element.files[0]);
formData.append("file_e... |
const marvelCharacters = [
"3-D Man",
"A-Bomb",
"A.I.M.",
"<NAME>",
"Abomination",
"Absorbing Man",
"Abyss",
"<NAME>",
"<NAME>",
"Aegis",
"<NAME>",
"Agent X",
"Agent Zero",
"Agents of Atlas",
"Aginar",
"Air-Walker",
"Ajak",
"Ajaxis",
"Akemi",
... |
const Discord = require('discord.js');
const client = new Discord.Client();
const Store = require('electron-store');
const store = new Store();
const fetch = require('node-fetch');
module.exports = {
client: client
};
var ping = 0;
var availableRegions = ["us-west",
"us-east",
... |
//Credits: <NAME>; <NAME>
"use strict";
let wire, terrain_chunk, gravelPlane, ponte1, ringhiera, leftPole, rightPole, casa, palazzo, albero1, stazione0, stazione1, stazione2, stazione3, stazione4, carrozza, carrovuoto, locomotore, container1, container2, cisterna1, cisterna2; //models
let sun, moon, day;
let horn, ... |
//todo: debug canvas. a 1 to 1 view of all pages
//import { inView } from '/js/core/utils.js'
var RetroBuffer = function(width, height, atlas, pages=5) {
this.WIDTH = width;
this.HEIGHT = height;
this.PAGESIZE = this.WIDTH * this.HEIGHT;
this.PAGES = pages;
this.atlas = atlas;
... |
var SceneType = {
// Cannot use battle event command at the following scene.
TITLE : 0,
GAMEOVER : 1,
ENDING : 2,
// Can use battle event command at the following scene.
BATTLESETUP : 3,
FREE : 4,
BATTLERESULT : 5,
REST : 6,
EVENTTEST : 9,
// Event command to enable to use depends on the caller's scene.... |
"use strict";
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
import React, { Component, PropTypes } from 'react';
import Row from 'react-bootstrap/lib/Row';
import Grid from 'react-bootstrap/lib/Grid';
import Col from 'react-bootstrap/lib/Col';
// import { browserHistory } from 'react-router';
import {
Editor,
ContentState,
convertFromHTML,
EditorState,
RichUtils,
At... |
// +----------------------------------------------------------------------
// | Copyright (C) 浩天科技 www.ihotte.com <EMAIL>
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------... |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
// twister_following.js
// 2013 <NAME>
//
// Manage list of following users. Load/Save to localstorage and DHT.
// Provides random user suggestions to follow.
var followingUsers = [];
var _isFollowPublic = {};
var _followsPerPage = 200;
var _maxFollowingPages = 50;
var _followingSeqNum = 0;
var _followSuggestions = []... |
var CELLSIZE = 32;
var DEFAULT_SIZE = [20, 15];
var TURNDIR = {U: "D", D: "U", R: "L", L: "R"};
function rndRange(from, to) {
return from + (Math.random() * (to + 1 - from) | 0);
}
function rndChoice(array) {
return array[Math.random() * array.length | 0];
}
function poseq(pos1, pos2) {
return (pos1[0] == pos... |
// 0x0702A2A0 - 0x0702A2B8
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCycleType,
gsDPSetRenderMode, gsDPSetDepthSource, gsDPSetFogColor, gsSPFogPosition, gsSPSetGeometryMode,
g... |
var dayNames = ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"];
var dayNamesMin = ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"];
var dayNamesShort = ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"];
var monthNames = ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Sep... |
import Vue from 'vue'
import {ArrayList} from "../utils/ArrayList";
import {HashMap} from "../utils/HashMap";
import {EventManager} from "../events/EventManager";
import SortedMap from "../utils/SortedMap";
import VueRouter from 'vue-router'
console.log("[[[HYD framework based on VUE]]]");
var HYD = (function () {
/... |
var TIP,
TIPNS = '.qtip-tip',
HASCANVAS = !!document.createElement('canvas').getContext;
// Tip coordinates calculator
function calculateTip(corner, width, height)
{
var width2 = Math.ceil(width / 2), height2 = Math.ceil(height / 2),
// Define tip coordinates in terms of height and width values
tips = {
botto... |
$(function(){
// disable Ajax cache
$.ajaxSetup({ cache: false });
// repository url text field
$('#repository-url').click(function(){
this.select(0, this.value.length);
});
// activate tooltip
$('img[data-toggle=tooltip]').tooltip();
$('a[data-toggle=tooltip]').tooltip();
$('li[data-toggle=tool... |
/*!
* Module Dependencies.
*/
var assert = require('assert');
var RemoteObjects = require('strong-remoting');
var SharedClass = require('strong-remoting').SharedClass;
var extend = require('util')._extend;
module.exports = function(registry) {
/**
* The base class for **all models**.
*
* **Inheriting fro... |
'use strict';
/*global require*/
var L = require('leaflet');
var html2canvas = require('html2canvas');
var Cartesian2 = require('terriajs-cesium/Source/Core/Cartesian2');
var Cartographic = require('terriajs-cesium/Source/Core/Cartographic');
var CesiumMath = require('terriajs-cesium/Source/Core/Math');
var CesiumTil... |
// main player class that is used by the player object to control the playing of songs
function PlayState() {
this.scrubberTimeout = null;
this.names = {
playpause: '#playpause',
next: '#next',
prev: '#prev',
repeat: '#repeat',
repeat_badge: '#repeat_badge',
shuffle: '#shuffle',
};
this... |
'use strict';
const { MediaStreamTrack } = require('@twilio/webrtc');
const { asLocalTrack, asLocalTrackPublication, trackClass } = require('./util');
const { typeErrors: E, trackPriority } = require('./util/constants');
const { validateLocalTrack } = require('./util/validate');
const {
LocalAudioTrack,
LocalData... |
/*
Copyright 2020 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
import { S as SvelteComponentDev, i as init, d as dispatch_dev, s as safe_not_equal, v as validate_slots, e as element, F as text, f as space, g as claim_element, h as children, H as claim_text, j as detach_dev, k as claim_space, l as attr_dev, m as add_location, n as insert_dev, a as append_dev, D as noop } from './cl... |
import * as R from 'ramda'
const languagesMap = {
ab: { en: 'Abkhazian' },
aa: { en: 'Afar' },
af: { en: 'Afrikaans' },
ak: { en: 'Akan' },
sq: { en: 'Albanian' },
am: { en: 'Amharic' },
ar: { en: 'Arabic' },
an: { en: 'Aragonese' },
hy: { en: 'Armenian' },
as: { en: 'Assamese' },
av: { en: 'Avar... |
/*!
* JSTable
*/
const JSTableDefaultConfig = {
perPage: 5,
perPageSelect: [5, 10, 15, 20, 25],
sortable: true,
searchable: true,
// Pagination
nextPrev: true,
firstLast: false,
prevText: "‹",
nextText: "›",
firstText: "«",
lastText: "»",
el... |
const $ = {
bodyClassAdd: (c) => $.el('body').classList.add(c),
bodyClassRemove: (c) => $.el('body').classList.remove(c),
el: (s) => document.querySelector(s),
els: (s) => [].slice.call(document.querySelectorAll(s) || []),
escapeRegex: (s) => s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'),
flattenAndUnique: (arr) =>... |
import Backgrounds from './Backgrounds';
import Blocks from './Blocks';
import Bullet from './Bullet';
import Cheats from './Cheats';
import GameActions from '../actions/GameActions';
import GameStore from '../stores/GameStore';
import LevelActions from '../actions/LevelActions';
import LevelStore from '../stores/Level... |
/**
* Scalar
* Copyright 2013 The Alliance for Networking Visual Culture.
* http://scalar.usc.edu/scalar
* <EMAIL>
*
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*... |
#!/usr/bin/env node
"use strict";
var fs = require('fs'),
util = require('util'),
childProcess = require('child_process'),
dirs = [],
path = require('path'),
exists = fs.exists || path.exists, // yay, exists moved from path to fs in 0.7.x ... :-\
existsSync = fs.existsSync || path.existsSync,
... |
import React from 'react';
import PropTypes from 'prop-types';
import { withRouter, Prompt } from 'react-router-dom';
import Sticky from 'react-sticky-el';
import classnames from 'classnames';
import { min } from 'lodash';
import { HEADER_HEIGHT } from '../../../constants';
import Phase from '../../../components/Tos/P... |
//VARIABLES START HERE_______________________________________________________
//Variables to be populated no matter what
var zipCode;
var radius;
var onConnect = false;
var eventful = false;
var sportsAPI = false;
var interests = [onConnect, eventful, sportsAPI];
var oneUser = true;
//If user is interested in spor... |
/*jslint browser: true*/
/*global $,config,dict,cityConfig,createNewCard,stringValueFormatter,intValueFormatter,euroValueFormatter,dateValueFormatter*/
//-----------------------------------------------------------------------
function fillBuildCardWithMetadata() {
'use strict';
function fillRSSData(data) {
data ... |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import { injectIntl, FormattedMessage } from 'react-intl';
import { HotKeys } from 'react-hotkeys';
import { throttle } from 'lodash';
import isArr... |
/**
* @copyright 2016-2019 <NAME>;
* @license Apache-2.0
*
* Count votes with Meek's Method RCV / STV
*
* Convert from EB-format ballot (vote_by_vote.csv) file.
*/
import {getId, createElement, createElementIn, listen, addClass, removeClass}
from './dom-utils.js';
import {MeekImplementationError} from './... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[... |
"use strict";
//NOTEST
if (typeof GM_setValue === "function") {
gmGetValue = function (p1, p2) {
var r = GM_getValue(p1, JSON.stringify(p2));
r = JSON.parse(r);
return r;
};
gmSetValue = function (p1, p2) {
var v = JSON.stringify(p2);
GM_setValue(p1, v);
};
}
//TESTED
function getNumberO... |
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import { layerFactory } from '@chartshq/visual-layer';
import {
setAttrs,
getUniqueId,
getQualifiedClassName,
selectElement,
transactor,
makeElement,
generateGetterSetters,
getDataModelFromIdentifiers,
isSimpleObject,
transposeArray,
CommonProps,
toArray,
STATE_NAMESP... |
var EVENTS;
jQuery.getJSON( "/events.json", function( data ) {
EVENTS = data;
initEventsCal();
initMySchedule();
});
function customHyphen(s) {
return s.replace('Parasprite', 'Para\u00ADsprite').replace('Seashell','Sea\u00ADshell').replace('MLP:CCG','MLP:\u200BCCG');
}
function formatTime(d) {
var h = d.hour;... |
import moment from "moment-timezone";
import request from "superagent";
import _ from "lodash";
import logger from "../../logger";
import { config } from "../../config";
import { sqlResolvers } from "./lib/utils";
import { sleep } from "../../lib/utils";
import { isNowBetween } from "../../lib/timezones";
import { r, ... |
var wid, hei;
var transitionDuration = 800;
var started = false;
var data = [];
var scales = {};
var totals = {};
var maxYear, minYear = 0;
var vis;
var padding = { top: 40, right: 30, bottom: 30, left: 240 }
var barHeight = 10;
var defaultPopPercent = .08;
var boxHeight = 30;
var waitStart = false;
var yearsPadding =... |
var BufferCursor = require('buffercursor'),
consts = require('native-dns-packet').consts,
conv = require('binstring'),
dnsname = require('./name'),
NDP = require('native-dns-packet'),
SECURITY_STATUS = require('./srrset').SECURITY_STATUS,
jsrsasign = require('jsrsasign'),
BigInteger = requir... |
/*global xr, SMESGMap, SMESMarkStore, Promise, setTimeout, window, document, console, alert, ArrayBuffer, Uint8Array, Blob, saveAs, darkGrey, coolGrey, paleDawn, shiftWorker, simpleLight, muted, iovation, navigator, google, SMESMap, MarkStore, componentHandler */
//Variables for display
var startingUp;
var loader;
va... |
/* Copyright (c) Business Objects 2006. All rights reserved. */
var L_bobj_crv_MainReport = "Raport g\u0142\u00F3wny";
// Viewer Toolbar tooltips
var L_bobj_crv_FirstPage = "Id\u017A do pierwszej strony";
var L_bobj_crv_PrevPage = "Id\u017A do poprzedniej strony";
var L_bobj_crv_NextPage = "Id\u017A do nast\u0119pnej ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.