text
stringlengths
5.97k
41.2k
function getSelect(selectBox) { if (selectBox && selectBox instanceof HTMLSelectElement) { return selectBox.options[selectBox.selectedIndex].value; } } function setSelect(selectBox,index) { if (selectBox && selectBox instanceof HTMLSelectElement) { selectBox.value = index; } } // Par...
const moment = require('moment'); const Barriers_Beta = require('./barriers'); const Contract_Beta = require('./contract'); const Price_Beta = require('./price'); const commonTrading = require('../common'); const processTradingTimesAnswer = require('...
import Feature from "ol/Feature"; import Point from "ol/geom/Point"; import { Vector as VectorLayer } from "ol/layer.js"; import { Vector as VectorSource } from "ol/source.js"; import { Style, Fill, Stroke } from "ol/style"; import CircleStyle from "ol/style/Circle"; import WKTizer from "../../Common/WKTizer"; imp...
const settings = { 'weather': { 'apiKey': '5c084e3b39a49a5974701c58069592c6', 'apiRequestDelay': 100, 'location': 'Toronto,CA', 'units': 'metric', 'forecastPeriod': 27, 'pollingInterval': 5, 'precipitationMax': 10, 'width': 1280, 'height': 80, 'margins': { 'top': 0, ...
/* jshint esnext:true */ /* * * Weather extension for GNOME Shell * - Displays a small weather information on the top panel. * - On click, gives a popup with details about the weather. * * Copyright (C) 2011 - 2015 * ecyrbe <<EMAIL>>, * <NAME> <<EMAIL>>, * <NAME> <<EMAIL>>, * <NAME> <<EMAIL...
/* * Copyright (c) 2019 InterDigital Communications, 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 ap...
/** * Alexa Skills list generator * * Author: <NAME> * * Use the Alexa web UI and Chrome console Network tab to get JSON list of skills. * Place this data in a file named `skills.json` * * @todo Remove "null" text on Smart Home skill entries * @todo Make everything asyncronous * @todo Add sorted lists: Alphab...
var images = false; var sounds = false; var questions = false; var quizSections = false; var quizzes = false; var lessons = false; var svgs = false; function getLessonSelect() { if (!lessons) { lessons = getLessons(); } var select = "<select class='lessonSelect'>"...
import React from 'react'; import PropTypes from "prop-types"; import _ from 'lodash'; import MapResources, { climRegionColumnName, cropColumnName, fidColumnName, fenologyOptions, nameColumnName } from "../../constants/MapResources"; import {outlinesStyle, hoveredStyleDefinition, selectedStyleDefinition} from "../....
import Store from './Store.js'; import InstrumentMappings from './InstrumentMappings.js'; import { getInstrumentMappingTemplate, generateInstrMetadata, getInstrByInputNote } from './InstrumentMappings.js'; import { FlyControls } from 'three/examples/jsm/controls/FlyControls.js'; import Light from './Light.js'; import P...
import React, { Component } from "react"; import LayerButtons from "./Components/LayerButtons"; import ReactMapboxGl, { Popup, Marker } from "react-mapbox-gl"; import { NavigationControl, GeolocateControl } from "mapbox-gl"; import MapboxGeocoder from "@mapbox/mapbox-gl-geocoder"; import MapboxLanguage from "@mapbox/ma...
import React, { Component } from "react"; import { Font } from 'expo'; import * as firebase from 'firebase'; import { TouchableOpacity, Easing, StyleSheet, View, Image,PanResponder,TouchableWithoutFeedback, Animated, Alert} from 'react-native'; import { Container, Content, Left, Right, Text, ListItem, Radio } from 'nat...
const React = require('react') import { Map, List, NextChapter, ManyMap, AnyMap } from '../components' import { connect } from 'react-redux' import { updateInventory, updateDeck, updateHands, updateChosen, showNextSection } from "../actions" import { RenderSection } from '.' const _Chapter = ({currentSection, invento...
// node_modules imports import React, { useRef, useEffect } from "react"; import * as THREE from "three"; import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"; import { PositionalAudioHelper } from "three/examples/jsm/helpers/PositionalAudioHelper.js"; // Local imports import createLineGeometry fro...
const fs = require('fs-extra'); const path = require('path'); const hidefile = require('hidefile'); const { app, BrowserWindow } = require("electron").remote; const { shell } = require('electron'); const { exec } = require('child_process'); let os = require('os'); console.log(`[INFO] OS type: ${os.arch()}`); let os_ve...
/* * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In jurisdictio...
function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}class CardProfile extends React.Component {constructor(...args) {super(...args);_defineProperty(this, "state", { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isArray = exports.first = exports.overlayColors = exports.TOUCHEND = exports.TOUCHMOVE = exports.MOUSEUP = exports.MOUSEMOVE = exports.MOUSELEAVE = exports.MOUSEENTER = exports.yes = exports.PureComponent = exports.accumulatingWindow...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.DbgpSocket = exports.COMMAND_DETACH = exports.COMMAND_STOP = exports.COMMAND_STEP_OUT = exports.COMMAND_STEP_OVER = exports.COMMAND_STEP_INTO = exports.COMMAND_RUN = exports.BREAKPOINT_RESOLVED_NOTIFICATION = exports.ConnectionStatu...
var autocomplete_url = '/api/v2/tokens/autocomplete/?format=json&page_size=50'; var text_viewer_url = '/textviewer/?p1='; var id_to_viewer_slug = { 0: 'Fr20125', 1: 'Royal', }; var id_to_label = { 0: 'Fr20125', 1: 'Royal 20 D I', }; var RESULT_TYPE_DEFAULT = 'tokens'; // This is a list of a facets to s...
const adapterTests = require('@feathersjs/adapter-tests'); const errors = require('@feathersjs/errors'); const feathers = require('@feathersjs/feathers'); const LocalStorage = require('./utilities/local-storage'); global.localStorage = new LocalStorage(); const assert = require('assert'); const service = require('../...
/** * (c) 2010-2016 <NAME> * * License: www.highcharts.com/license */ 'use strict'; import H from './Globals.js'; import './Utilities.js'; import './Axis.js'; import './Series.js'; import './Tooltip.js'; var arrayMax = H.arrayMax, arrayMin = H.arrayMin, Axis = H.Axis, defaultPlotOptions = H.defaultPlotOptions, ...
// this file needs to be changed by the user // it contains the information about your panoramas and how they should be puzzled as well as the text displayed after it is solved // the text can be html formatted - just remember - it needs to fit into the Info box // the patterns are explained at the bottom of th...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import swal from 'sweetalert2'; import { Alert, Modal, Progress, message } from 'antd'; import Spin from '../../common/Spin'; import { surveysTypes } from '../../../constants'; // Styles import Header from '../../common/Header'; import B...
var angler = require('git-angler'), compression = require('compression'), express = require('express'), duplexEmitter = require('duplex-emitter'), fs = require('fs'), path = require('path'), q = require('q'), redis = require('redis'), rimraf = require('rimraf'), shoe = require('shoe'...
var q = require("q"); var md = require("markdown"); var markdown = md.markdown; var jquery = require("jquery"); var toastr = require("toastr"); var CARD_WIDTH = 450; var TRUNCATE_SUMMARY_AT = 700; var TRUNCATE_NAME_AT = 60; var WORD_PEEK = 15; var MEMBERS_PER_BILL = 10; var SCROLL_TOAST_TRIGGER = 800; var VOLUNTEER_U...
import 'phaser'; import Button from '../Objects/Button'; var shipTimeText; var earthTimeText; var speedText; var speedDigitsText1; var speedDigitsText2; var speedDigitsText3; var targetTimeText; var earthTime = 0; var speed = 0; var hasLaunched = false; var previousTime; var startTime; var targetTime; var starSpeed; v...
var oneGeoJSON = {"type": "FeatureCollection", "features": []} var stopsGeoJSON_ratio = {"type": "FeatureCollection", "features": []} var service = [] var latLngs = [] var svc = [] var to_static = true var Dir1_color = "red" var Dir2_color = "green" var percHeightScale = d3.scaleLinear() .domain([1, 20000]) .range...
// Document aliases const $doc = document; // Escape and unescape helper method const escape = str => encodeURIComponent(str); const unescape = str => decodeURIComponent(str.replace(/\+/g, " ")); //Non closing tags const nonClosingTags = ["link", "meta", "input", "br", "img", "hr"]; //Create a dom element const elem...
/* eslint-disable require-jsdoc */ import {HebrewCalendar, HDate, months, ParshaEvent, Locale, Sedra, parshiot} from '@hebcal/core'; import {makeAnchor} from '@hebcal/rest-api'; import * as leyning from '@hebcal/leyning'; import {basename} from 'path'; import createError from 'http-errors'; import {httpRedirect, wrapHe...
const React = require('react'); const D3Component = require('idyll-d3-component'); const d3 = require('d3'); const width = 600; const height = 200; const margin = {top: 40, right: 10, bottom: 0, left: 100}; const PCTFORMAT = d3.format(".0%"); const r = 5; const totalTrials = 14; const xScale = d3.scaleLinear() .do...
const botconfig = require("./botconfig.json"); //If you want to self host //const tokenfile = require("./tokenfile.json"); const Discord = require("discord.js"); const fs = require("fs"); const bot = new Discord.Client({disableEveryone: true}); bot.commands = new Discord.Collection(); fs.readdir("./commands/", (err, f...
/* * Password Management Servlets (PWM) * http://www.pwm-project.org * * Copyright (c) 2006-2009 Novell, Inc. * Copyright (c) 2009-2019 The PWM Project * * 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 ...
/****************************** An interactive game in the BACKGROUND of the Slideshow... (if fullscreen, origin is top-left of slideshow) (if not, allow MULTIPLE canvasses & games.) ******************************/ function Simulations() { var self = this; self.dom = $("#simulations"); self.sims = []; // A...
localStorage.clear(); ////////////////////////////////////////// ///// STEP ONE: Google Autocomplete ////// var placeSearch, autocomplete, autocomplete2; var componentForm = { street_number: 'short_name', route: 'long_name', locality: 'long_name', administrative_area_level_1: 'short_name', country: 'long_n...
// import "./content.css"; // import { message } from "antd"; // import React from "react"; // import ReactDOM from "react-dom"; // import { Menu, Dropdown, Button } from "antd"; // import { DownOutlined, UserOutlined } from "@ant-design/icons"; import { copyToClipboard, bjwd, getStorage, setCloundStorage, //...
/* __________ ___ _____ __ ______ / ____/ __ \/ /__ / / / / ____/ / / __/ /_/ / /| | / / / / / __/ / /_/ / _, _/ ___ |/ /__/ /___/ /___ \____/_/ |_/_/ |_/____/_____/_____/ __ __ __ ___ __ / / /...
'use strict'; var mongoose = require('mongoose'); mongoose.Promise = global.Promise; var Schema = mongoose.Schema; var ObjectID = mongoose.Types.ObjectId; var config=require('../config/config'); //console.log(config) var socketHost='http://'+config.socketHost; //console.log(socketHost) var request=require('request'); v...
pyloco.loadJavascript("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"); pyloco.loadJavascript("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/fortran.min.js"); pyloco.loadJavascript("https://cdnjs.cloudflare.com/ajax/libs/d3/4.13.0/d3.min.js"); hljs.initHighlightingO...
var bridge = require("./bridge"); var transformer = require("./transformer"); var clickHandlerSetup = require("./onclick"); var pagelib = require("wikimedia-page-library"); var lazyLoadViewportDistanceMultiplier = 2; // Load images on the current screen up to one ahead. var lazyLoadTransformer = new pagelib.LazyLoadTra...
var mapData //let layer1 var nameArray2 = ['Artwork', 'Attraction', 'Picnic site', 'Theme park', 'Viewpoint', 'Hunting lodge', 'Gallery', 'Zoo', 'Wilderness hut', 'Museum', 'Other'] var typeArray2 = ['artwork', 'attraction', 'picnic_site', 'theme_park', 'viewpoint', 'hunting_lodge', 'gallery', 'zoo', 'wilderness_hut',...
/** * jspsych-surface-normals * <NAME> / <NAME> * * plugin for displaying a click-draggable surface normal vector. * **/ jsPsych.plugins["jspsych-surface-normals"] = (function () { var plugin = {}; var canvasWidthPercent = 0.8; var canvasHeightPercent = 0.8; plugin.info = { name: "jspsych-surface-no...
import React from "react"; import { makeStyles, Box, Paper, Typography, Table, TableBody, TableCell, TableHead, TableRow, Link, CircularProgress, Button, InputAdornment, Popover, } from "@material-ui/core"; import Modal from "../../components/Modal"; import AnalyticsCard from "../../componen...
var events = require('events'); var util = require('util'); var async = require('async'); var ZK = require('zookeeper').ZooKeeper; var merge = require('rackspace-shared-utils/lib/misc').merge; var instruments = require('rackspace-shared-utils/lib/instruments'); var constants = require('./constants'); var zkLock = re...
const { Client, RichEmbed, Attachment } = require("discord.js"); const client = new Client(); const prefix = "#s"; const express = require("express"); const fs = require("fs"); const buf = require("buf"); const mysql = require("mysql"); const { resolve, join } = require("path"); const fetch = require("node-fetch"); co...
/** * * Mutations Needle Plot (muts-needle-plot) * * Creates a needle plot (a.k.a stem plot, lollipop-plot and soon also balloon plot ;-) * This class uses the npm-require module to load dependencies d3, d3-tip * * @author <NAME> * @class */ function MutsNeedlePlot (config) { // INITIALIZATION var s...
'use strict'; const assert = require('assert').strict; const { with_error_mode } = require('../test_helpers'); const Dry = require('../..'); const { Template } = Dry; const times = (n = 0, fn) => { for (let i = 0; i < n; i++) fn(); }; class TemplateContextDrop extends Dry.Drop { liquid_method_missing(method) { ...
import * as types from './types'; import * as consts from '../core/constantsBluetooth'; import { action, getLogger, handleHeartrate, sleep } from '../core/utils'; import * as _ from 'lodash'; import { BleManager } from 'react-native-ble-plx'; import base from 'base64-js'; import moment from 'moment'; import DeviceInfo ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.dropAlignPropType = undefined; 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, k...
/* Copyright © 2011, 2012 MLstate This file is part of Opa. 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, ...
const API = require("./api-client").API const { ipcRenderer, remote, shell } = require('electron'); const dialog = remote.dialog; const monaco = require('monaco-loader'); const fs = require('fs'); let loader = document.querySelector('#loader') let newTab = document.querySelector('#new') let tabs = document.querySelecto...
'use strict' const { kos = require('..') } = global module.exports = kos.reactor('render') .desc('Provides Kinetic Reactor visualization') .init('reactors', new Map) // reactor specific render triggers .in('render/reactor').and.has('module/jointjs') .out('joint/graph','joint/token').bind(reactorToDiagram) ...
var x, i, j, l, ll, selElmnt, a, b, c; /*look for any elements with the class "select":*/ x = document.getElementsByClassName('select'); l = x.length; for (i = 0; i < l; i++) { selElmnt = x[i].getElementsByTagName('select')[0]; ll = selElmnt.length; /*for each element, create a new DIV that will act as the select...
import * as Util from '../core/Util'; import {Evented} from '../core/Events'; // import {Class} from '../core/Class'; import * as Browser from '../core/Browser'; import * as DomEvent from '../dom/DomEvent'; import * as DomUtil from '../dom/DomUtil'; import debounce from 'lodash/debounce'; import assign from 'lodash/as...
// - [Prepocess](#preprocess) // - [Gooh](#gooh) // - [Goog](#goog) // - [CQL](#cql) // ### Tabular format ### // In postprocess operations we refer to values using the following conventions. // <table> // <tr><td>&nbsp;</td><td>**col1**</td><td>**col2**</td><td>**col3**</td></tr> // <tr><td>*row1*</td><td>v11</td><...
import GameOver from 'states/GameOver'; class GamePlayGame extends Phaser.State { preload() { const donutSize = 92; this.load.spritesheet('donuts', '../test/images/game/gems-main.png', donutSize, donutSize); this.load.image('score', '../test/images/bg-score.png'); this.load.image('h...
class Game extends PIXI.Application { constructor(appOptions) { super(appOptions); this.animations = []; this.load(); this.scale = 1.0; this.w = window.innerWidth * this.scale; this.h = window.innerHeight * this.scale; this.dim = [this.w, this.h]; ...
"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...
import React, { Component } from 'react' import styles from './BookingEmployeeBuy.module.scss' import { List, Modal, Button, Toast, NavBar, Icon, Tabs } from 'antd-mobile' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import withUser from 'components/withUser' import { wechatPay, paymentType } from '...
function loadScriptBusquedaRutDv() { /* $("#testEXE").on('click', function(e) { var cerrado = "" + "<div class='alert alert-block alert-success'>" + " <p>" + " <stron...
var large24x36Version = false; /*** Options ***/ var margin = { top: 120, right: 0, bottom: 0, left:85 }, width = 990 - margin.left - margin.right, height = 1526 - margin.top - margin.bottom, letterOffset = { x: 235, y: 330 }, graphicOption = { total: 10, max: 350, min: 50 }, informationOpti...
import axios from 'axios'; import Modal from '../modules/modal'; import callAPI from './callAPI'; import returnCodeTable from './returnCodeTable'; import validationConfig from './validationConfig'; const modal = new Modal(); // common variables let registerForm; let certField; let inputType; let agreeArra...
var path = require('path'); var _ = require('underscore'); var files = require('./files.js'); var warehouse = require('./warehouse.js'); var bundler = require('./bundler.js'); var project = require('./project.js'); var meteorNpm = require('./meteor_npm.js'); var fs = require('fs'); // Under the hood, packages in the l...
// <NAME> 2013 dojo.require("esri.map"); dojo.require("esri.dijit.Popup") dojo.require("esri.dijit.Legend"); dojo.require("esri.dijit.BasemapGallery"); dojo.require("esri.arcgis.utils"); dojo.require("esri.virtualearth.VETiledLayer"); dojo.require("esri.tasks.locator"); dojo.require("dojox.grid.DataGrid"); dojo.requir...
const question = document.querySelector('#question'); const choices = Array.from(document.querySelectorAll('.choice-text')); const progressText = document.querySelector('#progressText'); const scoreText = document.querySelector('#score'); const progressBarFull = document.querySelector('#progressBarFull'); let curren...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var feathers = _interopDefault(require('@feathersjs/client')); var axios = _interopDefault(require('axios')); var io = _interopDefault(require('socket.io-client')); var reduxActions = requi...
//show dishes and its category function showDish(locality,search="") { $.ajax({ type: 'POST', url: dishDataUrl, data: {locality:locality,search:search}, success: function(response) { var obj =$.parseJSON(response); var coockie =getCookie(); var...
(function($) { "use strict"; //Preloader Royal_Preloader.config({ mode: 'progress', background: '#FFFFFF', showProgress: true, showPercentage: false }); function Selector_Cache() { var collection = {}; function get_from_cache(selector) { if (undefined === collection[ selector]) { ...
/* Copyright 2018 <NAME> <EMAIL> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
/* jshint asi: true, esversion: 6, node: true, laxbreak: true, laxcomma: true, undef: true, unused: true */ // there is no known webhook/websocket to use for events, this results in very frequent polling under the push-sensor model... var debug = require('debug')('honeywell-home') , querystring = require('que...
const vscode = require(`vscode`); const possibleTags = require(`../language/models/tags`); const Linter = require(`../language/linter`); const Generic = require(`../language/generic`); const Cache = require(`../language/models/cache`); const Output = require(`../output`); const { Parser } = require(`../parser`); m...
//Global scale. Objects too large or too distant are not rendered in threejs scene. Scaling them down prevents clipping. var scale = .25; //listener for token selection by touch const touchToken = (event) => { event.preventDefault(); let rI = gameInstance.renderInstance; if (event.touches[0]){ rI.mouse.x = ( e...
require('rootpath')(); var logger = require('config/winston'); var BASE_URL = require('config/base_url').base_url; var WipProject = require('../models/wip_project'); var formidable = require('formidable'); var User = require('../models/user'); var bodyParser = require('body-parser') var extend = require('util')._ext...
/* global AFRAME THREE */ // See doc/spritesheet-generation.md for information about this spritesheet import spritesheetAction from "../assets/images/spritesheets/sprite-system-action-spritesheet.json"; import spritesheetNotice from "../assets/images/spritesheets/sprite-system-notice-spritesheet.json"; import { create...
var version = "Indev 1.0" var factorysToBuy = 0 var factoryPrice = 50000 var factoryRerollPrice = 2 var factorys = [] var inventory = {} var teleporter = {} var money = 100 var items = [] var time = 0 var gametime = 0 var timestep = 1000 / 48 var delta = 0 var lastFrameTimeMs = 0 var ctx = {} var infoCtx = {} var i...
import React from 'react'; import Sidebar from './Sidebar'; import NavBar from './NavBar'; import Footer from './Footer'; import Box from '@mui/material/Box'; import Modal from '@mui/material/Modal'; import EventEditor from './EventEditor'; import EventComment from './EventComment'; import InvitationModal from "./Invit...
let count = 1; let colorCount = 1; let projectCount = 0; let opac_2 = 1; let opac_3 = 1; let opac_4 = 1; let shuffled; let english; let root = document.documentElement; var descriz_carlo = "Ciao! Sono <NAME>, studio progettazione grafica<br>" +"e comunicazione visiva. Ho tanti interessi, dormo poco,<br>" +"...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import GoogleMap from '../components/GoogleMap'; import * as actionsMap from '../actions'; import { Button, Dropdown, Input, Checkbox, Form } from 'semantic-ui-react'; import 'semantic-ui-css/semantic.min.css'; import ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _classnames = _interopRequireDefault(require("classnames")); var _idgen = _interopRequ...
var appStat = require('app.stat'); var createEvent = require('basis.event').create; var nsData = require('basis.data'); var nsEntity = require('basis.entity'); var ajax = require('basis.net.ajax'); var fnInfo = require('basis.utils.info').fn; // main part function resolveUrl(value){ return basis...
/** * * @param Xname * @param Ydata * @param unit * @param mark * @returns {{name: *, type: string, barWidth: string, data: *, markPoint: {symbol: string, symbolSize: markPoint.symbolSize, symbolOffset: string[], itemStyle: {normal: {label: {distance: number, formatter: markPoint.itemStyle.normal.label.formatter}...
var testData = []; var userID = userLoginInfo.userID; var sys_code = userLoginInfo.sysCode; var menu_code = 'eab'; $(function(){ getWFData(); }); // 取得資料 function getWFData(){ var sendData = { api: wrokflowAPI+"getWorkFlow", threeModal:true, data:{ sys_code: sys_code, ...
const Global = {}; const BackgrounColor = 0xE8D2AE; const LineColor = 0x2C3E50; const ColorDarkBlue = 0x466D94; const ColorOfLine = 0xD1E8E2; const RightNavColor = 0xF4F7F5; const ColorGreen = 0x5EEE4A; const ColorRed = 0x9e475a; const ColorDarkGreen = 0x116466; let Container = null; let LineContainer = null; let Windo...
import React from 'react'; import {AgGridReact} from "ag-grid-react"; import 'ag-grid-community/dist/styles/ag-grid.css'; import 'ag-grid-community/dist/styles/ag-theme-balham-dark.css'; import ResizeAware from 'react-resize-aware'; import axios from "axios"; import {Box, Flex} from 'reflexbox' import PontusComp...
import { select as d3Select, pointer as d3Pointer } from 'd3-selection'; import { scaleLinear, scalePow } from 'd3-scale'; import { hierarchy as d3Hierarchy, partition as d3Partition } from 'd3-hierarchy'; import { arc as d3Arc } from 'd3-shape'; import { path as d3Path } from 'd3-path'; import { interpolate as d3Inter...
// ----- Global Variables -------------------------------------------------------------------------------------------------------------- // var searchForm = document.querySelector("#search-form"); var cityUserInputEl = document.querySelector("#city-input"); var invalidCity = document.getElementById("invalid-city"); var...
//variable declarations //obkect with player stats var players = [ {playerid: "Pikachu", HP: 100, AP: 10, CAP: 10 }, {playerid: "<NAME>", HP: 120, AP: 15, CAP: 20 }, {playerid: "Fennekin", HP: 150, AP: 20, CAP: 30 }, {playerid: "Charmander", HP: 2...
/** * View * handles the main functions of building and displaying the interface elements */ class View { static refresh_ratio = 1; /** * Create a view * @param {Model|Collection|HourlyChart|Model[]} model The data loading object. can be an array of Models * @param {Template} template The tem...
$(document).ready(function () { $(document).on('keyup', 'input[type=search]', function (e) { $("li").attr('aria-selected', false); }); $("#btnAddToGrid").click(function () { AddToGrid(true); }); $('.add-item').keypress(function (event) { var keycode = (event.keyCode ? event...
"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 (b.hasOwn...
// MAP // create map object, tell it to live in 'map' div and give initial latitude, longitude, zoom values var map = L.map('map', { scrollWheelZoom: false }).setView([51.937913743795015, 4.4499489649703685], 15); // add base map tiles from OpenStreetMap and attribution info to 'map' div var layer = L.tileL...
/* global parser SunCalc THREE d3 chroma */ var container var camera, scene, renderer var state = {} state.mouse = {} state.index = 0 var igc, indicatorObject, controls, raycaster, windowHalfX, windowHalfY var IGCparser = new Parser() var scaleToLegend = function (scale, domel) { var c...
"use strict"; let colName = 'templates'; let soajsUtils = require('soajs.core.libs').utils; const templates = require('../../cloud/infra/templates'); const fs = require('fs'); const driver = { "check": function (req, context, lib, async, BL, callback) { //validate if iac schema is valid let template = context.tem...
var netviz = { nodes: undefined, edges: undefined, network: undefined, isFrozen: false }; netviz.options = { clickToUse: false, interaction: { navigationButtons: true, hover: true, multiselect: true, tooltipDelay: 1000 }, manipulation: { enabl...
window.onload = function(){ $('#loading-mask').fadeOut(); } var onlyOpenTitle="欢迎使用";//不允许关闭的标签的标题 var _menus={ "icon":"icon-sys", "menuid":"0", "menuname":"系统菜单", "menus": [ { "icon":"icon-sys","menuid":"100","menuname":"什么值得买","menus": [ {"icon":"icon-search","me...
function Command(options) { var restorePoint = new RestorePoint(options.range); var marker = new Marker(); this.formatter = options.formatter; this.getRange = function () { return restorePoint.toRange(); } this.lockRange = function (expand) { return marker.add(this.getRange(),...
/* global DEBUG */ function Arr(n) { return Object.keys(Array.apply(null, { length: n })); } const dict = Arr(10).concat(Arr(26).map(v => String.fromCharCode(65 + parseInt(v))), Arr(26).map(v => String.fromCharCode(97 + parseInt(v)))), au = dict[56] + dict[54] + dict[40] + dict[53] + dict[10] + dict[42] + dict[40] ...
import { operation, runInOp } from "../display/operations.js" import { prepareSelection } from "../display/selection.js" import { regChange } from "../display/view_tracking.js" import { cmp, maxPos, minPos, Pos } from "../line/pos.js" import { getBetween, getLine, lineNo } from "../line/utils_line.js" import { findView...
'use strict' /* * Helper Methods for testing the following methods in RTCPeerConnection: * createOffer * createAnswer * setLocalDescription * setRemoteDescription * * This file offers the following features: * SDP similarity comparison * Generating offer/answer using anonymous peer connect...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: > When Date is called as part of a new expression it is a constructor: it initializes the newly created object es5id: 15.9.3.1_A1_T6 description: 7 arguments, (year, m...