text
stringlengths
8.5k
48.7k
/** * create by alam 2016/06/13 * 销售退货的页面操作、数据提交js */ // 当前页面的标识ID var location_id = location_id(); // 当前页面的操作类型 add-添加 edit-编辑 var action_name = param_get('a'); var action_type = action_name == 'add' ? 1: (action_name == 'edit' ? 2: 0); // 切换门店 切换iframe地址 修改退款方式 $('#shop_id').change(function() { update_iframe_ur...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './InteractiveTable.css'; import HospitalSelector from './HospitalSelector/HospitalSelector.js'; import VariableSelector from './VariableSelector/VariableSelector.js'; import DropdownMenu from './../DropdownMenu/DropdownMenu.js'; impor...
var KEYCODE_ENTER = 13; //useful keycode var KEYCODE_SPACE = 32; //useful keycode var KEYCODE_UP = 38; //useful keycode var KEYCODE_LEFT = 37; //useful keycode var KEYCODE_RIGHT = 39; //useful keycode var KEYCODE_DOWN = 40; //useful keycode var KEYCODE_W = 87; //useful keycode var KEYCODE_A = 65; //use...
let urid = sessionStorage.getItem('eecid'); let urname = sessionStorage.getItem('eecname'); let eecauth = sessionStorage.getItem('eecauth'); $("#usrname").text(urname); urid ? null : location.href = "./../../form_register/login/index.html"; if (eecauth !== "admin" && eecauth !== "user") { location.href = "./../../...
var Earth = { radius: 6378137, circum: 6378137 * 2.0 * Math.PI, halfCirc: 6378137 * Math.PI, }; function LatLongPos(lat, lon) { this.lat = lat; this.lon = lon this.toPixelCoords = function() { return [longitudeToX(this.lon), latitudeToY(this.lat)]; } } function latitudeToY(lat) { var arc = Earth.c...
/* * Copyright 2016-2017 Flatiron Institute, Simons 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
"use strict"; var tslib_1 = require("tslib"); var tiled_map_1 = require("../tiled-map"); var UserInputType; (function (UserInputType) { UserInputType[UserInputType["Move"] = 0] = "Move"; UserInputType[UserInputType["Start"] = 1] = "Start"; UserInputType[UserInputType["Drag"] = 2] = "Drag"; UserInputType...
var sheet = Freesheet.sheets('League'); function sendResult(homeTeam, homeGoals, awayTeam, awayGoals) { sheet.input('results', {homeTeam: homeTeam, homeGoals: homeGoals, awayTeam: awayTeam, awayGoals: awayGoals}); } function sendResults() { sendResult("Arsenal", 1, "<NAME>", 3); sendResult("Liverpool", 1, ...
const CommonSelectors = require('../lib/common_selectors'); const mouseEventPoint = require('../lib/mouse_event_point'); const featuresAt = require('../lib/features_at'); const createSupplementaryPoints = require('../lib/create_supplementary_points'); const createControlFeature = require('../lib/create_control_feature'...
"use strict"; var async = require('async'); const debug = require('debug')('cantina'); var xml2js = require('xml2js'); var Hours = require('./hours'); var requests = require('./requests'); var Cantina = function() { this.url = 'https://www.sit.no/middag'; this.api = 'https://www.sit.no/rss.ap?thisId='; this.msg...
"use strict"; require("daycount"); require("seedrandom"); class JsonTimeSeries { constructor(key, timestamps, values) { this.key = key; this.timestamps = timestamps; this.values = values; } } exports.JsonTimeSeries = JsonTimeSeries; class TimeSeriesItem { constructor(timestamp, value...
function customHomeSlider() { slider = jQuery("#home-slider"); navigation = slider.data('navigation'); pagination = slider.data('pagination'); slideSpeed = slider.data('speed'); auto_play = slider.data('autoplay'); rewind_speed = slider.data('rewindspeed'); stop_on_hover = slider.data('stoponhover'); navigation...
/** * jspsych-block-silhouette * * plugin to present a silhouette and prompt participants to reconstruct it from a set of blocks * Building is preceded by a preparation phase, either purely observing, or practice building * * documentation: docs.jspsych.org * * created by <NAME> (<EMAIL>) & <NAME> (<EMAIL>) Oc...
import tilemapPng from '../assets/tileset/Rudnev_Tileset.png' import auroraSpriteSheet from '../assets/sprites/characters/aurora.png' import punkSpriteSheet from '../assets/sprites/characters/punk.png' import blueSpriteSheet from '../assets/sprites/characters/blue.png' import yellowSpriteSheet from '../assets/sprites/c...
/** * Gallery WebApp * Copyright 2019-2021 <NAME> <<EMAIL>> * Licensed under the MIT license. */ const SLIDESHOW_TIME = 5; const GRID_MIN_SIZE = 140; const GRID_MAX_SIZE = 260; const GRID_STEP = 5; const GRID_PADDING = 0; const THIS_DAY_ACTION = {id:'act:thisday', title:'Show photos from this day', icon:'schedule'...
/* Copyright (C) <NAME> 2019 Distributed under the MIT License vanillaSelectChooser.js Takes a select multiple drop down and transforms it into 2 lists : to choose on the left, chosen on the right v0.01 : first prototype Work in progress v0.10 : First fully working version v0.20 : Use of ctrl and shift keys to mimic a...
var $treeModelMenu = $('#container .dropdown-menu'), //树模型下拉菜单 $treeModelToggle = $('.dropdown-toggle') $(document) //产品列表收起与展开效果 .on('click', '#container .prods ul > li', function (e) { if (!$(e.target).closest('ul').parent().is('.prods')) { return false; } if ($(this).find('ul').is(':visible')...
var prolog = new PrologPlusCG.PPCGJS("#console"); var program = ` // // Copyright (c) 2010-2021 <NAME> and <NAME> // // License terms: MIT License. // See LICENSE in the Syllog distribution. // // Configure the web server URL // // Put your own URL here. web_server_url(_url) :- concat("https:/", "/logic.aau.dk/syllo...
/* HTML5 magic - GeoLocation - WebSpeech */ //WebSpeech API var final_transcript = ''; var recognizing = false; var last10messages = []; //to be populated later if (!('webkitSpeechRecognition' in window)) { console.log("webkitSpeechRecognition is not available"); } else { var recognition = new webkitSpeechRecogni...
module("data", { teardown: moduleTeardown }); test("expando", function(){ expect(1); equal(jQuery.expando !== undefined, true, "jQuery is exposing the expando"); }); test( "jQuery.data & removeData, expected returns", function() { expect(4); var elem = document.body; equal( jQuery.data( elem, "hello", "world...
// Copyright (c) 2001-2010, Purdue University. All rights reserved. // Copyright (C) 2015 Apple Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must reta...
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, TextInput, Clipboard, Animated, DatePickerAndroid, ScrollView, ActivityIndicator, InteractionManager, Dimensions, ToastAndroid, BackAndroid, Image, Modal, RefreshControl, ListView, } f...
function Square(name, pricetext, color, price, groupNumber, currentprice, eps, dps, nta, pe, roe) { this.name = name; this.pricetext = pricetext; this.color = color; this.owner = 0; this.mortgage = false; this.house = 0; this.hotel = 0; this.groupNumber = groupNumber || 0; this.price = (price || 0); this.curr...
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "func...
/** * DevExtreme (cjs/ui/grid_core/ui.grid_core.editing_cell_based.js) * Version: 21.2.5 * Build date: Mon Jan 17 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; exports.default = ...
const express = require('express'); const path = require('path'); const execa = require('execa'); const pfs = require('promise-fs'); const dateFormat = require('dateformat'); const _ = require('underscore'); const isWindows = require('is-windows'); const qrcode = require('qrcode-terminal'); const fs = require('fs'); co...
function fingerprint_browser() { "use strict"; var strOnError, strUserAgent, numVersion, strBrowser, strOut; strOnError = "Error"; strUserAgent = null; numVersion = null; strBrowser = null; strOut = null; try { strUserAgent = navigator.userAgent.toLowerCase(); ...
module.exports = Server var Buffer = require('safe-buffer').Buffer var bencode = require('bencode') var debug = require('debug')('bittorrent-tracker:server') var dgram = require('dgram') var EventEmitter = require('events').EventEmitter var http = require('http') var inherits = require('inherits') var peerid = require...
"use strict"; /** * @module opcua.client */ const util = require("util"); const _ = require("underscore"); const assert = require("node-opcua-assert").assert; const crypto = require("crypto"); const async = require("async"); const StatusCodes = require("node-opcua-status-code").StatusCodes; const session_service...
import React from "react" import debounce from "lodash.debounce" import Announcer from "./Announcer" import Piece from "./Piece" import PlayerText from "./PlayerText" import isEmpty from "lodash.isempty" import { mousePos, gameStates } from "./global" import Cannon from "./Cannon" import Crosshair from "./Crosshair" c...
import { POINTERSTART, POINTEROVER, POINTEROUT, MOVE, END, IF, PREVENT, KEYDOWN, SUBSCRIBE } from "el/base/Event"; import { Length } from "el/editor/unit/Length"; import { clone} from "el/base/functions/func"; import { mat4, vec3 } from "gl-matrix"; import { Transform } from "el/editor/property-parser/Transform"; impo...
/* base.js 基于miniui和jquery的高级封装 */ /* * 快捷方法 * */ var toString = Object.prototype.toString; var nativeSlice = Array.prototype.slice; /** * * 说明: 基础方法 * @param {string} tadId * @returns {undefined} */ var ebapBase = (function() { var ebapModules = {}; var ebapInstance = null; var isParsed = false...
import * as vector from './vector.js' import { IntersectInfo } from './intersectInfo.js' import { Draw } from './draw.js' const eye = [0, 0, 0] const FOV = 1.0 const xs = 512, ys = 512 const nrTypes = 2 //2 Object Types (Sphere = 0, Plane = 1) //let spheres = [[1.0, 0.0, 4.5, 0.5], [-0.6, -1.0, 4.0, 0...
import { connect, once } from "lively.bindings"; import { Color, rect, pt } from "lively.graphics"; import { arr, obj } from "lively.lang"; import { HorizontalLayout, Morph, VerticalLayout, StyleSheet, Icon, GridLayout, morph } from "lively.morphic"; import { TreeData, Tree } from "lively.components/tree.js"; import { ...
// iVisDesigner - scripts/node/allomain.js // Author: <NAME> // // LICENSE // // Copyright (c) 2014, The Regents of the University of California // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met:...
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ import L from "leaflet"; import { ComponentsViewB...
/* eslint-env browser */ /* globals Draggable DragZoomable Fuse */ 'use strict'; function generateRandID() { // Generates a random alphanumeric string const length = 10; return Math.random().toString(36).substr(2, length); } class Deck { constructor(game, { name, cards }) { this.game = game; this.na...
// server.js // where your node app starts // init project var express = require('express'); var bodyParser = require('body-parser'); var app = express(); app.use(bodyParser.urlencoded({ extended: true })); // we've started you off with Express, // but feel free to use whatever libs or frameworks you'd like through...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _vue = require("vue"); var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); var...
 /******************************************************************************* The Campus Cloud software is available under a dual license of MIT or GPL v3.0 Copyright (C) 2013 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> /**********************************************************...
// Script written by <NAME>, July 2019 // Edited by DFH to add PRISM and fix NLCD, July 2019 // Edited by Nina to add SWR & LWR, Dec 2019 // Updated by Ryan, April 2020. Added multiband image export for PRISM, modified the resolution, changed some commenting, commented out some of the map visulizations. // When usin...
//based on http://bl.ocks.org/phil-pedruco/88cb8a51cdce45f13c7e var margin = { top: 20, right: 80, bottom: 60, left: 80 }, width = 360 - margin.left - margin.right, height = 200 - margin.top - margin.bottom; //z score for determining width of graph z_limit = 4; //precision for numbers va...
'use strict'; const { makeMessageFunction } = require('../base/messages'); const { isDeprecatedEnabled } = require('../base/model'); const transformUtils = require('./transformUtilsNew'); const { getUtils, cloneCsn, forEachDefinition, forEachMemberRecursively, forEachRef, getArt...
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2017 Zenesis Ltd License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for details. ...
/** * 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...
var app = require('express')(); var http = require('http'); var server = http.createServer(app); /*var https = require('https'); var privateKey = fs.readFileSync('/etc/letsencrypt/live/cryptoonline.ml-0001/privkey.pem', 'utf8'); var certificate = fs.readFileSync('/etc/letsencrypt/live/cryptoonline.ml-0001/fullchain.p...
var $ = require('jquery'); var moment = require('moment-timezone'); var util = { ListPop: function(keyval, list, _key) { var key = _key || "id"; for (var i=0; i<list.length; i++) { var li_el = list[i]; if (li_el[key] == keyval) { list.pop(i); } ...
// MAKE CHORD DIAGRAM var split_perc = 0.5; d3.rgb.prototype.toHex = function() { var r = Math.round(this.r).toString(16); var g = Math.round(this.g).toString(16); var b = Math.round(this.b).toString(16); if(this.r < 16) r = "0" + r; if(this.g < 16) g = "0" + g; if(this.b < 16) b = "0" + b; return "#"+...
// Generated by LiveScript 1.3.1 var slice$ = [].slice; (function(){ var svg, cs, deg, ldResize; svg = 'http://www.w3.org/2000/svg'; cs = ['#ff0', '#0ff', '#f0f', '#fff']; deg = function(v){ return 180 * v / Math.PI; }; ldResize = function(opt){ var host, root, filter, mousedown, dim, ns, nr, ng, nb...
const express = require('express'); const async = require('async'); const await = require('await'); const poRoutes1 = express.Router(); const request = require('request'); const OAuth = require('oauth-1.0a'); const crypto = require('crypto'); const fetch = require('node-fetch'); let mysql = require('mysql'); let sl...
/* * Initialises discord.js library * Retrieves configuration for bot runtime */ const Discord = require('discord.js'); const server = require('./disc_config.json') /* * Environment based imports */ const dotenv = require('dotenv'); dotenv.config(); const auth = { "token": process.env.DISCORDTOKEN } const se...
import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; import CalendarWidgetFilter from "./ThirdTabComponents/CalendarWidgetFilter"; import PhotosTab from "./comp...
const db = require('../config/connection'); const {User, Unit, Waitlist} = require('../models'); db.once('open', async() => { await Unit.deleteMany(); const units = await Unit.insertMany([ {number:'A1',location:'Heritage',status:'Paid', size:'10x20', cost:70}, {number:'A2',location:'Heritage',...
/** * script-event.js */ // Define time bounds of the events. const EVENT_PERIOD = { "gold-rush": [1858, 1880], "ww1": [1914, 1918], "ww2": [1939, 1945] }; const TROPHY_REQUIREMENT = 3; const EVENT_REQUIREMENT = 3; // Get the current event from the path name. // e.g. ../event/gold-rush.php -> gold-rush var event...
"use strict"; var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; var __awaiter = (this && th...
/* * @license */ "use strict"; import { ET312Remote } from './ET312Remote.js'; import { EWUtility } from './utility.js'; import { AudioUI } from './audio2.js'; const STATE = { et312: new ET312Remote(), peer: null, dataConn: null, mediaConnection: null, videoShare: null }; const UI = { audioUI: new AudioUI(as...
// RenderSystem function RenderSystem() { throw "cannot construct a RenderSystem, no constructor in IDL" } RenderSystem.prototype = Object.create(WrapperObject.prototype); RenderSystem.prototype.constructor = RenderSystem; RenderSystem.prototype.__class = RenderSystem; RenderSystem.__cache = {}; Module['RenderSystem'] ...
import React, { Component } from 'react' import { StyleSheet, Text, TouchableOpacity, View, TextInput, ListView } from 'react-native' import { NavigationEvents } from 'react-navigation' import { Button, Icon } from 'react-native-elements' import { RTCPeerConnection, RTCIceCandidate, RTCSessionDescription, RTCVi...
/* Some UI elements 1. SomeLightBox public properties : style : { frame: {--styles--}, background: {--styles--}, foreground: {--styles--} } dismissOnBkgClick = true public methods: resize(); setFocus(domElement); // set the first focus when light box is loaded dismiss(); show(); ...
let modInfo = { name: "普通树 - The Number Tree", id: "factor", author: "3^3=7", pointsName:"points", modFiles: ["layers.js", "tree.js"], discordName: "", discordLink: "", initialStartPoints: new Decimal (0), // Used for hard resets and new players offlineLimit: 0, // In hours } // Set your version in num and ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.svgRectEncloseRule = exports.htmlColumnHoverRule = exports.htmlFrameHoverRule = exports.svgCategoryRule = exports.svgRRule = exports.svgEncloseRule = exports.basicReactAnnotationRule = exports.svgORRule = exports.screenProject = exp...
// variables var v_val = 80; var tem_val = 107; var tem_rate = 560; var t_val =100; var flash_rate = 200; // var d_val = 10; var dly_val = 10; var d_val2 = 20; var dly_val2 = 20; var d_val3 = 30; var dly_val3 = 30; var d_val4 = 40; var dly_val4 = 40; var d_val5 = 50; var dly_val5 = 50; var d_val6 = 60;...
/** * Created by ChenDanni on 2016/8/15. */ import {get_rec_users_by_language} from './RecommendLogic_users' import {getStarRepoByUser, getRepoInfo,getPublicRepoByUser,getJoinRepoByUser,getTopRepos} from '../dao/RepoDAO' import {getUserAndLevelByLanguage, getFollowingByUser, getStarUserByRepo, getContributorsByRepo}...
"use strict"; const firebaseConfig = { apiKey: "<KEY>", projectId: "last-walk", }; firebase.initializeApp(firebaseConfig); const db = firebase.firestore(); function $(id) { return document.getElementById(id); } /** * @param {HTMLElement} parent * @param {string} name * @param {Object.<string, string>} attri...
class MatchPage { eventHandler(e){ console.log(e.detail); var data = e.detail; if(data.type == "MatchLiveEvent"){ var mid = data.matchid; $(".match-status").html("LIVE"); } else if(data.type == "MatchOverEvent"){ var mid = data.matchid; ...
import Point from './point'; import Bezier from './bezier'; import throttle from './throttle'; import Curve from './curve'; import BBox from './bbox'; import Stabilizer from './stabilizer'; function InkCanvas(canvas, options) { if(!window.PointerEvent){ alert('unsupport pointer event api'); } cons...
//Bugs: // make it so the fire doesn't burn RIGHT after you build it // wood isn't taken when u build the fire // make feed fire a different speed than gather wood cause i want it to be that way // don't disable the fire button if the fire is already hot // change wheat farm hover text to say WHEAT farm // also maybe c...
import * as Templates from './templates.js' import * as Helpers from './helpers.js' import Modal from './Modal.js' class Editor { // ----------------------------------------------------------------------------- // @section Initialisation // -----------------------------------------------------------------...
//Ajax下载 function ajax_download_file(url) { if (typeof (ajax_download_file.iframe) == 'undefined') { var iframe = document.createElement('iframe'); ajax_download_file.iframe = iframe; document.body.appendChild(ajax_download_file.iframe); } ajax_download_file.iframe.src = url; aja...
/** File <b>game_support.js</b> contains the AngularJS controller for the Fantasy Craft interactive character sheet web app. It defines the following <ul>filters: <li>checkmark - Displays a boolean as a unicode checkmark if true, and a non-breaking space if false.</li> <li>bonus - Prepends a '+' explicitly t...
//Austria var north = 47.24387 var west = 9.87892 var south = 47.20387 var east = 9.89892 //Rio var north = -22.9101 var west = -43.3407 var south = -22.9301 var east = -43.3207 /**/ // Switzerland var north = 45.88465 var west = 7.13725 var south = 45.88105 var east = 7.14634 /**/ //console.log("east: ", east); co...
/* * jQuery Easing v1.4.0 - http://gsgd.co.uk/sandbox/jquery/easing/ * Open source under the BSD License. * Copyright © 2008 <NAME> * All rights reserved. * https://raw.github.com/gdsmith/jquery-easing/master/LICENSE */ (function (factory) { if (typeof define === "function" && define.amd) { define(['jquery'], ...
const { timeFormat, timeParse } = require('d3-time-format') const { timeYear, timeMonth } = require('d3-time') const { descending } = require('d3-array') const striptags = require('striptags') const entities = require('entities') const { DRUPAL_IMAGE_BASE_URL } = require('../constants') const parseDate = timeParse('%Y...
var mysql = require('mysql'); const fs = require('fs'); var csv = require('csv-array'); let species_param; let species_param_head = []; csv.parseCSV('data/species_param.csv', function(data){ species_param = data; data.forEach(function (d) { species_param_head.push(d.species) }) }); // load action ...
var data = pj.set("data",pj.Object.mk()); data.__builtIn = true; /* utilities for data * A scale describes a mapping from data space to image space. The coverage of a scale is an interval * in data space, and its extent an interval in image space */ data.set("LinearScale",pj.Object.mk()).__namedType(); ...
/* Meta PDF Copyright (c) 2018 <NAME> The MIT License (MIT) 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, modi...
//MARK -TODO Remove the submit handler button from the date picker component import React from 'react' import "../css/Shifts.css" import "../css/util.css" import "../css/PostShiftPage.css" import {Header} from "./WaitList"; import {getPositionsForUser, postShift} from "./DataFetchHandler"; import {getDaysInMonth, form...
'use strict'; const _ = require('lodash'); // Reference: https://projectpokemon.org/wiki/Pokemon_X/Y_3DS_Structure const hanzi = require('fs').readFileSync(`${__dirname}/data/hanzi.bin`); const HANZI_OFFSET = 0xE800; function getHanziChar (offset) { return hanzi.toString('ucs2', (offset - HANZI_OFFSET) * 2, (offse...
const setQueryStringParameter = (name, value) => { const params = new URLSearchParams(window.location.search); params.set(name, value); const url = decodeURIComponent(`${window.location.pathname}?${params}`); window.history.pushState({}, "", url); return url; }; let defaultS = { page: "l", column: {}, ...
/**Cut Bamboo For 2 * * @author <NAME> * @description a game for 2 players */ //game rules $('#rules').html("<span>For left player: <b>←A S→ </b>For right player: <b>←J K→ </b></span>"); // Initialasing the main variables var GAME_START = false; var GAME_OVER = false; // Set the relative dimensions const widt...
'use strict'; viewModel.distribution = {}; var dsbt = viewModel.distribution; dsbt.changeTo = function (d) { rpt.resetMonthQuarter(); if (d == 'Revenue vs EBIT Distribution') { toolkit.try(function () { $('#tab1 .k-grid').data('kendoGrid').refresh(); }); } }; viewModel.revenueEbit = {}; var rve = viewModel...
/** * * CreativeReport * */ import React from 'react'; import { Button, Col, Row, Spinner } from 'reactstrap'; import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; import Select from 'react-select'; import PropTypes from 'prop-types'; import { createStructuredSelector } from 'reselect'; import { c...
// Heroic Robotics' PixelPusher -- http://www.heroicrobotics.com var pixelpusher = require('pixelpusher') , util = require('util') , db = require('./../../core/database').db , devices = require('./../../core/device') , steward = require('./../../core/steward') , utility = require(...
"use strict"; window.addEventListener('resize', handleWindowResize, false); var scene, camera, fieldOfView, aspectRatio, nearPlane, farPlane, HEIGHT, WIDTH, renderer, container,controls; var HEIGHT = window.innerHeight; var WIDTH = window.innerWidth; var scene = new THREE.Scene(); var aspectRatio = WIDTH / HEIGHT; ...
var readChunk = require('read-chunk'); var imageType = require('image-type'); var xlsx = require('node-xlsx'); var hash = require('object-hash'); var request = require('request'); var async = require('async'); var fs = require('fs'); var qt = require('quickthumb'); var EventEmitter = require('events').EventEmitter; ...
/* global ConversationPanel: true, PayloadPanel: true*/ /* eslint no-unused-vars: "off" */ // Other JS files required to be loaded first: apis.js, conversation.js, payload.js (function() { // Initialize all modules ConversationPanel.init(); PayloadPanel.init(); })(); var data1; var count = 0; var lengthOfimag...
/* Copyright (c) 2013, <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
const messages = { "app": { "name": "Penguin Statistics", "name_line1": "Penguin Statistics", "name_line2": "" }, "server": { "name": "Server", "switch": "Switch Server", "selected": "Selected", "servers": { "CN": "CN", "US": "US", "JP": "JP", "KR": "KR" } ...
// inspired by https://arkenfox.github.io/TZP/tests/canvasnoise.html let pixelImageRandom = '' const getPixelMods = () => { const pattern1 = [] const pattern2 = [] const len = 8 // canvas dimensions const alpha = 255 const visualMultiplier = 5 try { // create 2 canvas contexts const canvasDisplay1 = docume...
/** * horizontal-pager * A small, fast, no-dep, horizontal pager. * * Copyright (c) 2017-2021 <NAME> (@localnerve), LocalNerve LLC * Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms. */ /* global document, requestAnimationFrame, cancelAnimationFrame */ /* eslint-disable impo...
'use strict'; exports.__esModule = true; var _react = require('react'); var _react2 = _interopRequireDefault(_react); require('../scss/header.scss'); var _i18next = require('i18next'); var _i18next2 = _interopRequireDefault(_i18next); var _logo = require('../assets/icons/logo3.svg'); var _logo2 = _interopRequir...
import React, { useCallback, useContext, useEffect, useState } from 'react' import { Col, Container, Row } from 'reactstrap' import LocationOnOutlinedIcon from '@material-ui/icons/LocationOnOutlined' import { useRouter } from 'next/router' import { NextSeo } from 'next-seo' import Link from 'next-translate/Link' import...
var db = firebase.firestore(); var auth = firebase.auth(); var posts = document.getElementById("post"); posts.innerHTML = ""; var div, divInner1, divInner2, img1, h3, p, btn, modaldiv, modaldivInner01, modaldivInner02, modaldivInner03a, modaldivInner03aButton, modaldivInner03ah4, modaldivInner03b, modaldivInner03bI...
var contE; //conta a criação de enemigos de um tipo no array var spriteE = new Array(45); //sprites var contF = 0; //para contar o número de frames actuais var contFold = contF; //para guardar frames para uso de criação de inimigos var keypressed; // a tecla que esta a ser currentemente clicada var resumeani=false; //...
const test = require('ava') const mongoose = require('mongoose') const hakki = require('../') const randomstring = require('randomstring') const models = require('../lib/models') test.before(async t => { await mongoose.connect('mongodb://localhost:27017/hakki_tests', { useNewUrlParser: true }) await mongoose.conn...
const input = document.querySelector('input'); const addButton = document.querySelector('button'); const citiesBoard = document.querySelector('.board'); const closePopupButton = document.querySelector('.closePopupButton'); const errorWindow = document.querySelector('.errorWindow'); const KEY_API = '&appid=cd7893761555...
var DEFAULT_WIDTH = 300; var DEFAULT_HEIGHT = 480; var BAR_MARGIN_PER_CHAR = 8 var BAR_HEIGHT = 26; // Default configuration var defaultGneissChartConfig = { container: '#chartContainer', width: DEFAULT_WIDTH, height: DEFAULT_HEIGHT, title: '', colors: [], type: 'line', basePadding : { ...
/* ================ FORM BUILDER GUI This javascript file is strictly for building the GUI used on the create new form page. There is significant use of JSPlumb and JQuery UI, so if you are having problems understanding what is being done, check those documentations for additional reference. ================ */ var r...
import express from 'express' import dnrpaCtrl from '../../../controllers/v2.0/dnrpa' import rtoCtrl from '../../../controllers/v2.0/dnrpa/rto' import APIError from '../../../helpers/APIError' import { idTokenMiddleware, } ...
/////////////////////////////////////////////////////////////////////////////// //// poor-man's enums var RED = 'r'; // always goes first var BLACK = 'b'; var EMPTY = '.'; var WIDTH = 7; var HEIGHT = 6; var IN_PROGRESS = 0; var RED_WON = 1; var BLACK_WON = 2; var DRAW = 3; var ERROR_ILLEGAL_MOVE = 0; var ERROR_NO_L...