text
stringlengths
5.97k
41.2k
const message = document.querySelector("#message"); const temperature = document.querySelector("#tempData"); const pluie = document.querySelector("#tempRain"); const weatherData = document.querySelectorAll(".data"); const weatherDate = document.querySelector("#weather-date"); const setTime = document.querySelector("#se...
/** The MIT License (MIT) Copyright 2017-2021 <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, merg...
/* globals $, L, moment, GTFS_BASE_URL */ var refreshRate = 5 * 1000 var refreshAttempts = 1 var markers = {} var locationMarker = {} var tripUpdates = {} var routesData = {} var agenciesData = {} var routeShapes = {} var stopsData = {} // Sets up a map of Nashville var map = L.map('map', { doubleClickZoom: false,...
import PropTypes from 'prop-types'; import React from 'react'; import {g, helpers} from '../../common'; import {getCols, logEvent, realtimeUpdate, setTitle, toWorker} from '../util'; import {BarGraph, DataTable, Dropdown, HelpPopover, NewWindowLink, PlayerNameLabels} from '../components'; class FinancesForm extends Re...
import 'babel-polyfill'; import React from 'react'; import {hot} from 'react-hot-loader'; import {isEqual} from 'lodash'; import Header from './Header'; import BetaWarning from './BetaWarning'; import CheckBalanceButton from './CheckBalanceButton'; import CheckAllBalancesButton from './CheckAllBalancesButton'; import A...
const express = require('express'); const { readFileSync } = require('fs'); const handlebars = require('handlebars'); const app = express(); // Serve the files in /assets at the URI /assets. app.use(express.static("public")); // The HTML content is produced by rendering a handlebars template. // The template values a...
var DEFAULT_APP_ID = 1089; var DEFAULT_API_URL = "frontend.binaryws.com"; var DEFAULT_LANGUAGE = "EN"; var DEFAULT_BRAND = "binary"; var VALID_LABELS = ["beta", "deprecated"]; var api; var $console; // Add paths with same names as keys for fallback require.config({ baseUrl: getBaseUrl(), path: { "/docson/docs...
import Head from 'next/head' import axios from 'axios' import { useRouter } from 'next/router' import Link from 'next/link' import InscricoesValidator from '../middlewares/InscricoesValidator' import styles from '../../styles/Inscricoes.module.css' import { useState, useEffect } from 'react' import myGet from '../lib...
var DATA_8 = { MATERIALS: [ "Air", "Stone", "Grass", "Dirt", "Cobblestone", "Wood", "Sapling", "Bedrock", "Water", "Stationary Water", "Lava", "Stationary Lava", "Sand", "Gravel", "Gold Ore", ...
const TableIconEnum = Object.freeze({ "EDIT": "fa fa-edit", "SAVE": "fa fa-save", "DELETE": "far fa-trash-alt" }) const ButtonTypeEnum = Object.freeze({ "SUBMIT": "submit", "EDIT": "edit", "DELETE": "delete" }) const RequestEnum = Object.freeze({ "SERVER": "server", "CLIENT": "client", "GET": "GET", "POST": "POST", "PU...
/** * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * 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...
/******************************************************************** Editor部分 ********************************************************************/ //从dom里取一个节点作为graph的容器,如果没有的话就新建一个。 function createGraphContainer(id){ var container = null; if(id != null){ //从既有的dom节点里选一个节点。 container = document.getElementBy...
/* eslint-disable max-len,no-shadow,no-param-reassign,no-underscore-dangle,no-use-before-define,consistent-return,arrow-parens */ const { JsonataTransform } = require('@elastic.io/component-commons-library'); const request = require('request-promise'); const { messages } = require('elasticio-node'); const xml2js = req...
"use strict"; 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]; ...
const { define_subscribable, } = await import('../subscribable.js'); const { generate_object_id, } = await import('../uuid.js'); const { create_element, create_child_element, } = await import('../dom-util.js'); const { get_command_bindings, } = await import('./key-bindings.js'); const { key_...
function gettab(language) { var $tab = $("<div title='"+language+"' style='padding:20px;'></div>"); var $contents = $(".jumbotron").contents(".temlateActivity1ByLanguage") ; $contents = $contents.clone(true); $contents.css("display","block"); $tab.append($contents); return $tab; } function addNewLanguageTab(sel...
'use strict'; const proximity = require('../util/proximity.js'); const queue = require('d3-queue').queue; const coalesce = require('@mapbox/carmen-cache').coalesce; const bbox = require('../util/bbox.js'); const termops = require('../text-processing/termops'); const constants = require('../constants'); module.exports ...
"use strict"; var HK_CHARS = ` * – k s t n h m y r w g d b p z a あア かカ さサ たタ なナ はハ まマ やヤ らラ わワ がガ だダ ばバ ぱパ ざザ i いイ きキ しシ ちチ にニ ひヒ みミ ※ りリ ゐヰ ぎギ ぢヂ びビ ぴピ じジ u うウ くク すス つツ ぬヌ ふフ むム ゆユ るル ※ ぐグ づヅ ぶブ ぷプ ずズ e えエ けケ せセ てテ ねネ へヘ めメ ※ ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
/** * Copyright 2015 IBM Corp. 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 applica...
module.exports.DefaultHostValues = { host : '127.0.0.1', port : 9600 }; module.exports.DefaultOptions = { timeout: 2000, max_queue: 50, protocol: "udp" }; module.exports.DefaultFinsHeader = { ICF : 0x80, RSV : 0x00, GCT : 0x02, DNA : 0x00, DA1 : 0x00, DA2 : 0x00, SNA...
/*Research Details Table*/ const researchTable = document.querySelector(".main"); const research = [ { title : "Towards Asynchronous Motor Imagery-Based Brain-Computer Interfaces: a joint training scheme using deep learning", authors : "P.Cheng (First Author), P.Autthasan, B.Pijarana, E.Chuangsuwa...
var mc = require('./mcprotocol'); var conn_r = new mc; var conn_w = new mc; var testID = 1; var testRepeatCount = 1; var testOKCount = 0; var testNGCount = 0; var WrittenValue = {}; var ReadyValue = {}; var resTest = {}; var sqno = 0; var evtReauestValuesWritten = false; var evtReauestValuesReady = ...
/* eslint-disable quotes */ /* eslint-disable no-eval */ /* eslint-disable max-len */ /* eslint-disable no-restricted-syntax */ /* eslint-disable no-console */ /* eslint-disable no-nested-ternary */ /* eslint-disable no-sparse-arrays */ // when updated to d3 v5 only import d3.svg, d3.select, d3.scale, d3.dispatch, d3.s...
// vendor libraries var $ = require('jquery'); var _ = require('underscore'); var async = require('async'); var Backbone = require('backbone'); var jqIframe = require('blueimp-file-upload/js/jquery.iframe-transport'); var jqFU = require('blueimp-file-upload/js/jquery.fileupload.js'); var i18n = require('i18next'); var ...
"use strict"; /** * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.applyMeshSubstanceSmoothing = exports.applyMeshTransparencySmoothing = exports.applyMeshOverpain...
(function (window, document) { "use strict"; const retrieveURL = function (filename) { var scripts = document.getElementsByTagName('script'); if (scripts && scripts.length > 0) { for (var i in scripts) { if (scripts[i].src && scripts[i].src.match(new RegExp(filename + '\\.js$'))) { ...
/* * * 此脚本由乐章网络制作完成 * 购买商业脚本请加群:1049548 * */ //importPackage(net.sf.cherry.client); var aaa = "#fUI/UIWindow.img/Quest/icon9/0#"; var zzz = "#fUI/UIWindow.img/Quest/icon8/0#"; var sss = "#fUI/UIWindow.img/QuestIcon/3/0#"; //------------------------------------------------------------------------ var chosenMa...
var path = require('path'); var fs = require("fs"); var _ = require('lodash'); var handlebars = require('handlebars'); var cheerio = require('cheerio'); var Q = require('q'); var shell = require('shelljs'); var JSZip = require('./src/libs/jszip.js'); var archiver = re...
//const convnetjs = require("./convnet.js"); var deepqlearn = deepqlearn || { REVISION: 'ALPHA' }; (function (global) { "use strict"; // An agent is in state0 and does action0 // environment then assigns reward0 and provides new state, state1 // Experience nodes store all this information, w...
$(function(){ //点击按钮,弹出到新的标签页(框架内的) $(document).on("click", ".toNewPage", function(e) { var $this = $(this), href = $this.attr('href'), icon = $this.attr('icon')||$this.data("icon")||"", title = $this.data("title") || $this.attr("title") || $this.text(); if(icon!=''){ icon = '<i class="'+icon+'"...
// Server Code's Start const tmi = require("tmi.js"); const rp = require('request-promise-native'); const countdown = require('countdown'); const request = require('request'); var SpotifyWebApi = require('spotify-web-api-node'); var kanser = 200; var spotifyApi = new SpotifyWebApi({ clientId: '{SPOTİFY_CLİENT_İD}...
"use strict"; var app = app || {}; var scoreForm; var scoreValue; app.main = { // properties WIDTH : 640, HEIGHT: 480, canvas: undefined, ctx: undefined, lastTime: 0, // used by calculateDeltaTime() debug: true, paused: false, animationID: 0, boundaries: false, // Entity Counts numEnemies: 2, nu...
import React from 'react' import ReactFileReader from 'react-file-reader' import { Button, Typography, TablePagination, ListItem, List, ListItemText } from '@material-ui/core' import IconButton from '@material-ui/core/IconButton'; import * as XLSX from 'xlsx' import ReactExport from "react-export-excel"; import BackupI...
/*jslint node: true, sloppy: true */ // regular expressions to clear, validate and get the values /*jslint regexp: true */ /** * Regular expression to find lines which shouldn't be parsed * @property skipLineRex * @final * @private */ var util = require('./util'); var skipLineRex = /^\s*(\n|\#|;)/, /** * ...
/** * simple little unit test runner, in the spirit of nodeunit * * Copyright (C) 2015,2017-2020 <NAME> * Licensed under the Apache License, Version 2.0 * * 2015-02-24 - AR. */ 'use strict'; var assert = require('assert'); var fs = require('fs'); var path = require('path'); var child_process = require('child_p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }...
// $.ajaxSetup({ // headers: { // 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') // } // }); /*** Global Variables to store it in the database via ajax **/ var CIRCLES = [], POLYGONS = [], RECTANGLES = [], SHAPES = [], infoWindowArr = [], POLYLINES = []; /* infowind...
import React, { Component } from 'react'; import { CSelect, CSwitch, CModal, CModalHeader, CModalTitle, CModalBody, CModalFooter, CCard, CCardBody, CCardHeader, CCol, CRow, CButton, CDataTable, CInput, CTextarea, CFormText, CToaster, CToastHeader, CToastBody, CToast, CListGroup, CListGroupItem } from '@coreui/react'; i...
$supported_image = ['.gif', '.jpg', '.jpeg', '.png']; var altura = $(document).height(); var DT; var $HEADINCIDENCIA = 0; var dtTbHistorialIncidencia = $('#TblHistorialIncidencia').DataTable({ language, processing: true, pageLength: 10, ordering: false, dom: domBftrip, ajax: { url: base_url()+"Propietario/Inci...
var title = "It's Educational II"; var desc = "Get your learn on in the Museum of the Rook."; var offer = "Now, this way please. Let us enter the museum."; var completion = "You have seen all there is to see here. Do you now feel prepared to do battle with the Rook?<split butt_txt=\"I'm not sure.\" \/>I understand your...
const _vux = {} const isBrowser = typeof window !== 'undefined' isBrowser && (window.vux = _vux) import Style from '../styles/index.vue' // eslint-disable-line import vuxActionsheet from 'src/components/actionsheet/index.vue' _vux['vuxActionsheet'] = vuxActionsheet import vuxAgree from 'src/components/agree/index.vu...
var startDate = '2015/11/14 00:00:00'; //播放器播后唤起开始时间 var endDate = '2015/11/15 00:00:00'; //播放器播后唤起结束时间 var onPlayBtn = 0;//播后无条件唤起开关 ==2是独播 var opCookie = function(name, value, options) { if (typeof value != 'undefined') { options = options || {}; if (value === null) { value = ''; ...
const FileExplorer = new function(){ this.rootFolder; this.currentFolder; this.fileType; this.renderFinished = false; this.initialize = function(folder, fileType, container) { // bind this to the container element container.FileExplorer = this; this.fileType = fileType; ...
/** * A Configuration menu that allows the user to specify a *.map file * and a *.svg to build a world off of. This FormApplication will parse * the map file for all relevant information, and build a new scene to * represent all of the data gathered. Additionally will store data in * Journal Entries in order to ma...
const { validateSchema } = require("webpack"); const schema = require("./options.json"); const fs = require("fs"); const { v4: uuidv4 } = require("uuid"); /** * getFileScripts function will return the script object of the * file for the meta json file * * @param {object} fileObject: Object having name and descri...
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableHighlight, NativeAppEventEmitter, NativeEventEmitter, NativeModules, Platform, PermissionsAndroid, ListView, ScrollView, AppState, Dimensions, } from 'react-native'; import BleManager from 'react...
var jsonWork; var zoom = 1.8; var estilo = ""; var proced = new Object(); $( document ).ready(function() { logger("ready!"); $("#desHtml").hide(); $("#desCSS").hide(); $("#zoom").val(zoom); $("#ghtml").on('click',function(){ zoom = $("#zoom").val(); $("#divhtml").empty(); $.get("xml/" +...
const async = require('async') const fs = require('fs') const util = require('util') const later = require('later') later.date.localTime() const path = require('path') const getOrderedSchedules = (_G, schedules) => { return Object.keys(schedules) .sort((a, b) => { let sched_a = later.parse.cron(schedules[a...
const os = require('os'); const fs = require('fs'); const path = require('path'); const semver = require('semver'); const ChainUtil = require('./chain-util'); // Genesis configs. const DEFAULT_GENESIS_CONFIGS_DIR = 'genesis-configs/base'; const CUSTOM_GENESIS_CONFIGS_DIR = process.env.GENESIS_CONFIGS_DIR ? process...
'use strict'; /** * Request and translate HTML */ /* Dependencies */ const BBPromise = require('bluebird'); const cheerio = require('cheerio'); const contentType = require('content-type'); const iconv = require('iconv-lite'); const parseAll = require('html-metadata').parseAll; const urlParse = require('url'); /* L...
import express from 'express'; import http from 'http'; import https from 'https'; import fetch from 'node-fetch'; import multer from 'multer'; import WebSocket from 'ws'; import fs from 'fs'; import os from 'os'; import path from 'path'; import bodyParser from 'body-parser'; import cookieParser f...
/** * 数据类型判断 * @param subject 待判断的数据 * @param type 数据类型名字 * @return 判断结果 */ function is(subject, type) { return Object.prototype.toString.call(subject).substr(8, type.length).toLowerCase() === type; } /** * 是否是数组 * @param subject 待判断的数据 */ function isObject(subject) { return ...
var table; var table1; jQuery.support.cors = true; $(function () { var token = getCookie('token'); var name = getCookie('name'); table=$('#example').DataTable({ "bDestroy":true, "paging": true, "lengthChange": false, "searching": true, "ordering": true, "info": true, "autoWidth": false...
import "antd/es/spin/style"; import _Spin from "antd/es/spin"; import "antd/es/config-provider/style"; import _ConfigProvider from "antd/es/config-provider"; import "antd/es/space/style"; import _Space from "antd/es/space"; function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < argum...
/* function pluspr(){ alert("บันทึกข้อมูลแล้ว!!"); $.mobile.changePage('#pagepr'); } function additem(){ alert("เพิ่มสินค้า!!"); document.getElementById("noitems").value = ""; $("#itemdetail").hide(); $("#bt-scan").show(); $.mobile.changePage('#additem'); } function scanadditem(){ alert("M150"); docu...
/** * @author NAVER (<EMAIL>) * @version 0.1 * @brief 에디터 관련 스크립트 */ /** * 에디터 사용시 사용되는 이벤트 연결 함수 호출 **/ /** * 에디터의 상태나 객체를 구하기 위한 함수 **/ // editor_sequence값에 해당하는 textarea object를 return function editorGetTextArea(editor_sequence) { return jQuery('#editor_textarea_' + editor_sequence)[0]; } function edito...
/** * Copyright 2017-present, The Visdom Authors * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. * */ import React from 'react'; import EventSystem from './EventSystem'; const Pane = require('./Pane'); import * as T...
// manipulate data var theKey = '<KEY>'; var myApp = angular.module('myApp', ['angularUtils.directives.dirPagination','ngAnimate', 'ngSanitize', 'ui.bootstrap']); var thePort = 80; var localhost = "172.16.17.32"; // var hostPrefix = "http://www.congress-tracker.com:"; var hostPrefix = "http://localhost:"; function Mai...
const {WebcController} = WebCardinal.controllers; import Product from '../models/Product.js'; import Languages from "../models/Languages.js"; import constants from '../constants.js'; import getSharedStorage from '../services/SharedDBStorageService.js'; import DSU_Builder from '../services/DSU_Builder.js'; import Upload...
const express = require('express'); const app = express(); const cors = require('cors'); const checkJwt = require('./checkJWT').checkJwt; require('dotenv').config(); const bodyParser = require('body-parser'); const LISTEN_PORT = require('./config.js').LISTEN_PORT; const MONGO_URI = require('./config.js').MONGO_URI; con...
const fs = require("fs"); const cp = require('child_process'); const EventEmitter = require('events'); const irTransmitter = require('irdtxclass'); const BLEperipheral = require("ble-peripheral"); const Crypto = require("cipher").encryption; const GdtManCom = require('./gdtManCom.js'); const logPrefix = 'appManagerCla...
let LOG_INFO = false; let LOG_ERROR = false; class Db { // // Adjusted to work with Pages / functions. ToDo Combine with the other. // // A simple database with a query language on top of Cloudflare Key-Value // store (https://developers.cloudflare.com/workers/learning/how-kv-works) // desig...
// analyzernode.main.js let spec_type = 1; //1=mel, 2=power, 3=freq let window_step = 0.025; let window_width = 0.040; let f_min = 50; let f_max = 4000; let N_FFT_cut = 256; let N_mels = 128; let mel_bins_Hz = []; let P_GAIN = 1000; //Autoset variables let high_f_emph = Math.round(10/N_mels) let N_FFT_max = parse...
import React, {Component} from "react" import { TweenLite, Linear, TweenMax, TimelineMax, Power1, Bounce } from "gsap"; import RamenNoobTxt from '../components/images/RamenNoobTxt.js' import AniLink from "gatsby-plugin-transition-link/AniLink"; import BackgroundIntro00 from '../components/images/BackgroundIntro00.j...
CanvasManager.initializeCanvas("asteroid", 200); function Sky() { } function Missile() { } function Asteroid(type) { this.type = type; } function Explosion() { } class CollisionResolutionSystem extends System { constructor(poolSystem) { var signature = BitUtils.getBitEquivalentForComponent(["Colli...
import { BLEND_TYPE, CULL_FACE_TYPE, WEBGL_COMPARE_FUNC } from '../../const.js'; import { Vector4 } from '../../math/Vector4.js'; function createTexture(gl, type, target, count) { var data = new Uint8Array(4); // 4 is required to match default unpack alignment of 4. var texture = gl.createTexture(); gl.bindTexture...
/* HOMEWORK */ /** * 0) Pre-preparacion. * - Vytvořte HTML stránku s nadpisem h1 "JavaScript is awesome!" * - Na stránce vytvořte místo pro umístění jednotlivých spouštěčů úkolů - tlačítek (tj. div, který má id s hodnotou "task-buttons"). * - Na stránce vytvořte místo pro výpis výsledků úkolů (div, kte...
// noinspection JSUnfilteredForInLoop const maxUTXOs=100; const syncIfIdell=300000; //5min const syncIntervalsIfNotUsed=6; const changeAddressLabel="temp_change"; const config=require('./config'); const DigiByte=require('digibyte-rpc'); const stream=require('./stream'); const screen=require('./screen'); const Expect...
/** * node-convict * Configuration management with support for environmental variables, files, * and validation. */ const deprecate = require('depd')('node-convict'); const validator = require('validator'); const moment = require('moment'); const minimist = require('minimist'); const cloneDeep = require('lodas...
import {createRawFileParser} from './../generic'; import {definition as materialTemplateDefinition} from './../materials/materialTemplate'; import {definition as creatureVariationDefinition} from './creatureVariation'; import {definition as tissueTemplateDefinition} from './tissueTemplate'; const appearanceModifiers =...
var resData = [ { "id": "1", "hs": "SC", "tariff": "TPFG", "s_addr": "BKK", "d_addr": "KMG", "s_con": "TH", "d_con": "CN", "fare": "BOW16B ", "ow_rt": "1", "routing": "0001", "fn": "4M", "coun": "THB", "price": "000012300.", "s_time": "1-Jan-17", "e_time": "31-Dec-17" }, { "id": "2", "hs": "SC", "tariff": "TPF...
// Document ready $(document).ready(function() { //call start functions add_btn_lyr(); }); //$(document).ready //--- setInterval( function() { prepare_discover(); //_onsole.log('------------------------------------'); }, 500 ); function mod_btn_lyr(lyr){ var d = d...
$(document).ready(function(){ var home_url = $('#home_url').val(); var pageURL = window.location.href; var user_id = pageURL.substr(pageURL.lastIndexOf('/') + 1); $('.datetimepicker').datetimepicker({ format: 'HH:mm' }); $('.reg_step7_submit').click(function(){ if (!$('#register_schedule #agree').is(':checke...
"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...
const express = require("express"); const router = express.Router(); const multer = require("multer"); const upload = multer({ dest: "uploads/" }); const mongoose = require("mongoose"); const filenamify = require("filenamify"); const passport = require("passport"); const validator = require("validator"); const NoticesO...
/* ### Basic Reqs - [ ] Where to store data? (localstorage) - [ ] How to caputure data? (web form) - [ ] How to modify data? (update action, delete action) - [ ] How to view data? (style?) - [ ] UI/UX considerations (how are we going to use this) */ //localStorage interaction function //get item var getItem = funct...
import React, { useContext, useEffect, useState } from 'react'; import { LinearGradient } from 'expo-linear-gradient'; import RemoveIMG from '../assets/error.png'; import Context from '../context/context.js'; import CheckIMG from '../assets/check.png'; import { Dimensions, StyleSheet, View, Text, TextInput, TouchableOp...
export function parseHash() { if (!window.location.hash) return {}; const hash = window.location.hash.substring(1); return hash.split('&') .map(s => ({ [s.split('=')[0]]: s.split('=')[1] })) .reduce((acc, val) => ({ ...acc, ...val }), {}); } function getDelayFromUrlHash() { const hash = parseHash(); return ...
import { Color, Face3, Geometry, Vector2, Vector3, Vertex } from "./three"; const clamp = x => x < 0.0 ? 0.0 : x > 1.0 ? 1.0 : x; export class Hexagon { constructor(position) { this.position = position; this.color = new Color(0x118844); this.A = null; this.B = null; this.C ...
var apijs = require ("tnt.api"); var deferCancel = require ("tnt.utils").defer_cancel; var board = function() { "use strict"; //// Private vars var svg; var div_id; var tracks = []; var min_width = 50; var height = 0; // This is the global height including all the tracks var widt...
"use strict"; window.$ = window.jQuery = require('jquery'); // Seconds to keep records in memory const SEC_LIMIT = 120; const {clipboard} = require('electron') const remote = require('electron').remote; const BrowserWindow = remote.BrowserWindow; const ipc = require('electron').ipcRenderer const os = require('os'); ...
import BlocksoftAxios from './BlocksoftAxios' import BlocksoftCryptoLog from './BlocksoftCryptoLog' import ApiProxy from '../../app/services/Api/ApiProxy' import config from '../../app/config/config' const MAX_CACHE_VALID_TIME = 6000000 // 100 minutes const MIN_CACHE_VALID_TIME = 600000 // 10 minute let CACHE_VALID_TI...
function expandtemplate(options,callback) { // Interpretation of timeRanges: // DATE/DURATION = DATE/now+DURATION // DURATION/DATE = DATE+DURATION/DATE // DATE1/DATE2 = DATE1/DATE2 // DURATION1/DURATION2 = now+DURATION1/now+DURATION2 var template = options.template; var timeRange = optio...
//To win you need //player.foundLittleDuck //player.momDuckHasLittleDuckNow <--- most important, as it can be forgotten to do this! :D //player.freedStuckDuck //player.bigDuckHappy //player.freedDucksFromJail //player.badDuckGoodNow //Tile Colors Tiles = {}; Tiles.FullStop = [133, 72, 72, 255]; Tiles.White = [255, 2...
var dgram = require("dgram"); function FanMaster (numberOfExpectedFans) { this.allFans = {}; // Dictionary of fan name -> BigAssFan this.connectionOpen = false; this.fanPort = 31415; this.everyone = "255.255.255.255"; this.server = dgram.createSocket("udp4"); this.pollingIntervalForFans = 1000;...
// TOKEN var TOKEN = ''; // INPUT VARIABLE var STATUS_WORD_VARIABLE_ID = ''; // LAST_TRIP VARIABLE var LAST_TRIP_VARIABLE_ID = ''; var leds = $('.leds-container'); var spinner = $('.spinner-container'); var ltrip = $('.last-trip'); var ui_status; var prev_bits_array = []; var update_ms = 1000; // UI status const U...
/** Displays and updates UI elements. */ export class View { constructor(model) { // TODO: use observer interface & have View subscribe to model this.model = model; this.infopaneView = new InfopaneView(model); this.canvasView = new CanvasView(model); this.setCanvasDimensions(); this.displayUn...
/** * 에디터에서 사용하기 위한 변수 **/ var editorMode = []; ///<< 에디터의 html편집 모드 flag 세팅 변수 (html or null) var editorAutoSaveObj = {fo_obj:null, editor_sequence:0, title:'', content:'', locked:false}; ///< 자동저장을 위한 정보를 가진 object var editorRelKeys = []; ///< 에디터와 각 모듈과의 연동을 위한 key 값을 보관하는 변수 var editorDragObj = {isDrag:false, y:0...
import {Button, Card, Col, Form, Input, message, Popconfirm, Row, Select, Spin, Table, Modal} from "antd"; import React from "react"; import {Ellipsis} from "ant-design-pro"; import styles from "./index.less"; import moment from "moment"; import { updateTaskLog, getStaffList, getTaskAbnormalListByCondition, invalid...
// Needs: // club - passed to rpc with match // tourneyname - passed to rpc with match // canupdate - weither to talk to server // maxplayers - starting players determination function late_insert_player(name, rank) { var element; var stash = document.getElementById("pregame"); var edit = docume...
"use strict"; var __importDefault = void 0 && (void 0).__importDefault || function (mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleElement = void 0; const dom_1 = require("./dom"); const accessibility_1 = requ...
/* import TokenArtifact from "./src/contracts/Token.json"; import NFTimeshareArtifact from "./src/contracts/NFTimeshare.json"; import NFTimeshareMonthArtifact from "./src/contracts/NFTimeshareMonth.json"; import TestNFTArtifact from "./src/contracts/TestNFT.json"; import contractAddress from "./src/contracts/contract-a...
//当前层对外引用 var g_GPTouchLayer; var GPTouchLayer = cc.Layer.extend({ ctor: function () { this._super(); g_GPTouchLayer = this; this.initGame(); this.initBatchNode(); this.initScore(); this.initTime(); this.initLife(); this.initRabbit(); this.presetMoonCakes(); this.pr...
/** * @file Counto12 application client-side javascript * @author <NAME> (excluding 'RunPrefixMethod' function) * @copyright 2013 <NAME> (excluding 'RunPrefixMethod' function) * @license MIT */ // clock aspect ratio var caspect = 1.6; // gap between images as a percentage of image height var igap = 30/105...
main(); function main() { let tabs = JSON.parse(localStorage["tabs"] || JSON.stringify([])); populateTabs(tabs); document.getElementById("numtabs").textContent = tabs.length + " tabs"; enableSearchBar(); enableButtons(); } function populateTabs(tabs) { let container = document.getElementById("container"); for(...
/* 888b d888 d8b 8888b d8888 Y8P 88888b.d88888 888Y88888P888 8888b. 888 88888b. 888 Y888P 888 "88b 888 888 "88b 888 Y8P 888 .d888888 888 888 888 888 " 888 888 888 888 888 888 888 888 "Y888888 888 888 888 */ /** * mainZMov - Classe principal de l'application cliente */...
//////////////////////////////////////////////////////////////////////////////// // // Author: <NAME> // Keywords: Actor // Filename: Actor.js // Date: 4/15/2020 // Description: Abstract class that describes a sprite/locomotive with // better acting abilities. // /...
import Vue from 'vue' import Router from 'vue-router' // 首页 const home = resolve => require(['@/pages/home/home'], resolve); const index = resolve => require(['@/pages/home/index/index'], resolve); //扫一扫 const scanning = resolve => require(["@/pages/home/index/scanning/scanning"], resolve); //地址 const location = resol...
var data = [{ type: "sankey", orientation: "h", hoverinfo: "none", textfont: { size: 16, color: '#FFFFFF', }, node: { thickness: 20, line: { color: "black", width: 0.25, }, label: ["Screening: 100", "Randomized...