text
stringlengths
5.97k
41.2k
var status = 0; function start() { status = -1; action(1, 0, 0); } function action(mode, type, selection) { if (mode == -1) { cm.dispose(); } else { if (mode == 0 && status == 0) { cm.dispose(); return; } if (mode == 1) status++; else status--; if (status == 0) {...
//============================================================================= // J-Status Screen Revamp v1.0 //============================================================================= // Changelog: // v1.0: Developed and soft-released. /*: @plugindesc Alters the status screen to display all details and pa...
/*jshint esnext: true */ // Polyfill // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith if (!String.prototype.endsWith) { String.prototype.endsWith = function(searchString, position) { var subjectString = this.toString(); if (typeof position !== 'number' || !i...
//定义图表主题 var colors=['#34bbbb','#fe8e1c','#3a9dff']; Ext.define('Ext.chart.theme.sysCharTheme',{ extend:'Ext.chart.theme.Base', constructor:function(config){ this.callParent([Ext.apply({colors:colors},config)]); } }); var logType = ""; Ext.define('acesure.view.report.SystemReportList', { extend: 'Ext.panel.Pan...
const document = require('../libs/document') const refbook = require('../libs/refbook') const rmisjs = require('../../index') const moment = require('moment') const soap = require('soap') const url = require('url') const wsdl = '/carbondss/services/MedbaseCases/MedbaseCases.SecureSOAP11Endpoint.xml' const endpoint =...
import CrossEndCanvas from 'cross-end-canvas'; import config from '../config'; import { drawBracket } from './draw'; let index = 0; let doit = (el, binding) => { // 随机生成唯一标志 let id = "kp-math-formula-id-" + (index++); // 获取需要绘制的式子的数据 let mathFormulaData = binding.value; if (!mathFormulaData) ...
/** * @license * Copyright 2018 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
import React, { Component } from 'react'; import _ from 'lodash'; import { Provider, observer } from 'mobx-react'; import classNames from 'classnames'; import './../other/messenger'; import { listen } from './../other/home.global'; import LeftMenu from './LeftMenu'; import TabContent from './TabContent.js'; import TabH...
/* Copyright 2019 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ 'use strict'; import {measureText} from './utils.js'; const HEIGHT_PX = 200; const ESTIMATED_WIDTH_PX = 1000; const ICON_WIDTH_PX = 24; const TEXT_HE...
// [z-paging]核心js import zStatic from './z-paging-static' import c from './z-paging-constant' import u from './z-paging-utils' import zPagingRefresh from '../components/z-paging-refresh' import zPagingLoadMore from '../components/z-paging-load-more' import zPagingEmptyView from '../../z-paging-empty-view/z-paging-emp...
import merge from '../common/merge'; import tween from '../common/tween'; let uniqueId = 0; function generateUniqueId() { return `shoot-${uniqueId++}`; } const PI = 2 * Math.PI; function Shoot(canvas, getPosition, config) { // this.uuid = generateUniqueId(); this.getPosition = getPosition; this.config = merg...
'use strict'; /********************************************************************** * Prototypes **********************************************************************/ Array.prototype.first = function() { return this.length > 0 ? this[0] : null; } Array.prototype.swap = function(i, j) { let element = this[...
/** * build library utility for xcode / ios platform */ var exec = require('child_process').exec, spawn = require('child_process').spawn, path = require('path'), fs = require('fs'), async = require('async'), _ = require('underscore'), wrench = require('wrench'), log = require('../log'), util = require('../uti...
// Modules to control application life and create native browser window const { app, BrowserWindow, ipcRenderer, ipcMain } = require('electron') const brain = require("brain.js"); const path = require('path') const papa = require('papaparse') const fs = require('fs'); const { dialog } = require('electron'); const { Con...
//var User = require('./models/user'); var engine = require('consolidate'); const resourceTokenManager = require('../js/tokenManager'); var querystring = require('querystring'); var https = require("https"); const electron = require('electron'); const request = require("request"); module.exports = function(app) { ...
/* EXM Copyright (c) 2020 - 2021 <NAME> The MIT License (MIT) 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, mo...
'use strict'; const GarService = require('../services').GarService; const SubmitService = require('../services').SubmitService; const _ = require('lodash'); const moment = require('moment'); /* eslint-disable implicit-dependencies/no-implicit */ const countries = require('country-list'); const config = require('../.....
const jsdom = require("jsdom"); const { JSDOM } = jsdom; const path = require('path'); const svgpath = require('svgpath'); // through2 is a thin wrapper around node transform streams var through = require('through2'); var PluginError = require('plugin-error'); //const svgpath = svgpathimport.svgpath; const defaultFaH...
const root = {}; const http = require("http"); const https = require("https"); const protocolDic = {http,https}; const imageBufferHeaders = [ { bufBegin: [0xff, 0xd8], bufEnd: [0xff, 0xd9], suffix: '.jpg' }, { bufBegin: [0x00, 0x00, 0x02, 0x00, 0x00], suffix: '.tga' }, { bufBegin: [0x00, 0x00, 0x10, 0x00, ...
var runBtn = document.getElementById('run'), basic = new BASIC(), editor; runBtn.onclick = function (e) { var code = (editor && editor.getValue()) || ''; basic.execute(code); } Split(['#editor-pane', '#result-pane'], { sizes: [50, 50], minSize: 200 }); // Terminal.applyAddon(fit); var term = n...
function ShowUnitConverter() { // Global variables var modalForm, // Modal Object cmbFrom, // "From" Combobox Object cmbTo, // "To" Combobox Object lblFactor, // "Factor" Label Object txtBaseSize, // "Base size" Edit Object chkInvert, // "Invert Base size" Checkbox Object...
/* * @author: Qennix * Jan 27th, 2011 */ //Keyboard Events new Ext.KeyMap(document, [ { key: Ext.EventObject.F5, fn: function(keycode, e) { if (! e.ctrlKey) { if (Ext.isIE) { // IE6 doesn't allow cancellation of the F5 key, so trick it into // thi...
export const adjectives = [ 'rhetorical', 'miscreant', 'ambiguous', 'low', 'woozy', 'lyrical', 'mysterious', 'crooked', 'violent', 'scared', 'curved', 'elegant', 'unsuitable', 'observant', 'fat', 'gleaming', 'fallacious', 'tight', 'unsightly', ...
import { Vector2, Vector3, ComplexValue } from './util/Vector'; import WindowManagerEvent from './util/WindowManagerEvent'; import WINDOW_SNAP_AREAS from './configuration/WINDOW_SNAP_AREAS'; import svgUtil from '../../shared/scripts/SvgUtil'; // constructor: WindowController function WindowController(id) { ...
/*! * Module dependencies. */ var plugin = require('zeditor-plugin'); /*! * Export `Zeditor`. */ module.exports = plugin(Zeditor); var ZeditorNormalizer = require('zeditor-normalizer'); var domify = require('domify'); var os = require('component-os'); var uid = require('component-uid'); var contains = require...
var isMobile = navigator.userAgent.toLowerCase().match(/\b(ipad|iphone)\b([^\)]+)/), version; //DETECT IOS8 if (isMobile && isMobile.length >= 2) { version = isMobile[2].match(/(\d[_]{0,1})+/) version && version.length > 1 && ( version = version[0], version = version.split(/_/g), version[0] === ...
const { useState } = React const sizes = [6, 6.5, 7, 7.5, 8, 9, 9.5, 10]; const data = [ { key: 1, title: 'Asics', image: 'https://assets.codepen.io/t-1/maksim-larin-jZyacqaR4iI-unsplash.jpg', alt: 'a pair of blue and red ASICS sneakers', copyright: '<NAME>', price: '$65 USD', desc...
import { defineMessages } from 'react-intl'; const messages = defineMessages({ contentSharedWithExternalCollaborators: { defaultMessage: 'This content will be shared with external collaborators.', description: 'Text shown in share modal when there is at least one external collaborators', id...
import React, { Component } from 'react'; import { StyleSheet, View, ScrollView } from 'react-native'; import { Text } from 'native-base'; import { Audio } from 'expo-av'; import * as FileSystem from 'expo-file-system'; import * as Permissions from 'expo-permissions'; import PropTypes from 'prop-types'; import PlayTime...
const chai = require('chai'); const { expect, assert } = chai; it.optional = require('../extensions/it-optional'); Object.freeze(assert); const getSeason = require('../src/what-season.js'); describe('What season', () => { // Presence requirement describe('variable presence', () => { it.optional('fun...
// Init const mysql = require("mysql"); const inquirer = require("inquirer"); const figlet = require('figlet'); const colors = require('colors'); const emoji = require("node-emoji"); const {printTable} = require("console-table-printer"); // Connection const connection = mysql.createConnection({ host: 'localhost', ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.styles = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _defineProperty2 = _i...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function randomIntFromInterval(min, max) { return Math.floor(Math.random() * (max - min + 1) + min); } function shuffle(array) { let currentIndex = array.length, randomIndex; while (currentIndex != 0) { randomIndex = Math.f...
var select = require('xpath.js') , dom = require('xmldom-fork-fixed').DOMParser , SignedXml = require('../lib/signed-xml.js').SignedXml , FileKeyInfo = require('../lib/signed-xml.js').FileKeyInfo , xml_assert = require('./xml-assert.js') , fs = require('fs') module.exports = { "signer adds ...
import React, { Component } from 'react'; import * as THREE from 'three'; import OrbitControls from 'three-orbitcontrols'; import { OBJLoader } from 'three-obj-mtl-loader'; import { Easing, Tween } from 'es6-tween'; import GLTFLoader from 'three-gltf-loader'; // Local import import objUrl from '../assets/models/marke...
/* Test WoW! Grap some WoW info via front-end (insecure local test) */ console.log('--> test-wow.js'); console.warn('[test-wow.js - Careful, API Key is exposed!]'); // Helper to Capitalize first word of string String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.slice(1); } /...
// This code provides support for the DAC scatter plot buttons. // <NAME> // 1/21/2021 import client from "js/slycat-web-client"; import * as dialog from "js/slycat-dialog"; import URI from "urijs"; import scatter_plot from "./dac-scatter-plot"; import selections from "./dac-manage-selections"; import request from "...
'use strict'; const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); const crypto = require('crypto'); const DH_NOT_SUITABLE_GENERATOR = crypto.constants.DH_NOT_SUITABLE_GENERATOR; // Test Diffie-Hellman with two parties sharing a secret, // usi...
var mongoose = require('mongoose'); var express = require('express'); var util = require('util'); var qotd = mongoose.model('Qotd'); var QOption = mongoose.model('QOption'); var settings = mongoose.model('Settings'); var Tag = mongoose.model('Tag'); var Event = mongoose.model('Event'); var Badges =...
/* jshint node: true, esversion: 10, -W014, -W033 */ /* eslint-disable new-cap */ 'use strict' const { default: PQueue } = require('p-queue') const { TimeoutError } = require('p-timeout') module.exports = class deviceOutletSingle { constructor (platform, accessory) { // Set up variables from the platform th...
/** * 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. * * strict-local * @format */ 'use strict'; var _objectSpread2 = require("@babel/runtime/helpers/interopRequireDefault")(require(...
import React, { useState, useEffect, useReducer } from 'react'; import Select from 'react-select'; import ListSchedule from '~/page-components/student/booking-schedule/ListSchedule'; import { getListTeacher } from '~/api/studentAPI'; import { getLevelPurposeOptions } from '~/api/optionAPI'; import Pagination from 'reac...
"use strict"; /* All shared functionality to go in libtoaster object. * This object really just helps readability since we can then have * a traceable namespace. */ var libtoaster = (function (){ /* makeTypeahead parameters * elementSelector: JQuery elementSelector string * xhrUrl: the url to get the JSON f...
function Camera(position) { this.position = position || new Vector(1, 1); this.direction = new Vector(-1, 0); this.plane = new Vector(0, .9); this.speed = .05; this.getX = function() { return this.position.x; }; this.getY = function() { return this.position.y; }; } fun...
const Component = require('react').Component const { withRouter } = require('react-router-dom') const { compose } = require('recompose') const PropTypes = require('prop-types') const connect = require('react-redux').connect const h = require('react-hyperscript') const inherits = require('util').inherits const actions =...
/* Copyright 2022 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getVerticalPolarBarPath = exports.getHorizontalBarPath = exports.getVerticalBarPath = exports.getCustomBarPath = void 0; var _victoryCore = require("victory-core"); var d3Shape = _interopRequireWildcard(require("d3-shape")); var ...
var Music; global_vol = 0 var queue_count = 2147483645; var dataset = 'global'; var favorites; var favorite_to_icon = ['fa-heart-o', 'fa-heart-o color-heart', 'fa-heart color-heart']; //Change Qimessaging connection if robot name is passed in URL if (robotAddress != '') { $.qim = new QiSession(robotAddress); } f...
"use strict"; /** * @license * Copyright 2018 Google LLC. 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...
/*jshint forin:false */ var fs = require("fs"); var path = require('path'); var nunjucks = require("nunjucks"); var marked = require("marked"); var docco = require("docco"); var vars = { enableExample: false, enableHome: false, GA_ACCOUNT: "UA-35433268-28", base: "" }; module.exports = function (grunt) { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _isEqual2 = _interopRequireDefault(require("lodash/isEqual")); var _ui = require("@sanity/ui"); var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-t...
// pages/goods/detail.js var WxParse = require('../../wxParse/wxParse.js'); var app = getApp(); Page({ data: { scrollTop:0, maskHidden: false, num:1, sizeid: '', productId:'', commodityAttr: [], attrValueList: [], groupid: null, is_over: false, day: '', hour: '', minute...
var db = require("../lib/db.js") var cluster = require('cluster') var config = require("config") var request = require('request') var async = require("async") var classifyDecode = require("../lib/classifyDecode.js") var Moniker = require('moniker') var log = require('simple-node-logger').createSimpleLogger(__dirname ...
import { setTimeout } from 'timers/promises'; import CleanCss from 'clean-css'; import fs from 'fs-extra'; import minify from 'minify'; import path from 'path'; import { fileURLToPath } from 'url'; import UglifyJS from 'uglify-js'; import yargs from 'yargs'; import axios from 'axios'; import shiki from 'shiki'; import ...
const BasicPainter = require('./painter'), BasicStyle = require('./style'), EXTENT = require('../data/extent'), Evented = require('../util/evented'), {OverscaledTileID} = require('../source/tile_id'), {mat4} = require('@mapbox/gl-matrix'), Source = require('../source/source'), ...
/** The implementation of the fcose layout algorithm */ const assign = require('../assign'); const aux = require('./auxiliary'); const { spectralLayout } = require('./spectral'); const { coseLayout } = require('./cose'); const defaults = Object.freeze({ // 'draft', 'default' or 'proof' // - 'draft' only app...
import { format, line, scaleTime, scaleLog } from 'd3'; import RBush from 'rbush'; import createPilingJs from '../src/library'; import { createSvgRenderer } from '../src/renderer'; import { createBoundedMercator } from '../src/projectors'; const loadMapbox = () => Promise.all([ new Promise((resolve, reject) => ...
import React from "react"; import { View, Image, PanResponder, StyleSheet, Animated, TouchableWithoutFeedback, TouchableOpacity, } from "react-native"; import PropTypes from "prop-types"; class CollageImage extends React.Component { constructor(props) { super(props); this.id = props.imageId; ...
const MLT_TABS = { mltMap: function() { return true; }, mltMilestones: function() { return true; }, quilts: function() { return true; }, compressors: function() { return hasMltMilestone(30); }, planck: function() { return player.mlt.planck.unl; }, }; const MULIVERSE_ENERGY_BASE = 2; const MLT_ENER...
import React, { Component } from "react"; import { Typography, withStyles, Grid, Hidden } from "@material-ui/core"; import notifications from "../../../../../../stores/notifications"; import Bigneon from "../../../../../../helpers/bigneon"; import { fontFamilyDemiBold, secondaryHex } from "../../../../../../config/th...
/* * Kuzzle, a backend software, self-hostable and ready to use * to power modern apps * * Copyright 2015-2020 Kuzzle * mailto: support AT kuzzle.io * website: http://kuzzle.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
/* Project Name: midi-parser-js Author: colxi Author URI: http://www.colxi.info/ Description: MIDIParser library reads .MID binary files, Base64 encoded MIDI Data, or UInt8 Arrays, and outputs as a readable and structured JS object. --- Usage Methods --- ------------------------------ * OPTION 1 NEW! ...
const UI = window.classes.UI; const AppIcon = require('../../icons/AppIcon.js'); const Button = window.classes.Button; const UIInput = window.classes.UIInput; const Layouter = require('../utils/Layouter.js'); class Upload extends UI { constructor(params) { super(params); this._components.CloseIcon = this.newC(A...
"use strict"; var _interopRequireWildcard = require("@babel/runtime-corejs2/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); _Object$definePro...
import { ATTRIBUTE, BINDING_FLAG, DECORATOR, DELEGATE_FLAG, EVENT, TRANSITION } from 'config/types'; import { win } from 'config/environment'; import { html, svg } from 'config/namespaces'; import { toArray, addToArray, removeFromArray } from 'utils/array'; import { escapeHtml, voidElements } from 'utils/html'; import ...
/* * Copyright 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
import '../colors/colors.js'; import '../scroll-wrapper/scroll-wrapper.js'; import { css, html, LitElement } from 'lit-element/lit-element.js'; import { RtlMixin } from '../../mixins/rtl-mixin.js'; export const tableStyles = css` .d2l-table { border-collapse: separate; /* needed to override reset stylesheets */ b...
"use strict"; var Takeaway = (function () { var _status = "initialize"; const OUTSEETS = ["yes", "no"]; // outseetタグ用 const RegexPTN = [[/Mo/g, "月"], [/Tu/g, "火"], [/We/g, "水"], [/Th/g, "木"], [/Fr/g, "金"], [/Sa/g, "土"], [/Su/g, "日"], [/;/g, "<br>"], [/PH/g, "祝日"], [/off/g, "休業"], [/24\/7/g, "24時間営業"]]...
// Based on Esri's esri-react-boot template.​ // NOTE // This is a "special" react component that does not strictly play by // React's rules. // // Conceptually, this component creates a "portal" in React by // closing its render method off from updates (by simply rendering a div and // never accepting re-renders) the...
/* Copyright (c) 2016 <NAME>. * http://github.com/duparq/uprog * * 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 */ 'use strict'; var ...
"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 PATH = require('path'); const FSE = require('fs-extra'); const FS = require('fs'); const { profile } = require('console'); const MY_FILE_HELPER = require('./copy-new-file-helper.js') const DIR_PICS_ENTITY_DB = reqPath = PATH.join(__dirname, '../../images') // __dirname.substring(0, __dirname.lastIndexOf('/')...
const ROOT = 'root' const STATIC = 'static' const PARAM = 'param' const WILDCARD = 'wildcard' const GROUP = 'group' /** * Constructor for a node element in the radix tree structure * * @param {string} path | optional * @param {boolean} varChild | optional * @param {nodeType} string | optional * @...
const $ = require('jquery'); const PIXI = require('pixi.js'); const p2 = require('p2'); window.requestAnimationFrame = (function () { return window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || ...
let readMore = document.querySelector('#js-read-more'); let desc = document.querySelector('.book-description__text'); if (desc.offsetHeight < 240) { desc.parentNode.style.height = "auto"; readMore.style.display = "none"; } readMore.addEventListener('click', () => { let x = readMore.parentElement.querySelec...
// HTML TEMPLATES. // DragAndDrop.js const tempCardHtml = () => { return `<article class="col x12 m12 l12 hoverable droppable temp-card" id="tempCard"> </article>` } const tempCategoryHtml = () => { return `<article class="col x12 m12 l12 category card-category flex-category hoverable droppable temp-categ...
'use strict'; var fs = require('fs'); var _ = require('lodash'); var glob = require('glob'); var sorting = require('./modelSort'); var jxon = require('jxon'); var chalk = require('chalk'); var config = require('../config'); var util = require('../util'); var Q = require('q'); var path = require('path'); var importCon...
/** * @author nethe550 * @description The Etch-A-Sketch manager class. */ const DEFAULT_SENSITIVITY = 5; const DEFAULT_LINE = { color: '#ffffff', size: 1 } const DEFAULT_CONFIG = { clear: '#clear', sensitivity: { slider: '#sensitivity', label: '#sensitivity-value' ...
// Custom Functions and plugin initiation var blurred = false, allTotal; $(document).ready(function(e) { // ================ Lazy Load ============== $("img.lazy").lazyload({ effect : "fadeIn", skip_invisible : false }); $('.copywrQuote').click(function(){ goToByScroll('.calarea'); ...
class QuantumJS { constructor(topology) { String.prototype.format = function () { var i = 0, args = arguments; return this.replace(/{}/g, function () { return typeof args[i] != 'undefined' ? args[i++] : ''; }); }; this.operations = []; this.inits = []; this.creg = {};...
var config = require('./config.json'); var DEBUG = false; // Turn off for release var VERSION = '4.6'; // Match package.json var MAX_ITEMS = 20; // Max feed items the app will display var DATA_SIZE = 1950; // Max AppMessage image chunk size (pre-dates 8k buffers) var THUMBNAIL_WIDTH = 144; var THUMBNAIL_HEIGHT = 8...
const version = 'v1.0'; /* Template p? SWADE source: icon: icons/magic/fire/barrier-wall-explosion-orange.webp */ let applyChanges = false new Dialog({ title: `Template creator`, content: ` <style> #swade-template-creator form { margin-bottom: 20px; } #swade-template-creator .form...
if (location.search != "?from=act") { document.title = i18n("main_name"); $("html, body").forEach(e => { e.style = "width: calc(100% - 1px); height: calc(100% - 1px);" }) } const contentMap = new Map(); const $rootDiv = $(".root-div")[0]; const $search = $(".search-input")[0]; const $contentDiv = $(".content-...
// CMS module v1 // The MIT License // Copyright 2021 (c) <NAME> <<EMAIL>> const SKIP_CLASSES = { CMS_hidden: 1, CMS_mv: 1, CMS_mh: 1, CMS_expression: 1, CMS_multiple: 1 }; const VERSION = 1; function clean(html) { var index = html.indexOf('>'); var tag = html.substring(5, index); tag = tag.replace(/data-cms=".*?"...
/*jshint esversion: 8 */ const { remote, ipcRenderer, shell, clipboard } = require("electron"); const global = remote.getGlobal("sharedObject"); const { Menu, MenuItem } = remote; const join = require("path").join; const sqlite3 = require("sqlite3").verbose(); const dialogs = require("dialogs")(); const image = ...
'use strict'; angular.module('tNovaApp') .controller('infrastructureRepositoryController', function ($rootScope, $scope, $http, $q, localStorageService, $interval, $modal, $timeout, infrRepoService, $loading, tenorService) { var url = ''; $scope.showPop = false; $scope.rootElement = {}; ...
import 'phaser'; class LunchDialogue extends Phaser.Scene { constructor() { super('LunchDialogue'); } init () { this.player = this.sys.game.player; // Ada's progress is updated at four points: 5, 17, 24, 36 this.nextDialogue = this.player['adaDialogue']; // Default dialog...
// Copyright 2019 <NAME> // License: MIT /* This installs components implemented by js scripts. The scripts should have the form * core.require(file1,file2...fileN,function (v1,v2... vn)){...return value});. Such code builds an item, and returns it, utilizing * the items already defined in the dependencies file1... ...
"use strict"; function Ajax ( url, type = "document", response ) { let xhr = new XMLHttpRequest(); xhr.open( "GET", url, true ); xhr.responseType = type; //xhr.onreadystatechange = ( e ) => { console.log( e.target.readyState, e.target.responseURL,e.target.status ); }; xhr.addEventListener( "load", ( ev ) => { re...
"use strict"; /* global describe, before, it */ const {observable, bundleChanges} = require('../../lib/observable'); const {computed} = require('../../lib/computed'); const {pureComputed} = require('../../lib/pureComputed'); const _computed_queue = require('../../lib/_computed_queue'); const _ = require('lodash'); c...
// (() => { const dataTables = {}; const apiUrl = '../api/members'; let tableChecker = {}; let removedRows = []; const tablesInfo = { primary: [ { data: "member_code", inputName: "코드" }, { data: "name", inputName: "이름" }, { data: "rname", inputName: "실명" }, { data: "region", inputName: "구분" }, {...
// Graph options we might want: // Grid off/on // Stacked off/on // Area off/on // Legend position // Short link // Graph title // Palette // Background // Enable tooltips // width/height // Axis options // Y-Range min/max // (X-Range min/max) // X-Axis format // Y-Axis format // Y-Axis title // X-Axis...
'use strict'; function Vertex(inPosition, inNormal, inUv, inColor) { this.position = inPosition || $V([0, 0, 0, 1]); this.normal = inNormal || $V([0, 0, 0]); this.uv = inUv || $V([0, 0]); // null if no color given this.color = inColor; } function Face(inIndices, inNormal) { this.indices = inIndices || $V([0, 0, ...
import PropTypes from 'prop-types'; import { graphql } from 'gatsby'; import React, { useState, useEffect } from 'react'; import DevSiteSeo from '../components/DevSiteSeo'; import { css } from '@emotion/react'; import SegmentedControl from '../components/SegmentedControl'; import Overlay from '../components/Overlay'; i...
$("#mainNav").hover(function(){ $(".navbar-brand").css("color", "white"); }, function(){ $(".navbar-brand").css("color", "#E89C23"); }); $('#message').delay(8000).fadeOut('fast'); function showSubmit(){ subform = document.getElementById('commentSubmit'); subform.classList.add("d-flex"); } /**...
/* eslint-disable require-jsdoc */ // UTF-8 'use strict'; const fs = require('fs'); // const ini = require('ini') const readline = require('readline-sync'); const zlib = require('zlib'); const needle = require('needle'); const cfdjs = require('cfd-js'); const RpcClient = require('node-json-rpc2').Client; // ----------...
function drawParticipation() { var data = participationObj; var margin = {top: 0, right: 200, bottom: 100, left: 100}, width = 960 - margin.left - margin.right, height = 500 - margin.top - margin.bottom; var x = d3.scale.ordinal() .rangeRoundBands([0, width], .1); var y = d3.scale.lin...
/* global goTaps, YT, player */ import { State } from './state.js' import { Slider } from './slider.js' import { initialiseComboBox } from './combobox.js' export const state = new State() const local = { loopTimer: 0, delayTimer: 0, loaded: false, looping: false, start: null, end: null, taps: { dur...
var inframe = top != self var holder_text = ''; $(document).ready(function() { /* set first featured video as 'current' */ $('article:first').addClass('current'); }); $(function() { $('.featured-videos article').on('mouseover', function(){ $('.featured-videos article.current').removeClass('current');...
import React from 'react'; import { Select, Card, Row, Col, Form, Input, InputNumber, DatePicker, Button, Modal, Alert, notification, } from 'antd'; import Sound from 'react-sound'; import moment from 'moment'; import { connect } from 'dva'; import { routerRedux } from 'dva/router'; import style...