최근 검색


최근 검색 없음

AirDroid's Avatar

AirDroid

가입한 날짜: 2021년 4월 16일

·

마지막 활동: 2022년 2월 01일

팔로잉

0

팔로워

0

총 활동 수

9

투표 수

0

플랜 수

3

활동 개요

님의 최근 활동 AirDroid

AirDroid님이 에 댓글을 입력함

커뮤니티 댓글 Discussion - Tips and best practices from the community

Andrei Kamarouski

How can I contact you to get the solution?

댓글 보기 · 2021년 7월 01일에 게시됨 · AirDroid

0

팔로워

0

투표 수

0

댓글


AirDroid님이 에 댓글을 입력함

커뮤니티 댓글 Discussion - Tips and best practices from the community

Andrei Kamarouski

I didn't mean to have this working for multiple forms,  I would like to have this working for only one form but for multiple ticket fields.

 

 

 

댓글 보기 · 2021년 6월 30일에 게시됨 · AirDroid

0

팔로워

0

투표 수

0

댓글


AirDroid님이 에 댓글을 입력함

커뮤니티 댓글 Discussion - Tips and best practices from the community

@Andrei Kamarouski

Thank you for your information. it works for me.

I have another question. Currently, this code only works for only one ticket filed. If I would like them to work for others ticket filed too, what should I do?

Thanks.

댓글 보기 · 2021년 6월 25일에 게시됨 · AirDroid

0

팔로워

0

투표 수

0

댓글


AirDroid님이 에 댓글을 입력함

커뮤니티 댓글 Discussion - Tips and best practices from the community

Hi,

I have a question, how to add multiple languages for the predefined answers?

댓글 보기 · 2021년 6월 19일에 게시됨 · AirDroid

0

팔로워

0

투표 수

0

댓글


AirDroid님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

Sure. 

In script.js, I add the code below:

var acc = document.getElementsByClassName("accordion");
var i;

for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}

In style.css, I add the below code: 

.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}

.active, .accordion:hover {
background-color: #ccc;
}

.accordion:after {
content: '\002B';
color: #777;
font-weight: bold;
float: right;
margin-left: 5px;
}

.active:after {
content: "\2212";
}

.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;

In the article, I add the below code:

Animated Accordion


Click on the buttons to open the collapsible content.





Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.






Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.






Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.


after previewing the article, when I click the accordion, the content didn't display, please help check what am I miss.

 

댓글 보기 · 2020년 10월 30일에 게시됨 · AirDroid

0

팔로워

0

투표 수

0

댓글


AirDroid님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

@Trapta I add the accordion code from w3shcool, but it not works. do you have any ideals?

댓글 보기 · 2020년 10월 29일에 게시됨 · AirDroid

0

팔로워

0

투표 수

0

댓글