text
stringlengths
8.5k
48.7k
function updateTips(text) { // cập nhập trạng thái khi có lỗi xảy ra $(".error") // chọn seletor có lớp là error .text(text) .addClass("ui-state-highlight"); setTimeout(function() { element.removeClass("ui-state-highlight", 1500); }, 500 ); } function checkLength(element, column, min, max) { // kiểm tra độ dài ...
import {MIME_TYPE} from "./mime/mime-type"; let path = require('path') export function resolvePath(root, ...paths) { if (root.startsWith('http://') || root.startsWith('https://')) { return root.replace(/\/+$/, '') + path.resolve(...paths) } else { return path.resolve(root, ...paths) } } exp...
// Al inicio tenemos un arreglo de las posibles entradas del usuario (trigger) y las respuestas // asociadas (reply). Para la todas las entradas fila [0] (arreglo trigger) le corresponde cualquiera de las // respuestas de la fila [0] (arreglo reply), la cual se selecciona de manera aleatoria en la función // encarga...
// Auto Tower Runner // WARNING: all wandering ghosts will be automatically rejected if fought. var USER = "A"; // username selected var EVID = "80"; // event id of the tower var SSID = "1599"; // tower SS monster ID; // These are inventory_monster_id. var ALLLEADS = { "A" : { "10101590" : "51852", "10101591" : "...
// Experiment with Multi-Camera for multi-window or multi-monitor/multi-machine setups. // <NAME>, 2019 // // Example Multi-screen grid (x/y) // +-----+-----+-----+ // | 0/0 | 1/0 | 2/0 | .. // +-----+-----+-----+ // | 0/1 | 1/1 | 2/1 | .. // +-----+-----+-----+ // .. .. .. // // Fork of Croquet Tutorial...
// *** LIVE COMMENT FOR 80/20 DEVELOPERS *** [ // // by d08ble // // *** LIVE COMMENT FOR 80/20 DEVELOPERS *** ] // URL NPM [ // https://www.npmjs.org/package/livecomment // URL NPM ] // KNOWN BUGS [ // || multiple tags split, demo: // * TAG [ // * one // * TAG ] // * TAG [ // * two // * TA...
import Progress from 'components/Progress.js'; import popup from 'components/popup.js'; import copy from 'components/copy.js'; import share from 'components/share.js'; const ServerError = Tactics.ServerError; const authClient = Tactics.authClient; const gameClient = Tactics.gameClient; const chatClient = Tactics.chatC...
// overlay.js - part of vulog /* global chrome, parsedPage */ /* setTimeout(function () { console.log('vulogOverlayGlobal ' + JSON.stringify(vulogOverlayGlobal)) console.log({ vulogOverlayGlobal }) }, 2000) */ const vulogOverlayGlobal = { showthis: 'none', self_mark: null, redirect_mark: null, messages: nu...
//parameters, must be initialized by reset_params() or loaded from localstorage. Simply use load_params() once! var params; //list items var list; //store references to html objects of items var start_stop; var start_stop_checkbox; var logs_upload; var logs_delete; var automatic_analysis; var automatic_analysis_chec...
window.addEventListener("keydown", function(e) { // space and arrow keys if([40, 38].indexOf(e.keyCode) > -1) { //37 and 39 excluded e.preventDefault(); } }, false); var vaultBoyScript = [ "Hi, I'm here to give you some help!", "Let's start by moving your charact...
import GroupDao from './group.dao'; import log from '../../config/log4js.config'; import GroupUserMapDao from '../../apis/group/groupUserMap.dao'; import consultationGroupModel from './index'; import sequelize from '../../util/conn.mysql'; import groupUserMapModel from './index'; import groupModel from './index'; impor...
/* * $Id: GraphEditor.js,v 1.3 2012-03-22 09:22:39 gaudenz Exp $ * Copyright (c) 2006-2010, JGraph Ltd */ GraphEditor = {}; function main() { Ext.QuickTips.init(); // Disables browser context menu mxEvent.disableContextMenu(document.body); // Makes the connection hotspot smaller mxConstants.DEFAULT_HOTS...
const expectRevert = require('./helpers/expectRevert'); const coder = require('web3-eth-abi'); const expect = require('chai').expect; const assert = require('chai').assert; const BigNumber = require('bignumber.js'); BigNumber.config({ ERRORS: false }); const ColuLocalNetwork = artifacts.require('ColuLocalNetwork'); c...
var Globals = require('../../config/globals'); var Ranking = (function(){ var RANKING = {}; var s, _this; var width, height, margin; var x, y, color, xAxis, yAxis, xUpperLimit; var svg; var data; var $root = $(''); var ranking, features, conf, rankBy; // Classes var svgClass...
"use strict"; // this class is based on https://github.com/alphacharlie/node-ads1x15/blob/master/index.js // probably MIT license (not explicitely mentioned, but it is based on the Adafruit Python code which is MIT) var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function ...
"use strict"; let chai = require("chai"); let parser = require("../../lib/parser"); let expect = chai.expect; // better diagnostics for deep eq failure chai.config.truncateThreshold = 0; describe("PEG.js grammar parser", function() { let literalAbcd = { type: "literal", value: "abcd", ignoreCase: false...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
const doop = require('jsdoc/util/doop'); const env = require('jsdoc/env'); const fs = require('jsdoc/fs'); const helper = require('jsdoc/util/templateHelper'); const logger = require('jsdoc/util/logger'); const path = require('jsdoc/path'); const taffy = require('taffydb').taffy; const templat...
// margins and heights for the large bar and scatter plot const margin = { top: 50, right: 50, bottom: 50, left: 200 }; const width = 900; //- margin.left - margin.right; const height = 650; //- margin.top - margin.bottom; // margins and heights for the grid of scatter plots const margin1 = { top: 50, right: 50, botto...
var child_process = require('child_process'); var _ = require('underscore'); var express = require('express'); var fs = require('fs'); var path = require('path'); var temp = require('temp'); var socketIO = require('socket.io'); var watchr = require('watchr'); var async= require('async'); var git = require('./git'); va...
'use strict'; const CosmosClient = require('./CosmosClient'); const bson = require('bson'); const connectionHelper = require('./helpers/connectionHelper'); const ERROR_CONNECTION = 1; const ERROR_DB_LIST = 2; const ERROR_DB_CONNECTION = 3; const ERROR_LIST_COLLECTION = 4; const ERROR_GET_DATA = 5; const ERROR_HANDLE_...
$Form = null; $(document).ready(function() { List(); var input = document.getElementById("images"), formdata = false; if (window.FormData) { formdata = new FormData(); document.getElementById("btn").style.display = "none"; } input.addEventListener(...
import React, { Component } from "react"; import { getConnextClient } from "connext/dist/Connext.js"; import "./App.css"; import ProviderOptions from "./utils/ProviderOptions.ts"; import clientProvider from "./utils/web3/clientProvider.ts"; import { setWallet } from "./utils/actions.js"; import { createWallet, crea...
import nextTick from "../utils/next-tick"; import { updateMaterials, mapMaterials, convertStandardMaterial } from "../utils/material-utils"; import SketchfabZipWorker from "../workers/sketchfab-zip.worker.js"; //import { getCustomGLTFParserURLResolver } from "../utils/media-url-utils"; import { promisifyWorker } from "...
// ==UserScript== // @name Ylilauta: Script toggler // @namespace Violentmonkey Scripts // @match *://ylilauta.org/* // @version 2.6 // @require https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js // @require https://gitcdn.xyz/repo/Stuk/jszip/9fb481ac2a294f9c894226ea2992919d9d6a70aa/dist/jszip....
// Generic ANTLR parser class with AST-building functions // To have an AST also in the case of syntax errors, produce it by adding // sub-nodes to a parent node, not by returning sub-ASTs (the latter is fine // for secondary attachments). 'use strict'; const antlr4 = require('antlr4'); const { ATNState } = require(...
//THREEJS RELATED VARIABLES var scene, camera, controls, fieldOfView, aspectRatio, nearPlane, farPlane, shadowLight, backLight, light, renderer, container; //SCENE var floor, lion, fan, isBlowing = false; //SCREEN VARIABLES var HEIGHT, WIDTH, windowHalfX, wi...
/* eslint-disable no-console */ /* eslint-disable no-use-before-define */ /* bootstrap database in your FaunaDB account */ const readline = require('readline'); const faunadb = require('faunadb'); const chalk = require('chalk'); const { GoogleSpreadsheet } = require('google-spreadsheet'); const insideNetlify = inside...
// section slider interface // const Scroller = new fullpage('#fullpage', { // //options here // autoScrolling:true, // css3: true, // // scrollHorizontally: true, // lockAnchors: true, // lockAnchors: false, // to enable url navigation // // anchors:['section-1', 'section-2', 'section-3', 'section-4', 's...
/* like-web3 (https://npmjs.com/package/like-web3) Copyright 2022 <NAME> Licensed under MIT (https://github.com/LuKks/like-web3) */ // fixbug: Error: Number can only safely store up to 53 bits // https://github.com/ChainSafe/web3.js/pull/3948#issuecomment-821779691 (function () { const fs = require('fs') if (fs...
//Variables let pupil_x = 235; let pupil_y = 162; let pupil_size = 50; let mouth_type = 2; //1 for open&smile, 2 for shut, 3 for sad let blink_time = 2000; let language = ''; let headText = document.getElementById("heading-text"); let pText = document.getElementById("paragraph-text"); let userId = 0; let currentUser...
/** * Copyright (C) 2015 IASA - Institute of Accelerating Systems and Applications (http://www.iasa.gr) * * 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/lice...
const opponentIndicesTable = [ 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x01, 0x02, 0x03, 0x04, 0x06, 0x07, 0x08, 0x09, 0x08, 0x09, 0x0a, 0x0b, 0x00, 0x01, 0x02, 0x03, 0x01, 0x02, 0x03, 0x04, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x08, 0x09, 0x0a, 0x0b, 0x00, 0x0...
var socket; var user; var cfd; var lastcolor; var selColor; var bucketToolTolerance; var pencilWidth; var pregame_frames, room_input, username_input, language_input, join_input, roomlist, game_frames, userlist, results, results_title_span, results_nextround_span, results_word_span, lobby, lobby_maxplayers...
function MD5(a) { function k(m, n) { var p, r, s, q, o; s = m & 2147483648; q = n & 2147483648; p = m & 1073741824; r = n & 1073741824; o = (m & 1073741823) + (n & 1073741823); if (p & r) return o ^ 2147483648 ^ s ^ q; return p | r ? o & 1073741824 ? o ^ 3221225472 ^ s ^ q : o ^ 107374...
const classId = location.pathname.split('/').pop(); let startLogTime = 0 // Date.now() - 1*3600*1000; // 3 hours ago // https://momentjs.com/docs/#/customization/relative-time/ moment.updateLocale('en', { relativeTime : { s : 'just now', ss : '%d secs', m : '1 min', mm : '%d mins', ...
/**Number of different lines of inputs (a line is composed by an input for a character and one for a frequency). @type {Number}*/ var inputs = 1; /**Default code for an line of inputs. @type {String}*/ var divInput = '<div class="form-group form-row"><div class="col" data-content="Character missing" data-placem...
/** * Copyright (c) 2013, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ var assert = requi...
/* * Project: Twitter Bootstrap Hover Dropdown * Author: <NAME> * Contributors: <NAME> * * Dependencies?: Twitter Bootstrap's Dropdown plugin * * A simple plugin to enable twitter bootstrap dropdowns to active on hover and provide a nice user experience. * * No license, do what you want. I'd love credit or a s...
'use strict' import React, {Component} from 'react' import { View, Text, StyleSheet, TabBar, Dimensions, AppState, AsyncStorage, TouchableOpacity, Image, Platform, ScrollView, Alert } from 'react-native' import MapView, { Marker, Callout} from 'react-native-maps' import...
var gulp = require('gulp'); var browserSync = require('browser-sync'); var sass = require('gulp-sass'); var concat = require('gulp-concat'); var rename = require('gulp-rename'); var merge = require('merge-stream'); var cleanCss = require('gulp-clean-css'); var Remarkable = require('remarkable'); var highlightJs = requi...
var settings = require("./settings.js")(); require("./elements.js")(); require("./asset_table.js")(); require("./utils.js")(); let FIAT_TABLE = null; let FIAT_BALANCES = null; let OWNED_TOKENS = null; let BLOCKCHAIN_BALANCES = null; let BB_PER_ASSET_TABLE = null; let BB_PER_ACCOUNT_TABLES = []; // awesome idea of temp...
'use strict'; var stats = { reductions: 0, annihilate: 0, commute: 0, beta: 0 }; window.stats = stats; const assert = function (condition, message) { if (!condition) { debugger; console.log('Assert failed: ' + (message || '')); } }; let clone_id = 0; function clone(o) { let on = Object.assign({}, o); ...
// Copyright 2006 <NAME>. All Rights Reserved. // ==UserScript== // @name Gmail Saved Searches // @namespace http://www.google.com/~mihaip // @description Adds saved and recent seaches. // @include http://mail.google.com/* // @include https://mail.google.com/* // ==/UserScript== // Utility...
// abc_renderer.js: API to render to SVG/Raphael/whatever rendering engine // Copyright (C) 2010-2020 <NAME> (<EMAIL>) // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without r...
import LocaleService, { LocaleDay, LocaleDayPeriod, LocaleEra, LocaleLength, LocaleMonth, LocaleNumberSymbol, LocaleStyle, LocaleType } from '../locale/locale.service'; export const NumberFormatStyle_ = { Decimal: 'decimal', Percent: 'percent', Currency: 'currency', Scientific: 'scientific', }; export const Plura...
import CookieManager from '@react-native-community/cookies'; import UserAgent from 'react-native-user-agent'; import URL from 'url'; import VersionInfo from 'react-native-version-info'; import { Linking, PermissionsAndroid, Platform,AsyncStorage } from "react-native"; import SendIntentAndroid from "react-native-send-i...
"use strict"; import fs from 'fs'; import { K, U, windef } from 'win32-api'; // or {Kernel32, User32} import ref from 'ref'; import ffi from 'ffi'; import refStruct from 'ref-struct'; import { shell } from 'electron'; import path from 'path'; import ps from 'ps-node'; import request from 'request'; import Downloader f...
const container = document.getElementById("game-container"); const controls = document.getElementById("game-controls"); const extraControls = document.getElementById("extra-controls"); const nums = [1, 2, 3, 4, 5, 6, 7, 8, 9]; const shuffle = (array) => { /** * Returns shuffled copy of array using Fisher-Yat...
/** * Copyright 2015 Portal.js * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
import * as Kit from "./kit" import {Tag,TypeInfo as TI,symbol,enter,leave, tok,resetFieldInfo,symInfo} from "./core" import * as assert from "assert" import * as Trace from "./trace" let symNum = 0 let curSymId = 0 symInfo(Tag.ClassDeclaration).funDecl = true symInfo(Tag.FunctionDeclaration).funDecl = true ...
var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; var positionDataTag = "positiondata"; // Used for answers (runs client side) and used for static itjobs header/footer var adUnitIdsMap = { 'cfo': '/8456/IDG.US_E_CFOWorld.com', 'pcw': '/8456/IDG.US_CSMB_PCWorld.com', 'cio': '/8456/IDG.U...
/** # Image Editor **ndie** is a simple non-destructive HTML5-based editor. It keeps the original image and tracks user actions as a series of changes to that image. **Usage**: imageEditor( *element *settings_object* ) --> returns *ndie instance* By default, any contents of the target element(s) will be replac...
var _ = require('lodash'); var Angular = require('angular'); var ngStorage = require('ngstorage'); var MMLEmitter = require('mml-emitter'); var MIDIFile = require('midifile'); var MIDIPlayer = require('midiplayer'); //var FMVoice = require('./voice-dx7'); var Voice = require('./padvoice'); var MIDI = require('./midi')...
/* Resize function without multiple trigger * $(window).smartresize(function(){ * // code * }); */ (function ($, sr) { // debouncing function from <NAME> // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ var debounce = function (func, threshold, execAsap) { var ...
var page = Array(); var onCanvas = false; var mode = "line"; var scene = false; var calque_top = false; var calque_bottom = false; var newElement = false; var elementIdentic = false; var lines = 0; var rectangles = 0; var selecteurs = Array(); var start_point = Array(); var elementFinish = false; var element = fals...
///////////////////////////////////////////////////////////////////////////////////////// ////////////////////UI code////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////// var curStage; // Currently selected stage (e...
//返回购物车 function backcart(){ var key = getCookie("111yao"); window.location.href="../carts/cart!page.action?key="+key; } //选择收货地址 function xuanzeReceiver(receiverId,uiid){ if(receiverId!=$("#receiverId").val()){ $("#receiverId").val(receiverId); $("#"+uiid).find("li").each(function() { if($(this).chi...
var jsgui = require('./jsgui-lang-essentials'); var Data_Structures = require('./jsgui-data-structures'); var Constraint = require('./constraint'); var j = jsgui; var Class = j.Class; var each = j.each; var is_array = j.is_array; var is_dom_node = j.is_dom_node; var is_ctrl = j.is_ctrl; var extend = j.extend; ...
var ctx = document.getElementById('grafico_7'); var scatterChart = new Chart(ctx, { type: 'scatter', data: { datasets: [ { label: '2020', backgroundColor: 'rgba(255, 99, 132, 1)', data: [{x: 0.5,y: 0.2}, {x: 0.34,y: 1.0},...
/* Licensed Materials - Property of IBM © Copyright IBM Corporation 2015. All Rights Reserved. This licensed material is licensed under the Apache 2.0 license. http://www.apache.org/licenses/LICENSE-2.0. */ (function(global) { global.utils = {}; })(this); /* Licensed Materials - Property of IBM © Copyright IBM C...
/** * This is a small and tiny Web server running on NodeJS. Mostly serves static pages and files. * * To debug: * To install node-inspector, to do once: * $ set HTTP_PROXY=http://www-proxy.us.oracle.com:80 # if needed for the install * $ npm install -g node-inspector * * To run node-inspector: * $ n...
// Transcoded to Javascript by <NAME> <<EMAIL>> import { IllegalArgumentException } from './exceptions' export class InternalFormat { /** * Create a {@link Spec} object by parsing a format specification. * * @param text to parse * @return parsed equivalent to text */ static fromText(t...
window.onload = function() { //NAV CONTROLS // button for search client page const searchClientHP = document.getElementById('searchClient'); // button for add client page const addClient = document.getElementById('addClient'); const home = document.getElementById('homepage'); // redirect for /client ...
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Registry = require('../../registry'); var Lib = require('../../lib'); var Axes = require('../../plots/carte...
var state = require("../state.js"); var MapManager = require("../Map/MapManager.js"); var { WeightB } = require('./weightbar.js'); var SP = require("../ScatterPlot.js"); var TDSP = require("../chart/3dScatterPlot.js"); let PL = require("../Attr/parllel_line.js"); var CVSP = require("../chart/CV_ScatterPlo...
var playerPanels = {}; var localTeam = Players.GetTeam(Players.GetLocalPlayer()) if (localTeam != 2 && localTeam != 3) { HideBattlepass() } function HideBattlepass() { $.GetContextPanel().style.visibility = "collapse"; $.Schedule(2.0, HideBattlepass) } var toggle = false; var first_time = false; var api = { bas...
import { __assign, __read, __spread } from "tslib"; import { toggleMark } from 'prosemirror-commands'; import { Fragment, Slice, } from 'prosemirror-model'; import { NodeSelection, TextSelection, } from 'prosemirror-state'; import { liftTarget, findWrapping } from 'prosemirror-transform'; import { LEFT } from '../keyma...
var $ = require('../core/renderer'), eventsEngine = require('../events/core/events_engine'), Class = require('../core/class'), stringUtils = require('../core/utils/string'), registerComponent = require('../core/component_registrator'), commonUtils = require('../core/utils/common'), each = requir...
import * as Gbi from "../../../../../include/gbi" import { cave_09000000, cave_0900A000 } from "../../../../../textures/cave" const hmc_seg7_vertex_0700F458 = [ { pos: [ 743, 512, 3410 ], flag: 0, tc: [ 990, 0 ], color: [ 255, 255, 255, 255 ] }, { pos: [ 670, 512, 3483 ], flag: 0, tc: [ 0, 0 ], color: [ 255, 255, 2...
"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 _ = require('lodash'); const GoogleSpreadsheetRow = require('./GoogleSpreadsheetRow'); const GoogleSpreadsheetCell = require('./GoogleSpreadsheetCell'); const { getFieldMask, columnToLetter, letterToColumn } = require('./utils'); function checkForDuplicateHeaders(headers) { // check for duplicate headers c...
import { __decorate } from 'tslib'; import { FocusMonitor } from '@angular/cdk/a11y'; import { Directionality, BidiModule } from '@angular/cdk/bidi'; import { UP_ARROW, DOWN_ARROW, ENTER } from '@angular/cdk/keycodes'; import { EventEmitter, Component, forwardRef, ChangeDetectionStrategy, ViewEncapsulation, ElementRef,...
/** * Copyright 2013 j <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
'use strict'; import $ from 'jquery'; import './jquery.ui.djnsortable'; /* * jQuery UI Nested Sortable * v 1.3.4 / 28 apr 2011 * http://mjsarfatti.com/sandbox/nestedSortable * * Depends: * jquery.ui.sortable.js 1.8+ * * License CC BY-SA 3.0 * Copyright 2010-2011, <NAME> */ if (typeof $.fn.nearest != 'fun...
var g = 9.81; var rho = 1025; var mi = 0.00122; var plot = []; ship.holtrop = { vs1: [], fn: [], re: [], cf: [], rf: [], rapp: [], m4: [], rwa: [], rwb: [], rwab: [], fni: [], rw: [], ...
import * as psTree from '@apify/ps-tree'; // eslint-disable-next-line import/no-extraneous-dependencies import * as ApifyStorageLocal from '@apify/storage-local'; import { execSync } from 'child_process'; import * as ApifyClient from 'apify-client'; import { version as apifyClientVersion } from 'apify-client/package.js...
import { animationClass, containerClass, containerInstance, dropPlaceholderFlexContainerClass, dropPlaceholderInnerClass, dropPlaceholderWrapperClass, stretcherElementClass, stretcherElementInstance, translationValue, wrapperClass, dropPlaceholderDefaultClass, } from './constants'; import { defaul...
import React, { Component } from 'react'; import ChatManager from './ChatManager' import Login from './components/Login'; import NewUser from './components/NewUser'; import ChatList from './components/ChatList'; import ChatMembers from './components/ChatMembers'; import { animateScroll } from 'react-scroll'; import Rea...
// jQuery $(document).ready(function() { // Définition des textareas redimentionnables $("textarea").addClass("ui-widget-content").resizable( { handles: "s", minHeight: 50 }); // Simulation click sur avis au rechargement var jqoTmp = $("input[name='Forms_E2_Avis']:checked"); if(jqoTmp.length != 0) jqoTm...
function _catch(body, recover) { try { var result = body(); } catch (e) { return recover(e); } if (result && result.then) { return result.then(void 0, recover); } return result; } function _settle(pact, state, value) { if (!pact.s) { if (value instanceof _Pact) { if (value.s) { ...
// var pl = new ol.format.GeoJSON().readFeature({}, { featureProjection: 'EPSG:3857' }); var warView = new ol.View({ center: [ 2345000.0, 6840000.0 ], zoom: 12 }); var warExtent = [ 2313000.0, 6870000.0, 2375000.0, 6815000.0 ]; defControls.push(new ol.control.ZoomToExtent({ label: 'W', tipLabel: 'WARsaw', extent: warEx...
import boxIntersect from 'box-intersect'; import { median, range } from 'd3-array'; import { scaleBand, scaleLinear } from 'd3-scale'; import * as PIXI from 'pixi.js'; import classifyPoint from 'robust-point-in-polygon'; import HorizontalTiled1DPixiTrack from './HorizontalTiled1DPixiTrack'; // Services import { tileP...
import React from 'react' import Selectbox from '../../common/Selectbox' import MultiRowTextBoxContainer from '../MultiRowTextBox/MultiRoxTextBoxContainer' import { getClassNames } from '../../../helpers/HostedEngineSetupUtil' import { amdCpuTypes, deploymentOption, deploymentTypes, fqdnValidationTypes ...
import React, { Component } from 'react'; import { observable, action, configure } from 'mobx'; import { inject, observer } from 'mobx-react'; import { Button, Table, Tooltip, Modal, Tabs, Col, Row } from 'choerodon-ui'; import { injectIntl, FormattedMessage } from 'react-intl'; import { Content, Header, Page, Permissi...
var maxDigits, ZERO_ARRAY, bigZero, bigOne, dpl10, lr10, hexatrigesimalToChar, hexToChar, highBitMasks, lowBitMasks, biRadixBase = 2, biRadixBits = 16, bitsPerDigit = biRadixBits, biRadix = 65536, biHalfRadix = biRadix >>> 1, biRadixSquared = biRadix * biRadix, maxDigitVal = biRadix - 1, maxInteger = 9999999999999998; ...
import React, { Component } from "react"; import TitleBar from "./components/TitleBar/TitleBar"; import CodeEditor from "./components/CodeEditor/CodeEditor"; import SceneEditor from "./components/SceneEditor/SceneEditor"; import _ from "lodash"; import { AddGroupObj, ApplyTexture } from "./components/MenuBar/AddModel";...
/* Start of class Stoplist */ function Stoplist(words) { this.bannedWords = words; } Stoplist.prototype.apply = function(text) { var words = text.split(" "); var newText = ""; for (var i in words) { var index = indexOf(this.bannedWords, words[i]); if (index == -1) { // if word is NOT banned n...
// $Id: ircd_channel.js,v 1.34 2019/08/06 20:44:39 deuce Exp $ // // ircd_channel.js // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
import { Tweenable, setBezierFunction } from 'shifty'; import { Actor } from './actor'; import { each, pick, without } from './utils'; const UPDATE_TIME = 1000 / 60; export const DEFAULT_EASING = 'linear'; /*! * Fire an event bound to a Rekapi. * @param {Rekapi} rekapi * @param {string} eventName * @param...
var shopboosterstopimage=0; var shopboosterstopimagetotal = 9; var shopboosterstopchange = 0; var booster_gal_visible = false; var shopboosterMaxHeight = 3000; var shopboosterMinHeight = 300; var boosterEE = 0; var booster_filesToUpload = []; document.onkeydown = checkKey; function checkKey(e) { ...
 "use strict" const { clipboard } = require('electron') const { ipcRenderer, remote } = require('electron') const { Menu, MenuItem, dialog } = remote // const ctags = require('ctags') let d3 = require('d3') let currentFile = null // 当前文档保存的路径 let currentTagFile = null // let isSaved = true // 当前文档是否已保存 let txtEditor = ...
/** * Provides a complete service for accessing - reading from and writing to - the crossword database * * */ module.exports = { connect: connect , on: onEvent , onEvent: onEvent , onDataset: onDataset , execSql: execSql , verbose: false , log: console.log , simpleClone: simpleCl...
/*BodyBuilder.js 0.03 What You See Is What You Mean Rich Text Editor <NAME> github.com/jmkenz/bodybuilder */ /*----BodyBuilder functions----*/ var BB = { init : function () { $('.bbuilder-instance').each(function() { //Enable contenteditable $(this).children('.b...
// All this data is initially empty, but gets populated via an Ajax request (below) // The raw data, i.e. the json we got from the ajax request dataIssues = {}, dataPullRequests = {}; // The current sparkline data (can be 'Issues' or 'Pull Requests') sparklineData = {}; dataIssuesUrl = "/datavis/data-issues.json"; i...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); ...
var dialog, idResourceToVote, resourceTypeToVote,voteValue,baseUrl,arrondissement,title,theme,arrondUser; function displayLoginBp( encodedBackUrl ) { // Lutece XSS security check seems to need a double-encoded backUrl to avoid an alert due to character '&'. // var url = baseUrl +'jsp/site/Portal.jsp?page=my...
'use strict'; // Constants const { MAX_CHAT_MESSAGE_LENGTH, BITCOIN_GENESIS } = require('../constants'); // Internal Dependencies const fs = require('fs'); // External Dependencies const merge = require('lodash.merge'); const pointer = require('json-pointer'); // TODO: move uses to App const monitor = require('f...
import io from 'socket.io-client'; import Board from '../helpers/board'; import propBox from '../helpers/propBox'; import CardManager from '../helpers/cardManager'; import ShowScore from '../helpers/showScore'; import SkillManager from '../helpers/skillManager'; var _ = require('lodash'); export default class Game ex...