repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/eventmanager.js | public/src/core/eventmanager.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [], function(){
/**
* EventManagerWrapper - an event queue wrapper
*
* Takes an ob... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/track.js | public/src/core/track.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "localized", "./eventmanager", "./trackevent", "./views/track-view", "util/sanitizer" ],
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/target.js | public/src/core/target.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
(function() {
define( [ "core/logger", "core/eventmanager", "ui/page-element", "analytics" ],
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/config.js | public/src/core/config.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
(function( undefined ) {
/**
* Shared config for all Configuration instances, keyed on configID ... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/logger.js | public/src/core/logger.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
(function( undefined ) {
// By default, logging is off.
var __debug = false;
/**
* Module: ... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/project.js | public/src/core/project.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "localized", "core/eventmanager", "core/media", "util/sanitizer" ],
function( Locali... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/observer.js | public/src/core/observer.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define([], function(){
/**
* Notification
*
* A Notification object is passed to subscribe... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/media.js | public/src/core/media.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
(function() {
define( [
"core/logger",
"core/eventmanager",
"cor... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/popcorn-wrapper.js | public/src/core/popcorn-wrapper.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
/*jshint evil:true*/
define( [ "localized", "core/logger", "core/eventmanager", "util/uri", "util/acce... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/views/track-view.js | public/src/core/views/track-view.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "core/logger", "core/eventmanager", "util/dragndrop", "analytics" ],
function( Logger, Eve... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/core/views/trackevent-view.js | public/src/core/views/trackevent-view.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "localized", "core/logger", "core/eventmanager", "util/dragndrop",
"util/lang", "t... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/trackhandles.js | public/src/timeline/trackhandles.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "dialog/dialog", "util/dragndrop", "util/lang", "util/keys", "text!layouts/track-handle.html... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/track-container.js | public/src/timeline/track-container.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "core/logger", "util/dragndrop", "./ghost-manager", "analytics" ],
function( Logger, DragN... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/scrubber.js | public/src/timeline/scrubber.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "util/time" ],
function( util ) {
var SCROLL_INTERVAL = 16,
SCROLL_DISTANCE = 20,... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/super-scrollbar.js | public/src/timeline/super-scrollbar.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
/* Super scrollbar is a scrollbar and a zoom bar in one.
* It also doubles as a minimap of sorts.
* ... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/ghost-track.js | public/src/timeline/ghost-track.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
/*
* Module: GhostTrack
*
* Creates a ghosted track that will potentially get created if an overlap... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/status.js | public/src/timeline/status.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "util/time", "util/keys", "analytics" ], function( util, Keys, analytics ){
function Butt... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/timebar.js | public/src/timeline/timebar.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "./scrubber" ], function( Scrubber ) {
var CANVAS_CONTAINER_PADDING = 5,
TICK_COLOR... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/ghost-manager.js | public/src/timeline/ghost-manager.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "./ghost-track" ], function( GhostTrack ) {
function GhostManager( media, tracksContainer... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/media.js | public/src/timeline/media.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "core/trackevent", "core/track", "core/eventmanager",
"./track-container", "util/s... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/timeline/module.js | public/src/timeline/module.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [
"core/logger",
"./media"
],
function(
Logger,
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/header.js | public/src/ui/header.js | /*globals TogetherJS*/
define([ "languages", "localized", "dialog/dialog", "util/lang", "l10n!/layouts/header.html", "ui/widget/textbox", "ui/widget/tooltip",
"ui/widget/ProjectDetails", "util/togetherjs-syncer", "analytics", "selectize", "jquery" ],
function( Languages, Localized, Dialog, Lang, HEADER_TEMPL... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/page-element.js | public/src/ui/page-element.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "core/logger", "util/dragndrop" ],
function( Logger, DragNDrop ) {
var BLINK_DURA... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/toggler.js | public/src/ui/toggler.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [], function() {
return function( rootElement, clickHandler, elementTitle, startState ){
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/logo-spinner.js | public/src/ui/logo-spinner.js | define( [ "util/lang", "text!layouts/logo-spinner.html" ],
function( LangUtils, LAYOUT_SRC ) {
return function( parentElement ) {
var outerElement = LangUtils.domFragment( LAYOUT_SRC, ".butter-logo-spin-outer" ),
innerElement = outerElement.querySelector( ".butter-spinner" );
if( parentElement ){... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/ui.js | public/src/ui/ui.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "core/eventmanager", "./header",
"./unload-dialog", "crashreporter",
"fi... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/tray.js | public/src/ui/tray.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "util/lang", "./logo-spinner", "./resizeHandler", "./toggler", "localized",
"text... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/resizeHandler.js | public/src/ui/resizeHandler.js | define([], function() {
return function( options ) {
options = options || {};
var video = document.querySelector( ".video-container" ),
wrapper = document.querySelector( ".wrapper" ),
container,
margin = options.margin || 0,
border = options.border || 0,
marginOffset =... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/unload-dialog.js | public/src/ui/unload-dialog.js | define([ "localized" ], function( Localized ) {
return function( butter ) {
function areYouSure() {
return Localized.get( "You have unsaved project data." );
}
butter.listen( "projectchanged", function() {
window.onbeforeunload = areYouSure;
});
butter.listen( "projectsaved", funct... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/widget/controls.js | public/src/ui/widget/controls.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "util/lang", "util/time", "analytics", "text!layouts/controls.html" ],
function( LangUtils... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/widget/ProjectDetails.js | public/src/ui/widget/ProjectDetails.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/popcorn.webmaker.org/master/LICENSE */
define( [ "util/keys", "ui/widget/tooltip", "localized", "ui/widget/textbox",
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/widget/tooltip.js | public/src/ui/widget/tooltip.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
/* This widget allows you to create a tooltip by:
* a) Manually calling Tooltip.create( "Some mess... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/ui/widget/textbox.js | public/src/ui/widget/textbox.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
/**
* Butter Textbox Widget Wrapper
*
* A simple input textbox with cross-browser click-to-select f... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/loaders/css-loader.js | public/src/loaders/css-loader.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at http://www.mozillapopcorn.org/butter-license.txt */
define( [ "./base-loader" ], function( BaseLoader ) {
var CSS_POLL_INTERVAL = 10;
function CSSLoader... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/loaders/base-loader.js | public/src/loaders/base-loader.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at http://www.mozillapopcorn.org/butter-license.txt */
define( [], function() {
// Look for variables with alphanumeric symbols, dashes, underscores,
// and... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/loaders/load-item.js | public/src/loaders/load-item.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at http://www.mozillapopcorn.org/butter-license.txt */
define( [], function() {
/**
* Class: LoadItem
*
* Maintains state and executes loading proced... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/loaders/js-loader.js | public/src/loaders/js-loader.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at http://www.mozillapopcorn.org/butter-license.txt */
define( [ "./base-loader" ], function( BaseLoader ) {
function JSLoader( configDirs ) {
BaseLoader.... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/loaders/load-group.js | public/src/loaders/load-group.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at http://www.mozillapopcorn.org/butter-license.txt */
define( [ "./load-item" ], function( LoadItem ) {
/**
* Class: LoadGroup
*
* A LoadGroup is us... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/butter.inject.js | public/test/butter.inject.js | /*global QUnit*/
(function( global ) {
var combineFn = function( first, second ) {
first = first || function() {};
second = second || function() {};
return function( message ) {
first.call( this, message );
second.call( this, message );
};
};
if ( QUnit && global.parent ) {
QUn... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/butter.testrunner.js | public/test/butter.testrunner.js | (function() {
var TestRunner = window.TestRunner = function() {
var id = function( name ) {
return document.getElementById( name );
},
create = function( type ) {
return document.createElement( type );
},
index = 0,
testFrame,
results = id( "qun... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/inject.js | public/test/inject.js | /**
* JavaScript file to included by the test suite page that it loaded
* inside the iframe on the "run" pages. This injection must be done
* by the guest page, it can't be loaded by TestSwarm.
* Example:
* - https://github.com/jquery/jquery/blob/master/test/data/testrunner.js
* - https://github.com/jquery/jquery... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/test-utils.js | public/test/test-utils.js | window._testInitCallback = function(){};
window._testBeforeCallback = function(){};
window._testAfterCallback = function(){};
function createButterCore( callback ){
Butter.init({
config: "../test-config-core.json",
debug: false,
ready: function( butter ){
callback( butter );
}
});
}
functio... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/qunit/qunit.js | public/test/qunit/qunit.js | /**
* QUnit - A JavaScript Unit Testing Framework
*
* http://docs.jquery.com/QUnit
*
* Copyright (c) 2011 John Resig, Jörn Zaefferer
* Dual licensed under the MIT (MIT-LICENSE.txt)
* or GPL (GPL-LICENSE.txt) licenses.
*/
(function(window) {
var defined = {
setTimeout: typeof window.setTimeout !== "undefined"... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | true |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/core/test-script.js | public/test/core/test-script.js | if( !window.__testScript ){
window.__testScript = [];
}
window.__testScript.push( true );
| javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/core/test-init.js | public/test/core/test-init.js | /* Note: This code is just for testing script functionality on Butter init.
* Disregard unless you want advanced functionality. */
(function(){
"inline test init";
}()); | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/core/test-after.js | public/test/core/test-after.js | /* Note: This code is just for testing script functionality on Butter init.
* Disregard unless you want advanced functionality. */
(function(){
"inline test after";
}()); | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/core/test-before.js | public/test/core/test-before.js | /* Note: This code is just for testing script functionality on Butter init.
* Disregard unless you want advanced functionality. */
(function(){
"inline test before";
}()); | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/ui/tool-tip.js | public/test/ui/tool-tip.js | document.addEventListener( "DOMContentLoaded", function( e ){
Butter.init({
config: 'ui-config.json',
ready: function( butter ){
var media = butter.media[ 0 ];
function start(){
test( "ToolTip Tests", function() {
var fooTip,
newMessage = "Changing the ToolTip Te... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/ui/test.js | public/test/ui/test.js | document.addEventListener( "DOMContentLoaded", function( e ){
Butter.init({
config: 'ui-config.json',
ready: function( butter ){
var media = butter.media[ 0 ];
function start(){
butterReady = true;
var track = media.addTrack( "Track1" );
media.addTrack( "Track" + Math.ra... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/ui/js/EventUtils.js | public/test/ui/js/EventUtils.js | /**
* EventUtils.js from mozilla-central
*
* Source: http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/tests/SimpleTest/EventUtils.js
* License: http://www.mozilla.org/foundation/licensing.html
* Depends on SpecialPowers: https://github.com/humphd/SpecialPowers
*
* EventUtils provides some utility ... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/manual-tests/no-events-test.js | public/test/manual-tests/no-events-test.js | document.addEventListener( "DOMContentLoaded", function( e ){
Butter.init({
config: "default-config.json",
ready: function( butter ){
var media = butter.media[ 0 ];
function start(){
var track = media.addTrack( "Track1" );
media.addTrack( "Track" + Math.random() );
media.... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/manual-tests/tests.js | public/test/manual-tests/tests.js | /**
* Add your manual test filenames and display names below.
**/
var tests = [
{ href: "test-add.html", name: "Add Events" },
{ href: "test-delete.html", name: "Delete Events" },
{ href: "test-tracks.html", name: "Add Tracks" },
{ href: "test-vimeo.html", name: "Change Media to Vimeo" },
{ href: "test-yout... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/manual-tests/manual-test.js | public/test/manual-tests/manual-test.js |
(function() {
document.addEventListener( "DOMContentLoaded", function setup( e ){
document.removeEventListener( "DOMContentLoaded", setup, false );
// Make sure we have a place to stick the Pass / Fail buttons
var buttonDiv = document.getElementById( "manual-test-buttons" );
if ( !buttonDiv ) {
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/test/manual-tests/basic-test.js | public/test/manual-tests/basic-test.js | document.addEventListener( "DOMContentLoaded", function( e ){
Butter.init({
config: "default-config.json",
ready: function( butter ){
var media = butter.media[ 0 ];
function start(){
var track = media.addTrack( "Track1" );
media.addTrack( "Track" + Math.random() );
media.... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/external/stamen/tile.stamen-1.2.4.js | public/external/stamen/tile.stamen-1.2.4.js | // Cached copy of http://maps.stamen.com/js/tile.stamen.js?v1.2.0 to deal with mixed-content warnings.
// See src/plugins/googlemap/popcorn.googlemap.js
(function(exports) {
/*
* tile.stamen.js v1.2.4
*/
var SUBDOMAINS = " a. b. c. d.".split(" "),
MAKE_PROVIDER = function(layer, type, minZoom, maxZoom) {
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/external/PluginDetect/PluginDetect_Flash.js | public/external/PluginDetect/PluginDetect_Flash.js | /*
PluginDetect v0.8.7
www.pinlady.net/PluginDetect/license/
[ getVersion isMinVersion hasMimeType ]
[ Flash ]
*/
(function(global) {
var PluginDetect={version:"0.8.7",name:"PluginDetect",openTag:"<",hasOwnProperty:({}).constructor.prototype.hasOwnProperty,hasOwn:function(c,d){var b,a;try{a=this.hasOwnProperty.call(c... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/external/sketchfab/sketchfab-iframe.js | public/external/sketchfab/sketchfab-iframe.js | //Copyright 2012, etc.
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define([], factory);
} else {
// Browser globals
root['sketchfab-iframe'] = factory();
}
}(this, function () {
/**
* almond 0.1.2 Copyright (c) 2011, The Dojo Fou... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/external/require/require.js | public/external/require/require.js | /*
RequireJS 2.1.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
Available via the MIT or new BSD license.
see: http://github.com/jrburke/requirejs for details
*/
var requirejs,require,define;
(function(aa){function I(b){return"[object Function]"===L.call(b)}function J(b){return"[object Array]"==... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/external/require/json.js | public/external/require/json.js | define({
load: function (id, require, onload, config) {
if (config.isBuild) {
return onload();
}
// Synchronous XHRs are bad, evil, and necessary here :(
var xhr = new XMLHttpRequest();
xhr.open('GET', id + '?bust=' + Date.now(), false);
xhr.send(null);
if (xhr.status !== 200) {
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/external/require/l10n.js | public/external/require/l10n.js | /**
l10n.js - meant to be used like so:
require(['l10n!/some/url'], ...
Depends on text.js plugin.
**/
define( [ 'text', 'localized' ], function ( text, localized ) {
return {
load: function(name, req, onLoad, config) {
// Do not bother with the work if a build and text will
// not be inli... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/external/require/text.js | public/external/require/text.js | /*
RequireJS text 2.0.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
Available via the MIT or new BSD license.
see: http://github.com/requirejs/text for details
*/
define(["module"],function(a){"use strict";var b,c,d=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],e=/^\s*<\?xml(\s)+v... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/templates/basic/template.js | public/templates/basic/template.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
( function( Butter ) {
document.addEventListener( "DOMContentLoaded", function() {
Butter.init({... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/migrations/2014-05-22-addUserId.js | migrations/2014-05-22-addUserId.js | /**
* This Script is designed to upgrade existing popcorn projects
* generated by Popcorn Maker PRE Webmaker V2. It will publish
* each project the does not contain a MakeID to the MakeAPI
* and add the newly generated MakeID to the record.
**/
var async = require( "async" ),
path = require( "path" ),
con... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/migrations/2013-06-12-PublishToMakeAPI.js | migrations/2013-06-12-PublishToMakeAPI.js | /**
* This Script is designed to upgrade existing popcorn projects
* generated by Popcorn Maker PRE Webmaker V2. It will publish
* each project the does not contain a MakeID to the MakeAPI
* and add the newly generated MakeID to the record.
**/
var async = require( "async" ),
path = require( "path" ),
con... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/migrations/2013-06-17-PublishEditRemixLinks.js | migrations/2013-06-17-PublishEditRemixLinks.js | // Run it with S3_BUCKET=popcorn.webmadecontent.org node PublishEditRemixLinks.js
var async = require("async");
var s3 = require("knox").createClient({
bucket: process.env.S3_BUCKET,
key: process.env.AWS_ID,
secret: process.env.AWS_SECRET
});
var maxId = 60000;
var server = "https://popcorn.webmaker.org/editor... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/metrics.js | lib/metrics.js | // Thin wrapper around node.js statsd client:
// https://github.com/sivy/node-statsd.
// In cases where the statsd client isn't being used, provide a null
// statsd client that is safe to use instead.
var NullStatsDClient = function(){},
NP = NullStatsDClient.prototype;
// Funnel most methods through a shell impl... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/sanitizer.js | lib/sanitizer.js | var sanitizer = {
// From https://github.com/mozilla/zamboni/blob/a4b32033/media/js/mkt/utils.js#L15
escapeHTML: function escapeHTML( s ) {
if ( s && typeof s === "string" ) {
s = s.replace( /&/g, "&" )
.replace( />/g, ">" )
.replace( /</g, "<" )
.replace( /"/g, ... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/makeapi.js | lib/makeapi.js | var config = require( "./config" );
if ( !config.MAKE_ENDPOINT || !config.MAKE_PRIVATEKEY || !config.MAKE_PUBLICKEY ) {
throw new Error( "MakeAPI authentication missing or incorrect" );
}
module.exports = require( "makeapi-client" )({
apiURL: config.MAKE_ENDPOINT,
hawk: {
key: config.MAKE_PRIVATEKEY,
id... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/default-config.js | lib/default-config.js | // This is the default configuration for the Popcorn Maker server
// You shouldn't edit this file. Instead, look at the README for
// various configuration options
module.exports = {
// APP_HOSTNAME must match the address in your browser's URL bar
// If it does not, then Persona sign-in will not work
// Don't ad... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/filter.js | lib/filter.js | var dbCheckFn, filters,
utils = require( "./utilities" );
filters = {
isLoggedIn: function( req, res, next ) {
if ( req.session.user.id ) {
next();
} else {
next( utils.error( 403, "unauthorized" ) );
}
},
isStorageAvailable: function( req, res, next ) {
if ( dbCheckFn() ) {
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/middleware.js | lib/middleware.js | var http = require( "http" ),
utils = require( "./utilities" ),
metrics = require( "./metrics" ),
multiparty = require( "multiparty" );
module.exports.errorHandler = function( err, req, res ) {
if (typeof err === "string") {
console.error("You're passing a string into next(). Go fix this: %s", err);
... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/utilities.js | lib/utilities.js | var async = require( "async" ),
config = require( "./config" ),
fs = require( "fs" ),
http = require( "http" ),
s3 = require( "./s3" ),
url = require( "url" );
module.exports.cleanUpTempFiles = function( paths ) {
paths = paths || [];
async.eachSeries( paths, fs.unlink, function( err ) {
i... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/config.js | lib/config.js | var nconf = require( "nconf" );
// 1) Look for settings from the environment
nconf.env();
// 2) Recurse up the directory tree looking for a file named "local.json"
nconf.file({ dir: __dirname, file: "local.json", search: true });
// 3) Look for settings in a file specified by an environment variable
if ( process.env... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/project.js | lib/project.js | function defaultDBReadyFunction( err ) {
if ( err ) {
err = Array.isArray( err ) ? err[ 0 ] : err;
console.warn( "lib/project.js: DB setup error\n", err.number ? err.number : err.code, err.message );
}
}
module.exports = function( config, dbReadyFn ) {
config = config || {};
dbReadyFn = dbReadyFn || d... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/s3.js | lib/s3.js | var config = require( "./config" ),
s3 = (function() {
var emulated = config.S3_EMULATION || !config.S3_KEY,
options = {
bucket: config.S3_BUCKET,
key: config.S3_KEY,
secret: config.S3_SECRET,
domain: config.S3_DOMAIN
},
s3lib = emu... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
mozilla/popcorn.webmaker.org | https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/lib/models/project.js | lib/models/project.js | module.exports = function( sequelize, DataTypes ) {
return sequelize.define( "Project", {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
data: {
type: DataTypes.TEXT,
allowNull: false
},
email: {
type: DataTypes.STRING
},
userid:... | javascript | MIT | fb3ea8e275db432dd3386f979297865cae682895 | 2026-01-05T03:42:50.677397Z | false |
simonepri/country-iso | https://github.com/simonepri/country-iso/blob/4a9cc3fd9c7d1a8864a8f18f157509758d4a7eb8/demo.js | demo.js | const leaflet = require('leaflet');
const ci18n = require('i18n-iso-countries');
const GeoJsonGeometriesLookup = require('geojson-geometries-lookup');
ci18n.registerLocale(require('i18n-iso-countries/langs/en.json'));
async function fetchMapAsync() {
const response = await fetch('https://unpkg.com/@geo-maps/countri... | javascript | MIT | 4a9cc3fd9c7d1a8864a8f18f157509758d4a7eb8 | 2026-01-05T03:43:03.753342Z | false |
simonepri/country-iso | https://github.com/simonepri/country-iso/blob/4a9cc3fd9c7d1a8864a8f18f157509758d4a7eb8/index.js | index.js | 'use strict';
const GeoJsonPolygonLookup = require('geojson-geometries-lookup');
const getMap = require('@geo-maps/countries-maritime-10m');
let worldLookup = null;
/**
* Searches for every country which contains the point (lat, lng).
* @public
* @param {number} lat The latitude of the point.
* @param {number} ... | javascript | MIT | 4a9cc3fd9c7d1a8864a8f18f157509758d4a7eb8 | 2026-01-05T03:43:03.753342Z | false |
simonepri/country-iso | https://github.com/simonepri/country-iso/blob/4a9cc3fd9c7d1a8864a8f18f157509758d4a7eb8/test.js | test.js | import test from 'ava';
import fs from 'fs-extra';
import i18ncIsoCuntries from 'i18n-iso-countries';
import m from '.';
const cities = require('./fixtures/cities.geo.json');
const reportPath = './report/failed.geo.json';
const failed = {
type: 'FeatureCollection',
features: []
};
test.after.always('generate... | javascript | MIT | 4a9cc3fd9c7d1a8864a8f18f157509758d4a7eb8 | 2026-01-05T03:43:03.753342Z | false |
simonepri/country-iso | https://github.com/simonepri/country-iso/blob/4a9cc3fd9c7d1a8864a8f18f157509758d4a7eb8/demo/index.js | demo/index.js | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | javascript | MIT | 4a9cc3fd9c7d1a8864a8f18f157509758d4a7eb8 | 2026-01-05T03:43:03.753342Z | true |
googlearchive/examples | https://github.com/googlearchive/examples/blob/485de20c8adc2bd249060e77c2e24afa9a01265c/chat/js/chat.js | chat/js/chat.js | $(function() {
// Get a reference to the root of the chat data.
var messagesRef = new Firebase("https://INSTANCE.firebaseio.com/chat");
// When the user presses enter on the message input, write the message to firebase.
$("#messageInput").keypress(function (e) {
if (e.keyCode == 13) {
var name = $("#... | javascript | MIT | 485de20c8adc2bd249060e77c2e24afa9a01265c | 2026-01-05T03:43:08.972713Z | false |
googlearchive/examples | https://github.com/googlearchive/examples/blob/485de20c8adc2bd249060e77c2e24afa9a01265c/leaderboard/js/leaderboard.js | leaderboard/js/leaderboard.js | $(function() {
var LEADERBOARD_SIZE = 5;
// Build some firebase references.
var rootRef = new Firebase("https://INSTANCE.firebaseio.com/leaderboard");
var scoreListRef = rootRef.child("scoreList");
var highestScoreRef = rootRef.child("highestScore");
// Keep a mapping of firebase locations to HTML element... | javascript | MIT | 485de20c8adc2bd249060e77c2e24afa9a01265c | 2026-01-05T03:43:08.972713Z | false |
googlearchive/examples | https://github.com/googlearchive/examples/blob/485de20c8adc2bd249060e77c2e24afa9a01265c/tetris/js/tetris.js | tetris/js/tetris.js | $(function() {
var canvas = $("#canvas0").get(0);
if (!canvas || !canvas.getContext || !canvas.getContext("2d"))
alert("You must use a browser that supports HTML5 Canvas to run this demo.");
function start() {
var tetrisRef = new Firebase("https://INSTANCE.firebaseio.com/tetris");
var tetrisControlle... | javascript | MIT | 485de20c8adc2bd249060e77c2e24afa9a01265c | 2026-01-05T03:43:08.972713Z | false |
googlearchive/examples | https://github.com/googlearchive/examples/blob/485de20c8adc2bd249060e77c2e24afa9a01265c/drawing/js/drawing.js | drawing/js/drawing.js | $(function() {
//Set up some globals
var pixSize = 8, lastPoint = null, currentColor = "000", mouseDown = 0;
//Create a reference to the pixel data for our drawing.
var pixelDataRef = new Firebase("https://INSTANCE.firebaseio.com/drawing");
// Set up our canvas
var myCanvas = document.getElementById("draw... | javascript | MIT | 485de20c8adc2bd249060e77c2e24afa9a01265c | 2026-01-05T03:43:08.972713Z | false |
googlearchive/examples | https://github.com/googlearchive/examples/blob/485de20c8adc2bd249060e77c2e24afa9a01265c/presence/js/presence.js | presence/js/presence.js | $(function() {
// Prompt the user for a name to use.
var name = prompt("Your name?", "Guest"),
currentStatus = "\u2605 online";
var firebaseRef = new Firebase("https://INSTANCE.firebaseio.com");
// Get a reference to the presence data in Firebase.
var userListRef = firebaseRef.child("presence");
//... | javascript | MIT | 485de20c8adc2bd249060e77c2e24afa9a01265c | 2026-01-05T03:43:08.972713Z | false |
googlearchive/examples | https://github.com/googlearchive/examples/blob/485de20c8adc2bd249060e77c2e24afa9a01265c/presence/js/idle.js | presence/js/idle.js | /** @license
// idle.js (c) Alexios Chouchoulas 2009 http://www.bedroomlan.org/coding/detecting-%E2%80%98idle%E2%80%99-and-%E2%80%98away%E2%80%99-timeouts-javascript
// Released under the terms of the GNU Public License version 2.0 (or later).
*/http://www.bedroomlan.org/coding/detecting-%E2%80%98idle%E2%80%99-and-%E2%... | javascript | MIT | 485de20c8adc2bd249060e77c2e24afa9a01265c | 2026-01-05T03:43:08.972713Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/test/tests.js | test/tests.js | var test = require('tape');
var immediate = require("../lib");
test("Handlers do execute", function (t) {
immediate(function () {
t.ok(true, 'handler executed');
t.end();
});
});
test("Handlers do not execute in the same event loop turn as the call to `setImmediate`", function (t) {
var ha... | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/test/worker.js | test/worker.js | importScripts('../dist/immediate.js');
self.onmessage =function (e) {
if (e.data === 'ping') {
immediate(function () {
self.postMessage('pong');
});
}
}; | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/lib/messageChannel.js | lib/messageChannel.js | 'use strict';
exports.test = function () {
if (global.setImmediate) {
// we can only get here in IE10
// which doesn't handel postMessage well
return false;
}
return typeof global.MessageChannel !== 'undefined';
};
exports.install = function (func) {
var channel = new global.MessageChannel();
ch... | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/lib/nextTick.js | lib/nextTick.js | 'use strict';
exports.test = function () {
// Don't get fooled by e.g. browserify environments.
return (typeof process !== 'undefined') && !process.browser;
};
exports.install = function (func) {
return function () {
process.nextTick(func);
};
};
| javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/lib/mutation.js | lib/mutation.js | 'use strict';
//based off rsvp https://github.com/tildeio/rsvp.js
//license https://github.com/tildeio/rsvp.js/blob/master/LICENSE
//https://github.com/tildeio/rsvp.js/blob/master/lib/rsvp/asap.js
var Mutation = global.MutationObserver || global.WebKitMutationObserver;
exports.test = function () {
return Mutation;
... | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/lib/index.js | lib/index.js | 'use strict';
var types = [
require('./nextTick'),
require('./queueMicrotask'),
require('./mutation.js'),
require('./messageChannel'),
require('./stateChange'),
require('./timeout')
];
var draining;
var currentQueue;
var queueIndex = -1;
var queue = [];
var scheduled = false;
function cleanUpNextTick() {
... | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/lib/stateChange.js | lib/stateChange.js | 'use strict';
exports.test = function () {
return 'document' in global && 'onreadystatechange' in global.document.createElement('script');
};
exports.install = function (handle) {
return function () {
// Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
... | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/lib/queueMicrotask.js | lib/queueMicrotask.js | 'use strict';
exports.test = function () {
return typeof global.queueMicrotask === 'function';
};
exports.install = function (func) {
return function () {
global.queueMicrotask(func);
};
};
| javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/lib/timeout.js | lib/timeout.js | 'use strict';
exports.test = function () {
return true;
};
exports.install = function (t) {
return function () {
setTimeout(t, 0);
};
}; | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/dist/immediate.min.js | dist/immediate.min.js | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.immediate=e()}}(function(){return function(){function e... | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
calvinmetcalf/immediate | https://github.com/calvinmetcalf/immediate/blob/c943398fb2a044fce69c8093527d0d608b04e6a7/dist/immediate.js | dist/immediate.js | (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.immediate = f(... | javascript | MIT | c943398fb2a044fce69c8093527d0d608b04e6a7 | 2026-01-05T03:43:12.498499Z | false |
makesmatheasy/makesmatheasy | https://github.com/makesmatheasy/makesmatheasy/blob/eaae3ecee438c6e264cc2d1985775cb06465e6eb/service-worker.js | service-worker.js | self.addEventListener('fetch', function(event) {});
| javascript | MIT | eaae3ecee438c6e264cc2d1985775cb06465e6eb | 2026-01-05T03:42:53.483733Z | false |
makesmatheasy/makesmatheasy | https://github.com/makesmatheasy/makesmatheasy/blob/eaae3ecee438c6e264cc2d1985775cb06465e6eb/appjs/speechrecoforall.js | appjs/speechrecoforall.js | var SpeechRecognitionforall = SpeechRecognition || webkitSpeechRecognition;
var recognitionforall = new SpeechRecognition();
function runSpeechRecognitionforall(output, logo) {
count = 0;
var output = document.getElementById(output);
// var action = document.getElementById(input);
recognitionforal... | javascript | MIT | eaae3ecee438c6e264cc2d1985775cb06465e6eb | 2026-01-05T03:42:53.483733Z | false |
makesmatheasy/makesmatheasy | https://github.com/makesmatheasy/makesmatheasy/blob/eaae3ecee438c6e264cc2d1985775cb06465e6eb/appjs/speechreco.js | appjs/speechreco.js | var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
var recognition = new SpeechRecognition();
function runSpeechRecognition(output, input, logo) {
var output = document.getElementById(output);
var action = document.getElementById(input);
recognition.onstart = function () {
var c ... | javascript | MIT | eaae3ecee438c6e264cc2d1985775cb06465e6eb | 2026-01-05T03:42:53.483733Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.