Commit Graph

68 Commits

Author SHA1 Message Date
Andrew Zaborowski
7be6c6536a
Add webserver-v1.js click handlers for Cover buttons (#521)
Add js click handlers for the web UI buttons added in
b1f9c9a6e0a3dce73507e6b60782987ee2459f48 in the esphome repository.
Since this change doesn't make the .js file incompatible with esphome
versions before the referenced commit I guess there's no need to
rename the file to -v2.

There are probably better ways to write those click handlers, for
example we could have a common function to launch the POST request to a
URL that it reads from the button object like this:

var button_onclick = function(evt) {
    const xhr = new XMLHttpRequest();
    xhr.open("POST", evt.target.onlick_post_url, true);
    xhr.send();
};

row.children[2].children[0].addEventListener('click', button_onlick);
row.children[2].children[0].onclick_post_url = '/light/' + id.substr(6) + '/toggle';

The only problem with this is that iirc ``evt.target`` is
browser-specific.
2020-04-09 11:12:21 -03:00
Otto Winter
ca6535cc6a
Bump version to v1.14.2 2019-11-03 00:20:38 +01:00
Otto Winter
b2f9cb1982
Bump version to v1.14.1 2019-11-02 21:00:56 +01:00
Otto Winter
1b2c55a812
Merge branch 'beta' into current 2019-11-01 18:32:02 +01:00
Otto Winter
d7abea6022
Bump version to v1.14.0 2019-11-01 18:31:15 +01:00
Otto Winter
f298dd7157
1.14 Changelog (#393)
* 1.14 Changelog updates

* Final changelog

* Run svg2png

* Add note
2019-11-01 18:28:26 +01:00
Otto Winter
7b06e1a84e
Bump version to v1.14.0b5 2019-10-31 23:51:00 +01:00
Otto Winter
618ebf32e0
Bump version to v1.14.0b4 2019-10-24 22:07:08 +02:00
Otto Winter
511eafc5a7
Bump version to v1.14.0b3 2019-10-22 23:05:25 +02:00
Otto Winter
0b0b8c324c
Bump version to v1.14.0b2 2019-10-20 19:35:04 +02:00
Otto Winter
3d828f2f6f
Bump version to v1.14.0b1 2019-10-19 17:11:12 +02:00
Otto Winter
330c4d2fc9
Update version 2019-07-03 17:37:11 +02:00
Otto Winter
6a2e77be24
Bump version to v1.13.6 2019-06-14 12:55:50 +02:00
Otto Winter
bd268dbab3
Bump version to v1.13.5 2019-06-08 16:50:48 +02:00
Otto Winter
a9f9874b11
Bump version to v1.13.4 2019-06-03 15:25:03 +02:00
Otto Winter
96f2ae30ae
Bump version to v1.13.3 2019-06-01 22:03:12 +02:00
Otto Winter
79904ada7f
Bump version to v1.13.2 2019-05-31 16:38:28 +02:00
Otto Winter
5c2f246121
Bump version to v1.13.1 2019-05-30 22:32:23 +02:00
Otto Winter
254890ba71
Bump version to v1.13.0 2019-05-30 14:16:42 +02:00
Otto Winter
2fb85ace76
Bump version to v1.13.0b7 2019-05-30 13:14:50 +02:00
Otto Winter
8fe427b522
Create changelog-1.13.0.png 2019-05-30 13:12:24 +02:00
Otto Winter
aa8e7c14df
Bump version to v1.13.0b6 2019-05-29 19:39:47 +02:00
Otto Winter
8a6173c1fa
Bump version to v1.13.0b5 2019-05-29 11:24:07 +02:00
Otto Winter
96340c52e7
Bump version to v1.13.0b4 2019-05-28 21:38:45 +02:00
Otto Winter
3567b770b0
Bump version to v1.13.0b3 2019-05-28 16:37:01 +02:00
Otto Winter
beb5b4a77e
Bump version to v1.13.0b2 2019-05-28 10:49:59 +02:00
Otto Winter
e577316e94
Bump version to v1.13.0b1 2019-05-27 21:51:37 +02:00
Otto Winter
342b5f1247
Bump version to v1.12.2 2019-03-31 13:14:03 +02:00
Otto Winter
d23f7ec1e0
Bump version to v1.12.1 2019-03-20 13:13:06 +01:00
Otto Winter
956a96a0fc
Add screenshot 2019-03-17 21:53:29 +01:00
Otto Winter
6fbcd8bf45
Bump version to v1.12.0 2019-03-17 21:13:01 +01:00
Otto Winter
69207c22b9
Bump version to v1.12.0b4 2019-03-17 20:47:35 +01:00
Otto Winter
f602c962f9
Bump version to v1.12.0b3 2019-03-17 16:08:26 +01:00
Otto Winter
02e52df1c4
Bump version to v1.12.0b2 2019-03-16 22:30:05 +01:00
Otto Winter
6a83179656
Bump version to v1.12.0b1 2019-03-13 19:01:09 +01:00
Otto Winter
a83bb41b3b
Add supporters page 2019-03-11 19:59:52 +01:00
Otto Winter
f4c1d31a1d
Revert "Remove disqus"
This reverts commit 19a22e8b39.
2019-03-06 11:02:03 +01:00
Otto Winter
19a22e8b39
Remove disqus 2019-03-05 20:42:43 +01:00
Otto Winter
0991fb0e06
Fix shields on index page
Enabled cloudflare mirage, and that apparently removes styles from img
2019-03-05 20:20:20 +01:00
Otto Winter
1cc9ffb494
Bump version to v1.11.2 2019-02-26 23:04:46 +01:00
Otto Winter
3a01257a50
Bump version to v1.11.1 2019-02-23 20:17:11 +01:00
Otto Winter
b31e522b23
Add changelog image 2019-02-22 22:20:14 +01:00
Otto Winter
a70a5c1523
Bump version to v1.11.0 2019-02-22 21:51:00 +01:00
Otto Winter
aa8bf64f91
Bump version to v1.11.0b3 2019-02-21 18:38:16 +01:00
Otto Winter
a1eaaf003a
Bump version to v1.11.0b2 2019-02-20 12:54:02 +01:00
Otto Winter
5ac6ceee96
Merge branch 'current' into beta 2019-02-20 12:45:32 +01:00
Otto Winter
26be1d3c22
Fix favicons 2019-02-18 10:34:45 +01:00
Otto Winter
c60384df35
Bump version to v1.11.0b1 2019-02-17 20:24:34 +01:00
Otto Winter
afe248c06f
SEO and speed improvements 2019-02-17 12:28:53 +01:00
Otto Winter
415cbfb314
Revert "Try fix "Show simplified view" for Chrome on Android"
This reverts commit 01b80fd92f.
2019-02-15 09:55:21 +01:00