mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-04 04:41:56 -05:00
17 lines
487 B
JavaScript
17 lines
487 B
JavaScript
module.exports = {};
|
|
|
|
module.exports.projectUrl = projectId => {
|
|
if (projectId) {
|
|
return `https://scratch.mit.edu/projects/${projectId}`;
|
|
}
|
|
return '';
|
|
};
|
|
|
|
module.exports.embedHtml = projectId => {
|
|
if (projectId) {
|
|
return `<iframe src="https://scratch.mit.edu/projects/${projectId}/embed" ` +
|
|
'allowtransparency="true" width="485" height="402" ' +
|
|
'frameborder="0" scrolling="no" allowfullscreen></iframe>';
|
|
}
|
|
return '';
|
|
};
|