fs-feedback-creator
Advanced tools
Comparing version 1.0.34 to 1.0.35
@@ -13,2 +13,3 @@ import { FeedbackResource } from "./resources/feedback.resource"; | ||
responseData: ResponseResource; | ||
animationValue: number; | ||
constructor(fb: FeedbackResource, parentElement: HTMLElement); | ||
@@ -15,0 +16,0 @@ setFbData(data: FeedbackResource): void; |
@@ -33,2 +33,6 @@ export class FeedbackCreator { | ||
this.textColor = "black"; | ||
if (this.fb.wgPosition == 0 || 2) | ||
this.animationValue = 500; | ||
else | ||
this.animationValue = -500; | ||
const html = ` | ||
@@ -322,3 +326,3 @@ <div id="feedbackButton" title="Give feedback"> | ||
0%{ | ||
transform: translate(${this.modalViews.get(this.fb.wgPosition)[1]};px); | ||
transform: translate(${this.animationValue}px); | ||
} | ||
@@ -465,7 +469,7 @@ } | ||
this.style_map.set(3, "left: 0px; top:43%; border-top-right-radius: 3px; border-bottom-right-radius: 3px;"); | ||
this.modalViews.set(0, ["right: 32px; top: 37%; position: fixed;", 500]); | ||
this.modalViews.set(1, ["left: 32px; top: 37%; position: fixed;", -500]); | ||
this.modalViews.set(2, ["right: 32px; top: 60%; position: fixed;", 500]); | ||
this.modalViews.set(3, ["left: 32px; top: 60%; position: fixed;", -500]); | ||
this.modalViews.set(0, "right: 32px; top: 37%; position: fixed;"); | ||
this.modalViews.set(1, "left: 32px; top: 37%; position: fixed;"); | ||
this.modalViews.set(2, "right: 32px; top: 60%; position: fixed;"); | ||
this.modalViews.set(3, "left: 32px; top: 60%; position: fixed;"); | ||
} | ||
} |
{ | ||
"name": "fs-feedback-creator", | ||
"version": "1.0.34", | ||
"version": "1.0.35", | ||
"description": "web-based module that's responsible to inject fullsession feedback modal", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
35195
581