added instructions for using Snap! offline

pull/68/head
jmoenig 2018-10-04 16:18:44 +02:00
rodzic 4d850b0410
commit f79460ec67
4 zmienionych plików z 72 dodań i 2 usunięć

Wyświetl plik

@ -4,6 +4,8 @@
### 2018-10-04
* GUI, Cloud: improved UX when running Snap! locally without a web server
* pushed dev-version to v4.2.2
* added OFFLINE.md
### 2018-10-03
* Threads: fixed "letter of" primitive for numeric input, thanks, Michael and Dan!

68
OFFLINE.md 100755
Wyświetl plik

@ -0,0 +1,68 @@
# Using Snap! Without an Internet Connection
Snap! is a web application hosted at
[https://snap.berkeley.edu/run](https://snap.berkeley.edu/run "Snap! online").
If you would like to use Snap! without being connected to the internet, e.g. in a remote area
or in a school with limited or unreliable online service you can easily set up Snap! locally on
your computer, by following these
## Simple Steps:
1. Download the latest Snap! Release from
[https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/releases/latest](https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/releases/latest)
"Snap! Source Code"), and unpack the contents of the archive to your local disk.
2. Open the file `snap.html` in your browser.
3. There is no step 3.
Snap! is just a web page, you can open it locally in your browser, no need to install anything
on your computer. You can use whichever operating system you like, you don't even need
admin rights. You can also use a memory stick to distribute the directory with source files
among the participants of a workshop or the students of your class, even if some of them
are using MacOS and others run MS Windows or Linux.
## Which Web Browser?
It's best to open Snap! in Chrome or Firefox.
Snap! is using web standards and runs in any modern web browser. Some browsers are faster
than others, which makes using Snap! more fun. For the best user experience we recommend
Chrome or Firefox. IE does not comply with modern web standards and will not work. Edge
will work, but some operations will be so slow it takes the fun out of programming and playing.
## What about Tablets?
We don't recommend it.
Snap! sorta runs on tablets, but the UI isn't optimized for mobile use. Also, many mobile
web browsers enforce some restrictions that are not web-standards compliant, e.g. they
will not support the soft keyboard or intentionally slow down certain operations to discourage
using web apps in favor of proprietary "native" apps.
## Saving and Loading
When you use Snap! locally you will not be able to save projects to the cloud, nor can you
access projects saved in the cloud. Instead projects will be exported as xml-files to your
computer, from where they can also be opened again.
There are two ways to load projects and assets from your computer when you use Snap!
without an internet connection:
1. Using the options in Snap's file menu opens an OS-native file dialog that lets you select
which file to import or load.
2. Alternatively you can drag projects and assets (extension libraries, pictures, sounds etc.)
from your computer directly into Snap! and drop it. If you import sounds or images you can
also drag and drop several files all at once.
Easy, isn't it?
## Keeping Snap! up-to-date
From time to time it's wise to check whether a new version of Snap! is available. You can
find out the lastest release using the link above, and compare that to the offline sources on
your computer. If there is a newer version, simply replace the source files with the newer ones.
Enjoy!
-Jens

Wyświetl plik

@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Snap! Build Your Own Blocks 4.2.1.5 - dev -</title>
<title>Snap! Build Your Own Blocks 4.2.2 - dev -</title>
<link rel="shortcut icon" href="src/favicon.ico">
<script type="text/javascript" src="src/morphic.js?version=2018-10-02"></script>
<script type="text/javascript" src="src/widgets.js?version=2018-10-02"></script>

Wyświetl plik

@ -3540,7 +3540,7 @@ IDE_Morph.prototype.aboutSnap = function () {
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
world = this.world();
aboutTxt = 'Snap! 4.2.1.5 - dev -\nBuild Your Own Blocks\n\n'
aboutTxt = 'Snap! 4.2.2 - dev -\nBuild Your Own Blocks\n\n'
+ 'Copyright \u24B8 2018 Jens M\u00F6nig and '
+ 'Brian Harvey\n'
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n'