17 changed files with 1415 additions and 138 deletions
@ -0,0 +1,53 @@ |
|||
<div class="compatibility pattern"> |
|||
|
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<p class="font-14 font-bold text-upper text-red p-5">Analisi compatibilità del modulo</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="row content"> |
|||
|
|||
<div class="col-4 user-sheet"> |
|||
<div class="avatar"><img src="<?= $BASE_PATH;?>/images/avatar/luca.png"></div> |
|||
<div class="name">Luca</div> |
|||
<div class="rule">Stagista</div> |
|||
<p class="sheet-title">Modulo differenze culturali</p> |
|||
<div class="sheet-container"> |
|||
<p class="font-10 text-upper pt-3 pb-2">Compatibilità knowledge</p> |
|||
<div class="value"><div class="percent" data-percent="60"></div></div> |
|||
<p class="font-10 text-upper pt-3 pb-2">Prestazioni storiche sul corso</p> |
|||
<div class="value"><div class="percent" data-percent="40"></div></div> |
|||
<p class="font-10 text-upper pt-3 pb-2">Carico didattico sostenibile</p> |
|||
<div class="value"><div class="percent" data-percent="70"></div></div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-4 user-sheet"> |
|||
<div class="avatar"><img src="<?= $BASE_PATH;?>/images/avatar/sara.png"></div> |
|||
<div class="name">Sara</div> |
|||
<div class="rule">Venditore</div> |
|||
<p class="sheet-title">Modulo differenze culturali</p> |
|||
<div class="sheet-container"> |
|||
<p class="font-10 text-upper pt-3 pb-2">Compatibilità knowledge</p> |
|||
<div class="value"><div class="percent" data-percent="40"></div></div> |
|||
<p class="font-10 text-upper pt-3 pb-2">Prestazioni storiche sul corso</p> |
|||
<div class="value"><div class="percent" data-percent="90"></div></div> |
|||
<p class="font-10 text-upper pt-3 pb-2">Carico didattico sostenibile</p> |
|||
<div class="value"><div class="percent" data-percent="30"></div></div> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
|
|||
<div class="row p-5"> |
|||
<div class="col-12 px-2"> |
|||
<button class="button big confirm">Avvia personalizzazione e attiva corso</button> |
|||
<button class="button big discard">Annulla</button> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
</div> |
|||
|
@ -0,0 +1,18 @@ |
|||
|
|||
$(document).ready(()=>{ |
|||
|
|||
const compatibility = $('.compatibility') |
|||
const sheets = compatibility.find('.sheet-container') |
|||
const values = sheets.find('.value') |
|||
|
|||
values.each((index,elem)=>{ |
|||
const el = $(elem) |
|||
const percent = el.find('.percent') |
|||
const value = percent.data('percent')+'%' |
|||
|
|||
console.log(percent) |
|||
percent.animate({'width': value},500) |
|||
|
|||
}) |
|||
|
|||
}) |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||
<script type="text/javascript" src="<?php echo $BASE_URL;?>/js/compatibility.js"></script> |
@ -0,0 +1,3 @@ |
|||
<script type="text/javascript" src="https://code.createjs.com/createjs-2015.11.26.min.js"></script> |
|||
<script type="text/javascript" src="<?php echo $BASE_URL;?>/js/loading.js"></script> |
|||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,60 @@ |
|||
|
|||
.compatibility{ |
|||
min-height: calc(100vh - 50px); |
|||
width: 100%; |
|||
|
|||
.content{ |
|||
padding: 0 50px; |
|||
|
|||
|
|||
.user-sheet{ |
|||
position: relative; |
|||
padding-top: 80px; |
|||
.avatar{ |
|||
position: absolute; |
|||
top: 0; |
|||
left: 10px; |
|||
height: 60px; |
|||
width: 60px; |
|||
img{ |
|||
height: 60px; |
|||
width: 60px; |
|||
} |
|||
} |
|||
.name{ |
|||
position: absolute; |
|||
left: 85px; |
|||
top: 12px; |
|||
font-size: $font-12; |
|||
font-weight: 700; |
|||
} |
|||
.rule{ |
|||
position: absolute; |
|||
left: 85px; |
|||
top: 30px; |
|||
font-size: $font-10; |
|||
} |
|||
.sheet-title{ |
|||
font-size: $font-12; |
|||
font-weight: 700; |
|||
} |
|||
.sheet-container{ |
|||
.value{ |
|||
width: 90%; |
|||
height: 25px; |
|||
background: $grey; |
|||
margin-bottom: 10px; |
|||
.percent{ |
|||
width: 0%; |
|||
height: 25px; |
|||
background: $red; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
|
|||
} |
|||
|
|||
} |
|||
|
@ -1,3 +1,4 @@ |
|||
|
|||
@import "modules"; |
|||
@import "compatibility"; |
|||
|
|||
|
Loading…
Reference in new issue