123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- $(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, .objectTestIndex, #trigger, #trigger2").draggable({
- start: function(){
- $(".quotes, #images, .objectTestIndex, #trigger").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) + "%"});
- });
- function positionFloating(id){
- $(id).css({"top": nombre(70) + "%", "left": nombre(70) + "%"});
- }
- function floating(id){
- setTimeout(function(){
- positionFloating(id);
- }, 100);
- setInterval(function(){
- positionFloating(id);
- }, 10000);
-
- }
- $(".objectCamille, .texteGM").each(function(){
- floating($(this));
- });
- $("#trigger").each(function(){
- $(this).css({"top": nombre(80) + "%", "left": nombre(90) + "%"});
- });
- $("#trigger2").each(function(){
- $(this).css({"top": nombre(80) + "%", "left": nombre(90) + "%"});
- });
- $(".buttonEnter").click(function(){
- $(".landingPage").fadeOut(600);
- })
- $(".objectCamille, .texteGM").each(function(){
- $(this).css({"top": nombre(70) + "%", "left": nombre(70) + "%"});
- });
- $("#Episode01").on("click",function(){
- $(".ImgEpisode1").css("display","block")
-
- });
- $(".closeButton").on("click",function(){
- $(".ImgEpisode1").css("display","none")
-
- });
- $("#Episode02").on("click",function(){
- $(".ImgEpisode2").css("display","block")
-
- });
- $(".closeButton").on("click",function(){
- $(".ImgEpisode2").css("display","none")
-
- });
- $("#aboutUs").on("click",function(){
- $(".hoverAboutUs").css("display","block")
-
- });
- $(".closeButton").on("click",function(){
- $(".hoverAboutUs").css("display","none")
-
- });
- $(".map-pointer").click(function(){
- var id = $(this).attr("id");
- $(".imgEpisode").hide();
- $(".Img"+ id).show();
- })
- // episodes hover Juli
- $("#Episode03").on("click",function(){
- $(".ImgEpisode3").css("display","block")
-
- });
- $(".closeButton").on("click",function(){
- $(".ImgEpisode3").css("display","none")
-
- });
- $("#Episode04").on("click",function(){
- $(".ImgEpisode4").css("display","block")
-
- });
- $(".closeButton").on("click",function(){
- $(".ImgEpisode4").css("display","none")
-
- });
- $("#Episode05").on("click",function(){
- $(".ImgEpisode5").css("display","block")
-
- });
- $(".closeButton").on("click",function(){
- $(".ImgEpisode5").css("display","none")
-
- });
- $("#Episode06").on("click",function(){
- $(".ImgEpisode6").css("display","block")
-
- });
- $(".closeButton").on("click",function(){
- $(".ImgEpisode6").css("display","none")
-
- });
- $(".LienEpisode7").on("click",function(){
- $(".ImgEpisode7").css("display","block")
-
- });
- $(".closeButton").on("click",function(){
- $(".ImgEpisode7").css("display","none")
-
- });
- $("#Episode001").on("click",function(){
- $(".ImgEpisode1").css("display","block")
-
- });
- $("#Episode002").on("click",function(){
- $(".ImgEpisode2").css("display","block")
-
- });
- $("#Episode003").on("click",function(){
- $(".ImgEpisode3").css("display","block")
-
- });
- $("#Episode004").on("click",function(){
- $(".ImgEpisode4").css("display","block")
-
- });
- $("#Episode005").on("click",function(){
- $(".ImgEpisode5").css("display","block")
-
- });
- $("#Episode006").on("click",function(){
- $(".ImgEpisode6").css("display","block")
-
- });
- });
|