mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-29 17:36:28 -05:00
Make JavaScript work with LibreJS (#1213)
This commit is contained in:
parent
bb4d09fba8
commit
4cd0f2e735
@ -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>
|
||||
|
@ -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&rec=1" style="border:0" alt=""/></noscript>
|
||||
|
27
about/javascript/index.html
Normal file
27
about/javascript/index.html
Normal 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>
|
@ -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);
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user