text stringlengths 5.97k 41.2k |
|---|
/* eslint-disable react/display-name */
import React, { useState, useEffect, forwardRef } from 'react'
import { useTranslation } from 'react-i18next'
import { Link, useParams, useHistory } from 'react-router-dom'
import Avatar from '@mui/material/Avatar'
import Button from '@mui/material/Button'
import Grid from '@mui/... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
const ctrWrp = require('./contract.js');
const Timer = require('./timer.js');
const Func = require('./functions.js');
const Cache = require('./cache.js');
var compress = require('jsoncomp');
var PNG = require('pngjs').PNG;
const Response = require('./responses.js');
const slice = require('array-slice');
const flags = r... |
// Data for nodes and edges
var edgeData = localStorage.getItem('edgeData');
var nodeData = localStorage.getItem('nodeData');
var headers = localStorage.getItem('headers');
// Just sources and targets
var sourceData = localStorage.getItem('source');
var targetData = localStorage.getItem('target');
// All the... |
// MODULES //
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import Button from 'react-bootstrap/Button';
import Card from 'react-bootstrap/Card';
import CheckboxInput from 'components/input/checkbox';
import SelectInput from 'components/input/select';
import SliderInput from '... |
const Chartist = require("chartist");
let overallChart;
let currentTeam = { rank: null, track: null, closest: null };
$(document).ready(function () {
// "Fix" 100vh problem on iOS and mobile Chrome
var wrapper = $("div.results-classic-wrapper");
window.onresize = function () {
if ($(window).height() < wrapp... |
"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... |
// Configuration
var config = require('../matrix-bot-config.js').kanboard;
// Let's go...
var request = require('request');
var sqlite3 = require('sqlite3').verbose();
var q = require('q');
var qRequest = q.denodeify(request);
var db = new sqlite3.Database(config.sqliteDatabase);
var dbRun = q.denodeify(db.run.bind(d... |
import { baseWarn } from '../warnings';
import parseHTML from './parseHTML';
import { isIE } from '../shared/constants';
import pluckModuleFunction from '../compilers/pluckModuleFunction';
import isPlainTextElement from '../parser/isPlainText'
import createASTElement from '../compilers/createASTElement';
import { pa... |
/*
** componentDoc -- JavaScript lightweight documentation generator
** for documentation as HTML and/or PDF from 'component-yaml'-files
** Copyright (c) 2016 msg systems ag (http://www.msg-systems.com/)
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this softw... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
'use strict';
// Can't use ESM yet - need coverage.
const {EventEmitter} = require('events');
const parseCacheControl = require('./parse-cache-control');
// TODO: freshening responses with HEAD
// TODO: content-length mismatch on HEAD invalidates the cached response
// Big thanks to @ronag - https://github.com/nodejs... |
/**
* Module dependencies
*/
var assert = require('assert');
var sqlite3 = require('sqlite3');
var jdb = require('jugglingdb');
exports.initialize = function initializeSchema(schema, callback) {
var s = schema.settings;
var Database = null;
switch (s.type) {
case 'cached':
Database =... |
const strings = {
"navbar": {
"studentsArea": "Espace élèves",
"project": "Projet",
"news": "Actualités"
},
"home": {
"title": "Site des élèves du Lycée français de Berlin",
"soon": "Bientôt",
"mySA": "Mon espace élève",
"mySATomorrow": {
"testDst": "test ou DST",
"testsDst... |
/**
* @license
* Copyright (C) 2020 The Android Open Source 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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
'use strict';
// insertAdjacentHTML polyfill for IE
if (self.document && !('insertAdjacentHTML' in document.createElementNS('http://www.w3.org/1999/xhtml', '_'))) {
HTMLElement.prototype.insertAdjacentHTML = function (position, html) {
let ref = this,
container = ref.ownerDocument.createElement... |
/**
* Created by 11485 on 2019/2/25.
*/
import React, { Component } from 'react';
import { Card, Radio, Icon, Tabs, Input, Empty, Pagination, Row, Col, Divider, Tooltip, Menu, Dropdown, Drawer, PageHeader, Button, Select, DatePicker, message, Popconfirm, Table } from 'antd';
import { connect } from 'dva';
import { Ch... |
google.load("visualization", "1", {
packages : [ "corechart" ]
});
// google.setOnLoadCallback(drawChart);
var selector = '#ctbody';
var templateHandlebars = ModelsTmpl.tmplCallMonitorResult;
var str1 = "Monitor de Chamados";
var str2 = "Monitor de Chamados";
var str3 = "o";
var recordPerPage = 10;
var tamanho = 380;
... |
'use strict';
exports.__esModule = true;
var _desc, _value, _obj;
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 targ... |
const fs = require("fs");
if (!process.env.ELEVENTY_SERVERLESS) {
// explicitly use var for global scoping
var { ContrastChecker } = require("color-contrast-calc");
var { extractColors } = require("extract-colors");
var chroma = require("chroma-js");
}
const STATES_BY_POSTAL_CODE = {
AL: "Alabama",
AK: "A... |
const links = {
"국어(허)": "5377141697&pwd=<PASSWORD>",
"수학(류)": "6838770867&pwd=<PASSWORD>",
"수학(김)": "https://teams.microsoft.com/l/team/19%3a3bc99faef2654410ba199d1d143b200c%40thread.tacv2/conversations?groupId=5eb418d5-652a-473d-b11d-6981e06a2203&tenantId=b6d94080-6cb3-403b-8a0f-5c44c2448089",
"영어(양)": "76549... |
let margin = {
top: 20,
right: 0,
bottom: 80,
left: 40
}
let width = 900,
height = 700
let color = {
text: '#8fac4a',
chart: '#41433d'
}
const data = {
sales: 8000,
profit: 4200,
list: [
{
name: '子公司1',
time: '2000-01-01',
scale: 50,
sales: 320,
profit: 160,
... |
/*
* @author oosmoxiecode
* @author toji
*
* This is based on the work of <NAME>(@toji).
* See this blog post and his demo: http://blog.tojicode.com/2010/06/its-alive-idtech4-models-with-skinning.html
* I have 'borrowed' his regexp to save me some headache. ;)
* Included his copyright notice below.
*
*/
/*
... |
/*
* Copyright (c) 2018 HERE Europe B.V.
*
* 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 ... |
import React, { Component } from "react";
import Papa from "papaparse";
import { readRemoteFile } from "react-papaparse";
import Evalgraph from "./evalgraph";
import Evalmap from "./evalmap";
import RankingTable from "./rankingTable";
import "./evaluation.css";
import { Form, Select, Row, Col, Radio, Slider } from "ant... |
import * as THREE from 'three'
import { CSS2DObject } from 'three/examples/jsm/renderers/CSS2DRenderer.js'
import RViewApp from './RViewApp'
// import GlslGrid from './GlslGrid.js'
import GlslLineList from './GlslLineList'
import GlslScreenQuad from './GlslScreenQuad'
function curveToPoints (curve, pointLimit) {
let... |
"use strict";
/*jshint loopfunc:true */
/*global google: false */
/*global ko: false*/
/*jslint node: true */
/*jshint strict:false */
//style for the Map.(found it on the https://snazzymaps.com/)
var styles = [{
"featureType": "all",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#fffff... |
const {Point,Viewport,Partition,Complex,ComplexFunction,ComplexShader} = require('../../../Utils');
/**
* Defines an iterative fractal set within a viewport.
* @class
* @extends Viewport
* @prop {ComplexFunction} func - the iterative function that takes a complex number z and returns the new z value.
* ... |
function onReady(callback) {
var intervalID = window.setInterval(checkReady, 1000);
function checkReady() {
if (document.getElementsByTagName('body')[0] !== undefined) {
window.clearInterval(intervalID);
callback.call(this);
}
}
}
function show(id, value) {
docum... |
var dt;
var id;
var profileNameMapper = {};
var names = [];
$(document).ready(function () {
// set cache to false
$.ajaxSetup({cache: false, async: false});
id = $.urlParam('id');
// get name and pic
$.getJSON('/api/fb_pages', function (data) {
$.each(data.data, function (i, v) {
... |
const pdd = {
"msg": "success",
"code": "1",
"data": [{
"rank": 1,
"cat_ids": [8172, 8182, 8263],
"max_commission_rate": 200,
"couponAmount": 5,
"act_price": 18.86,
"mall_name": "景鹏水果生鲜旗舰店",
"couponPrice": 13.86,
"quanhou": 13.86,
"volume": "3.8万",
"pic_url_for_p_c": "https... |
const { app } = require("../app");
const { bsv, Bytes, toHex } = require("scryptlib");
const { UtxoMgr } = require("./UtxoMgr");
const TokenUtil = require("../lib/sensible_ft/tokenUtil");
const { PrivateKeyMgr } = require("./PrivateKeyMgr");
const { CodeError } = require("../util/CodeError");
const { ErrCode } = requir... |
const fakeData = {
"page": 1,
"total_results": 10000,
"total_pages": 500,
"results": [{
"popularity": 83.785,
"vote_count": 948,
"video": false,
"poster_path": "\/p69QzIBbN06aTYqRRiCOY1emNBh.jpg",
"id": 501170,
"adult": false,
"backdrop_path": "\/1... |
var crollNow = 0;
var iTime;
var followScroll = 1;
var stop = 0;
var ifbottom = 0;
var rocketTimer;
var pingback;
var ifPlayed = Array(0,0,0,0,0,0,0);
var windowobject;
var windowHeight;
var SmoothScroll = function (win, opt) {
//操作对象
this.win = win;
this.timeStamp = new Date().getTime(... |
// To support older versions of node
if(typeof Promise === 'undefined') global.Promise = require('promise');
// Main module
module.exports = function webpackConfig( dirName, done ) {
// Run with NodeJS in order to see the command documentation
var argv = require('optimist')
.usage('Usage: $0 -- od [str] --pp ... |
var socket = io();
var gameState = 0;
var currentPage = "createGame";
var drawTimer;
var guessingRoundTimer;
var descriptionRoundTimer;
var drawStartTime;
var timeToDraw;
var timeToDescribe;
var timeToGuess;
var userAvatars = {};
var soundFiles = {};
var marimbas = new Howl({
src: ['assets/sounds/marimbas.wav'],
au... |
"use strict"
///////
// Room
var room = angular.module('Room', []);
///////////
// Config
room.config(function($sceDelegateProvider) {
$sceDelegateProvider.resourceUrlWhitelist([
'self',
"http**",
"blob**"
]);
});
//////////
// Debug
const debug = {
interface: false,
room: false,
call: false,
ice: fal... |
var people = [];
var peopleTable;
var admins;
var partners;
var customers;
function save(e) {
var t = {};
t.username = $("#username").val();
t.full_name = $("#full_name").val();
t.email = $("#email").val();
t.domain = $("#domain").val();
t.time_zone = $("#time_zone").val();
t.num_of_users = parseInt($("... |
// @ts-check
const part1 = `
#COMPONENTS NOP,DIGITPRINTER_SE,B0-3,U0-9,ADD,SUB,MUL
#REGISTERS {"U1":1, "U6":6, "B0":2, "B2":1}
# State Input Next state Actions
# ---------------------------------------
INITIAL; ZZ; ITER1; NOP
# Iterate 4 times per digit.
ITER1; ZZ; ITER2; INC U5, NOP
ITER2; ZZ; ITER3; INC U5, NOP
ITER... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2019-2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licens... |
// Antaroth's Abyss (Hard)
//
// made by Yuyuko
// updated by HSDN
const {SpawnMarker, SpawnCircle} = require("../lib");
let counter = 0; // count for back attacks
let timer; // reset time
let print = true; // 2 boss Health
// 2 boss Health tips
function start_boss() {
print = true;
}
function print_fifty(handlers... |
import * as PIXI from 'pixi.js-legacy';
import {
extendRectangleByMargin,
getRotatedRectangleBounds,
rotateRectangle
} from '../../../utilities/vector-utilities';
import {HeatmapNavigationType} from '../../../navigation';
import config from '../config';
import labelsFormatter from './labels-formatter';
impo... |
/**
* TODO 该文件用于保存页面导航栏和页脚元素的处理程序。以及保存一些公共的函数
*/
/***********************************************************************
* TODO 通用函数
***********************************************************************/
// TODO 读取cookies操作
function getCookie(name){
var arr,reg =new RegExp("(^|)"+name+"=([^;]*)(;|$)... |
/**
* crosslink-image-viewer-legacy-handler.js
*
* Encapsulate code used to update legacy JSON to current standards
*
* !!! The following variables passed in from "crosslink-image-viewer.js" are used in this file:
*
* imagePagePrimaryRootCodeObject (copied to local variable imagePagePrimaryRootCodeObject_L... |
'use strict'
const cassandra = require('cassandra-driver')
const kvmEntryPartitionCount = process.env.MAPS_KVM_ENTRY_PARTITION_COUNT || 32
const config = {
databaseHosts: process.env.CASS_HOSTS ? process.env.CASS_HOSTS.split(",") : ['localhost'],
databasePort: process.env.CASS_PORT ? process.env.CASS_PORT : 9042,
... |
$(function () {
var chatHub = $.connection.chatHub;
registerClientMethods(chatHub);
// Start Hub
$.connection.hub.start().done(function () {
console.log("connection succeded");
registerEvents(chatHub);
});
});
var list_area_row_html = '<div id="' + 'id_placeholder' + ... |
var currentTime = moment().format(' HH:mm:ss');
var tstCurrentDate = moment(tstCurrentDate).format("YYYY-MM-DD");
var patientID = sessionStorage.patientID;
var patientID = sessionStorage.getItem("patientID");
var programID = sessionStorage.getItem("programID");
var patientAge = sessionStorage.patientAge;
var tt_cancel_... |
var isAlreadyChecked = false;
var isSelectedAllCheckBox = false;
$(document).ready(function () {
$('#availableGroups').multiselect({
includeSelectAllOption: true,
buttonWidth: 250,
enableFiltering: true
});
$('.datepicker').datepicker({
format: "yyyy-mm-dd",
todayHig... |
var locked = false;
var OPS = ["F", "L", "B", "R", "U", "D"];
var perspective = 0;
var solverInitialized = false;
var solvers = [];
solvers.push(new Cube());
Cube.asyncInit("lib/cubejs/worker.js", function() {
solverInitialized = true;
});
window.onload = init;
function action(cubes, scene, operation, inverse, ... |
import React, { memo, useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { Row, Col, Button, Tabs, Input, message, Spin, Tag, notification... |
function random(a,b) {
if (typeof b == "undefined") {
a = a || 2;
return Math.floor(Math.random()*a);
} else {
return Math.floor(Math.random()*(b-a+1)) + a;
}
}
// shuffle function
function shuffle (a)
{
var o = [];
for (var i=0; i < a.length; i++) {
o[i] = a[i];
}
for (var j, x, i = ... |
var PrototypeBuilder = function() {
var getter = null;
var accessors = [];
var mappers = [];
var id = true;
var times = true;
var build = function(cls) {
// First, add the ID and getID methods if requested
if (id) {
cls.prototype.ID = function() { return this.fqid; };
cls.prototype.gl... |
const label_map = ['Anger', 'Disgust', 'Fear', 'Happy', 'Sad', 'Surprise', 'confident']
const video = document.querySelector("video");
const face = document.getElementById("face");
video.srcObject= null;
const canvas = document.getElementById("videoCanvas");
const download = document.getElementById("download");
c... |
//>>-drg191102.js
/*
requires jquery...
just do in index.html
<script src="js/draggit180219.js"></script>
and write ... somewhere: var dr = new draggit;
*/
var superDX = 0;
var superDY = 0;
//>>-square() - - - - - - - - - - - - - - -
function square(boss,x1,y1,wi,he, svGroup){ //svGroup - a link to an SVG_group
t... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Parameter_1 = require("../Parameter");
const fs = require("fs");
const path = require("path");
const CommonGenerator = require("./CommonGenerator");
const TypescriptFile_1 = require("../TypescriptFile");
const mkdirp = require("mkdirp").... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... |
var Scroll_Y = 0;
var ui_X = 1376;
var end_Y = 1000;
var boss2_entryY = -700;
var missileY = -400;
var n_explosion=0;
var n_life = 32;
var p_hp_boss2=1000;
var i_fighter;
var i_fighter2;
var i_fighter1;
var i_fighter_afterImage;
var i_fighterA;
var i_fighterA_afterImage;
var i_explosion;
var i_ui_main;
var i_ui_m... |
/*global THREE*/
import { geometryInfo, ConvexGeometry } from './Geometry.js';
import { root, map } from './root.js';
/** _ _____ _ _
* | | |_ _| |_| |
* | |_ _| | | _ |
* |___|_|_| |_| |_|
* @author lo.th / https://github.com/lo-th
*
* SHOT - SOFTBODY
*/
function SoftBody() {
this.ID = 0;
... |
/**
* Dalia (SPA) SEO Tool (http://github.com/itmcdev/nodejs-dalia/)
*
* Developed in collaboration with PJ Interactive Romania, a member of Brandpath UK (http://brandpath.com)
*
* @link http://github.com/itmcdev/nodejs-dalia/ for the canonical source repository
* @copyright Copyright (c) 2007-2016 IT Media ... |
'use strict';
const cacheControl = require('@financial-times/origami-service').middleware.cacheControl;
const express = require('express');
const httpError = require('http-errors');
const JsDoc = require('../code-docs/jsdoc');
const JsDocNav = require('../code-docs/jsdoc/nav');
const NavNode = require('../code-docs/na... |
/*
- Notify world when an Object3DFacade changes in a way that would affect its worldspace bounds or pickability:
- added or removed from tree
- change of its interceptsPointerEvents state (??? could be too expensive to check proactively)
- world matrix version changes
- change of the mesh's geometry object ... |
// !-- Add input and textarea functionality, look at these 2 resources for help
// - https://github.com/Codecademy/textarea-helper
// - https://github.com/component/textarea-caret-position
async function callAPI(word, popupNode) {
let dictionaryObject = await checkLocalDictionary(word);
let language = 'en';
... |
var fs = require('fs'); // file system
var uuid = require('node-uuid');
var events = require('events');
var net = require('net');
var jobLib = require('./job');
var clone = require('clone');
var sbatchPath = 'sbatch';
var squeuePath = 'squeue';
var TCPport = 2222;
var TCPip = null;
var scheduler_id = uuid.v4();
var ... |
import React, { Component } from "react";
import "./App.css";
import DialControl from "./components/DialControl";
import ConfigForm from "./components/ConfigForm";
class App extends Component {
doesOverlap(a,b){
return (Math.min(a.end_time,b.end_time) >= Math.max(a.start_time,b.start_time));
}
addMinute(a){
i... |
const Cmd = require('./cmd');
class Hits extends Cmd {
async init(deps) {
await deps({
...this.$.pick(this.urt4, 'sv'),
...this.$.pick(this.admin, '$qvm', '$pos', '$inv', '$players')
});
this.frame = 0;
this.victims = this.$.make();
this.explosions = this.$.make();
this.prevExpl... |
//global variables
var cw,ch;
var loaded = false;
var state = 'intro';
var moving = false;
/**
* 'dom-is-sized' is triggered when the sizing module finishes a
* resize. We listen for the first of these, and remove the "curtain"
* which
*/
$(document).one('dom-is-sized', function() {
$('#loading-background').fade... |
var BASE_URL = "https://new.dineoncampus.com/v1/location/menu.json?platform=0";
var MONTH_NAMES = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
];
var locations = {
"Stwest": {
"locat... |
let server;
var game;
var songcount = 0;
let fileBuffers;
let fileLengths;
let doneSongs;
let songNames;
let songDownloadNames;
let indexarray = []
let download_info_array;
let request_playlists = false;
let request_playlist_songs = false;
let download_ready = true;
let select_download_songs_array = [];
let songs_to_d... |
'use strict';
const DBS = require('./dbs');
const Utils = require('./utils');
const typedefs = require('../typedefs');
const Fs = require('fs');
const Path = require('path');
/**
* Reads all the perpared SQL definition files for a specified name directory and adds a function to execute the SQL file contents
* @pri... |
/*
* @Author: Delsart
* @Date: 2022-01-02 11:30:31
* @LastEditTime: 2022-01-02 12:08:55
* @Description: DingDing-Automatic-Clock-in (Run on AutoJs)
* @FilePath: \SWU-DingDing-autoCheck\SWU-DingDing-autoCheck.js
* @URL: https://github.com/Delsart/SWU-DingDing-autoCheck
*/
/* ------------------------------------... |
$(document).ready(function() {
searchTrendsLocations();
createChart();
});
function showLoader() {
$('.fakeloader').fakeLoader({
bgColor : 'rgba(0,0,0,0.7)',
zIndex : '9999999',
spinner : 'spinner2'
});
}
function hideLoader() {
$('.fakeloader').fadeOut();
}
function isLimitExceeded(data) {
if(data.error... |
var STR_PAD_LEFT = 1;
var STR_PAD_RIGHT = 2;
var STR_PAD_BOTH = 3;
function pad(str, len, pad, dir) {
if (typeof(len) == "undefined") { var len = 0; }
if (typeof(pad) == "undefined") { var pad = ' '; }
if (typeof(dir) == "undefined") { var dir = STR_PAD_RIGHT; }
if (len + 1 >= str.length) {
... |
var _cloneDeep = require('lodash/cloneDeep');
var _filter = require('lodash/filter');
var _get = require('lodash/get');
// FOR-524 - Attempt to load json logic.
var jsonLogic;
try {
jsonLogic = require('json-logic-js') || undefined;
}
catch (e) {
// Ignore optional module.
}
module.exports = [
'Formio',
'form... |
/* global Matter */
var Engine = Matter.Engine,
World = Matter.World,
Bodies = Matter.Bodies,
Common = Matter.Common,
Vertices = Matter.Vertices,
Vector = Matter.Vector,
Svg = Matter.Svg,
Bounds = Matter.Bounds,
MouseConstraint = Matter.MouseConstraint,
Constraint = Matter.Constraint,
Events = Matt... |
$Ready(function () {
if ($('#js_poll_form').length) {
$('#js_poll_form').find('textarea[name="val[description]"]').prop('tabindex', 2);
}
$('.yn-dropdown-not-hide-poll').find('span[data-dismiss="dropdown"]').on('click', function () {
$(this).parents('.dropdown').trigger('click');
});
... |
import * as d3 from "d3";
import * as THREE from "three";
import * as dat from "dat.gui";
import * as d3chromatic from "d3-scale-chromatic";
import ConvertColorRgbStringToHex from "../common/ConvertColorRgbStringToHex";
import { OrbitControls } from "../../node_modules/three/examples/jsm/controls/OrbitControls";
import... |
import React, { Component, Fragment } from "react";
import {
Button,
Card,
CardBody,
CardHeader,
Col,
Row,
FormGroup,
Input,
CardImg,
Label,
CardFooter,
} from "reactstrap";
import { forwardRef } from 'react';
import RestoreIcon from '@material-ui/icons/Restore';
import AddBox from '@material-ui/i... |
var mapObjects = [];
var mapPosition = [0,0];
var mapIndex;
var mapMetadataID = 0;
var mapCurrentBattle;
var mapCanMove = true;
var mapInExit = false;
var mapInvincible = false;
var mapKeypresses = {
up: false,
down: false,
left: false,
right: false,
x: false
}
var mapZoomLevel = 12;
var mapEnableGrid = fals... |
const firebaseConfig = {
apiKey: "<KEY>",
authDomain: "nightmare-mercurio.firebaseapp.com",
projectId: "nightmare-mercurio",
storageBucket: "nightmare-mercurio.appspot.com",
messagingSenderId: "829384661085",
appId: "1:829384661085:web:bddd58254813be754315b4",
measurementId: "G-TQYRLQ0VWT"
};
// Iniciali... |
// INIT
var unitsize = 480*parseFloat(document.getElementById('tzoom').value)/100;
var bordersize = (480-unitsize)/2;
var squareId;
var functList;
var stage;
var back;
function init() {
unitsize = 480*parseFloat(document.getElementById('tzoom').value)/100;
bordersize = (480-unitsize)/2;
functList = []
squareId = 0;
st... |
import * as glMatrix from "./common.js";
import * as quat from "./quat.js";
import * as mat4 from "./mat4.js";
export function create() {
let dq = new glMatrix.ARRAY_TYPE(8);
if (glMatrix.ARRAY_TYPE != Float32Array) {
dq[0] = 0;
dq[1] = 0;
dq[2] = 0;
dq[4] = 0;
dq[5] = 0;... |
/**
* @user_id 【用户id】
* @order_id 【订单id】
* @wuliuStatus 【物流加载成功 0 1】
* @orderName 【商品标题】
* @kuaidiName 【快递标题】
* @orderMSG 【订单信息】
* @invoice_no 【快递单号】
*/
let order_id = getParam('order_id');
let wuliuStatus = 0;
let myUsetInfo = localStorage.getItem('USERINFO');
myUsetInfo = JSON.parse(myUsetInfo)... |
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
Platform,
StatusBar,
TouchableOpacity,
TouchableWithoutFeedback,
ScrollView,
ActivityIndicator,
PermissionsAndroid,
Alert,
SafeAreaView
} from 'react-native';
import { ButtonGradient, FormInput, M... |
var Web3 = require('web3')
var Biconomy = require('@biconomy/mexa')
const { config } = require('./config')
let sigUtil = require('eth-sig-util')
var web3
var contract
var erc20Contract
var biconomy
var networkName
const domainType = [
{ name: 'name', type: 'string' },
{ name: 'version', type: 'string' },
{... |
require('styles/detail.less');
require('styles/swiper.min.css');
import React from 'react';
import $ from 'webpack-zepto';
import Swiper from 'swiper';
import dataService from '../../common/dataService';
import app from '../../lib/app';
//import Swiper from '../../lib/swiper.min';
//let yeomanImage = require('../image... |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = function () { f... |
import React, { useEffect, useState, useRef, useContext } from 'react';
import { View, Dimensions, StyleSheet, Text, Pressable, ScrollView, Platform } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { HeaderWithBack, StyleConstant } from '@assets/MyStyle';
import { withScreenB... |
import React, {useState, useEffect} from 'react';
import {TextField, Button, Typography, Paper, Select, MenuItem, FormControl, InputLabel, Tooltip, IconButton, Dialog, DialogTitle, DialogContent} from '@material-ui/core';
import FileBase from 'react-file-base64';
import useStyles from './styles';
import {useDispatch, ... |
import React, {Component} from "react";
import {Translate, getTranslate} from "react-localize-redux";
import {Grid, Row, Col, Table} from "react-bootstrap";
import Button from "../../components/CustomButton/CustomButton";
import Dropzone from "react-dropzone";
import {Card} from "../../components/Card/Card";
import {co... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Server = exports.SUBMIT_TRANSACTION_TIMEOUT = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descri... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, PermissionDenied, ArgumentsRequired, BadRequest, InvalidNonce, DDoSProtection, OnMaintenance } = require ('./base/errors');
// --------------------------... |
/* eslint-disable max-len */
/* eslint-env node */
const getRuleFinder = require('eslint-find-rules');
const fs = require('fs');
const util = require('util');
const path = require('path');
const { write } = require('./config-file.js');
const docs = require('../../data/rules-doc.json');
const rulesToUpdate = require('.... |
var GAME_WIDTH = 400;
var GAME_HEIGHT = 400;
var GAME_SCALE = 1;
var gameport = document.getElementById("gameport");
//Whole map is 1920
var renderer = PIXI.autoDetectRenderer(GAME_WIDTH, GAME_HEIGHT, {backgroundColor: 0x000000});
gameport.appendChild(renderer.view);
var stage = new PIXI.Container();
stage.scale.x =... |
const messageCache = {};
$(function() {
// $(window).bind('beforeunload', function(e) {
// // save info somewhere
// console.log(e);
// return 'are you sure you want to leave?';
// });
$('#logout').click(function() {
logout();
});
$('#username').change(function() {
openConnection();
});
$('#ws-stat').chan... |
// Imports
import * as THREE from '../node_modules/three/build/three.module.js';
import { GeometryUtils } from '../node_modules/three/examples/jsm/utils/GeometryUtils.js';
// Bitno za nesto
THREE.Cache.enabled = true;
// l col (1d arr)
// j row (2d arr)
// i pge (3d arr)
let vanillaProgTextMatrix = [
[['1','A... |
$(function() {
__funeralIdx = parseInt($('#funeral_idx').val())
var __mournerIdx = parseInt($('#mourner_idx').val()),
__mournerTel = '',
$modalTraffic = $('.modal-traffic'),
$modalBank = $('.modal-bank');
/**
* 데이터 조회
*/
var getData = function (_callback) {
$... |
var bst = require('better-stack-traces').install();
var config=require('./config.js');
var https = require('https');
var querystring = require('querystring');
var _ = require('lodash'),
Twit = require('twit'),
T = new Twit(config.llaves),
configCuentas=config.cuentas,
losdatos = {};
var classdb... |
var USAGE_STATS = [];
NEWSCHEMA('Apps', function(schema) {
schema.define('previd', 'UID')(null); // internal for re-importing of apps
schema.define('typeid', ['external'])('external');
schema.define('url', 'Url', true);
schema.define('title', 'String(40)', true);
schema.define('titles', Object); // localized tit... |
/**
* DevExtreme (cjs/viz/core/plaque.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.Plaque = void 0;
var _extend = require... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.