diff --git a/client/src/components/ChalModal.vue b/client/src/components/ChalModal.vue index e7084d6a..70e04ad9 100644 --- a/client/src/components/ChalModal.vue +++ b/client/src/components/ChalModal.vue @@ -16,6 +16,7 @@
+ +
+ +
+
+ + {{ text.text }} + +
+
+
+ +
+
+ +
+ > +
+
+ + {{ text.text }} + +
+
+
+
+
+
+ > +
+
+ + {{ text.text }} + +
+
+
+
+
+
+ > +
+
+ + {{ text.text }} + +
+
+
+
+
+
+ > +
+
+ + {{ text.text }} + +
+
+
+
+
+
+ > +
+
+ + {{ text.text }} + +
+
+
+
+
+
@@ -134,6 +263,7 @@ export default { challengesRE: [], challengesTextRE: [], challengesC: [], challengesTextC: [], challengesS: [], challengesTextS: [], + challengeCS: [], challengesTextCS:[], cat: '', childrenChallenges: '', isDisabled: false, } }, @@ -147,6 +277,7 @@ export default { .concat(this.challengesF) .concat(this.challengesRE) .concat(this.challengesS) + .concat(this.challengeCS) .concat(this.challengesC): [] }, encodeHTML: function(s) { @@ -187,7 +318,8 @@ export default { let taglist = element.getTagsList(); let name = element.getName(); - let parentChallenge = { text: name + that.childrenChallenges, value: taglist[0] }; + let orgDesc = element.getOrgdescription() + let parentChallenge = { text: name + that.childrenChallenges, value: taglist[0], orgDesc: orgDesc, isInfoShown: false }; switch (that.cat) { case "Web exploitation": that.challengesTextWE.push(parentChallenge); @@ -212,6 +344,11 @@ export default { case "Starters": that.challengesTextS.push(parentChallenge); that.challengesS.push(taglist[0]) + break; + case "Cybermesterskaberne": + that.challengesTextCS.push(parentChallenge); + that.challengesCS.push(taglist[0]); + break; } }) }); @@ -260,6 +397,67 @@ export default { border: 1px solid #ced4da; border-radius: .35rem; } + + +.info-icon { + position: relative; + top: 1px; + left: -515px; + width: 16px; + padding: 0px; + margin: 0px; + z-index: 99999; +} +.chalInfo{ + background-color: #221d52; + color: #ffffff; + position: relative; + margin: auto; + padding-left: 10px; + padding-right: 10px; + width: 500px; + max-height: 0; + overflow: hidden; + transition: all .5s ease-in-out; + visibility: hidden; +} +.chalInfo.visible { + max-height: 200px; + /*transform-origin: top-center;*/ + transition: all .5s ease-in-out; + padding: 10px; + overflow-y: auto; + box-shadow: 5px 5px 5px rgba(73, 80, 87, 0.83); + visibility: visible; +} + +.checkbox-container { + display: flex; +} + +.custom-control{ + width: 100%; +} + +.chalInfo::-webkit-scrollbar { + background-color: #221d52; + width: 5px; +} + +.chalInfo::-webkit-scrollbar-track { + background-color: #221d52; +} + +/* scrollbar itself */ +.chalInfo::-webkit-scrollbar-thumb { + background-color: #babac0; + border-radius: 16px; +} + +/* set button(top and bottom of the scrollbar) */ +.chalInfo::-webkit-scrollbar-button { + display:none; +} .my-is-invalid{ border: 2px solid rgba(220,53,69,0.9); box-shadow: 1px 1px 2px rgba(220,53,69,0.7);