text
stringlengths
5.97k
41.2k
import { Move } from "./utility.js"; /* export const playerEvents = Object.freeze({ SUBMIT_MOVE: Symbol("submit move"), AI_SHOW_CHAINS: Symbol("show chains"), AI_HIDE_CHAINS: Symbol("hide chains"), }); */ export const CPUTypes = Object.freeze({ RANDOM: Symbol("random"), WEAK: Symbol("weak"), BASIC:...
/*! * communication.js (https://github.com/SamsungDForum/NativePlayer) * Copyright 2016, Samsung Electronics Co., Ltd * Licensed under the MIT license * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMP...
/* * Copyright 2015 Mirantis, 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 ...
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2021 Mozilla Foundation * * 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...
const idGen = require('./utils/idgen'); const shuf = require('./utils/shuffle'); const { isInBorder } = require('./utils/bordercheck'); const { states, roles } = require('./utils/enums'); const { Player } = require('./player'); const { HelicopterEscape } = require('./utils/extractpointchoice/helicopter'); const EVAC...
////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Electron Test App 'use strict'; // Node const util = require('util'); const path = require('path'); const child_process = require('child_process'); const EventEmitter = require('events').EventEmi...
import logging from "../lib/logging.js" const log = logging.get("parser") import { EVAL_CONSTANTS, EVAL_FUNCTIONS, EVAL_OPERATORS, EVAL_KEYWORDS } from "./constants.js" export default function parse(tokens) { function parseIdentifier() { log.debug("parseIdentifier", tokens[0]) if (tokens.length === 0) { ...
var assert = require('chai').assert; var config = require('../src/web/config/config.js'); require('dotenv').load(); function checkString(value, description) { assert.isNotNull(value, description); assert.isDefined(value, description); assert.isString(value, description); assert.isAtLeast(value.length, 1, descrip...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.str = str; exports.raw = raw; exports.vec = vec; exports.bytevec = bytevec; exports.uint = uint; exports.int = int; exports.makeSimple = makeSimple var I32 = exports.I32 = [127]; var I64 = exports.I64 = [126]; var F32 = exports.F32 ...
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } r...
/*Functions that do not work: *** download [fixed on 3/22/2021] *** Font size (view) [fixed on 3/22/2021] */ function myConfirmation() { return "Changes aren't automatically saved. Continue?"; } function auto_height(elem) { /* javascript */ elem.style.height = "1px"; elem.style.height = elem.scrollHeight + "px"...
'use strict' // defaults var zoom = 13; var locationZoom = 18; var lat = 45.070312; var lon = 7.686856; var baseColor = '#c32630'; var mapOptions = { center: [lat,lon], zoom: zoom }; var zoomControlPosition = 'bottomright'; // var baselayer = 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{...
var factorialZeros = function(n) { var i=1, f5=0, m; while((m=Math.pow(5,i))<n) { f5+=Math.floor(n/m); i+=1; } return f5; }; console.log(factorialZeros(100)); // http://courses.csail.mit.edu/iap/interview/Hacking_a_Google_Interview_Practice_Questions_Person_A.pdf // Question: Target Sum ...
var nomeUtente, idUtente; //Contiene tutte le partite programmate per la prossima giornata var partiteDisponibiliPronostico = []; //Contiene i pronostici dell'utente var partitePronosticiUtente = []; //Ricava dal token l'username dell'utente function username() { var urlUserUsername = "/api/v2/addPronostici/user...
/** Copyright (c) 2018 Uber Technologies, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ /* eslint-env node */ const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); const Uglif...
import { api, LightningElement, track, wire } from 'lwc'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; import { getRecord } from 'lightning/uiRecordApi'; import { dispatch, handleError, generateId } from 'c/utilTemplateBuilder'; import { deepClone, format, getNamespace, hasNest...
async function AmmoPhysics() { if ('Ammo' in window === false) { console.error('AmmoPhysics: Couldn\'t find Ammo.js'); return; } //------------------------------------------------------------------- // Init ammo //------------------------------------------------------------------...
//const NFTcardsWith20Nfts = artifacts.require(".NftCardsWith20Nfts.sol"); const Jungle = artifacts.require('JungleToken.sol'); const NFTCards = artifacts.require("NFTCards.sol"); const ProxyJungleContract = artifacts.require('JungleProxy.sol'); const ProxyNftContract = artifacts.require('NFTProxy.sol'); const { exp...
import './styles/styles.scss' import $ from 'jquery' import TweenMax from 'gsap' import slick from 'slick-carousel' import * as Action from './actions' import Mustache from 'mustache' import Navigation from './components/Navigation' import Intro from './components/Intro' import Loadbox from './components/Loadbox' impor...
function loadMonthOrderNumber(_year) { //获取月不同订单数 $.get("/BusinessMG/analy/data/month/orderNumber", {year: _year, global_shopId: global_shopId}, function (data) { data = eval(data); //配置图表要展示的数据。每个系列是个数组,每一项在图片中都会生成一条曲线。 series = data[1]; //配置要在 X 轴显示的项。 xAxis = data[0]; ...
var ambigDateOfMonthRegex = /^\s*\d{4}-\d\d$/; var ambigTimeOrZoneRegex = /^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/; var newMomentProto = moment.fn; // where we will attach our new methods var oldMomentProto = $.extend({}, newMomentProto); // copy of original mom...
//jscs:disable requireArrowFunctions 'use strict'; var template = document.querySelector('#t'); template.isAuthenticated = false; var DEBUG = template.DEBUG; // console.log('Initialising Synopses App'); var PATIENT = (location.pathname === '/patient/' || location.pathname.search('-patient.') > 0); var link = ...
/******************************************************************************* * $URL: $ * $Id: $ * ********************************************************************************** * * Copyright (c) 2010 The Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License");...
// VARIABLES var body = document.querySelector("body"); var mainSection = document.querySelector("main"); var appointmentEntrySection = document.querySelector(".create-appointment-entry"); var appointmentEntryButton = document.querySelector(".create-appointment-entry-button"); var appointmentDateSection = document.quer...
const BaseGame = require('../shared/base_game') const map = require('./map') const PLAYER_COLORS = [ '#d32f2f', // Red 700 '#00bcd4', // Cyan 500 '#fdd835', // Yellow 600 '#9c27b0', // Purple 500 '#ff9800', // Orange 500 '#2196f3', // Blue 500 '#795548', // Brown 500 '#e91e63', // Pink 500 ] const MAX_...
angular.module('material.components.tabs', ['material.utils', 'material.animations']) .controller('materialTabsController', [ '$iterator', '$scope', NgmTabsController]) .directive('materialTabs', [ '$compile', 'materialEffects', NgmTabsDirective ]) .directive('materialTab', [ '$attrBind', NgmTabDirective ]); /*...
/** * @name BetterFolders * @author Zerthox * @version 2.3.0 * @description Add new functionality to server folders. * @source https://github.com/Zerthox/BetterDiscord-Plugins */ /*@cc_on @if (@_jscript) var name = WScript.ScriptName.split(".")[0]; var shell = WScript.CreateObject("WScript.Shell"); var fs...
import React from 'react'; import { withStyles, MuiThemeProvider, createMuiTheme, } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Grid from '@material-ui/core/Grid'; import SEO from '../seo'; import BasicImageCard from '../Card/BasicImageCard'; import TextField from '@mate...
"use strict"; require("core-js/modules/es.symbol.description"); require("core-js/modules/es.array.filter"); require("core-js/modules/es.array.from"); require("core-js/modules/es.array.index-of"); require("core-js/modules/es.array.iterator"); require("core-js/modules/es.array.map"); require("core-js/modules/es.ar...
"use strict"; 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 = R...
var context; var queue; var WIDTH = 1024; var HEIGHT = 768; var mouseXPosition; var mouseYPosition; var batImage; var stage; var animation; var deathAnimation; var spriteSheet; var enemyXPos=100; var enemyYPos=100; var enemyXSpeed = 3.5; var enemyYSpeed = 2.75; var score = 0; var scoreText; var levelUpText; var display...
import alpha from '../lib/color-alpha'; import Base from '../core/Base'; import { clamp, almost, len, parseUnit, toPx, isObj } from '../lib/mumath/index'; import gridStyle from './gridStyle'; import Axis from './Axis'; import { Point } from '../geometry/Point'; // constructor class Grid extends Base { constructor(...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defi...
import React from 'react'; import PropTypes from 'prop-types'; import TagLabel from 'talk-plugin-tag-label/TagLabel'; import CommentTimestamp from 'coral-framework/components/CommentTimestamp'; import {ReplyBox, ReplyButton} from 'talk-plugin-replies'; import {FlagComment} from 'talk-plugin-flags'; import {can} from '...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var slicedToArray = require('./slicedToArray-0711941d.js'); require('./unsupportedIterableToArray-68db1d3b.js'); var React = ...
import loadable from '@loadable/component'; import { Button, Grid, Paper, TextField, Typography } from '@material-ui/core'; import { DrawerProvider } from 'common/contexts/DrawerContext'; import { saasModernTheme } from 'common/theme/saasModern'; import PropTypes from 'prop-types'; import SEO from 'components/seo'; imp...
class LGame { constructor() { // public this.width = undefined; this.height = undefined; // private this.values = undefined; this.counters = undefined; this.neighbors = undefined; this.candidates = undefined; } reset() { this.values.fill(0); this.counters.fill(0); this...
"use strict"; var nj = require('numjs'); var arucoUtil = require('./arucoUtil'); var UPDATE_EVERY = 30; var FAR_PLANE= 1000; var NEAR_PLANE= 0.01; var MAX_SNAP = 10; var THRESHOLD_ERROR = 2.5; var SCALE_FACTOR = 4; var MINIMUM_GL_SIZE = 200; var cv = require('../opencv'); var cvPromise = (function() { return ne...
var comment_data; var emote_data; var filters; function inject(){ //console.log("injecting"); var video_div = [undefined]; while(video_div[0] == undefined) { video_div = document.getElementsByClassName("channel-root__player-container tw-pd-b-2"); } var emote_root_div = document.cr...
"use strict"; const path = require("path"); // const { promises: fs } = require("fs"); const execa = require("execa"); const terminalLink = require("terminal-link"); const { replaceInFile } = require("replace-in-file"); const fs = require('fs'); const { exec } = require('child_process'); const process = require('proces...
'use strict'; import _ from 'lodash'; import React from 'react'; import ReactDOM from 'react-dom'; import createShader from 'gl-shader'; import createBuffer from 'gl-buffer'; import getContext from 'get-canvas-context'; import keycode from 'keycode'; import mouseWheel from 'mouse...
var nom_acc = $("#auth_bienv_nom").text().trim().toLowerCase(); function getInfDir(id_direccion) { $("#load-Entrega").show(); $("#load-Totales").show(); id_direccion = $("#inputGroupSelect01").val(); $("#form_check").removeClass('was-validated'); // $("#loaderSimp").show(); $.ajax('/getDireccio...
#!/usr/bin/env node /* …[ [ … [ [[∞]] ] … ] ]… # Backwater Systems ◦ `static-server.js` A fine HTTP(S) development server for static content _Powered by [`Koa`](https://koajs.com/)_ --- © 2020 – 2021 [<NAME>](mailto:<EMAIL>) ◦ [Backwater Systems...
import { GalleryXZ } from './GalleryXZ.js'; export function MThree(menu, fun) { var self=this this.type="MThree"; this.par=menu; this.fun=fun; this.param=menu.param; this.otstup=this.param.otstup; this.wh=32; this.whv=20; this.widthBig=this.param.sizeBase-this.otstup*2; ...
import _ from 'lodash'; import React from 'react'; import { Button, Icon, Tag } from 'antd'; import PropTypes from 'prop-types'; import { Link, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import { have...
import 'antd/dist/antd.css'; import React from 'react'; import PropTypes from 'prop-types'; import ReactCursorPosition from 'react-cursor-position'; import { Breadcrumb, Icon, Layout, Menu, message, Switch, Upload } from 'antd'; import macro from 'vtk.js/Sources/macro'; import Color from './widgets/Color'; import I...
var timeOn = null; var numMenus = 50; var currentMenuNo = 0; var menuActive = new Array(numMenus); var tier = new Array(numMenus); var borderMod = new Array(numMenus); var offClass = new Array(numMenus); var onClass = new Array(numMenus); var offColours = new Array(numMenus); var onColours = new Array(numM...
$(document).ready(function () { var header_header = $('.head_two').innerHeight(); var header_display = $('.head_two').css('display'); if (header_display !== 'none') { $('.head_three').css('top', header_header); } // if ($(window).width() < 1000) { // $('.head_three').css('top', 0); // } // conso...
var User = require('../models/User.js'); var Book = require('../models/Book.js'); var BookProp = require('../models/BookProp.js'); var filter = require('../models/Filter.js'); var database = require("./database_setting.js"); module.exports = function(app) { app.put('/book/:isbn/borrow', filter.authorize, function(re...
// Bundestagswahl Tabulator, MIT Licensed. (C) <NAME> var Bundestagswahl = Bundestagswahl || {}; // Source: http://bundeswahlleiter.de/de/aktuelle_mitteilungen/downloads/20130902_Sitzkontingente.pdf Bundestagswahl.STATE_SEATS = { 1: 22, // SH 2: 13, // HH 3: 59, // NI 4: 5, // BR 5: 128, // NW...
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import IconButton from '@material-ui/core/IconButton'; import Grid from '@material-ui/core/Grid'; import SwapHoriz from '@material-ui/icons/SwapHoriz'; import Tooltip from '@material-ui/core/...
'use strict'; const common = require('@metarhia/common'); const types = require('./types'); const { iter } = common; const ALL_TYPES = new Set(types.STANDARD_TYPES); const MAX_LINE_LENGTH = 80; const SECONDARY_OFFSET = 2; const COMMENTS_SECONDARY_OFFSET = 0; const CODE_PARAMS_OFFSET = 2; const baseUrl = 'https://...
// The xml serializer uses the default line break of the plateform. // So we need to know the value of this default line break, in order // to build correctly the reference strings for tests. // This variable will contain this value. var LB; function run_test() { if(("@mozilla.org/windows-registry-key;1" in C) || ...
import endpoint from '../../lib/endpoint'; import regeneratorRuntime from '../../lib/runtime'; import { houseTypesMapper, spaceTypeMapper, customDetailMapper } from '../../utils/convertor'; import { login, getImageInfo, uploadImageFiles } from '../../lib/promise'; import { trackRequest } from '../../utils/util'; var ap...
// 大部分采用 create-react-app 配置 'use strict'; const path = require('path'); const chalk = require('chalk'); const safePostCssParser = require('postcss-safe-parser'); const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent'); const webpack = require('webpack'); const PnpWebpackPlugin = require('pnp...
function RGBToHSL(r, g, b) { if (Array.isArray(r)) { g = r[1]; b = r[2]; r = r[0]; } var r = r / 255; var g = g / 255; var b = b / 255; var cMax = Math.max(r, g, b); var cMin = Math.min(r, g, b); var delta = cMax - cMin; if (delta == 0) { var h = 0; ...
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file 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.apach...
function validarCampos(event) { var mensaje = '' if($("#tituloEncuesta").val() == '') { $("#tituloEncuesta").css('border-bottom','solid 2px red'); mensaje += 'Debe digitar el título de la encuesta<br>'; } else { $("#tituloEncuesta").css('border-bottom','solid 2px gray'); ...
/** * Windows Titanium Module Generator * * Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License. * Please see the LICENSE included with this distribution for details. */ var fs = require('fs.extra'), ejs = require('ejs'), inq = require('inquirer...
window.addEventListener("load", startup, false) // Create all the fields for stats and skills appendStatSelectors(document.querySelector("table#tableStats"), statNames, "stat"); appendStatSelectors(document.querySelector("table#tableSkills"), skillNames, "skill"); petTypeBuilder(document.querySelector("select#petType"...
import React, { Component } from 'react'; import { Map } from 'immutable'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { requestPostAPI } from 'components/GRUtils/GRRequester'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as GRConfir...
const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); const WebpackBar = require('webpackbar'); const resolve = require('resolve'); const PnpWebpackPlugin = require('pnp-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = req...
'use strict'; require('../../core-upgrade.js'); var DU = require('../utils/DOMUtils.js').DOMUtils; var JSUtils = require('../utils/jsutils.js').JSUtils; /** * A DOM diff helper class * * Compares two DOMs and annotates a copy of the passed-in DOM with change * information for the selective serializer. */ functio...
import CONFIG from '../config'; import Firebase from 'firebase'; import THREE from 'three.js'; import React from 'react'; import ReactDOM from 'react-dom'; import _Camera from './Scene/Camera'; import Stage from './Scene/Stage'; import Model from './Scene/Model'; import Voxelizer from './Scene/Voxelizer'; import SceneC...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import IconButton from '@material-ui/core/IconBu...
"use strict"; const ipc = require('electron').ipcRenderer const {webFrame} = require('electron'); // helpers: function $(selector,container) { return (container || document).querySelector(selector); } // Note: Only clones 2D arrays function cloneArray(arr) { return arr.slice().map(function(row) { return row.s...
import { PdfGrid, PdfPen, PointF, PdfDocument, PdfStandardFont, PdfFontFamily, PdfSolidBrush, PdfColor, PdfStringFormat, PdfVerticalAlignment, PdfTextAlignment, PdfFontStyle, PdfPageTemplateElement, RectangleF, PdfBorders } from '@syncfusion/ej2-pdf-export'; import * as events from '../../common/base/constant'; import ...
import { EventHandler, Browser, closest } from '@syncfusion/ej2-base'; import { getRangeIndexes, getRangeFromAddress, getIndexesFromAddress, getRangeAddress } from '../../workbook/common/address'; import { keyDown, editOperation, clearCopy, keyUp, mouseDown, selectionComplete, enableToolbar } from '../common/event'; im...
/* * Kuzzle, a backend software, self-hostable and ready to use * to power modern apps * * Copyright 2015-2020 Kuzzle * mailto: support AT kuzzle.io * website: http://kuzzle.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
// import * as PIXI from '../lib/es6/pixi.js/index'; import * as PIXI from 'pixi.js'; import CObject from './CObject'; import CPhysicsCtrl from './CPhysicsCtrl'; import CSoundCtrl from './CSoundCtrl'; import CController from './CController'; import CGroup from './CGroup'; import CMouse from './CMouse'; import CTween fr...
/* * iFollowSpot Web Application * created by <NAME> 2018 * Licensed under MIT License * */ // ========== MQTT CONFIGURATION ========== var client = mqtt.connect({host: '192.168.1.1', port: 1883}); var topic = "ifollowspot"; // ========== DEFAULT SETTINGS ========== var dmxShutterChD = 1; var dmxDimmerChD =...
/* * prompt.js: Simple prompt for prompting information from the command line * * (C) 2010, Nodejitsu Inc. * */ var events = require('events'), readline = require('readline'), utile = require('utile'), async = utile.async, read = require('read'), validate = require('revalidator').validate, ...
//ISC. <NAME>, 24/NOV/2012 var CVE_PERS = []; $(document).ready(function(){ var options = { beforeSubmit: showRequest, success: showResponse, url: '_subirArchivo.action?ID_CORRESPONDENCIA='+$('#ID_CORRESPONDENCIA').attr('value'), type: 'post', dataType: '...
var soundSys = { type: "testtype", seed_img: true, marks: 0, sampel_rate: 16, rgb_colors: '', vel: 0, cf: 0, alien_temp: 0, future: 32, base_pos: 0, feliz_notes: 0, the_length: 0, base_tone_val: 0, send_base_tones: 0, first_base: 0, drums_on: false, logger: [], doc: {}, co...
import GenericSelector from './genericSelector'; import { squareDistance } from './../geometry'; import * as KnownVariables from './../knownVariables'; const defaultOptions = { asexualReproductionCost: 1000, eatRadius: 20, eggGestationTime: 300, foodHealth: 500, minimumCarnivores: 50, minimumHe...
const Gd = require('fastify-guarder')(); const Cst = Gd.global('Cst', require('../config/const')); const Env = Gd.global('Env', require('../config/env')); require('../config/redis')('king'); require('../config/sms_vender')('king'); // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
const http = require('http'); const crypto = require('crypto'); const qs = require('querystring'); const pm2 = require('pm2'); const vizion = require('vizion'); const {DeQueue} = require('sm-utils'); const _ = require('lodash'); const Tester = require('./tester'); const server = require('../server'); const slack = req...
/** Utils.js Various helper functions. • getRegExpMatches • isIndexFile • isProduction • makePathAbsolute • makeRoute • makeRouteKey • getFiles • readDirectory • readFileHead • sequence • uniqueExtensions • watch **/ // // Dependencies // var isEqual = require("lodash/isEqual"), ...
<!--hide script from older browsers // var VER = " QuoteCalc V5.2 GitHub "; function hideDiv(id) { if (document.getElementById && document.getElementById(id)) { // DOM3 = IE5, NS6 document.getElementById(id).style.display = 'none'; } } // end function function skipBlock(fromElem, targetIndex) { fromElem.querySe...
import { cssDefaults } from './css-defaults.js'; /* Compile style list */ const getStyles = (obj) => { const styles = []; for (const [keyObj, styleBlock] of Object.entries(obj)) { if(Array.isArray(styleBlock) || typeof styleBlock !== 'object') {continue} const browsers = getBrowsers(keyObj); ...
$(document).ready(function() { Carga(); }); //FUNCION PARA CARGAR LA TABLA Y ACTIVAR DATATABLES function Carga(){ var tablaDatos = $("#tbodyconsultor"); var route = $("#posicion").val() + "/consultores"; $.ajax({ url: (route), type: 'GET', dataType: 'json', }) ...
/* eslint-disable no-prototype-builtins */ import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Image, FlatList, Dimensions, } from 'react-native'; import { connect } from 'react-redux'; import { debounce } from 'lodash'; import PropTypes from 'prop-types'; import { List } from...
/* eslint-disable jsx-a11y/href-no-hash */ import React, { Fragment } from 'react'; import i18n from 'i18next'; import { TreeViewComponent } from '@syncfusion/ej2-react-navigations'; import { GridComponent, ColumnsDirective, ColumnDirective, Inject, Search, Sort, } from '@syncfusion/ej2-react-grids'; import...
/** @Js-name:return-goods.js @Zh-name:退货页面 @Author:tyron @Date:2017-04-11 */ var sodId = 0; var isGroup = false; var old_order = false; $(function () { var params = jems.parsURL().params; sodId = params.id; isGroup = params.isGroup == undefined ? false : true; if (sodId == null || sodId == "" || ty...
/* eslint-disable */ import React, { Component } from 'react'; import { Link } from "react-router-dom"; import { Modal } from 'react-bootstrap'; // import config import C_Config from '../../controllers/Config' import AdminSidebar from '../../components/AdminSidebar' import '../../asserts/commoncss/sidebar.css' impor...
/** @memberof Gulp */ const {_extend} = require('util') const browserify = require('browserify') const buffer = require('vinyl-buffer') const childExec = require('child_process').exec const cleanCSS = require('gulp-clean-css') const composer = require('gulp-uglify/composer') const concat = require('gulp-concat') const...
let APP_VERSION = '0.0.1f'; class StoryLoader { constructor() { } static GetUserProgress() { let progress = localStorage.getItem('user-progress'); progress = JSON.parse(progress); return progress; } static CheckUserProgress() { let progress = StoryLoader.GetUserPro...
import Vue from 'vue' import crypto from '../../relay/crypto' import { PublicKey } from 'bitcore-lib-cash' import { numAddresses, numChangeAddresses, nUtxoGoal, feeUpdateTimerMilliseconds, defaultFeePerByte } from '../../utils/constants' import formatting from '../../utils/formatting' import { calcId } from '../../util...
//////////////////////////////// // JsonResult : traitement réponse AJAX //////////////////////////////// // var parsJson = function(json) { // var rep = eval('(' + json + ')'); // ConsoleResult("######## Message retour (parsJson) : ", rep.result, true); // return rep; // } var backgroundFCY = 'rgba(100, 0, 0, 0....
const fs = require('fs') var Boroughs = { boroughs: { Queens: [], Bronx: [], Manhattan: [], Brooklyn: [], 'Staten Island': [] } } const neighborhoods = [ {neighborhood: 'Allerton', borough: 'Bronx'}, {neighborhood: 'Alley Pond Park', borough: 'Queens'}, {neighborhood: 'Arden Heights', bo...
#!/usr/bin/env node import '../lib/load-env-file.js'; import http from 'http'; import https from 'https'; import { Octokit } from '@octokit/rest'; import chalk from 'chalk'; import SiteCrawler from '../lib/site-crawler.js'; const USER_AGENT = `Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox...
import { hasOwn, parseStr, isObject, spliceStr, findClosest } from "@qtxr/utils"; const weakmapSupported = typeof WeakMap != "undefined", URL_MAP = weakmapSupported ? new WeakMap() : { map: {}, set(value, inst) { this.map[inst._uid] = value; return this; }, get(inst) { return this.map[inst._uid]...
/** @module ember @submodule ember-views */ import jQuery from "ember-views/system/jquery"; import { DOMHelper } from "morph"; import Ember from "ember-metal/core"; import { create } from "ember-metal/platform"; import environment from "ember-metal/environment"; // The HTML spec allows for "omitted start tags". These...
'use strict'; const path = require('path'); const fs = require('fs'); const uniq = require('lodash.uniq'); const WebpackTool = require('webpack-tool'); const webpack = WebpackTool.webpack; const merge = WebpackTool.merge; const utils = require('../utils/utils'); const Logger = require('../utils/logger'); const Adapter ...
'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 && obj !== Symbol.prototy...
var extend = require("../../core/utils/extend").extend, each = require("../../core/utils/iterator").each, numericTranslator = require("./numeric_translator"), categoryTranslator = require("./category_translator"), intervalTranslator = require("./interval_translator"), datetimeTranslator = require("....
import { ConnectedRouter, getRouter } from 'connected-react-router'; import isString from 'lodash.isstring'; import { parseSeedPhrase } from 'near-seed-phrase'; import PropTypes from 'prop-types'; import { stringify } from 'query-string'; import React, { Component } from 'react'; import ReactDOMServer from 'react-dom/s...
import React from 'react'; import {Form, Input, Modal, Col, Row, Upload, Icon, Table, Tag, Button, Select, DatePicker} from 'antd'; import {formatMessage} from 'umi/locale'; import styles from './AccountManage.less'; import Utils from '../../Common/Utils'; import moment from "moment"; import {idNoValidate, nameValidate...
/* global BASE_URL */ /* eslint-disable camelcase, no-underscore-dangle */ import $ from 'jquery'; import ko from 'knockout'; import logger from 'loglevel'; import localization from './localization'; import util from './util'; // check babel.config.js for actual import path import config from 'picker-config'; functi...
import React, { Component } from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { ZoomControl, LayerGroup, Marker, Popup } from 'react-leaflet' import L from 'leaflet' import { featureCollection } from '@turf/helpers' import _isObject from 'lodash/isObject' import _get from 'lodas...