Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- js
- ----------------
- $('.btnchart').unbind('click');
- $('.btnchart').click(function(){
- var adminid = $(this).data('id');
- //alert(adminid);
- $('#chartmodal .modal-body').html('<iframe src="chatp.php?pair='+adminid+'" width="1015" height="640" scrolling="no" seamless="seamless" frameBorder="0"></iframe>');
- $('#chartmodal').modal({show:true});
- });
- html
- ----------------------
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>title</title>
- <link rel="stylesheet" href="style.css">
- <script src="script.js"></script>
- </head>
- <body>
- <!-- TradingView Widget BEGIN -->
- <div class="tradingview-widget-container">
- <div id="tradingview_b1a12"></div>
- <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
- <script type="text/javascript">
- new TradingView.widget(
- {
- "width": 980,
- "height": 610,
- "symbol": "BINANCE:<?php echo $a = $_GET['pair'] ? $_GET['pair'] : "BNBUSDT"; ?>",
- "interval": "D",
- "timezone": "Etc/UTC",
- "theme": "Dark",
- "style": "1",
- "locale": "it",
- "toolbar_bg": "#f1f3f6",
- "enable_publishing": false,
- "allow_symbol_change": true,
- "container_id": "tradingview_b1a12"
- }
- );
- </script>
- </div>
- <!-- TradingView Widget END -->
- </body>
- </html>
- bootstrap
- --------------
- <div class="modal fade" id="chartmodal" tabindex="-1" role="dialog" aria-labelledby="chartmodalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document" style="width:1055px; height:660px; background-color: #31353D;max-width: none;">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="chartmodalLabel"><span style="color: white;"><strong>CHART</strong></span></h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body" style="width: 1055px; height: 660px;">
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement