You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
565 B

  1. var quill_popup=function(){
  2. window.open(document.getElementById('quill-script').src.replace('favorite.js?','favorite-popup?'),'quill-like', 'status=no,directories=no,location=no,resizable=no,menubar=no,width=300,height=200,toolbar=no');
  3. };
  4. (function(){
  5. var quill=document.createElement('script');
  6. quill.src='<?= Config::$base_url ?>favorite.js?url='+encodeURIComponent(window.location)+'&token=<?= $this->token ?>';
  7. quill.setAttribute('id','quill-script');
  8. quill.setAttribute('onerror', 'quill_popup()');
  9. document.body.appendChild(quill);
  10. })();