What do you want to save?
Add Code snippet
New code examples
-
Html 2021-09-28 20:45:02
html video preload
const video = document.querySelector('video'); const mediaSource = new MediaSource(); video.src = URL.createObjectURL(mediaSource); mediaSource.addEventListener('sourceopen', function() { URL.revokeObjectURL(video.src); mediaSource.addSourceBuffe... Add solution -
Other 2021-09-28 04:04:04
store object in input value
// encoding let obj = { key1: "foo", key2: "bar" }; document.querySelector('body').insertAdjacentHTML('beforeend', `<input name="sample_input" id="input" value=${encodeURIComponent(JSON.stringify(obj))}>`)... Add solution -
Javascript 2021-09-27 20:45:02
js copy paragraph onclick
var copy = document.querySelectorAll(".copy"); for (const copied of copy) { copied.onclick = function() { document.execCommand("copy"); }; copied.addEventListener("copy", function(event) { event.preventD... Add solution
Best helpers
Ranking is empty