indiescience/js/application.js
2021-05-14 23:39:06 +02:00

17 lines
No EOL
409 B
JavaScript

$(document).ready(function(){
$(".object").draggable({
start: function(){
$(".object").css({"z-index": 0});
$(this).css({"z-index": 100});
}
});
function nombre(value){
return Math.floor(Math.random() * value);
}
$(".object").each(function(){
$(this).css({"top": nombre(80) + "%", "left": nombre(90) + "%"});
});
});