Postado Maio 13, 2021 4 anos . Q ual server or website you use as a base? Geisor otservbr What is the reason for this topic? So i wanted to change the discord on the server, To our server, But it dosent work. I have changed in dc_float_plygin.js to this code you can see. But it still goes to the tibiabr discord Is there an error coming up? If so, put it here. To quote Do you have the code available? If you have, post it here: (function(){ var load_float_dc = function($){ var defaults = { container_width:300, height:500, //show_facepile:'true', //tabs:'timeline', href:'https://discordapp.com/invite/THKdVcHM36?utm_source=Discord%20Widget&utm_medium=Connect' }, cfg = $("#float_dc").data(), iframe = 'https://discordapp.com/widget?id=842316388952440853&theme=dark', params = [], png = $("#float_dc").attr('src').replace(/\?.*/, '').replace(/[\w\.]+$/, "widget2.png") ; var val; for(var k in defaults) { if(typeof cfg[k] === 'undefined') cfg[k] = defaults[k]; val = cfg[k]; params.push(k + '=' + val); } iframe += params.join('&'); var status_ = 'hide'; // showing, hiding, show, hide $("body").append( ['<div id="float_dc_plugin" style="visibility:hidden">', '<img src="' + png + '" style="cursor:pointer;position:absolute;margin-left:-40px;margin-top:365px;" border=0 />', '<iframe scrolling="no" frameborder="0" allowTransparency="true"></iframe>', '</div>'].join('')); var w = $("#float_dc_plugin"); var top_ = ($(window).height() - cfg.height)/2; if(top_ < 50) top_ = 50; var right_ = cfg.container_width * -1; var css = {width:cfg.container_width, height:cfg.height, position:'fixed', top:top_, right:right_, visibility:'visible', backgroundColor:'rgb(33, 33, 39)', borderRadius:'30px', zIndex:2147483647 }; w.find('iframe').attr({width:cfg.width, height:cfg.height, allowtransparency:true, frameborder:0}).attr('src', iframe); w.css(css); w.find('img').hover(function(){ if(status_ != 'hide') return; status_ = 'showing'; w.animate({right: 0}, function(){ status_ = 'show'; }); }); w.mousemove(function(e){ e.stopPropagation(); }); $("body").mousemove(function(){ if(status_ != 'show') return; status_ = 'hiding'; w.animate({right:right_}, function(){ status_ = 'hide';}); }); }; // load jquery if needed if(typeof jQuery === 'undefined') { var run = false; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = '//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'; script.onload = function(){ $.noConflict(); run = true; load_float_dc(jQuery); }; var head = document.getElementsByTagName('head')[0]; if(head) head.appendChild(script); setTimeout(function(){ if(!run) load_float_dc(jQuery); }, 3000); } else load_float_dc(jQuery); })(); Do you have any images that can help with the problem? If so, put it here. Solved, Thanks!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.