overlay_rewrite_invidious.php 1.5 KB

12345678910111213141516171819202122232425
  1. <div class="overlay_simple overlay_rewrite_invidious invisible">
  2. <header class="overlay_simple_header">
  3. <span><?=_('Protect your privacy!')?></span>
  4. </header>
  5. <div class="overlay_simple_body">
  6. <div class="overlay_rewrite_invidious_text" style="margin-bottom:10px">
  7. <?=_("Halcyon has detected that you're trying to post a link to the privacy-invasive video platform YouTube. Halcyon can automatically rewrite that link to Invidious, a privacy-friendly way to watch this video for free and without any ads. Do you want to replace your link with Invidious?")?><br/>
  8. <center><a href="https://github.com/omarroth/invidious" class="halcyon_link" target="_blank"><?=_("Tell me more about Invidious!")?></a></center>
  9. <div style="margin-bottom:20px;width:100%">
  10. <div class="switch" style="margin:0;float:left">
  11. <input type="checkbox" id="rewrite_invidious_permanent">
  12. <div class="switch-btn">
  13. <span></span>
  14. </div>
  15. </div>
  16. <label for="rewrite_invidious_permanent" style="margin-left:5px;vertical-align:sub"><?=_('Remember my decision')?></label>
  17. </div>
  18. </div>
  19. <div class="overlay_simple_controls">
  20. <button class="overlay_rewrite_invidious_yes toot_button" style="float:right;width:180px"><div class="toot_button_label"><i class="fa fa-fw fa-check"></i><span><?=_('Rewrite to Invidious')?></span></div></button>
  21. <a href="javascript:void(0)" class="overlay_rewrite_invidious_no halcyon_link" style="float:right;margin-top:5px;margin-right:10px"><i class="fa fa-times"></i> <?=_('No, thanks')?></a>
  22. </div>
  23. </div>
  24. </div>