Make JavaScript work with LibreJS (#1213)

This commit is contained in:
Dawid Potocki 2019-08-25 04:01:50 +00:00 committed by GitHub
parent bb4d09fba8
commit 4cd0f2e735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 62 additions and 23 deletions

View File

@ -71,8 +71,19 @@
</div>
<div class="copyright-text">
<p><strong>No Ads, No Google Analytics, No Affiliates, No Cross-Site Requests.</strong> <em>privacytools.io is a socially motivated website that provides information for protecting your data security and privacy. Never trust any company with your privacy, always encrypt.</em> <a href="/privacy-policy/">View our privacy policy</a>.</p>
<p class="text-left">Tor v3: <strong>privacy2zbidut4m4jyj3ksdqidzkw3uoip2vhvhbvwxbqux5xy5obyd.onion</strong> (<a href="https://write.privacytools.io/jonah/tor-on-privacytools-io">Learn More</a>)</p>
</div>
<a href="/about/javascript" data-jslicense="1">
<span class="fab fa-js fa-lg"></span>
JavaScript Licenses
</a>
<p class="mt-2">
<strong>No Ads, No Google Analytics, No Affiliates, No Cross-Site Requests.</strong>
<em>privacytools.io is a socially motivated website that provides information for protecting your data security and privacy. Never trust any company with your privacy, always encrypt.</em>
<a href="/privacy-policy/">View our privacy policy</a>.
</p>
<p class="text-left">
Tor v3: <strong>privacy2zbidut4m4jyj3ksdqidzkw3uoip2vhvhbvwxbqux5xy5obyd.onion</strong>
(<a href="https://write.privacytools.io/jonah/tor-on-privacytools-io">Learn More</a>)
</p>
</div>
</footer>

View File

@ -11,17 +11,4 @@
- User privacy protection
-->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://stats.privacytools.io/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><img src="https://stats.privacytools.io/matomo.php?idsite=1&amp;rec=1" style="border:0" alt=""/></noscript>

View File

@ -0,0 +1,27 @@
<h3>JavaScript Licenses</h3>
<table id="jslicense-labels1" border="1">
<tr>
<td><a href="/assets/js/main.js">main.js</a></td>
<td><a href="https://creativecommons.org/publicdomain/zero/1.0/legalcode">CC0-1.0-only</a></td>
</tr>
<tr>
<td><a href="/assets/js/redirects.js">redirects.js</a></td>
<td><a href="https://creativecommons.org/publicdomain/zero/1.0/legalcode">CC0-1.0-only</a></td>
</tr>
<tr>
<td><a href="/assets/js/bootstrap.min.js">bootstrap.min.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
</tr>
<tr>
<td><a href="/assets/js/jquery-3.3.1.min.js">jquery-3.3.1.min.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
</tr>
<tr>
<td><a href="/assets/js/popper.min.js">popper.min.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
</tr>
<tr>
<td><a href="/assets/js/sortable.min.js">sortable.min.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
</tr>
</table>

View File

@ -1,13 +1,8 @@
// Tooltips
$(function () {
$("[data-toggle='tooltip']").tooltip();
$(function() {
$("[data-toggle='tooltip']").tooltip();
});
//
// Navbar dropdowns
//
const navSections = document.querySelectorAll(".nav-details");
navSections.forEach(navSection => {
@ -31,3 +26,22 @@ function navSectionsClose(event) {
navSection.open = !open;
});
}
// Matomo
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u = "https://stats.privacytools.io/";
_paq.push(["setTrackerUrl", u + "matomo.php"]);
_paq.push(["setSiteId", "1"]);
var d = document,
g = d.createElement("script"),
s = d.getElementsByTagName("script")[0];
g.type = "text/javascript";
g.async = true;
g.defer = true;
g.src = u + "matomo.js";
s.parentNode.insertBefore(g, s);
})();