big-wire-17689
04/17/2025, 8:50 AMbig-wire-17689
04/17/2025, 8:51 AM<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Botpress Full-Width in a DIV</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
/*body {
display: flex;
flex-direction: column; // 000Bo
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
color: white;
background-color: #000000;
font-family: Arial, sans-serif;
}*/
h2, h3 {text-align: center}
.container-bpFull {
display: flex;
flex-direction: column; // 000Bo
justify-content: center;
align-items: center;
}
.center-div {
width: 80vw;
height: 80vh;
background-color: rgb(102, 71, 255);
border-radius: 15px;
padding: 5px;
box-sizing: border-box;
color: white;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
@media only screen and (min-width: 1024px) {
.center-div {
width: 50vw;
}
}
/* @media only screen and (max-width: 1024px) {
.center-div {
width: 80vw;
}
}*/
#bpFull {
width: 100%;
height: 100%;
border: none;
overflow: auto; /* Allow iframe to be scrollable */
-webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS Safari */
}
</style>
</head>
<body>
<script src="https://cdn.botpress.cloud/webchat/v2.3/inject.js"></script>
<script src="https://files.bpcontent.cloud/2025/04/08/22/20250408222838-XXXXXXX.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
setTimeout(() => {
botpress.open();
}, 500); // Attends 0,5 seconde
});
</script>
</body>
</html>fierce-photographer-28928
04/17/2025, 9:04 AMbig-wire-17689
04/17/2025, 9:32 AMfierce-photographer-28928
04/17/2025, 9:35 AM<script src="https://cdn.botpress.cloud/webchat/v2.3/inject.js"></script>
<script defer>
window.botpress.init({
"botId": "XXXX",
"configuration": {
"botName": "XXXX",
"botAvatar": "XXXX",
"website": {
"title": "XXXX",
"link": "XXXX"
},
"email": {},
"phone": {},
"termsOfService": {
"title": "XXXX",
"link": "XXXX"
},
"privacyPolicy": {
"title": "XXXX",
"link": "XXXX"
},
"color": "#4d04c4",
"variant": "solid",
"themeMode": "light",
"fontFamily": "inter",
"radius": 1,
"showPoweredBy": false
},
"clientId": "XXXX"
});
</script>fierce-photographer-28928
04/17/2025, 9:36 AMbig-wire-17689
04/17/2025, 10:30 AMbig-wire-17689
04/17/2025, 10:31 AM<script src="https://cdn.botpress.cloud/webchat/v2.3/inject.js"></script>
<script defer>
window.botpress.init({
"botId": "XXXX",
"configuration": {
"botName": "XXXX",
"disableNotificationSound": false,
"botAvatar": "XXXX",
"website": {
"title": "XXXX",
"link": "XXXX"
},
"email": {},
"phone": {},
"termsOfService": {
"title": "XXXX",
"link": "XXXX"
},
"privacyPolicy": {
"title": "XXXX",
"link": "XXXX"
},
"color": "#4d04c4",
"variant": "solid",
"themeMode": "light",
"fontFamily": "inter",
"radius": 1,
"showPoweredBy": false
},
"clientId": "XXXX"
});
</script>fierce-photographer-28928
04/17/2025, 10:40 AMbig-wire-17689
04/17/2025, 12:04 PMfierce-photographer-28928
04/17/2025, 12:53 PM"disableNotificationSound": false, somewhere else in the JSON, I mean outside of the configuration?big-wire-17689
04/17/2025, 1:24 PMwhite-nest-40686
04/17/2025, 3:55 PMbig-wire-17689
04/18/2025, 12:44 PMwhite-nest-40686
04/18/2025, 1:21 PMcool-truck-46790
04/29/2025, 10:50 PMbig-wire-17689
06/26/2025, 7:26 AM