20 changed files with 438 additions and 75 deletions
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 25 KiB |
@ -1 +1,29 @@ |
|||||
|
|
||||
|
$(document).ready(()=>{ |
||||
|
|
||||
|
const plans = $('.plans') |
||||
|
const clouds = plans.find('.cloud') |
||||
|
const delay = 1000 |
||||
|
let timer = 0 |
||||
|
|
||||
|
setTimeout(()=>{ |
||||
|
clouds.each((index,elem)=>{ |
||||
|
const el = $(elem) |
||||
|
timer = index*delay |
||||
|
|
||||
|
if(el.hasClass('empty')){ |
||||
|
timer -= delay |
||||
|
} |
||||
|
|
||||
|
setTimeout(()=>{ |
||||
|
if(!el.hasClass('empty')){ |
||||
|
$('#notify1')[0].play() |
||||
|
} |
||||
|
el.fadeIn(500) |
||||
|
},timer) |
||||
|
|
||||
|
}) |
||||
|
},delay) |
||||
|
|
||||
|
}) |
||||
|
|
||||
|
@ -1 +1,55 @@ |
|||||
|
<div class="plans pattern"> |
||||
|
|
||||
|
<div class="row"> |
||||
|
<div class="col-12"> |
||||
|
<p class="font-14 font-bold text-upper text-red p-5">Monitoring dispositivi</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="row mb-5"> |
||||
|
<div class="col-8 mx-auto"> |
||||
|
<div class="row"> |
||||
|
<div class="col-6"> |
||||
|
<div class="phone mx-auto" id="usr_luca"> |
||||
|
<div class="avatar"><img src="<?= $BASE_URL;?>/images/avatar/luca.png"></div> |
||||
|
<div class="name">Luca</div> |
||||
|
<div class="rule">Stagista</div> |
||||
|
<div class="content"> |
||||
|
<div class="cloud left"> |
||||
|
Ciao Luca!<br> |
||||
|
Il modulo "differenze culturali" è disponibile. |
||||
|
</div> |
||||
|
<div class="cloud empty"> |
||||
|
<button class="button dotted">Ok</button> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="input"></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-6"> |
||||
|
<div class="phone mx-auto" id="usr_sara"> |
||||
|
<div class="avatar"><img src="<?= $BASE_URL;?>/images/avatar/sara.png"></div> |
||||
|
<div class="name">Sarah</div> |
||||
|
<div class="rule">Venditore</div> |
||||
|
<div class="content"> |
||||
|
<div class="cloud left"> |
||||
|
Ciao Sara!<br> |
||||
|
Il modulo "differenze culturali" è disponibile. |
||||
|
</div> |
||||
|
<div class="cloud empty"> |
||||
|
<button class="button dotted">Ok</button> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="input"></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<audio id="notify1"> |
||||
|
<source src="<?= $BASE_URL;?>/sounds/message.wav" type="audio/wav"> |
||||
|
</audio> |
||||
|
@ -0,0 +1,2 @@ |
|||||
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/js/plans.js"></script> |
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,124 @@ |
|||||
|
|
||||
|
|
||||
|
.plans{ |
||||
|
width: 100%; |
||||
|
|
||||
|
.phone{ |
||||
|
position: relative; |
||||
|
height: 570px; |
||||
|
width: 245px; |
||||
|
background-image: url(../images/phone.png); |
||||
|
background-position: center bottom; |
||||
|
background-repeat: no-repeat; |
||||
|
background-size: 245px 500px; |
||||
|
|
||||
|
.name{ |
||||
|
position: absolute; |
||||
|
left: 60px; |
||||
|
top: 5px; |
||||
|
font-size: $font-12; |
||||
|
font-weight: 700; |
||||
|
} |
||||
|
.rule{ |
||||
|
position: absolute; |
||||
|
left: 60px; |
||||
|
top: 25px; |
||||
|
font-size: $font-10; |
||||
|
} |
||||
|
.avatar{ |
||||
|
position: absolute; |
||||
|
left: 0; |
||||
|
top: 0; |
||||
|
height: 50px; |
||||
|
width: 50px; |
||||
|
img{ |
||||
|
height: 50px; |
||||
|
width: 50px; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.content{ |
||||
|
position: absolute; |
||||
|
top: 145px; |
||||
|
left: 12px; |
||||
|
height: 371px; |
||||
|
width: 222px; |
||||
|
|
||||
|
.cloud{ |
||||
|
display: none; |
||||
|
position: relative; |
||||
|
width: 80%; |
||||
|
font-size: $font-12; |
||||
|
font-weight: 500; |
||||
|
padding: 10px; |
||||
|
margin: 10px 0; |
||||
|
border-radius: 8px; |
||||
|
|
||||
|
&.left{ |
||||
|
left: 15px; |
||||
|
background: $pink; |
||||
|
border: 1px solid $dark-pink; |
||||
|
&:before{ |
||||
|
content: ''; |
||||
|
border: solid 11px transparent; |
||||
|
border-right-color: $dark-pink; |
||||
|
position: absolute; |
||||
|
left: 0; |
||||
|
top: 50%; |
||||
|
transform: translate(-100%, -50%); |
||||
|
} |
||||
|
&:after{ |
||||
|
content: ''; |
||||
|
border: solid 10px transparent; |
||||
|
border-right-color: $pink; |
||||
|
position: absolute; |
||||
|
left: 0; |
||||
|
top: 50%; |
||||
|
transform: translate(-100%, -50%); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
&.right{ |
||||
|
left: calc(20% - 13px); |
||||
|
background: $azure; |
||||
|
border: 1px solid $dark-azure; |
||||
|
&:before{ |
||||
|
content: ''; |
||||
|
border: solid 11px transparent; |
||||
|
border-left-color: $dark-azure; |
||||
|
position: absolute; |
||||
|
right: 0; |
||||
|
top: 50%; |
||||
|
transform: translate(100%, -50%); |
||||
|
} |
||||
|
&:after{ |
||||
|
content: ''; |
||||
|
border: solid 10px transparent; |
||||
|
border-left-color: $azure; |
||||
|
position: absolute; |
||||
|
right: 0; |
||||
|
top: 50%; |
||||
|
transform: translate(100%, -50%); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
&.empty{ |
||||
|
width: 100%; |
||||
|
text-align: center; |
||||
|
padding: 0; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.input{ |
||||
|
position: absolute; |
||||
|
top: 516px; |
||||
|
left: 12px; |
||||
|
height: 42px; |
||||
|
width: 222px; |
||||
|
border-radius: 0 0 26px 26px; |
||||
|
overflow: hidden; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
Binary file not shown.
Loading…
Reference in new issue