Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion site/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ <h3>Pages</h3>
<a href="/faq" rel="noopener">FAQ</a>
<a href="/feedback" rel="noopener">Send Feedback</a>
<a href="/contributors" rel="noopener">Contributors</a>
<a href="/privacy" rel="noopener">Privacy Policy</a>
</section>
<section>
<h3>Discuss</h3>
Expand All @@ -27,4 +28,4 @@ <h3>Resources</h3>
<a href="https://github.com/ScratchAddons/ScratchAddons/wiki" rel="noopener">Documentation</a>
</section>
</div>
</footer>
</footer>
5 changes: 2 additions & 3 deletions site/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
<script async src="https://code.iconify.design/1/1.0.7/iconify.min.js" crossorigin></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/es5.min.js" crossorigin></script>
<script async src="/assets/js/website-base.js"></script>

{% unless page.no-analytics %}
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-144464383-2"></script>
<script>window.dataLayer = window.dataLayer || []; function gtag() {dataLayer.push(arguments)}; gtag("js", new Date); gtag("config", "UA-144464383-2")</script>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cookies-eu-banner.min.js"></script>
{% endunless %}

10 changes: 9 additions & 1 deletion site/_includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@

</nav>

</header>
</header>
<div id="cookies-eu-banner" style="display: none">
<div style="display: flex">
<p>By continuing your visit to this site, you accept the use of cookies by Google Analytics to make visits statistics.</p>
<a href="/privacy" id="cookies-eu-more" class="btn btn-dark">Read more</a>
<button id="cookies-eu-accept" class="btn btn-success">Accept</button>
<button id="cookies-eu-reject" class="btn btn-light">Reject</button>
</div>
</div>
4 changes: 3 additions & 1 deletion site/assets/css/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ body.extension-styled {
padding-top: 1.4px;
padding-bottom: 1.4px;
}

#cookies-eu-banner {
background: #2a2a2a
}
textarea, input {

&::placeholder {
Expand Down
36 changes: 35 additions & 1 deletion site/assets/js/website-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,40 @@ window.addEventListener('load', () => {

})

/* =============================================================
COOKIE CONSENT
============================================================= */

var cookiesBanner = new CookiesEuBanner(function () {
window.dataLayer = window.dataLayer || []; function gtag() {dataLayer.push(arguments)}; gtag("js", new Date); gtag("config", "UA-144464383-2")
let s = document.createElement("script")
s.src ="https://www.googletagmanager.com/gtag/js?id=UA-144464383-2";
document.head.appendChild(s)
// this.deleteCookie(this.cookieName)
// window.location.reload()
}, false)

// cookiesBanner.deleteCookie(cookiesBanner.cookieName);
// console.log(cookiesBanner.hasConsent())

// function updateCookiesEuState() {
// var hasConsent = cookiesBanner.hasConsent()
// var state = '❔ Nor accepted nor rejected';

// if (hasConsent === true) {
// state = '✅ Accepted';
// } else if (hasConsent === false) {
// state = '❌ Rejected';
// cookiesBanner.deleteCookie(cookiesBanner.cookieName)
// cookiesBanner.setConsent(false);
// }

// console.log(state)
// }

// updateCookiesEuState();
// setInterval(updateCookiesEuState, 100);

/* =============================================================
DARK THEME
============================================================= */
Expand Down Expand Up @@ -199,4 +233,4 @@ We thank you for visiting the website, and enjoy using the extension if you do!
"font-size: 1.5rem; font-weight: 500",
"",
"font-style: italic; font-size: 0.75rem")
})
})
41 changes: 41 additions & 0 deletions site/privacy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
layout: markdown
title: Privacy Policy
description: This Privacy Policy describes how we collect, use, and safeguard the information you give us.
---

*Effective date: 30 September 2020*

This Privacy Policy describes how we collect, use, and safeguard the information you give us. In this agreement, website refers to the Scratch Addons website (<https://scratchaddons.com/>). Extension refers to our browser extension, which you can download from <https://chrome.google.com/webstore/detail/fbeffbjdlemaoicjdapfpikkikjoneco> or <https://addons.mozilla.org/firefox/addon/scratch-messaging-extension/.>

When we talk about the service, we mean any service provided by us, such as the website or our services used in addons. The terms &quot;we,&quot; &quot;us,&quot; and &quot;our&quot; refer to the leaders of the Scratch Addons open source project (<https://github.com/ScratchAddons>). When you use our services, you agree to this privacy policy.

## Information we collect

We collect a few different kinds of information about you, like what part of the world you are in, what pages you come to our website from, and what device and software you use. We also collect information about how you use our website. We might collect your Scratch username.

### Information collected via Technology

When you load our website, your browser automatically sends us some information about you. That information includes what page you were on before you came to our website, what kind of device you use, and your IP address. This information does not let us know who you are, but it can help us make decisions about how to make our website better. We may use cookies or other local storage to collect information about you, but not who you are, and remember your settings. For example, Scratch Addons may use cookies to remember if you want to use dark mode.

Scratch Addons may use both persistent and session storage. Persistent storage stays on your computer after you close your browser until you delete it, and your browser deletes session storage when you close it. We use Google Analytics to collect data. For information about how Google may use your data, see <https://support.google.com/analytics/answer/6004245> and <https://policies.google.com/technologies/partner-sites>.

### How we use your information

We will never sell, rent, or share your data, except as needed to operate the service. We do share your information with companies whose services we use, like the company that hosts the servers collecting form responses or the one hosting our website. In general, we use the personal information you give to us to help us communicate with you. For example, we might use personal information to contact you in response to questions or provide technical support. If law enforcement asks for data about a user, we will give it to them.

### How we protect information

We are generally quite careful with your data, using security measures like HTTPS and avoiding the use of insecure code that could allow XSS. However, we ensure that hackers won't. When you use our service, you accept that small have access to your information if we get hacked.

## Links to other websites

As part of the service, we may provide links to or compatibility with other websites or apps. We aren't responsible for the content on those sites or how they might use your data. This Privacy Policy is only about our service.

## Changes to our privacy policy

We might change this policy at any time, but if we do, we will tell you. If we make substantial changes, they will take effect 30 days after we tell you. Small changes or clarifications will take effect immediately. You should periodically check the website and this page for updates.

## How to contact us

If you have any questions, please contact us through our feedback page at <https://scratchaddons.com/feedback.> This page was last updated on 30 September 2020.