| @@ -11,9 +11,6 @@ | ||||
|   {% endif %} | ||||
|   <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" {{ hidden }}> | ||||
|     <div class="md-sidebar__scrollwrap"> | ||||
|       <div id="widget-wrapper"> | ||||
|  | ||||
|       </div> | ||||
|       <div class="md-sidebar__inner"> | ||||
|         {% include "partials/nav.html" %} | ||||
|       </div> | ||||
| @@ -44,25 +41,4 @@ | ||||
|     <script src="https://code.jquery.com/jquery-3.4.1.min.js" | ||||
|       integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script> | ||||
|  | ||||
|     <!-- Load binance SDK --> | ||||
|     <script async defer src="https://public.bnbstatic.com/static/js/broker-sdk/broker-sdk@1.0.0.min.js"></script> | ||||
|  | ||||
|     <script> | ||||
|       window.onload = function () { | ||||
|         var sidebar = document.getElementById('widget-wrapper') | ||||
|         var newDiv = document.createElement("div"); | ||||
|         newDiv.id = "widget"; | ||||
|         try { | ||||
|           sidebar.prepend(newDiv); | ||||
|  | ||||
|           window.binanceBrokerPortalSdk.initBrokerSDK('#widget', { | ||||
|             apiHost: 'https://www.binance.com', | ||||
|             brokerId: 'R4BD3S82', | ||||
|             slideTime: 4e4, | ||||
|           }); | ||||
|         } catch(err) { | ||||
|           console.log(err) | ||||
|         } | ||||
|       } | ||||
|     </script> | ||||
| {% endblock %} | ||||
|   | ||||
| @@ -11,18 +11,3 @@ | ||||
| .rst-versions .rst-other-versions { | ||||
|     color: white; | ||||
| } | ||||
|  | ||||
|  | ||||
| #widget-wrapper { | ||||
|     height: calc(220px * 0.5625 + 18px); | ||||
|     width: 220px; | ||||
|     margin: 0 auto 16px auto; | ||||
|     border-style: solid; | ||||
|     border-color: var(--md-code-bg-color); | ||||
|     border-width: 1px; | ||||
|     border-radius: 5px; | ||||
| } | ||||
|  | ||||
| @media screen and (max-width: calc(76.25em - 1px)) { | ||||
|     #widget-wrapper { display: none; } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user