- This topic has 7 replies, 2 voices, and was last updated 1 year, 6 months ago by
Leo.
-
AuthorPosts
-
October 30, 2020 at 1:54 am #1510580
Robert
Hi
I addd this code into the hook element – HAED:
<style>
#iframeForSmartWeb {
position: fixed;
bottom: 0;
right: 0;
}
</style>
<script>
window.addEventListener(‘message’, function (event) {
if(window.document.getElementById(“iframeForSmartWeb”).style.height !== ’60px’){
window.document.getElementById(“iframeForSmartWeb”).setAttribute(“style”,”width: 300px !important; height: 60px !important”);
}
else{
if(window.outerWidth < 770){
window.document.getElementById(“iframeForSmartWeb”).setAttribute(“style”,”width: 100% !important; height: 100% !important”);}
else{
window.document.getElementById(“iframeForSmartWeb”).setAttribute(“style”,”width: 770px !important; height:460px !important”);}}
}, false);</script>
<!– PRZYKĹÄ„DOWE OSADZENIE –>
<script src=”//ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js”></script><script type=”text/javascript”>
var containerIdForSmartWeb = “elementForSmartWeb”;
jQuery.noConflict();
jQuery(document).ready(function () {
jQuery.cachedStScript = function (url, options) {
options = jQuery.extend(options || {}, {dataType: “script”, cache: true, url: url});
return jQuery.ajax(options);
};
jQuery.cachedStScript(“https://avatar.e-szpital.eu/player-kafelkowy/pk-home/kedzierzyn_kozle/js/wdscript-pk-2.2.js”).done(function (script, textStatus) {
jQuery(‘#’ + containerIdForSmartWeb).smartWeb({
locationForSmartWeb: “https://avatar.e-szpital.eu/player-kafelkowy/mvc/kedzierzyn_kozle”,
isMovable: false,
float: “right”,
wdHeaderForMoving: 500,
width: “300”,
height: “60”,
loader: ”}).open();
});
});
</script>and this into HOOK – BODY:
The chat winow is online works OK
but the whole page is down…Did I something wrong ?
Kr
RobertOctober 30, 2020 at 10:43 am #1511459Leo
StaffCustomer SupportHi there,
Scripts are usually added in
wp_footer
. Can you give that a shot first?Where did you get the code from?
Did the source provide any instructions on how to add it?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 14, 2020 at 7:58 am #1531230Robert
in the FOOTER now it looks to work!
thx
RNovember 14, 2020 at 11:36 am #1531409Leo
StaffCustomer SupportNo problem 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 15, 2020 at 2:29 am #1581174Robert
Hi
unfortunately it works not all corect:
the blue chat Avatar on the right works but the whole page runs away…
Kr
RobertDecember 15, 2020 at 2:45 am #1581197Robert
… I meeen: if I scroll the whole page down – under the footer is +/- 10cm white space…
December 15, 2020 at 3:31 am #1581230Robert
on this 2 websites it works perfect (Im not the webdesigner from them…)
December 15, 2020 at 9:14 am #1581785Leo
StaffCustomer SupportI’m not sure if I understand.
Are you saying that your custom script isn’t working?
Unfortunately that’s not a script coming from us so we cannot help with it.
You will need to check with the author of the script.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.