51 lines
No EOL
1.3 KiB
JavaScript
51 lines
No EOL
1.3 KiB
JavaScript
$(document).ready(function(){
|
|
|
|
$(".object").draggable({
|
|
start: function(){
|
|
$(".object").css({"z-index": 0});
|
|
$(this).css({"z-index": 100});
|
|
}
|
|
});
|
|
|
|
$(".thoughtsWindows").draggable({
|
|
start: function(){
|
|
$(".thoughtsWindows").css({"z-index": 0});
|
|
$(this).css({"z-index": 100});
|
|
}
|
|
});
|
|
|
|
$(".quotes, #images").draggable({
|
|
start: function(){
|
|
$(".quotes, #images").css({"z-index": 0});
|
|
$(this).css({"z-index": 100});
|
|
}
|
|
});
|
|
|
|
$(".wholeBoxEditable").draggable();
|
|
|
|
// $(".personnalText").draggable({
|
|
// start: function(){
|
|
// $(".personnalText").css({"z-index": 0});
|
|
// $(this).css({"z-index": 100});
|
|
// }
|
|
// });
|
|
|
|
$(".personnalText").draggable()
|
|
.click(function() {
|
|
$(this).draggable( {disabled: false});
|
|
}).dblclick(function() {
|
|
$(this).draggable({ disabled: true });
|
|
});
|
|
|
|
function nombre(value){
|
|
return Math.floor(Math.random() * value);
|
|
}
|
|
|
|
$(".object").each(function(){
|
|
$(this).css({"top": nombre(80) + "%", "left": nombre(90) + "%"});
|
|
});
|
|
|
|
$(".buttonEnter").click(function(){
|
|
$(".landingPage").fadeOut(600);
|
|
})
|
|
}); |