Source code from Scracth when you try to embed a project on https://scratch.mit.edu/projects/74052076/embed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const robot = 'images/myRobot.png'; | |
// create in DOM | |
let img = document.createElement("img"); | |
img.src = robot; | |
img.alt = 'A dangerous, wicked robot'; | |
img.class = 'xxx-btn'; | |
img.style.position = 'absolute'; | |
// append to html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>ajax-xml</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//document.write('<h3>' + greeting + '</h3>'); | |
// dato | |
// @url: https://www.w3schools.com/js/js_date_methods.asp | |
let dagsDato = new Date(); | |
let dag = dagsDato.getDay(); | |
let maaned = dagsDato.getMonth(); | |
console.log(maaned); | |
let aar = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- the javascript will load the map here --> | |
<div id='map' style='width: 400px; height: 300px;'></div> | |
<!-- mapbox style and script --> | |
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.css' rel='stylesheet' /> | |
<!-- mapbox map --> | |
<script> | |
mapboxgl.accessToken = 'YOUR-TOKEN-HERE'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to create several popups | |
============================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Javacsript til Amazing Philippines | |
Webdokumentar 2018 | |
*/ | |
var audioGalleri = [ | |
"beach.mp3" | |
] ; | |
visAudio(audioGalleri[0]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="<?php echo get_template_directory_uri(); ?>/img/placeholder.png" /> |