mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
set warning bubble before showing online wallets
remove my wallet from the top of the "choose your wallet" page. remove all target="_blank", let the user choose if he wants to open pages in new tabs
This commit is contained in:
parent
c11f93d990
commit
0cb9ba43f5
28 changed files with 212 additions and 97 deletions
14
js/main.js
14
js/main.js
|
@ -23,3 +23,17 @@ for(var i=0,nd=document.getElementsByTagName('*'),n=nd.length;i<n;i++){
|
|||
if(/\.svg/.test(getStyle(nd[i],'background')))nd[i].style.background=getStyle(nd[i],'background').replace('.svg','.png');
|
||||
}
|
||||
}
|
||||
function walletshow(){
|
||||
for(var i=0,nd=document.getElementsByTagName('*'),n=nd.length;i<n;i++){
|
||||
if(nd[i].getAttribute('data-id')===null||nd[i].getAttribute('data-id')=='')continue;
|
||||
var d=nd[i].getElementsByTagName('SPAN')[0];
|
||||
var s=document.getElementById(nd[i].getAttribute('data-id')).getElementsByTagName('SPAN')[0];
|
||||
d.innerHTML=s.innerHTML;
|
||||
d.className='';
|
||||
//Workaround for browsers that don't handle re-rendering class styles and svg (they have backgroundImage hardcoded in HTML)
|
||||
if(d.style.backgroundImage!='')d.style.backgroundImage=d.style.backgroundImage.replace('bubblewarn','bubble');
|
||||
for(var ii=0,as=d.parentNode.getElementsByTagName('A'),nn=as.length;ii<nn;ii++){if(as[ii].parentNode==d.parentNode){var dd=as[ii];break;}}
|
||||
for(var ii=0,as=s.parentNode.getElementsByTagName('A'),nn=as.length;ii<nn;ii++){if(as[ii].parentNode==s.parentNode){var ss=as[ii];break;}}
|
||||
dd.innerHTML=ss.innerHTML;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue