Skip to content

Commit 6b4662c

Browse files
committed
Several changes were done
1 parent 4f11e96 commit 6b4662c

18 files changed

+52
-14
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ const texts = {
6464
"optionalPage": {
6565
"text": "<p>Thank you! Please <a href='#'>click here</a> to learn more.</p>",
6666
"closeButtonText": "Close"
67-
}
67+
},
68+
"id", "myID"
6869
};
6970

7071
//Start the dialogue

css/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ th, td {
2525
}
2626
th {
2727
background-color: #512da8;
28+
}
29+
30+
footer {
31+
text-align: center;
32+
padding-top: 15px;
2833
}

js/lib/rating.js renamed to dist/rating.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ class FeedbackDialog {
118118
this.dialogue.style.color = this.modeStyles.textColor;
119119
this.dialogue.style.fontFamily = (!this.settings.fontFamily) ? 'Arial, Helvetica, sans-serif' : this.settings.fontFamily;
120120

121+
this.dialogue.id = (this.settings.id) ? this.settings.id : 'feedbackDialogue';
122+
121123
this.dialogue.style.position = 'fixed';
122124
this.dialogue.style.bottom = window.innerWidth <= 768 ? '10px' : '20px';
123125
this.dialogue.style.right = window.innerWidth <= 768 ? '10px' : '20px';

dist/rating.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ <h1>Simple Rating Dialogue</h1>
122122
</tbody>
123123
</table>
124124

125-
<script src="js/lib/rating.min.js"></script>
125+
<footer>© <a href="https://federiconavarrete.com" target="_blank">Federico Navarrete</a> & <a href="https://supernovaic.com" target="_blank">Supernova IC</a>, 2024.</footer>
126+
127+
<script src="dist/rating.min.js"></script>
126128
<script src="js/index.js"></script>
127129
</body>
128130
</html>

0 commit comments

Comments
 (0)