Exemplo n.º 1
0
 createPresaleWidget() {
   var twheight = 10000;
   document.getElementById("presaleiframe").style.height = "480px";
   webgoldHeight.subscribe(ht => {
     document.getElementById("presaleiframe").style.height = ht + "px";
   });
 }
Exemplo n.º 2
0
  createListeners() {
    titterHeight.subscribe(ht => {
      this.refs.titteriframe.style.height = ht + "px";
    });

    webgoldHeight.subscribe(ht => {
      this.refs.webgoldiframe.style.height = ht + "px";
    });

    forceIframeReload.subscribe(reload => {
      if (reload == true) {
        var tIF = this.refs.titteriframe;
        var wIF = this.refs.webgoldiframe;

        if (tIF) {
          tIF.src = tIF.src;
        }
        if (wIF) {
          wIF.src = wIF.src;
        }
      }
    });
  }