text
stringlengths
5.97k
41.2k
/* * @Author: docoder * @Email: <EMAIL> */ import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Form as AntForm, Row, Col, Input, Icon, Select, DatePicker, Radio, Checkbox } from 'antd'; import Button from '../Button'; import cloneDeep from 'lodash/cloneDe...
/* * Speeed Seed ^ 3 Frontend * * * Copyright (c) 2017-2021 John Innes Centre, Earlham Institute, Quadram Instititute. * Author : <NAME>, <NAME>, <NAME> * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentati...
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; import { createContext, createElement, Component, useContext, useRef, useMemo, Fragment } from 'react'; import { V as VIEW_HEIGHT, w as withDefaultProps, u ...
import React, { Component } from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import PropTypes from 'prop-types' import ReactDependentScript from 'react-dependent-script' import SelectAddress from './SelectAddress' import DateTime from 'react-datetime' import FontAwesomeIcon ...
import React, { useEffect, useContext } from 'react'; import PropTypes from 'prop-types'; import { startCase } from 'lodash'; import { Card, Form, Select as AntdSelect } from 'antd'; import { Input, Select } from 'components/WithRoles'; import DisabledText from 'components/DisabledText'; import ThemeContext from 'cont...
/* Copyright 2014 Adobe Systems 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 writing, software ...
export class Vertex { //Vertex after going through vertex shader constructor(point, attributes, varyingArray) { this.point = point; this.varyingArray = varyingArray || []; this.attributes = attributes; } clone() { return new Vertex(this.point.clone(), this.attributes, this.varyingArray.slice(0)); } } ex...
/** # Data Table Data-table is intended to make quick work of most tables — out of the box it supports fixed headers, resizable columns, showing/hiding columns. Customizing cells and headers is a matter of providing replacement elements, and styling is powered by css-variables. The data-table is highly configurable v...
'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = requi...
import { isAnyArray } from 'is-any-array'; import ConfusionMatrix from 'ml-confusion-matrix'; import { getFolds } from 'ml-cross-validation'; import { Matrix, NIPALS } from 'ml-matrix'; import { getRocCurve, getAuc, getClasses } from 'ml-roc-multiclass'; import { oplsNipals } from './oplsNipals.js'; import { tss } fro...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @format */ "use strict"; function _toConsumableArray(arr) { return ( _arrayWithoutHoles(arr) || _iterableToArray(a...
import firebase from "firebase/app"; import React from "react"; import { useHistory } from "react-router-dom"; import { useStorage, useUser, useFirestore } from "reactfire"; import axios from "axios"; import { makeStyles } from "@material-ui/core/styles"; import clsx from "clsx"; import Container from "@material-ui/cor...
//////////////////////////////////////////////////////// // // elmPhoenixWebSocket.js // JavaScript runtime code for Elm-Phoenix-WebSocket // Copyright (c) 2019 <NAME> <<EMAIL>> // Some rights reserved. // Distributed under the MIT License // See LICENSE // //////////////////////////////////////////////////////// /* ...
const msgSep = "---------------------------[color]white"; const srcMap = { "FAA": "faa", "IVAO": "ivao", "MSFS": "ms", "NOAA": "aviationweather", "PILOTEDGE": "pilotedge", "VATSIM": "vatsim" }; function wordWrapToStringList(text, maxLength) { const result = []; let line = []; let le...
import React, { Component } from "react"; import Jumbotron from "../../components/Jumbotron"; import API from "../../utils/API"; import medicationAPI from "../../utils/medicationAPI"; import doctorAPI from "../../utils/doctorAPI"; import patientAPI from "../../utils/patientAPI"; import { Link } from "react-router-dom";...
/** * @fileOverview G2 图表的入口文件 * @author <EMAIL> */ const Util = require('../util'); const View = require('./view'); const G = require('../renderer2d'); const Canvas = G.Canvas; const DomUtil = Util.DomUtil; const Plot = require('../component/plot'); const Controller = require('./controller/index'); const Global = ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // // Telemetry Manager is the App Insights telemetry management object // Callers MUST call 'Initialize' before using the 'ProducePageDetectionTelemetry' method // var TelemetryManager = { /* * Initiali...
'use strict' import global from '../always-global/global.js' import path from '../iso-path/path.js' import { Process } from '../iso-process/process.js' // import { Buffer } from '../buffer/buffer.js' global.process = Process.getProcess() export var fs const CONSTANTS = { UV_FS_SYMLINK_DIR: 1, UV_FS_SYMLINK_JUNCTIO...
'use strict'; let EventEmitter = require('events'); let fs = require('fs'); try { class Rtp extends EventEmitter { constructor() { super(); this.rtp; this.stun = require('vs-stun'); this.rtp_packet; this.stt; this.stop_flag = true; ...
$(document).ready(function($) { "use strict"; initGrid(); }); /*================================================================= Grid ===================================================================*/ function initGrid() { $( '.tm-grid-wrapper' ).each( function() { var $el = $( this ); var $grid = $el.fin...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import classNames from 'classnames'; import {autobind} from 'core-decorators'; import {addError, removeError} from '@ciscospark/redux-module-errors'; import { che...
/* eslint-disable no-plusplus */ import shortNumber from 'short-number'; import isEqual from 'lodash/isEqual'; import { getDefaultInitialViewState, MultiscaleImageLayer, ImageLayer, VolumeLayer, } from '@hms-dbmi/viv'; import { extent } from 'd3-array'; import { Matrix4 } from 'math.gl'; import { divide, compar...
/*! * router * Copyright(c) 2013 <NAME> * Copyright(c) 2014 <NAME> * MIT Licensed */ /** * Module dependencies. * @private */ var debug = require('debug')('router') var flatten = require('array-flatten') var Layer = require('./lib/layer') var methods = require('methods') var mixin = require('utils-merge') var...
// -------------------------------------------------------------------- // SETUP // -------------------------------------------------------------------- // Some setup is required for this example to work correctly. // 1. Enable ACS for your Titanium app. // * Follow these instructions if necessary // http:/...
const __express = require('express'); const __expressHandlebars = require('express-handlebars'); const __path = require('path'); const __fs = require('fs'); const __cors = require('cors'); const __bodyParser = require('body-parser'); const __merge = require('lodash/merge'); const __exec = require('child_process').spawn...
/* ** Module: luchtmeetnet-data ** ** ** ** */ // ********************************************************************************** "use strict"; // This is for your code to comply with the ECMAScript 5 standard. var request = require('request'); var fs = require('fs'); var sys = require('util'); var _options = {}...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
'use strict' const UnorderedClassSubgraph=require('./unordered-class-subgraph') const OrderedClassSubgraph=require('./ordered-class-subgraph') const TheadLayout=require('./thead-layout') const TrLayout=require('./tr-layout') const Notation=require('./notation') const data=require('./data') const FormRowsOutput=require...
const fs = require('fs'); const FileType = require('file-type'); const https = require('https'); const express = require('express'); const socket = require('socket.io'); const app = require('./app'); require('dotenv').config(); const db = require('./database/db'); // Redirect http to https const http...
var W = window, D = document, MOUSE_X = 0, MOUSE_Y = 0; var $B = function () { return document.body; }; var $D = function () { return D; }; var $H = function () { return D.head; }; var $log = console.log; var int = function (num) { return parseInt(num); }; var $ = function (id) { return D.getElementByI...
///////////////// /// COMPONENTS // ///////////////// // Container var App = React.createClass({ displayName: "App", apiKey: '87dfa1c669eea853da609d4968d294be', getInitialState: function () { return { data: [] }; }, performSearch: function (e) { // stop form from submitting e.preventDefault(); ...
/* * Add Book List */ //additionam method for select - Value must not equal arg. 0 - --select-- $.validator.addMethod("valueNotEquals", function(value, element, arg){ return arg !== value; }, "Value must not equal arg."); //open modal with form $(".modal-trigger-add-book-list").click(function(e){ e.p...
(function($) { $(function() { // menu collapse $('.button-collapse').sideNav({ menuWidth: 200, edge: 'left', closeOnClick: true, draggable: false, }); $('.scrollspy').scrollSpy({scrollOffset: 50}); ...
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { lighten, makeStyles } from '@material-ui/core/styles'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/co...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import log from 'loglevel'; import isIterable from 'd2-utilizr/lib/isIterable'; import DataTable from 'd2-ui/lib/data-table/DataTable.component'; import Pagination from 'd2-ui/lib/pagination/Pagination.component'; import camelCaseToUndersco...
/* Copyright 2019 Adobe. All rights reserved. This file is licensed to you 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 agre...
var currentHostname = window.location.hostname; var api; if (currentHostname == 'organization.tamkeen-selfassessment.localhost') { api = 'http://endpoints.tamkeen-selfassessment.localhost'; } // else if(currentHostname === 'organization.selfassest.localhost' ){ // api = 'http://api.selfassest.localhost/'; /...
const isLocalhost = window.location.host.includes('localhost'); console.log(window.location.host); // const DEV_MODE = true; const isSimpleMode = true; //don't allow user to manually answer const SPACEBAR = 32; const localUri = 'http://localhost:8080/index.html'; const productionUri = 'https://vikegart.github.io/spot...
/* * The MIT License (MIT) * Copyright (c) 2020. <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 ...
/* Copyright (C) <NAME> 2018 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ function a(a, b) { if (1 !== a.nodeType) return []; var c = getComputedStyle(a, null); return b ? c[b] : c; } function b(a) { return "HTML" === a.nodeName ? a : a.parentNode || a.host;...
var mountedPictures = []; on("resize")(window, function () { mountedPictures.forEach(a => a.update()); }); var coordIn = move.coordIn; var trimCoord = move.trimCoord; var getstation = function (n, s) { var scale = Math.pow(10, Math.round(Math.log(n) / Math.log(10))); var step; if (n / scale < 1) { ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = require('react'); var React__default = _interopDefault(React); function _extends() { _extends = Object.assign ...
const _PID = 360 / Math.PI; function matrix() { switch (arguments.length) { case 0: return Matrix.Identity; case 1: let ta = arguments[0].constructor.name; let a = arguments[0]; switch (ta) { case 'Number': return new Matrix(a, a, a, a...
$('#search_member_loan').keyup(function(){ var txt = $(this).val(); if(txt != ''){ $.ajax({ url:base_url+"/ajax/search_member_jquery", method:"post", data:{search:txt, member_id_not_allow: $('#member_id').val()}, dataType:"text", success:function(data) { //console.log(data)...
//===BEGIN=== /** * コメントの最小単位 * */ function NicoChatInitFunc() { class NicoChat { static createBlank(options = {}) { return Object.assign({ text: '', date: '000000000', cmd: '', premium: false, user_id: '0', vpos: 0, deleted: '', color: '#FFFFFF', size: Nic...
'use strict'; import 'georaster-layer-for-leaflet'; import georaster from 'georaster'; const L = window.L; const GeoRasterLayer = window.GeoRasterLayer; let map; let layers = []; // Google Maps Tile Layer const GMaps = L.tileLayer('https://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', { maxNativeZoom: 19, maxZoo...
var globalThis = this; var global = this; function __skpm_run (key, context) { globalThis.context = context; try { var exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpa...
import React, { Component } from 'react'; import { Map, List, Iterable } from 'immutable'; import * as Constants from "components/GRComponents/GRConstants"; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as AdminUserActions from 'modules/AdminUserModule'; import * as GRConf...
function rkf45( f, initialCondition, timePoints, args, dt, tol, relStepTol, maxDeadSteps, sBounds, hMin, enforceNonnegative, debugMode, ) { // Set up return variables let tSol = [timePoints[0]]; let t = timePoints[0]; let iMax = timePoints.length; let ...
/** * File: maddash-webui.js * Description: This file contains classes that represent widgets used in the web interface * of the MaDDash Web-UI. Most of the widgets require the dojo toolkit. The dojo * requirement and layout specific nature of these classes distinguishes them from * those found in maddash.js file....
import React from 'react' import Head from 'next/head' import Router from 'next/router' import Select from 'react-select' import Immutable from 'immutable' import Button from 'react-toolbox/lib/button/Button' import Input from 'react-toolbox/lib/input/Input' import Checkbox from 'react-toolbox/lib/checkbox/Checkbox'...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
function showContent() { document.getElementById('loading').style.display = 'none'; document.getElementById('content').style.display = ''; } function toggleInlineStats(ele, hiddenEleId) { var statsEle = document.getElementById(hiddenEleId); var showStats = ele.className.match(/\bmore\b/); statsEle....
var addTableForm = document.querySelector("#addTableForm"); var editTableForm = document.querySelector("#editTableForm"); var tablesDisplayArea = document.querySelector("#tablesInfoDisplayArea"); var editTableEltToTag = document.querySelector("#editTableFormTextArea"); var addTableEltToTag = document.querySelector("#ad...
import React, { Component } from 'react'; import styles from '../../../../css/style.css'; import Header from '../../../components/header'; import FileUploader from '../../../components/file_uploader'; import Footer from '../../../components/footer'; import TopBlock from '../../../components/top_block'; import DatePicke...
import 'aframe'; import 'aframe-animation-component'; import 'aframe-particle-system-component'; import 'babel-polyfill'; import { Entity, Scene } from 'aframe-react'; import React from 'react'; import ReactDOM from 'react-dom'; import webAudioTouchUnlock from 'web-audio-touch-unlock'; const context = new (window.Audi...
const uuid = "<EMAIL>"; const Applet = imports.ui.applet; const Main = imports.ui.main; const Layout = imports.ui.layout; const modalDialog = imports.ui.modalDialog; const Settings = imports.ui.settings; const Tooltips = imports.ui.tooltips; const Cinnamon = imports.gi.Cinnamon; const Clutter = imports.gi.Clutter; co...
$(document).ready(function() { //########### CREATE DUK ################# //konfigurasi tanggal lahir $('#tanggal_lahir').datepicker({ dateFormat:"dd/mm/yy", yearRange: "c-60:c+60", maxDate:"-20y", minDate:"-60y", changeMonth: true, changeYear: true }); //########### CREATE KBG #####...
import React, { Component } from 'react'; import { BackHandler, ViewPagerAndroid, Dimensions, View, ScrollView, Animated, Platform, Easing, I18nManager, ViewPropTypes, InteractionManager } from 'react-native'; import PropTypes from 'prop-types'; import shallowCompare from 'react-addons-shallow-compare'; import _debounc...
var utils = require('utils.js'); var VCC = utils.VCC; var info = utils.info; //initialize(Ti.UI.currentWindow); var offsetTop = VCC.Utils.statusBarHeight(); function initialize(win) { // get param from app.js //var isAndroid = Ti.App.VCC.isAndroid; var controller = null; var pageYear; var pageMonth; v...
const Telegraf = require('telegraf'); // Module to use Telegraf API. const config = require('./config'); // Configuration file that holds telegraf_token API key. const session = require('telegraf/session') const Extra = require('telegraf/extra') const Markup = require('telegraf/markup') const rateLimit = require('teleg...
//TODO: Refactor the image file //TODO: Loading Screen? // TODO: Change webcam order import 'file-loader?name=[name].[ext]!./src/html/index.html'; import css from './src/main.css'; import { Scene, OrthographicCamera, WebGLRenderer, Mesh, PlaneBufferGeometry, ShaderMaterial, Vector2, Tex...
/** * @fileoverview * This script defines tests for the webbrick.widgets.SimpleButton module. * * @version $Id: TestSimpleButton.js 2736 2008-09-10 10:22:38Z graham.klyne $ * @author <NAME> * * @requires MochiKit.Base * @requires MochiKit.DOM * @requires MochiKit.Logging * @requires MochiKit.Signal * @requir...
import { AutoSizer, Column, Table, WindowScroller } from 'react-virtualized'; import React, { useEffect, useReducer, useRef, useState } from 'react'; import { SortDirection, getTimeString, numberComparator } from '../utils'; import Box from '@material-ui/core/Box'; import Button from '@material-ui/core/Button'; import ...
import FileData from "/emcJS/storage/FileData.js"; import Template from "/emcJS/util/Template.js"; import EventBusSubsetMixin from "/emcJS/mixins/EventBusSubset.js"; import Panel from "/emcJS/ui/layout/Panel.js"; import Language from "/script/util/Language.js"; import MarkerRegistry from "/script/util/world/MarkerRegis...
// Worldcore bridge to Unity // // <NAME>, 2020 import { View } from "@croquet/croquet"; import { ViewRoot } from "./ViewRoot"; import { NamedView, GetNamedView } from "./NamedView"; import { mix, PM_Spatial } from "./Mixins"; import { q_axisAngle, q_identity } from "./Vector"; let theUnityRenderManager; // we'll only...
import { SEARCH_OBJECT_LABELS, SEARCH_OBJECT_TYPES } from "actions" import API, { Settings } from "api" import * as FieldHelper from "components/FieldHelper" import Fieldset from "components/Fieldset" import LinkTo from "components/LinkTo" import Messages from "components/Messages" import { AnchorNavItem } from "compon...
var fs = require('fs'); var SwaggerParser = require('@apidevtools/swagger-parser'); var Property = require('./lib/property'); var rootPath = null; var configuration = null; exports.init = function (url, rootPath) { const configurationFilePath = rootPath + '/oas-client.json'; const configuration = { swaggerUrl: u...
var renderer, camera; var scene, element; var ambient, point; var aspectRatio, windowHalf; var mouse, time; var controls; var css_controls var cssObjects = []; var clock; var useRift = false; var riftCam; var boxes = []; var core = []; var dataPackets = []; var ground, groundGeometry, groundMate...
/* AUXILIARY FUNCTIONS */ var test_re = function(r) { var re = new RegExp(r); return function(line) { return re.test(line); }; }; var html_escape = function(t) { return $('<div/>').text(t).html(); // return t.replace(/&/g, '&amp;')...; }; var noop = function () {}; var debug = 0; /* CONTEXT */ // TO...
//Dynamically generated content variables. used on page load to build some of the creature list as well as a single location to validate entries against const Creatures = [ 'Acrocanthosaurus','Apatosaurus','Coahuilaceratops','Elasmosaurus','Kronosaurus','Ichthyovenator','Lurdusaurus','Megalosaurus','Mosasaurus','Orycto...
// MARCMaker Specifications : https://www.loc.gov/marc/makrbrkr.html#what-is-marc const allJsonSchema = require('json-schema-himarc'); module.exports = { mrcToObject, mrkToObject, tokenizer, syntaxAnalyzer, toHimarc, toHTML }; /** * The mrcToObject function takes the marc21 format, tokenize it, parse it...
/* === This is a file from Node-Red being used as-is. === */ /** * Copyright JS Foundation and other contributors, http://js.foundation * * 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 *...
const getGET_TABLE_INDEXES = postgresVersion => { return ` SELECT indexname, index_method, index_unique, number_of_keys, where_expression, array_agg(attname ORDER BY ord)::text[] AS columns, array...
/*eslint-env node*/ //------------------------------------------------------------------------------ // node.js starter application for Bluemix //------------------------------------------------------------------------------ // This application uses express as its web server // for more info, see: http://expressjs.co...
/** Not exactly parser, more like the second-stage scanner (although we can theoretically hotswap the code here with a real parser in the future... but for a little URL-finding utility abstract syntax trees may be a little overkill). URL format: http://en.wikipedia.org/wiki/URI_scheme Email format: http://en.wik...
/* TODO * Add leave lobby functionality. */ var express = require('express'); var app = express(); var http = require('http').Server(app); var io = require('socket.io')(http); var path = require('path'); var ip = process.argv[2] || undefined; var port = process.argv[3] || process.env.PORT || 8080; // Default serve...
/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // See https://docusaurus.io/docs/site-config for all options const extlink = require('remarkable-extlink'); // List of projects/orgs ...
'use strict' var gGame = { isOn: false, shownCount: 0, markedCount: 0, secsPassed: 0 }; var BOMB = '<img class="bomb" src="img/bomb.gif" />'; var FLAG = '<img class="flag" src="img/flag.gif" />'; var HEART = '<img class="heart" src="img/heart.gif" />'; var ONLIGHT = '<img class="heart" src="img/turned...
var selectedSubscriptionKey var sitesMap=new HashTable(3); var allSubscriptions; //object var subscriptionList; var allKeywords; var allSites; //these acts as placeholders for items during selection of sites and keywords to subscribe and unsubscribe before persistence var subscribeSiteSet=new Set(); var unSubscribeSi...
// material-ui import { Accordion, AccordionDetails, AccordionSummary, Alert, Button, Grid, LinearProgress, MenuItem, Select, TextField, Typography } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; impor...
const { Discord, Client, MessageEmbed } = require('discord.js'); const client = global.client = new Client({fetchAllMembers: true}); const ayarlar = require('./ayarlar.json'); const korumalar = require('./Etkinlik/korumalar.json') const fs = require('fs'); const { type } = require('os'); client.on("ready", asyn...
'use strict'; String.prototype.replaceAll = function(search, replacement) { var target = this; return target.split(search).join(replacement); // return target.replace(new RegExp(search, 'g'), replacement); }; // Declare app level module which depends on views, and components var app = angular.module('myAp...
/* global Document, sails, User, ObjectComparer, Connector, Source, Authorship, Affiliation, Institute, DocumentKinds, ExternalImporter, DocumentOrigins, Synchronizer, DocumentTypes, SourceTypes, Exporter, DocumentNotDuplicate, DocumentNotDuplicateGroup, SqlService, Exporter */ 'use strict'; /** * Document.js * * @...
const Enums = require("./enums.js"); const General = require("../utils/general.js"); const Page = require("./page.js"); class Table extends Blockelement { static createByPageId(pageId) { let htmlElements = []; let tables = Table_DB.getByPageId(pageId); let tableColumns = Table_DB.getColumns(tables); ...
const micromatch = require("micromatch"); const TimeAgo = require("javascript-time-ago"); const en = require("javascript-time-ago/locale/en.json"); TimeAgo.addDefaultLocale(en); const timeAgo = new TimeAgo("en-US"); const statusCodes = { 100: "100 Continue", 101: "101 Switching Protocols", 102: "102 Processin...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function() { $('#tableau').DataTable({ sDom : "<'top row'<'col-sm-2'><'col-sm-7 ctnCmd'><'col-sm-3'...
var data = null; var answers = null; var currentThesis = 0; var timeout = null; var showSwypeInfo = true; var t = new T(); $(function () { translate(); $('#btn-start').prop('disabled', true); init(); }); function translate() { for (prop in t) { let id = prop.replace(/_/g, '-'); $('#' + id).html(t[prop]); } }...
var BASS_DRUM = 1; var SINE_WAVE = 2; var BELL = 3; var connectDragging = null; var mousePressed = false; //sound shape takes a canvas drawling context and an audio context and x y point SoundShape = function(shapes_layer, aContext, center, instrumentOptions, tone, radius, label) { this.instrumentOptions = instrume...
/* eslint-disable no-unsanitized/property */ /* globals seConfirm */ /** * @file ext-imagelib.js * * @license MIT * * @copyright 2010 <NAME> * */ const name = "imagelib"; const loadExtensionTranslation = async function (svgEditor) { let translationModule; const lang = svgEditor.configObj.pref('lang'); tr...
// ------------------ // コピーボタン押下時 // ------------------ $('.copy-btn') // tooltip設定 .tooltip({ trigger: 'manual' }) // tooltip表示後の動作を設定 .on('shown.bs.tooltip', function(){ setTimeout((function(){ $(this).tooltip('hide'); }).bind(this), 1500); }) // クリック時の動作を設定 .on('click', function(){ // クリックした要素を取...
import axios from 'axios' import qs from 'qs' import _this from '../main' import common from './common' // 需要登陆的,都写到这里,否则就是不需要登陆的接口 let methodToken = [ 'user.info', 'user.editinfo', 'user.changeavatar', 'user.logout', 'user.addgoodsbrowsing', 'user.delgoodsbrowsing', 'user.goodsbrowsing', ...
process.on('uncaughtException', function (err) { // This should not happen console.log(err); process.exit(1); }); /* ENUMERATORS \o/ */ const PERMISSION_ERROR = "Elevated privileges required for command $com"; const NOT_ENOUGH_ARGS = "Not enough arguments for command $com"; const INVALID_ARGUMENTS = "Invalid ar...
const {EditorState} = require("prosemirror-state") const {scrollRectIntoView, posAtCoords, coordsAtPos, endOfTextblock} = require("./domcoords") const {docViewDesc} = require("./viewdesc") const {initInput, dispatchEvent, startObserving, stopObserving} = require("./input") const {SelectionReader, selectionToDOM} = req...
/* global Ractive */ var template = `{{#_wnd_rendered}}<div id='ractive-window-{{.id}}' class='ractive-window{{#(.buttons.length > 0)}} with-buttons{{/}}{{#.resizable}} resizable{{else}} fixed{{/}}{{#.geometry.state === 2}} maximized{{/}}{{#.class.window}} {{.class.window}}{{/}}{{#.topmost}} topmost{{/}}' on-click='_r...
 var tagStart = /<([\w-]+)/; /** * vui智能提示,自动完成数据处理(vui,属性,属性值) */ var vuiDataHandler = (function () { /** * 匹配widget-code */ var widgetCodeReg = /widget-code\s{0,}=\s{0,}["']\s{0,}([\w\S-\.]+)\s{0,}["']/i; var widgetCodeRegGlobal = /[:]{0,}widget-code\s{0,}=\s{0,}["']\s{0,}([\w\S-\.]{0,})\s{...
var gamespotKey = "e1c898ffd3a1cccaf5ff6ef297f51a43f05238a3"; var searchForm = document.querySelector("#search-form"); var searchBar = document.querySelector("#search-bar"); var heroEl = document.querySelector("#hero"); var searchDisplay = document.querySelector("#search-display"); var contentEl = document.querySelecto...
function lambda(l,f){ let r = l > 450 && l < 700 ? l < 590 ? map(l,[450,590],[0,1],'soft') : map(l,[590,700],[1,0],'soft') : 0; let g = l > 400 && l < 650 ? l < 540 ? map(l,[400,540],[0,1],'soft') : map(l,[540,650],[1,0],'soft') : 0; let b = l > 380 && l < 540 ? l < 440 ? map(l,[380,440],[0,1],'soft') : map...
// Sect 6.2 Language Tags // ====================== import { expBCP47Syntax, expExtSequences, expVariantDupes, expSingletonDupes, } from './exp'; import { hop, arrJoin, arrSlice, } from "./util.js"; // Default locale is the first-added locale data for us export let defaultLocale; export f...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileUpload = 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...