Commit Graph

34 Commits

Author SHA1 Message Date
XhmikosR
e7eb4bef9d Ignore the EventSource() errors
We have code checking for the presence of this, so it's OK to ignore these errors.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 17:24:28 +03:00
Paul Mannarino
256aff73a6 Replace custom httpGet() with $.ajax()" (#1371)
Signed-off-by: Paul Mannarino <paul.mannarino@gmail.com>
2020-05-25 21:59:18 +03:00
XhmikosR
ae13014565 Adapt to the new rules.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-10 18:34:47 +00:00
XhmikosR
704c352277 Format JS code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:18 +02:00
XhmikosR
9c1846885a Clean up JS
* remove unused variables/functions
* use the dot notation
* use explicit coercion
* remove unneeded else
* use `textContent` instead of `innerHTML`
* cache a few `getElementById` calls
* fix a couple of undefined variables
* various assorted lint tweaks

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-16 20:36:40 +02:00
XhmikosR
37c849ce2b Remove unused variables
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-07 11:49:49 +02:00
Linus
b2f9fd0211 Remove remaining absolute paths
Signed-off-by: Linus <wendefelix1998@gmail.com>
2019-11-18 16:13:08 +01:00
Mcat12
3ec55dbf0a Improve domain whitespace handling in inputs 2017-11-22 13:25:23 -05:00
TheME
3ab8c8d0f9 queryads.js: Update*
* removed double comment and updated code to center and separate the buttons on small screens, like in my last screenshot.
2017-06-19 11:29:50 +02:00
TheME
89864baa76 queryads.js: small correction 2017-06-06 20:48:39 +02:00
TheME
fb7df298c0 queryads.js: codacy fixes 2017-06-06 19:21:09 +02:00
TheME
cfaf12cd63 Update queryads.js 2017-06-06 18:35:19 +02:00
DL6ER
4f70973cbc EUPL license (#402)
* Move whole project to EUPL, copy MIT license to scripts/vendor/ and style/vendor/

* Added header to main PHP files

* Modified scripts in scripts/pi-hole/php

* Added header to scripts/pi-hole/js files

* Added license header to our custom style script

* Slight reformulation
2017-02-18 14:20:51 +01:00
DL6ER
13a73f5217 Move ampersand 2017-02-06 15:40:49 +01:00
DL6ER
3be0cb0de4 Codacy 2017-01-14 15:36:30 +01:00
DL6ER
a6b3bc1cb4 Add IE mode to PHP scripts 2017-01-14 15:29:23 +01:00
DL6ER
b7b7217fb0 Implemented filter functions 2017-01-14 14:02:18 +01:00
DL6ER
f9d353af83 codacy 2017-01-14 13:36:43 +01:00
DL6ER
1b211cbe5c IE test 2017-01-14 13:33:15 +01:00
DL6ER
3aa1ffe114 Merge branch 'devel' into fix/IEonceagain 2017-01-14 13:27:00 +01:00
Martin
019910c319 Update queryads.js 2017-01-14 00:34:18 +01:00
Martin
4cd19dfb60 Update queryads.js 2017-01-14 00:33:31 +01:00
Martin
bd7be220b5 Update queryads.js 2017-01-14 00:22:56 +01:00
DL6ER
5114e4cbd5 Reinsert newline at end of file 2017-01-13 15:43:03 +01:00
DL6ER
d597b52f49 Some more IE compatibility tricks 2017-01-13 15:39:28 +01:00
Martin
fed83cb49f Fix HTTPS
small edit
2017-01-12 11:25:36 +01:00
Martin
fd21d04bfb Fixed querying ads over HTTPS
changed http: to // to always use the correct protocol

Fixes #352
2017-01-12 11:07:49 +01:00
Mcat12
4cffd16aae Update tail log and query ads 2016-12-30 15:00:06 -05:00
Promofaux
8240e2d23b merge devel 2016-12-29 19:59:09 +00:00
Mcat12
fab94e07fd Fix php links in js files
Also removed help.js because it's no longer used
2016-12-21 21:10:10 +01:00
Mcat12
2f65430a4d Move PHP scripts to scripts folder 2016-12-21 21:09:58 +01:00
DL6ER
e188cb6fbc Revert "Merge pull request #267 from pi-hole/folderStructure"
This reverts commit fba3d10fa4, reversing
changes made to 4ee75f4167.
2016-12-21 17:16:52 +01:00
Mcat12
30d70baf5e Fix php links in js files
Also removed help.js because it's no longer used
2016-12-19 19:59:08 -05:00
Mcat12
d1da1de597 Move PHP scripts to scripts folder 2016-12-19 19:44:51 -05:00