Make JavaScript work with LibreJS #1213

Merged
dawidpotocki merged 1 commits from librejs into master 2019-08-25 04:01:50 +00:00
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>
nitrohorse commented 2019-08-24 17:30:49 +00:00 (Migrated from github.com)
Review

Could we add a slight space here? <br />

Could we add a slight space here? `<br />`
<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 @@
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<h3>JavaScript Licenses</h3>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<table id="jslicense-labels1" border="1">
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="/assets/js/main.js">main.js</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="https://creativecommons.org/publicdomain/zero/1.0/legalcode">CC0-1.0-only</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
</tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="/assets/js/redirects.js">redirects.js</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="https://creativecommons.org/publicdomain/zero/1.0/legalcode">CC0-1.0-only</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
</tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="/assets/js/bootstrap.min.js">bootstrap.min.js</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
</tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="/assets/js/jquery-3.3.1.min.js">jquery-3.3.1.min.js</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
</tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="/assets/js/popper.min.js">popper.min.js</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
</tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="/assets/js/sortable.min.js">sortable.min.js</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
</tr>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`
</table>
nitrohorse commented 2019-08-24 17:31:21 +00:00 (Migrated from github.com)
Review

I'm thinking for the creativecommons links we could use https://

I'm thinking for the creativecommons links we could use `https://`

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);
})();