text
stringlengths
8.5k
48.7k
// =============================== PRELOAD IMAGES ========================= var pagerLoadingTotal = 0 function getQuery(uri, q) { return (uri.match(new RegExp('[?&]' + q + '=([^&]+)')) || [, null])[1]; } function showError(error) { alert(error) } function showMessage(message) { alert(message) } functio...
import Taucharts from 'taucharts'; import * as d3 from 'd3-format'; const utils = Taucharts.api.utils; const pluginsSDK = Taucharts.api.pluginsSDK; const RESET_SELECTOR = '.tau-chart__legend__reset'; const COLOR_ITEM_SELECTOR = '.tau-chart__legend__item-color'; const COLOR_TOGGLE_SELECTOR = '.tau-chart__legend__guide-...
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { ext...
var Vector3 = require('../../math/Vector3'); var BoundingVolume = require('../../renderer/bounds/BoundingVolume'); var BoundingSphere = require('../../renderer/bounds/BoundingSphere'); var MathUtils = require('../../math/MathUtils'); /** * <code>BoundingBox</code> defines an axis-aligned cube that defines a container...
import $ from './domq.js'; import DEFAULTS from './defaults'; import { $W, $D, CLICK_EVENT, RESIZE_EVENT, KEYDOWN_EVENT, WHEEL_EVENT, NS, CLASS_NS, EVENT_NS, PUBLIC_VARS } from './constants'; import { throttle, preloadImg, requestFullscreen, getImageNameFromUrl, hasScrollbar, getScrollb...
// The MIT License (MIT) // // Copyright (c) 2016-2021 Camptocamp SA // // 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 // u...
/** * Too-Much-Time - Background Script Page * * The 'background script' part of this extension will listen for * messages from the content script (for creating alarms), listen * for those alarms, and update the extension's icon (badge text) * when needed. It also handles chrome.storage / data management. * * D...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
/**************************************************************************** ** @license ** This demo file is part of yFiles for HTML 2.4.0.2. ** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28, ** 72070 Tuebingen, Germany. All rights reserved. ** ** yFiles demo files exhibit yFiles for HTML functio...
const mode = 'dev'; let currentStep = -1; let baseZoom = null; let currentZoom = 1; let loadedFile = null; let sourceMat = null; let sourceImage = null; let lineInfo = null; let cellInfo = null; let assignments = null; let gridCanvasScale = null; let gridCanvasCtx = null; let assignmentCanvasCtx = null; let imagesRef =...
$(document).ready(function () { // Return the text nodes of the context. Code by <NAME> from // https://stackoverflow.com/questions/4106809/how-can-i-change-an-elements-text-without-changing-its-child-elements/4106957 jQuery.fn.textNodes = function () { return this.contents().filter(function () { ...
/** * Copyright 2016 Google Inc. 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
/* global M, themeCustomization */ require('dotenv').config() // Modules const { shell, remote } = require('electron') const axios = require('axios') const store = require('./store') const saveFile = remote.require('electron-save-file') // HTML elements const windowElement = window.window const documentElement = doc...
'use strict'; var _values = require('babel-runtime/core-js/object/values'); var _values2 = _interopRequireDefault(_values); var _promise = require('babel-runtime/core-js/promise'); var _promise2 = _interopRequireDefault(_promise); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _inter...
// // app.js // const X_AXIS = [1,0,0]; const Y_AXIS = [0,1,0]; const Z_AXIS = [0,0,1]; const CUBE_WIDTH = 0.205; //actually cube width plus spacing 0.2 width with 0.005 spacing btwn const SCRAMBLE_SPEED = 10; const whiMatrix = [25, 26, 27, 22, 23, 24, 19, 20, 21]; const yelMatrix = [3, 12, 21, 6, 15, 24, 9, 18, 27];...
let Logger = require("Logger"); let CryptoJS = require("CryptoJS"); let Utils = cc.Class({ statics: { loginServerTime: 0, loginTime: 0, serverZeroTime : 0, SAVE_SOCK_SETTING_DATA: "PLANE_SAVE_SOCK_SETTING_DATA", // 震动设置 _localCryptIvPart: "fGb7e", _localCryptKPa...
/** * Gets the document element corresponding to the "commit" button. This will be variable depending * on whether the editor is being used to update an existing or add a new config file. */ var get_commit_btn = function() { if (document.getElementById("update-btn")) { return document.getElementById("update-bt...
/* * Copyright 2019 Fujitsu Laboratories Ltd. * SPDX-License-Identifier: Apache-2.0 * * EventMediator.js */ /* Summary: * Allocate subsequent processing for chaincodes added to CC by user and events from EC */ var fabricv10Post = require("../common/fabric_v1.0/sdk_if.js"); var expPost = require("../common/exp/...
const DEBUG_MODE = false; // 是否顯示console.log, 值: true or false // 例: // DEBUG_MODE && console.log("errer"); const wsUri_chat = "wss://cht.ws.kingkong.com.tw/chat_nsp/?EIO=3&transport=websocket"; //chat server const wsUri_gift_2 = "wss://ctl-2.ws.kingkong.com.tw/control_nsp/?EIO=3&transport=websocket"; //gift server c...
/* ____ _ _ __ _ | _ \ | | | |/ _| (_) | |_) |_ _ | | __ _| | |_ _ __ __ _ _____ | _ <| | | | _ | |/ _` | | _| '__/ _` |_ / | | |_) | |_| | | |__| | (_| | | | | | | (_| |/ /| | |____/ \__, | \____/ \__,_|_|_| |_| \__,_/___|_...
/* FreeTikz, written by <NAME> <<EMAIL>>, 2018 */ /* PARAMETERS */ var strokeWidth = 2 // how wide strokes in html svg element are var smoothingFactor = 6 // how much strokes in html svg element are dynamically smoothed out while drawing var segmentationThreshold = 70.0 // how close two segments have to be to be cons...
/* JS by xc 场景的独立动画 圆柱的形成 手指的拖拽 */ setPersc(); loadingAn(); /* 默认 */ document.addEventListener( 'touchstart', function(e) { e.preventDefault(); }, { passive: false } ); //设置景深 function setPersc(){ perscFn(); window.onresize = perscFn; function perscFn(){ var viewBox = document.querySelector('#view...
import express from 'express' import bodyParser from 'body-parser' import yaml from 'js-yaml' import fs from 'fs' import crypto from 'crypto' import { cloneDeep, remove } from 'lodash' import frontendSpec from './data/frontendSpec.json' import projects from './data/projects.json' import projectsSummary from './data/su...
'use strict'; const gyp = require('../../../gyp'); const common = gyp.common; const Writer = require('./writer'); const execSync = gyp.bindings.execSync; const path = gyp.bindings.path; const process = gyp.bindings.process; const generatorDefaultVariables = { 'EXECUTABLE_PREFIX': '', 'EXECUTABLE_SUFFIX': '', '...
/* jshint node: true */ 'use strict'; var util = require('util'), EventEmitter = require('events').EventEmitter, _ = require('busyman'), Q = require('q'), blePacket = require('ble-packet'), debug = require('debug')('cc-bnp:hci'); var BHCI = require('../defs/blehcidefs'), rawUnit = require('./b...
/** * Combat module, takes care of health and initiative tracking */ /**We need fs access */ const fs = require('fs'); //Load the monster loading module const { loadMonster, getMonsterList, printInfo, prettyDesc } = require('./monster'); //Synchronous readline stuff const readline = require('readline-sync'); //The n...
/** * author: xiaoniu * date: 2019-03-18 * desc: 显示关系图的类,依赖于d3.js * 需要额外的css #tooltip 其position必须为absolute let categories = [ {name: '长江学者(青年学者)', color: '#EE6A50'}, {name: '长江学者(特聘教师)', color: '#4F94CD'}, {name: '杰出青年', color: '#DAA520'}, ]; let nodes = [ {category: 0, name: '桂林'}, {category: 1, name: '广...
"use strict"; const express = require("express"); const fs = require("fs"); const path = require("path"); const fileSystem_1 = require("./fileSystem"); const request_1 = require("./request"); /** @internal */ function httpGeneric(method) { return function (target, propertyKey, descriptor) { const f = (target[proper...
'use strict'; /*GET EVENT CLICK OR TAP FOR IPHONES*/ var click = navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/) ? 'touchstart' : 'click'; window.addEventListener('load',function(){ f.load(); }); var f = {}; /*FUNCTION INITIALIZE*/ f.load=function(callback){ f.include(); var close = document.que...
$.validator.setDefaults({ errorElementClass: "hidden" }) var grid = {}; var parentIndex = null; function operate(cellValue,options,rowObject){ var template = " <a onclick=\"openEditPage("+rowObject.shopId+")\" title='编辑'><i class=\"fa fa-edit\"></i>&nbsp;编辑</a>&nbsp;&nbsp;"; template += "<a onclick=\"openCh...
/*- * ‌ * Hedera Mirror Node * ​ * Copyright (C) 2019 - 2021 Hedera Hashgraph, LLC * ​ * 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-...
// eslint-disable-next-line node/no-unpublished-import import { mergeDeep } from './components/jgraduate/Util.js'; /** * Escapes special characters in a regular expression. * @function regexEscape * @param {string} str * @returns {string} */ export const regexEscape = function (str) { // Originally from: http://phpj...
'use strict' // npm install <pkg> <pkg> <pkg> // // See doc/install.md for more description // Managing contexts... // there's a lot of state associated with an "install" operation, including // packages that are already installed, parent packages, current shrinkwrap, and // so on. We maintain this state in a "context...
/****************************************************************************** Copyright (c) 2012, Google 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 cod...
// Particle Icons - UI Assets using v4.0.4 // actions import { Add } from './actions/Add' import { AddToDash } from './actions/AddToDash' import { Adjust } from './actions/Adjust' import { Align } from './actions/Align' import { Analyze } from './actions/Analyze' import { Archive } from './actions/Archive' import { As...
var pageID = 0; var areaID = 0; var loaded = false; var templatesInitialized = false; /* Indicates whether to wait for module settings to be retrieved before to process saving of the paragraph */ var __wait_module_settings = false; window.onresize = resize; var btnNavigation = false; window.onbeforeunload = funct...
$(window).on('load', function () { // Fix the required inputs: // https://github.com/google/material-design-lite/issues/1502#issuecomment-211702642 $('[data-required=true]').each(function() { $(this).attr('required', true); }); // Configure Image input elements setImageType() // Dynamically change ...
var tree_hog = function () { "use strict"; var label_height = 30; var curr_taxa = ''; var board; var is_node_frozen = false; // var collapsed_nodes = []; var theme = function (ta, div) { ///////////// // TREE ///// ///////////// // Nodes shapes / colors var collap...
/* * Copyright 2003-2006, 2009, 2017, United States Government, as represented by the Administrator of the * National Aeronautics and Space Administration. All rights reserved. * * The NASAWorldWind/WebWorldWind platform is licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file...
const citydiv = document.querySelector('.city-name'); const city = citydiv.innerText; console.log(city); let url = `https://api.openweathermap.org/data/2.5/forecast?q=${city}&units=metric&appid=d10be5670d0e6307831a8eccb6cee0ef`; let limit = 10; let isFirstBlockDay; // is the first block representing day? const medi...
/** Copyright (c) 2016-2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
import {t} from '@lingui/macro' import {Trans, Plural} from '@lingui/react' import React, {Fragment} from 'react' import {Icon, Message, Table, Accordion, Button} from 'semantic-ui-react' import {ActionLink, StatusLink} from 'components/ui/DbLink' import ACTIONS from 'data/ACTIONS' import STATUSES from 'data/STATUSES'...
var models = require('../../models/models.js'); var fs = require('fs'); var uuid = require('uuid'); var _ = require('lodash'); var config = require('../../config'); var Sequelize = require('sequelize'); const Op = Sequelize.Op; var debug = require('debug')('idm:web-application_controller'); var gravatar = require('g...
let _analogActivesDAq = [true, false, false, false, false, false]; let _analogLabels = [{ daqName: "DAq0", channelName: ["Canal 0", "Canal 1", "Canal 2", "Canal 3"], activesChannels: [true, false, false, false], }]; let analogStarted = false; function analogVibration() { _sampleRate = 5000; $('bo...
import { collectSymbols, formatAmount, formatCount, formatDuration, getDelta, getOptionParameters, groupLots, normalizeDate, getUTC } from './utils.js'; import {Polynomial, testPolynomial} from './polynomial.js'; import {ServerError, StockSymbol} from './ui.js'; import {api_url_prefix} from './api-url.js'; const e...
/* eslint-disable consistent-return, func-names, global-require, import/no-extraneous-dependencies, max-len, no-bitwise, no-cond-assign, no-console, no-multi-assign, no-nested-ternary, no-param-reassign, no-restricted-syntax, no-return-assign, no-shadow, no-un...
const http = require('http') const express = require('express'); const app = express(); var server = require('http').createServer(app); const request = require("request") app.get("/", (request, response) => { response.sendStatus(200); }); const listener = server.listen(process.env.PORT, function() { console.log('Y...
const {randomBytes} = require('crypto'); const {acceptsChannelOpen} = require('ln-sync'); const {addPeer} = require('ln-service'); const {address} = require('bitcoinjs-lib'); const {askForFeeRate} = require('ln-sync'); const asyncAuto = require('async/auto'); const asyncEach = require('async/each'); const asyncEachSer...
/** * Copyright 2018 The Pennsylvania State University * @license Apache-2.0, see License.md for full text. */ import { html, PolymerElement } from "@polymer/polymer/polymer-element.js"; import "@lrnwebcomponents/simple-tooltip/simple-tooltip.js"; import "@polymer/paper-input/paper-input.js"; import "@polymer/iron-a...
import React from 'react'; import { Layout, message, Table, Avatar } from 'antd'; import { FileUnknownTwoTone, TeamOutlined } from '@ant-design/icons'; import orderBy from 'lodash.orderby' import { AreaChart, Area, Tooltip, XAxis, YAxis, CartesianGrid, Label, ResponsiveContainer } from "recharts"; import { Ellipsis...
import React, { useState, useEffect } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { actionTypes } from '../../actions'; import { Redirect } from 'react-router-dom'; import emailjs from 'emailjs-com'; import axios from 'axios'; import moment from 'moment'; import 'moment/locale/ru'; im...
/** * Created by strawmanbobi on 2014-11-10. */ // logic var PLAY_TIME = 0; var MAX_OPPO_GET = 2; var MAX_OPPO_COUNT = 20; var OPPO_GEN_DELTA_TIME = 0.9; var MS_GEN_DELTA_TIME = 2.2; var GENDER_BOY = 0; var GENDER_GIRL = 1; var CONDITION_WIN = 1; var CONDITION_LOSE = -1; // visualization related var ROW = 12; var B...
/** * This work is based on original code developed and copyrighted by TNO 2020. * Subsequent contributions are licensed to you by the developers of such code and are * made available to the Project under one or several contributor license agreements. * * This work is licensed to you under the Apache License, ...
/** * Copyright (C) 2021 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY...
var NUM_PARTICLES =250000; var DIM = 1024.0; // sphere initializations var spheres = []; var vertexPositionData = []; var normalData = []; var textureCoordData = []; var indexData = []; var latitudeBands = 30; var longitudeBands = 30; var radius = 0.09; var sphereVBO; var normalVBO; var seed = 0.0; var usingOBJ = true...
import moment from 'moment'; import { REG_FOR_LINK } from '@shared/CommonConfig'; import { CUSTOME_TYPE_MAP, CUSTOME_SYSTEM } from '@shared/ReceiptConfig'; /** * 获取cookie * @param {String} str * @return {undefined/String/Number} 对应的cookie值 */ function getCookie() { const cookieObject = {}; const cookie = document....
/* Author: <NAME> * Date: 24 Feb, 2016 * Notes: * */ var screenname = 'PM'; function GetCategories(){ $.ajax({ type: "POST", url: mainurl + "PM_Common/GetCategories", success: function(res) { $.each(res, function(key, data){ $("[id=cat...
// --------------------------------------------------------------------------- // TestCafeRenderer -- a class to render recorded tests to a TestCafeJS // test format. // --------------------------------------------------------------------------- if (typeof (EventTypes) == "undefined") { EventTypes = {}; } EventType...
//--------------------------------------------------------------------- // Generic join in Typescript over triples (EAVs) //--------------------------------------------------------------------- "use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p]...
function Montage() { this.subfolders = []; this.getDataForStart = () => { $('#worktapeload').removeClass('d-none').addClass('d-flex'); app.ajax(`/api/token${app.token}/montage/getDataForStart`, json => { $('#worktapeload').removeClass('d-flex').addClass('d-none'); i...
window['SERVER_API'] = 'https://theconversation.social/social_curation/' const MAX_COLLECTION_URL_WAIT_BEFORE_BACKUP_USE = 3000; var SHOW_RELATED_CONVERSATION_MAIN_TWEET = true; var MAIN_TWEET_ID = null; var animation_lock = false; chrome.tabs.getCurrent(tabInfo => { const location = new URL(tabInfo.url) if (l...
function GetPluginSettings() { return { "name": "Item table", "id": "Rex_parse_ItemTable", "version": "0.1", "description": "Items table indexed by (itemID, key), supports writing an item or reading items back.", "author": "Rex.Rainbow", "help url": "http://c2rexplugins.weebly.com/rex_parse...
/* global user_registration_params */ /* global ur_google_recaptcha_code */ /* global grecaptcha */ (function ($) { var user_registration = { $user_registration: $('.ur-frontend-form form.register'), init: function () { this.load_validation(); this.init_inputMask(); this.init_tiptip(); // Inline va...
document.addEventListener("DOMContentLoaded", event => { // ======================================================================== AUTH CONTROL ============================== firebase.auth().onAuthStateChanged(firebaseUser => { const app = firebase.app(); const db = firebase.firestor...
/********************************************** * CROSS PLATFORM STATIC WEB SERVER * * * * Pure Javascript for client side scripting, * * no jQuery or other UI template needed. * * * * Design by ZulNs ...
var rdMetadataPopupParams; var rdMetadataPopupEditRowId; var rdMetadataWaitCnf = ['', 'rdThemeWaitPanel', 'rdThemeWaitCaption']; function getRdDataCacheKey() { var hdn = document.getElementById('rdMetadataCache'); if (hdn && hdn.value) return hdn.value; return ""; } function rdMetadataCompact()...
$(document).ready(function() { var cc = 0; $('#billsort').click(function () { cc++; if (cc == 2) { $(this).change(); cc = 0; } }).change (function () { sorting...
/*! cornerstone-wado-image-loader - v0.5.2 - 2015-04-04 | (c) 2014 <NAME> | https://github.com/chafey/cornerstoneWADOImageLoader */ // // This is a cornerstone image loader for WADO requests. It currently does not support compressed // transfer syntaxes or big endian transfer syntaxes. It will support implicit little...
export const Countries = [ { location: 'Afghanistan', continent: 'Asia', id: 65544 }, { location: 'Albania', continent: 'Europe', id: 56201 }, { location: 'Algeria', continent: 'Africa', id: 67675 }, { location: 'American Samoa', continent: 'Oceania', id: 28003 }, { location: 'Andorra', continent: 'Europe', i...
// ----------------------------------------------------------------------------- // ----- ESLint Rules (TypeScript) --------------------------------------------- // ----------------------------------------------------------------------------- import {findTsConfig} from 'lib/utils'; const config = { parser: '@types...
import {xu, fg} from "xu"; import {XLog} from "xlog"; import {fileUtil, runUtil} from "xutil"; import {path} from "std"; import {validateClass, validateObject} from "validator"; import {RunState} from "./RunState.js"; import {FileSet} from "./FileSet.js"; import {DexFile} from "./DexFile.js"; import {run as runDOS} fro...
/*global bgp gui Html Locale Dialog*/ export default ringLoot; const MAX_LEVEL = 1999; function ringLoot(kind) { let tokenId, locations; let requires = ['materials', 'usables', 'tokens', 'xp']; const christmasMines = { 1987: 5605, 2284: 6844, 2640: 7833, 2965: 8996 };...
var fs = require('fs'); var path = require('path'); var PDFDocument = require('pdfkit'); var fontkit = require('fontkit'); var async = require('async'); var blobStream = require('blob-stream'); // load the default header & footer decorations var defaultheader = require('./decorations/defaultheader.js'); var defaultfoo...
// https://github.com/g200kg/webaudio-controls/blob/master/webaudio-controls.js import '../utils/webaudio-controls.js'; // This works when youuse a bundler such as rollup // If you do no wan to use a bundler, then look at other examples // that build in pure JS the syles and html template directly // in the code... l...
#!/usr/bin/env node global.__version='1.2.0'; function __swcpack_require__(mod) { function interop(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for(var key in obj){ if (Object.pro...
/** 一些基本方法 */ /** 加了盐的ajax方法(暂未扩展) */ $ajax = function (ajaxObj) { if(ajaxObj){ ajaxObj.xhrFields={withCredentials: true}; ajaxObj.successbak=ajaxObj.success; /* ajaxObj.success=function(res){ if(!window.$SHOW_LOGINDIALOG_NOT) { if (res.resultCode =...
// Global deps // - p5 // - stats.js // - dat.gui // - lodash (times, forEachRight) import { CanvasResizer } from '../lib/canvas-resizer.js'; import { Clock } from '../lib/clock.js'; import { ProgressBar } from './progress-bar.js'; import { Particle } from './particle.js'; /** * Constants */ const ENABLE_STATS = tr...
// show list of orders when 'order' clicked $(document).on('click', '#order', function(){ // bind order events // pagination controls click event $(document).off('click', '.pagination li'); $(document).on('click', '.pagination li', function(){ // get json url var json_url=$(this).find(...
'use strict' // Thes tests below execute a script from "fixtures/" something like: // // ELASTIC_APM_OPENTELEMETRY_BRIDGE_ENABLED=true \ // node -r ../../start.js fixtures/start-span.js // // and assert that (a) it exits successfully (passing internal `assert(...)`s), // and (b) the mock APM server got the e...
require("copy-paste"); const cp = require("child_process"); const fs = require("fs"); const request = require("request"); const moment = require("moment"); const FeedParser = require("feedparser"); const {Remarkable} = require("remarkable"); const markdown = new Remarkable({ html: true }); const yfm = require("yaml-f...
/** * 页面加载完毕之后就执行的方法 */ $(function(){ $(".tagtips").poptip();//"不可退款" mouseOver事件 }); /** * 退款弹框的关闭事件 */ function closePopDiv(){ $("#refundSubmitButton").show();//显示“确定”按钮 $("#refundApplyDiv").hide();//隐藏div弹框 clearSubDom();//清空退款弹框的各个被填充元素的子元素 $('.bg-tan').hide();//移除遮罩层 $("#refundApply").show();//"退款申请"按钮...
function inicializarModalCrearEmpleado(){ $('.lista_grupo_familiar').empty(); } function mostrarCampoLibreta(value){ if(value == "Si"){ $(".clase_libreta").removeAttr("hidden"); }else{ $(".clase_libreta").attr("hidden",true); } } function mostrarCampoTipoLicencia(value){ if(value...
var io; var gameSocket; var crypto = require('crypto'); var gameCount=0; var games={}; //INIT GAME---------------------------------------- exports.initGame = function(sio, socket){ console.log('init game!!!!'); io = sio; gameSocket = socket; gameSocket.emit('connected', { message: "You are connected!" ...
import React from 'react'; import '@folio/stripes-erm-components/test/jest/__mock__'; import { renderWithIntl } from '@folio/stripes-erm-components/test/jest/helpers'; import { KeyValue, MultiColumnList, MultiColumnListCell } from '@folio/stripes-testing'; import translationsProperties from '../../../../test/helpers'; ...
/** * Module dependencies. */ var express = require('express'), routes = require('./routes'), user = require('./routes/user'), http = require('http'), path = require('path'), fs = require('fs'), cfenv = require('cfenv'); var app = express(); var db; var cloudant; var fileToUpload; var db...
function get_style(mobile) { var unit = $(window).width()/10; var numButton = 4; if($(window).width() >= $(window).height()) //landscape unit *= aspect_ratio; if(mobile) { //style = '*.controlbutton{width:'+unit+'px !important;height:'+unit+'px;float:right;background-size:800px !important;}'; style = '*.co...
'use strict' const myEmitter = require('./pubsub.js'); const app = require('electron').remote.app const querystring = require('querystring'); const nav = require('./nav.js'); const settings = require('./settingsholder.js') const https = require('http'); const requestloop = require('./requestloop.js') const nxt = requir...
// ==UserScript== // @name AMQ Solo Chat Block // @namespace SkayeScripts // @version 1.3.5 // @description Puts a nice image over the chat in solo and Ranked rooms, customizable. Improves overall performance in Ranked. // @author <NAME> || FokjeM // @match https://animemusicquiz.com/* // ...
////////////////////////////////////////////////// ////////////////////////////////////////////////// ////////////////////////////////////////////////// ////////////////////////////////////////////////// // DATA CONTROLLER >>> ////////////////////////////////////////////////// ////////////////////////////////////////...
/* jshint node: true */ var fs = require('fs'); var util = require('util'); var pickFiles = require('broccoli-static-compiler'); var transpileES6 = require('broccoli-es6-module-transpiler'); var mergeTrees = require('broccoli-merge-trees'); var defeatureify = require('broccoli-defeatureify'); var concat = require('br...
'use strict'; const fs = require('fs'); const path = require('path'); const EventEmitter = require('events'); const chalk = require('chalk'); const _ = require('lodash'); const GroupedQueue = require('grouped-queue'); const escapeStrRe = require('escape-string-regexp'); const untildify = require('untildify'); const mem...
const fs = require('fs') const { promisify } = require('util') const chalk = require('chalk') const validator = require('../../utils/validator') const commonUtil = require('../../utils/common') const fileUtil = require('../../utils/file') const stringUtil = require('../../utils/string') const logger = require('../../u...
const CORS_PROXY_URL = "https://api.allorigins.win/raw?url="; const CHECK_DOWNLOADS_FINISHED_EVERY_MS = 100; const MAX_POSTS_PER_REQUEST = 100; const MIN_POSTS_PER_REQUEST = 5; const RETRY_POSTS_FACTOR = 0.7; const RANDOM_SUBREDDITS = [ "funny", "pics", "me_irl", "aww", "dankmemes", "mildlyinte...
'use strict' /* eslint-disable no-useless-escape */ const url = require('url') const Site = use('site') const moment = require('moment-timezone') const tagmap = use('tagmap')('xenforo') const wordmap = use('tagmap')('words') const uniqTags = use('tagmap')('raw') const qr = require('@perl/qr') const cache = use('cache')...
defvars = {curlay:0,attr:'wbi',area:'SD',layer:'OSM.CUR',cx:1398788.915,cy:5721247.690,zoom:14,rotate:0,func:'avag',sizeattr:'wbi'}; views = {'SD': {label:'San Donà di Piave','center':[1401138.829,5721892.882],zoom:14}, 'TR': {label:'Turin','center':[853412.592,5635945.084],zoom:14}, 'SW': {label:'Southwark','cen...
// Copyright [2015] [Banana.ch SA - Lugano Switzerland] // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
import React, { useState, useEffect, useLayoutEffect, useRef } from 'react'; import { Link } from 'react-router-dom'; import { request as covalentRequest } from '../../api/covalent'; import { dexs, numberOptimizeDecimal, valueChange } from '../../utils'; import { Row, Col, NavLink, Card, CardHeader, CardTitle, CardBody...
const seedrandom = require('seedrandom'); const enumHelper = require('../../utils/enumHelper'); const { battleDebug } = require('../../../settings'); const messages = require('../../game/data/messages'); const RNG = seedrandom(); class Helper { /* GAME HELPERS */ /** * Returns a random number between a...
const { MessageEmbed, MessageActionRow, MessageButton } = require("discord.js"); function rndint(max, min) { return Math.floor(Math.random() * (max - (min ? min : 0))) + (min ? min : 0); } function timer(timestamp) { const timeLeft = timestamp; const days = Math.floor(timeLeft / 86400000); const hours = Math.fl...
/** * @ngdoc page * @name keyboard * @module ionic * @description * On both Android and iOS, Ionic will attempt to prevent the keyboard from * obscuring inputs and focusable elements when it appears by scrolling them * into view. In order for this to work, any focusable elements must be within * a [Scroll View...