text
stringlengths
5.97k
41.2k
/** * @name AttributeList * @class * @extends Array * @classdesc Return a new list of {@link Element} attributes. * @param {...Array|AttributeList|Object} attrs - An array or object of attributes. * @returns {AttributeList} * @example * new AttributeList([{ name: 'class', value: 'foo' }, { name: 'id', value: 'bar' }]) ...
// This file is more or less from http://1337.me, with some modifications // Therefore, this is technically NOT perryware and the bad code can be ignored let transtype; let textin; const changeWords = () => { cchange('pwn', 'own'); cchange(' ownzor', ' own'); achange(' is good ', ' owns '); achange(' are good...
// https://raw.githubusercontent.com/foundry-vtt-community/macros/master/actor/rage.js // DISCLAIMER: This macro is an evolved version of the original D&D 5e Rage Macro masterwork written by Felix#6196. // Norc#5108 is now maintaining this macro along with continued support from Felix. // // // UPDATES: 1. Fix...
import React, {Component, Fragment} from 'react'; import {getRandomFloat} from "../../utils/MathUtils"; import {Ease, Expo, TimelineMax} from "gsap"; import BezierEasing from "bezier-easing"; import * as PropTypes from 'prop-types'; import _ from "lodash"; import {ANIMATION_STATE} from "../../utils/Utils"; import Charm...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); var _asyncToGenerator3 = _interopRequireDefau...
/** * */ var websocket; var subID; var remoteURL="dev.cyberlightning.com"; var wsport="17322"; var dataList =[]; var x = 4.8; var y = 0.0; var z = 6.4; var onSocketOpen = function() { }; var onMessageArrive = function(event) { alert("Message arrived"); var svrmessage=window.atob(event.data); console.log(svr...
/* global Discord */ /* eslint-disable max-len */ const HELP_TEXT = Object.freeze({ '.trigger-hook': "If you haven't got any problems, clicking this will post your content to the given webhook.", '#hookId': "You need to enter a valid webhook ID/token here, or just paste the hook URL that Discord gives you.<br /><br ...
import { Add, Sub, Xor, Nor, ShiftLeft, ShiftRight, Or, And, ShiftRightArithmetic, ShiftAdd, ShiftAdd2 } from "../Instructions/Binary Arithmetics/index"; import { Btest, Cmpeq, Cmple, Cmplt, Cmpneq, Cmpule, Cmpult } from "../Instructions/Compare/index"; import { Br, Brcf, Brcfnd, Brnd, Call, Callnd, Ret, Retnd, Trap, X...
function saveData(){ var formData = new FormData($("#manageForm")[0]); formData.append('description', tinymce.get("description").getContent()); $.ajax({ type: "POST", url: BASE_URL +'admin/blog-save-data', data: formData, enctype:'multipart/form-data', contentType : false, processData : fa...
const i18next = require('i18next'); const config = require('../../app/chatbot.json'); const en = { 'attendee_one': 'Attendee', 'attendee_other': 'Attendees', 'bot_one': 'Bot', 'bot_other': 'Bots', 'bot-added': 'Added bot "{{0}}"', 'bot-exists': 'Bot "{{0}}" exists already', 'bot-list': '$t...
/* * Scheduler Dialog * * Copyright 2014,2015 <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 appl...
"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...
/** * baidu netdisk */ const { URL } = require('url') const urlFormat = require('url').format const protocol = 'baidu' const querystring = require('querystring') const APP_KEY = '' const SECRET_KEY = '' const ERR_CODE = { '0':'请求成功', '2':'参数错误', '-6':'身份验证失败, access_token 是否有效? 部分接口需要申请对应的网盘权限', '-7':'...
Bas.ot = function (a, v) { var e = 0; if (v == "") return e; if (typeof jQuery != "undefined") { var x = jQuery("#" + v).offset(); e = x.top } else { while (a) { e += a.offsetTop; a = a.offsetParent } } if (document.getElementById(v)) { var z = document.getElementById(v); ...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved. const ViewStatus = { DISCONNECTED: 0, CONNECTING: 1, CONNECTED: 2 }; let viewModel = { S: ViewStatus, status: ViewStatus.DISCONNECTED, fisheyeEnabled: false, pose: {x:0, ...
const kalendarProjekcijeKontejner = document.querySelector( ".kalendar__projekcije--kontejner" ); function populisiKalendar() { let projekcije; if (localStorage.getItem("projekcije") === null) { projekcije = []; } else { projekcije = JSON.parse(localStorage.getItem("projekcije")); } let datumi = []...
// ==UserScript== // @name dvSSW2014v2 // @namespace dv // @include http://joanpiedra.com/jquery/greasemonkey/ // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js // @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js // @version 1 // @grant none // ==/UserScript== v...
/* 效果要求: 鼠标进入时停止轮播。 鼠标进入时如果有简介显示简介,没有就不显示 鼠标可调节前后加载 显示当前加载为第几页(显示图片页数) 使用要求: 创建对象,使用对象添加图片。 */ var Utils = {}; Utils.HtmlElementClassNameHandler = (function () { function checkElement(element) { if (!element instanceof Node) throw new TypeError("Params Error: element, expect a Node or it's sub Class"); }...
// TODO fix scaling var DEFAULT_N_OF_POINTS = 2000; ///////////////////////////////////////////////////////////////////////////////////////////////////////// // Constructor function Graph(config) { this.canvas = config.canvas; this.holder = config.holder; if(!(!!(this.canvas.getContext && this.canvas.getC...
import React from 'react' import { findDOMNode } from 'react-dom' import { DropTarget } from 'react-dnd' import { NativeTypes } from 'react-dnd-html5-backend' const {FILE} = NativeTypes import Head from 'next/head' import _ from 'lodash' import keycode from 'keycode' import MdAddIcon from 'react-icons/lib/md/add' ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); var _extends2 = require('babel-runtime/helpers/extends'); var _...
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]; }; return function (d, b) { ext...
var serialport = require('serialport'); var serial = require('pinoccio-serial'); var bridge = require('pinoccio-bridge'); var json = require('../../json'); var serialWatcher = require('watch-serial'); var cp = require('child_process'); var split = require('binary-split'); var shuffle = require('shuffle-array'); var pin...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.RoomMember = void 0; var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); var _events = require("ev...
var basal = require('../profile/basal'); var get_iob = require('../iob'); var find_insulin = require('../iob/history'); var isf = require('../profile/isf'); var find_meals = require('../meal/history'); var tz = require('moment-timezone'); function detectSensitivity(inputs) { glucose_data = inputs.glucose_data.map...
/*********************************************************************** * _ * _____ _ ____ _ |_| * | _ |/ \ ____ ____ __ ___ / ___\/ \ __ _ ____ _ * | |_| || | / __ \/ __ \\...
/* Shintaro OS. Part of the Retaining's memories fangame * Copyright (c) 2017-2020 ShinProg / Kagescan */ // todo (low priority) : convert all this code into JS modules // OPERATING SYSTEM CODE / API ---------------------------------------------- // var shinOSinstance = { run(){ this.container = document...
/* (c) 2021 Open AR Cloud This code is licensed under MIT license (see LICENSE for details) */ /* Utility function helping with calculations around GeoPose. */ import LatLon from 'geodesy/latlon-ellipsoidal-vincenty.js'; import {quat, vec3} from 'gl-matrix'; import * as h3 from "h3-js"; import {supportedCoun...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ /* * React component for rendering a chart of anomalies in the raw data in ...
/** * message-accumulator.js - accumulate localizable messages * * @license * Copyright © 2019, JEDLSoft * * 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.or...
import React from 'react' import { Link } from 'gatsby' import { Fragment } from 'react' import { Disclosure, Menu, Transition } from '@headlessui/react' import { BellIcon, MenuIcon, XIcon } from '@heroicons/react/outline' const navigation = [{name:'PFL', link:'/dashboard'},{name:'Unemployment', link:'/employment'},{n...
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prot...
/** * Base class for toolbar button events. Show, hide, or * move the tool tip box. * @typedef N2ToolbarButtonNoClick * @property {Object} tooltipBox A reference to the tool-tip element. * @property {Array} tooltips One or two tooltips to display. * @property {Object} toolbarButton A reference to the toolbar butt...
import React, { useState } from 'react'; import Oneshop from 'oneshop.web'; import './checkout.css'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import actions from '../../helpers/actions'; import { MoonLoader } from 'react-spinners'; import Select from 'react-select'; import {getCod...
// Import all required modules from openzeppelin-test-helpers const { BN, constants, expectEvent, expectRevert, ether } = require("openzeppelin-test-helpers"); const { expect } = require("chai"); // Contracts const Unwinder = artifacts.require("Unwinder"); const SaiTub = artifacts.require("SaiT...
/*global Ext, Ijobs, window, document, printMsg, reset, console, getUserName */ Ext.QuickTips.init(); var listStore, listGrid; var datefield1, datefield2, application, editCrontabWin; function search() { var params = {}; params['termMap.cronDesc'] = document.getElementById("cronDesc").value; params['term...
import React from 'react'; import { Modal, Tabs, Select, Card, Avatar, Row, Col, Pagination, Input, Form, Button, Checkbox, Upload, Icon, Progress, message, Spin, } from 'antd'; import { connect } from 'dva'; import styles from './videoplugin.less'; import moment from 'moment'; import ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var adf_schema_1 = require("@atlaskit/adf-schema"); var editor_common_1 = require("@atlaskit/editor-common"); var parse_cxhtml_1 = tslib_1.__importDefault(require("./parse-cxhtml")); var encode_cxhtml_1 = tslib_...
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4 */ /*global self, importScripts, postMessage, estraverse, esprima */ importScripts("esprima.js"); importScripts("estraverse.js"); /* jslint ignore:start */ console = {}; console.log = function () { postMessage({ type : 'log', value : argument...
$.ajaxSetup({timeout: 30000}) $(document).ready(function () { $("[type='checkbox']").bootstrapSwitch(); // Handle other links check if it should open in // iframe or not $('.other-link-item').click(function (e) { e.preventDefault(); window.open(url); }); $('.useiframe').click(function (e...
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
//Copyright (C) 2015 <>< <NAME>, see LICENSE file for more info. // //This particular file may be licensed under the MIT/x11, New BSD or ColorChord Licenses. is_ntsc_running = false; function KickNTSC() { if( !is_ntsc_running ) NTSCDataTicker(); } window.addEventListener("load", LoadNTSC, false); lastencs = []; ...
const capabilities = require("./capabilities"); const fs = require("fs"); const Logger = require("../../Logger"); const RoborockMapParser = require("./RoborockMapParser"); const zlib = require("zlib"); const DustBinFullValetudoEvent = require("../../valetudo_events/events/DustBinFullValetudoEvent"); const entities = r...
/* * Copyright 2018, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import { head, get, isArray, isString, flatten, isNil, isEmpty, omit, omitBy, isUn...
import {Exchange, EventExchange} from './Exchange'; import {Queue} from './Queue'; import {Shovel} from './Shovel'; const exchangesSymbol = Symbol.for('exchanges'); const queuesSymbol = Symbol.for('queues'); const consumersSymbol = Symbol.for('consumers'); const shovelsSymbol = Symbol.for('shovels'); const eventHandle...
import { Component, Fragment } from 'react' import { parse } from 'querystring' import cn from 'classnames' import { useAmp } from 'next/amp' import Router, { withRouter, useRouter } from 'next/router' import getAlgoliaClient from '~/lib/get-algolia' import logout from '~/lib/logout' import getDashboardHref from '~/lib...
// helpers (delete) var MatrixCSSClass = window.WebKitCSSMatrix || window.MozCSSMatrix || window.MsCSSMatrix || window.OCSSMatrix || window.CSSMatrix; window.makeCube = function (width, height, length) { var move = document.getElementById("move"); var parent = document.createElement("div"); var parent...
module.exports = Bugout; var debug = require("debug")("bugout"); var WebTorrent = require("webtorrent"); var bencode = require("bencode"); var nacl = require("tweetnacl"); var EventEmitter = require('events').EventEmitter; var inherits = require('inherits'); var bs58 = require("bs58"); var bs58check = require("bs58che...
const emaFunc = require('../../../lib/ema') const smoothedZScore = require('./z_score') const n = require('numbro') const ONE_HOUR = 3600000 const HALF_HOUR = 1800000 module.exports = function(s, weights, cb) { const { // price_higher_diff: PRICE_HIGHER_AMOUNT, sell_prob: SELL_THRESHOLD, sell_ema_chang...
/** * Copyright 2018 Box Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
'use strict'; /* global SettingsListener, IMESwitcher, InputAppsTransitionManager, ImeMenu, InputFrameManager, InputLayouts, LazyLoader, KeyboardHelper */ // If we get a inputmethod-contextchange chrome event for an element with // one of these types, we'll just ignore it. // XXX we won't skip these types i...
import Phaser from 'phaser'; import Ship, { getSector, TEXTURES_MAP as SHIP_TEXTURES_MAP, TEXTURE_ATLAS as SHIP_TEXTURES_ATLAS, } from './ship'; import Cannonball, { MAX_FIRE_DISTANCE } from './cannonball'; import TextButton from '/components/text-button'; const CANVAS_SIZE = 960; const TILE_SIZE = 64; const MAP_...
tiposDocumentosDS = new Ext.data.Store({ id: 'tiposDocumentosDS', proxy: new Ext.data.HttpProxy({ url: CARPETA+'/combo_td', method: 'POST' }), reader: new Ext.data.JsonReader({ root: 'rows', totalProperty: 'total' },[ {name: 'id_td', type: 'int'}, ...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; /** * The current selection object. * * @param {FileManager} fileManager FileManager instance. * @param {Array.<number>} indexes Se...
// Copyright 2014, 2015 <NAME> // X11 (“MIT”) Licensed. (See LICENSE.) var fs = require("fs") var util = require("util") var assert = require("assert") var cssTokens = require("../") suite("cssTokens", function() { test("is a regex", function() { assert(util.isRegExp(cssTokens)) }) }) suit...
import * as THREE from 'three'; import * as TWEEN from 'es6-tween'; import * as Hammer from 'hammerjs'; import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'; import { MapControls } from 'three/examples/jsm/controls/OrbitControls'; import Stats from 'stats.js'; import { tweenActiveTileToggle } from...
'use strict'; exports.__esModule = true; var _WebGLManager2 = require('./WebGLManager'); var _WebGLManager3 = _interopRequireDefault(_WebGLManager2); var _RenderTarget = require('../utils/RenderTarget'); var _RenderTarget2 = _interopRequireDefault(_RenderTarget); var _Quad = require('../utils/Quad'); var _Quad2 ...
/* * Global vars */ var NAV_HEIGHT = 75; var EVENT_CATEGORY = 'TeachingKidsToCode'; var $w; var $h; var $slides; var $components; var $portraits; var $video; var $primaryNav; var $navButton; var $nav; var $navItems; var $secondaryNav; var $arrows; var $sectionNav; var $closeNavButton; var currentSection = '_' var curr...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = cssToJsTransform; var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); var _objectSpread...
/**************************************************************************** The MIT License (MIT) Copyright (c) 2013 Apigee 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 with...
var side_toggle = true; var throttle = function(func, delay, at_least) { var timer = null, previous = null; return function() { var now = +new Date(); if (!previous) { previous = now; } if (now - previous > at_least) { func(); previous = now; } else { clearTimeout(timer); tim...
/** * @fileoverview Tests for max-statements-per-line rule. * @author <NAME> */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require("../../../lib/rules/m...
// This is the TreeTransformer class described in detail at the // top of this file. export default class TreeTransformer { // To create a tree transformer, just pass the root node of the tree constructor(root) { this.root = root; } // A utility function for determing whether an arbitrary value...
const jmespath = require('jmespath'); const presets = require('./presets.js'); const MetaExtractor = require('./MetaExtractor.js'); const defaultPresets = Object.assign({ Default: {name: 'Default', presets: ['SEO', 'Google']} }, presets) module.exports = { schemaOrgSchemas: {}, schemaOrgProp...
/* * Copyright 2014 <NAME> (http://guybedford.com) * * 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 ...
import { clamp, cond, curry, filter, identity, is, minBy, path, pipe, prop, propEq, sortBy, when } from 'ramda'; import './main.css'; import { GainControl } from './components/gain-control'; const maxBend = 2; // semitones let pitchOffset = 0; const getMasterControlsSection = () => document....
//Initial declares var quotes = [] var horizons = [] var leaf = [] var user = [] var r //Declare the foundational variables var pascalLW = { "width": 2048, "height": 2732 }; var dockRatio = .2 var textColor = "#00cbda" var fontXPadding = 150; var fontYPadding = 175; var fontY...
module.exports = Ray; var vec2 = require('../math/vec2'); var RaycastResult = require('../collision/RaycastResult'); var Shape = require('../shapes/Shape'); var AABB = require('../collision/AABB'); /** * A line with a start and end point that is used to intersect shapes. * @class Ray * @constructor */ function Ra...
import PDFJSAnnotate from '../PDFJSAnnotate'; import initColorPicker from '../utils/ColorPicker'; import appendChild from '../render/appendChild'; import normalizeColor from '../utils/normalizeColor'; import { globalStore } from '../../../stores/global'; import { t } from '../../../i18n'; import { addEventListener, ...
import React, { Component } from 'react'; import { View, StyleSheet, Text } from 'react-native'; import { Button, Icon } from 'native-base'; import { MapView } from 'expo'; import { addComponent, removeComponent, setStreaming, watchComponent, setQueryOptions, updateQuery, loadMore, setMapData, setQueryListene...
const Discord = require('discord.js'); const config = require('./config.json'); const ytdl = require('ytdl-core'); const emojiChar = require('./emojiChar.js'); const yts = require("yt-search"); const randomanime = require('random-anime'); const fs = require('fs'); const fetch = require('node-fetch'); const Coi...
//servant var servantExistImage; var initServant = []; var servantInited; var servantAliveX = [150, 622, 1102]; var servantAliveY = 600; var servantAliveW = 300; var servantAliveH = 150; var servantExistX = [166, 642, 1122]; var servantExistY = 1010; var servantExistWidth = 37; var servantExistHeight = 18; //skill va...
/** ## # Copyright (c) 2013-2014 Apple Inc. 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 b...
/** * Uniforms of a program. * Those form a tree structure with a special top-level container for the root, * which you get by calling 'new WebGLUniforms( gl, program, renderer )'. * * * Properties of inner nodes including the top-level container: * .seq - array of nested uniforms * .map - nested uniforms by na...
var replaceInnerText = '![Upload](Uploading...)'; var replaceText = '\r\n' + replaceInnerText + '\r\n'; (function ($, window) { 'use strict'; var supported = (window.File && window.FileReader && window.FileList); /** * @options * @param action [string] 'Where to submit uploads' * @param l...
/* jshint -W097 */ /* jshint strict:false */ /* jshint esversion: 6 */ /* jslint node: true */ 'use strict'; const utils = require('@iobroker/adapter-core'); const geolib = require('geolib'); const googleMaps = require('@google/maps'); const adapterName = require('./package.json').name.split('.').pop(); ...
var babylon = require('babylon'); var MagicString = require('magic-string'); /** * Given a string JavaScript source which contains async functions, return a * MagicString which has transformed generators. * * MagicString has two important functions that can be called: .toString() and * .generateMap() which return...
import React from "react"; import "./login.css"; import "../Animate/animate.css"; import QRCode from 'qrcode.react'; import {axios} from './../utils/Axios'; import {Icon,User,result,Cookie,Button,dataUtils} from '..'; const defaultUser = { phoneNumber: "", idNum: "", nickname: "昵称", password: "", u...
var express = require('express'), request = require('request'), mustacheExpress = require('mustache-express'), bodyParser = require('body-parser'), app = express(), radiodanClient = require('radiodan-client'), radiodan = radiodanClient.create(), player = radiodan.player.get('main'), ...
//js获取项目根路径 function getRootPath(){ //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath=window.document.location.href; //获取主机地址之后的目录,如: uimcardprj/share/meun.jsp var pathName=window.document.location.pathname; var pos=curWwwPath.indexOf(pathName); //获取主机地址,如: ...
var game, systemReq var systemResult var GAMEID var GAMEINFO var videohref /** * 作者: lwh * 时间: 2019.12.10 * 描述: 转换日期格式(时间戳转换为datetime格式yyyy:mm:dd hh:mm:ss) */ function timestampToTime(timestamp) { //时间戳为10位(s)需*1000,时间戳为13位(ms)的话不需乘1000,默认时间戳单位为ms let date = new Date(parseInt(timestamp)); //yyyy le...
/// <amd-dependency path="esri/core/tsSupport/declareExtendsHelper" name="__extends" /> /// <amd-dependency path="esri/core/tsSupport/decorateHelper" name="__decorate" /> var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf ||...
'use strict'; const url = require('url'); const qs = require('qs'); const fs = require('fs'); const path = require('path'); const zlib = require('zlib'); const formidable = require('formidable'); const browser_fingerprint = requir...
const NODE_SCALE = 0.4; const ARROW_SCALE = 0.4; class World { mode = "simple"; speed = 500.0; constructor(mode) { this.mode = mode; this.nodes = new Map(); this.connections = new Map(); this.nextNodeID = 0; this.nextConID = 0; this.addNode(-1, [ wi...
//The MIT License (MIT) //Copyright (c) 2018 <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 restriction, including without limitation the rights to use, copy, modify, merge,...
import React from "react"; import ReactDOM from "react-dom"; import ReactInterval from 'react-interval'; import evalExpression from "eval-expression" import $ from "jquery"; import CopyToClipboard from 'react-copy-to-clipboard'; import { connect } from "react-redux"; import { Link } from "react-router"; import { push...
var FlexWhale; (function (FlexWhale) { var Lookup; (function (Lookup) { var ContainsFilterController = (function () { function ContainsFilterController() { } ContainsFilterController.prototype.filter = function (items, filterProp, text) { if (text.leng...
'use strict'; /* globals $, tokenTypes, CodeMirror, ohm, typeInference, tinycolor, rbExamples, rbInterp */ /* jshint unused: false */ /* eslint no-unused-vars: 0 */ var editor; var jscode; var DEFAULT_TYPE = 'inferred type'; var updateSlider; var outputError; var m; var rbTypeList = [DEFAULT_TYPE, 'string', 'int', '...
if (window.parent !== window) { byId('console').style.display = 'none'; byId('dirsel').style.display = 'none'; } window.onresize = function() { if (this.fsnRender) { this.fsnRender.canvas.width = window.innerWidth; this.fsnRender.canvas.height = window.innerHeight; this.fsnRender.display.changed = ...
/* globals gitHubInjection, pageDetect, diffFileHeader, addReactionParticipants, addFileCopyButton, enableCopyOnY */ 'use strict'; const {ownerName, repoName} = pageDetect.getOwnerAndRepo(); const repoUrl = `${ownerName}/${repoName}`; const getUsername = () => $('meta[name="user-login"]').attr('content'); function li...
let lastDate = 31; let dateArray = []; for (let index = 1; index <= lastDate; index++) { dateArray.push(index); } // let systemSettingData; let placing; $(document).ready(function(){ // systemSettingData = getTableData(`gen_system_setting_tbl`); placing = ["First", "Second","Third","F...
/* * Copyright (C) 2011-2012 by <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, merg...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FastApi = void 0; const tslib_1 = require("tslib"); const server_1 = require("@velocejs/server"); const constants_1 = require("@jsonql/constants"); const bodyparser_1 = tslib_1.__importStar(require("@velocejs/bodyparser")); const confi...
import {updateSorting, deleteBullet, editBullet, getBulletsByDay} from "../../api/journal" import getHeader from "../../utils/header"; import {getJournal, getDate} from '../../utils/localStorage' //Hold the dragged element var dragSrcEl = null; /** * Creates a new Entry Component for the Daily View * @class * */...
import React, { useState, useEffect } from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import { ScrollView } from 'react-native-gesture-handler'; import {Picker} from '@react-native-picker/picker'; import DateTimePicker from '@react-native-community/datetimepicker'; import { withTheme, TextInp...
var myvar = '<link rel="stylesheet" type="text/css" href="css/investment-stocks.css">' + '<div class=\'main-investment-stocks\'>' + ' <div class="demo-img">' + ' <img src="/img/investment-stocks/trade-kanban_960x435.png" />' + ' </div>' + ' <div class="hold-stocks-groups">' + ' <h1> 持有清單 </h1>' ...
"use strict"; function createEl(template) { var el = document.createElement('div'); el.innerHTML = template.trim(); return el.firstChild; } function createSvgEl(template) { var el = createEl('\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + template.tr...
#!/usr/bin/env node /* * BSD 3-Clause License * * Copyright (c) 2015, <NAME> and others as credited in the AUTHORS file * 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. Redistribut...
var _ = require('libs/underscore-min')._; /* * Shooter game example * * Touch screen to move our ship. The bullets are fired automatically. */ var alloy = require('co.lanica.platino'); function MainScene(window, game) { var _ = require('libs/underscore-min')._; var showingEndScreen = false; var debug ...