mirror of
https://github.com/flynx/Slang.git
synced 2025-10-29 10:40: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>
|
<style>
|
||||||
|
|
||||||
#bootstrap {
|
#bootstrap {
|
||||||
|
|||||||
@ -721,6 +721,19 @@ var BOOTSTRAP =
|
|||||||
|
|
||||||
Objects and namespaces:
|
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...
|
Create a variable word o and p and set them to empty objects...
|
||||||
|
|
||||||
ns
|
ns
|
||||||
@ -728,11 +741,6 @@ var BOOTSTRAP =
|
|||||||
p {} item!
|
p {} item!
|
||||||
.
|
.
|
||||||
|
|
||||||
Set attribute (key-value pair) on object...
|
|
||||||
|
|
||||||
o x 123 item!
|
|
||||||
-> o
|
|
||||||
|
|
||||||
Get attribute x value...
|
Get attribute x value...
|
||||||
|
|
||||||
o x item
|
o x item
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user