summaryrefslogtreecommitdiff
path: root/views/partials/favorite-bookmarklet.php
blob: e4d27bd6a8f8eb83d140ef36dd2ab08cf17af5b7 (plain)
1
2
3
4
5
6
7
8
9
10
var quill_popup=function(){ 
  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'); 
}; 
(function(){ 
  var quill=document.createElement('script'); 
  quill.src='<?= Config::$base_url ?>favorite.js?url='+encodeURIComponent(window.location)+'&token=<?= $this->token ?>'; 
  quill.setAttribute('id','quill-script'); 
  quill.setAttribute('onerror', 'quill_popup()'); 
  document.body.appendChild(quill); 
})();