code
stringlengths
2
1.05M
/** * @license Angular v9.1.0-next.4+61.sha-e552591.with-local-changes * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict"; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of ...
/* Copyright (c) 2016 Daybrush name: scenejs license: MIT author: Daybrush repository: https://github.com/daybrush/scenejs.git version: 1.1.6 */ 'use strict'; var utils = require('@daybrush/utils'); var ListMap = require('list-map'); /*! ***************************************************************************** C...
import './chunk-455cdeae.js'; import { isCustomElement, removeElement } from './helpers.js'; import { c as config } from './chunk-8ed29c41.js'; import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js'; // var script = { name: 'BSidebar', // deprecated, to replace with default ...
/** * @license Highcharts JS v10.0.0 (2022-03-07) * @module highcharts/modules/funnel3d * @requires highcharts * @requires highcharts/highcharts-3d * @requires highcharts/modules/cylinder * * Highcharts funnel module * * (c) 2010-2021 Kacper Madej * * License: www.highcharts.com/license */ 'use strict'; imp...
// Generated by CoffeeScript 1.10.0 (function() { var Connection, NodeJDBC, Promise, _, java; Promise = require('bluebird'); Connection = require('./connection'); _ = require('lodash'); java = Promise.promisifyAll(require('java')); module.exports = NodeJDBC = (function() { NodeJDBC._connection = vo...
import Immutable from 'immutable'; import { Constants as AssessmentConstants } from '../actions/assessment_progress'; import assessmentProgress from './assessment_progress'; describe('assessment reducer', () => { const settings = Immutable.fromJS({}); var initialState...
(function () { 'use strict'; angular.module('hj.stickyContainer') .service('customModernizr', ['$window', function ($window) { /*! * modernizr v3.2.0 * Build http://modernizr.com/download?-csspositionsticky-domprefixes-prefixed-prefixedcss-prefixes-dontmin * * Copyright (c...
/** * Dex * Pokemon Showdown - http://pokemonshowdown.com/ * * Handles getting data about pokemon, items, etc. * * This file is used by basically every PS process. Sim processes use it * to get game data for simulation, team validators use it to get data * for validation, dexsearch uses it for dex data, and the...
define([ "dojo/_base/kernel", "dojo/_base/lang", "dojox/string/tokenize", "dojo/_base/json", "dojo/dom", "dojo/_base/xhr", "dojox/string/Builder", "dojo/_base/Deferred"], function(kernel, lang, Tokenize, json, dom, xhr, StringBuilder, deferred){ kernel.experimental("dojox.dtl"); var dd = lang.getObject("do...
function func(...arguments) { console.log(arguments); // [1, 2, 3] } func(1, 2, 3);
// grab the mongoose module var mongoose = require('mongoose'); var Schema = mongoose.Schema; var userSchema = new Schema({ id : Number, linkedin_id : String, first_name : String, last_name : String, job_title : String, company_id : Number, gender : String, mentor : Boolean, mentee : Boolean, descr...
"use strict"; var fs = require('fs'); var Brig = require('../../'); var brig = new Brig(); brig.on('ready', function(brig) { brig.on('window-all-closed', () => { process.exit(); }); var qmlType = brig.createType('MyItem', { property: { prop1: 123 }, method: { 'methodTest(a,b,c,d,e)': function(a, ...
/* globals chrome, safari */ // buffer-install-check.js // (c) 2013 Buffer // Adds an element to our app page that we can use to check if the browser has our extension installed. var bufferMarkOurSite = function (version) { if (window.top !== window) return; if (document.location.host.match(/buffer.com/i) || ...
//TODO: add to front-end import log from '../../log' import React, { Component, PropTypes } from 'react' import { reduxForm } from 'redux-form' // import {show as showResults} from '../redux/modules/submission' import store from '../../redux/store' import { localLogin } from '../../redux/apiIndex' const submit...
class Bitmap { constructor(src, width, height) { this.image = new Image(); this.image.src = src; this.width = width; this.height = height; } }; module.exports = Bitmap;
// app/routes.js /* Constants */ var constants = require('./constants'); /* load required modules */ var basicAuth = require('basic-auth'); var crypto = require("axolotl-crypto"); // docs: https://github.com/joebandenburg/libaxolotl-javascript/blob/master/doc/crypto.md var base64 = require('base64-arraybuffer'); /* ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _chalk = _interopRequireDefault(require("chalk")); function _interopRequireDefault(obj)...
/** * Add ul and ol command identifier for KISSY Editor. * @author yiminghe@gmail.com */ KISSY.add("editor/plugin/list-utils/cmd", function (S, Editor, ListUtils, undefined) { var insertUnorderedList = "insertUnorderedList", insertOrderedList = "insertOrderedList", listNodeNames = {"ol": insertO...
import { GraphQLObjectType, GraphQLSchema } from 'graphql/type'; import {getTypes} from './type'; import {getRootFields} from './query'; /** * @method getSchema * @param {Object} models - graffiti models * @return {GraphQLSchema} schema */ function getSchema (models) { var types = getTypes(models); var r...
const sizeOf = { object: function () { return function (object) { let $start = 0 $start += 4 return $start } } () } const serializer = { all: { object: function () { return function (object, $buffer, $start) { $buffer...
import React from 'react' import Icon from 'react-icon-base' const MdWallpaper = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m6.6 21.6v11.8h11.8v3.2h-11.8c-1.8 0-3.2-1.4-3.2-3.2v-11.8h3.2z m26.8 11.8v-11.8h3.2v11.8c0 1.8-1.4 3.2-3.2 3.2h-11.8v-3.2h11.8z m0-30c1.8 0 3.2 1.4 3.2 3.2v11.8h-3...
'use strict' exports.seed = function(knex, Promise) { // Deletes ALL existing entries return Promise.all([ // Inserts seed entries knex('assessment').insert({ admission_id: 1, oriented_person: true, oriented_place: true, oriented_time: true, oriented_purpose: true, suici...
'use strict'; var preconditions = require('preconditions').singleton(); var loaded = 0; var SCOPES = 'https://www.googleapis.com/auth/drive'; var log = require('../util/log'); function GoogleDrive(config) { preconditions.checkArgument(config && config.clientId, 'No clientId at GoogleDrive config'); this.clientId...
'use strict'; var convert = require('./convert'), func = convert('partial', require('../partial')); func.placeholder = require('./placeholder'); module.exports = func; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2ZwL3BhcnRpYWwuanMi...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M3 11h2v2H3zm0 4h2v2H3zm0 4h18v2H3zm16-4h2v2h-2zM3 7h2v2H3zm16 4h2v2h-2zm0-8h2v2h-2zm-4 8h2v2h-2zm4-4h2v2h-2zm-4-4h2v2h-2zm-8 8h2v2H7zM3 3h2v2H3zm8 4h2v2h-2zM7 3h2v2H7zm4 8h2v2h-2zm0 4h2v2h-2zm0-...
define('JSComposer/Utils', [], function() { var exports = {}; function ldef() { var l = arguments.length; for (var i = 0; i < l; ++i) { if (arguments[i] !== undefined) return arguments[i]; } return undefined; } // Do any of the elements in array return true ...
( function( window ) { 'use strict'; var gimmeAnItemElement = window.gimmeAnItemElement; test( 'prepend', function() { var container = document.querySelector('#prepend'); var pckry = new Packery( container ); var itemElemA = pckry.items[0].element; var itemElemB = pckry.items[1].element; var itemElemC = gi...
import nodeResolve from 'rollup-plugin-node-resolve'; import babel from 'rollup-plugin-babel'; import uglify from 'rollup-plugin-uglify'; import replace from 'rollup-plugin-replace'; var env = process.env.NODE_ENV; var config = { format: 'umd', moduleName: 'ReduxResourcePropTypes', external: ['redux-resource', '...
/* * File: jquery.dataTables.min.js * Version: 1.9.4 * Author: Allan Jardine (www.sprymedia.co.uk) * Info: www.datatables.net * * Copyright 2008-2012 Allan Jardine, all rights reserved. * * This source file is free software, under either the GPL v2 license or a * BSD style license, avai...
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js * * Copyright (c) 2009-2013 The MathJax Consortium * * 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 ...
import * as actions from '../actions' export default function findAll(store, next) { // TODO: add cache check store.dispatch(actions.findAll()) next() }
var Steam = require('..'); var fs = require('fs'); // Create a file called STEAM_KEY and stick your API key in it // (or insert it here) var steamAPIKey = ''; if (steamAPIKey.length === 0) { try { steamAPIKey = fs.readFileSync('../STEAM_KEY').toString();} catch(e) { try { steamAPIKey = fs.readFileSync(...
// flow-typed signature: ad7975578c3126b9892b0cc5839fd8c1 // flow-typed version: <<STUB>>/babel-cli_v^6.18.0/flow_v0.56.0 /** * This is an autogenerated libdef stub for: * * 'babel-cli' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the ...
/* eslint-disable import/prefer-default-export */ import {API_ACTIVITY_TYPE, API_ACTIVITY_VERB} from '@webex/react-component-utils'; import { constructMessagesEventData, constructRoomsEventData } from './events'; /** * Processes a mercury event "event:conversation.activity" * @param {object} event * @param {o...
// # document ready $(document).ready(function() { if (!window.console) window.console = {}; if (!window.console.log) window.console.log = function() {}; robotDeactivate(); }); var self = this; // # robot var robot = { enable: null }; // # connect // * connect function connect(robotIp) { console.log("conn...
const Sequelize = require('sequelize'); const path = require('path'); const envPath = path.resolve(__dirname, './../../.env'); require('dotenv').config({ path: envPath }); const db = new Sequelize(process.env.DATABASE_URL, { dialect: 'postgres', pool: { max: 3, min: 0, idle: 1000 } }); db.authent...
var React = require('react-native'); var IssueType = require('./IssueType'); var { TouchableHighlight, Text, StyleSheet, View } = React; class Success extends React.Component{ handleSubmit(event){ this.props.navigator.popToTop(); } render(){ var layout = ( <View style...
const defaultError = 'An error occured, the developers of The Gazelle have been notified'; /** * Builds a generic error message * @param {string} [msg] - The reason for the error * @returns {string} */ export const buildErrorMessage = msg => { if (!msg) { return defaultError; } return `${defaultError}\...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const HTMLElement = require("./HTMLElement.js"); const impl = utils.implSymbol; function HTMLScriptElement() { throw new TypeError("Illegal constructor"); } Object.setPrototypeOf(HTMLScriptElement.prototype, HTMLEl...
version https://git-lfs.github.com/spec/v1 oid sha256:e3773a36fb4f5876207d903b587b0ff1248fbf90037382b99d96d2b6220bd37a size 17827
;(function(window, undefined){ var hashes = {{hashes}}; function get_hash(filename) { return hashes[filename] ? hashes[filename] : ""; } window.hash = function(filename) { return filename + "?hash=" + get_hash(filename); } })(window);
import prefixer from '../index' describe('Prefixer plugin', () => { it('should prefix styles', () => { const style = { display: 'flex', justifyContent: 'center', } expect(prefixer()(style)).toMatchSnapshot() }) it('should prefix nested objects', () => { const style = { display...
/* eslint-disable id-length */ export default { a: {}, abbr: {}, address: {}, area: {}, article: {}, aside: {}, audio: {}, b: {}, base: { reserved: true }, bdi: {}, bdo: {}, big: {}, blockquote: {}, body: {}, br: {}, button: {}, canvas: {},...
$("#findEvent").on("click", function(){ var event = $("#event-input").val(); var queryURL = "https://app.ticketmaster.com/discovery/v2/events.json?keyword=" + event + "&apikey=RpM9rSFGdHGSrdzuSU4XFzBiFomGgnhi"; $.ajax({url: queryURL, method: "GET"}).done(function(response){ var firstRowTds = $("table").children()...
var Collectd = require('../lib'); var plugin = new Collectd().plugin('collectd_out', 'test'); setInterval(function() { plugin.setGauge('users', 'fun', 42 + Math.sin(new Date().getTime() / 60000) * 23.5); plugin.setGauge('load', '0', [1.0, 0.85, 0.7]); plugin.addCounter('cpu', 'time', 1); plugin.addCoun...
module.exports = [{ code: /DEP_WEBPACK_MODULE_HASH/ }];
/** * User Session model */ define(['backbone'], function() { return Backbone.Model.extend({ defaults: { id: "", userId: "", firstName: "", lastName: "", email: "", role: "", address: {}, latitude: null, ...
var Canvas = { // http://jsbin.com/ovuret/722/edit?html,output drawEllipse: function(ctx, x, y, w, h) { var kappa = .5522848, ox = (w / 2) * kappa, // control point offset horizontal oy = (h / 2) * kappa, // control point offset vertical xe = x + w, // x-end ye = y + h, // y-end xm = x + w / 2, // x-...
module.exports = function ctype_xdigit (text) { // eslint-disable-line camelcase // discuss at: https://locutus.io/php/ctype_xdigit/ // original by: Brett Zamir (https://brett-zamir.me) // example 1: ctype_xdigit('01dF') // returns 1: true var setlocale = require('../strings/setlocale') if (typeof te...
/** * Copyright (c) 2011-2014 Felix Gnass * Licensed under the MIT license */ (function (root, factory) { /* CommonJS */ if (typeof exports == 'object') module.exports = factory() /* AMD module */ else if (typeof define == 'function' && define.amd) define(factory) /* Browser global */...
(function() { var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; this.EditBlob = (function() { function EditBlob(assets_path, ace_mode) { if (ace_mode == null) { ace_mode = null; } this.editModeLinkClickHandler = bind(this.editModeLinkClickHandler, t...
var Poll = { reset: function (roomId) { Poll[roomId] = { question: undefined, optionList: [], options: {}, display: '', topOption: '' }; }, splint: function (target) { var parts = target.split(','); var len = parts.length; while (len--) { parts[len] = parts[len].trim(); } return part...
import './fixtures'; import './publications';
"use strict"; var ArgentineBasinDeploymentView = Backbone.View.extend({ initialize: function() { _.bindAll(this, "render"); var self = this; self.render(); }, template: JST['ooiui/static/js/partials/ArgentineBasinDeployment.html'], render: function() { this.$el.html(this.template()); }  });...
import invoker from './invoker'; /** * The upper case version of a string. * * @func * @memberOf R * @since v0.9.0 * @category String * @sig String -> String * @param {String} str The string to upper case. * @return {String} The upper case version of `str`. * @see R.toLower * @example * * R.toUpper(...
/* Inc v1.0.0 (c) 2014 Clearwave Designs, LLC. http://clearwavedesigns.com License: MIT */ function Inc(t){var e=t.elem,a="input"===e.nodeName.toLowerCase()?!0:!1,n=parseFloat(e.getAttribute("data-inc-value"))||0,i=parseInt(e.getAttribute("data-inc-duration"))||0,r=parseInt(e.getAttribute("data-inc-delay"))||0,d=...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { r...
var React = require('react'); var AppStore = require('../stores/app-store'); var StoreWatchMixin = function(cb){ return { getInitialState:function(){ return cb(this) }, componentWillMount:function(){ AppStore.addChangeListener(this._onChange) }, componentWillUnmount:function(){ ...
$(document).ready(function() { //This is the Modal window calling //$('.modal').modal(); //$('.modal_custom').modal({width:700,showSpeed:2000,closeSpeed:2000,title:false,skin:"red"}); //This is the Modal window calling //This function is for the form submit $("a.form_submit").live("click", function(){ $(thi...
(function (lodash,slickgrid2) { 'use strict'; var columns = [ { id: 'title', name: 'Title', field: 'title', width: 200 }, { id: 'priority', name: 'Priority', field: 'priority', width: 80, selectable: true, resizable: false } ]; var dataView = new slickgrid2.DataView({ items: lodash.range(80, 70).map(functi...
WYMeditor.STRINGS.hu={Strong:"Félkövér",Emphasis:"Kiemelt",Superscript:"Felső index",Subscript:"Alsó index",Ordered_List:"Rendezett lista",Unordered_List:"Rendezetlen lista",Indent:"Bekezdés",Outdent:"Bekezdés törlése",Undo:"Visszavon",Redo:"Visszaállít",Link:"Link",Unlink:"Link törlése",Image:"Kép",Table:"Tábla",HTML:...
require('./init.js'); var async = require('async'); var logger = require('debug')('test:es-v6:02.basic-querying.test.js'); var db, User, Customer, AccessToken, Post, PostWithId, Category, SubCategory; /*eslint no-console: "off"*/ /*global getSchema should*/ describe('basic-querying', function () { this.timeout(3000...
/** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return t...
// new expression default export class TestExportNewExpression1 {} export default new TestExportNewExpression1(); // new expression named export (1) class TestExportNewExpression2 {} export const testExportNewExpression2 = new TestExportNewExpression2(); // new expression named export (2) export class TestExportNewEx...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jpeg = f()}})(...
var http = require('http'); var internalIp = require('internal-ip'); var router = require('router'); var path = require('path'); var serveMp4 = require('../utils/serve-mp4'); var debug = require('debug')('castnow:localfile'); var fs = require('fs'); var port = 4100; var isFile = function(item) { return fs.existsSync...
'use strict'; const eslintrc = { extends: ['eslint-config-airbnb'], env: { browser: true, node: true, mocha: true, jest: true, es6: true, }, parser: 'babel-eslint', parserOptions: { ecmaVersion: 6, ecmaFeatures: { jsx: true, experimentalObjectRestSpread: true, }, ...
Template.interfaceMattes.helpers({ templateGestures: { 'tap .trigger': function(event, templateInstance) { event.preventDefault(); // when the user taps, don't follow the src link var artist = "mattes"; var actionType = event.type; // what type of event? // remove all events from database ...
Package.describe({ summary: 'Style with attitude. Sass and SCSS support for Meteor.js (with autoprefixer and sourcemaps).', version: "3.2.0", git: "https://github.com/fourseven/meteor-scss.git", name: "fourseven:scss" }); Package.registerBuildPlugin({ name: 'compileScss', use: [], sources: [ 'plugin/...
export class ASN1Error extends Error { } export class InvalidASN1ObjectModelError extends ASN1Error { } export class InvalidJSONError extends ASN1Error { } export class InvalidASN1ContentError extends ASN1Error { }
"use strict"; const { assert } = require("chai"); const { describe, specify } = require("mocha-sugar-free"); const { jsdom } = require("../../lib/old-api.js"); describe("non-document-type-child-node", () => { specify( "TextNode should implement NonDocumentTypeChildNode:nextElementSibling", () => { co...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4...
/*jshint strict:false */ /*global Meteor:false */ /*global Template:false */ /*global $:false */ /*global _:false */ /*global Session:false */ /*global Tracker:false */ /*global Random:false */ var Players = Meteor.neo4j.collection('players'); if (Meteor.isClient) { Session.setDefault('searchString', "."); Trac...
function RError(){ this.stack = new Error().stack; this.code = arguments["0"] || undefined; this.message = arguments["1"] || undefined; this.locale = require(require('path').join(__dirname, 'locale.js')); this.args = []; for(var key in arguments) { if(arguments.hasOwnProperty(key) && (key !==...
define(function(require) { 'use strict'; var EmailNotificationView; var $ = require('jquery'); var _ = require('underscore'); var __ = require('orotranslation/js/translator'); var Backbone = require('backbone'); var mediator = require('oroui/js/mediator'); var routing = require('routing...
"use strict";!function(){function e(e){function r(r){r.setValue("\n "),e.partial=r.getValue(),e.render(),r.on("change",function(n,t){e.partial=r.getValue(),e.render()})}var n=this;n.codemirrorLoaded=r,n.editorOptions={readOnly:"nocursor",lineWrapping:!0,lineNumbers:!0,mode:"text/javascript"}}angular.module("app").cont...
export class App { configureRouter(config, router) { config.title = 'Crazy Golf Deals'; config.map([ { route: ['','welcom'], name: 'welcome', moduleId: 'welcome', nav: true, title:'Welcome' }, { route: 'deals', name: 'deals', moduleId: 'deals', nav: true, title:"deals"}...
$(document).ready(function() { document.session = $('#session').val(); setTimeout(requestInventory, 100); $('#add-button').click(function(event) { jQuery.ajax({ url: '//localhost:8000/cart', type: 'POST', data: { session: document.session, action: 'add' }, dataType: 'json', beforeSend...
// @require ../init.js (function ( $ ) { /* ELEMENTS */ $.$empty = $(); $.$window = $(window); $.window = window; $.$document = $(document); $.document = document; $.$html = $(document.documentElement); $.html = document.documentElement; $.$head = $(document.head); $.head = document.head; Ob...
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } __export(require('./chat-thread.component')); __export(require('./chat-threads.component')); //# sourceMappingURL=index.js.map
export default ({projectDir}) => ({ files: projectDir, });
'use strict'; var Driver = require('../driver'); module.exports = function (t, a) { var db = new Driver(), storage = db.getStorage('base'); a(t(), false); a(t(null), false); a(t(true), false); a(t('sdfss'), false); a(t('sdfss'), false); a(t(db), true); a(t(storage), false); };
/** * public script for index page * * -- namespaces -- * $ : jQuery * l : message resource * hbs : handlebars * */ (function ($, l, hbs) { $.fn.extend({ }); $(function () { var body = $(document.body); }); })(jQuery, window['l'], Handlebars);
(function(){ 'use strict'; var main = { method1 : function(){ alert('a'); }, _method : function(){ }, init : function(){ this.method1(); //this._method(); } }; if(typeof window.main === 'undefined') window.main = ...
/*jslint newcap: true */ /*global XMLHttpRequest: false, FormData: false */ /* * Inline Text Attachment * * Author: Roy van Kaathoven * Contact: ik@royvankaathoven.nl */ (function(document, window) { 'use strict'; var inlineAttachment = function(options, instance) { this.settings = inlineAttachment.util.m...
require.config({ baseUrl: 'js/lib', paths: { 'test': '../../..', 'mocha': 'mocha/mocha', 'chai': 'chai/chai' }, packages: [ { name: 'xml', location: '../../../..', main: 'main' } ], shim: { 'mocha': { exports: 'mocha' } } }); require(['../suite']);
angular.module('product-app',[]);
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z" /></React.Fragment> , 'PauseCircleFilled');
require('../spec_helper'); describe('Alert', function() { var SuccessAlert; beforeEach(function() { SuccessAlert = require('../../../src/pivotal-ui-react/alerts/alerts').SuccessAlert; }); afterEach(function() { React.unmountComponentAtNode(root); }); it('passes down the className, id, and style p...
var tzone = function(){ this.version = '0.0.2'; } exports.getLocation = function(d){ if (!d) var d = new Date(); var summer = new Date(Date.UTC(d.getFullYear(), 6, 30)); var winter = new Date(Date.UTC(d.getFullYear(), 12, 30)); var so = -1 * summer.getTimezoneOffset(); var wo = -1 * winter.getTimezoneOff...
{ "AD" : "AD", "BC" : "BC", "DateTimeCombination" : "{1} {0}", "DateTimeTimezoneCombination" : "{1} {0} {2}", "DateTimezoneCombination" : "{1} {2}", "HMS_long" : "{0} {1} {2}", "HMS_short" : "{0}:{1}:{2}", "HM_abbreviated" : "h:mm a", "HM_short" : "h:mm a", "H_abbreviated" : "h a", "MD_abbreviated" : "MMM d"...
/* CUSTOMIZED DROPDOWNCHECKLIST(works with jquery 1.9) reference: http://code.google.com/p/dropdown-check-list/issues/detail?id=268 */ ; (function ($) { /* * ui.dropdownchecklist * * Copyright (c) 2008-2010 Adrian Tosca, Copyright (c) 2010-2011 Ittrium LLC * Dual...
module.exports = function bcadd (leftOperand, rightOperand, scale) { // discuss at: https://locutus.io/php/bcadd/ // original by: lmeyrick (https://sourceforge.net/projects/bcmath-js/) // example 1: bcadd('1', '2') // returns 1: '3' // example 2: bcadd('-1', '5', 4) // returns 2: '4.0000' // ex...
$(function() { /*var pgurl = window.location.href.substr(window.location.href .lastIndexOf("/")+1); $("#nav li a").each(function(){ if($(this).attr("href") == pgurl || $(this).attr("href") == '' ) $(this).addClass("active"); })*/ document.getElementById("nav").focus(); });/* ...
$(document).ready(function(){ var title= document.querySelector('h2'); var week = title.dataset.week; var teamSlug = title.dataset.teamslug; console.log(teamSlug); var teamName = title.dataset.teamname; var choicesList = []; $('input[value="Update Picks"]').click...
/** * Point of contact for component modules * * ie: import { CounterButton, InfoBar } from 'components'; * */ export InfoBar from './InfoBar/InfoBar'; export MiniInfoBar from './MiniInfoBar/MiniInfoBar';
import Ember from 'ember'; import hbs from 'htmlbars-inline-precompile'; import { numbers } from '../constants'; import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent('ember-collection-select', 'Unit | Component | ember select', { integration: true //needs: ['component:ember-collection-select...
var LoebslisteAdminPlus = function() { add_input_widget = function() { var submit = $("#content form :submit"); if (submit.length === 3) { submit.first().remove(); } var html = "<button id=lap_input_btn_translate type=button>Oversæt opskrift til starttider</button>"; html += "<button id=lap_input_btn_sa...
import { expect } from 'chai'; import sinon from 'sinon'; import Client from '../../src/client/client'; import getPages from '../../src/client.methods/pages'; describe('pages.js', () => { describe('getPages()', () => { const EXPECTED_ERROR_MESSAGE = 'You must provide a page ID.'; const ERROR_MESSAGE_CALLBA...
import Link from 'next/link' import faker from 'faker' const About = ({ name }) => { return ( <div> <h1>About Page</h1> <p>Welcome, {name}.</p> <p> This page is using getStaticProps, so the name will always be {name}{' '} even if you reload the page. </p> <div> ...