text
stringlengths
8.5k
48.7k
/** * Copyright 2017 MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful,...
var oTableCliente, tblEstablecimiento; var folderimage; const objFormulario = { }; $(function() { /** * Muestra la lista ocultando el formulario */ objFormulario.mostrarBusqueda = function () { const boton = $('#btnAccionContenedorLista'); const icon = boton.find('i'); if...
"use strict"; //written by vs //benötigt html5, jQuery, optional: Bootstrap, jQueryUI //V1.4 //fügt in eine HTML-Tabelle einen Pager und/oder ein Suchfeld ein //Der Pager kann wahlweise in der Kopf- oder Fusszeile angezeigt werden. //Das Suchfeld wird immer als erste Zeile angezeigt. Wenn eine Ausgabe der Treff...
const chance = require('chance').Chance(); const deepEqual = require('deep-equal'); const { Permissions, MessageEmbed } = require('discord.js'); const { client, clientReady } = require('../discord-bot/discord-bot'); const Player = require('./Player'); const Room = require('./Room'); const Database = require('./Database...
var myCharts = {}; var structure_config; function start(jsondata){ structure_config = jsondata; createFormStructure(); for (var section in jsondata.config){ // Check if has a default values: if (!('FullName' in structure_config.config[section])){ structure_config.config[secti...
var data = { daily: [ { "ref_date": "20170412", "session_cnt": 8, "visit_pv": 49, "visit_uv": 4, "visit_uv_new": 1, "stay_time_uv": 73.75, "stay_time_session": 36.875, "visit_depth": 3.25 }, { "ref_date": "20170413", "session_cnt": 10, "visit_pv": 81, "visit_uv": 8, "visit_...
import Datas from 'src/main/datas'; import API from 'src/util/api'; import UI from 'src/util/ui'; import Roc from '../rest-on-couch/Roc'; import ExpandableMolecule from './ExpandableMolecule'; import Nmr1dManager from './Nmr1dManager'; import MF from './MF'; import { createVar } from './jpaths'; import elnPlugin from...
class Person { constructor() { this.name = Math.round(Math.random() * 1000000000000); this.happiness = 50; this.x = 0; this.y = 0; this.homeIndex = null; // reference to building this.workIndex = null; this.sprite = null; this.target = new RocketBoots.Coords(0, 0); this.busyCooldown = 1; this.speed...
rmcDataStore = new Ext.data.Store({ id: 'rmcDataStore', proxy: new Ext.data.HttpProxy({ url: CARPETA+'/listado', method: 'POST' }), // baseParams:{tampagina: TAM_PAGINA}, reader: new Ext.data.JsonReader({ root: 'rows', totalProperty: 'total', id:...
'use strict'; const axios = require('axios'); const config = require('../config'); const db = require('../models'); const mongoose = require('mongoose'); const common = require('../common'); const dbscan = require('@cdxoo/dbscan'); const math = require('mathjs'); exports.traverseProvenance = async (startTaskId) => {...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { 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] =...
/* * Gothicvania Cemetery Demo Code * by Ansimuz * Get more free assets and code like these at: www.pixelgameart.org * Visit my store for premium content at https://ansimuz.itch.io/ * */ var game; var player; var folkIndex = 0; var gameWidth = 384; var gameHeight = 224; var bg_moon; var bg_mountains; var bg_grave...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; ...
//表格设置 // console.log(window.location.host); // console.log(window.location.port); function SetFormValue(jsonstring) { var data = JSON.parse(jsonstring); //给表单赋值 layui.form.val("formpatient", { "PatientName": data.PatientName, "PatientSex": data.PatientSex, "PatientBirthday": data.Pa...
 //// new start //function Login_passcode_check() { // try { // var mobile_no = $("#txt_mobile").val(); // if (mobile_no == undefined || mobile_no == null || mobile_no == '') { // alert('Enter Mobile Number'); // } // else { // var getdata = new Webservicecall('http...
import imagePoDwF01H from './po_dw_f_01_h.jpg'; import imagePoDwF02H from './po_dw_f_02_h.jpg'; import imagePoDwF03H from './po_dw_f_03_h.jpg'; import imagePoDwF04H from './po_dw_f_04_h.jpg'; import imagePoDwF05H from './po_dw_f_05_h.jpg'; import imagePoDwF06H from './po_dw_f_06_h.jpg'; import imagePoDwF07H from './po_...
import React from 'react'; import { Container,Accordion, Card, Row, Col, ButtonGroup, Button, Form, FormGroup, ToggleButton} from 'react-bootstrap'; import fetcher from './fetcher'; import { Ring, Roller, Default } from "react-awesome-spinners"; import PeriodDateController from './perioddatecontroller' import Period...
// MIT License // // Copyright (c) 2021 <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, merg...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; this.EXPORTED_SYMBOLS = ["BrowserIDManager"]; const {classes: Cc, interfaces: Ci, utils: Cu, resul...
/* Copyright (c) 2016 <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 writing, soft...
/* global Mapillary:false */ import { dispatch as d3_dispatch } from 'd3-dispatch'; import { select as d3_select } from 'd3-selection'; import RBush from 'rbush'; import { geoExtent, geoScaleToZoom } from '../geo'; import { svgDefs } from '../svg/defs'; import { utilArrayUnion, utilQsString, utilRebind, utilTiler } f...
// Fdrandom.js - Fast deterministic random lib /** @author <NAME> ** This is free and unencumbered software released into the public domain ** in homage to human ingenuity against greed and hatred. */ var newFdrPot = function(){ var FdrHotPot //a static instance for indeterminables return (function(sd)...
(function($){ if( pagenow == 'edit-wpsc_product_category' ) { function category_sort(e, ui){ var order = $(this).sortable('toArray'), data = { action: 'category_sort_order', sort_order: order, parent_id: 0 }; jQuery.post(ajaxurl, data); } $(function(){ var table = $('body.edit-tags-...
var csInterface; var VERSION = 1; var EXPORT_SETTINGS = "exportSettings"; var ACTIVE_PANELS = "activePanels"; var AUTO_SAVE_TIMELINE = "autoSaveTimeline"; var SOURCE = "source"; var FILE = "file"; var PRECISION = "decimalPointPrecision"; var EXPAND_SYMBOLS = "expandSymbols"; var RENDERING = "rendering"; var ROOT_SCA...
var SCServerSocket = require('./scserversocket'); var AuthEngine = require('sc-auth').AuthEngine; var formatter = require('sc-formatter'); var EventEmitter = require('events').EventEmitter; var Emitter = require('component-emitter'); var base64id = require('base64id'); var async = require('async'); var url = require('u...
// created by <NAME> -- contributed to TCEC ------------------------------------------------------------------------ // todo: try to remove duplicate code for different colors (in `parse_pgn_for_crosstable()`) // todo: clean up `if` ladder when not sleepy (in `rank_crosstable()`) // NOTE for integration: // - find "C...
Collect.DataManager.MapPanelComposer = function(panel) { var $this = this; this.$panel = panel; this.map = null; this.initialized = false; this.dependenciesLoaded = false; this.verticalPadding = 220; this.horizontalPadding = 50; this.startLat = 30; this.startLon = 0; this.startZoom = 4; this.coordinat...
var gulp = require('gulp'); var gulpTsLint = require('gulp-tslint'); var gulpTypescript = require('gulp-typescript'); var sourcemaps = require('gulp-sourcemaps'); var path = require('path'); var fs = require('graceful-fs'); var child_process = require('child_process'); var ncp = require('ncp'); var mkdirp = require('mk...
"use strict"; function scroll_to_class(element_class, removed_height) { var scroll_to = $(element_class).offset().top - removed_height; if($(window).scrollTop() != scroll_to) { $('.form-wizard').stop().animate({scrollTop: scroll_to}, 0); } } /* ids of screen to display */ var form_prefix_id = '.form-wizard fie...
var widgets = require('@jupyter-widgets/base'); var _ = require('underscore'); var moment = require('moment'); window.$ = window.jQuery = require('jquery'); var date_filter = require('./qgrid.datefilter.js'); var slider_filter = require('./qgrid.sliderfilter.js'); var text_filter = require('./qgrid.textfilter.js'); var...
// # can/compute/proto_compute (aka can.Compute) // // Allows the creation of observablue values. This // is a prototype based version of [can.compute](compute.html). // // can.Computes come in different flavors: // // - [Getter / Setter functional computes](#setup-getter-setter-functional-computes). // - [Property com...
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
import sort from './vdom'; import { setAttribute, removeAttribute, hasAttribute, getAttribute, appendChild, appendChildren, removeChild, createElement, querySelector, insertBefore, querySelectorAll, offsetHeight, offsetWidth, styled } from './node-ops'; import createFixed from './fixed'; imp...
// TODO: https://konvajs.org/docs/sandbox/Drop_DOM_Element.html // var width = window.innerWidth; // var height = window.innerHeight; // window.onresize = function(){ location.reload(); } var width = document.getElementById('canvas-div').clientWidth; var height = (window.innerHeight * 0.5); console.log("Height: " + ...
var logins = alasql('SELECT * FROM logins'); //console.log(logins.length); //console.log(logins[0].emp_id); var user = alasql('SELECT * FROM users WHERE id=?',[logins[0].emp_id]); //console.log(user[0].name); // create search box var rows = alasql('SELECT * FROM whouse;'); for (var i = 0; i < rows.length; i++) { var ...
import React, { Component } from 'react'; import Highcharts from 'highcharts/highstock'; import HighchartsReact from 'highcharts-react-official'; import './TimeSeriesPanel.css'; import DropdownPanel from './DropdownPanel'; const prefixLeftPlotLine = 'plotLine_left_'; const prefixRightPlotLine = 'plotLine_right_'; cl...
// presenter js var slaveWindow = null; var nextWindow = null; var notesWindow = null; var paceData = []; section = 'notes'; // which section the presenter has chosen to view $(document).ready(function(){ // set up the presenter modes mode = { track: true, follow: true, update: true, slave: false, notes: false,...
const ELEMENTS = {fire: 0, water: 1, earth: 2, wind: 3, light: 4, dark: 5, noEle: 6}; const RAID_TIER = {A: 1, B: 2, Magna: 4, Ancient: 5, Epic: 6, Nightmare: 7, Primarch: 8, Genesis: 9, Ultimate: 10, Rapture: 11}; // These aren't exactly corresponding, just ease of use. whatever // map item ids to raids that use them ...
/*! @license MIT ©2014–2016 <NAME>, Ghent University – imec */ // jQuery widget for Triple Pattern Fragments query execution // This exports the webpacked jQuery. window.jQuery = require('../deps/jquery-2.1.0.js'); var N3 = require('n3'); // Comment out the following two lines if you want to disable YASQE var YASQE =...
"use strict"; //make sure any console statements window.console = window.console || { log: function() {} }; /** * Load libraries */ var $ = require("jquery"), CodeMirror = require("codemirror"), utils = require("./utils.js"), yutils = require("yasgui-utils"), imgs = require("./imgs.js"), Clipboard = requ...
/** TODOs Load group data key-value SA vs group no Load SAs Lookup group number for each SA object Add object to layer group based on group number Filter layers based on cluster/group number Add zscores data Display zscores widget and filter based on group selection Use zscores widget to filter map I...
'use strict'; // TODO - add a loading animation of some kind? Something to tell users that it's official but still loading? // TODO - When adding the small implementations (i.e., with no controls), reference #2803 for designs // Editable vars const stylesheetPath = '/static/css/widgets/aggregate-totals.css'; // const...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.config = exports.root = exports.current = exports.pop = exports.toast = exports.confirm = exports.alert = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof...
/* eslint-disable react-hooks/exhaustive-deps */ /* eslint-disable array-callback-return */ import axios from "axios"; import { useEffect, useState } from "react"; import { useHistory, useParams } from "react-router"; import Select from "react-select"; import toast, { Toaster } from 'react-hot-toast'; import $ from "jq...
// ==UserScript== // @name Userscript For Steam Exchange Point (steamep.com) // @description Expand user experience on steamep.com and fix a small bug (hopefully). // @downloadURL https://raw.githubusercontent.com/cnleo/userscripts/master/steamep/steamep-userscript.user.js // @updateURL https://raw.githubuserc...
const BN = require('bn.js'); const utils = require('./utils/utils.js'); const bn128 = require('./utils/bn128.js'); const elgamal = require('./utils/elgamal.js'); const Service = require('./utils/service.js'); const ABICoder = require('web3-eth-abi'); const { soliditySha3 } = require('web3-utils'); var sleep = (wait) ...
var VisualValue = function () { this.set('iVoLVERClass', 'visualValue'); this.set('isVisualValue', true); this.set('xmlNodeName', 'visualValue'); this.set('originX', 'center'); this.set('originY', 'center'); this.set('transparentCorners', false); this.set('perPixelTargetFind', false); ...
//@ts-check /* Copyright: (c) 2018-2020, <NAME> <<EMAIL>> GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) */ const { EventEmitter } = require('events') //@ts-ignore const constants = require('./constants.json'); const util = require('util'); const debug = util.debuglog('n...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const DefaultDataFactory = require("@rdfjs/data-model"); const graphql_1 = require("graphql"); const sparqlalgebrajs_1 = require("sparqlalgebrajs"); /** * Translate GraphQL queries into SPARQL algebra. */ class Converter { constructor(se...
var App = require("/core"); var Api = require("api"); var helpers = require("helpers"); var sunday = helpers.nextSunday(new Date( (new Date().getTime() - (7*24*60*60*1000)) ) ); var currentWeek = sunday; Ti.API.info("currentWeek " + currentWeek); var currentWeekId = "-1"; var monday = new Date(sunday.getTime() +...
const express = require("express"); const Sequelize = require("sequelize"); const router = express.Router(); const auth = require("./middleware/auth"); const path = require('path'); const fs = require('fs'); const request = require('request'); const { sendMail } = require("../../mailer") const { Book, Author, Organi...
import Promise from 'bluebird' import { get, set } from 'lodash' // Fetch from the Roll API function callApi (command = '1d20') { return new Promise(async (resolve, reject) => { try { const request = await fetch(`https://roll.astraltabletop.com/v1/${encodeURIComponent(command)}`) if (request.ok) { ...
import React, { useState } from 'react' import { Link, useParams, useHistory, useLocation } from "react-router-dom"; import axios from 'axios' import Img from '../components/Img' import Button from '../components/Button' import VideoMediaHorizontal from '../components/VideoMediaHorizontal'; const VideoShow = (props) ...
/** * @license * Copyright (c) 2015 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
import {CondFlags, ConfigFlags, HoveredFlags, NavMoveFlags} from "../flags.js"; import {WindowFlags} from "../window.js"; import {Dir} from "../enums.js"; import {Rect, ValRef, Vec2} from "../types.js"; export var PopupPositionPolicy = // enum { Default: 0, ComboBox: 1 }; export class PopupRef { construct...
/*global d3 $*/ $.GLOBALS = { load_start_time : (new Date()).getTime(), load_end_time : 0, bigchart_width : 600, bigchart_height: 400, tables_max_rows: 500, chart_color_range_start : "#0849b3", chart_color_range_start : "#b34908", chart_colors : ["#c6dbef", "#9ecae1", "#6baed6"], x...
let show = args.widgetParameter if (show == null) { show = "sports" } // add refresh of the earliest stop time + 10seconds let params = args.queryParameters // log("here") // log(args.queryParameters) if ( params.alert == 1 ) { log("here") log(params.type) log(params.desc) let a = new Alert(); a.title ...
/** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the ...
window.$ = window.jQuery = require('jquery'); Electron = require('electron'); tippy = require('tippy.js').default; const TooltipArrow = true; const TooltipAnimation = 'shift-away'; const TooltipPlacement = { // For controls that contain both a label and an input Field: 'bottom-end', // For controls that are eith...
//全局变量 var jgjcsz = 4;//机构级次设置,增加机构,最低可增加的级次,默认为0(不限) var bmjc_0 = 0;//机构级次的初始值,在修改机构时用到 var str="新增机构",rowDta_jg = null,cbtnArr = window.top.buttonAuth; var colMap ={ colNames : ['ID','','','','','机构编码','机构名称','操作','纳税人识别号','所属纳税人识别号','上级机构编码','上级机构名称','开票标志','有效标志','创建时间'], colModel: [ {name:'id',index:'id', widt...
Ext.require([ 'GeoExt.component.Map', 'GeoExt.data.store.LayersTree' ]); let mapComponent; let mapPanel; let treePanel, timeSlider; let selectClick; let TIMES = []; let shapefiles = [], indices = []; let noCacheHeaders = new Headers(); // HACK: Force disable cache, otherwise timing problem when going back t...