Skip to content

Commit 136fa80

Browse files
committed
Make more GDPR compliant (hopefully)
1 parent 75a736d commit 136fa80

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

index.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -510,26 +510,28 @@
510510
<img id="agpl-logo" src="img/agpl.svg" alt="AGPL">
511511
</a>
512512
<div id="welcome-loading-msg">LOADING&hellip;</div>
513+
<p>By closing this banner and using MolView, you agree with the Terms of Use!</p>
514+
<a class="gray" href="legal" target="_blank">read the Terms of Use</a>
513515
<div id="welcome-button-bar" class="btn-group" style="display: none;">
514516
<!-- <button id="action-start-help" class="btn btn-large">Get started</button> -->
515517
<button class="btn close btn-large btn-primary">Close</button>
516518
</div>
519+
<p>We need your support to create more cool stuff! <a class="btn" target="_blank" title="Consider donating to this project" href="https://www.patreon.com/molview">Donate</a></p>
520+
<p id="allow-tracking-wrapper">
521+
<input id="allow-tracking" type="checkbox" />
522+
<script type="text/javascript">
523+
// Disable by default (GDPR)
524+
$("#allow-tracking").prop("checked", Preferences.get("molview", "allow_tracking", false))
525+
</script>
526+
<label for="allow-tracking">Allow MolView to collect annonymous usage data (<a class="gray" href="tracking">details</a>)</label>
527+
</p>
517528
<div class="btn-group">
518529
<a class="btn" target="_blank" title="YouTube Channel" href="https://www.youtube.com/channel/UCRP9nXCC59TMlqc-bk1mi3A">YouTube</a>
519530
<a class="btn" target="_blank" title="@molview" href="https://twitter.com/molview">Twitter</a>
520531
<a class="btn" target="_blank" title="Facebook page" href="https://www.facebook.com/molview">Facebook</a>
521532
<a class="btn" target="_blank" title="+MolView" href="https://google.com/+MolViewOrganization/about" rel="publisher">Google+</a>
522533
<a class="btn" target="_blank" title="MolView Blog" href="http://blog.molview.org">Blog</a>
523534
</div>
524-
<p>We need your support to create more cool stuff! <a class="btn" target="_blank" title="Consider donating to this project" href="https://www.patreon.com/molview">Donate</a></p>
525-
<p id="allow-tracking-wrapper">
526-
<input id="allow-tracking" type="checkbox" />
527-
<script type="text/javascript">
528-
$("#allow-tracking").prop("checked", Preferences.get("molview", "allow_tracking", true))
529-
</script>
530-
<label for="allow-tracking">Allow MolView to collect interaction data (<a class="gray" href="tracking">read more</a>)</label>
531-
</p>
532-
<a class="gray" href="legal" target="_blank">Terms of Use</a>
533535
</div>
534536
<div class="dialog" id="about-dialog" style="display: none;">
535537
<h2>About</h2>

0 commit comments

Comments
 (0)