Added colorpicker polyfill

This commit is contained in:
Kasper Rynning-Tønnesen
2017-10-31 13:34:12 +01:00
parent bfcfb6d140
commit a31cc6c759
4 changed files with 21 additions and 1 deletions

View File

@@ -386,6 +386,15 @@ function init(){
position: "top",
tooltip: "Cast Zoff to TV"
});
$("#color_embed").spectrum({
color: "#808080",
change: function(c) {
color = c.toHexString().substring(1); // #ff0000
$("#embed-area").val(embed_code(embed_autoplay, embed_width, embed_height, color));
},
appendTo: "#embed",
});
}
$("#results" ).hover( function() { $("div.result").removeClass("hoverResults"); i = 0; }, function(){ });