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/test/lib.filter.test.js
test/lib.filter.test.js
var test = require("tap").test; var filter = require( "../lib/filter" ); test( "isLoggedIn filter allow", function( t ) { t.plan( 1 ); var mockReq = { session: { email: "test.example.org" } }, mockRes = { json: function() { t.ok( false, "this should not be called when session email is set" ); ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/test/lib.sanitizer.test.js
test/lib.sanitizer.test.js
var test = require("tap").test; var sanitizer = require( "../lib/sanitizer" ); test( "String sanitization", function( t ) { t.equal( sanitizer.escapeHTML( "hello world" ), "hello world", "no sanitization needed" ); t.equal( sanitizer.escapeHTML( "<script>alert()</script>" ), "&lt;script&gt;alert()&lt...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/test/mock.filter.js
test/mock.filter.js
function mockFilter(req, res, next) { next(); } module.exports = { isLoggedIn: mockFilter, isStorageAvailable: mockFilter, crossOriginAccessible: mockFilter, isImage: mockFilter };
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/test/mock.sanitizer.js
test/mock.sanitizer.js
module.exports = { escapeHTML: function escapeHTML( s ) { return s; }, escapeHTMLinJSON: function escapeHTMLinJSON( key, value ) { return value; } };
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/test/mock.store.js
test/mock.store.js
module.exports = { publish: { expand: function( id ) { return "v/" + id + ".html"; }, remove: function(path, callback) { callback = callback || function(){}; callback(); } }, images: { expand: function(path) { return path; }, write: function(filename, data, call...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/test/lib.project.test.js
test/lib.project.test.js
var test = require( "tap" ).test, project, mockEmail = "test@example.org", mockData = { data: { test: "Hey Test Values" }, email: mockEmail, name: "Test User", template: "basic" }, mockStores = require( "./mock.store" ), makeapi = { apiURL: "http://loc...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/test/mock.project.js
test/mock.project.js
function generateMockData(id, mediaData) { id = id || parseInt( Math.random()*10000, 10 ); var projectData = { hello: "world", adventure: "bill & ted's", media: mediaData }; return { id: id, data: JSON.stringify( projectData ), email: "test@example.org", name: "My Mock Project", ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/index.js
routes/index.js
module.exports = { api: require( "./api" ), make: require( "./make" ), pages: require( "./pages" ), overrides: function ( app ) { return require( "./overrides" )( app ); }, redirect: function ( app ) { return require( "./redirect" )( app ); }, path: function( path ) { return function( req, r...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/firehose/index.js
routes/firehose/index.js
module.exports = function( Project ) { var utils = require( "../../lib/utilities" ); function endPointSetup( projectMethod ) { return function( req, res ) { Project[ projectMethod ]( { limit: req.params.limit }, function( err, projects ) { if ( err ) { res.jsonp( 500, { error: err } ); ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/firehose/remixes.js
routes/firehose/remixes.js
module.exports = function( Project ) { var utils = require( "../../lib/utilities" ); return function( req, res ) { Project.findRemixes( { id: req.params.id }, function( err, projects ) { if ( err ) { res.jsonp( 500, { error: err } ); } res.jsonp( { status: "okay", results: utils.prune...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/pages/index.js
routes/pages/index.js
var config = require( "../../lib/config" ); module.exports.editor = function( req, res ) { res.render( "editor.html", { csrf: req.csrfToken(), personaEmail: req.session.email, togetherjs: config.TOGETHERJS, togetherjsEnabled: config.TOGETHERJS_ENABLED }); };
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/overrides/index.js
routes/overrides/index.js
module.exports = function( app ) { var routes = [ "/layouts/status-area.html", "/layouts/media-editor.html", "/layouts/media-instance.html", "/layouts/project-editor.html", "/editors/default.html", "/layouts/editor-area.html", "/layouts/plugin-list-editor.html", "/layouts/sequencer-edi...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/make/remove.js
routes/make/remove.js
var utils = require( "../../lib/utilities" ), makeClient = require( "../../lib/makeapi" ); module.exports = function( req, res, next ) { makeClient.remove( res.locals.project.makeid, function( err ) { if ( err ) { return next( utils.error( 500, err.toString() ) ); } next(); }); };
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/make/publish.js
routes/make/publish.js
var utilities = require( "../../lib/utilities" ), metrics = require( "../../lib/metrics" ), makeClient = require( "../../lib/makeapi" ); module.exports = function( req, res, next ) { var project = res.locals.project; if ( !project ) { return next( utilities.error( 404, "No Project Found" ) ); } m...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/make/index.js
routes/make/index.js
module.exports = { synchronize: require( "./synchronize" ), publish: require( "./publish" ), remove: require( "./remove" ) };
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/make/synchronize.js
routes/make/synchronize.js
var utils = require( "../../lib/utilities" ), makeClient = require( "../../lib/makeapi" ); module.exports = function( req, res, next ) { var project = req.project; if ( !project ) { return next( utils.error( 404, "No Project Found" ) ); } if ( !project.makeid ) { makeClient.create({ title: ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/projectResponse.js
routes/api/projectResponse.js
var utils = require( "../../lib/utilities" ), makeClient = require( "../../lib/makeapi" ), metrics = require( "../../lib/metrics" ); module.exports = function( Project ) { return function( req, res, next ) { makeClient.id( res.locals.project.makeid ).then(function( err, make ) { var remixId; ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/remix.js
routes/api/remix.js
module.exports = function( req, res, next ) { var sanitizer = require( "../../lib/sanitizer" ), projectJSON = JSON.parse( res.locals.project.data, sanitizer.reconstituteHTMLinJSON ); projectJSON.name = "Remix of " + res.locals.project.name; projectJSON.template = res.locals.project.template; projectJSON....
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/remove.js
routes/api/remove.js
module.exports = function( req, res, next ) { var utils = require( "../../lib/utilities" ), metrics = require( "../../lib/metrics" ), s3 = require( "../../lib/s3" ), async = require( "async" ); var project = res.locals.project; if ( !project ) { return next( utils.error( 404, "project not ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/publish.js
routes/api/publish.js
var async = require( "async" ), s3 = require( "../../lib/s3" ), config = require( "../../lib/config" ), sanitizer = require( "../../lib/sanitizer" ), utilities = require( "../../lib/utilities" ); module.exports = function( req, res, next ) { var description = req.project.description || req.gettext( "...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/crash.js
routes/api/crash.js
module.exports = function( req, res ) { res.send( 200 ); };
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/index.js
routes/api/index.js
module.exports = { crash: require( "./crash" ), feedback: require( "./feedback" ), healthcheck: require( "./healthcheck" ), image: require( "./image" ), publish: require( "./publish" ), projectResponse: require( "./projectResponse" ), synchronize: require( "./synchronize" ), remove: require( "./remove" ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/feedback.js
routes/api/feedback.js
module.exports = function( req, res ) { res.send( 200 ); };
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/healthcheck.js
routes/api/healthcheck.js
var version = require( "../../package" ).version; var wts = require( "webmaker-translation-stats" ); var i18n = require( "webmaker-i18n" ); var path = require( "path" ); module.exports = function( req, res ) { var healthcheckObject = { http: "okay", version: version }; wts(i18n.getSupportLanguages(), pat...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/find.js
routes/api/find.js
var utils = require( "../../lib/utilities" ); module.exports = function( req, res, next ) { var projectJSON = JSON.parse( res.locals.project.data ); projectJSON.name = res.locals.project.name; projectJSON.projectID = res.locals.project.id; projectJSON.description = res.locals.project.description; projectJSO...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/synchronize.js
routes/api/synchronize.js
var metrics = require( "../../lib/metrics" ), escapeHTML = require( "../../lib/sanitizer" ).escapeHTML; function sanitizeProjectData( projectData ) { projectData.name = escapeHTML( projectData.name || "" ); projectData.description = escapeHTML( projectData.description || "" ); return projectData; } module.e...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/api/image.js
routes/api/image.js
var fs = require( "fs" ), metrics = require( "../../lib/metrics" ), s3 = require( "../../lib/s3" ), utilities = require( "../../lib/utilities" ), uuid = require( "node-uuid" ); var validMimeTypes = { "image/jpeg": ".jpg", "image/png": ".png", "image/gif": ".gif", "image/svg+xml": ".svg" }; mod...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/routes/redirect/index.js
routes/redirect/index.js
module.exports = function (app) { var redirectMap = [{ route: "/src/plugins/popup/popcorn.popup.css", paths: [ "/templates/assets/plugins/popup/popcorn.popup.css" ] }, { route: "/src/plugins/image/popcorn.image.css", paths: [ "/templates/assets/plugins/image/popcorn.image.css" ...
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/popcorn.js
public/src/popcorn.js
requirejs.config({ // Paths are aliases to other modules paths: { // Core "popcorn.core": "../static/bower/popcorn-js/popcorn", "popcorn.ie8": "../static/bower/popcorn-js/ie8/popcorn.ie8", // Wrappers "popcorn._MediaElementProto": "../static/bower/popcorn-js/wrappers/common/popcorn._MediaElemen...
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/crashreporter.js
public/src/crashreporter.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: CrashReporter * * Provides backend and UI for the crash reporter */ define( [ "dialo...
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/modules.js
public/src/modules.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( [ "editor/module", "timeline/module", "cornfield/module", "plugins/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/dependencies.js
public/src/dependencies.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([ "loaders/js-loader", "loaders/css-loader", "loaders/load-group" ], function( JSLoader, CSSL...
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/butter.js
public/src/butter.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 */ // Since template.js will be ready before Butter, prepare a shim window.Butter = { init: function() ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
true
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/first-run.js
public/src/first-run.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: First-Run * * Determines whether or not a user should be shown a first-run dialog */...
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/embed.js
public/src/embed.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 init() { var stateClasses = [ "embed-playing", "embed-paused", ...
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/dialogs.js
public/src/dialogs.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/dialogs/error-message", "dialog/dialogs/track-data", "dialog/dialogs/delete-tra...
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/util/uri.js
public/src/util/uri.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(){ // ------------------------------------------------------------- // parse...
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/util/sanitizer.js
public/src/util/sanitizer.js
/** * The sanitizer is a client-side text sanitizer, which takes * user-generated text content and checks it for whether or not * it generates illegal DOM nodes, if injected into a page. * Any such nodes are stripped out. */ define( [], function() { // use an offscreen document, to prevent autoloading of HTML e...
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/util/keys.js
public/src/util/keys.js
define( [], function() { return { DELETE: 8, TAB: 9, ENTER: 13, ESCAPE: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, 0: 48, 1: 49, 2: 50, 3: 51, 4: 52, ...
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/util/social-media.js
public/src/util/social-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 */ /* * Thanks to Atul and Pomax for this! https://github.com/toolness/friendlycode/blob/gh-pages/js/fc/...
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/util/warn.js
public/src/util/warn.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", "text!layouts/warn.html" ], function( Lang, WARNING_LAYOUT ){ var WARNING_WAI...
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/util/togetherjs-syncer.js
public/src/util/togetherjs-syncer.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 */ /*globals TogetherJS*/ define( [ "core/media", "core/track", "core/trackevent", "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/util/dragndrop.js
public/src/util/dragndrop.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", "util/lang", "util/scroll-group" ], function( EventManager, LangUtils...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
true
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/util/accepted-ua.js
public/src/util/accepted-ua.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() { var ACCEPTED_UA_LIST = { "Chromium": 17, "Chrome": 17, "Firefox": 10, ...
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/util/deprecated.js
public/src/util/deprecated.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(){ // This fills in any plugins that no longer // exist but may still exist in user data...
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/util/scroll-group.js
public/src/util/scroll-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( [], function() { function ScrollGroup( scrollElement ) { this.scrollDiff = [ 0, 0 ]; th...
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/util/lang.js
public/src/util/lang.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(){ var DEFAULT_TRANSITION_TIMEOUT = 15; var TRANSFORM_PROPERTY = (function(...
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/util/shims.js
public/src/util/shims.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(){ /*global self, DOMException, Range */ // Provide a global console method ...
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/util/scrollbars.js
public/src/util/scrollbars.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" ], function( EventManager ) { var VERTICAL_SIZE_REDUCTION_FACTOR = 3,...
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/util/accepted-flash.js
public/src/util/accepted-flash.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([ "../../external/PluginDetect/PluginDetect_Flash", "util/warn", "localized" ],...
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/util/time.js
public/src/util/time.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(){ var __timeAccuracy = 5; /** * Member: roundTime * * Rounds a nu...
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/util/tutorial.js
public/src/util/tutorial.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([ "ui/widget/tooltip" ], function( ToolTip ) { function toolTipPlugin() { function nor...
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/util/mediatypes.js
public/src/util/mediatypes.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", "util/uri", "util/xhr", "json!/api/butterconfig", "jquery" ], function( Local...
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/util/xhr.js
public/src/util/xhr.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() { var __csrfToken = document.querySelector("meta[name=csrf-token]") ? ...
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/dialog/modal.js
public/src/dialog/modal.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(){ var __container = document.createElement( "div" ); var Modal = function(...
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/dialog/dialog.js
public/src/dialog/dialog.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: Dialog * * Provides dialog functionality to Butter */ define( [ "util/lang", "core/e...
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/dialog/dialogs/error-message.js
public/src/dialog/dialogs/error-message.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([ "l10n!/dialog/dialogs/error-message.html", "dialog/dialog" ], function( LAYOUT_SRC, Dialog ...
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/dialog/dialogs/delete-track.js
public/src/dialog/dialogs/delete-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([ "l10n!/dialog/dialogs/delete-track.html", "dialog/dialog" ], function( LAYOUT_SRC, Dialog )...
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/dialog/dialogs/remove-project.js
public/src/dialog/dialogs/remove-project.js
define([ "l10n!/dialog/dialogs/remove-project.html", "dialog/dialog" ], function( LAYOUT_SRC, Dialog ){ Dialog.register( "remove-project", LAYOUT_SRC, function( dialog, data ) { var callback = data.callback || function(){}; dialog.registerActivity( "ok", function(){ dialog.send( "ok" ); dialog...
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/dialog/dialogs/crash.js
public/src/dialog/dialogs/crash.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( [ "l10n!/dialog/dialogs/crash.html", "dialog/dialog", "util/lang" ], function( LAYOUT_...
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/dialog/dialogs/feedback.js
public/src/dialog/dialogs/feedback.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( [ "l10n!/dialog/dialogs/feedback.html", "dialog/dialog", "util/xhr" ], function( LAYOUT_SRC,...
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/dialog/dialogs/delete-track-events.js
public/src/dialog/dialogs/delete-track-events.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([ "l10n!/dialog/dialogs/delete-track-events.html", "dialog/dialog" ], function( LAYOUT_SRC, D...
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/dialog/dialogs/backup.js
public/src/dialog/dialogs/backup.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( [ "localized", "l10n!/dialog/dialogs/backup.html", "dialog/dialog", "util/time" ], 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/src/dialog/dialogs/first-run.js
public/src/dialog/dialogs/first-run.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( [ "l10n!/dialog/dialogs/first-run.html", "dialog/dialog" ], function( LAYOUT_SRC, Dialog ) {...
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/dialog/dialogs/track-data.js
public/src/dialog/dialogs/track-data.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([ "l10n!/dialog/dialogs/track-data.html", "dialog/dialog" ], function( LAYOUT_SRC, Dialog ){ ...
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/editor/header.js
public/src/editor/header.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", "ui/widget/tooltip" ], function( Localized, Tooltip ) { return function( edit...
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/editor/trackevent-editor.js
public/src/editor/trackevent-editor.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", "util/lang", "util/keys", "util/time", "./base-editor", "ui/widget/tooltip", ...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
true
mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/blob/fb3ea8e275db432dd3386f979297865cae682895/public/src/editor/google-analytics.js
public/src/editor/google-analytics.js
var ga_account = document.getElementById("google-analytics").getAttribute("data-ga-account"); (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertB...
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/editor/editor.js
public/src/editor/editor.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: Editor */ define( [ "localized", "util/lang", "util/xhr", "./base-editor", "...
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/editor/ui-kit.js
public/src/editor/ui-kit.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( [ "editor/editor", "editor/base-editor", "text!layouts/ui-kit.html" ], function( Editor, Bas...
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/editor/tutorial-editor.js
public/src/editor/tutorial-editor.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", "editor/editor", "text!layouts/tutorial-editor.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/editor/media-gallery-editor.js
public/src/editor/media-gallery-editor.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", "util/lang", "util/uri", "util/xhr", "util/keys", "util/mediatypes", "editor/ed...
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/editor/default.js
public/src/editor/default.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( [ "l10n!/editors/default.html", "editor/editor", "util/lang" ], function( LAYOUT_SRC, Editor...
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/editor/sequencer-editor.js
public/src/editor/sequencer-editor.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", "util/mediatypes", "editor/editor", "util/time", "util/uri", "ui/widg...
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/editor/base-editor.js
public/src/editor/base-editor.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", "util/scrollbars", "ui/widget/tooltip", "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/editor/editorhelper.js
public/src/editor/editorhelper.js
define( [ "util/xhr", "util/keys", "localized", "jquery" ], function( XHR, KEYS, Localized, $ ) { var __plugins = {}; function EditorHelper( butter ) { var _this = this; function _updateFunction( e ) { var trackEvent = e.target; if ( trackEvent.popcornTrackEvent && __plugins[ trackEvent.typ...
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/editor/project-editor.js
public/src/editor/project-editor.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", "editor/editor", "editor/base-editor", "l10n!/layouts/project-editor.h...
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/editor/disableWebRTC.js
public/src/editor/disableWebRTC.js
/*jshint unused: false*/ var TogetherJSConfig = { disableWebRTC: 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/src/editor/module.js
public/src/editor/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 */ /** * Module: EditorModule * * Butter Module for Editors */ define( [ "localized", "core/eventmana...
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/plugins/plugin-list.js
public/src/plugins/plugin-list.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", "util/dragndrop", "util/lang", "editor/editor", "analytics", "l10n!/layouts/plu...
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/plugins/plugin.js
public/src/plugins/plugin.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( pluginOptions ){ pluginOptions = pluginOptions || {};...
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/plugins/module.js
public/src/plugins/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 */ /** * Module: PluginModule * * A Butter module which provides Popcorn plugin support. */ define( [...
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/plugins/image/image-editor.js
public/src/plugins/image/image-editor.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 ) { var Editor = Butter.Editor; var __EditorHelper; Editor.register( "image...
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/plugins/image/popcorn.image.js
public/src/plugins/image/popcorn.image.js
"use strict"; // PLUGIN: IMAGE // Key (function ( Popcorn ) { var APIKEY = "&api_key=b939e5bd8aa696db965888a31b2f1964", flickrUrl = "https://secure.flickr.com/services/", searchPhotosCmd = flickrUrl + "rest/?method=flickr.photos.search&extras=url_m&media=photos&safe_search=1", getPhotosetCmd = fli...
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/plugins/sequencer/popcorn.sequencer.js
public/src/plugins/sequencer/popcorn.sequencer.js
// PLUGIN: sequencer (function ( Popcorn ) { // XXX: SoundCloud has a bug (reported by us, but as yet unfixed) which blocks // loading of a second iframe/player if the iframe for the first is removed // from the DOM. We can simply move old ones to a quarantine div, hidden from // the user for now (see #2630)...
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/plugins/googlemap/popcorn.googlemap.js
public/src/plugins/googlemap/popcorn.googlemap.js
// PLUGIN: Google Maps /*global google*/ var googleCallback; (function ( Popcorn ) { // We load our own cached copy of this in order to deal with mix-content (http vs. https). // At some point the stamen API is going to change, and this will break. // We'll need to watch for this. NOTE: if you change the locati...
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/plugins/googlemap/googlemap-editor.js
public/src/plugins/googlemap/googlemap-editor.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 */ /*globals google*/ ( function( Butter ) { Butter.Editor.register( "googlemap", "load!{{baseDir}}plu...
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/plugins/loopPlugin/popcorn.loopPlugin.js
public/src/plugins/loopPlugin/popcorn.loopPlugin.js
(function( Popcorn ) { Popcorn.plugin( "loopPlugin", function() { return { _setup: function( options ) { options.loop = options.loop || 0; options.count = +options.loop; options.toString = function() { return "Loop: " + ( options.loop > 0 ? options.count : "forever" ); ...
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/plugins/skip/popcorn.skip.js
public/src/plugins/skip/popcorn.skip.js
(function( Popcorn ) { Popcorn.plugin( "skip", function() { return { _setup: function( options ) { var skipTime = options.end; options.skipRange = function() { var ct = this.currentTime(); if ( !this.paused() && ct > options.start && ct < options.end ) { thi...
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/plugins/popup/popup-editor.js
public/src/plugins/popup/popup-editor.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 ) { Butter.Editor.register( "popup", "load!{{baseDir}}plugins/popup-editor.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/plugins/popup/popcorn.popup.js
public/src/plugins/popup/popcorn.popup.js
// PLUGIN: Popup (function ( Popcorn ) { var sounds = {}, events = [], soundIndex = 0, MAX_AUDIO_TIME = 2, _pluginRoot = "/src/plugins/popup/", FILL_STYLE = "rgb(255, 255, 255)", innerDivTriangles = {}, DEFAULT_FONT = "Tangerine"; // Set up speech innerDiv triangles in...
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/plugins/wikipedia/wikipedia-editor.js
public/src/plugins/wikipedia/wikipedia-editor.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 ) { Butter.Editor.register( "wikipedia", "load!{{baseDir}}plugins/wikipedia-edito...
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/plugins/wikipedia/popcorn.wikipedia.js
public/src/plugins/wikipedia/popcorn.wikipedia.js
(function ( Popcorn ) { var allWikiLangLinks, allWikiLangNames, cachedArticles = []; // shortcut function create( type ) { return document.createElement( type ); } function getFragment( inputString ) { //grabbed from butter util methods var range = document.createRange(), // For p...
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/plugins/pausePlugin/popcorn.pausePlugin.js
public/src/plugins/pausePlugin/popcorn.pausePlugin.js
(function( Popcorn ) { Popcorn.plugin( "pausePlugin", function() { var _this = this, _timeout, _seekedFunc = function() { if ( _timeout ) { clearTimeout( _timeout ); } this.off( "seeked", _seekedFunc ); }; return { _setup: function( optio...
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/plugins/sketchfab/sketchfab-editor.js
public/src/plugins/sketchfab/sketchfab-editor.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 ) { Butter.Editor.register( "sketchfab", "load!{{baseDir}}plugins/sketchfab-edit...
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/plugins/sketchfab/popcorn.sketchfab.js
public/src/plugins/sketchfab/popcorn.sketchfab.js
(function ( Popcorn ) { var Sketchfab; var SketchfabQuery; function validateDimension( value, fallback ) { if ( typeof value === "number" ) { return value; } return fallback; } function setupIframe( options ) { var iframe, src; if ( options._sketchfabAPI ) { options._sketch...
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/plugins/text/popcorn.text.js
public/src/plugins/text/popcorn.text.js
// PLUGIN: text (function ( Popcorn ) { /** * text Popcorn plug-in * Based on popcorn.text.js by @humph * @param {Object} options * * Example: **/ var DEFAULT_FONT_COLOR = "#000000", DEFAULT_SHADOW_COLOR = "#444444", DEFAULT_BACKGROUND_COLOR = "#888888"; function newlineToBreak(...
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/plugins/text/text-editor.js
public/src/plugins/text/text-editor.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 ) { Butter.Editor.register( "text", "load!{{baseDir}}plugins/text-editor.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/cornfield/module.js
public/src/cornfield/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( [ "util/xhr", "localized" ], function( xhr, Localized ) { var Cornfield = function( butter ...
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/trackevent.js
public/src/core/trackevent.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: TrackEvent * * Supports a single event in the Media > Track > TrackEvent model. */ d...
javascript
MIT
fb3ea8e275db432dd3386f979297865cae682895
2026-01-05T03:42:50.677397Z
false