text
stringlengths
8.5k
48.7k
const templateUrl = require('../form.html'); import '../../../../../node_modules/jquery-ui/ui/widgets/datepicker.js'; import '../../../../../node_modules/jquery-ui/ui/i18n/datepicker-fr-CA.js'; /** * @module avPlugins * @memberof app.ui * @restrict E * @description * * The `avPlugins` directive for the plugins ...
const app = typeof chrome === 'undefined' ? browser : chrome const version = '0.3.6.3' const cacheTime = 24 * 60 * 60 * 1000 const $input = document.querySelector('.input') const $status = document.querySelector('.status') const $errors = document.querySelector('.errors') const $validators = document.querySelector('.v...
const DATA_MODEL_OUTPUT_DIR = "../OpenActive.NET/"; const DATA_MODEL_DOCS_URL_PREFIX = "https://developer.openactive.io/data-model/types/"; const { getModels, getEnums, getMetaData } = require('@openactive/data-models'); var fs = require('fs'); var fsExtra = require('fs-extra'); var request = require('sync-request'); ...
function tableSort($that) { $(".sorts a", $that).each(function () { $(this).unbind("click").bind("click", function () { tableContentClose(); var direction = $(this).attr("data-sort"); var name = $(this).closest("td,th").attr("data-name"); //var $rows = $that....
/** * Author: homelan * E-mail: <EMAIL> * Data: 2018/7/23 * Time: 14:41 */ 'use strict'; const makeId = () => { let date = new Date() return ~~(String(date.getTime()) + String(Math.random() * 999)) } const trim = (str) => { return str.replace(/^\s*/, '').replace(/\s*$/, '') } const QueryString = (nam...
/************ * Functions ************/ function getIseSettings() { return new Promise(function(resolve, reject) { chrome.storage.local.get( ['isePanNode', 'iseMntNode', 'isePort', 'iseUser', 'isePass'], function(results) { resolve(results); } ); }); } function getIseInfo(resul...
/* TODO - locks on ow.server need to be host:port aware with extra. To lose the lock once the host is dead. */ ow.loadServer(); ow.loadFormat(); ow.loadOJob(); load("rojob.js"); // Get environment variables var pexpr = __expr; var params = processExpr(" "); var args = merge(getEnvs(), params); var lastRequest = no...
$(document).ready(function(){ /*************************/ $('#calendar').fullCalendar({ customButtons: { /*print: { text: 'Imprimir', click: function() { printDatos(); } }, paciente: { text: 'Paciente', click: function() { if($("#buscarPacientes .modal-title").text()=...
/* calendar.js Custom callback functions: openCalPopupHandler( inx, event, isNewEvent ) openPostCalPopupHandler( inx, event, isNewEvent ) customOpenNewCalPopup( event ) customOpenCalPopup( event ) */ var inx = 0; var lzyCalendarInx = 0; var lzyCalendar ...
/// FUNCTIONS ///////////////////////////////////////////////////////////////// /*/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - There are four concepts to understand about functions: concept 1 : You create one using the FUNCTION DECLARATION syntax. Declaring a functio...
var setValue = function(key,value){ if($('#'+key).length==0){ $('<input>').attr({type: 'hidden', id: key, name: key,value:value}).appendTo('head'); }else{ $("#"+key).val(value); } return true; } var getValue = function(key){ return $("#"+key).val(); } var removeValue = function(ke...
import _ from 'underscore'; import Utils from './Utils.js'; import UserSettings from './UserSettings.js'; import ExtraConfig from './ZAVConfig.json'; export const AXIAL = 1; export const CORONAL = 2; export const SAGITTAL = 3; export const PLANE_LABELS = { [AXIAL]: 'axial', [CORONAL]: 'coronal', [SAGITTAL]: 'sagitta...
const GO_BUTTON_START = "Publish"; const GO_BUTTON_STOP = "Stop"; var localVideo = null; var remoteVideo = null; var peerConnection = null; var peerConnectionConfig = { 'iceServers': [] }; var localStream = null; var wsURL = "wss://localhost.streamlock.net/webrtc-session.json"; var wsConnection = null; var streamInfo...
import {mountain_09003800, } from "../../../../../textures/mountain.js" import {mountain_09004000, } from "../../../../../textures/mountain.js" import * as Gbi from "../../../../../include/gbi" const ttm_seg7_lights_07010AD8 = Gbi.gdSPDefLights1( 0x4c, 0x4c, 0x4c, 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 ) const t...
const { prefix } = require('../config.json') const cars = require('../cardb.json') const wait = require('util').promisify(setTimeout); const db = require('quick.db') module.exports = { commands: ['dealership', 'dealer'], callback: async (message, arguments, text, client) => { const { MessageActio...
//sValidation=nyfjs //sCaption=Export spider diagram ... //sHint=Export outline items as a spider diagram //sCategory=MainMenu.Share //sLocaleID=p.ExportSpiderDiagram //sAppVerMin=6.0.9 //sShortcutKey= var _lc=function(sTag, sDef){return plugin.getLocaleMsg(sTag, sDef);}; var _lc2=function(sTag, sDef){return _lc(plug...
const R = require('ramda') const { Digraph, TopologicalOrder } = require('digraph-sort') const VariableReader = require('./VariableReader') const VarNameReader = require('./VarNameReader') const SubscriptRangeReader = require('./SubscriptRangeReader') const Variable = require('./Variable') const { addIndex, allDime...
/** * (Single) Region plugin class * * Must be turned into an observer before instantiating. This is done in * `RegionsPlugin` (main plugin class). * * @extends {Observer} */ class Region { constructor(params, ws) { this.wavesurfer = ws; this.wrapper = ws.drawer.wrapper; this.util = w...
/** * Created with JetBrains PhpStorm. * User: xuheng * Date: 12-5-22 * Time: 上午11:38 * To change this template use File | Settings | File Templates. */ var scrawl = function (options) { options && this.initOptions(options); }; (function () { var canvas = $G("J_brushBoard"), context = canvas.getCo...
import indexesOf from 'indexes-of'; import uniq from 'uniq'; import Root from './selectors/root'; import Selector from './selectors/selector'; import ClassName from './selectors/className'; import Comment from './selectors/comment'; import ID from './selectors/id'; import Tag from './selectors/tag'; import Str from '....
const _ = require('lodash'); const chai = require('chai'); const assert = chai.assert; const spawn = require('child_process').spawn; const rimraf = require('rimraf'); const jayson = require('jayson/promise'); const PROJECT_ROOT = require('path').dirname(__filename) + '/../'; const TRACKER_SERVER = PROJECT_ROOT + 'track...
/** * @projectDescription Various helper functions used by the i2b2 framework and cells. * @inherits i2b2 * @namespace i2b2 * @author <NAME>, <NAME> MD PhD * @version 1.3 * ---------------------------------------------------------------------------------------- * updated 9-15-08: RC4 launch [Nick Benik...
function _resamplerJs() { function Resampler(fromSampleRate, toSampleRate, channels, outputBufferSize, noReturn) { this.fromSampleRate = fromSampleRate; this.toSampleRate = toSampleRate; this.channels = channels | 0; this.outputBufferSize = outputBufferSize; this.noReturn = ...
var bus = require('./bus'), config = bus.config, jobs = bus.jobs, sip = require('sip'), libDir = '../'; bus.callCounts = {}; function init() { bus.on('restartApp', function () { process.exit(0); }); bus.on('message', function (data) { var category = data.category || 'serv...
/* eslint-disable */ const MockRobot = require("../backend/lib/robots/mock/MockRobot"); const RobotMqttHandle = require("../backend/lib/mqtt/handles/RobotMqttHandle"); const MqttController = require("../backend/lib/mqtt/MqttController"); const CapabilityMqttHandle = require("../backend/lib/mqtt/capabilities/CapabilityM...
function Bezier() { } Bezier.prototype = { /** * getCoord2 has the better performance :) */ getCoord1: function (t, points) { var pascalK = this.getPascal(points.length); var point = new Vector3(); var minusT = 1 - t; for (var i = 0; i < points.length; i++) { point.x += pascalK[i] * p...
'use strict'; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // CONSTANTS //////////////////////////////////////////////////////////////////////////////////////////////////////// const encl = { mch: /^(.+?),?$/, arr: '[$1]', obj: '{$1}' }; const...
/** ******************************************************* {COPYRIGHT-TOP} *** * Licensed Materials - Property of IBM * 5725-Z22, 5725-Z63, 5725-U33, 5725-Z63 * * (C) Copyright IBM Corporation 2016, 2018 * * All Rights Reserved. * US Government Users Restricted Rights - Use, duplication or disclosure * restric...
import React from "react"; import { ClassNames } from "@emotion/react"; import { Box, Tooltip, useColorModeValue, useToken, Wrap, WrapItem, Flex, } from "@chakra-ui/react"; import { WarningTwoIcon } from "@chakra-ui/icons"; import gql from "graphql-tag"; import { useQuery } from "@apollo/client"; functio...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"]...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import * as actions from '../../actions'; import {connect} from 'react-redux'; import * as appReducer from '../../reducers/appData'; import * as reducer from '../../reducers/scopeItemPage'; import * as Colors from '../../stylesheets/colors'; im...
import { useState, useEffect } from 'react'; function GetStaticListData (listtype) { const [staticdata, setStaticdata] = useState([]); const getdata = () => { switch (listtype) { case 'delivery_to': { var filter = listtype.filter; var response = [ ...
/* * This file is part of the Companion project * Copyright (c) 2018 Bitfocus AS * Authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * * This program is free software. * You should have received a copy of the MIT licence as well as the Bitfocus * Individual Contributor License Agreement for companion along with * thi...
/* Functionality dealing with user rankings. */ var con = require('./database.js').connection; var sys = require('./settings.js'); module.exports = { // calculate global user scores on a subset of users, or all users if no subset specified calcUserScores: function(userUIDs, cb) { // query constraint to limit r...
import { JSDOM } from "jsdom"; import Vue from "vue"; import VueI18n from "vue-i18n"; import { bestFacebookLocaleFor } from "facebook-locales"; import colors from "tailwindcss/colors"; import tailwindConf from "tailwindcss/defaultConfig"; import { gbs } from "./lib/foe-data/gbs"; import { defaultLocale, supportedLocale...
import * as utils from '../src/utils.js'; import {registerBidder} from '../src/adapters/bidderFactory.js'; import {BANNER, NATIVE, VIDEO} from '../src/mediaTypes.js'; import {config} from '../src/config.js'; import {getStorageManager} from '../src/storageManager.js'; const storage = getStorageManager(); const BIDDER_C...
/*globals document,jQuery,frood,style_html */ /*exported formBuilder */ var actUponAction = false; var formBuilder = (function ( $, style_html ) { 'use strict'; function resetDragging( enable ) { var action = $( '#edit-text-or-drag-btn' ); if ( enable ) { action.text( 'select text' ); } else { action.te...
console.log('Racing Game \n - game server 1.2 \n - game client 0.21'); let fireTruck = new Image(); fireTruck.src = "vehicles/firetruck.png"; fireTruck.dx = -10; fireTruck.dy = -20; function Game(cars, track) { this.cars = cars; this.remoteCars = []; this.track = track; } function Firetruck(x, y, alfa,...
const { BrowserWindow, BrowserView, ipcMain, app , dialog } = require('electron'); const fileUrl = require('file-url'); const windowStateKeeper = require('electron-window-state'); const EventEmitter = require('events'); const log = require('electron-log'); log.transports.file.level = false; log.transports.console.leve...
module.exports = GCanvas; var Path = require('./path') , Motion = require('./motion') , GcodeDriver = require('./drivers/gcode') , NullDriver = require('./drivers/null') , Point = require('./math/point') , Matrix = require('./math/matrix') , Font = require('./font') , parseFont = require('./parsefont') ...
// ComboChart // DonutChart const CHART_DEFAULT_HINT_1PN = "FORMAT\n\nFirst column: string or date\nOther columns: numeric\n\nAt least 1 string or date and 1 numeric column required\n\nEXAMPLES\n\nselect City, Population from population\nselect City, Population, Density from population"; const CHART_DEFAULT_HINT_1 = "F...
/* eslint-disable no-use-before-define */ import { CCard, CCardBody, CCardHeader, CCol, CLabel, CRow } from '@coreui/react'; import $ from "jquery"; import React, { useEffect, useRef, useState } from 'react'; import { withTranslation } from 'react-i18next'; import { useHistory } from "react-rout...
const ARCHETYPE_DPS = 'DPS'; const ARCHETYPE_HEAL = 'Heal'; const ARCHETYPE_TANK = 'Tank'; const SUB_ARCHETYPE_DPS_CASTER = 'Caster DPS'; const SUB_ARCHETYPE_DPS_PHYSICAL = 'Physical DPS'; const CLASS_DEATH_KNIGHT = 'Death Knight'; const CLASS_DRUID = 'Druid'; const CLASS_HUNTER = 'Hunter'; ...
'use strict'; //@implements {IControl} function LayerTree(options) { this.options = options; this.sources = []; } LayerTree.prototype.onAdd = function (map) { this._map = map; this._container = document.createElement('div'); //this._container.className = 'mapboxgl-ctrl mapboxgl-ctrl-group'; thi...
/** * @file NoXerveAgent tester file. [tester.js] * @author nooxy <<EMAIL>> * @author noowyee <<EMAIL>> * @copyright 2019-2020 nooxy. All Rights Reserved. * @description Start testing by enter command "node tester.js". */ 'use strict'; const fs = require('fs'); const static_global_random_seed_4096bytes = fs.rea...
// RiveScript.js // https://www.rivescript.com/ // This code is released under the MIT License. // See the "LICENSE" file for more information. "use strict"; // Parser for RiveScript syntax. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var desc...
// Variables used by Scriptable. // These must be at the very top of the file. Do not edit. // icon-color: deep-gray; icon-glyph: code-branch; // class Base { constructor(arg = '') { this.arg = arg this._actions = {} this.init() } init(widgetFamily = config.widgetFamily) { // 组件大小:small,medium,l...
import { Group, Color, PlaneGeometry, PlaneBufferGeometry, Vector2, TextureLoader, Reflector, Refractor } from 'three'; import SimplexNoise from 'simplex-noise'; import { Chunk } from '../Chunk'; import { Water } from 'three/examples/jsm/objects/water2.js'; import NORM0 from './water/Water_1_M_Normal.jpg'; import NOR...
/* CSCN - Created with jsPsychMaker: https://github.com/gorkang/jsPsychMaker */ questions = ( typeof questions != 'undefined' && questions instanceof Array ) ? questions : [];; //final timeline questions.push( check_fullscreen('ITC') ); ITC = []; //temporal timeline var instruction_screen_experiment = { typ...
var servicePath="check_unqualified_record.do"; var datalist=[]; $(function(){ $("#searcharea span.ui-icon,#listarea span.ui-icon").bind("click",function() { $(this).toggleClass('ui-icon-circle-triangle-n').toggleClass('ui-icon-circle-triangle-s'); if ($(this).hasClass('ui-icon-circle-triangle-n')) ...
var CHESS_APP = CHESS_APP || {}; var STRINGS = { "en_US": { "BLACK_WON": "Black won", "WHITE_WON": "White won", "DRAW": "Draw", "BLACK": "Black", "WHITE": "White", "TO_BLACK": "to black", "TO_WHITE": "to white", "CHECK": "check", "CHECKMATE": "checkmate", "GAME_OVER": "Game over", "GAVE": "gave"...
/** * Function run on page load that runs auth checking and other functions */ function init() { document.getElementById('my-trips-link').classList.add('active'); document.getElementById('my-trips-link-m').classList.add('active'); authReload(); fetchAndRenderTripsFromDB(); } let numLocations; let locationPla...
// ############################################################################### // # # // # JS script for creating Visual 16x16 (256bit) BTC private keys # // # ...
var hashrate = [0, 0, 0, 0]; var enterFlag = false; var pools = []; var devices = []; var param = []; var highcharts; var renderChart = function() { Highcharts.setOptions({ global: {useUTC: false} }); $('#container').highcharts({ chart: { type: 'spline', animation: Highcharts.svg, // don't animate in old ...
import { games } from "../../src/dagaz-model.js"; const step = function(ctx, params) { if (ctx.go(params, 0) && !ctx.isFriend()) { ctx.end(); } }; const pawnShift = function(ctx, params) { if (ctx.go(params, 0) && ctx.isEmpty()) { if (ctx.inZone(0)) { ctx.promote(4); } ctx...
// Subscribe const { WAConnection: _WAConnection, MessageType, Presence, Mimetype, GroupSettingChange, } = require("@adiwajshing/baileys"); const simple = require("./lib/simple.js"); const WAConnection = simple.WAConnection(_WAConnection); const figlet = require('figlet') const fs = require("fs"); const { ve...
var dir='<?php print $fl?>/scripts'; var dat1=''; var dat2=''; var acc=''; var amt1=''; var amt2=''; var id_pay=0; var dc=''; var oper=''; var lastSel=''; var right=0; $(document).ready(function() { $('.promo').click(doEnter) }); function doEnter() { jPrompt('Ключ', '', 'Вход', sendEnter); } function sendEnt...
(function ($) { $(document).ready( function () { $(document).on('change', '.es_visible', function () { if ($('.es_visible:checked').length >= 1) { $('.es_required').prop('disabled', false); $('.es_name_label').removeAttr('disabled'); } else { $('.es_required').prop('disabled', true); ...
/*! autosize 4.0.2 license: MIT http://www.jacklmoore.com/autosize */ (function (global, factory) { if (typeof define === "function" && define.amd) { define(['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; fact...
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "func...
//Ensure the results and player select are hidden $('#results').addClass('hidden'); $('#json').addClass('hidden'); var language = 'ENG_US'; //DEFAULT TO ENGLISH var squads = null; var units = null; var zetas = null; var player = null; var roster = null; var abilitylist = null; var skillList = null; var playerRequest =...
/* efaults and Globals */ var viewer = null // "http://www.homermultitext.org/iipsrv?DeepZoom=/project/homer/pyramidal/VenA/" var defaultServiceUrl = "http://www.homermultitext.org/iipsrv?" var defaultServiceZoomService = "DeepZoom=" var defaultServicePath = "/project/homer/pyramidal/deepzoom/" var defaultServiceSuff...
class ChartsControl { constructor(deviceId, controlId, deviceName, controlName, valueType, groupName, widget) { this.name = (deviceName || deviceId) + " / " + (controlName || controlId); if (widget) { this.name = widget.name + " (" + this.name + ")"; } this.widget = widg...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActivityOptionEnum = exports.RefundFeeTypeEnum = exports.FilePurposeEnum = exports.ReturnStateEnum = exports.ReturnCountFilterEnum = exports.DecisionEnum = exports.EscalateReasonEnum = exports.GetReturnFieldGroupEnum = exports.ReturnTy...
// Represents the checkbox controlling subscription to a specific filter list, // as well as the UI that goes along with it (e.g. status label and removal link.) // Inputs: // filter_list:object - An entry from a filterListSections array. // filter_list_type:string - A key from filterListSections describing the sec...
var entity_info_url = url_root + "/services/findUIEntity?$_ENTITY_ID={0}&ui_template_code={1}"; var ui_template_info_url = url_root + "/services/queryUIEntities?ui_template_code={0}"; var ui_template_fields_info_url = url_root + "/services/queryUIElements?ui_template_code={0}&entity_id={1}"; var ui_fields_url = url_roo...
new FontFaceObserver('Lato', {}).check().then(function() { document.documentElement.classList.add('font-lato'); }); new FontFaceObserver('Inconsolata', {}).check().then(function() { document.documentElement.classList.add('font-inconsolata'); }); new FontFaceObserver('Material', {}).check(String.fromCharCode(parseIn...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var axios = require('axios'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios); function ownKeys(object, enum...
// This is a JavaScript file enchant(); window.onload = function() { var game = new Game(320, 320); // 表示領域の大きさを設定 game.fps = 30; // ゲームの進行スピードを設定 game.preload('./image/Bad.png', //preload=前もって読み込んでおく './image/Good.png', './image/Love.png', './image/Ot...
const m = require('mithril') const vent = require('../vent') const Scrollbars = require('../scrollbars') const Drag = require('../util/drag') const app = require('../app') const Tile = require('../Tile') const TileMap = require('../TileMap') const r = require('../renderer') const Tween = require('../util/tween') const...
var Expression = require('../Expression'); var util = require('util'); module.exports.attach = function (global) { function Derivative(wrt) { return new Expression.Function({ default: function (x) { return x.differentiate(wrt); } }) } glob...
/*******************\ | Cartesian Genetic | | Programming | | Evolutionary Art | | @author Anthony | | @version 0.1 | | @date 2014/02/16 | | @edit 2014/02/17 | \*******************/ /********** * config */ var humanFitness = false; var desiredCanvasWidth = 800; var numGens = 100000; v...
function render(records) { var map = incident_support.map; var features = []; for (var i = 0; i < records.length; i++) { var record = records[i]; if (record.shapeType == ShpType.SHAPE_POINT || record.shapeType == ShpType.SHAPE_POINTM || record.shapeType == ShpType.SHAPE_POINTZ) { ...
function Aquarium(w, h) { this.canvas = document.createElement('canvas'); this.canvas.width = w; this.canvas.height = h; } Aquarium.prototype.prepare = function () { var c = this.canvas, ctx = c.getContext('2d'); var cw = c.width; var ch = c.height; // Rocks on bottom of tank f...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; const Cu = Components.utils; const Cc = Components.classes; const Ci = Components.interfaces; const...
/** * Module for the main of the program. * @param {String} auth_nonce The nonce for the authorization. * @returns {MyConnectionsMap.connectionMap} * * @author <NAME>. * @version 0.9.2-201400314 * @type Object * @see MapDisplay 0.1.0 * @see CachedGeocoder 0.3.1 * @see ConnectionManager 0.1.1 * @see Connec...
const ttt = require('./ttt_grid'); const express = require("express"); const app = express(); const http = require("http") const server = http.Server(app); const io = require("socket.io")(server); const fs = require("fs"); const port = process.env.PORT || 3000; //app.use(express.static('.')); app.use(exp...
/** * Copyright (c) Microsoft. All rights reserved. * * 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 ag...
var num_candidates // =========================================================== // Page setup functions // =========================================================== function populate_ballot_checkboxes(candidates) { //console.log('candidates', candidates) num_candidates = candidates.length add_header_to_...
fixAudioContext(window); let appDataState = initialDataState; // const spriteEdit = SpriteEdit(appDataState); const appEditState = { mode: SPRITE, selectedSpriteSheetPage: 0, selectedImage: 0, selectedScreen: 0, selectedSound: 0, selectedSample: null, isDrawing: false, selectedColor: 5, drawingMode...
import { types as sdkTypes } from '../../util/sdkLoader'; import { userLocation } from '../../util/maps'; import config from '../../config'; const { LatLng: SDKLatLng, LatLngBounds: SDKLatLngBounds } = sdkTypes; export const CURRENT_LOCATION_ID = 'current-location'; const GENERATED_BOUNDS_DEFAULT_DISTANCE = 500; // ...
const systemNamePrefix = "wms_" import MainContainer from '@/containers/MainContainer.vue' import WelcomeContainer from '@Wms/WelcomeContainer.vue' import LoginContainer from '@Wms/LoginContainer.vue' import generate from '@Wms/containers/viewContainer' const wms_demo1 = r => require.ensure([], () => r(require('@Wm...
import { Observable as O } from '../rxjs' import { Subject } from 'rxjs'; const secp256k1 = require('secp256k1'); const sha256 = require('js-sha256'); const aes = require('@stablelib/chacha20poly1305'); var poly = require("@stablelib/hex"); const crypto = require('crypto'); function ecdh(pubkey, privkey){ return...
//<script> var Page_ValidationVer = "125"; var Page_IsValid = true; var Page_BlockSubmit = false; var Page_InvalidControlToBeFocused = null; var Page_TextTypes = /^(text|password|file|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i; function ValidatorUpdateDisplay(val) { if...
/** * pro Gulpfile * Author:Lurker * 2017/1/5 11:42 */ // nodejs --> // npm install -g minimatch // npm install cnpm -g --registry=https://registry.npm.taobao.org // cnpm install gulp -g // 进入项目文件 // 执行命令 cnpm init 来新建package.json // 导入包 var gulp = require('gulp'), // gulp ...
var $win = $(window); var winWidth = $win.width(); var $body = $('body'); var $beerWrapper = $('#beer-wrapper'); var $beerWrapperInterior = $('.beer-wrapper-interior'); var $beer = $('.single-beer-wrap'); var _beerToggle = $('.toggle-view'); var _gridViewOpen = false; var animating =...
/* Copyright (c) 2017 <NAME> and other collaborators 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,...
const { MessageType } = require('@adiwajshing/baileys') let handler = async(m, { conn, text }) => { let [kr, psn] = text.split `|` if (!kr) return conn.reply(m.chat, '```Siapa yang mau di spam?```', m) if (!psn) return conn.reply(m.chat, '```Masukan teks pesan!```', m) if (text > 500) return conn.reply(m....
class Tone { constructor(hz) { this.context = new (window.AudioContext || window.webkitAudioContext)(); this.osc = this.context.createOscillator(); this.osc.type = 'sine'; this.hz = hz; this.osc.frequency.setValueAtTime(this.hz, this.context.currentTime); this.osc.st...
/* utils.js Por mitosan/mscore/misto_quente/mscorehdr Help me? Pliiiiz! FILEGEN File Generator Code html2canvas was made by <NAME>. https://html2canvas.hertzen.com/ Canvas2Image was made by hongru https://github.com/hongru/canvas2image Xdelta created by <NAME> https://github.com/jmacd/xdelta http://xdel...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), path = require('path'), mongoose = require('mongoose'), moment = require('moment'), Presentacion = mongoose.model('Presentacion'), Impuesto = mongoose.model('Impuesto'), Ventas = mongoose.model('Venta'), Pagos = mongoo...
//经验数组 var tadpoleExp = []; tadpoleExp[0] = 0; tadpoleExp[1] = 0; for (var i=2;i<100;i++) { tadpoleExp[i] = (i-1)*(i-1)*50; } var Tadpole = function(tSettings) { var tadpole = this; //全局属性----------------------------------------------------- this.hpmx = tSettings.hp || 1000; this.hp = tSettings.h...
/** Demo : creates and renders the map @param object o - A list of named options */ function createAndRenderMap(o){ defaults={ mapOptions:{}, // Min room size on cleaning. minRoomSize:50, cleanSmallRooms:true, createEnemies:true, enemiesPercent:10, createBoss:true, createLifePoti...
'use babel'; import $ from 'jquery'; import {Range, Point} from 'atom'; import GutterHelper from './gutter-helper'; import EventCode from './eventcode'; import BreakType from '../component/breaktype'; import logger from './debug-log'; import {CompositeDisposable} from 'atom'; import MsgMgr from '../msg-mgr'; const GUT...
if(!Object.keys) Object.keys = function(o){ if (o !== Object(o)) throw new TypeError('Object.keys called on non-object'); var ret=[],p; for(p in o) if(Object.prototype.hasOwnProperty.call(o,p)) ret.push(p); return ret; } function transformToAssocArray( prmstr ) { var params = {}; var prmarr = ...
class Prototype { static _Window = window; static _String = String; static _Array = Array; static _IS_PROTOTYPE_INITED = false; static _PROTOTYPE_ARRAY = { each: function(callback, args) { if (typeof callback !== 'function') { return false; ...
/** * Created by anna on 8/4/14. */ var selectedAssessment = null; var selectedBankItems = []; var wait=false; $(document).ready(function () { $("#see-answer").change(function(){ console.log('changed'); if($(this).prop('checked')){ $('#max-attempts').prop("disabled", true).val(''); ...
/* ArOZ Online Module Javascript Wrapper This is a wrapper for module developers to access system API easier and need not to dig through the source code. Basically: Write less do more (?) WARNING! SOME FUNCTION ARE NOT COMPATIBILE WITH PREVIOUS VERSION OF AO_MODULE.JS. PLEASE REFER TO THE SYSTEM DO...
$.fn.select2.defaults.set('language', 'ru'); $.fn.select2.defaults.set('debug', true); $.ui.autocomplete.escapeRegex = function (t) { t = t || ""; tmap = BS_BT_Utils.translitMap(t); return tmap[0].replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&") + "|" + tmap[1].replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"); ...
"use strict"; 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) { t...