Update brave ad

This commit is contained in:
2020-11-04 20:51:39 +01:00
parent 829fb47951
commit a8a5c5e906
19 changed files with 304 additions and 14 deletions

View File

@@ -26,16 +26,12 @@ spare some coins. Possible methods for donating are:
* Bitcoin:
[1Ne7hGuvnfz9EFTRD3PLWVeaJTX9oA1QUr](bitcoin:1Ne7hGuvnfz9EFTRD3PLWVeaJTX9oA1QUr?label=Pixeldrain%20Donation)
* BasicAttentionToken: Donate BAT by clicking the BAT icon in your address bar.
If you don't have Brave browser yet you can download it here: <a
class="button button_highlight" href="https://brave.com/pix009"
target="_blank">Install Brave</a>. Installing and using Brave with this
referral link also counts as a 5$ donation.
<a href="/brave">Learn more about Brave browser</a>.
* Siacoin:
26117c19ca3975b315d663dcbbc19cf9c07274f441689d4392ed380b2337589ef1aacfbdc93f
(this address points directly at the storage backend. Donations will be used
for paying storage contracts with Sia hosts)
* PayPal: <a class="button button_highlight"
href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WU49A5NHPAZ9G&source=url">
* <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WU49A5NHPAZ9G&source=url">
Donate with PayPal</a>
## How does pixeldrain store files?

53
res/include/md/brave.md Normal file
View File

@@ -0,0 +1,53 @@
# About Brave and Pixeldrain
## <img src="/res/img/brave_lion.svg" style="height: 0.8em;"/> What is Brave?
Brave is a web browser focused on privacy and speed. In some tests Brave is up
to 3 times faster than Chrome and Firefox. It does this by blocking
advertisements and tracking scripts before they even get a chance to load.
Beside the speed improvements this also saves a lot of power and data, very
useful for mobile phones.
Websites look much cleaner without all those advertisements. I don't like
putting ads on pixeldrain either, but I need the money to keep the website
running. Brave tries to solve this by giving users the choice if they want to
see ads. If you opt in to seeing ads from Brave you will receive notifications
with promotional offers once in a while. Brave protects your privacy by putting
the logic for showing relevant ads directly in the browser itself. This way your
browser history never leaves your computer and Google can't follow you around
the web. The earnings from these ads are distributed between the websites which
you love most, a small cut goes to Brave itself for developing the browser, and
some of it goes to you. That's right, you get paid for viewing ads!
## <img src="/res/img/bat_full_color.svg" style="height: 0.8em;"/> Basic attention tokens
<img src="/res/img/bat_wallet.png" style="float: right; max-width: 40%; margin: 0 0.5em;"/>
The money that you get from viewing ads (and receiving free token grants) goes
into a cryptocurrency wallet which is built right into the browser. Once you
have earned some rewards you have a few options. You can choose to automatically
distribute them between websites which you spend the most time on, you can tip
your favourite websites by pressing the tip button in the address bar or you can
convert the money to your own currency and deposit it to your bank account.
Of course I would really appreciate it if you tipped some coins to pixeldrain
once in a while ;-)
<br style="clear: right;"/>
When you install the Brave browser and use it for 30 days they will make a
contribution of around 5$ to pixeldrain. This is currently the site's
biggest source of income. It allows me to get faster servers in more places and
spend more time working on the site. So, if you're ready:
<div style="text-align: center;">
<a class="button button_highlight" style="font-size: 1.5em;" href="https://brave.com/pix009">
<img src="/res/img/brave_lion.svg" style="height: 1.5em; vertical-align: middle;"/>
Get started with Brave
</a>
</div>
If you want to learn more about Brave and its goals I can recommend checking out
the [blog](https://brave.com/blog). If you want to get in touch there is also
the [community forum](https://community.brave.com) and a [reddit
forum](https://www.reddit.com/r/brave_browser).

View File

@@ -187,6 +187,13 @@ function getStats(order) {
resp.stats_watcher_listeners / resp.stats_watcher_threads
).toPrecision(3);
document.getElementById("cache_files").innerText = resp.cache_files;
document.getElementById("cache_size").innerText = formatDataVolume(resp.cache_size_total, 3);
document.getElementById("cache_max").innerText = formatDataVolume(resp.cache_size_max, 3);
document.getElementById("cache_reads").innerText = resp.cache_reads;
document.getElementById("disk_reads").innerText = resp.disk_reads;
document.getElementById("remote_reads").innerText = resp.remote_reads;
let c = document.getElementById("tconnstat_body")
c.innerHTML = ""
resp.db_connection_stats.forEach(v => {

View File

@@ -189,7 +189,7 @@ DirectoryElement.prototype.createFileButton = function(file, index) {
let el = document.createElement("a")
el.classList = "node"
el.href = file.href
// el.target = "_blank"
el.target = "_blank"
el.title = file.name
el.setAttribute("fileindex", index)

View File

@@ -56,7 +56,7 @@ body{
background-repeat: repeat;
margin: 0;
font-family: system-ui, sans-serif;
line-height: 1.5em;
line-height: 1.8em;
color: #b2b2b2; /* Fallback */
color: var(--text_color);
padding: 0;