text stringlengths 5.97k 41.2k |
|---|
const modalAnalytics = document.getElementById("modal-analytics");
const playlistMap = new Set();
$(function () {
$("[data-toggle=\"tooltip\"]").tooltip();
});
$("#trackModal").on("hide.bs.modal", function () {
removeAllChildren(modalAnalytics);
document.getElementById("modal-content-video").pause();
});
... |
/*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
*/
import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import socketIOClient from "socket.io-client";
import {
Button,
ButtonGroup,
Card,
CardBody,
Carousel,
CarouselCaption,
Car... |
/*
Setup all necessary variables for StackedArea Graph
*/
StackedArea = function(_parentElement){
this.parentElement = _parentElement;
this.allCategories = ['All Causes'];
this.allAges = ['All ages (total) years'];
//there are some double spaces in original group names. They are removed in data cleaning.... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__PictureImpl = exports.__SourceImpl = exports.Source = exports.Picture = exports.__ReactImgixImpl = exports.default = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireWildcard(re... |
import {
exec,
removeBlockTagsRecursive,
getActionBtns,
saveRange,
restoreRange,
unwrap
} from "./util";
import {get} from "svelte/store";
const linkSvg =
'<svg viewBox="0 0 72 72" width="17px" height="100%"><path d="M31.1 48.9l-6.7 6.7c-.8.8-1.6.9-2.1.9s-1.4-.1-2.1-.9L15 50.4c-1.1-1.1-1.1-3.1 0-4.2l6.1-6.1.2-... |
var configProp = null;
var tagkeys = [];
bootstrap_alert = function() {
}
bootstrap_alert.info = function(message, timeout) {
$("div#action-success").html("<p>" + message + "</p>");
$("div#action-success").show();
$("div#action-success").fadeOut(timeout);
}
bootstrap_alert.error = function(message, ti... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAction = undefined;
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())... |
/* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. */
/******************************************************************************
*
* You may not use the identified files except in compliance with the Apache
* License, Version 2.0 (the "License.")
*
* You may obtain a copy of the ... |
import React from 'react';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import _ from 'underscore';
import url from 'url';
import * as encoding from '../libs/query_encoding';
import { Panel, PanelBody } from '../libs/ui/panel';
import { svgIcon } from '../libs/svg-icons';
import { tintCol... |
var state = {
onlineADOT: false,
onlineIPFS: false,
walletOpen: false,
decentralized: false,
toolbarState: "hidden",
useInterceptedSearch: true,
selectedOperation: "send",
notifTimer: null, // handler of notification timeout
rpcUser: "user",
rpcPass: "<PASSWORD>",
rpcPort: "3... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray2 = require("babel-runtime/helpers/slicedToArray");
var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);
var _assign = require("babel-runtime/core-js/object/assign");
var _assign2 = _interopRequireDefault(_as... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// https://gist.github.com/shovon/c3ca8e59a5cf277c947a
class ComplexNumber {
constructor(r = 0, i = 0){
this.real = new Number(r);
this.imag = new Number(i);
}
... |
"use strict";
import T from '../lib/tool.js';
import DOMTool from '../lib/dom-tool.js';
import Log from '../lib/log.js';
import Task from '../lib/task.js';
import Snapshot from '../snapshot/snapshot.js';
import SnapshotMaker from... |
// --- content goes here ---
// http://mrdoob.github.com/three.js/examples/canvas_materials_video.html
// http://mrdoob.github.com/three.js/examples/css3d_youtube.html
// TODO: connect oculus rift interface to this, fow extra awsome
// http://weareinstrument.com/labs/all/oculus-bridge
// http://stv.re/oculus-bridge/
... |
const express = require("express")
const io_client = require("socket.io-client")
const path = require("path")
const binance = require("binance-api-node").default
const moment = require("moment")
const BigNumber = require("bignumber.js")
const _ = require("lodash")
const tulind = require("tulind")
const axios = require(... |
/***************************** Game 9G 主类 *********************************/
Gamedudulu = function(gameid) {
this.gameid = gameid;
this.spid = null;
this.baseurl = "";
this.gameurl = "";
this.homeurl = null;
this.gzurl = null;
this.score = null;
this.scoreName = null;
this.shareDomain = null;
this.shareDoma... |
import StackedAreaChart from './StackedAreaChart.js';
import Timeline from './Timeline.js';
var imported = document.createElement('script');
//imported.src = './js/papaparse.min.js';
document.head.appendChild(imported);
let susData
let divSchemeNeg
let divSchemePos
let hoverListener
let categoryDat... |
/* Copyright <NAME> 2004 */
var finalizeMe = (function(){
var global = this,base,safe = false,svType = (global.addEventListener && 2)||(global.attachEvent && 3)|| 0;
function addFnc(next, f){function t(ev){if(next)next(ev);f(ev);};t.addItem = function(d){if(f != d.getFunc()){if(next){next.addItem(d);}else{next =... |
/* mainapp.js
* Copyright (c) 2019-2021 by <NAME>, https://github.com/david-asher
*/
"use strict";
/**
* High-level functions for quickly building the main application.
* @module mainapp
*/
// electron dependencies
const { app, ipcMain, dialog } = require("electron");
// a place to keep all open windows
const w... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
const mkdirp_1 = tslib_1.__importDefault(require("mkdirp"));
const globby_1 = tslib_1.__importDefault(require("globby"));
const path_1 = tslib_1.__importDef... |
require("babel-core/register")
require("babel-polyfill")
import '../css/style.css'
import '../css/sakura.min.css'
const axios = require('axios')
const m = require('mithril')
window.m = m
require('./mithril-storage')
const Spinner = require('./spin.min')
const R = require('ramda')
const root = document.getElementB... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _core = require("@deck.gl/core");
var _luma = require("luma.gl");
var _pathLayerVertex = _interopRequireDefault(require("./path-layer-vertex.glsl"));
var _pathLayerVertex2 = _interopRequireDefault(require("... |
const botconfig = require("./botconfig.json"); //contains token and prefix
const hello = require("./hello.js");
const sat = require("./sat.js");
const help = require("./help.js");
const Discord = require("discord.js"); //this is for the whole discord stuff
const Youtube = require("simple-youtube-api"); //this is t... |
import React, { Component } from 'react';
import Validations from '../utils/Validations'
import {sha3_256} from 'js-sha3'
import {generateXML} from '../lib/SignService'
import {saveRecipe} from '../lib/Api'
import config from '../lib/Config'
import {PRESCRIPTION_SUCCESS, CONFIGURATION} from '../utils/Routes'
import Pre... |
//Created by <NAME>
//sources
// https://eloquentjavascript.net/code/chapter/17_canvas.js
// https://developer.mozilla.org/en-US/docs/Web/API/Element/mousemove_event
// Mr. Cozort
//initializing GLOBAL variables to create a canvas
let canvasDiv;
let canvas;
let ctx;
let WIDTH = 500;
let HEIGHT= 500;
//container array ... |
'use strict';
var progress = require('../progress'),
uievents = require('../uievents'),
tooltip = require('../tooltip'),
validator = require('../validator'),
ajax = require('../ajax'),
util = require('../util');
var rapalainsider = {
init: function () {
tooltip.init();
validator... |
import React from 'react'
import ReactDOM from 'react-dom'
import { Link } from 'gatsby'
import { StaticQuery, graphql } from 'gatsby'
import BackgroundImage from 'gatsby-background-image'
import Image from 'gatsby-image'
import { motion, useMotionValue, animate, useAnimation } from 'framer-motion'
import { BsArrowDown... |
const Constants = require('../../Constants/Pokemon');
const {Markdown:md,Format:fmt,random,strcmp,showDifference} = require('../../Utils');
const PokemonMain = require('./PokemonMain');
function resolveTargetUser(args, userID) {
let id = md.userID(args[0]);
if (id) args.splice(0,1);
else id = userID;
return id;
}... |
/* !
* Tencent is pleased to support the open source community by making Tencent Server Web available.
* Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy... |
var camera, camera1, camera2, orthographicCamera, perspectiveCamera, scene, renderer;
var scale = 6;
var near = 1;
var clock;
var far = 1000 * scale;
var spotLight1, spotLight2, spotLight3;
// var smesh1, smesh2, smesh3;
var slMeshes;
var pink = new THREE.Color(0xb57aae);
var blue = new THREE.Color(0x55647e);
var gree... |
import {defs, tiny} from './common.js';
// Pull these names into this module's scope for convenience:
const {Vector3, vec3, vec4, color, Mat4, Light, Shape, Material, Shader, Texture, Scene} = tiny;
const {Triangle, Square, Tetrahedron, Windmill, Cube, Subdivision_Sphere} = defs;
export class Surfaces_Demo extend... |
var spotify = new SpotifyPlayer();
// http://stackoverflow.com/questions/391314/jquery-insertat
$.fn.insertAt = function(index, $parent) {
return this.each(function() {
if (index === 0) {
$parent.prepend(this);
} else {
$parent.children().eq(index - 1).after(this);
}... |
"use strict";
// this script was made out of examples that can be found at https://webgl2fundamentals.org
const vertexShaderSource = `#version 300 es
// the vertex shader RoA uses is much more complicated, but here we
// don't care about lighting so this is just the example shader
// an attribute is an input (in) t... |
import { assign } from 'objecty';
import Events, {
EVT_COMBAT, ENEMY_SLAIN, ALLY_DIED,
DAMAGE_MISS, CHAR_DIED, STATE_BLOCK, CHAR_ACTION, ITEM_ACTION, COMBAT_WON
} from '../events';
import { itemRevive } from '../modules/itemgen';
import { NO_SPELLS } from '../chars/states';
import { TEAM_PLAYER, getDelay, TEAM_NPC... |
var omlib;
var om;
var accountDb = false;
var feedsDb = false;
var recentFeeds = "";
var _notifications = {};
var imgList = [];
var linksList = [];
var unreadCount = 0;
// Chrome Notifications Section
function onMessagePushed(msg) {
omlib.store.getAccounts(function (accountsDb) {
accountsDb.getObjectByKe... |
const {app, Menu, BrowserWindow, ipcMain, systemPreferences} = require('electron');
const windowStateKeeper = require('electron-window-state');
const dnssd = require('dnssd2');
const drivelist = require('drivelist');
const request = require('request');
const os = require('os');
var shell = require('electron').shell;
v... |
function GetPluginSettings()
{
return {
"name": "Tilemap", // as appears in 'insert object' dialog, can be changed as long as "id" stays the same
"id": "Tilemap", // this is used to identify this plugin and is saved to the project; never change it
"version": "1.0", // (float in x.y format) Plugin... |
/**
* ProcessWire Repeater Inputfield Javascript
*
* Maintains a collection of fields that are repeated for any number of times.
*
* ProcessWire 3.x (development), Copyright 2015 by <NAME>
* https://processwire.com
*
*/
function InputfieldRepeaterDeleteClick(e) {
var $parent = $(this).parent('label').parent('... |
"use strict";
import * as THREE from 'three';
import {GreyhoundLoader} from "./loaders/GreyhoundLoader.js";
import {POCLoader} from "./loaders/POCLoader.js";
import {EptLoader} from "./loaders/EptLoader.js";
import {PointCloudOctree} from "./pointcloud/PointCloudOctree.js";
import {PointCloudArena4D} from "./pointclo... |
var _charMap = {
"gt": ">",
"lt": "<",
"Alpha": "Α",
"Beta": "Β",
"Gamma": "Γ",
"Delta": "Δ",
"Epsilon": "Ε",
"Zeta": "Ζ",
"Eta": "Η",
"Theta": "Θ",
"Iota": "Ι",
"Kappa": "Κ",
"Lambda": "Λ",
"Mu": "Μ",
"Nu": "Ν",
"Xi": "Ξ",
"Omicron": "Ο",
"Pi": "Π... |
import { _ as _slicedToArray } from './slicedToArray-4e274c67.js';
import './unsupportedIterableToArray-137e449b.js';
import React, { useCallback, useState, useEffect, useContext, useRef } from 'react';
import './_commonjsHelpers-97e6d7b1.js';
import { P as PropTypes } from './index-097535f1.js';
import { _ as _defineP... |
function getTimeRemaining(endtime) {
var t = Date.parse(endtime) - Date.parse(new Date());
var seconds = Math.floor((t / 1000) % 60);
var minutes = Math.floor((t / 1000 / 60) % 60);
var hours = Math.floor((t / (1000 * 60 * 60)) % 24);
var days = Math.floor(t / (1000 * 60 * 60 * 24));
return {
'total': t... |
import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import _ from 'lodash';
import * as actions from '../../actions';
import AppLanguages from '../constants/app_languages';
// import languages from '../... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, ArgumentsRequired } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.exports = class mxc... |
const chai = require('chai');
const dirtyChai = require('dirty-chai');
const bnChai = require('bn-chai');
require('chai')
.use(require('chai-as-promised'))
.use(bnChai(web3.utils.BN))
.should();
import expectRevert from './helpers/expectRevert';
chai.use(dirtyChai);
const {expect} = chai;
const {assert... |
const { exec } = require('child_process');
const w32disp = require("win32-displayconfig");
process.on('message', (data) => {
if (data.type === "refreshMonitors") {
refreshMonitors(data.fullRefresh, data.ddcciType).then((results) => {
process.send({
type: 'refreshMonitors',
... |
'use babel'
/** @jsx etch.dom */
import { CompositeDisposable } from 'atom'
import { views } from '../ui'
import { client } from '../connection'
import connection from '../connection'
import { blocks, cells, paths } from '../misc'
import modules from './modules'
import workspace from './workspace'
const { debugfile,... |
const MenuUtils = require('../structs/MenuUtils.js')
const FeedSelector = require('../structs/FeedSelector.js')
const Translator = require('../structs/Translator.js')
const Profile = require('../structs/db/Profile.js')
const Feed = require('../structs/db/Feed.js')
const getConfig = require('../config.js').get
const cre... |
/* eslint-disable no-await-in-loop */
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com... |
import React from "react";
import classnames from "classnames";
import "./selecttemplaterecepients.css";
import $ from 'jquery';
import TemplateDataVar from '../../variables/templatedata';
// reactstrap components
import {
Badge,
Card,
CardHeader,
CardFooter,
DropdownMenu,
DropdownItem,
UncontrolledDr... |
import {
$watch,
$watchReadOnly,
$$deepComparator,
cloneDeep,
$$cloneDeep,
cd_new,
$digest,
$$compareDeep,
addEvent,
fire,
keyComparator,
cd_attach,
cd_attach2,
cd_detach,
cd_component,
WatchObject,
} from "./cd";
import {
__app_onerror,
safeCall,
isFunction,
isObject,
safeGrou... |
const container = document.querySelector('body');
const themeSwitcher = document.querySelector('#theme-switcher');
const themeIcon = document.querySelector('#theme-icon');
container.classList = ['theme-light'];
themeSwitcher.checked = false;
themeSwitcher.addEventListener('click', () => {
if (themeSwitcher.checked)... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { initialState } from "./InitialState";
import { roundNumber, getDistance, handleCallback, handleWheelStop } from "./utils";
import {
handleZoomControls,
handleDoubleClick,
resetTransformations,
handlePaddingAnimation,
handle... |
function toDataURL(url, callback) {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
var reader = new FileReader();
reader.onloadend = function() {
callback(url,reader.result);
}
reader.readAsDataURL(xhr.response);
};
xhr.open('GET', 'img/' + url);
xhr.responseType = 'blob';
xhr.send();
}
... |
var user_role_check_val = [];
//用户管理模块: 用户列表
function loadUserList(pageInfo) {
if (pageInfo == undefined) {
var pageInfo = { pageNumber: 1, pageSize: 15 };
}
$("#userList").bootstrapTable('destroy').bootstrapTable({
url: allurl + "/car-management/user/searchUser.action",
dataType: '... |
import { setCurrentEl, getItemKey, togglePlayButtons } from './player.js';
import { observeTotal } from './shared.js';
export function loadCollection(tab) {
colplayer.isOwner = document.getElementById('fan-banner').classList.contains('owner');
colplayer.collectionLength = 0; //window.CollectionData.sequence.length... |
/**
* @ContributorsList
* @Inateno / http://inateno.com / http://dreamirl.com
*
* this is the dictionary file sample that will be loaded by the project in the Localization module
* Please declare in the same way than this example.
*/
const dictionary = {
"en": {
"play": "Play",
"settings": "Settings",
... |
var api_link = "http://192.168.210.115/api_mgr/public/index.php/api/";
var list_result_execute;
initMenu();
function checkLogin() {
var today = new Date();
var date = today.getFullYear() + '/'+ (today.getMonth()+1) + '/' + today.getDate();
var time = today.getHours()+':'+today.getMinutes()+':'+today.getSe... |
import { getLengthWidthSlip } from "./Earthquake";
import Earthquake from "./renderers/Earthquake/Earthquake";
import SphericalShallowWater from "./renderers/SphericalShallowWater/SphericalShallowWater";
import Display from "./renderers/Display/Display";
import MaxHeights from "./renderers/MaxHeights/MaxHeights";
let ... |
const electron = require('electron');
const path = require('path');
const url = require('url');
const { dialog, app, ipcMain, BrowserWindow } = electron
const os = require('os');
const isDev = require('electron-is-dev');
const Store = require('electron-store');
const { autoUpdater } = require('electron-updater');
cons... |
'use strict';
const _ = require('lodash');
const Promise = require('bluebird');
const uuidv4 = require('uuid/v4');
const codes = require('../helpers/codes');
const config = require('../../config/default');
const networkWriters = require('./network');
async function createCluster(networkID, clusterParams) {
const e... |
/* jshint esversion: 6 */
// Centralized location for game logic.
// Computes movement collisions at the given player location.
// TODO: the idea is good enough, but the implementation is extra hacky
const getCollisions = (map, layer, row, col) => {
let left = 0, right = 0, up = 0, down = 0, floor = 0;
if (row > ... |
import "./App.css";
import React, { Component } from "react";
import AuctionManagerContract from "./contracts/AuctionManager.json";
import AuctionContract from "./contracts/Auction.json";
import getWeb3 from "./getWeb3";
import moment from 'moment';
import momentDurationFormatSetup from 'moment-duration-format';
// s... |
/***********************
**该库始建于 2017-8-23 **
**作者 申超明(Charles) **
************************/
var x3d = {
Settings: {
scene: null,
camera: null,
renderer: null
},
// 屏幕旋转角度
scenebelta: 0,
// 当前选中的对象
selectedObject: null,
// 绑定事件的对象
CLICK_EVENT_OBJECT: [],
// 事... |
import Const from '../../stuff/constants.js'
import Utils from '../../stuff/utils.js'
import math from '../../stuff/math.js'
import layout_fn from './layout_fn.js'
import log_scale from './log_scale.js'
const { TIMESCALES, $SCALES, WEEK } = Const
const MAX_INT = Number.MAX_SAFE_INTEGER
// master_grid - ref to the m... |
const u = require("../utils/utils"),
Augur = require("augurbot"),
profanityFilter = require("profanity-matcher"),
request = require("request-promise-native"),
ytpl = require("ytpl"),
ytdl = require("ytdl-core-discord"),
{USet, Link} = require("../utils/tools");
const roomNames = new USet();
const communit... |
/*!
* contentstack-express
* Copyright (c) Contentstack
* MIT Licensed
*/
'use strict';
/**
* Module Dependencies.
*/
var datastore = require('nedb');
var path = require('path');
var fs = require('graceful-fs');
var _ = require('lodash');
var async = require('async');
var debug = require('debug')('db:nedb');
va... |
const authToken = window.a
const api = window.u+'api'
const m_allowed_tables = ['person','measurement','condition_occurrence','observation','drug_exposure']
// function to fetch from api with authorization token
const useGet = async (url) =>{
const response = await fetch(`${api}${url}`,
{
method: "GET... |
var jsonDBs = [
{"url": "https://jsonbox.io/GLoBaLCHaNGePoSTeReXPLoReR/" }, // https://github.com/vasanthv/jsonbox#readme
{"url": "https://jsonbase.com/GLoBaLCHaNGePoSTeReXPLoReR/" }
// https://jsonstorage.net/
];
function getJsonDb() {
return jsonDBs[0].url;
}
var corsProxies = [
{"url": "https://cors-anyw... |
var bonusBoxGreen, bonusBoxBlue, bonusStats, scoreBoard, airCraft, shield, aliens,
laser, explosion, speed1, speed2, timedEvents, background0, background1,
reset, innerW, innerH, soundLaser, soundExplosion, backgroudMusic;
/****************
GAME START CALLOUT: Calls for the canvas and canvas elements functions
... |
/*jshint evil: true, strict: false */
/*global requirejs, define */
// Using sloppy since this uses eval for some code like plugins,
// which may not be strict mode compliant. So if use strict is used
// below they will have strict rules applied and may cause an error.
var fs = require('fs'),
lang = require('../la... |
/*
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... |
import { Map, List } from 'immutable'
import typeToReducer from 'type-to-reducer'
import dateUtil from 'redux/utils/date'
import _ from 'lodash'
import { getAssigneeOfTask } from 'redux/utils/component-helper'
import { AUTH } from 'redux/store/auth/auth.actions'
import { TASKS } from 'redux/store/tasks/tasks.actions'
... |
//paths for assets (images and sound)
var imagesPath = './assets/images/'; var soundPath = './assets/sound/';
//variables that will hold player1 and status1 for the player of the game
var player1; var status1;
//variable that holds the gameMap of the current lvl
var gameMap;
//variables that hold the songs and sfx soun... |
import $ from 'jquery';
import { validationRules } from './config';
import { setLabelError } from './custom-inputs';
import { hideListingActionBar, initSingleSimpleBar } from './service';
import { setGalleryReady } from './layouts/listing';
window.jQuery = $;
require("@fancyapps/fancybox");
class EVNavigator {
co... |
$(document).ready(function () {
$(function () {
$('[data-toggle="popover"]').popover()
});
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
$('.category-list span').on('click', function () {
$(this.parentNode).find('ul').first().toggle("slow");
});
$('.ca... |
const SplitStrategy = {
NEVER: 0,
HALVE: 1,
DOT_FIRST: 2,
DOT_SECOND: 3,
TRIPLET: 4,
DOT_NORMAL_DOT: 5,
NORMAL_DOT_DOT: 6,
DOT_DOT_NORMAL: 7,
toString(s) {
switch (s) {
case SplitStrategy.DOT_DOT_NORMAL:
return "Dot dot normal";
case S... |
import CIcon from "@coreui/icons-react";
import {
CButton,
CCard,
CCardBody,
CCardFooter,
CCardHeader,
CCol,
CBadge,
CDataTable,
CModal,
CModalHeader,
CModalBody,
CModalFooter,
CRow,
CForm,
} from "@coreui/react";
import { useForm } from "react-hook-form";
import axios from "axios";
import R... |
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnProp... |
// Assets & Loaders --------------------------------------------------------
var loadingManager = new THREE.LoadingManager();
loadingManager.onLoad = function () {
document.getElementById( 'loading' ).style.display = 'none'; // hide loading animation when finished
console.log( 'Done.' );
main();
};
loadingMana... |
/**
*
*/
// document가 load된 후 실행하기 위한 이벤트리스너
document.addEventListener("DOMContentLoaded", function() {
// Modal script from w3school example
// Get the modal
var modalOne = document.getElementById("modalAgreeOne");
var modalTwo = document.getElementById("modalAgreeTwo");
var modalThree = document.getElem... |
/*
Tea Time!
Copyright (c) 2015 - 2021 <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, co... |
//SETTINGS ===========================================
const STOCK_API_KEY = "[PUT_KEY_HERE]";
const NEWS_API_KEY = "[PUT_KEY_HERE]";
const WEATHER_API_KEY = "[PUT_KEY_HERE]";
const ZIP_CODE = "12345";
//User's birthday month and day
const BIRTHDAY_MONTH = 3;
const BIRTHDAY_DAY = 6;
//The thresholds determine at wha... |
function CGame(oData, iLevel) {
var _bStartGame;
var _bScenarioLoaded;
var _szRedeemLink;
var _iGameState;
var _iTimeOutID;
var _iShuffleTickTime;
var _iBallsExtractCounter;
var _iCurBallExtractedIndex;
var _aProbabilityArray=[];
var _aBalls;
var _aBallsToShuffle;
var ... |
//获取终端屏幕大小
var mobile = 0;
var getDevice = (function () {
var ua = navigator.userAgent;
if (ua.indexOf('iPhone') > 0 || ua.indexOf('iPod') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0) {
mobile = 1;
} else if (ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0) {
mobile = 2;... |
const max = Math.max;
const abs = Math.abs;
const rHorizontal = /left|center|right/;
const rVertical = /top|center|bottom/;
const rOffset = /[\+\-]\d+(\.[\d]+)?%?/;
const rPosition = /^\w+/;
const rPercent = /%$/;
function getDimensions(elem) {
if (elem.nodeType === 9) {
// document
const {width, h... |
import { InspectTool, InspectToolView } from "./inspect_tool";
import { CustomJSHover } from "./customjs_hover";
import { Tooltip } from "../../annotations/tooltip";
import { GlyphRenderer } from "../../renderers/glyph_renderer";
import { GraphRenderer } from "../../renderers/graph_renderer";
import { DataRenderer } fr... |
var param = window.location.search;
var LoanType = "", loanName = "", nodeType="";
if(param){
var base64 = new Base64();
LoanType = getQueryString('type');
nodeType = getQueryString('nodeType');
loanName = base64.decode(getQueryString('loanName'));
}
$(function(){
searchType();//通过条件查询项目列表信息
});
//通过点击查... |
/**
* `file-uploader`
*
* Accepts files from user and handles uploading/saving/optimization/deleting/previewing/rearranging
*
*
* properites:
*
*
* accept - <String> optional: file type to allow from user.
* ie. 'audio', 'video', 'audio,.jpg', '.doc', ...
* default -> 'image'
... |
function traerDato(objs,id,tabla,columnas,especial,labels) {
route = "/ajax/traer/"+id+"/"+tabla;
labels = JSON.parse(labels);
limpiarModal(tabla);
$.get(route, function(data){
for (let columna of columnas) {
for (var i = 0; i < objs.length; i++) {
atributo = $(objs[i... |
import React from 'react';
import {
View,
StyleSheet,
Navigator,
TouchableOpacity,
TouchableHighlight,
TouchableNativeFeedback,
Text,
AppState,
ActivityIndicator,
Animated,
StatusBar,
Dimensions,
ScrollView,
InteractionManager,
BackAndroid,
Image
} from 'react-native';
import Communications f... |
import { mode } from '../loginin/firebase';
import { game, gameOptions } from '../invader';
import jsLoader, { jsData } from './jsLoader';
import htmlLoader, { htmlData } from './htmlLoader';
import cssLoader, { cssData } from './cssLoader';
let question = null;
let isDeadPlayer = null;
let mcqAnswerState = {};
let fi... |
/**
* Game main class
*/
class Game {
constructor () {
if (!this.divName) {
this.divName = 'inner'
}
this.settings = {
debug: true,
version: '1.0.0',
squares: [], // the data
cells: [], // the graphical elements
difficulty: 10,
numberOfLines: 8,
numberOfC... |
/**
* Created by jeanc_000 on 11/04/2017.
*/
// Variables globales
var map;
var markerDepart = null;
var markers = [];
var markersBoutiques = [];
var markersConsignes = [];
var largeInfoWindow;
var infoWindow;
var depart;
var etapes = [];
var destination;
var directionsDisplay;
function initMap() {
// Services G... |
'use strict';
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config();
}
const http = require('http'),
{ Client } = require('pg'),
{ fork } = require('child_process'),
{ parse } = require('cookie'),
{ JSDOM } = require('jsdom'),
colors = require('colors/safe');
let server;
de... |
import React from 'react';
import {
Platform,
StyleSheet,
Text,
View,
PanResponder,
Animated,
TextInput,
PixelRatio
} from 'react-native';
import SpaceStyles from "./SpaceStyle";
export default class Space extends React.Component {
constructor(props) {
super(props);
this.state = {
x... |
const Publication=require("./Publication");
const Reference=require("./Reference");
const REGEX=require("./RegEx");
class ReferenceUtil {
constructor() {
return this;
}
/*
* parseReferences: Receives text and parses it into an array of Reference objects.
* It outputs an array even ... |
var vsize = { x:100, y:100, z:0 };
var mouse = { x:0, y:0 };
var lightPos, camPos;
var inRender = true, inResize = false, isNeedPause = false;
var FAR = 2000;
var ToRad = Math.PI / 180;
var ToDeg = 180 / Math.PI;
var camera, container, scene, renderer, composer, renderPass, delta, center, centerLight;
... |
//Date.library.js
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
//15.9.1.2 Day Number and Time within Day
function Day(t) {
return Math.floor(t/msPerDay);
}
function TimeWithinDay(t) {
return t%msPerDay;
}
//15.9.1.3 Year Numbe... |
/* globals describe it before after */
const { promisify } = require('util');
const { expect } = require('chai');
const uuid = require('uuid/v4');
const config = require('../config');
const { setupWebsocketAndRoom, getServerState, createRandomRoomObject } = require('./util');
const RedisClient = require('../redisCli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.