You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current state of development and application architecture.
3
+
4
+
##HTML
5
+
The HTML should allow dynamic features and accessibility.
6
+
7
+
###Style
8
+
Using tabs indented by the level of the DOM. ARIA should be used where it's needed made dynamic using JavaScript.
9
+
10
+
##JavaScript
11
+
12
+
Third party:
13
+
- jQuery 2.*
14
+
- JQuery UI tabs/core only no CSS
15
+
16
+
Currently the JavaScript exists as two parts one part for the UI(`ui.js`) and another part hosting the application(`app.js`).
17
+
18
+
`ui.js` should contains all dynamic UI features that's a result of a consciously action made by an user. Such as menu dropdowns. Notifications/alerts should go into `app.js` because they might be unexpected and contain application error messages.
19
+
20
+
`app.js` should contain all application functionality such as API communication and input. Currently `app.js` has two methods.
21
+
22
+
###`init`
23
+
Initializes the application checking for API availability should in the future check things such as cookies and settings.
24
+
25
+
```
26
+
warper.init();
27
+
```
28
+
29
+
###`alert`
30
+
Throws alerts(notifications). Takes notification type and message as input. Available types are `negative`, `progressive` and `default`.
31
+
```
32
+
warper.alert('negative', 'An error occurred');
33
+
34
+
warper.alert('progressive', 'Weeeeehoooo :-)');
35
+
36
+
warper.alert('default', 'Whatever we want to tell the user.');
37
+
```
38
+
39
+
40
+
Currently the `app.js` is written as object oriented but the `ui.js` is not, this is likely to change.
41
+
42
+
###Style
43
+
See [Airbnb JavaScript Style](https://github.com/airbnb/javascript).
44
+
45
+
##CSS
46
+
47
+
Third party:
48
+
- Wikimedia UI
49
+
50
+
All forms, buttons tables and equal is styled with the Wikimedia UI and is not likely to change. Layout and interface features not included in the Wikimedia UI is located in `wikimaps-style.css`.
51
+
52
+
###Style
53
+
Two spaces always. Write vanilla CSS with no preprocessing step. Browser support can be discussed for minor non breaking enhancements for other changes the three most recent browser releases should be supported.
0 commit comments