Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
tmpl/assets/step.css000064400000000073151162442610010511
0ustar00.moojla-progress-wrapper {
background-color: brown;
}tmpl/default.php000064400000003235151162442610007662 0ustar00<div
class="moojla-progress-wrapper">
<div class="title">
<i class="fas fa-spinner"></i>
<span>درصد پیشرفت درس</span>
<span> : <?=
floor($percentages['percentage']);?>%</span>
</div>
<div class="moojla-progress">
<span class="moojla-progress-bar" style="width:
<?=
floor($percentages['percentage']);?>%"></span>
</div>
</div>
<style>
.moojla-progress-wrapper .title{
margin-bottom: 15px;
display: flex;
}
.moojla-progress-wrapper .title i{
font-size: 1.7rem;
padding-left: 15px;
color: #a5afbb;
}
.moojla-progress-wrapper .title span{
align-self: center;
}
.moojla-progress-wrapper
{
background: white;
border: 1px solid #e6e6e6;
border-radius: 5px;
box-shadow: 2px 0px 5px #e5e5e5;
font-weight: 100;
font-size: 0.9rem;
padding: 8px;
margin: 20px 0px;
margin-right: 0px;
}
.moojla-progress {
width: 100%;
max-width: 260px;
height: 9px;
background: #e1e4e8;
border-radius: 3px;
overflow: hidden;
}
.moojla-progress-bar {
display: block;
height: 100%;
background: linear-gradient(90deg, #ffd33d, #ea4aaa 17%, #b34bff
34%, #01feff 51%, #ffd33d 68%, #ea4aaa 85%, #b34bff);
background-size: 300% 100%;
animation: progress-animation 20s linear infinite;
}
@keyframes progress-animation {
0%
{
background-position: 0%;
}
100%
{
background-position: 100%;
}
}
</style>tmpl/step.php000064400000004227151162442610007213
0ustar00<?php
$document = JFactory::getDocument();
$document->addStyleSheet('/plugins/content/course_progress/tmpl/assets/step.css');
?>
<div class="moojla-progress-wrapper">
<h5 class="title">
<!-- <i class="fas fa-spinner"></i>
-->
<span>درصد پیشرفت درس</span>
</h5>
<div class="moojla-progress">
<span class="moojla-progress-bar" style="width:
<?=
floor($percentages['percentage']);?>%"></span>
</div>
<span class="progress-number"><?=
floor($percentages['percentage']);?>%</span>
</div>
<style>
.moojla-progress-wrapper .title{
margin-bottom: 15px;
margin-right:10px;
display: flex;
}
.moojla-progress-wrapper .progress-number{
color: #069c35;
text-align: center;
display: block;
padding-top: 10px;
font-size: 20px;
font-family: cursive;
}
.moojla-progress-wrapper .title i{
font-size: 1.7rem;
padding-left: 15px;
color: #a5afbb;
}
.moojla-progress-wrapper .title span{
align-self: center;
}
.moojla-progress-wrapper
{
background: white;
border: 1px solid #ebeef1;
border-radius: 5px;
box-shadow: 0px 0px 13px 1px rgb(70 72 77 / 8%);
font-weight: 100;
font-size: 0.9rem;
padding: 8px;
margin: 20px 0px;
margin-right: 0px;
}
.moojla-progress {
width: 95%;
max-width: 100%;
height: 11px;
background: #dce5e8;
border-radius: 25px;
overflow: hidden;
border: 1px solid #ebebeb;
}
.moojla-progress-bar {
display: block;
height: 100%;
background: linear-gradient(
-45deg,#4cca73 19%,#1fbd50 25%,#1fbd50 50%,#4cca73 50%,#4cca73
75%,#1fbd50 75%,#1fbd50);
background-size: 1rem 1rem;
animation: progress-animation 10s linear infinite;
border-radius: 25px;
}
@keyframes progress-animation {
0%
{
background-position: 105%;
}
100%
{
background-position: 0%;
}
}
</style>