Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
f410b89
add json script
chaohaiding Aug 3, 2015
d8ddd57
update readme
chaohaiding Aug 3, 2015
16caa77
update json[C
chaohaiding Aug 3, 2015
11a074a
update json
chaohaiding Aug 3, 2015
1d3f340
update json
chaohaiding Aug 3, 2015
02c03ac
updat readme for json code
chaohaiding Aug 3, 2015
e5d8171
update readme
chaohaiding Aug 3, 2015
2bceac1
update readme
chaohaiding Aug 3, 2015
deac06c
add json profile for proof of concept
chaohaiding Aug 3, 2015
6a52fec
update
chaohaiding Aug 3, 2015
783c638
update
chaohaiding Aug 3, 2015
7605086
Update and rename json_skin.json to json_skin.js
ayelet-seeman Aug 11, 2015
45b9568
Update json_skin.js
ayelet-seeman Aug 11, 2015
81ca669
update
chaohaiding Aug 12, 2015
53a5795
Merge branch 'JSON-Script' of https://github.com/ayelet-seeman/coga.p…
chaohaiding Aug 12, 2015
eaace09
update
chaohaiding Aug 12, 2015
d68be8a
upadte
chaohaiding Aug 12, 2015
d0947f8
add profile_example_2
chaohaiding Aug 12, 2015
f3fb5c0
Update README.md
ayelet-seeman Aug 20, 2015
29270d1
Update json_skin.js
ayelet-seeman Aug 20, 2015
8fdee55
Update and rename json_skin.jso to json_skin.json
ayelet-seeman Aug 20, 2015
aa49370
Update json_skin.json
ayelet-seeman Aug 20, 2015
23de311
Update json_skin.json
ayelet-seeman Aug 20, 2015
687a3c7
Update json_skin.json
ayelet-seeman Aug 20, 2015
4234601
Update json_skin.json
ayelet-seeman Aug 20, 2015
608217b
Update json_skin.json
ayelet-seeman Aug 21, 2015
3bea45a
Update json_skin.json
ayelet-seeman Aug 21, 2015
93551bc
Update json_skin.json
ayelet-seeman Aug 21, 2015
334c47e
Update json_skin.json
ayelet-seeman Aug 21, 2015
b09a100
Update json_skin.json
ayelet-seeman Aug 21, 2015
a00bf0a
Update json_skin.json
ayelet-seeman Aug 21, 2015
75ecfd2
Update json_skin.json
ayelet-seeman Aug 21, 2015
0458ae9
Update json_skin.json
ayelet-seeman Aug 22, 2015
a1d2b26
Update json_skin.json
ayelet-seeman Aug 22, 2015
61ebe52
Update json_skin.json
ayelet-seeman Aug 23, 2015
9b1e85e
Update json_skin.json
ayelet-seeman Aug 23, 2015
6bb4f2b
Update json_skin.json
ayelet-seeman Aug 23, 2015
16fe01a
Update json_skin.json
ayelet-seeman Aug 23, 2015
c81501e
Update json_skin.json
ayelet-seeman Aug 23, 2015
7067a8d
Update json_skin.json
ayelet-seeman Aug 23, 2015
a4c2158
Update json_skin.json
ayelet-seeman Aug 23, 2015
2161dc0
Update json_skin.json
ayelet-seeman Aug 23, 2015
c2cc533
Update json_skin.json
ayelet-seeman Aug 23, 2015
48cc6c4
Update README.md
ayelet-seeman Aug 23, 2015
21c47de
Update json_skin.json
ayelet-seeman Aug 24, 2015
9a728ee
Update json_skin.json
ayelet-seeman Aug 24, 2015
a6e2b64
Update json_skin.json
ayelet-seeman Aug 24, 2015
c2c7994
Update json_skin.json
ayelet-seeman Aug 26, 2015
e50d9bc
Update json_skin.json
ayelet-seeman Aug 26, 2015
42c9564
Update json_skin.json
ayelet-seeman Aug 26, 2015
b1f135c
Update json_skin.json
ayelet-seeman Aug 26, 2015
d0012ad
Update json_skin.json
ayelet-seeman Aug 26, 2015
13a8bb5
Update json_skin.json
ayelet-seeman Aug 26, 2015
1b39d3c
Update json_skin.json
ayelet-seeman Aug 26, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 105 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# coga.personalisation
## coga.personalisation
This is a project to help personlisation for any use - including people with learning and memory issues. It is described more at
https://www.w3.org/WAI/PF/cognitive-a11y-tf/wiki/Easy_Personalization
It is made of 3 parts.
Expand All @@ -7,3 +7,107 @@ It is made of 3 parts.
note we are still working on it. more items will come/change
3. An HTML page that uses some of the new aria syntax
4. Scripts that a web auther can use or include that read the user settings in the JSON files and adapt the page for the user needs

##JSON-Skin Documentation

* Proposed default settings for @aria-importance in JSON script.
* compose(default importance = "critical")

All the key-value in the JSON file is followed the https://rawgit.com/w3c/coga/master/issue-papers/links-buttons.html

###Guideline for creating the JSON profile:

```json
{
"@aria-function"('@role','@tag'): [{
"offName": "function",
"type": ["proposed for the functions target widge type."],
"name": "function name",
"inherits": "boolean",
"descendents":[
{
"descendentTag":"string, tag",
"settings":
{
"css": [
{
"propertyName":"propertyName",
"value":"value"

}
]
}
}
],
"settings": {
"shortcut": "Shortcut setting for this function",
"longdesc": "description for settings",
"tooltip": "tooltip for display",
"text": "text for display",
"Symbol": {
"url": "url symbol",
"creator": {
"name": "creator name",
"url": "creator url"

},
"license": {
"name": "licenses",
"url": "licenses url"
},

"settings":{
"width":"num of px",
"height":"num of px",
"margin":"value",
"padding":"value"
}
}

"@aria-hidden": "boolean",
"css": "css override setting"
}
}],




"@aria-importance":
{
"critical ('critical','high','med','low')": {
"settings": {
"@aria-hidden": "boolean",
"css": "css override setting"
}
}
}

}

```

##Demo Website ([Personalised Clothes - Contact Us](https://rawgit.com/ayelet-seeman/coga.personalisation/ExampleWebPage/contactUs.html))

###button functions:
- send email
- reset contact us form
- send contact us form

###links functions:
- home
- contact us
- site map
- product
- services

###form control
- name
- phone
- email
- subject
- message

###Example Profile
- Example 1 [JSON-profile](https://github.com/ayelet-seeman/coga.personalisation/blob/JSON-Script/profile_exmaple_1.json)
- Example 2 [JSON-profile](https://github.com/ayelet-seeman/coga.personalisation/blob/JSON-Script/profile_exmaple_2.json)

215 changes: 215 additions & 0 deletions json_profile_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
{
"description": {
"use case": "write and send an email message.",
"disability": "Mild Intellectual Disability",
"age group": "older than millennials",
"locationzation": "UK&US",
"language": "English"

},

"coga.profile": {
"coga:name": "USMCI",
"coga:desc": "proof of concept for Mild Interllectual Disability to write and send an email message",
"coga:local": ["US", "UK"],
"@aria-function": [{
"function": "compose",
"type": ["button"],
"name": "compose button",
"inherits": "false",
"settings": {
"shortcut": "SHIFT + C",
"longdesc": "this button creates a new email message.",
"tooltip": "create text",
"text": "create text now",
"Symbol": [{
"url": "https://d30y9cdsu7xlg0.cloudfront.net/png/139286-200.png",
"creator": {
"name": "Daniel Boros",
"url": "https://thenounproject.com/tonetype/"
},
"license": [{
"name": "Creative Commons",
"url": "http://creativecommons.org/licenses/by/3.0/us/"
}]
}],
"@aria-hidden": "false",
"css": "visibility:visible;size:2em;border: 5px solid"
}
}, {
"function": "delete",
"type": ["button"],
"name": "delete button",
"inherits": "false",
"settings": {
"shortcut": "SHIFT + D",
"longdesc": "this button delete the emial message.",
"tooltip": "delete text",
"text": "delete",
"Symbol": [{
"url": "https://d30y9cdsu7xlg0.cloudfront.net/png/101601-200.png",
"creator": {
"name": "Muneer A.Safiah",
"url": "https://thenounproject.com/mabusafiah/"
},
"license": [{
"name": "Creative Commons",
"url": "http://creativecommons.org/licenses/by/3.0/us/"
}]
}],
"@aria-hidden": "false",
"css": "visibility:visible;size:2em;border: 5px solid"
}
}, {
"function": "next",
"type": ["button"],
"name": "next button",
"inherits": "false",
"settings": {
"shortcut": "SHIFT + N",
"longdesc": "this button lets you to go forward",
"tooltip": "go forward",
"text": "next",
"Symbol": [{
"url": "https://d30y9cdsu7xlg0.cloudfront.net/png/101601-200.png",
"creator": {
"name": "Creative Stall",
"url": "https://thenounproject.com/creativestall/"
},
"license": [{
"name": "Creative Commons",
"url": "http://creativecommons.org/licenses/by/3.0/us/"
}]
}],
"@aria-hidden": "false",
"css": "visibility:visible;size:2em;border: 5px solid"
}
}, {
"function": "previous",
"type": ["button"],
"name": "previous button",
"inherits": "false",
"settings": {
"shortcut": "SHIFT + P",
"longdesc": "this button lead you to go back.",
"tooltip": "back back",
"text": "previous",
"Symbol": [{
"url": "https://d30y9cdsu7xlg0.cloudfront.net/png/174879-200.png",
"creator": {
"name": "Creative Stall",
"url": "https://thenounproject.com/creativestall/"
},
"license": [{
"name": "Creative Commons",
"url": "http://creativecommons.org/licenses/by/3.0/us/"
}]
}],
"@aria-hidden": "false",
"css": "visibility:visible;size:2em;border: 5px solid"
}
}, {
"function": "submit",
"type": ["button"],
"name": "submit button",
"inherits": "false",
"settings": {
"shortcut": "SHIFT + S",
"longdesc": "this button send text.",
"tooltip": "send text",
"text": "submit",
"Symbol": [{
"url": "https://d30y9cdsu7xlg0.cloudfront.net/png/102500-200.png",
"creator": {
"name": "Rodolfo Alvarez",
"url": "https://thenounproject.com/dg.rodolfoalvarez/"
},
"license": [{
"name": "Creative Commons",
"url": "http://creativecommons.org/licenses/by/3.0/us/"
}]
}],
"@aria-hidden": "false",
"css": "visibility:visible;size:2em;border: 5px solid"
}
}, {
"function": "undo",
"type": ["button"],
"name": "undo button",
"inherits": "false",
"settings": {
"shortcut": "SHIFT + U",
"longdesc": "this button undo your email writing.",
"tooltip": "Back up",
"text": "undo",
"Symbol": [{
"url": "https://d30y9cdsu7xlg0.cloudfront.net/png/14157-200.png",
"creator": {
"name": "Sergey Furtaev",
"url": "https://thenounproject.com/furtaev/"
},
"license": [{
"name": "Creative Commons",
"url": "http://creativecommons.org/licenses/by/3.0/us/"
}]
}],
"@aria-hidden": "false",
"css": "visibility:visible;size:2em;border: 5px solid"
}
}, {
"function": "cancel",
"type": ["button"],
"name": "cancel button",
"inherits": "false",
"settings": {
"shortcut": "SHIFT + C",
"longdesc": "this button allows you to cancel the email.",
"tooltip": "Stop",
"text": "cancel now",
"Symbol": [{
"url": "https://d30y9cdsu7xlg0.cloudfront.net/png/15471-200.png",
"creator": {
"name": "Herbert Spencer",
"url": "https://thenounproject.com/hspencer"
},
"license": [{
"name": "Creative Commons",
"url": "http://creativecommons.org/licenses/by/3.0/us/"
}]
}],
"@aria-hidden": "false",
"css": "visibility:visible;size:2em;border: 5px solid"
}
}]
},

"@aria-importance": [{
"critical": {
"settings": [{
"@aria-hidden": "false",
"css": "visibility:visible;"
}]
}
}, {
"high": {
"settings": [{
"@aria-hidden": "false",
"css": "visibility:visible;"
}]
}
}, {
"med": {
"settings": [{
"@aria-hidden": "true",
"css": "visibility:none;"
}]
}
}, {
"low": {
"settings": [{
"@aria-hidden": "true",
"css": "visibility:hide;"
}]
}
}]
}
Loading