code
stringlengths
1
2.08M
language
stringclasses
1 value
/* A A L Source code at: T C A <http://www.attacklab.net/> T K B */ var Showdown={}; Showdown.converter=function(){ var _1; var _2; var _3; var _4=0; this.makeHtml=function(_5){ _1=new Array(); _2=new Array(); _3=new Array(); _5=_5.replace(/~/g,"~T"); _5=_5.replace(/\$/g,"~D"); _5=_5.replace(/\r\n/g,...
JavaScript
////////////////////////////////////////////////////////////// // Joystick.js // Penelope iPhone Tutorial // // Joystick creates a movable joystick (via GUITexture) that // handles touch input, taps, and phases. Dead zones can control // where the joystick input gets picked up and can be normalized. // // Optionally, ...
JavaScript
////////////////////////////////////////////////////////////// // FollowTransform.js // Penelope iPhone Tutorial // // FollowTransform will follow any assigned Transform and // optionally face the forward vector to match for the Transform // where this script is attached. //////////////////////////////////////////////...
JavaScript
////////////////////////////////////////////////////////////// // PlayerRelativeControl.js // Penelope iPhone Tutorial // // PlayerRelativeControl creates a control scheme similar to what // might be found in a 3rd person, over-the-shoulder game found on // consoles. The left stick is used to move the character, and th...
JavaScript
////////////////////////////////////////////////////////////// // RotationConstraint.js // Penelope iPhone Tutorial // // RotationConstraint constrains the relative rotation of a // Transform. You select the constraint axis in the editor and // specify a min and max amount of rotation that is allowed // from the def...
JavaScript
#pragma strict var target : Transform; var smoothTime = 0.3; private var thisTransform : Transform; private var velocity : Vector2; function Start() { thisTransform = transform; } function Update() { thisTransform.position.x = Mathf.SmoothDamp( thisTransform.position.x, target.position.x, velocity.x, smoothTi...
JavaScript
 var power : float = 500.00; function Start () { var s : tapcontrol; s.Start(); } public function toss() { rigidbody.AddForce(Vector3(0,0,500)); }
JavaScript
////////////////////////////////////////////////////////////// // CameraRelativeControl.js // Penelope iPhone Tutorial // // CameraRelativeControl creates a control scheme similar to what // might be found in 3rd person platformer games found on consoles. // The left stick is used to move the character, and the right /...
JavaScript
////////////////////////////////////////////////////////////// // SidescrollControl.js // // SidescrollControl creates a 2D control scheme where the left // pad is used to move the character, and the right pad is used // to make the character jump. ////////////////////////////////////////////////////////////// #pragma...
JavaScript
////////////////////////////////////////////////////////////// // FirstPersonControl.js // // FirstPersonControl creates a control scheme where the camera // location and controls directly map to being in the first person. // The left pad is used to move the character, and the // right pad is used to rotate the charac...
JavaScript
////////////////////////////////////////////////////////////// // TapControl.js // Penelope iPhone Tutorial // // TapControl handles the control scheme in which Penelope is // driven by a single finger. When the player touches the screen, // Penelope will move toward the finger. The player can also // use two fingers t...
JavaScript
////////////////////////////////////////////////////////////// // ZoomCamera.js // Penelope iPhone Tutorial // // ZoomCamera is a simple camera that uses a zoom value to zoom // the camera in or out relatively from the default position set // in the editor. It can snap to zoom values when moving closer // to the speci...
JavaScript
#pragma strict var tilt : Vector3 = Vector3.zero; var speed : float; private var circ : float; private var previousPosition : Vector3; @script RequireComponent(Rigidbody) function Start() { //Find the circumference of the circle so that the circle can be rotated the appropriate amount when rolling circ = 2;// * Ma...
JavaScript
#pragma strict var plane : Transform; function CalculateObliqueMatrix( projection : Matrix4x4 , clipPlane : Vector4 ) : Matrix4x4 { var q : Vector4 = projection.inverse * Vector4( Mathf.Sign(clipPlane.x), Mathf.Sign(clipPlane.y), 1.0, 1.0); var c : Vector4 = clipPlane * (2.0 / (Vector4.Dot(clipPlane, q)));...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
angular.module('findMyPhone.controllers', []) .controller('AppCtrl', function($scope, $ionicModal, $timeout) { $scope.app = "FindYourPhone"; $scope.saveSettings = function(){ salvaDbLocale(); } }) .controller('TutorialCtrl', function($scope, $ionicSlideBoxDelegate, $state){ // Called to navigate to the main a...
JavaScript
var ListenVoice = { active : function(success, error, rec) { cordova.exec(success,error, "ListenVoice", "active_service", [rec]); }, stop : function(success, error) { cordova.exec(success, error, "ListenVoice", "stop_service", []); }, record: function(success, error){ cordova.exec(success, error, "Li...
JavaScript
function createDatabase() { persistence.store.websql.config(persistence, 'findPhonedb', 'findPhone db', 50 * 1024 * 1024); Info = persistence.define('Info', { find_id: 'INT', listen_on : 'BOOL', tutorial: 'BOOL', registration: 'TEXT', suoneria: "BOOL", vibrazione: "BOOL", led: "BOOL" }); In...
JavaScript
// Ionic Starter App // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' // 'starter.controllers' is found in controllers.js var...
JavaScript
cordova.define("com.phonegap.plugins.PushPlugin.PushNotification", function(require, exports, module) { var PushNotification = function() { }; // Call this to register for push notifications. Content of [options] depends on whether we are working with APNS (iOS) or GCM (Android) PushNotification.prototype.regist...
JavaScript
cordova.define("nl.x-services.plugins.flashlight.Flashlight", function(require, exports, module) { function Flashlight() { // track flashlight state this._isSwitchedOn = false; } Flashlight.prototype = { available: function (callback) { cordova.exec(function (avail) { callback(avail ? true : ...
JavaScript
cordova.define("org.apache.cordova.media.Media", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF li...
JavaScript
cordova.define("org.apache.cordova.media.MediaError", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The A...
JavaScript
cordova.define("org.apache.cordova.device.device", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF ...
JavaScript
cordova.define("org.apache.cordova.dialogs.notification_android", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright owner...
JavaScript
cordova.define("org.apache.cordova.dialogs.notification", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. T...
JavaScript
cordova.define("org.apache.cordova.file.FileError", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF...
JavaScript
cordova.define("org.apache.cordova.file.FileUploadResult", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
JavaScript
cordova.define("org.apache.cordova.file.DirectoryReader", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. T...
JavaScript
cordova.define("org.apache.cordova.file.androidFileSystem", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
JavaScript
cordova.define("org.apache.cordova.file.Entry", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lic...
JavaScript
cordova.define("org.apache.cordova.file.File", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lice...
JavaScript
cordova.define("org.apache.cordova.file.FileEntry", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF...
JavaScript
cordova.define("org.apache.cordova.file.FileWriter", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The AS...
JavaScript
cordova.define("org.apache.cordova.file.fileSystemPaths", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. T...
JavaScript
cordova.define("org.apache.cordova.file.Metadata", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF ...
JavaScript
cordova.define("org.apache.cordova.file.FileSystem", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The AS...
JavaScript
cordova.define("org.apache.cordova.file.ProgressEvent", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The...
JavaScript
cordova.define("org.apache.cordova.file.resolveLocalFileSystemURI", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright own...
JavaScript
cordova.define("org.apache.cordova.file.FileUploadOptions", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
JavaScript
cordova.define("org.apache.cordova.file.LocalFileSystem", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. T...
JavaScript
cordova.define("org.apache.cordova.file.Flags", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lic...
JavaScript
cordova.define("org.apache.cordova.file.fileSystems", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The A...
JavaScript
cordova.define("org.apache.cordova.file.DirectoryEntry", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Th...
JavaScript
cordova.define("org.apache.cordova.file.FileReader", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The AS...
JavaScript
cordova.define("org.apache.cordova.file.requestFileSystem", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
JavaScript
cordova.define("org.apache.cordova.file.fileSystems-roots", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
JavaScript
cordova.define("com.ionic.keyboard.keyboard", function(require, exports, module) { var argscheck = require('cordova/argscheck'), utils = require('cordova/utils'), exec = require('cordova/exec'); var Keyboard = function() { }; Keyboard.hideKeyboardAccessoryBar = function(hide) { exec(null, nul...
JavaScript
cordova.define("org.apache.cordova.vibration.notification", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
JavaScript
cordova.define("com.phonegap.plugins.speech.SpeechRecognizer", function(require, exports, module) { /** * The MIT License * * Copyright (c) 2011-2013 * Colin Turner (github.com/koolspin) * Guillaume Charhon (github.com/poiuytrez) * * Permission is hereby granted, free of charge, to any person obtaining a ...
JavaScript
/*! * ionic.bundle.js is a concatenation of: * ionic.js, angular.js, angular-animate.js, * angular-sanitize.js, angular-ui-router.js, * and ionic-angular.js */ /*! * Copyright 2014 Drifty Co. * http://drifty.com/ * * Ionic, v1.0.0-beta.10 * A powerful HTML5 mobile app framework. * http://ionicframework.com/...
JavaScript
/*! * Copyright 2014 Drifty Co. * http://drifty.com/ * * Ionic, v1.0.0-beta.10 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * By @maxlynch, @benjsperry, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */ (function() { // Create nam...
JavaScript
/*! * Copyright 2014 Drifty Co. * http://drifty.com/ * * Ionic, v1.0.0-beta.10 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * By @maxlynch, @benjsperry, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */ (function() { /* * deprecat...
JavaScript
/** * @license * Copyright (c) 2010 Zef Hemel <zef@zef.me> * * 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, * ...
JavaScript
try { if(!window) { window = {}; //exports.console = console; } } catch(e) { window = {}; exports.console = console; } var persistence = (window && window.persistence) ? window.persistence : {}; if(!persistence.store) { persistence.store = {}; } persistence.store.websql = {}; persistence.store.w...
JavaScript
/** * Default type mapper. Override to support more types or type options. */ var defaultTypeMapper = { /** * SQL type for ids */ idType: "VARCHAR(32)", /** * SQL type for class names (used by mixins) */ classNameType: "TEXT", /** * Returns SQL type for column definition */ columnType:...
JavaScript
/** * Copyright (c) 2010 Zef Hemel <zef@zef.me> * * 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,...
JavaScript
var PushNotification = function() { }; // Call this to register for push notifications. Content of [options] depends on whether we are working with APNS (iOS) or GCM (Android) PushNotification.prototype.register = function(successCallback, errorCallback, options) { if (errorCallback == null) { errorCallback...
JavaScript
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "Licen...
JavaScript
// Copyright (c) Microsoft Open Technologies, Inc. Licensed under the MIT license. module.exports = { register: function (success, fail, args) { try { var onNotificationReceived = window[args[0].ecb]; Windows.Networking.PushNotifications.PushNotificationChannelManager.crea...
JavaScript
var isCommonJS = typeof window == "undefined"; /** * Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework. * * @namespace */ var jasmine = {}; if (isCommonJS) exports.jasmine = jasmine; /** * @private */ jasmine.unimplementedMethod_ = function() { throw new Error("u...
JavaScript
jasmine.HtmlReporterHelpers = {}; jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) { var el = document.createElement(type); for (var i = 2; i < arguments.length; i++) { var child = arguments[i]; if (typeof child === 'string') { el.appendChild(document.createTe...
JavaScript
jasmine.HtmlReporter.SpecView = function(spec, dom, views) { this.spec = spec; this.dom = dom; this.views = views; this.symbol = this.createDom('li', { className: 'pending' }); this.dom.symbolSummary.appendChild(this.symbol); this.summary = this.createDom('div', { className: 'specSummary' }, ...
JavaScript
jasmine.HtmlReporter.ReporterView = function(dom) { this.startedAt = new Date(); this.runningSpecCount = 0; this.completeSpecCount = 0; this.passedCount = 0; this.failedCount = 0; this.skippedCount = 0; this.createResultsMenu = function() { this.resultsMenu = this.createDom('span', {classNam...
JavaScript