})
//
- $this.setOpacityZone(this.target,direction)
+ //$this.setOpacityZone(this.target,direction)
//set rotation on desktop
if (!$this.quiz.resize.isMobile()) {
if (zone) {
$this.sendCurrentAnswerToArea(zone, $(this.target).data("id"));
}
+
+ //
+ $(".zone-content").removeClass("active")
},
onRelease: function () {
//
$(".zone-1,.zone-2").addClass("notDrag")
+
//
document.documentElement.style.setProperty('--opacity-zone-1', '0');
document.documentElement.style.setProperty('--opacity-zone-2', '0');
let value = 0;
let zone = '';
- if (direction.includes("left") || direction.includes("up")) {
+ if (direction.includes("left")) {
var rect = $this.zone1.get(0).getBoundingClientRect()
value = direction === "up" ? 100 - ( (rectSelection.top - rect.bottom) / (listRect.top - rect.bottom) ) * 100 :
100 - ( (rectSelection.left - rect.right) / (listRect.left - rect.right) ) * 100
zone = "--opacity-zone-1"
- } else {
+ } else if (direction.includes("right")) {
var rect = $this.zone2.get(0).getBoundingClientRect()
value = direction === "down" ? 100 - ( (rectSelection.bottom - rect.top) / (listRect.bottom - rect.top) ) * 100 :
100 - ( (rectSelection.right - rect.left) / (listRect.right - rect.left) ) * 100
zone = "--opacity-zone-2"
}
+ console.log("direction",direction)
+ console.log("zone",zone)
value = Math.max(0, Math.min(value, 100)) / 100;
+ console.log("value",value)
document.documentElement.style.setProperty(zone, value);
},
+font-size(16)
&-content-wrapper
- +flex-config(false, false, false, center)
+ +flex-config(false, false, column, center)
position: relative
top: var(--space-21-66)
- margin-left: 75px
+ //margin-left: 75px
&.neutral
.score-text
&-counter
height: 0
- padding-bottom: 31%
- width: 31%
+ padding-bottom: 43%
+ width: 43%
max-width: 210px
position: relative
+font-size(80)
- margin-right: 60px
+ //margin-right: 60px
flex-shrink: 0
&.large-nbr
.score-text
transform: scale(0)
+ &-text
+ text-align: center
+ margin-top: 22px
+
&-answers-review_container
- width: 36.11111%
+ width: 61.11111%
&-answers-review
height: 100%
content: ""
left: 0
width: 200%
- height: 200%
+ height: 150%
position: absolute
top: 50%
- background: radial-gradient($accent-color 10%, transparent 72%, transparent)
+ background: radial-gradient($accent-color -30%, transparent 72%, transparent)
transform: translate(-50%,-50%)
transition: opacity .3s
&.active
.card-holder
+opacity(.2, background-color, $texts-color)
+ &:before
+ opacity: 1
.card-holder
overflow: hidden
<h2>{{$__('Answers review')}}
<span class="toggle-answers-review" id="close-answers" data-icon="wrong"></span>
</h2>
- <p class="subtitle">{{$__('Review the correct answers before you go')}}</p>
+ <div class="">
+ <p class="subtitle">{{$__('Review the correct answers before you go')}}</p>
+ <button>{{$__('Show correct answers')}}</button>
+ </div>
<ul id="answers-list"></ul>
</div>
</div>