-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from arielfayol37/master
Master
- Loading branch information
Showing
32 changed files
with
461 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
If the validation of algebraic expressions is done on | ||
the front-end using mathjs' symbolicEqual() function. | ||
So someone can modify the fetch() that gets the real answer | ||
from the server. | ||
Hence the reason why sympy is used in the backend for that, | ||
and not mathjs. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
deimos/migrations/0006_questionattempt_timestamp_questionstudent_success.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.2.3 on 2023-08-19 00:26 | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('deimos', '0005_alter_questionattempt_content'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='questionattempt', | ||
name='timestamp', | ||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='questionstudent', | ||
name='success', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
deimos/migrations/0007_rename_is_successful_questionattempt_success.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.3 on 2023-08-19 01:49 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('deimos', '0006_questionattempt_timestamp_questionstudent_success'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='questionattempt', | ||
old_name='is_successful', | ||
new_name='success', | ||
), | ||
] |
Binary file added
BIN
+1.15 KB
...ations/__pycache__/0006_questionattempt_timestamp_questionstudent_success.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+776 Bytes
.../migrations/__pycache__/0007_rename_is_successful_questionattempt_success.cpython-311.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
|
||
.navigation-m{ | ||
margin-top: 5%; | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.menuToggle { | ||
position: relative; | ||
width: 70px; | ||
height: 70px; | ||
background: #fff; | ||
border-radius: 70px; | ||
cursor: pointer; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
box-shadow: 0 15px 25px rgba(0,0,0,0.15); | ||
} | ||
.menuToggle::before{ | ||
content:'+'; | ||
position: absolute; | ||
font-size: 3em; | ||
font-weight: 200; | ||
color: #ff216d; | ||
transition: 1.5s; | ||
} | ||
.menuToggle.active::before { | ||
transform: rotateX(80deg); | ||
} | ||
|
||
.menu { | ||
position: absolute; | ||
width: 30px; | ||
height:30px; | ||
background: #fff; | ||
border-radius: 70px; | ||
z-index: -1; | ||
transition: transform 0.5s, width 0.5s, height 0.5s; | ||
transition-delay: 1s, 0.5s, 0.5s; | ||
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1); | ||
} | ||
|
||
.menuToggle.active ~ .menu { | ||
width: 240px; | ||
height: 70px; | ||
z-index: 1; | ||
transform: translateY(-100px); | ||
transition-delay: 0s, 0.5s, 0.5s; | ||
box-shadow: 0 15px 25px rgba(0,0,0,0.15); | ||
} | ||
|
||
.menu::before | ||
{ | ||
content: ''; | ||
position: absolute; | ||
width: 16px; | ||
height: 16px; | ||
background:#fff; | ||
left: calc(50% - 8px); | ||
bottom: 4px; | ||
transform: rotate(45deg); | ||
border-radius: 2px; | ||
transition: 0.5s; | ||
} | ||
.menuToggle.active ~ .menu::before{ | ||
transition-delay: 0.5s; | ||
bottom: -6px; | ||
} | ||
.menu ul { | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 80px; | ||
gap: 40px; | ||
} | ||
.menu ul li{ | ||
list-style: none; | ||
cursor: pointer; | ||
opacity: 0; | ||
visibility: hidden; | ||
transform: translateY(-30px); | ||
transition: 0.25s; | ||
transition-delay: calc(0s + var(--i)); | ||
} | ||
.menuToggle.active ~ .menu ul li { | ||
opacity: 1; | ||
visibility: visible; | ||
transform: translate(0px); | ||
transition-delay: calc(0.75s + var(--i)); | ||
} | ||
.menu ul li a{ | ||
display: block; | ||
font-size: 2em; | ||
text-decoration: none; | ||
color: #555; | ||
} | ||
.menu ul li:hover a { | ||
color: #ff216d; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
document.addEventListener('DOMContentLoaded',()=>{ | ||
|
||
const menuToggle = document.querySelector('.menuToggle'); | ||
if (menuToggle != null){ | ||
menuToggle.addEventListener('click', (event)=>{ | ||
event.preventDefault(); | ||
menuToggle.classList.toggle('active'); | ||
}) | ||
} | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!--deimos: action_menu.html--> | ||
<div class="navigation-m"> | ||
<div class="menuToggle"></div> | ||
<div class="menu"> | ||
<ul> | ||
<li style="--i:0.1s;"> | ||
<a href="#"><ion-icon name="pencil-outline"></ion-icon> | ||
</a> | ||
</li> | ||
<li style="--i:0.2s;"> | ||
<a href="#"><ion-icon name="camera-outline"></ion-icon> | ||
</a> | ||
</li> | ||
<li style="--i:0.3s;"> | ||
<a href="#"><ion-icon name="mail-unread-outline"></ion-icon> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> |
Oops, something went wrong.