text
stringlengths
5.97k
41.2k
const fs = require("fs"); const { Readable, Transform } = require("stream"); const crc32 = require('crc-32'); const pngSignature = Buffer.from('\x89PNG\r\n\x1A\n', 'ascii'); const emptyBuffer = Buffer.alloc(0); const bufferToVisualString = (buf) => { return [...buf].map((code) => { if (code === 10) { return '\...
// THREE import * as THREE from 'three'; import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader' import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' import dat from 'dat.gui'; // Classes require('./Utils/Stats'); //...
import React from 'react'; import { Button, makeStyles, TextField} from '@material-ui/core'; import FileUpload from 'react-material-file-upload'; import styles from './style'; import { ToggleButton, ToggleButtonGroup} from '@mui/material'; import { ethers } from 'ethers'; import Modal from "react-modal"; import { styl...
var DMTStations = [ "EX", "EY", "LVEA", "MX", "MY", "VAULT" ]; var PEMStations = DMTStations.concat([ "BSC1", "BSC5", "BSC6", "BSC9", "BSC10", "COIL" ]); var GDSStations = [ "MONITOR" ]; var PEMMagSensors = [ "MAGX", "MAGY", "MAGZ" ]; var PEMMag1Sensors = [ "MAG1X", "MAG1Y", "MAG1Z "]; var PEMArmSensors = [ "SEISX", "...
import axios from 'axios' import firebase from "firebase/app"; import "firebase/messaging"; firebase.initializeApp( { apiKey: "<KEY>", projectId: "trees-b8fdf", messagingSenderId: "256753508336", appId: "1:256753508336:web:af836cd97251283faac735" }); const fcmVapidKey = "<KEY>" let fcm = firebase.m...
/* Modified work Copyright 2019 <NAME> 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 wri...
import { Checkbox } from "@mui/material"; import { FormControl } from "@mui/material"; import { MenuItem } from "@mui/material"; import { OutlinedInput } from "@mui/material"; import { Select } from "@mui/material"; import { useState, useEffect } from "react"; import axios from "axios"; import Button from "@mui/materia...
const { Collection, MessageEmbed, WebhookClient } = require("discord.js"); const Levels = require("discord-xp"); const Statcord = require("statcord.js"); const chalk = require("chalk"); const mongoose = require("mongoose"); const cache = require("quick.db"); const Beautify = require("js-beautify").js_beautify; const c...
window.spiderSlaveTabInfos = { 'locked': false, 'api': {}, 'tabs': {}, 'wins':{} }; window.spiderSlaveUrls = {}; window.setInterval_getHtml = {}; window.setInterval_waitToComplete = {}; window.setTimeout_checkIsDie = {}; window.tabUrlIds = {}; window.baseWindow = undefined; window.setInterval_getLinksCache_lastRunTime ...
var TradeFee = Class.create(); Object.extend(TradeFee.prototype , { TITLE : ["费用项:80","应缴款:55","实收款:55","挂帐:50","减免流水号:160", "减免原因:180"], TITLE_CODE : ["feeType", "oldfee", "fee" , "deferTag", "derateId", "derateRemark"], TITLE_TYPE : ["TEXT" , "TEXT" , "TEXT", "SELECT" , "SELECT" , "TEXT"], ...
function make_nextnum(str) { // nextnum() will ignore unregconized chars return function() { while (str.length > 0) { var ch = str.charAt(0); str = str.slice(1); if ("0123456789".indexOf(ch) >= 0) { return parseInt(ch); } if...
import { PUBLIC_API } from 'app/client_config' import { getPinnedPosts, getMutedInNew } from 'app/utils/NormalizeProfile' import { CATEGORIES } from 'app/client_config' import { reveseTag, prepareTrendingTags } from 'app/utils/tags' const DEFAULT_VOTE_LIMIT = 10000 const isHardfork = (v) => v.split('.')[1] === '18'...
import * as Caml_array from "../../../../../node_modules/bs-platform/lib/es6/caml_array.js"; import * as Log$WonderLog from "../../../../../node_modules/wonder-log/lib/es6_global/src/Log.js"; import * as Contract$WonderLog from "../../../../../node_modules/wonder-log/lib/es6_global/src/Contract.js"; import * as Buffe...
// Launches an AMI into a lc then scale group and then attaches it to a running ec2 load balancer. After the scale group is is confirmed running, // any older scale groups attached to the load balancer are terminated if removeOldInstances is true // The bash script to launch it would look something like: /* # Put your...
const NavigationDefaultController = require('discourse/components/d-navigation').default; const SearchResultsDefaultController = require('discourse/controllers/full-page-search').default; export default { name: 'chokepoint', initialize: function() { const version = 'v1.1.1'; let showChokePoint = false; ...
import { createWorkInProgress } from "./Fiber"; import { HostRoot } from "./TypeOfWork"; import { completeWork } from "./FiberCompleteWork"; import { PerformedWork, Placement, Update, PlacementAndUpdate, Deletion, } from "./TypeOfSideEffect"; import { commitPlacement, commitDeletion, commitWork } from "./Fibe...
const inquirer = require("inquirer"); const table = require("console.table"); const connection = require("./config/connection"); const prompt = require("./config/prompts"); const chalk = require("chalk"); console.log(chalk.cyanBright(` ---------------------------------------------------------------------------...
/* Setup -------------- ---------------------------------------*/ var m = [170, 120, 20, 120], w = 1280 - m[1] - m[3], h = 500 - m[0] - m[2]; d3.select("body").append("div") .attr("id", "topContainer") .style({"width": w + m[1] + m[3], "margin": "auto", "height": "40px", "text-align":"left", "padding": ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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....
import { pointInTriangle, pointInCircle } from '../../src/utils/geometry'; import { triangleCollides } from '../utils/collision'; import DummyDataframe from './DummyDataframe'; import { RESOLUTION_ZOOMLEVEL_ZERO } from '../constants/layer'; import { FP32_DESIGNATED_NULL_VALUE } from './viz/expressions/constants'; // Ma...
const config = { size: 100, tolerance: 4, colors: { green: '#57bd6a', orange: '#e87b1a', purple: '#961c91', yellow: '#f7dc0a' } } let canvas; let tile; let tool = 'wall'; // wall, enter, gate, vortex let color = 'green'; let p1 = false; let p2 = false; window.setup = ()...
//****************************************************************************************************************************************** // TRWebSocketController // // The TRWebSocketController is a generic interface supporting the ability to connect and receive real-time market data quotes from the // Thomson...
/* * Node.js OPC Playback API Interface * * flexion 2015 * * Version 25.04.2016 17:12 * * 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/LICEN...
var express = require('express'); var app = express(); var mysql = require('mysql'); var http = require('http').Server(app); var io = require('socket.io')(http); var bodyParser = require("body-parser"); app.set('views', __dirname); app.engine('html', require('ejs').renderFile); app.use(express.static('public')); app...
import React from 'react'; import { Button, ButtonGroup, ToggleButton, Row, Col, Form, Modal, OverlayTrigger, Tooltip, Dropdown } from 'react-bootstrap'; import Select, { components } from 'react-select'; import { ToastContainer, toast } from 'react-toastify'; import moment from 'moment-timezone'; import confirmDialog ...
var plugin = {}; plugin.install = function (Vue, options) { Vue.mixin({ methods:{ /**方法功能: * 获取一个随机字符串 * @param number:返回字符串长度 * */ getRandomString(number) { let str = "qwertyuiopasdfghjklzxcvbnm123456789QWERTYUIOPLKJHGFDSAZXCVBNM"; let tempString = ""; f...
var map = null; var statesLayer = null, countiesLayer=null; var stateCountyLayer = null; var layerName="States"; var mapCenterLon = -20000; var mapCenterLat = 1750000; var mapZoom = 2; var mpoint = new OM.geometry.Point(mapCenterLon,mapCenterLat,32775); var currentPalette = null, currentStyle=null; var myDefau...
import moment from 'moment'; import { TAPi18n } from '/imports/i18n'; import { OPERATOR_ASSIGNEE, OPERATOR_BOARD, OPERATOR_COMMENT, OPERATOR_CREATED_AT, OPERATOR_CREATOR, OPERATOR_DEBUG, OPERATOR_DUE, OPERATOR_HAS, OPERATOR_LABEL, OPERATOR_LIMIT, OPERATOR_LIST, OPERATOR_MEMBER, OPERATOR_MODIFI...
import * as Dat from 'dat.gui'; import { Scene, Color, Vector2, Vector3, Raycaster, Box3, Audio} from 'three'; import * as THREE from 'three'; import { Player, Portal, EnvironmentCube2, TeleportCube } from 'objects'; import { BasicLights } from 'lights'; import { consts, globals } from 'globals'; import 'regenerator-ru...
const {Client, RichEmbed} = require('discord.js'); const client = new Client(); const fs = require("fs"); const tcpscan = require("simple-tcpscan"); const request = require('request'); const schedule = require("node-schedule"); //ユーザー環境変数 const CHANNEL_ACCESS_TOKEN = '**LINE_CHANNEL_ACCESS_TOKEN**'; const USER_ID = '*...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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]; } } }...
// ----- SAVE FORM/DOCUMENT ---- async function saveFormData( action, method, data, isObject, swalTitle, overrideSuccessConfirmation = false) { if (action && method && data && isObject) { let path = action == "insert" ? `${base_url}operations/insertTableData` : `${base_url}operations/updateTabl...
import React from "react"; import { Font, } from "@react-pdf/renderer"; import ip from 'variables/ip'; import { MobilePDFReader } from "react-read-pdf"; import Button from "components/CustomButtons/Button.js"; import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer...
"use strict"; var Promise = require('bluebird'); var substitutions = require("./substitutions"); var rp = require('request-promise'); function BridgedRoom(main, opts) { this._main = main; if (!opts.inbound_id) { throw new Error("BridgedRoom requires an inbound ID"); } if (!opts.matrix_room_i...
import { BigNumber, } from '0x.js'; import { ExchangeContractErrs, } from '@0x/types'; import { generatePseudoRandomSalt, } from '@0x/order-utils'; import { Web3Wrapper, } from '@0x/web3-wrapper'; import * as R from 'ramda'; import assetPairsMainJson from './assetPairs.main.json'; import assetPairsKovanJson fro...
import { RadialGradient, Point, pt, rect, Color, LinearGradient } from "lively.graphics"; import { Morph, Tooltip, Image, VerticalLayout, GridLayout, Text, Ellipse, morph, Icon } from "lively.morphic"; import { num, arr } from "lively.lang"; import { connect, signal } from "lively.bindings";...
import { CST } from "../CST"; import { sceneEvents } from "../events/EventsCenter"; import Player from "../player/Player"; import MarkerTile from "../modules/MarkerTile"; import UINotes from "../UI/UINotes"; import Tandok from "../NPC/Tandok"; import ObjectTween from "../modules/ObjectTween"; import UITorch from "../UI...
function f(e) { return e = angular.extend({ RemarkPYQuanPin: "", RemarkPYInitial: "", PYInitial: "", PYQuanPin: "" }, e, G), e.HeadImgUrl || (e.HeadImgUrl = confFactory.API_webwxgeticon + "?seq=0&username=" + e.UserName + "&skey=" + accountFactory.getSkey()), e } ...
import { circles_user, } from './circles.js'; import { email_user, external_link_base, } from './helpers.js'; import * as paver from './paver.js'; window.email_user = email_user; const url = new URL(location); const dataset_id = url.searchParams.get('id'); const geography_id = url.searchParams.get('geography_id'...
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; ...
/* eslint key-spacing : 0 */ const EventEmitter = require('events'); // All the possible values to send to GM // let array_of_possible_values = { // light_alarm : true, // light_alarm_blink : true, // light_interior : true, // locks_lock : true, ...
/** * The Background app namespace. * @namespace AppBackground */ const Api = require('./lib/api') const App = require('../lib/app') const Crypto = require('./lib/crypto') const Devices = require('./lib/devices') const Store = require('./lib/store') const Media = require('../lib/media') const Sounds = require('../lib/s...
/************************************ * AdWords Account Audit Checklist * Adapted from script by: <NAME> on FreeAdWordsScripts.com * Скрипт адаптирован специалистами агентства Penguin-team * © 2018 Penguin-team, Ukraine * https://pengstud.com/ ************************************/ var REPORTS_FOLDER_PATH = 'Goo...
let restaurant; var map; let loadMapButton; let reviewButton; let reviewDlg; let usernameTextBox = null; let ratingTextBox = null; let commentTextBox = null; let reviewSyncId = 1; let reviewDataRecevied = false; let focusedElementbeforeModal; /** * Fill Breadcrumb in offline mode, when G-maps is not available */ doc...
import React, { Component } from 'react'; import { connect } from 'dva'; import router from 'umi/router'; import moment from 'moment'; import { Button, Col, Collapse, Form, Input, Row, Select, Spin } from 'antd'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import styles from '@/pages/Operate.less'; ...
var expect = require( 'chai' ).expect; var sinon = require( 'sinon' ); var proxyquire = require( 'proxyquire' ); describe( 'core', function() { var introspect, os, output, fp, core; before( function() { introspect = sinon.stub(); os = sinon.stub(); outp...
/* The MIT License (MIT) Copyright (c) 2017 Microsoft Corporation 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...
// All of the Node.js APIs are available in the preload process. // It has the same sandbox as a Chrome extension. const fs = require('fs') const path = require('path') const wallpaper = require('wallpaper') const axios = require('axios') const storage = require('electron-json-storage') const settings = require(path.j...
import React, { useEffect, useState, useRef } from "react"; import { useHistory } from "react-router-dom"; import { CButton, CCard, CCardBody, CCol, CContainer, CForm, CFormGroup, CLabel, CInput, CInputGroup, CInputGroupPrepend, CInputGroupText, CRow, CInputRadio, CLink, ...
/** * * A SEPARATE MODULE DECLARING SERVICES * * **/ var BingoUtils = require("BingoUtils"); var Cartro = require("cartro"); angular.module('bingoApp.services', []) .value('version', '0.1') .factory('socket', ['$rootScope', '$interval', function($rootScope, $interval) { var socket = null; if(w...
import sortBy from 'lodash/sortBy'; import { formatDate, getTaskNumber, sortEmployee } from '../../../utils/common'; import { FIELDS } from '../../../utils/constants/ScopeTableFields'; import Constant, { ROLE_ID } from '../../helpers/Constant'; import { find } from 'lodash/find'; import { filter } from 'lodash/filter'...
// vicowa-editable-list.js // //////////////////////////////////////////////////////////// // this web component will show a list of editable items import { WebComponentBaseClass } from "/third_party/web-component-base-class/src/web-component-base-class.js"; import "../vicowa-string/vicowa-string.js"; import "../vicowa...
/* eslint-disable react/destructuring-assignment */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Field } from 'redux-form'; import { TextField } from '@material-ui/core'; import FontAwesomeIcon from '@fortawesome/react-fontawesome'; impor...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var d...
#!/usr/bin/env node 'use strict'; /* eslint-disable no-shadow, no-console */ const WebpackDevServer = require('webpack-dev-server'); const fs = require('fs'); const path = require('path'); const VueLoaderPlugin = require('vue-loader/lib/plugin'); const HtmlWebpackPlugin = require("html-webpack-plugin"); const webpa...
const usernameMaxLength = 16; const usernameMinLength = 3; const nameMaxLength = 16; const nameMinLength = 3; const mySqlModule = require('./mySqlModule'); const commandHandlerModule = require('./commandHandlerModule'); const shortcutModule = require('./shortcutModule'); const templates = require('./templates') let m...
import ARSON from 'arson'; import sift from "sift"; import ObjectID from 'bson-objectid'; import { openDb, deleteDb } from 'idb'; import modify from 'modifyjs'; import jsonpatch from 'fast-json-patch'; import { Log } from './utils'; import handlers from './handlers'; import Subscription from './subscription'; import D...
"use strict"; /****************************************************************************** * Perceptron Multicamadas (em Javascript). * * * * Implementação simples da rede Perceptron Multicamadas com o tr...
/** * This code is evaluated in the context of the inspected page! */ function init() { if (window.flightSetup || (!window.require && !(window.DEBUG && window.DEBUG.registry))) { return; } window.flightSetup = true; function log() { console.info.apply(console, ['Flight Inspector:'].co...
/** * @module js/UnimogControl * @license * MIT License * Copyright (c) 2019 <NAME>, <NAME> * * 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 restr...
var _generated_comments = { "note":{ 0:["Devoir vraiment très mauvais !", "Très mauvais devoir, resaisis-toi !" ], 1:["Devoir très mauvais !" ], 2:["Devoir très insuffisant.", "Résultat très faible." ], 3:["Devoir insuffisant", "La note révèle des faiblesses qu'il faut ...
var CoreLibIntUtil = function() {}; CoreLibIntUtil.hexChars = "0123456789abcdef"; CoreLibIntUtil.rol = function(arg1, arg2) { return arg1 << arg2 | arg1 >>> 32 - arg2; }; CoreLibIntUtil.ror = function(arg1, arg2) { var tmp = 32 - arg2; return arg1 << tmp | arg1 >>> 32 - tmp; }; CoreLibIntUtil.toHex...
// These default options are for translation but can be used // for any other datatables settings // MSG_DT_* variables comes from datatables.inc // To use it, write: // $("#table_id").dataTable($.extend(true, {}, dataTableDefaults, { // // other settings // } ) ); var dataTablesDefaults = { "oLanguage": { ...
const path = require('path') //eslint-disable-line const s2clientprotocol = require('s2clientprotocol') //eslint-disable-line const features = require(path.resolve(__dirname, '..', 'lib', 'features.js')) const np = require(path.resolve(__dirname, '..', 'lib', 'numpy.js')) const pythonUtils = require(path.resolve(__dirn...
#!/bin/env node 'use strict'; const config = require('./config.js'); const fs = require('fs-extra'); const path = require('path'); const Telegraf = require('telegraf'); const Extra = require('telegraf/extra'); const commandParts = require('telegraf-command-parts'); const im = require('imagemagick'); const JSZip = re...
// Graph Geometry, an experiment in emerging geometries from graphs; (c) 2018 <NAME> // THREE.js imports const { AmbientLight, Euler, Geometry, LineBasicMaterial, LineSegments, OrbitControls, PerspectiveCamera, PointLight, Points, PointsMaterial, Quaternion, Scene, V...
import React, { Component, useState, useEffect } from 'react'; import { Badge, Button, Card, CardBody, CardFooter, CardHeader, Col, Form, FormGroup, Label, Row, Input } from 'reactstrap'; import '../css/style.css'; import $ from 'jquery'; import axios from 'axios'; import DateFnsUtils from '@date-io/date-fns'; im...
window.ESO_ITEM_QUALITIES = { '-1': "", 0: "Trash", 1: "Normal", 2: "Fine", 3: "Superior", 4: "Epic", 5: "Legendary", 6: "Mythic", }; window.ESO_ITEM_TRAITS = { '-1': "", 18: "Divines", 17: "Exploration", 12: "Impenetrable", 16: "Infused", 20: "Intricate", 19: "Ornate"...
var util = require("util"); var Events = require('events'); var Buffer = require("buffer").Buffer; var Socket = require("net"); //============================基本工具函数============================= function hashSize(obj) { var size = 0, key; for (key in obj) { if (obj.hasOwnProperty(key)) size++; } ...
'use strict'; var stdin = process.openStdin(); class Service { constructor(blockchain, fs) { this._blockchain = blockchain; this._fs = fs; let self = this; this.compareServiceLoop = setInterval(function(){self.logCompareFunc()}, 3600000); stdin.addListener("data", function(d) { let path; let log; ...
var singular_namespaces = ['company', 'person', 'financial-organization', 'service-provider'] //skipping 'product' var plural_namespaces = ['companies', 'people', 'financial-organizations', 'service-providers'] //skipping 'products' var source_name = 'CrunchBase'; var month_names = ['January', 'February', 'March', 'Apr...
var CartSine = new Expression.Function({ default: function (x) { if(x instanceof Expression.NumericalReal || x instanceof Expression.List.Real || x instanceof Expression.Symbol.Real) { return new M.Expression.List.ComplexCartesian([Global.sin.default(x), Global.Zero]); } else { throw(new Error('Complex...
/** * Duckigotchu was built by <NAME>. Any unauthorized use is strictly prohibited. */ import {addButtons, addFrame, randInt, loadGameData, saveData} from '../utils.js'; import {gameWidth, gameHeight} from '../constants.js'; import {duckOpts, duckInfo} from '../ducks.js'; const Phaser = window.Phaser const...
/** * JumpToPage: Displays the list of countries. On click of each countries shows the statistics about that country in an external browser. */ import React, { Component } from 'react'; import { View, Text, Dimensions, StyleSheet, AsyncStorage, ActivityIndicator, FlatList, Image, TouchableOpacity, Linking, TextInput...
Crafty.scene("Load", function() { Crafty.background("#A3D1FF") Crafty .e("Text, DOM, 2D") .text("Loading...") .textFont({size: "50px", family: 'Coming Soon'}) .attr({x: 50, y: 50, w: 950, h: 400}) Crafty.load( [ "14x10.png", "15x15.png", "50x50.png", "93x51.png", ...
// Note: the code will still work without this line, but without it you // will see an error in the editor /* global EspLoader, ESP_ROM_BAUD, port, reader, inputBuffer */ 'use strict'; let espTool; let isConnected = false; const baudRates = [921600, 115200, 230400, 460800]; const addresses = [ "0xfc000", "0x000...
var Xflow = Xflow || {}; var XML3D = XML3D || {}; (function() { //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // port...
import CONFIG from './config.js'; class FileMessageList { /* {array} this.fileMessages - containing all file messages [latest file message, ..., oldest file message] {number} this.activeFileMessageIndex - this helps knowing which file message is being...
/****************************************************** ********** First script: Custom Sign Script *********** *******************************************************/ // Define all variables var price; var total; var signValue; var signLength; // Define the price price = 5; // Execute this function when user send ...
// window.ship_raw_dataset.data will contain the dataset rows // [ cursorX , cursorY, rayCast center, rayscastLeft, rayscastRight] class PlayGame extends Phaser.Scene { constructor (params) { super({key : 'PlayGame', active : false}); this.m_mode = "USER"; this.m_lineGraphic = nu...
/** * nPress - opensource cms * * @copyright (c) 2012 <NAME> (<EMAIL>) * @link http://npress.zby.cz/ * @package nPress */ //TODO optimize by http://www.artzstudio.com/2009/04/jquery-performance-rules/ // and using http://api.jquery.com/on/ if (!Array.prototype.indexOf) { Array.prototype.indexOf = fu...
// не даем сабмититься плейсхолдерам $('form').live('submit', function(){ $(this).find('input[placeholder]').each(function(){ var el = $(this); if (el.val() == el.attr('placeholder')) { el.val(''); } }); $(this).find('textarea[placeholder]').each(function(){ var el = $(this); if (el.val(...
// forked from gaziya's "Domino (WebGL2 + Oimo.js)" http://jsdo.it/gaziya/46vq // ‥‥‥‥‥‥‥‥‥‥‥‥‥□□□ // ‥‥‥‥‥‥〓〓〓〓〓‥‥□□□ // ‥‥‥‥‥〓〓〓〓〓〓〓〓〓□□ // ‥‥‥‥‥■■■□□■□‥■■■ // ‥‥‥‥■□■□□□■□□■■■ // ‥‥‥‥■□■■□□□■□□□■ // ‥‥‥‥■■□□□□■■■■■‥ // ‥‥‥‥‥‥□□□□□□□■‥‥ // ‥‥■■■■■〓■■■〓■‥‥‥ // ‥■■■■■■■〓■■■〓‥‥■ // □□■■■■■■〓〓〓〓〓‥‥■ // □□...
//所有产品信息 var products = new Array(); //提醒列表 var remindList = new Array(); //是否打印小票 var printOption = true; var uui = 0; $(document).ready(function() { $(document).on("click", ".nextVaccDiv li",function(){ //点击大类 加载 if($(this).hasClass("selected")){ $(this).removeClass("selected"); pop...
var debug = false; // enable for extra console output var analytics = true; // enable/disable Google Analytics var localCacheTime = 120; // time to cache datanorge-catalog in local storage var datanorgeDatasetsURL = "https://livarbergheim.no/api/datanorge_api_dump_pluss2.php"; var datanorgeDatasetsURLcached = "https:/...
// Wow Grid Helper Functions (for column and row adjustments) // ------------------------------------------------ // Adjusts block widths when a block is added, duplicated, or deleted. function wowColumnChange() { // For each row, check if there is an equal width class. $('.wow-editor' + wow.row).each(functio...
'use strict'; const merge = require('lodash.merge'); /* * App configuration. * * Any properties from config/production.js or config/local.js overrides * properties set in this file. * * This file should not be modified. Instead, modify one of: * * - config/production.js * Production settings (base). * ...
const ref = require('ref'); const r = ref.refType; const ffi = require('ffi'); const Struct = require('ref-struct'); const ArrayType = require('ref-array'); /** * Compile flag: Set case-insensitive matching. * * This flag sets the expression to be matched case-insensitively by default. * The expression may still u...
Object.defineProperty(exports, "__esModule", { value: true }); exports.XMLHttpRequest = exports.getDefaultPort = exports.httpClient = exports.parseQueryStr = exports.decodeQueryParam = exports.httpServer = void 0; /* MIT License Copyright (c) 2021 <NAME> Permission is hereby granted, free of charge, to any person obt...
/**************************************/ /* Custom JavaScript files supervisor */ /**************************************/ function Sizes(){ var self = this; var map_container = $(".mbr-block__contact>.row"); var map = $("#map"); var timer; self.setSizes = function(){ if( map.length > 0){ map.hei...
$(function () { $('.lazy').Lazy(); }); $('.callback__input_phone').mask('+7 (000) 000-00-00', { placeholder: "+7 (___) ___-__-__", clearIfNotMatch: true }); $('.nav').on('click', 'a', function (e) { e.preventDefault(); var id = $(this).attr('href'); var marker = $(id); var number = $(this).index(); ...
let modelInfoSet = [ { name: "CesiumMilkTruck", scale: 0.4, rotation: [0, Math.PI / 2, 0], position: [0, 0, -2], url: "https://cx20.github.io/gltf-test/sampleModels/CesiumMilkTruck/glTF/CesiumMilkTruck.gltf" }, { name: "Fox", scale: 0.05, rotation: [0, Math.PI / 2, 0], pos...
const Blockchain = require('./blockchain'); const VotingStatistics = require('./votingStatistics'); const express = require('express'); const app = express(); const bodyParser = require('body-parser'); //convert req in json const rp = require('request-promise'); const request = require('request'); const uuid = re...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var _regeneratorRuntime = _interopDefault(require('@babel/runtime/regenerator')); var _asyncToGenerator = _interopDefault(require('@babel/runtime/helpers/asyncToGenerator')); var _classCall...
import articleZH from '../libs/articleZH'; import articleEN from '../libs/articleEN'; import classical from '../libs/classical'; import music from '../libs/music'; import lyric from '../libs/lyric'; // 定义全局变量 const globalData = () => ({ type: null, // storage->articleZH/articleEN/classical/music index: null, //* sto...
$(function () { $("#tabUpdate").click(function () { return $("#CRUD").val() == "update"; }); $("#tabInsert").click(function () { return $("#CRUD").val() == "create"; }); $("#btnSubmitQuery").click(function (e) { if (!$("#form").valid()) { AlertErrorMsg("form"); return false; } ShowBlockUI(); ...
/** * A simple and cool test runner that executes * tests defined in an excel file. **/ const fs = require("fs"); const path = require("path"); const logger = require("log4js").getLogger("nashak"); const xlsx = require("node-xlsx"); const BPromise = require("bluebird"); const colors = require("colors"); const _ =...
/* * Copyright (C) 2014-2015 Ericsson AB. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { graphql } from 'react-apollo'; import forOwn from 'lodash.forown'; import get from 'lodash.get'; import debounce from 'lodash.debounce'; import { resolveType...
function contentAnimation(data) { let page = data.next.namespace; if (page == 'index') { showIndex(); } else if (page == 'sound') { showSound(); } } function pageTransition(data) { if (data.trigger != 'back' && data.trigger != 'popstate' && data.trigger != 'forward') { sessionSto...