readme typo fix, donation bitcoin address added, force linux mergemedia path slashes, loading screen anim fix
This commit is contained in:
parent
ceb8ce6027
commit
4b02417b61
5 changed files with 913 additions and 903 deletions
11
README.md
11
README.md
|
@ -1,6 +1,6 @@
|
|||
# ZeroNet
|
||||
|
||||
Decentralized web platform using Bitcoin crypto and BitTorrent network
|
||||
Decentralized websites using Bitcoin crypto and BitTorrent network
|
||||
|
||||
|
||||
## Why?
|
||||
|
@ -13,7 +13,7 @@ Decentralized web platform using Bitcoin crypto and BitTorrent network
|
|||
|
||||
## How does it works?
|
||||
- After starting `zeronet.py` you will be able to visit zeronet sites using http://127.0.0.1:43110/{zeronet_address} (eg. http://127.0.0.1:43110/1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr).
|
||||
- When you visit a new zeronet site, it's try to find peers using BitTorrent network and download the site files (html, css, js...) from them.
|
||||
- When you visit a new zeronet site, it's trying to find peers using BitTorrent network and download the site files (html, css, js...) from them.
|
||||
- Each visited sites become also served by You.
|
||||
- Every site containing a `site.json` which holds all other files sha1 hash and a sign generated using site's private key.
|
||||
- If the site owner (who has the private key for the site address) modifies the site, then he/she signs the new `content.json` and publish it to the peers. After the peers verified the `content.json` integrity using the sign they download the modified files and publish the new content to other peers.
|
||||
|
@ -70,3 +70,10 @@ Site:13DNDk..bhC2 Successfuly published to 3 peers
|
|||
- Serving files....
|
||||
```
|
||||
- That's it! You successfuly signed and published your modifications.
|
||||
|
||||
|
||||
## If you want to help keep this project alive
|
||||
|
||||
Bitcoin: 1QDhxQ6PraUZa21ET5fYUCPgdrwBomnFgX
|
||||
|
||||
#### Thank you!
|
|
@ -33,7 +33,7 @@ def merge(merged_path):
|
|||
# Merge files
|
||||
parts = []
|
||||
for file_path in findfiles(merge_dir, find_ext):
|
||||
parts.append("\n\n/* ---- %s ---- */\n\n" % file_path)
|
||||
parts.append("\n\n/* ---- %s ---- */\n\n" % file_path.replace("\\", "/"))
|
||||
if file_path.endswith(".coffee"): # Compile coffee script
|
||||
if not config.coffeescript_compiler:
|
||||
logging.error("No coffeescript compiler definied, skipping compiling %s" % merged_path)
|
||||
|
|
|
@ -12,6 +12,7 @@ class Loading
|
|||
|
||||
# We dont need loadingscreen anymore
|
||||
hideScreen: ->
|
||||
if not $(".loadingscreen").hasClass("done") # Nothing to do, just let the animtion to be finished
|
||||
if @screen_visible # Hide with animate
|
||||
$(".loadingscreen").addClass("done").removeLater(2000)
|
||||
else # Not visible, just remove
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
/* ---- src/Ui/media\lib/00-jquery.min.js ---- */
|
||||
/* ---- src/Ui/media/lib/00-jquery.min.js ---- */
|
||||
|
||||
|
||||
/*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
|
||||
|
||||
/* ---- src/Ui/media\lib/ZeroWebsocket.coffee ---- */
|
||||
/* ---- src/Ui/media/lib/ZeroWebsocket.coffee ---- */
|
||||
|
||||
|
||||
(function() {
|
||||
|
@ -147,7 +147,7 @@
|
|||
|
||||
|
||||
|
||||
/* ---- src/Ui/media\lib/jquery.cssanim.js ---- */
|
||||
/* ---- src/Ui/media/lib/jquery.cssanim.js ---- */
|
||||
|
||||
|
||||
jQuery.cssHooks['scale'] = {
|
||||
|
@ -179,7 +179,7 @@ jQuery.fx.step.scale = function(fx) {
|
|||
};
|
||||
|
||||
|
||||
/* ---- src/Ui/media\lib/jquery.csslater.coffee ---- */
|
||||
/* ---- src/Ui/media/lib/jquery.csslater.coffee ---- */
|
||||
|
||||
|
||||
(function() {
|
||||
|
@ -245,7 +245,7 @@ jQuery.fx.step.scale = function(fx) {
|
|||
|
||||
|
||||
|
||||
/* ---- src/Ui/media\lib/jquery.easing.1.3.js ---- */
|
||||
/* ---- src/Ui/media/lib/jquery.easing.1.3.js ---- */
|
||||
|
||||
|
||||
/*
|
||||
|
@ -475,11 +475,13 @@ jQuery.extend( jQuery.easing,
|
|||
};
|
||||
|
||||
Loading.prototype.hideScreen = function() {
|
||||
if (!$(".loadingscreen").hasClass("done")) {
|
||||
if (this.screen_visible) {
|
||||
$(".loadingscreen").addClass("done").removeLater(2000);
|
||||
} else {
|
||||
$(".loadingscreen").remove();
|
||||
}
|
||||
}
|
||||
return this.screen_visible = false;
|
||||
};
|
||||
|
||||
|
|
|
@ -6,4 +6,4 @@ try:
|
|||
except Exception, err: # Prevent closing
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
raw_input("-- Error happend, press enter to close --")
|
||||
raw_input("-- Error happened, press enter to close --")
|
||||
|
|
Loading…
Reference in a new issue