text
stringlengths
5.97k
41.2k
function handleEnterKey(e) { var charCode = (typeof e.which == "number") ? e.which : e.keyCode if (charCode === 13 || charCode === 32) { // Enter or Space key e.preventDefault(); e.currentTarget.click(); } } function describePlural(value, unit) { return value + " " + unit + (value == 1 ?...
var roleRolesHandleType; var systemRoleRoleData; function roleTreeShow(data){ systemRoleRoleData = data; var bodydivs = $("#bodydivs"); var rightmouse = $("<div id='rolerMenu' class='rMenu'><ul><li data-method='setTop' id='addRoleWindow'>增加节点</li>" + "<li data-method='setTop' id='updateRoleWindow'>修改节点</li><li id...
import sol from './sol.js'; let now; let observer; let noons; let times; let dial; let sunClickHandle; const $nightRect = document.querySelector('#night-rect'); const $face = document.querySelector('#face'); const $civilArc = document.querySelector('#civil-arc'); const $dayArc = document.querySelector('#day-arc'); co...
/***************************************************************************/ /******** Scroll Top ********/ /***************************************************************************/ $(document).on('click', '#scrollTop', function () { $("body:not(:animated)").animate({ scrollTop: 0 }, 500); $("html")...
/** * Our version of knockout's ko.observableArray(), similar but more efficient. It * supports fewer methods (mainly because we don't need other methods at the moment). Instead of * emitting 'arrayChange' events, it emits 'spliceChange' events. */ var ko = require('knockout'); var Promise = require('bluebird'); ...
const _ = require('lodash'); const cron = require('cron'); const EventEmitter = require('events'); const moment = require('moment'); const Promise = require('bluebird'); const { BU } = require('base-util-jh'); const { BM } = require('base-model-jh'); const { dcmConfigModel: { nodePickKey }, dcmWsModel: { transmit...
// Portions Copyright 2019 <NAME> (https://github.com/Jimbly/) // Released under MIT License: https://opensource.org/licenses/MIT /* eslint no-shadow:off */ const engine = require('./engine.js'); const { max, round } = Math; const safearea_pad = new Float32Array(4); // left, right, top, bottom // 0: x0_real // 1: y0...
; function GetDay(day) { if (day.length == 1) { day = "0" + day; } return day; } function GetMonth(month) { switch (month) { case "January": return "01"; case "February": return "02"; case "March": return "03"; case "April":...
var MOB_AFFECT = 1048576; // Flag: u var MOB_AGGR_EVIL = 256; // Flag: i var MOB_AGGR_GOOD = 512; // Flag: j var MOB_AGGR_NEUTRAL = 1024; // Flag: k var MOB_AGGRESSIVE = 32; // Flag: f var MOB_AWARE = 16; // Flag: e var MOB_DOUBLE = 16777216; // Flag: y var MOB_HELPER = 4096; // Flag: m var MOB_HUNTER = 4194304; // Fla...
import React from 'react' import { Link } from 'react-router-dom' import ArrowBackIcon from '@material-ui/icons/ArrowBack'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import IconButton from '@material-ui/core/IconButton'; import Typography from '@material-ui/core/Typ...
//// SCENE import config from './config.js' import suitcaseData from '../data/total-international-tourist-arrivals.js' import planeData from '../data/international-flight-passenger-km.js' import shipData from '../data/international-cruise-passengers.js' import state from './state.js' const //// DOM Elements. ...
/*eslint no-mixed-spaces-and-tabs: ["error", "smart-tabs"]*/ const HttpsClient = require('./httpsclient'); const qs = require('querystring'); const pkgMeta = require('../package.json'); const Bitcoin = require('bitcoinjs-lib'); const helper = require('./helper'); const ECKey = require('./key'); const networks = requi...
import clamp from 'https://cdn.jsdelivr.net/gh/mreinstein/math-gap/src/clamp.js' import findPosOnScale from './find-position-on-scale.js' import html from 'https://cdn.skypack.dev/snabby?min' import lerp from 'https://cdn.jsdelivr.net/gh/mreinstein/math-gap/src/lerp.js' import throttle ...
"use strict"; 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) { t...
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...
"use strict"; /** * Copyright 2020 Google 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-2.0 * * Unless required by applicable law ...
// Copyright (c) 2011, <NAME>, <NAME> import { Vector } from './vector'; import { Matrix } from './matrix'; import { Plane } from './plane'; import { Sylvester } from './sylvester'; // Line class - depends on Vector, and some methods require Matrix and Plane. export class Line { // Returns true if the argument occup...
"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 ...
require('./bootstrap'); // instantiate Vue instance on page new Vue({ el: '#app', data: { first_name: '', email: '', city: false, showErrors: false, subscribing: false, subscribed: false, }, methods: { subscribe() { this.showErrors = false; if (!this.canSubscribe) { if (this.hasErrors) ...
"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]; })...
var express = require('express'); var router = express.Router(); var data = require("../data"); var signin = data.signin; var provider = data.provider; var seeker=data.seeker; var async = require("async"); var xss = require("xss"); router.get("/:id", (req, res) => { if(xss(req.params.id) === "provided") { ...
const escapeHtmlChar = tgtText => { return tgtText.replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;'); }; const escapeReST = tgtText => { return tgtText.replace(/`/g, '\\`'); }; const escapeMd = tgtText => { return tgtText.replace(/\[/g, '\\[') .replace(/]/g, '\\]'); }...
///////////////////////////// Game math ///////////////////////////////////////// function damage_vs_defense(raw_dmg, def) { if (raw_dmg <= 0) return 0; if (def < 0) def = 0; return Math.ceil(raw_dmg - raw_dmg*(def/(raw_dmg+def))); } function reduce_by_percent(raw, percent) { var reduction = Math.floor(raw * pe...
var palavraForca = []; var erro = 0; var turno = 0; var palavrastby; var dica = ""; var letra; function load() { document.querySelector("dialog").open = true; var btnjogar = document.querySelector("#jogar"); var testarletra = document.querySelector("#btninformarletra"); teclado("hidden"); var...
var loaderPage = $('.preloader'); var ID_PROV_SEARCH = ''; var ID_PROP_SEARCH = ''; var CANT_ORDEN = 0; var COST_UNI_ORDEN = 0; var TOT_ORDEN = 0; var ID_PARTE_ORDEN = '0'; var TIPO_ORDEN = 'A'; //-> A para alta y C para cambio var NOW = new Date(); var TODAY = NOW.getFullYear() + '-' + (NOW.getMonth() + 1) + '-' + NOW...
"use strict"; /* Dashboard entrypoint */ window.cvat = window.cvat || {}; window.cvat.dashboard = window.cvat.dashboard || {}; window.cvat.dashboard.uiCallbacks = window.cvat.dashboard.uiCallbacks || []; window.cvat.dashboard.uiCallbacks.push(function(elements) { elements.each(function(idx) { let elem = $...
/** Calendar calendar.html <!-- PAGE LEVEL STYLES --> <link href="assets/plugins/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css" /> <!-- PAGE LEVEL SCRIPTS --> <script type="text/javascript" src="assets/plugins/fullcalendar/fullcalendar.js"></script> <script type="text/javascript" s...
'use strict'; export const axisUp = new THREE.Vector3(0, 1, 0); export const axisDown = new THREE.Vector3(0, -1, 0); export const axisLeft = new THREE.Vector3(-1, 0, 0); export const axisRight = new THREE.Vector3(1, 0, 0); export const axisForward = new THREE.Vector3(0, 0, 1); export const axisBackward = new THREE.Vec...
// Load new instance of TLE.js var tlejs = new TLEJS(); var lastPositionOfNextPass; var nextPass = null // Get SATCAT number for satellite and // return s n2yo link for the satellite function getSatelliteLink(tles) { var satNum = tlejs.getSatelliteNumber(tles); return "https://www.n2yo.com/satellite/?s=" + satNum;...
/*! * Native JavaScript for Bootstrap Offcanvas v4.0.7 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ function queryElement(selector, parent) { const lookUp = parent && parent instanceof El...
function ChapList(){ this.list=[]; this.render=function(){ var html=""; for(i in this.list) { html+=this.list[i].renderpanel(); } $("#newchapter").before(html); for(i in this.list) { this.list[i].bindevent(); } }; this.load=function(callback) { $this=this; $.ajax({ url:"/Chapterapi/Get...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs"); const path = require("path"); const ts = require("typescript"); const webpack = require("webpack"); const app_utils_1 = require("../utilities/app-utils"); const webpack_config_1 = require("../models/webpack-config"); ...
var SequentialLoader = function() { var SL = { loadJS: function(src, onload) { //console.log(src); // add to pending list this._load_pending.push({'src': src, 'onload': onload}); // check if not already loading if ( ! this._loading) { ...
import $ from 'jquery'; import { scheduleOnce } from '@ember/runloop'; import EmberObject, { computed, get, set, setProperties } from '@ember/object'; import { alias, equal, gte } from '@ember/object/computed'; import { inject as service } from '@ember/service'; import Component from '@ember/component'; import Driver f...
/////////////// EDITOR STUFF //workaround for cross domain origin requests issue document.domain = document.domain; console.log("localStorage",localStorage) switch (localStorage.length) { case 0: $("#treeHandle").css({ float: "left", top: 20, left: 10, width: 300}) $("#codeViewHandle").css({ float: "left", top: 2...
class GreenAudioPlayer { constructor(player, options) { this.audioPlayer = typeof player === 'string' ? document.querySelector(player) : player; const opts = options || {}; const audioElement = this.audioPlayer.innerHTML; this.audioPlayer.classList.add('green-audio-player'); ...
#!/usr/bin/env node /** * ============================================================================ * @fileOverview cva-create * * A node command for creating an entire Cordova project based on configurable * parameters * * Author : <NAME> (www.whealy.com) * Based on an original idea by...
/**************************************************************************** * Copyright 2021 EPAM Systems * * 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...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
"use strict"; /* * Implements Gather Model * * Gather States * - Gathering * - Election (Electing leaders) * - Selection (Selecting teams) * - Done * */ const Gatherer = require("./gatherer"); const StateMachine = require("javascript-state-machine"); const Server = require("./server"); // const discordBot = ...
/* exported loadcomment, init_repeat_cmt, showcmt, voteComment, cmt_reply, login, clickToSubmitComment, logout, checkLogin, socialLogin */ // MARK: User Comments var commentfolder ='/index.php/comments'; function loadcomment(storyid, theid, type) { var url, new_comment_prefix, common_comment_prefix, user_icon='', ...
import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View, Image, ImageBackground, TouchableOpacity, Alert, StatusBar, FlatList, ActivityIndicator,AsyncStorage } from 'react-native'; import Index from './index.js'; import { Action, Actions } from 'react-native-router-flux'; e...
import template from './sw-tree.html.twig'; import './sw-tree.scss'; const { Component } = Shopware; const { debounce, sort } = Shopware.Utils; /** * @public * @status ready * @example-type static * @description you need to declare the functions createNewElement, getChildrenFromParent in the parent. * @component...
function initConfigs(shouldCreateTooltip = false, e) { const userSettingsKeys = Object.keys(configs); /// Load user settings chrome.storage.local.get( userSettingsKeys, function (loadedConfigs) { configs.changeTextSelectionColor = loadedConfigs.changeTextSelectionColor ?? false; configs.textSelec...
import React from "react"; import { Button, CssBaseline, TextField, Box, Typography, makeStyles, Container } from "@material-ui/core"; import ImageUploader from "react-images-upload"; import Copyright from "./Copyright"; import { withAuthorization } from "./Session"; import BackButton from "./BackButton"...
/*global document,$,alert,window,JSON */ var concat = Array.prototype.concat; // Global experiment data var current_experiment = {}; var options_name; var final_experiment; var synmapRenderer = "syn3d-1.0.js"; function search_genomes (search_term) { var edit_genome = $(geneSelect[0]); edit_genome.autocomplete("...
// header up and down on scroll var prev = 0; var $window = $(window); var header = $('header'); function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = rege...
/* global web */ var ClassVisualization = function(){ this.sampleData = null; //Parameters for GT/Det Canvas visualization this.canvas_gt = null; this.canvas_det = null; this.canvas_overlay = null; this.ctx_gt = null; this.ctx_det = null; this.ctx_overlay = null; this.scale=2; ...
var collapseFields = document.querySelectorAll('[data-toggle-div]'); for (var i = 0; i < collapseFields.length; i++) { collapseFields[i].addEventListener('click', function (event) { event.preventDefault(); var toggleDiv = document.getElementById(event.target.getAttribute('data-toggle-div')); ...
import React, {useEffect, useState, useCallback} from 'react'; import './style.css'; import ContentPanel, { ContentPanelBody, ContentPanelHeaderButton, ContentPanelHeaderButtonIcon, ContentPanelTitle, ContentPanelTitleIcon } from '../../components/content-panel'; import FlexBox from '../../components/flexbox'; im...
/** * COMMON ACTION CONSTANTS ===================================================== * ============================================================================= */ export const SEPARATOR = ' -> ' // ACTION type separator string export const RESULT_SEPARATOR = '_' // RESULT type separator string export...
$(function() { //累计金额 var daoshu = function(ele){ var state = false, num = parseInt(ele.text()), arr = function(){ var arr1 = [], value = function(){return Math.floor(Math.random()*10)}; for(var i = 0 ; arr1.length != 10 ; i++){ var valueNum = value(); if($.inArray(valueNum,arr1) == -1...
/** * Autocompleter * * http://digitarald.de/project/autocompleter/ * * @version 1.1.2 * * @license MIT-style license * @author <NAME> <mail [at] digitarald.de> * @copyright Author */ var Autocompleter = new Class({ Implements: [Options, Events], options: {/* onOver: $empty, onSelect: $empty, on...
/** * File: maddash.js * Description: This file contains bases classes for MaDDash framework. * * Authors: <NAME> <<EMAIL>> */ /** * Class: MaDDashDataSource * Description: Connects MadDash widgets to backen data. Created * with a URI that specifies the location of some REST data. You then * call the "co...
import SETTINGS from "./index.js"; import CANVAS from "./utilities.js" const TEXT_PADDING = 6; const MAX_ARRIVALS = 5; const FILTER = new PIXI.filters.BlurFilter(); const SEARCH_BOX_ELEMENT = document.getElementById("search_box"); const convertColor = color => "#" + Number(color).toString(16).padStart(6, "0"); let g...
"use strict"; 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) { t...
const app = getApp() const { guid, suid, objTypeof, isFunction, isString, isNumber, isObject, isArray, sClone, // simple clone delItem } = require('./utils') function sortItem(item) { let sortKeys = ['title', 'img', 'li'] let notUseKeys = ['title', 'img', 'li'] let oriKeys = [] let finalKey...
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(ex...
'use strict'; const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const cloneDeep = require('lodash.clonedeep'); chai.use(chaiAsPromised); chai.should(); describe('MetaDataParser', () => { const Entry = require('../../lib/classes/entry'); const MetaDataParser = require('@voxpelli/me...
/* eslint-disable no-param-reassign */ const sha256 = require("sha256"); const get = require("get-value"); const { CONFIG_CATEGORIES, MAPPING_CONFIG } = require("./config"); const { EventType } = require("../../../constants"); const { constructPayload, defaultPostRequestConfig, defaultRequestConfig, flattenJso...
var ILLUSTRATION = { x: 0.0, y: 0.0, scale: 1.0, }; var ANIMATION_CONTROLLER = { anchorRotation: Math.PI * 0.1, shadowTranslation: 50.0, pupilRotation: 0.0, mouthScale: 0.8, cloudTranslation: 500.0, emoji: '🥱', } $.fn.getTextMetrics = function (text, fontSize = '16px') { ...
import React from "react" import PropTypes from "prop-types" import Link from "gatsby-link" import Helmet from "react-helmet" import styled, { injectGlobal } from "styled-components" import Footer from "../components/Footer" import RegisterForm from "../components/RegisterForm.js" import Nav from "../components/Nav.js...
const btnGenera = document.getElementById('btnGenera'); const inputDate = document.getElementById('inputDate'); const fechareporte = document.getElementById('fechareporte'); const btnClickDetalles = document.querySelector('#editar-table tbody'); const btnClickGuardar = document.querySelector('#detalles-table tfoot'); c...
let udContent=""; const maxTokensDisplayed=2000; const fieldNames=["ID","FORM","LEMMA","UPOS","XPOS","FEATS","HEAD","DEPREL","DEPS","MISC"]; const nbFields=fieldNames.length; let tokens, // tokens must be global to get sentence info not in the table selectedTR, // current selected if !=null (useful...
"use strict"; /* global document,window,console,requestAnimationFrame,setTimeout*/ /* jshint -W097,-W014 */ //turn off use strict and comma styling warnings //----- Canvas init // Handles var canvas = document.querySelector('canvas'); var container = document.querySelector('#canvas-container'); var canvasBoundingRect...
var car = (function () { var car = null; $.ajax({ 'async': false, 'global': false, 'url': "/admin-transit/CM_CAR/API", 'dataType': "json", 'success': function (data) { car = data; } }); return car; })(); var position = {lat: 18.787635, lng: ...
"use strict"; 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) { t...
const rp = require('request-promise'); const ethUtil = require('ethereumjs-util'); const BigNumber = require('bignumber.js'); const _ = require('lodash'); const ActionCable = require('./actioncable'); const System = require('./system'); const TokenManager = require('./token_manager'); const Balances = require('./balanc...
import { GPUIndexFormat, GPUTextureFormat, GPUStoreOp } from './constants.js' import WebGPUObjects from './WebGPUObjects.js' import WebGPUAttributes from './WebGPUAttributes.js' import WebGPUGeometries from './WebGPUGeometries.js' import WebGPUInfo from './WebGPUInfo.js' import WebGPUProperties from './WebGPUProperties...
function getWorldName () { let str = "World α" if (player.b.banking && player.b.unl) str += " + " + tmp.buyables.b[[11, 12, 13, 21, 22, 23, 31, 32].find(x => tmp.buyables.b[x].canAfford)].title if (player.bd.building) str += " + " + tmp.buyables.bd[player.bd.building].title + " Building" if (player.t.active) str +...
const express = require('express') const { aggregate } = require('@makerdao/multicall'); const app = express() const port = parseInt(process.env.SERVER_PORT) app.all('*', (req, res, next) => { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "X-Requested-With"); res.head...
"use strict"; // Copyright IBM Corp. 2018. All Rights Reserved. // Node module: oasgraph // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT Object.defineProperty(exports, "__esModule", { value: true }); // Imports: const request = require("request"); const O...
// the prototype-oriented programming library function object(o) { function F() {} F.prototype = o; return new F(); } // create a new object by using the given prototype then copying over // all properties from v. function derive(proto,v) { o = object(proto); for(p in v) o[p] = v[p]; return o; } // ex...
//компонент - шаблон, для сождания новых компонентов import React, {PropTypes, Component} from 'react'; import styles from './ReservationPage.scss'; import withStyles from '../../decorators/withStyles'; import withViewport from '../../decorators/withViewport'; import Location from '../../core/Location'; import siteUr...
var mydata = []; var check = true; var lastrow,lastcell; var BUSINESS_CLASS = ""; var vm = new Vue({ el : '#rrapp', data : { warehourse:[], WH_NUMBER:"" }, methods : { refresh : function() { $('#dataGrid').trigger('reloadGrid'); }, onPlantChange : function(event) { console.log("-->onPlantChange we...
// MASS MULTIPLIERS - these values represent the relationship between the fish's properties and its mass var ENERGY = 10, MAX_SPEED = 12, MAX_FORCE = .1, SEPARATION_RANGE = 30, LOOK_RANGE = 100, SMELL_RANGE = 300, LENGTH = 20, FERTILITY = .1, BITE = .1; // Fish constructor function Fish(mass, x, y, hue) { // ...
/* Created by Marangelo on 30/01/2016.*/ window.addEventListener("load",getMaster()); $(document).ready(function () { // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger2').leanModal(); $('#searchReporte').on( 'keyup', function () { v...
var data = new Object(); data['character_name'] = 'Basstss'; data['species_talent'] = 'Saurian'; data['speciality'] = 'Tribesman'; data['class_1'] = 'Scout'; data['level_1'] = 3; data['class_2'] = 'Soldier'; data['level_2'] = 2; data['class_level_1'] = data['class_1'] + ' / ' + data['level_1']; data['class_l...
window._loadedLangs['zh-CN'] = { 'Other Recommended Sites Other Recommended Sites Other Recommended Sites Other Recommended Sites': '一些其他站', ',': ',', '.': '。', '(': '(', ')': ')', '?': '?', '!': '!', ':': ':', '"': el => determineQuotes(el), "'": el => determineQuotes(el, 'single'), '[...
/* eslint-disable no-new-func, no-new-wrappers, no-new-object, no-array-constructor, prefer-arrow-callback */ "use strict"; const { humanize } = require("../../"); const { expect } = require("chai"); describe("humanize()", () => { describe("special values", () => { it("should output null as null", () => { ...
/* FTUI Plugin * Copyright (c) 2015-2017 <NAME> <<EMAIL>> * Under MIT License (http://www.opensource.org/licenses/mit-license.php) */ /* global ftui:true, Modul_widget:true */ "use strict"; function depends_famultibutton() { var deps = []; if (!$.fn.famultibutton) { deps.push(ftui.config.basedir ...
// A ORIENTAÇÃO A OBJETOS TEM 4 PILARES, QUE SÃO: // ABSTRAÇÃO // Divide-se em 4 modelos: Entidade, Identidade, Características (atributos) e Ações (métodos). // modelo (template) do objeto [ou modelo de entidade] - class // * Boa prática: definir classes com letras maiusculas nas pri...
import { lang_util } from "../utils/lang"; import { collection_util } from "../utils/collection"; import { text_util } from "../utils/text"; import { object_util } from "../utils/object"; import { jqapi } from "../jqapi"; import { matchers } from "../matchers"; var ADDRESS_STOPWORDS = [ "ао", "аобл", "дом"...
#! /usr/local/bin/node /*jslint node:true */ // run3.js // ------------------------------------------------------------------ // // Run a set of REST requests from Node. This is to generate load for // API Proxies, according to the jobs stored in App Services. The first // step is to retrieve the "job definition" fro...
// test.js // This is the primary framework for running regression tests const fs = require('fs-extra'); const path = require('path'); const got = require('got'); const AdmZip = require('adm-zip'); const program = require('commander'); const rimraf = require('rimraf'); // Local modules const config = require('./nod...
'use strict'; const { EventEmitter } = require('events'); const debug = require('debug'); const fs = require('fs'); const path = require('path'); // lazy requires let sanitizePath; let express; const flowDebug = debug('xible:flow'); /** * Does a very simple html encode of the input string. * Only replaces double ...
/** * Created by Administrator on 2017-03-31. * 专题节目总集 * depends on edit.js */ $(function() { baseurl = document.getElementById("js-baseurl").value; // 专题节目总集名称列表 var titleTable = document.getElementById("SeriesTable"); padScrollTable(titleTable, 14, 4); bindTableEvent(titleTable); ...
/** * @file tree-select 树选中组件 * @author fuqiangqiang <<EMAIL>> */ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; import Icon from '../icon'; import Tree from '../tree'; import Selector from './Selector'; import Dropdown from '../dropdown'; import Empty from '../empty'; import './styl...
'use strict'; /** * @ngdoc Controller * @name controller:overviewCtrl * @author <NAME> * @description * # overviewCtrl * */ var map,buldingMap; var count = 0; var meterList; var infobox; var iframe; var colors = ['rgba(60,162,224, 0.7)', 'rgba(138, 212, 235, 0.7)', 'rgba(254, 150, 102, 0.7)', 'rgba(95, 107, 1...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, 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 ri...
import React, {Component} from 'react'; import { StyleSheet, View, ScrollView, Text, TextInput, TouchableOpacity, Image, SafeAreaView } from "react-native"; import {Button, TextareaItem} from "antd-mobile-rn"; import {windowWidth, PublicStyles, ThemeStyle} from '../../utils/style'; impor...
var suppress_connection_errors=false; var registerdModeSku = 'colorpick_eyedropper_registered_mode'; var searchQuery = window.location.search; var nbsp='\u00A0'; var httpsWorks=false; function testHttps(doneCallback){ if( httpsWorks ){ doneCallback(); return; } var xhr = getXMLhttpObject(); xhr.onreadystatecha...
"use strict"; const path = require("path"), http = require("http"), {METHODS} = http, EventEmitter = require("events"), fs = require("fs"), etag = require("tiny-etag"), precise = require("precise"), lru = require("tiny-lru"), {all, delimiter, levels, months} = require(path.join(__dirname, "constants.js")), {c...
/* * This content script takes input from its webpage and executes commands locally on behalf of the background * page. It must be run prior to domReady so that we perform some operations very early, like setting * the page's zoom level. We tell the background page that we're in domReady and ready to accept normal ...
//======================================================================================== // BeebVSC // Visual Studio Code Extension to support 6502/BBC Micro development // This script provides functionality to manage build targets via VSC tasks //----------------------------------------------------------------------...
'use strict'; import { View, Text, StyleSheet, PixelRatio, Animated, Image, Platform, SectionList } from 'react-native'; import React, { Component } from 'react'; import { sTrim } from './utils/utils'; import SearchBar from './components/SearchBar'; import pinyin from 'js-pinyin'; import Toolbar fr...
var this_js_script = $('script[src*=appcalificaciones_preescolar]'); var my_var_1 = this_js_script.attr('data-my_var_1'); if (typeof my_var_1 === "undefined") { var my_var_1 = 'some_default_value'; } Vue.config.devtools = true; var v = new Vue({ el: '#app', components: { Multiselect: window.VueMultiselect.defaul...
const Utils = require('../utils/utils'); const ExtractorHandler = require('./extractor-handler.service'); const PDFImage = require("pdf-image").PDFImage; const uuidv4 = require('uuid/v4'); const fs = require('fs'); const path = require('path'); const PNG = require('pngjs').PNG; const pixelmatch = require('pixelmatch');...
/** * menu.js * Created by zhangyc on 17/6/7.a */ /* globals BMap, BMAP_ANCHOR_TOP_LEFT, BMAP_ANCHOR_TOP_LEFT, BMAP_ANCHOR_TOP_LEFT, BMAP_NAVIGATION_CONTROL_SMALL, mapTool */ import { getCarType, getPosition, getAddress } from '../../api/carServer'; import { dateFormat } from '../../api/Utils'; import { removeClas...
import React, {Component,PropTypes} from 'react'; import styles from './VtxTree.less'; import { Tree , Input , Tooltip , Spin} from 'antd'; const TreeNode = Tree.TreeNode; const Search = Input.Search; class VtxTree extends React.Component { constructor(props){ super(props); this.askeys = [props.data[0].key]; ...