text
stringlengths
8.5k
48.7k
import React, { useEffect, useRef, useState, useMemo } from "react"; import io from "socket.io-client"; import { Container, Paper, Avatar, Button, Typography, Grid, Card, Grow } from "@material-ui/core"; import CallPageFooter from "./CallPageFooter/CallPageFooter"; import JoiningPage from "../JoiningPag...
/** * Detects iOS developer and distribution certificates and the WWDC certificate. * * @module simulator * * @copyright * Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved. * * @license * Licensed under the terms of the Apache Public License. * Please see the LICENSE included with this distributio...
import React, { Component } from 'react'; import {Container, Left, Right, Title, Body, Button} from 'native-base'; import Icon from 'react-native-vector-icons/Ionicons'; import {Image, View, Dimensions, Alert, Text, TextInput, TouchableOpacity, TouchableHighlight, ScrollView, AsyncStorage, ListView, Modal, ToolbarA...
// Фунции общего применения const log = (log) => { console.log({ log }); } const hide = (el) => { el.classList.add('hidden'); } const show = (el) => { el.classList.remove('hidden'); } const setCookie = (name, value) => { document.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value) l...
// Microsoft Public License (Ms-PL) // // This license governs use of the accompanying software. If you use the // software, you accept this license. If you do not accept the license, do not // use the software. // // 1. Definitions // The terms "reproduce," "reproduction," "derivative works," and "distribution" // ...
Vue.config.productionTip = false; var host="egame.leidata.com"; var str=window.location.href; var minH =$(window).height()-294; var id =str.split('?')[1].substring(1); var index =str.split('?index=')[1]; // console.log(index); var pl =''; var num = 0; var title=''; $("#input").focus(function(){ $(".touz li").remove...
/** * common.js 通用方法封装 */ // const eduWebinarId = '81268737114'; const busWebinarId = '84024975392'; const onboardWebinarId = '85380824652'; const webinarBaseUrl = { 'localhost:1313': 'https://vibe-beta.com/api/', 'vibe-beta.com': 'https://vibe-beta.com/api/', 'vibe.us': 'https://vibe.us/api/', }; /** axios请求封装...
import '@polymer/polymer/polymer-legacy.js'; import '@polymer/iron-flex-layout/iron-flex-layout.js'; import '@polymer/iron-icon/iron-icon.js'; import '@polymer/paper-ripple/paper-ripple.js'; import '@polymer/paper-styles/color.js'; import '@polymer/paper-styles/default-theme.js'; import '@polymer/paper-styles/shadow.js...
/** * View Description * * @langversion JavaScript * * @author University Of Alcala * @since 2013 */ var View = require('core/View'); var GraphCollection = require('collections/GraphCollection'); // Templates & Partials var HomeTemplate = require('templates/HomeTemplate'); var LanguagesTemplate = req...
/** * @author: <NAME> * @version: 1 * * Description: The Core API * * A location to store all of the scripts common to student and teacher, specifically editing pen stroke functionality * * Needs: scriptsCommon */ /**Drawing tools setup***********************************************************...
function addColumn(tableid, myindex) { var r_i = 0 ; $('#'+tableid+' tr').each(function(){ td = $(this).find("td").eq(myindex); $(this).append(td.clone(true)); newtd = $(this).find("td").last(); cur_index = newtd.index(); newtd.children().each(function()...
const fs = require('fs'); // test with different builds let entryPoint = "../index"; // entryPoint = "../build/ts.bundle.js"; // entryPoint = "../build/ts.es5.js"; // entryPoint = "../build/ts.es5.min.js"; const Srl = require(entryPoint); const Gen = Srl.Generative; const Algo = Srl.Algorithmic; const Mod = Srl.Tran...
/** * very quick printf-like string interpolator * * Implements all traditional C printf conversions, including field widths, * precision, and very large numbers. * * Copyright (C) 2015-2017,2021 <NAME> * Licensed under the Apache License, Version 2.0 * * 2015-02-24 - AR. */ 'use strict'; module.exports.vsp...
/* This file is part of LoopInsighT1, an open source tool to simulate closed-loop glycemic control in type 1 diabetes. Distributed under the MIT software license. See https://lt1.org for further information. */ /* The model implemented in this file uses information from the following scientific sources:...
import { getClassNameByExt, htmlEncodeReg } from 'src/util'; var applicationAjax = require('src/api/application'); var postAjax = require('src/api/post'); var langUploadFiles = _l('上传附件') + '...'; var langShareLink = _l('分享网站') + '...'; var langVoteQuestion = _l('请输入投票问题') + '...'; var MyUpdater = { options: { ...
import { Fl, installFlag } from './flag.js'; /////////////////////////////////////////////////////// // ACTION export const Action = installFlag('action', { A_USE : Fl(0), A_EQUIP : Fl(1), A_PUSH : Fl(2), A_RENAME : Fl(3), A_ENCHANT : Fl(4), A_THROW : Fl(5), A_SPECIAL : Fl(6), A_PULL : Fl(7), A_SLID...
var scheduleContent = document.getElementById('schedule'); var gameId; var inputVal = '2021'; const homeRosterArray = []; const awayRosterArray = []; //const fs = require('fs'); var rosterArray; // two lines below will allow user to search by year function getInputValue() { // var inputVal = document.getElementById(...
// global variables var userUpdatedGlobal = {}; var logged = false; var users = []; var cardIdx; // // Mobile Viewport Height correction // // let vh = window.innerHeight * 0.01; // // document.documentElement.style.setProperty('--mobilevh', `${vh}px`); // // window.addEventListener('resize', () => { // let vh = win...
//Arrays var dataArray = []; var recArray = []; var simArray = []; var itemArray = [0,0,0,0,0,0,0,0,0,0]; var box1 = 0; var box2 = 0; var box3 = 0; var box4 = 0; var priorityBox = [parseInt(box1),parseInt(box2),parseInt(box3),parseInt(box4)]; var addPicsIndexArray = [0,1,2,3,4,5,6,7]; //Size of results Page var numR...
/* jshint -W097 */ // jshint strict:false /*jslint node: true */ "use strict"; // you have to require the utils module and call adapter function var utils = require(__dirname + '/lib/utils'); // Get common adapter utils var adapter = utils.Adapter('paw'); var http = require('http'); var querystring = require('query...
//名字 function sunname() { var showName = document.getElementById("showName"); // 显示文本的对象 var contentName = document.getElementById("contentName"); // 输入文字的对象 showName.innerHTML = ":" + contentName.value; // 把两个相连接 } // 入学时间 function admissiondate() { var showAdmissiondate = document.getElementById("showAd...
/* demo.js http://github.com/bgrins/javascript-astar MIT License Set up the demo page for the A* Search */ var json_str, rootNode = "<b>Passos:<b><br><br> S", passos = [], score = 0, totpassos = 0; var reader; var lines = []; var saida; window.log = function () { if (this.console) { //console....
var _ = require('lodash'); var hyperstore_utils_toggleLogExclusionSet = ['find','render','cache']; var hyperstore_utils = { breakServerURLIntoObject : function(url){ url = url.trim(); var result = { port: 80, protocol: "", application: "", host: "", collection: "", toString: function(){ ret...
import React from 'react'; import Swipeable from 'react-swipeable'; import throttle from 'lodash.throttle'; import debounce from 'lodash.debounce'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import FontAwesome from 'react-fontawesome'; const API_KEY = '<KEY>'; const API_ENDPOINT = `http...
/* Highlight Module of DIGHL.js * * author : <NAME> * email : <EMAIL> * created : 2014-09-04 14:13 * modified : 2015-02-10 14:04 * */ /* define keywords for general MSA format */ var keywords = { "LOCAL": "", "MERGE": "", "SWAPS": "", "ID": "", "IGNORE":"", "COLUMNID":"", "COMPLEX":"", ...
var json_path = (function () { var json = null; $.ajax({ 'async': false, 'global': false, 'url': "/saved_model/.current.json", 'dataType': "json", 'success': function (data) { json = data; ...
/// Global variables // Debugging const logToConsole = true; // Settings container and div for addSearchEngine const divContainer = document.getElementById("container"); const divAddSearchEngine = document.getElementById("addSearchEngine"); // Engine const show = document.getElementById("show"); // Boolean const name...
import datepickr from 'js-datepicker'; function findReplace(...args) { // inserts parameters on required place in the url string let copy = this.slice() // making a copy of a string referenced by 'this' keyword args.forEach(arg => { let s = arg.split('=') copy = copy.replace(`${s[0]}=`, `${s[0]}=${s[1...
/** * Copyright 2018 The AMP HTML Authors. 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 require...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.HIDE_TIMEOUT = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descr...
//https://stackoverflow.com/a/698386 jQuery.fn.swapWith = function (to) { return this.each(function () { var copy_to = $(to).clone(true); var copy_from = $(this).clone(true); $(to).replaceWith(copy_from); $(this).replaceWith(copy_to); }); }; //avoids hiding in overflow:hidden function init_bs5_drop...
/* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Permission is hereby granted, free...
const TRANSITION_TIME = 1000; window.addEventListener("load", function init() { document.querySelectorAll(".droppable").forEach(draggable); window.addEventListener("blur", Drag.dropItem); window.addEventListener("touchmove", Drag.ondrag, { passive: false }); window.addEventListener("touchend", Drag.dro...
/* Copyright 2014 <NAME>. All rights reserved. * License: http://www.opensource.org/licenses/BSD-2-Clause */ // Already in html //if (typeof (CCPEVE) !== "undefined" ) {CCPEVE.requestTrust('http://www.yourwebsite.org'); } function parse_date(str){ var arr = str.split(/[- :]/); return new Date(arr[0], arr[1]...
/** * For More Sites in Morpheus */ var selectSiteModalLinks, selectSiteLastModalInTab; var dhtml_view_sites = function(){ // first time through set up the DOM $PBJQ('#selectSiteModal').addClass('dhtml_more_tabs'); // move the selectSite in the DOM $PBJQ('.more-tab').position(); var paneHeight = $PBJQ(wind...
const PROJECT_TYPES = 'web app, chrome extension, website'.split(','); //todo add: android app, youtube tutorial, program, script, article, graphic design, story // todo: add github links, add tags to projects // todo: searchable projects const PROJECTS = [ { name: 'Desktop Clock', type: 'web app', icon: 'img/p...
function updatePersonalInfo() { var form = document.formInfoP; var pInfo = { user: form["user"].value, pass: form["pass"].value, email: form["email"].value, firstName: form["firstName"].value, lastName: form["lastName"].value, fiscalCode: form["fiscalCode"].value, birthday: form["birthday"].val...
"use strict"; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = in...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _typeof2 = require('babel-runtime/helpers/typeof'); var _typeof3 = _interopRequireDefault(_typeof2); var _keys = require('...
// read the hand-coded dependencies sheet and output a simple JSON list of nodes and links suitable for consumption by d3.layout.force(). // in future, we can take a list of nodes and links produced by the main dependencies.js and either output it to the spreadsheet view as an intermediate step // or produce a node/l...
/** * @fileoverview Main Espree file that converts Acorn into Esprima output. * * This file contains code from the following MIT-licensed projects: * 1. Acorn * 2. Babylon * 3. Babel-ESLint * * This file also contains code from Esprima, which is BSD licensed. * * Acorn is Copyright 2012-2015 Acorn Contributor...
import classnames from 'classnames'; import CustomPropTypes from '../utils/CustomPropTypes/CustomPropTypes'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; class Calendar extends Component { constructor(props) { super(props); this.state = { todayDate: ne...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
/* *** * * Copyright (C) 2010 <NAME> (leandro[-at-]leandro[-dot-]org) Copyright (C) 2010 <NAME> (octaviobenedi[-at-]gmail[-dot-]com) Copyright (C) 2010 <NAME> (verocorella[-at-]gmail-dot-]com) GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. <http://fs.org...
var myLayout; $.fn.dataTableInstances = []; var timer; $(document).ready(function() { loadTabs(); $("#buttonContainer").buttonset(); if(/chrome/.test(navigator.userAgent.toLowerCase())) { $('.ui-helper-hidden-accessible').css('display', 'none'); } $('#buttonContainer').addClass('ui...
// Safety Goggles ON! 'use strict'; // ========================================================================================================================= // global variables // ========================================================================================================================= var myGlobals...
/** * @author Created by <NAME> <<EMAIL>> on 2011-03-25. * @link https://github.com/mashpie/i18n-node * @license http://opensource.org/licenses/MIT * * @version 0.7.0 */ // dependencies and "private" vars var vsprintf = require('sprintf-js').vsprintf, fs = require('fs'), url = require('ur...
/* * ipfs-social-proof experimental UI * @author <NAME> <EMAIL> daviddahl * * Copyright 2018, IBM * Licensed under MIT license */ /* IpfsID */ 'use strict' const { IpfsIdentity, start, checkForAccount } = require('../src/') const html = require('yo-yo') const qrcode = require('qrcode-generator') const Clipboa...
const fs = require('fs') const util = require('util') const path = require('path') const mongoose = require('mongoose') const Discord = require('discord.js') const storage = require('./storage.js') const config = require('../config.js') const LinkTracker = require('../structs/LinkTracker.js') const models = storage.mod...
/*! Reef v8.2.5 | (c) 2021 <NAME> | MIT License | http://github.com/cferdinandi/reef */ // If true, debug mode is enabled let debug = false; /** * Turn debug mode on or off * @param {Boolean} on If true, turn debug mode on */ function setDebug (on) { debug = on ? true : false; } /** * Throw an error message * ...
// A copy of https://github.com/mrdoob/three.js/blob/master/examples/jsm/physics/AmmoPhysics.js // + an extra applyImpulse(mesh, impulse, index) method // + an extra addConstraint(mesh, options, index) method // + an extra contactTest(options) method // + an extra removeConstraint(constraint) method // + an extra remov...
/** * FAPP * Public API * * * * */ "use strict"; const { Fapp_cfg } = require("./fapp_cfg.js"); const cfg = require("../../libfood.json"); const https = Fapp_cfg.ENV[cfg.ENV] === Fapp_cfg.ENV.NODE ? require("https") : null; const { Fbigint } = Fapp_cfg.ENV[cfg.ENV] === Fapp_cfg.ENV.REACT_NATIVE ? require("../ft...
//说明把排产对象插入到对应index的位置 ////@Params //gridData,//未排除数据 //hotData,//已排产数据,包括资源 //doneData,//已排产对象的未排产数据 //gridDataIds,//未排产数据id数组,有顺序 //hot//handsontable对象 //hotIndex,//插入的位置(不是该位置的下一个位置!) var saveAll = function () { allSaveFuntion(hotData, DayCount); } var allSaveFuntion = function (hotData, DayCount) { //0-...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
import _ from "lodash"; import Equality from "../Equality.js"; import HttpMethod from "../net/HttpMethod.js"; import ImmutableMap from "../util/ImmutableMap.js"; import Menu from "@mui/material/Menu"; import Paper from '@mui/material/Paper'; import Preconditions from "../Preconditions.js"; import PropTypes from "prop-t...
import "antd/es/config-provider/style"; import _ConfigProvider from "antd/es/config-provider"; import "antd/es/card/style"; import _Card from "antd/es/card"; import "antd/es/form/style"; import _Form from "antd/es/form"; import "antd/es/table/style"; import _Table from "antd/es/table"; function asyncGeneratorStep(gen,...
const process = require('process'); const { readFile, writeStream } = require('./utils.js'); const versionCheck = require('./version-check.js'); const initialize = require('./initialization.js'); const StowawayCLI = require('./stowaway-cli.js'); const { Permissions, Messenger } = require('./stowaway.js'); const { Navi...
"use strict"; import Position from "./position.js"; const PIECE_SCORE_TABLE = new Uint16Array(0b10000); PIECE_SCORE_TABLE[0b0001] = 65; PIECE_SCORE_TABLE[0b0010] = 58; PIECE_SCORE_TABLE[0b0011] = 47; PIECE_SCORE_TABLE[0b0100] = 39; PIECE_SCORE_TABLE[0b0101] = 25; PIECE_SCORE_TABLE[0b0110] = 23; PIECE_SCORE_TABLE[0b0...
'use strict'; let GIN = require('../generate.js'); let GAME = require('../game.js'); const DEBUG_ON = true; let nodeUtil = require('util'); function var_dump(variable) { if (DEBUG_ON) { console.log(nodeUtil.inspect(variable, {showHidden: true, depth: null, colors: true})); } } function serializeMatr...
function BranchData() { this.position = -1; this.nodeLength = -1; this.src = null; this.evalFalse = 0; this.evalTrue = 0; this.init = function(position, nodeLength, src) { this.position = position; this.nodeLength = nodeLength; this.src = src; return this; } ...
// Copyright (c) 2019 <NAME>. All rights reserved. // Use of this source code is governed by the EULA. 'use strict'; // the main image being edited // var image = new Image(); // image.addEventListener("load", loadEditorImage, true); // set up zoom if (localStorage.getItem("zoom") === null) { //alert("no...
import './lib/jstree/themes/default-dark/style.min.css!'; // eslint-disable-line import './lib/jstree/themes/default/style.min.css!'; // eslint-disable-line import './lib/jstree/jstree.min'; // import './directives/d-tree-view'; // import config from 'app/core/config'; import ChartsBuildPanelCtrl from './chart...
import * as CANNON from 'cannon'; import debounce from 'lodash/debounce'; import React, { Component } from 'react'; import * as THREE from 'three'; import * as TWEEN from 'three-tween'; import { isMobile } from "../../Common/Utils/BrowserDetection"; import { cloth, clothBody, clothGeometry, clothMesh, clothPhysMaterial...
const K = require('./Kit') const parse = require('./parse') parse.exportConstants(); var FONT_SIZE=16,LABEL_FONT_SIZE=14,PATH_LEN=16,BG_COLOR='#EEE', FONT_FAMILY='DejaVu Sans Mono,monospace'; var _multiLine=false; /* global flag quick work*/ var PAPER_MARGIN=10; var _charSizeCache={},_tmpText; function getChar...
/*! \file main.js * \brief File transfer with WebRTC. Signaling is done through sound * \author <NAME> */ var kOfferNumCandidates = 5; var kOfferName = '-'; var kOfferUsername = '-'; var kOfferSessionId = '1337'; var kOfferSessionVersion = '0'; var kOfferLo...
/* eslint no-shadow: ["error", { "allow": ["state", "getters"] }] */ import Vue from 'vue'; import axios from 'axios'; import { i18n } from '@/plugins/i18n'; import { sorting, capitalizeString, setLangLabels, getApiUrl, hasFieldContent, toTitleString, checkForLabel, } from '@/utils/commonUtils'; function transfor...
import { css } from 'emotion'; export const microbialMat = css` background: radial-gradient(circle at 0% 50%, rgba(96, 16, 48, 0) 9px, #613 10px, rgba(96, 16, 48, 0) 11px) 0px 10px, radial-gradient(at 100% 100%, rgba(96, 16, 48, 0) 9px, #613 10px, rgba(96, 16, 48, 0) 11px), #8a3; background-size: ...
let isRunning = false; let isMouseDown, isHeadlightEnabled, isFreeplayEnabled, isFocusOnInput = false; let tempListID = null; let isPlayingListID = null; let stopTimeOut; let socket; let imageInterval, mousedownInterval, mouseKeyCode, animateHTML; let currentTab = 'animations'; if(anims_raw == ''){ // test data f...
var tabla; //Función que se ejecuta al inicio function init() { mostrarform(false); listar(); $("#formulario").on("submit", function (e) { guardaryeditar(e); }); //Cargamos los items al select proveedor $.post("../ajax/ingreso.php?op=selectProveedor", function (r) { $("#idp...
import {currentSuivi} from "./organisms/watcher"; import SuiviSchema from './Schema/SuiviSchema' import ErrorSchema from './Schema/ErrorSchema' import SocieteSchema from './Schema/SocieteSchema' import PositionSchema from './Schema/PositionSchema' import Position from './Class/Position' import Document from './Class/Do...
/* Notes à propos du code * La plupart des éléments viennent de la documentation et des tutoriaux de l'API de BabylonJS. * Pour le système solaire, adaptation de https://github.com/paullucas/babylon-solar * Pour les menus dit "Modal", algo et code source venant de W3C */ var canvas = document.getElementById("musee");...
Module.ensureInitialized("UIKit"); function hexString(num) { return "0x" + num.toString(16); } function getU32(addr) { if (typeof addr == "number") { addr = ptr(addr); } return Memory.readU32(addr); } function exportFunction(type, name, ret, args) { var nptr; nptr = Module.findExportByName(null, name...
/** @module/class likeness Encapsulates a schema document and validates or transforms other documents. @argument schema @Boolean #hasTransform @Boolean #noTransform */ var async = require ('async'); var Sorting = require ('./lib/Sorting'); var Validate = require ('./lib/Validate'); var Transform = require ('....
//----------------global variales --------------------// var aucid, aucdesc, aucname, duedate, stime, etime, cdate,user, vendors,items; var s_aucid, s_aucname, s_sdate, s_edate, deluid,table,vendorn,itemlist; var newaucenabled=true; var n_vendors,n_items; var p_data,table; var item_minbid = []; //----------------b...
/*! * Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com) * Code licensed under the Apache License v2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0. */ // jQuery for page scrolling feature - requires jQuery Easing plugin $(function() { $('.page-scroll a').bind('click', f...
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import TeX from './TeX.js'; import { symbolGroups } from './MathEditorHelpModal.js'; import { default as Button } from './Button.js'; import MathQuillStatic from './MathQuillStatic.js'; var MathQuill = window.MathQuill; // TeX b...
/* eslint semi: [1, 'always'] */ /* global tressa, hyperHTML */ var SKIP_ADOPT = typeof location !== typeof SKIP_ADOPT && -1 < location.search.indexOf('noadopt'); var hyperHTML = maik tressa.title('HyperHTML'); try { tressa.log(''); } catch(e) { tressa.log = console.log.bind(console); } /* tressa.async(function (don...
import React, { useEffect, useState } from "react" import { Text, Flex, Box, Image } from "rebass" import ReactJson from "react-json-view" import styled from "@emotion/styled" import { navigate } from "gatsby" import moment from "moment" import ReactTooltip from "react-tooltip" import { useHotkeys } from "react-hotkeys...
let settings = Object.assign({ // default values maxUndoLevels: 4, charIndex: 0, clockMode: true, debugMode: false, }, require('Storage').readJSON("game1024.settings.json", true) || {}); const clockMode = settings.clockMode!==undefined ? settings.clockMode : true; const debugMode = settings.debugMode!==undef...
/* This file is part of web3.js. web3.js is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. web3.js is distributed in the hope th...
import $ from '../../core/renderer'; import domAdapter from '../../core/dom_adapter'; import eventsEngine from '../../events/core/events_engine'; import { titleize } from '../../core/utils/inflector'; import { extend } from '../../core/utils/extend'; import { getWindow, hasWindow } from '../../core/utils/window'; impor...
/** * Copyright 2020 Google LLC * * 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...
/** * vue-meta v3.0.0-alpha.9 * (c) 2021 * - Pim (@pimlie) * - All the amazing contributors * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); const resolveOption = (predicament, initialValue) => (options, contexts) => { let resolvedIn...
import "../styles/main.scss"; import "../styles/themes.scss"; import "../styles/page.scss"; import '../styles/list.scss'; import '../styles/sidenav.scss'; import '../styles/tile.scss'; import '../styles/contextMenu.scss'; import '../styles/dialogs.scss'; import '../styles/help.scss'; import '../styles/override...
function customInit(){ window.init(); } var myApp = angular.module('timetracker',[]); myApp.controller('trackcontroller', function($scope, $timeout, $window, $location, $http) { $scope.estimate = 10.0 $scope.realestimate = 10.0; $scope.realestimate_class = "text-default"; $scope.calced_estimates = {}; $s...
/* the static site generator prefixes this file with `let demoSources = { ... }`, where each value is the full contents of a .glsp source file as a string, and each key is its full filename, e.g. "minefinder.glsp" */ //----------------------------------------------------------------------------------------------...
'use strict'; var url = require('url'); var http = require('http'); var https = require('https'); function registerModule(context) { // provide an empty ngRoute so that apps can depend on it even though we actually // provide what it provides natively. context.module('ngRoute', []); // we also provid...
"use strict"; if (typeof module !== "undefined") { const cv = require("./converterutils.js"); Object.assign(global, cv); } class ConverterUtilsItem {} ConverterUtilsItem.BASIC_WEAPONS = [ "club", "dagger", "greatclub", "handaxe", "javelin", "light hammer", "mace", "quarterstaff", "sickle", "spear", "ligh...
/** * This work is based on original code developed and copyrighted by TNO 2020. * Subsequent contributions are licensed to you by the developers of such code and are * made available to the Project under one or several contributor license agreements. * * This work is licensed to you under the Apache License, ...
/** * Module dependencies. */ var path = require('path'); var util = require('util'); var _ = require('@sailshq/lodash'); var flaverr = require('flaverr'); var Redis = require('machinepack-redis'); // (this dependency is just for creating new cookies) var uid = require('uid-safe'); // (these two dependencies are o...
// ---- UTIL ---- // // Round a value to some number of decimal places, given by `precision`. // If given an array, will return a new array with each element rounded. function round(value, precision) { if(Array.isArray(value)) { return value.map(subvalue => round(subvalue, precision)); } let m = Mat...
/* global require, URL, XMLHttpRequest */ var SCENE_ORIGIN = window.location.origin || (window.location.protocol + '//' + window.location.host); var ORIGIN = ''; try { ORIGIN = new URL(window.location.href).origin; } catch (e) { ORIGIN = SCENE_ORIGIN; } var QS_SW = (window.location.search.match(/[?&]sw=(.+)/i) || ...
if( !window.console ){ window.console = { log: function(){} } } var star=false; function searcha(){ if($("#asearch").val() == '' || $("#asearch").val().length >20){ if(!star){ $("#asearch").next().after('<span style="margin-left:10px;color:#BF2F2F;font-size:16px"><i class="fa ...
const DEBUGOPT = 1; const apW = 128, apH = 128; let IS_SMAPHO = 0; const app = new PIXI.Application( { width: apW, height: apH, antialiasing: false, transparent: false, resolution: 1 // resizeTo: window } ); document.body.appendChild(app.view); // window.innerWidth if (isSma()) { IS_SMA...
const _ = require('lodash'); const validUrl = require('valid-url'); const sift = require('sift').default; const timestamp = require('unix-timestamp'); const flatten = require('flat'); const uuidv4 = require('uuid/v4'); const MerkleTools = require('merkle-tools'); const { sha256 } = require('../lib/crypto'); const { C...
// ブラウザ判定 // 参考: https://qiita.com/sakuraya/items/33f93e19438d0694a91d var userAgent = window.navigator.userAgent.toLowerCase(); var isChrome = 0; if (userAgent.indexOf('msie') != -1 || userAgent.indexOf('trident') != -1) { // IE } else if (userAgent.indexOf('edge') != -1) { // Edge } else if (userAgent.indexOf('c...
(function ($) { $.fn.wsItem = function (method) { if (methods[method]) { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else if (typeof method === 'object' || !method) { return methods.init.apply(this, arguments); } else { ...
const assert = require('assert').strict const BoundingBox = require('boundingbox') const OverpassRelation = require('../src/OverpassRelation') const OverpassFrontend = require('..') const testIntersects = require('../src/testIntersects') const id = 'r7735480' const example = { "type": "relation", "id": 7735480, ...
/* Class to represent a limited angle in the ClockwiseSweep, as an extension of PIXI.Polygon. The angle is essentially two rays shot from a point directly at or behind the origin. Typically, behind the origin is desired so that the constructed object will include the origin for the sweep. Methods include: - Construct...
import React, { Component } from 'react'; import { connect } from 'umi'; import { FormOutlined, LeftOutlined } from '@ant-design/icons'; // import classNames from 'classnames'; import { Table, message, Modal, Input, Switch, Divider, Spin, Button, Pagination } from 'antd'; import ButtonBlock from '@/components/ButtonBlo...