mirror of
https://github.com/flynx/Slang.git
synced 2025-10-28 10:10:07 +00:00
made slang a progressive web app...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
84590cc66d
commit
2e173f9786
7
Slang/manifest.json
Executable file
7
Slang/manifest.json
Executable file
@ -0,0 +1,7 @@
|
||||
|
||||
{
|
||||
"short_name": "Slang",
|
||||
"name": "Slang",
|
||||
"display": "standalone",
|
||||
"Theme_color": "white"
|
||||
}
|
||||
11
Slang/slang.appcache
Executable file
11
Slang/slang.appcache
Executable file
@ -0,0 +1,11 @@
|
||||
CACHE MANIFEST
|
||||
# Timestamp: 20170825132449
|
||||
|
||||
CACHE:
|
||||
slang.html
|
||||
slang.js
|
||||
manifest.json
|
||||
|
||||
NETWORK:
|
||||
*
|
||||
|
||||
@ -1,4 +1,14 @@
|
||||
<html>
|
||||
<!DOCTYPE html>
|
||||
<html manifest="slang.appcache">
|
||||
<head>
|
||||
<title>Slang</title>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
|
||||
<link rel="manifest" href="manifest.json">
|
||||
|
||||
</head>
|
||||
<style>
|
||||
|
||||
#bootstrap {
|
||||
|
||||
@ -721,6 +721,19 @@ var BOOTSTRAP =
|
||||
|
||||
Objects and namespaces:
|
||||
|
||||
Get the namespace object...
|
||||
|
||||
ns -> namespace
|
||||
|
||||
|
||||
Set attribute (key-value pair) on object...
|
||||
|
||||
o x 123 item!
|
||||
-> o
|
||||
|
||||
Since almost all object words return the original object we can chain
|
||||
object operations like this:
|
||||
|
||||
Create a variable word o and p and set them to empty objects...
|
||||
|
||||
ns
|
||||
@ -728,11 +741,6 @@ var BOOTSTRAP =
|
||||
p {} item!
|
||||
.
|
||||
|
||||
Set attribute (key-value pair) on object...
|
||||
|
||||
o x 123 item!
|
||||
-> o
|
||||
|
||||
Get attribute x value...
|
||||
|
||||
o x item
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user