Advertisement
Guest User

2x2 Clean

a guest
Mar 21st, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.55 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <title>Cryptowat.ch - 2x2</title>
  5.   <meta charset="utf-8">
  6.   <style>
  7.     * {margin: 0; padding: 0;}
  8.     html, body {height:100%;}
  9.     body {overflow: hidden;}
  10.  
  11.     div.row {
  12.       width: 100%;
  13.       clear: both;
  14.     }
  15.  
  16.     div.col {
  17.       float: left;
  18.     }
  19.  
  20.     div.frame {
  21.       overflow: hidden;
  22.       float: left;
  23.     }
  24.  
  25.     div.frame object {
  26.       border: 1px solid #eee;
  27.     }
  28.  
  29.     div.toolbar {
  30.       display: none;
  31.       position: absolute;
  32.       top: 0;
  33.       z-index: 500;
  34.       height: 30px;
  35.     }
  36.  
  37.     ol.history {
  38.       display: none;
  39.     }
  40.  
  41.     .w10 {width: 10%;}
  42.     .w15 {Width: 15%;}
  43.     .w25 {width: 25%;}
  44.     .w33 {width: 33.3%;}
  45.     .w40 {width: 40%;}
  46.     .w50 {width: 50%;}
  47.     .w60 {width: 60%;}
  48.     .w75 {width: 75%;}
  49.     .w85 {width: 85%;}
  50.     .w90 {width: 90%;}
  51.     .w100 {width: 100%;}
  52.     .h25 {height: 25%;}
  53.     .h33 {height: 33.3%;}
  54.     .h40 {height: 40%;}
  55.     .h50 {height: 50%;}
  56.     .h60 {height: 60%;}
  57.     .h75 {height: 75%;}
  58.     .h100 {height: 100%;}
  59.   </style>
  60. </head>
  61.  
  62. <body>
  63. <div class="row h50">
  64.   <div class="frame w50 h100" >
  65.     <iframe id="chart1" width="100%" height="100%"></iframe>
  66.     <ol class="history"></ol>
  67.   </div>
  68.   <div class="frame w50 h100" >
  69.     <iframe id="chart2"  width="100%" height="100%"></iframe>
  70.     <ol class="history"></ol>
  71.   </div>
  72. </div>
  73. <div class="row h50">
  74.   <div  class="frame w50 h100" >
  75.     <iframe id="chart3"  width="100%" height="100%"></iframe>
  76.     <ol class="history"></ol>
  77.   </div>
  78.   <div  class="frame w50 h100" >
  79.     <iframe id="chart4"  width="100%" height="100%"></iframe>
  80.     <ol class="history"></ol>
  81.   </div>
  82. </div>
  83.  
  84. <script>
  85.     // CHANGE THE URLS BELOW
  86.     window.setTimeout(function () {
  87.       console.log('chart1');
  88.       document.getElementById('chart1').setAttribute('src', 'https://cryptowat.ch/okcoin/btcusd/1min/');
  89.       window.setTimeout(function () {
  90.         console.log('chart2');
  91.         document.getElementById('chart2').setAttribute('src', 'https://cryptowat.ch/bitstamp/btcusd/1min/');
  92.           window.setTimeout(function () {
  93.             console.log('chart3');
  94.             document.getElementById('chart3').setAttribute('src', 'https://cryptowat.ch/huobi/btccny/1min/');
  95.             window.setTimeout(function () {
  96.               console.log('chart4');
  97.               document.getElementById('chart4').setAttribute('src', 'https://cryptowat.ch/bitfinex/btcusd/1min/');
  98.             }, 1500);
  99.           }, 1500);
  100.       }, 1500);
  101.     }, 1500);    
  102. </script>
  103.  
  104. </body>
  105. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement