text
stringlengths
8.5k
48.7k
import { __extends } from "tslib"; import { Observable } from "../../Misc/observable"; import { FreeCamera } from "../../Cameras/freeCamera"; import { Camera } from "../../Cameras/camera"; import { Quaternion, Matrix, Vector3 } from "../../Maths/math.vector"; import { Gamepad } from "../../Gamepads/gamepad"; impo...
var swidth = window.innerWidth / 1.2, height = 600, radius = 0.00003; var re = [ ["2000", "2001", "2002", "2003", "2004"], ["2005", "2006", "2007", "2008", "2009"], ["2010", "2011", "2012", "2013", "2014"], ["2015", "2016", "2017", "2018"] ] var current = re[0]; var svg2 = d3.selec...
if(!searchPage || typeof searchPage == undefined ){ var searchPage={}; } searchPage.optType=['string','date','num','enum']; searchPage.vars={ nameFilds:[], reFields:[{id:'OR',name:'OR'},{id:'AND',name:'AND'}] }; searchPage.operation={ strOpts:[ {id:"=",name:"="}, {id:"!=",name:"!="}, {id:...
/*==[ Threads.js ]============================================================================================ THREADS ============================================================================================================*/ class Thread { static get first() { ...
var layero_video; function go_inquirys(i) { var good_id = $(i).attr('goodID'); window.open(basePath + 'customerInquiry/goAddInquiryPage'); } function industry_brand(i) { $('#keyword').val($(i).text()); search() } function brand_name(j) { var i = $(j).index(); $(j).parent().find('b').removeClass('wholesale-acti...
const UserObject = require('../../../background/models/instagram/instagram-user'); const LocationObject = require('../../../background/models/instagram/instagram-location'); const HashTagObject = require('../../../background/models/instagram/instagram-hashtag'); const Promise = require('bluebird'); const axios = requir...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DropdownBlock = void 0; const lodash_1 = __importDefault(require("lodash")); const react_1 = __i...
/* Global Variable initialisations*/ let findBtn = $('#submit'); let meaning = $('#meaning'); let synonyms = $('#synonyms'); let antonyms = $('#antonyms'); let wordToSearch = $('#wordToSearch'); let error = $('#error'); let audio1 = $('#audio'); let Source = $('.translation_inputs'); let Destination = $('.Dest...
var commentusername = [ "ready", "<NAME>", "<NAME>", "<NAME>", "Anacleto", "Batista", "Priscilla", "<NAME>", "Marilena", "<NAME>", "<NAME>", "Abelardo", "Jonathan", "Mafalda", "Sam", "Igor", "Andrew", "<NAME>", "Ermes", "Calvin", "Concordio", "", "1000", "1000", "1000",...
/* -------------------- * livepack module * Serialize functions * ------------------*/ 'use strict'; // Modules const {promisify, debuglog} = require('util'), traverse = require('@babel/traverse').default, typeOf = require('native-type-of'), assert = require('simple-invariant'), upperFirst = require('lodash/up...
"use strict"; // TODO: Remove when CSS Images Module Level 4 is widely supported, (function () { let avif = new Image(); avif.src = "data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABA...
IMPOSSIBLE = 999; function getPawns(board) { const whitePawns = []; const blackPawns = []; for(let file = 0; file < 8; file++) { whitePawns[file] = []; blackPawns[file] = []; for(let rank = 0; rank < 8; rank++) { if (board[file][rank].unit == "P") { if (...
var scheduleSpecificDates = []; function Schedule(opts, resourceGroups) { var options = opts; var groupDiv = $('#resourceGroups'); var scheduleId = $('#scheduleId'); var multidateselect = $('#multidateselect'); this.init = function () { this.initUserDefaultSchedule(); this.initRota...
var LAST_NAME_ARRAY = 'ABCDEFGHIJKLMNOPRSTV'; var MIN_TIME = 30; var MAX_TIME = 120; var RADIUS = 10; var URL = '/geoip/'; var SK_CITY = [ 'Bratislava', 'Žilina', 'Prešov', 'Košice', 'Svidník', 'Bardejov', 'Humenné', 'Michalovce', 'Poprad', 'Ružomberok', 'Martin', '<NAME>', 'Nám...
var container; var camera, scene, renderer; var targetRotation = 0; var targetRotationOnMouseDown = 0; var mouseX = 0; var mouseXOnMouseDown = 0; var parent, glowParent; var windowHalfX = window.innerWidth / 2; var windowHalfY = window.innerHeight / 2; var composer; var blackMaterial, glowMaterial; var dataF...
import React, {Component} from 'react'; import Checkmark from './Checkmark'; // import { displayProgress, displayErrors, endProgress } from '../utility/batch'; import { prepSaisieMasq } from '../utility/mmutil'; import TiePoints from './TiePoints'; import * as tapiocaF from './methods/tapioca-functions'; import './Tapi...
/* * Copyright 2018 Nextworks s.r.l. * * 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 w...
const { expect } = require('chai'); const get = require('lodash.get'); const { unflatten } = require('flat'); // const mongoose3 = require('mongoose3'); const mongoose4 = require('mongoose4'); const mongoose5 = require('mongoose5'); const mongooseLatest = require('mongooseLatest'); const { factory: mocker } = require...
//TODO: // - store out 'after' for seed searches for a particular phrase (have setting whether to do so // and whether to use it) // -add weighting and stuff for comments search- exactly the same as subreddit seed search but use // response.data.children[i].data.subredd...
function ScriptLoader_createPromise( url, isModule, htmlElementId ) { if ( htmlElementId ) { let scriptElement = document.getElementById( htmlElementId ); if ( scriptElement ) return Promise.resolve(); } console.log( "Loading \"" + url + "\"" ); return new Promise( ( resolve, reject ) => { l...
/* * Copyright (c) 2017 <NAME> */ 'use strict' const AWS = require('aws-sdk') const EventEmitter = require('events').EventEmitter const Message = require('./Message') const url = require('url') const TimeoutExtender = require('./TimeoutExtender') /** * The maximum number of messages that can be sent in an SQS sen...
import { EventDispatcher, MOUSE, Vector2, Vector3, Spherical, Plane } from '../../../build/three.module.js'; //Author: William https://github.com/WilliamLiu-1997 // This set of controls performs Rotating, dollying (zooming for OrthographicCamera), and panning. // Pan up / down / left / right ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.LC7001 = void 0; const crypto_1 = __importDefault(require("crypto")); const events_1 = require("...
// Initialize Firebase var config = { apiKey: "<KEY>", authDomain: "magicalbanana-ea115.firebaseapp.com", databaseURL: "https://magicalbanana-ea115.firebaseio.com", projectId: "magicalbanana-ea115", storageBucket: "magicalbanana-ea115.appspot.com", messagingSenderId: "474210225853" }; firebase.i...
/* eslint-env mocha */ const assert = require('assert') const $rdf = require('@rdfjs/data-model') const { csvw, xsd } = require('../src/namespaces') const { validateTerm } = require('../index') describe('#validateTerm', () => { it('returns true for terms without datatype', () => { const term = $rdf.literal('tes...
function cardMgr(initBoardName) { var serverSavePoint = "SaveData.ashx"; var serverGetPoint = "GetData.ashx?id="; var cardManager = this; var localStorageID = 'cards'; var storyCardSelector = '.story-card'; this.maxSwatches = 9; this.movingClass= "dragging"; this.editClass= "editing"; this.cardContainer = $('....
debugMsg('Module: events.js','init'); function bc_eventStructureReady(structure) { if(structure.player == me){ switch (structure.stattype) { case LASSAT: lassat_charged = true; debugMsg('lassat charged','lassat'); playerData.forEach( function(data, player) { chat(player, ' from '+debugName+': '+...
//sales order part java script var path = window.location.pathname.split('/'); var http = window.location.origin + '/' + path[1]; var webapi= window.location.origin + '/' + path[1] + '/backend/index.php/api/'; $(document).ready(function(){ var jenis_so=$('#jenis_penjualan').val(); console.log(jenis_so); if($('#jenis...
// Functions for the moon // Meeus first edition table 45.A Longitude and distance of the moon var T45AD = new Array(0, 2, 2, 0, 0, 0, 2, 2, 2, 2, 0, 1, 0, 2, 0, 0, 4, 0, 4, 2, 2, 1, 1, 2, 2, 4, 2, 0, 2, 2, 1, 2, 0, 0, 2, 2, 2, 4, 0, 3, ...
// Copyright 2012 <NAME> | <EMAIL> // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, ...
const get = require('./gh-got-wrapper'); let config = {}; module.exports = { // Initialization getRepos, initRepo, getRepoForceRebase, setBaseBranch, // Search getFileList, // Branch branchExists, getAllRenovateBranches, isBranchStale, getBranchPr, getBranchStatus, getBranchStatusCheck, ...
/* * Copyright 2021 Adobe. All rights reserved. * This file is licensed to you 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 appli...
var _ = require('lodash'); var Q = require('q'); var utils = require('./utils'); var BaseError = utils.BaseError; var log = require('./log/api'); var Logger = log.Logger; var contacts = require('./contacts/api'); var ContactStore = contacts.ContactStore; var GroupStore = contacts.GroupStore; var metrics = require('...
$(function(){ // 加载商城信息 var purNum; //购买区的产品数; var exNum; //兑换区的产品数; var getId; //兑换或者购买按钮的对应ID值; var sessionid; //session_id变量; var reward_id; var btn_open = document.getElementById('btn_open'); var open_app = document.getElementById('open_app'); btn_open.addEventListener('click', function() { ...
// engine.js for Perlenspiel 3.2 // The following comment lines are for JSLint. Don't remove them! /*jslint nomen: true, white: true */ /*global PS */ /** * GlassForge engine * Object & event driven engine with basic class, event, and level scripting for Perlenspiel 3.2 * Authors: Joseph (<EMAIL>) and Lambert (<EM...
const squares = [ BigInt.asUintN(64, 0b0000000000000000000000000000000000000000000000000000000000000010n), BigInt.asUintN(64, 0b0000000000000000000000000000000000000000000000000000000000001000n), BigInt.asUintN(64, 0b0000000000000000000000000000000000000000000000000000000000100000n), BigInt.asUintN(64, 0b00000000000000...
var Settings = { showAdvanced: false, ADVANCED_CLASS: 'advanced-setting', TRIGGER_CHANGE_CLASS: 'trigger-change', DATA_ROW_CLASS: 'value-row', DATA_COL_CLASS: 'value-col', ADD_ROW_BUTTON_CLASS: 'add-row', ADD_ROW_SPAN_CLASSES: 'glyphicon glyphicon-plus add-row', DEL_ROW_BUTTON_CLASS: 'del-row', DEL_RO...
/*global Papa,d3,yadcf,showPDBtable,showAlert, _, signprotmat, con_seq, non_interactions,interactions_metadata,interactions,gprot,receptor*/ let pdb_sel = []; // Global Variable let data; let svg; let xScale; let yScale; let fscale; let xAxis; let yAxis; let xAxisGrid; let yAxisGrid; let pdbScale; let sigScale; let c...
'use strict'; const async = require('async'); const _ = require('lodash'); const Promise = require('bluebird'); const Joi = require('joi'); const https = require('https'); const url = require('url'); function parseUrl(adr) { return url.parse(adr); } function EmptyError(message, extra) { Error.captureStackTrace(t...
const inquirer = require('inquirer'); const path = require('path'); const fs = require('fs-extra'); const category = 'interactions'; const parametersFileName = 'lex-params.json'; const serviceName = 'Lex'; const fuzzy = require('fuzzy'); async function addWalkthrough(context, defaultValuesFilename, serviceMetadata) {...
const web = 'https://oje.seucpc.club:84/' const { WindowsToaster } = require('node-notifier'); const fs = require('fs'); const fsp = fs.promises; const path = require('path'); const { clipboard, remote } = require('electron'); const { Menu, MenuItem, dialog } = remote; const win = remote.getCurrentWindow(); ...
$.fn.removeClassPrefix = function(prefix) { this.each(function(i, el) { var classes = el.className.split(" ").filter(function(c) { return c.lastIndexOf(prefix, 0) !== 0; }); el.className = $.trim(classes.join(" ")); }); return this; }; function getInterfaceColor() { return $('body').attr('clas...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("va...
"use strict"; // Copyright 2020 Google LLC // 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 agre...
// var async = require("async"); var pivot = require('../pivot/strategy') var macd = require('../macd/strategy') var ehlers_ft = require('../ehlers_ft/strategy') var momentum = require('../momentum/strategy') var crypto = require('crypto') var Phenotypes = require('../../../lib/phenotype') var n = require('numbro') va...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deactivate = exports.activate = exports.editorUriScheme = void 0; const vscode = require("vscode"); const path = require("path"); const util_1 = require("./util"); const getHtml_1 = require("./getHtml"); const instanceManager_1 = requi...
const ytdl = require("ytdl-core"); const yts = require("yt-search"); const WaffleResponse = require("../message/WaffleResponse"); const ArgumentHandler = require("../message/ArgumentHandler"); const { QueueItem, QueueContract } = require("./MusicQueue"); const { getNumberFromArguments, getSafe, isStaff, randomM...
/** source for calculations http://www.braeunig.us/apollo/apollo11-TLI.htm */ import { DEG_TO_RAD, RAD_TO_DEG, FT_TO_M, KM, CIRCLE, DAY } from '../../constants'; import { earth } from './bodies/earth'; import { getJD } from '../../utils/JD'; //source: http://www.csgnetwork.com/siderealjuliantimecalc.html function ge...
var Economy = require('../economy'); var mongo = require('../mongo'); var User = mongo.userModel; var MarketPlace = mongo.MarketPlace; var Item = MarketPlace; var PSGO = require('../PSGO'); var addCard = PSGO.addCard; var getCards = PSGO.getCards; var Cards = PSGO.cards; var packs = PSGO.packs; var packsKeys = Object.k...
var debug = null; var heights = new Array(); var b = null; var w = 32; var h = 32; var s = 60; // frame delay var lx = 0; // The index of the first visible slice var score = 0; var scoreboard = null; var hero = null; var baddies = new Array(); var playing = true; var running = true; var Constants = { UP: 1, LEF...
// TODO: Code this up! let lock_icon = ` <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-lock-fill" fill="green" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 9a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9z"/> <path fill-rule="evenodd" d="M4.5 4a3.5 3.5 0 1 1 7 0v3h-1...
/* * * AUTHOR: <NAME> * GITHUB: https://github.com/JoseAntonioLpz * REPOSITORY: https://github.com/JoseAntonioLpz/lpzJS * LICENSE: MIT * */ (function(){ var all = document.getElementsByTagName('canvas'); for(let canvas of all){ switch(canvas.className){ case 'graphic_bar_lpz': graphicBar(canvas); brea...
var socket = io(); var play = { currentPlayer: true, currentPlayer: {}, queryObj: null, gameID: null, teamList: [{},{}], animateDuration: 2000, cardFront: true, fullSyncPeriod: 10000, singleSends: 0, btnSize: '', percentHeights: [ {selector:'.btn-player', height:0.1}, {selector:'#quickHea...
// Copyright 2018 Google LLC // // 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 ...
/* jslint browser: true */ /*********************************************************** Fields. ************************************************************/ var _midi_dialog_id = "fs_midi_output", _midi_dialog, _current_midi_out_slice = null, _midi_code_change_timeout = null, _midi_code_change...
// An expansion implementing a configurable Points System to allow guild members to gain rewards for doing certain actions. const db = require("../index").evg.remodel("points"); const Settings = require("../index").settings; const fs = require("fs"); const client = require("../index").getClient(); const Command = req...
/* global L */ /* global $ */ var mymap var heatmapLayer = null var markersLayer = null // values for arrow keys const arrowKeyLEFT = 37 const arrowKeyRIGHT = 39 var startX = 49.7248 var startY = 13.3521 var startZoom = 17 var dataSourceRoute let positionsSourceRoute let currentTime let currentDate var timer var ...
// // Provides functionality to filter and group results in tables. // /* * What's in this file? * * Event Handlers: * - tiqitFilterHandleNewRow * - tiqitFilterHandleNewCol * - tiqitFilterHandleModCell * - tiqitFilterHandleDelRow * * Helper Functions: * - tiqitFilterFieldIncr * - tiqitFilterFieldDecr * - t...
/** * ioBroker.ctrl (ioBroker Controller) * * Controls Adapter-Processes * * */ // Change version in io-package.json and start grunt task to modify the version var version = '0.0.19'; var title = 'io.js-controller'; process.title = title; var schedule = require('node-schedule'); var os = ...
var d3 = require('d3'); var debug = require('debug')('transitive'); var Emitter = require('emitter'); var each = require('each'); var Display = require('./display'); var drawGrid = require('./draw-grid'); var Graph = require('./graph'); var NetworkPath = require('./path'); var Route = require('./route'); var RoutePatt...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(gene...
var Kinect2 = require('kinect2'), express = require('express'), app = express(), server = require('http').createServer(app), io = require('socket.io').listen(server); XLSX = require('xlsx'); const fs = require('fs'); var kinect = new Kinect2(); var clients = 0; if(kinect.open()) { // Server Initiation server.li...
/** * jQuery Extensions * @param {object} $ * @returns {mixed} */ (function ($) { var GEXT = { clearForm: function () { return this.each(function () { var type = this.type; var tag = this.tagName.toLowerCase(); if (tag === 'form') { return $(':input', this) ...
//Get data from Laravel Controller var Invoice_item = windowvar.invoice_item var mode = windowvar.mode var invoice_id = windowvar.id var shipping_method = windowvar.shipping_method var clients = windowvar.clients let sel_client = windowvar.sel_client let strains ...
import React from 'react'; import { connect } from 'react-redux' import {Dimensions,DeviceEventEmitter,InteractionManager,ListView,StyleSheet,View,RefreshControl,Text,ScrollView,Image,Platform,Clipboard,TextInput,KeyboardAvoidingView,TouchableOpacity,TouchableHighlight,FlatList} from 'react-native'; import {TabViewAnim...
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Prompt, Redirect } from 'react-router'; import { Formik, Field, Form } from 'formik'; import { Button, Row, Col, ButtonToolbar, ButtonGroup, DropdownItem, DropdownMenu, DropdownToggle, ...
import React, { Fragment, useEffect, useState } from 'react'; import CountUp from 'react-countup'; import { Col, Row, Spinner, } from 'reactstrap'; import CardSummary from '../common/CardSummary'; import LineChart from '../common/LineChart'; import { toast } from 'react-toastify'; import SharePie from '../commo...
// 5th Edition OGL by Roll20 Companion Script // API Commands: // !ammotracking on/off/quiet - Automatically expends linked resource when attack is made // !autonpctoken on/off - Automatically generates a NPC token on the GM's screen based on the default token when an NPC's health calculation is rolled // !deathsavetra...
"use strict"; const fs = require("fs"); const { ethers } = require("ethers"); const rpc = require('json-rpc2'); const conf = require('ocore/conf.js'); const desktopApp = require("ocore/desktop_app.js"); const db = require('ocore/db.js'); const network = require('ocore/network.js'); const eventBus = require('ocore/event...
/**************************************************************************** Copyright (c) 2017-2018 <NAME> Software Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, world...
import {drawKeyPoints, drawSkeleton} from './utils' import React, {Component} from 'react' import * as posenet from '@tensorflow-models/posenet' // TK EDITED SOCKET // import {socket} from '../../../services/socketIO' import { LioWebRTC } from 'react-liowebrtc' import ChatBox from '../../Chat/CreatePraxSpace/chatbox'...
-(function (factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { module.exports = factory(require('jquery')); } else { factory(window.jQuery); } }(function ($) { $.extend($.summer...
'use strict'; exports.__esModule = true; var _setPrototypeOf = require('babel-runtime/core-js/object/set-prototype-of'); var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); var _create = require('babel-runtime/core-js/object/create'); var _create2 = _interopRequireDefault(_create); var _assign = requi...
//espiners de los forms cliente , conductor y empresa $("#spinner_conductor").hide(); $("#spinner_conductor2").hide(); $("#spinner_conductor3").hide(); $("#spinner_cliente").hide(); $("#spinner_empresa").hide(); $("#spinner_btn_registrar").hide(); $("#spinner_btn_crearContrato").hide(); $("#card_conductor_2").hide(); $...
/** * @fileoverview Disallow inherently non-interactive elements to be assigned * interactive roles. * @author <NAME> * @author $AUTHOR */ // ----------------------------------------------------------------------------- // Requirements // ---------------------------------------------------------------------------...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * This file resembles what we use for our internal configuration. Several changes * have been made to acoomodate the differences b...
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ goog.module('goog.date.relativeCommonTests'); goog.setTestOnly('goog.date.relativeCommonTests'); const DateTime = goog.require('goog.date.DateTime'); const DateTimeFormat = goog.require('goog.i18n.DateTimeFormat'); co...
function perspective(fieldOfViewInRadians, aspect, near, far, dst) { /* * Computes a 4-by-4 perspective transformation matrix given the angular height * of the frustum, the aspect ratio, and the near and far clipping planes. The * arguments define a frustum extending in the negative z direction. Th...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _mssql = _interopRequireDefault(require("mssql")); var _ErrorMessage = _interopRequireDefault(require("../../ErrorMessage.js")); function _interopRe...
/* * checkboxTreeHelper.js * Created by <NAME> 10/01/2019 */ import { difference, cloneDeep, isEqual } from 'lodash'; export const doesMeetMinimumCharsRequiredForSearch = (str = '', charMinimum = 3) => ( str && str.length >= charMinimum ); const getChildren = (node, keyMap) => { if (!node.children &&...
const question = document.querySelector('#question'); const choices = Array.from(document.querySelectorAll('.choice-text')); const progressText = document.querySelector('#progressText'); const scoreText = document.querySelector('#score'); const progressBarFull = document.querySelector('#progressBarFull'); let currentQ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[...
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { FetchedData, Param } from './fetched'; import { BrowserFeat } from './browserfeat'; import { filterForVisualizableFiles } from './objectutils'; //import AutocompleteBox from './region_search'; const domainName = 'https:...
// convert all characters to lowercase to simplify testing var agt=navigator.userAgent.toLowerCase(); // *** BROWSER VERSION *** // Note: On IE5, these return 4, so use is_ie5up to detect IE5. var is_major = parseInt(navigator.appVersion); var is_minor = parseFloat(navigator.appVersion); ...
"use strict"; var Backbone = require('../../shim/backbone'), $ = require('jquery'), _ = require('lodash'), turfArea = require('turf-area'), L = require('leaflet'), utils = require('./utils'), weatherStationLayer = require('./weatherStationLayer'), drawUtils = require('../draw/utils'), s...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
/** * Copyright reelyActive 2020 * We believe in an open Internet of Things */ // Constants const DASHBOARD_UPDATE_MILLISECONDS = 2000; const STATISTICS_INTERVAL_MILLISECONDS = 1000; const DEFAULT_ID_FILTER_VALUE = 'ac233'; const SNIFFYPEDIA_BASE_URL = 'https://sniffypedia.org/'; const DEFAULT_ASSOCIATIONS_SERVER_...
export const getSectorCollection = () => [ { id: 1, title: 'Education' }, { id: 2, title: 'Financial Services' }, { id: 3, title: 'Retail' }, { id: 4, title: 'Transportation' }, { id: 5, title: 'Media' }, { id: 6, title: 'Professional services' }, { id: 7, title: 'Government' }, { id: 8, title: 'Manufac...
/** * Spotlight.js * Copyright 2019 Nextapps GmbH * Author: <NAME> * Licence: Apache-2.0 * https://github.com/nextapps-de/spotlight */ import { addClass, removeClass, toggleClass, setStyle, prepareStyle, getByClass, setText, addListener, toggleListener, cancelEvent, c...
/* * Copyright 2017-18 IBM Corporation * * 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 ...
import { Vector3 } from '../../../math/Vector3.js'; import { FlowTriangulate, USE_HANDEDNESS } from './FlowTriangulate.js'; import { FlowVertex } from './FlowVertex.js'; const CALC_VEC = new Vector3(); const CALC_VEC2 = new Vector3(); const CALC_VEC3 = new Vector3(); /** * Gridless flowfield on navmesh generation *...
/********************************** EDGE! **********************************/ Edge.COLORS = { "-3":"#000000", // black "-1":"#666666", // grey 0: "#EA3E3E", // red 1: "#EA9D51", // orange 2: "#FEEE43", // yellow 3: "#BFEE3F", // green 4: "#7FD4FF", // blue 5: "#A97FFF", // purple 6: "#DDDDDD" // light grey ...
// import * as THREE from './third-party/threejs/three'; /** * WoningVR is realized with the help of an article on Medium * https://medium.com/adventures-in-consumer-technology/how-to-start-building-your-own-webgl-based-vr-app-cdaf47b8132a * * Description : WoningVR is based on heavy javascript use, which renders ...
'use strict'; let camera, scene; let renderer, controls, raycaster; let objects = []; let moveForward = false; let moveBackward = false; let moveLeft = false; let moveRight = false; let prevTime = performance.now(); let velocity = new THREE.Vector3(); let direction = new THREE.Vector3(); let vertex = n...
/** * This file is part of NodeJS SMPP library * * @author <NAME> <<EMAIL>> * @license The MIT License * @copyright Copyright(c) 2011 - present <NAME> <<EMAIL>> */ var command_id; var command_status; var optional_tag; /** * PDU command IDs (command types) */ exports.command_ids = { 0x80000000: 'generic_na...
/** * * @fileoverview Sequence Matching Game * @author <EMAIL> (<NAME>) */ //global constant variables /** @const */ var MATCH_COLOR = "#90EE90"; /** @const */ var MISMATCH_COLOR = "#809fff"; /** @const */ var GAP_COLOR = "#ff6666"; /** @const */var ITEM_BACKGORUND_OPACITY = 0.7; /** @const */var ORIGIN_NAME = "#...
var map = null; var campaignTable = null; var detailsTable = null; // labels is a map of campaign statuses to // CSS classes var labels = { "In progress": "label-primary", "Queued": "label-info", "Completed": "label-success", "Emails Sent": "label-success", "Error": "label-danger" } // detailLabels...
/* Some functions and some things down here are just for education only i know there are some deprecated functions and methods. Security tip (from eslint & jshint) : * I want to say that you should use console.log to check your variables and loops etc... * don't use document.write(can be a form of eval) and alerts pro...
var newProduct = { 'name':null, 'option':null, 'items':[], 'qty':1, 'special':null }; function reloadProduct(category, product, productType, price){ newProduct = { 'name':product, 'option':{ 'type':productType, 'price':parseFloat(price) }, ...
var n, l, u, i, t, o, r, f = {}, e = [], c = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i; function s(n2, l2) { for (var u2 in l2) n2[u2] = l2[u2]; return n2; } function a(n2) { var l2 = n2.parentNode; l2 && l2.removeChild(n2); } function v(n2, l2, u2) { var i2, t2, o2, r2 = argumen...