text
stringlengths
8.5k
48.7k
/*! Customized Jquery from <NAME>. <EMAIL> : www.templatetrip.com Authors & copyright (c) 2016: TemplateTrip - Webzeel Services(addonScript). */ /*! NOTE: This Javascript is licensed under two options: a commercial license, a commercial OEM license and Copyright by Webzeel Services - For use Only with TemplateTrip Th...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IsSuperReference = IsSuperReference; exports.HasPrimitiveBase = HasPrimitiveBase; exports.GetReferencedName = GetReferencedName; exports.GetReferencedNamePartial = GetReferencedNamePartial; exports.GetValue = GetValue; exports.IsStr...
function solveSudoku(inputBoard, stats) { var stats = stats || {}; stats['easy'] = true; var board = JSON.parse(JSON.stringify(inputBoard)); var possibilities = [[], [], [], [], [], [], [], [], []]; for(var i = 0; i < 9; i++) { for(var j = 0; j < 9; j++) { possibilities[i][j] = [false, true, t...
// 0x07011680 - 0x07011698 import { gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex, gsSP2Triangles, gsSPEndDisplayList, gsSP1Triangle, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayLi...
import ScreenSpaceEventHandler from 'cesium/Source/Core/ScreenSpaceEventHandler'; import ScreenSpaceEventType from 'cesium/Source/Core/ScreenSpaceEventType'; import CallbackProperty from 'cesium/Source/DataSources/CallbackProperty'; import Color from 'cesium/Source/Core/Color'; import HeightReference from 'cesium/Sourc...
"use strict"; /* var old = console.log console.log = function(msg){ msg += '' if(msg.length > 10000){ throw new Error('too long') process.exit(0) } old(msg) } */ var random = require('seedrandom') var _ = require('underscorem'); var schema = require('./../shared/schema'); var syncApi = require('./../http/js...
//How big the grid is in pixels var gridWidthPx = 800, gridHeightPx = 448; var gridPx = 32; //Grid size in actual units var gridWidth = gridWidthPx / gridPx; var gridHeight = gridHeightPx / gridPx; //Storage for the current agents and obstacles var agents = new Array(); var obstacles = new Array(); //The physics wor...
import "./profileForm.html" //import { setupTaggle } from '../../components/taggle/taggle.js' import RavenClient from 'raven-js'; Template.ProfileForm.onCreated(function() { ////console.log("onCreated started"); var self = this; self.isDataReady = new ReactiveVar(false); //set reactive vars var dict = new Re...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
/* * Copyright 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
/** * Resize function without multiple trigger * * Usage: * $(window).smartresize(function(){ * // code here * }); */ (function($,sr){ // debouncing function from <NAME> // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ var debounce = function (func, threshold, execAs...
/** * @module nyc/Geoclient */ import nyc from 'nyc' import Locator from 'nyc/Locator' import Geocoder from 'nyc/Geocoder' import fetchTimeout from 'nyc/fetchTimeout' const proj4 = nyc.proj4 /** * @desc A class for geocoding using the New York City Geoclient API * @public * @class * @extends mod...
const u = require("../lib/utils") const template = require("../config/template") const rM = require("../roles/remoteMiner") const rU = require("../roles/upgrader") const p = { frequency: 2000, judgeNextRoom: function(){ if(!Cache.roomData) return true const nextRoom = _.find(Cache.roomData, ro...
// Create a variable for the map var map = {}; var isOpenMenu = false; // Create a blank array for listing all the markers var markers = []; // To store the direction display renderer instance var directionsDisplay = null; // Create placeMarkers array to use in multiple functions to have control // over the number ...
var advertencias = { "101":"CNPJ/CPF não numérico", "102":"IE não informada", "140":"Número do terminal telefônico com valor inválido diferente de LLNNNNNNNN ou LLNNNNNNNNN, ou preenchimento incorreto", "145":"IE não informada, inválida, ou preenchimento incorreto", "147":"Nome ou Razão Social...
var ImgPixelSelector = function(s) { shape = [28,28]; this.s = s; this.overlap = new BasicVis.Overlap(s); this.img_display = this.overlap.new_child(BasicVis.ImgDisplay) .imgs(mnist_xs) .shape(shape) .show(6); this.pixel_selector = this.overlap.new_child(BasicVis.MatrixSelector) .shape(...
var enterButton = document.getElementById("enter"); var taskInput = document.getElementById("taskInput"); var taskInputValue = document.getElementById('taskInputValue'); var timeInputValue = document.getElementById('timeInputValue'); var timeInput = document.getElementById("timeInput"); var dateInput = document.getElem...
let field=null; let selected_tile_index=0; let tiles; let fields_x; let fields_y; let size_x; let size_y; let mousedown; let char_pos_indicator; let mapdata; let objectIndex; let singular; let maptransfer; let canvas = null; let ctx = null; let mob = null; let tok = null; function initVariables() { singular=[]; ...
/* * Copyright 2021. F5 Networks, Inc. See End User License Agreement ("EULA") for * license terms. Notwithstanding anything to the contrary in the EULA, Licensee * may copy and modify this software product for its internal business purposes. * Further, Licensee may upload, publish and distribute the modified versi...
var Redis = require('redis'); var slotHash = require('./lib/slot_hash.js'); var parseSlots = require('./lib/slot_parser.js'); var to_array = require("./lib/to_array"); var events = require("events"); var util = require('util'); var async = require('async'); /* @params: redisServers -> json format servers config [{p...
/* WYSIWYG-BBCODE editor Copyright (c) 2009, <NAME>, http://www.jitbit.com/ PROJECT HOME: http://wysiwygbbcode.codeplex.com/ 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 ...
const n = { skos: 'http://www.w3.org/2004/02/skos/core#', dcterms: 'http://purl.org/dc/terms/', foaf: 'http://xmlns.com/foaf/0.1/', geo: 'http://www.w3.org/2003/01/geo/wgs84_pos#', gba: 'http://resource.geolba.ac.at/PoolParty/schema/GBA/', owl: 'http://www.w3.org/2002/07/owl#', rdfs: 'http:/...
//全局变量 var map; var lastFData;//用来展示台风图片的点 /** * 初始化js程序 * **/ function init(){ initMap(); initData(); initTable(); canvasCircle(); mapUtil.addPopup(map); } /** * 初始化地图 * **/ function initMap(){ // var type = 'sate'; var type = 'road'; // map = mapUtil.createBaiduMap('map',commonConfig.baseLayerCenter,type,c...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(gene...
var PEG = require("pegjs"); /* * use the following parser to parse function templates */ var parserCode = "term = businessKey / linkKey / field / literal / unaryOperation / binaryOperation / ternaryOperation;" + "businessKey = 'bk';" + "linkKey = 'lk';" + "field = 'f';" + "literal = \"'\" text:[a-z,A-Z,0-9,_,$,\,;...
const express = require('express'); const app = express(); const request = require('request'); const convert = require('xml-js'); const fs = require('fs'); const path = require('path'); const http = require('http'); var bodyParser = require("body-parser"); const eodapi = require('eodhistoricaldata-api') function escap...
const formLoad = getElementById('form-load') const formClear = getElementById('form-clear') // Clear reg form const clearForm = formType => { if (localStorage.getItem('EcstaticLiving:' + formType)) showElement(formLoad) else hideElement(formLoad) hideElement(formClear) hideElement(getElementByClassName('w-form-don...
/** * @license node-stream-zip | (c) 2015 Antelle | https://github.com/antelle/node-stream-zip/blob/master/MIT-LICENSE.txt * Portions copyright https://github.com/cthackers/adm-zip | https://raw.githubusercontent.com/cthackers/adm-zip/master/MIT-LICENSE.txt * Modified by Searene for dict-parser */ const events = re...
let tempUndoStack; let tempPawnCaptureCounts = {}; let tempTotalCaptureCounts = {}; let tempPromotedCounts = {}; class PositionData { constructor() { this.kingPosition = {'w': null, 'b': null}; this.detailedUnitCount = {}; this.ep = -1; // if the previous retraction was an e.p. capture, the column of the captur...
var body = $('body'); /* ajax 推出登陆 绑定id="user-logout" <a class="nav-link" rel="nofollow" id="user-logout" href="<?php echo url('user-logout');?>"><i class="icon-sign-out"></i>&nbsp;<?php echo lang('logout');?></a> */ body.on('click', '#user-logout', function () { var href = $(this).attr('href') || $(this).data(...
/* Weitere Hinweise zum Vorgehen in einer Datenanalyse: https://www.udacity.com/course/ud032?utm_source=sendgrid&utm_medium=email&utm_campaign=march-newsletter Workflow mongodump --db <application name> bsondump collection.bson > collection.json replace ObjectId( ) Date( ) make array, add comma write config ru...
var app_id = "KzuG8zCWXrYwMGq7dsQY", app_code = "Anm4bD03Oq9aUMG8wThpYw", app_id_cors = "KzuG8zCWXrYwMGq7dsQY", app_code_cors = "Anm4bD03Oq9aUMG8wThpYw", app_id_jp = "KzuG8zCWXrYwMGq7dsQY", app_code_jp = "Anm4bD03Oq9aUMG8wThpYw", api_key = "<KEY>", api_key_jp = "<KEY>"; /** * Calculates and displays a car route...
const { gql } = require('apollo-server-express'); const { historyType, historyFilterInput, } = require('./modules/history/history.graphql'); const { newsType, newsInput } = require('./modules/news/news.graphql'); const { userType, userInput, userUpdateInput, userRegisterInput, userFilterInput, userSort...
var gl; const {mat2, mat3, mat4, vec2, vec3, vec4} = glMatrix; // Now we can use function without glMatrix.~~~ function testGLError(functionLastCalled) { /* gl.getError returns the last error that occurred using WebGL for debugging */ var lastError = gl.getError(); if (lastError != gl.NO_ERROR) { ...
/** * Copyright 2020 Quantiphi, 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 app...
$(document).ready(function() { var keywords = [ { id: ".net", text: ".NET" }, { id: "node.js", text: "Node.js" }, { id: "frontend development", text: "Frontend Development" }, { id: "ios", text: "iOS" }, { id: "android", text: "Android" }, { id: "iot & hybrid apps", text: "IoT & Hybrid Apps" }...
import React, {useState, useEffect, useRef} from 'react'; import SocketOverlay from '../socket-overlay/Socket-overlay'; import { StyleSheet, Text, View, SafeAreaView, Platform, ImageBackground, TextInput, Dimensions, } from 'react-native'; import {updateCounter} from './utils'; import {updateStatus} f...
//"use strict"; var Controller = chrome.extension.getBackgroundPage(); /* * Show an informative message on errors. */ window.onerror = function (type, url, line) { setTimeout( function () { jQuery('<div title="Unexpected Error"><h2>An error has occured.</h2><p>Please reload the extension, or restart your browser....
/* Svidget.Param.Test * * Tests the Svidget.Param class. */ var test = require('unit.js'); // Instantiate svidget root object - Widget mode var window = { name: "window", document: {}, _from: "svidget.param.test" }; // mode 1 == widget mode var opts = { mode: 1 }; // force widget mode var svidget = require('../.....
// ----------------------------------------------------------------------------- // File: panel-widgets.js // Includes classes 'PanelSection', 'PanelSectionsList', 'Widget' and derived // // MIT License // Copyright (c) 2020 <NAME> // (see LICENSE file) // -------------------------------------------------------------...
/** * Module responsible for checking for updates of the page in background. * * @module updateChecker */ import CdError from './CdError'; import Comment from './Comment'; import Section from './Section'; import Thread from './Thread'; import cd from './cd'; import commentLayers from './commentLayers'; import navP...
var cachedModules=[]; cachedModules[5429]={exports:{}}; (function(module,exports) {var jpg = { contentType: 'image/jpeg' }; var defs = { ico: { contentType: 'image/x-icon' }, html: { contentType: 'text/html' }, js: { contentType: 'text/javascript' }, css: { contentType: 'text/css' }, j...
'use strict'; class KirbyRenderer { constructor(fileList) { this.fileList = fileList; this.reversedBytesTable = this.generateReversedBytesTable(); } /* Open and load all levels in the ROM */ open() { if (this.fileList.length <= 0) { throw 'fileList must have at leas...
import * as Gaming from '../g.js'; import { Strings } from '../locale.js'; import { inj, Game, GameEngine, Tile, TileProjection } from './game.js'; import { CanvasInputController, DOMRootView, PerfLabel, ScreenView, UI } from './ui-system.js'; import * as Drawables from './ui-drawables.js'; const debugLog = Gaming.deb...
var host=$("#adcloud-url").val(); var pHost =""; //回看url function load_bar(type,option,bar_id){ require.config({ paths: { echarts: 'http://echarts.baidu.com/build/dist' } }); // 使用 require( [ 'echarts', type ], function (ec) { // --- 地图 --- var myChart = ec.init(documen...
import React, {useState, useEffect} from 'react' import "antd/dist/antd.css"; import Header from "../components/Header/headerClose" import {useForm} from "react-hook-form"; import {useStateMachine} from "little-state-machine"; import updateAction from "../utils/updateAction"; import clearAction from "../utils/update...
// Exports a function for creating/loading new documents. 'use strict'; var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default']; var _createClass = require('babel-runtime/helpers/create-class')['default']; var _toArray = require('babel-runtime/helpers/to-array')['default']; var _slicedTo...
'use strict'; class HintModeBase { constructor(frameInfo) { this._hintList = []; this._targetIndex = null; this._indexMap = {}; // global index => local index this._oldTarget = null; frameInfo.waitNextKey("nop", 0); } static getModeName() { return "HINT"; ...
var DAT = DAT || {}; var initZoom, initCard; Easing = { // no easing, no acceleration linear: function (t) { return t }, // accelerating from zero velocity easeInQuad: function (t) { return t*t }, // decelerating to zero velocity easeOutQuad: function (t) { return t*(2-t) }, // acceleration until halfway...
var eo_creation_url; $(document).ready(function () { "use strict"; $(document).foundation(); $(".toolbox label input").each(function () { var $this = $(this); $this.parent().addClass("toolbox-option-{0}".format($this.val())); }); }); var app = window.angular.module( 'labelingApp...
import shallowEqual from './shallowEqual'; import getRelevantKeys from './getRelevantKeys'; import createProviderStore from './createProviderStore'; import { pushOnReady, unshiftOnReady, unshiftMiddleware } from './keyConcats'; const isServerSide = typeof window === 'undefined'; const isTesting = typeof process !== 'u...
/* * Frontend JS * * @package Fluida */ /* * DOCUMENT.READY() */ jQuery( document ).ready( function() { cryoutLpBoxesRatios(); cryoutMobileMenuInit(); cryoutInitNav('#mobile-menu'); cryoutMenuAnimate(); cryoutBackToTop(); cryoutSearchFormAnimation(); cryoutSocialTitles(); cryoutBodyClasses(); cryoutTab...
var _ChunkSize = 16; //Ширина матрицы чанка function WorldScript(GO) { var Seed = 4; // var Columns = []; //Колонны матриц матриц матриц var Noises = {}; //Перлиновские шумы на любой вкус и цвет var WorldDataView = null; // var WorldBlocks = []; // var MinHeight = 50; var Star...
/** Initialization code for the project overview page. */ 'use strict'; var $ = require('jquery'); require('jquery-tagsinput'); require('bootstrap-editable'); require('js/osfToggleHeight'); var m = require('mithril'); var Fangorn = require('js/fangorn').Fangorn; var Raven = require('raven-js'); require('truncate'); ...
/* The MIT License (MIT) Copyright (c) 2014 <EMAIL>, inc. 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, ...
// # dbpf.js "use strict"; const util = require('util'); const fs = require('fs'); const { EventEmitter } = require('events'); const { decompress, compress } = require('qfs-compression'); const TYPES = require('./file-types'); const Stream = require('./stream'); const crc32 = require('./crc'); const { cClass, FileType ...
import latestTime from "./helpers/latestTime"; import { pk } from "./helpers/testprivateKey"; import { duration, promisifyLogWatch, latestBlock } from "./helpers/utils"; import { takeSnapshot, increaseTime, revertToSnapshot } from "./helpers/time"; import { catchRevert } from "./helpers/exceptions"; import { setUpPolym...
import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View, AsyncStorage, Image, NetInfo, TouchableWithoutFeedback, TextInput, FlatList, Picker, CheckBox} from 'react-native'; import { Container, Icon, Spinner} from 'native-base'; import SyncStorage from 'sync-stor...
const { PlatformSuite } = require('./suite'); const { DeviceManager } = require('./device'); const { ApiClient } = require('./api'); const { Builder } = require('./build'); const { platformsForTag, isKnownPlatformTag, PLATFORMS, PLATFORM_TAGS } = require('./platform'); const { RunMode, OutputFormat, config, APP_NAME } ...
//(c)2017, MIT Style License <browser-update.org/LICENSE.txt> //it is recommended to directly link to this file because we update the detection code "use strict"; var $buoop = { test: false, // true = 总是显示提示条(测试用) required: { i: 11, f: 23, o: 17, s: 10, c: 44, ios: 10 }, // 指定需要提醒的浏览器版本,低于此版本的浏览器会被提醒。 url: '/adm...
/*! * Mvc.Lookup 4.0.0 * https://github.com/NonFactors/MVC6.Lookup * * Copyright © NonFactors * * Licensed under the terms of the MIT License * http://www.opensource.org/licenses/mit-license.php */ var MvcLookupFilter = (function () { function MvcLookupFilter(lookup) { var filter = this; var...
'use strict'; const { makeMessageFunction } = require('../base/messages'); const { setProp } = require('../base/model'); const { hasErrors } = require('../base/messages'); const { cloneCsnDictionary } = require('../model/csnUtils'); const { cleanSymbols } = require('../base/cleanSymbols.js'); const { rejectManagedAsso...
"use strict"; //---------------------------------------------------------------------------------------------------- var IGV = (function(hub){ var hub = hub; //---------------------------------------------------------------------------------------------------- // development aid: used to ensure that the right "this...
import AssetPool from './asset-pool'; 'use strict' class MaterialPool extends AssetPool { constructor ( init, util, webgl, texturePool ) { console.log( 'in MaterialPool' ); // Initialize superclass. super( util ); this.util = util, this.webgl = webgl, this.te...
#!/usr/bin/env node // Liora - Modular and extensible Node.js Discord bot // Copyright 2018 jackw01. Released under the MIT License (see LICENSE for details). const os = require('os'); const path = require('path'); const fs = require('fs'); const updateNotifier = require('update-notifier'); const yargs = require('yar...
var storageId = 0; var grid = {}; var parentIndex = null; var oldSelectId ;//仓库选择前值 var edit = false; $(document).ready(function(){ $.jgrid.defaults.styleUI = 'Bootstrap'; grid = $("#jqGrid").jqGrid({ beforeRequest: function(){ $(".ui-jqgrid .jqgrid-overlay").attr("style","display:block...
import { getMap } from './presets.js'; "use strict"; let canvas = document.getElementById("map"); canvas.width = (256 + 16); //window.innerWidth; canvas.height = 224; //window.innerHeight; let ctx = canvas.getContext("2d"); ctx.imageSmoothingEnabled = false; canvas.style.width = "816px"; let blocks = document.getE...
import '../css/card.css'; import '../css/clue.css'; import 'rangeslider-pure/dist/range-slider.min.css'; import uuidv4 from 'uuid/v4'; import chroma from 'chroma-js'; import rangeSlider from 'rangeslider-pure'; import makeFakeSelectElement from './components/fake_select'; import { callServiceBuffer, callServiceInte...
/* * RedGPU - MIT License * Copyright (c) 2019 ~ By RedCamel( <EMAIL> ) * issue : https://github.com/redcamel/RedGPU/issues * Last modification time of this file - 2020.3.26 17:3:14 * */ import BaseObject3D from "../base/BaseObject3D.js"; import Plane from "../primitives/Plane.js"; import ParticleMateria...
const Discord = require("discord.js"); const request = require("request"); const webshot = require("webshot"); const config = require("./config.json"); const ggames = require("./ggames.json"); const cc = require("./countrycodes.json"); const vuvu = new Discord.Client(); const requestHeader = {"user-agent": "Mozi...
/*global d3, $, JSZip, model, utils, view, window, bib, document */ "use strict"; /* declaration of global object (initialized in setup_vis) */ var VIS = { ready: { }, // which viz already generated? last: { // which subviews last shown? bib: { } }, files: { // what data files to request ...
import React, { Component, Fragment } from 'react'; import { connect } from 'dva'; import { getLocalStorage } from '@/utils/authority'; import { Input, Table, Button, Modal, message, Select, Divider, Spin, Tooltip } from 'antd'; import styles from '../orderlist.less'; import moment from 'moment'; impo...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Crypto_1 = require("bitbox-sdk/lib/Crypto"); const Address_1 = require("bitbox-sdk/lib/Address"); const RawTransactions_1 = require("bitbox-sdk/lib/RawTransactions"); const BITBOX_1 = require("bitbox-sdk/lib/BITBOX"); const kelvinjs_prot...
"use strict"; const { query, db } = require("@arangodb"); const _ = require("lodash"); const { urlSafeB64ToB64, hash, priv2addr, getNaclKeyPair, getEthKeyPair, getConsensusSenderAddress, } = require("./encoding"); const errors = require("./errors"); const wISchnorrServer = require("./WISchnorrServer"); con...
// shopItemGrab.js // // Simplified and coarse version of handControllerGrab.js with the addition of the ownerID concept. // This grab is the only one which should run in the vrShop. It allows only near grab and add the feature of checking the ownerID. (See shopGrapSwapperEntityScript.js) // Script.include("../...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { SingleParkMap, ParkListItem, VisitModal } from './index.js'; import moment from 'moment'; import { Button, Container, Divider, Grid, Header, Icon, Image, List, Menu, Responsive, Segment, Sidebar, Visibility,...
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. import React, { Component } from "react"; import Card from "react-bootstrap/Card"; import ButtonGroup from "react-bootstrap/ButtonGroup"; ...
import util from './util'; class ColorPicker{ constructor(opt) { if (this === window) throw `ColorPicker: Can't call a function directly`; this.init(opt); } init(opt) { let { el, initColor = "rgb(255,0,0)", allMode = ['hex', 'rgb'], color = '' } = opt; var elem = document.getElementById(el); if (!(elem ...
/* eslint-disable no-param-reassign */ /* eslint-disable no-nested-ternary */ /* eslint-disable react/jsx-curly-newline */ /* eslint-disable react/jsx-wrap-multilines */ import React, { useState, useEffect, useCallback, lazy } from 'react'; import styled, { css } from 'styled-components'; import { makeStyles } from '@m...
STR_UINTIP = 1; STR_QLOGIN_VERSION_ERR = 2; STR_NO_UIN = 3; STR_NO_PWD = 4; STR_NO_VCODE = 5; STR_INV_UIN = 6; STR_INV_VCODE = 7; STR_UIN = 8; STR_PWD = 9; STR_VCODE = 10; STR_VCODE_TIP = 11; STR_CHANGE_VCODE = 12; STR_REMEMBER_PWD = 13; STR_1_DAY = 14; STR_1_WEEK = 15; STR_1_MONTH = 16; STR_HALF_YEAR = 17; STR_1_YEAR ...
function LoadSld( slideId ) { if( !g_supportsPPTHTML ) return if( slideId ) parent.SldUpdated(slideId) g_origSz=parseInt(SlideObj.style.fontSize) g_origH=SlideObj.style.posHeight g_origW=SlideObj.style.posWidth g_scaleHyperlinks=(document.all.tags("AREA").length>0) if( g_scaleHyperlinks ) InitHLinkArray() ...
'use strict'; ((window) => { let hasClass, addClass, removeClass; function classReg(className) { return new RegExp("(^|\\s+)" + className + "(\\s+|$)"); } if ('classList' in document.documentElement) { hasClass = function(elem, cls) { return elem.classList.contains(cls); }; addClass =...
/////////////////////////// // global variables go here var left = 0; // remembers last position if hidden var maxRegion = 413; // number of electoral parishes var district = { id:[], cd:[], hb:[], colL: [], colR:[] }; // this is where all the DOM nodes for each electoral district get saved // id : d...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
"use strict"; // Class definition var ADW = function() { var _init = function() { $(window).on('load', function() { $('body').addClass('load'); /** * Centre les images **/ ADW_CenterImageInContainer(); /** * Charge le...
/* eslint-disable no-console */ /* eslint-disable no-undefined */ 'use strict'; const assert = require('assert'); const connect = require('../../../lib/connect'); const { audio: createLocalAudioTrack, video: createLocalVideoTrack } = require('../../../lib/createlocaltrack'); const defaults = require('../../lib/default...
import JUI from '../src/libs/javscript_helper/JUI.js'; const JS = new JUI(); export default class hotspotScript { constructor() { this.userAnsXML="<SMANS></SMANS>"; this.xaxis=[]; this.yaxis=[]; this.count=0; this.drawstr = ""; this.elemId = '#hptmain0'; this...
import {AI_TYPES} from './ai.js'; import {DEATH_SPECS, EXPLOSION_SHAKE_REDUCTION_FACTOR, H, MAX_EXPLOSION_SHAKE_FACTOR, MAX_WIND, MINMONEY, PARTICLE_AMOUNT, PARTICLE_FADE_AMOUNT, PARTICLE_MAX_POWER_FACTOR, PARTICLE_MIN_LIFETIME, PARTICLE_MIN_POWER_FACTOR, PARTICLE_POWER_REDUCTION_FACTOR, PARTICLE_TIME_FACTOR, PARTICLE_...
export const EVENT = { instrumentChange: 1, patternChange: 2, patternPosChange: 3, patternTableChange: 4, patternLoopChange: 5, trackStateChange: 7, playingChange: 8, playTypeChange: 9, songPositionChange: 10, songRestart: 11, songBPMChange: 12, samplePlay: 13, masterVolumeChange: 15, songPropertyChange: ...
import { Tone } from 'tone/build/esm/core/Tone'; const world = { gravity: 9.82, friction: 0.02, ballhardness: 0.7, angleScaling: 20, playerSensitivity: 0.008, collisionBoundary: 1.2, perspective: 0.0, } const board = { boardWidth: 200, boardHeight: 200, boardThickness: 50...
const isDebug = /debug/.test(window.location.href) const w3 = "http://www.w3.org/" const svgNS = w3 + "2000/svg" const xlinkNS = w3 + "1999/xlink" const notes = "C C# D D# E F F# G G# A A# B".split(" ") let w, h let scrollX = 0, scrollY = 0, cursorX = 0 const borders = { l: 0, r: 250 } const borderExtend = 250 ...
// Variables var world = {}; var lyr = [], mat = [], tex = [], jsons=[], labels=[], queryableObjs = []; var labelVisible = true; var option = { sole_height: 1.5, side: {color: 0xc7ac92}, frame: {color: 0}, label: {pointerColor: 0xc0c0d0, autoSize: false, fontSize: "10px"}, qmarker: {r: 0.25, c:0xffff00, o:0.8...
/** * Components for rendering the /carts/ and /cart-view/ page. */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import _ from 'underscore'; import Pager from '../../libs/bootstrap/pager'; import { Panel, PanelBody, PanelHeading } from '../../libs/bootstrap/pan...
let thisday = moment().format('YYYY-MM-DD'); var thisweek = moment().day() >= 5 ? moment().day(5).subtract(0, 'days').format('YYYY-MM-DD') : moment().day(5).subtract(7, 'days').format('YYYY-MM-DD'); var formats = { cover: "(?<id>\\d+)\\|\\|\\|(?<cover>.*)", album: "(?<album>.*)\\|\\|\\|(?<albumid>\\d+)\\|\\|\\|(?...
/*global chrome Html Dialog CF*/ const options = { linkGrabEnabled: true, linkGrabButton: 2, linkGrabKey: 0, shorten: 'a', language: 'en' }; const LEFT_BUTTON = 0; const KEY_ESC = '\x1b'; const KEY_A = 'A'; const KEY_C = 'C'; const KEY_F = 'F'; const KEY_I = 'I'; const KEY_P = 'P'; const KEY_R = '...
var wifiStat1 = [ {"x": 2.02, "y": 10.98, "room": "FT236", "rssi": [-76, -46, -60, -61, -60, -59, -60, -60, -59, -60, -60, -54, -59, -60, -54, -59, -47, -54, -59, -60], "mean": -58.35, "variance": 34.03}, {"x": 2.17, "y": 4.98, "room": "FT222", "rssi": [-41, -44, -41, -41, -44, -40, -41, -43, -40, -40, -43, -40...
/* * The Mandelbrot Set, in HTML5 canvas and javascript. * https://github.com/cslarsen/mandelbrot-js * * Copyright (C) 2012 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * ...
Element.prototype.event = function(e, func){ return this.addEventListener(e,func); } String.prototype.replaceAll = function(org, dest) { return this.split(org).join(dest); } String.prototype.unescapeHtml = function(){ return this.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replac...
var testData = { one: "first", two: "second", v: "test", arr: ["AA","BB","CC"], dict: {"leovinus":"this","scraliontis":"that","brobostigon":"other"}, fun: function () { return 'RETURNED'; }, html: '<a>' }; var R = function ( tmpl, data ) { try { return jQuery.tmpl( tmpl, data ).text(); } catch ...
HIDDEN_BG = 'rgb(200, 200, 200)'; VISIBLE_BG = 'rgb(230, 230, 230)'; MINE_FILL = 'rgba(0, 0, 0, .2)'; MINE_MARK_STROKE = 'black'; MINE_MARK_WRONG_STROKE = 'red'; EXPLODED = 'rgba(255, 0, 0, .8)'; COUNT_FILL = [ // original 'blue', 'green', 'red', 'darkblue', 'brown', 'darkcyan', 'black', 'grey', // unoffic...