66 Commits

Author SHA1 Message Date
Stefan Breunig
346d3ae0a1 implement basic support for smartphones 2013-02-16 13:52:17 +01:00
Stefan Breunig
6d41221131 finish changes for #179. Fixes #179, fixes #49.
Please look for regressions.
2013-02-16 10:46:02 +01:00
Xelio
eab812fbf6 Code restructure 2013-02-16 01:16:20 +08:00
Xelio
c127bf0b6d New feature: Highlight resonators of selected portal 2013-02-16 00:01:59 +08:00
Stefan Breunig
1cf9418179 allow bundling resources and don’t try to load them from the internet 2013-02-14 14:34:54 +01:00
Stefan Breunig
f662c3df39 bump version number 2013-02-14 10:44:30 +01:00
Stefan Breunig
45d7fb1a13 add link to script’s homepage 2013-02-14 10:43:56 +01:00
Peter Sorger
4ff027a22e typo 2013-02-13 16:16:58 +01:00
Peter Sorger
82029efa2b added constants 2013-02-13 16:11:24 +01:00
Stefan Breunig
43a6adad14 make many variables overwritable by plugins 2013-02-13 04:59:36 +01:00
Stefan Breunig
ae65dff2d9 * ditch jQueryUI vanilla styles in favor of own ones.
* disable tracking for tooltips and make them behave more like regular ones
  (this also stops my fan from spinning up when using the intel map)

Improvements welcome. Tooltips are currently placed at the bottom of the
element instead of next to cursor. It seems it’s either tracking or placing
it not anywhere where one would expect a tooltip. I immediately regret
having chosen jQueryUI. It’s not very flexible and has awkward defaults.
2013-02-13 04:10:40 +01:00
Stefan Breunig
4f931a11c7 Merge pull request #142 from saithis/tooltip
Added jQuery UI tooltips; fixes #42; patch by saithis
2013-02-12 18:19:33 -08:00
Stefan Breunig
360f6f8336 rework chat handling completely
The old system was getting too complicated to add new features to.
The new one should be easier to understand and will be explained
below. This patch should fix #140 and fix #16.

There are several places where new data requests may come from:
- chat.needMoreMessages checks if we are scrolled too far up or
  there is no scrollbar. It then requests new messages.
- scrolling up
- switching the chat tab via chat.chooser
- auto refresh
- once on boot
The latter two always request both types of chat.

Faction and public are handled the same way. Public is later split
into categories. I will explain the faction chat here because it’s
easier.

It starts in chat.requestFaction. This will initialize the query to
the server for data. The exact query is determined by chat.
genPostData. There can only be one faction chat request at a time.
Clearing on map move is handled automatically in code/requests.js.

Let’s assume the data query is successful. It is now passed to
chat.handleFaction which runs some basic checks before the data is
processed and stored in chat._factionData. This is done by chat.
writeDataToHash. The hash keys are the message GUIDs to avoid
duplicates. The hash values are an array of timestamp, processed
message and other meta data.

There is only one way to render faction chat, so data is directly
handed to chat.renderFaction which immediately hands it to chat
.renderData. renderData discards the GUIDs and sorts the values
by their timestamp. It then iterates over the data to insert
date break lines and finally renders the data in the DOM. It also
does some magic to keep the correct scrolling position.

Chat data will be cleared on map move or zoom. However, the
display is not refreshed, so the old, invalid chat data is still
displayed. Only once the data query is finished the data is
rendered. The upside is that small map operations within your
local area appear to never lose their chat data. Downside is that
there’s invalid chat for some time when changing cities.
2013-02-13 02:52:27 +01:00
saithis
039f9c14b5 * The jQuery UI js/css file is now taken from ajax.googleapis.com instead of code.jquery.com
* Table or not is now autodetected, removed data-tooltip attributes
* Empty table cells are now possible
* Removed duplicated \t's on some titles
* Some tooltip code cleanup
2013-02-12 23:16:12 +01:00
saithis
10da1dee83 Added jQuery UI tooltips 2013-02-12 19:34:16 +01:00
Cameron Moon
e761a01aed fixed various minor sidebar layout issues 2013-02-12 08:58:06 +11:00
Stefan Breunig
7112e74a8a don’t put version number in title because this leads to multiple installations on chrome 2013-02-11 20:07:12 +01:00
Stefan Breunig
f3bcc3ef03 release v0.51 which contains some fixes for recent breakages 2013-02-11 19:37:35 +01:00
Stefan Breunig
5b07537cca debug build should not use dist/style.css 2013-02-11 18:07:33 +01:00
Stefan Breunig
fdd5de3143 move all files for a specific version in dist. This should prevent updating issues in the future 2013-02-11 17:39:15 +01:00
Stefan Breunig
9416aeb50f replace unicode arrows with CSS tricks that should work on all platforms (patch by mledoze). Fixes #98, #116 2013-02-11 17:32:02 +01:00
Jakub Ludwig
c5dfbabc3a Merge branch 'gh-pages' of https://github.com/breunigs/ingress-intel-total-conversion into gh-pages 2013-02-11 13:54:16 +01:00
Jakub Ludwig
2850d44dac Added field count formula 2013-02-11 13:53:35 +01:00
Stefan Breunig
c170995da7 fix style sheet link (thanks cmrn) 2013-02-11 12:36:14 +01:00
Stefan Breunig
4a45570f40 make more use of the empty space below the sidebar now that there’s a map rendered behind it all the time 2013-02-11 12:10:40 +01:00
Cameron Moon
0ac05647df merged upstream changes 2013-02-11 10:06:40 +11:00
Stefan Breunig
e92a9e13b1 add permalink feature 2013-02-10 23:49:01 +01:00
Cameron Moon
9c56d64447 Made toggle arrow longer & removed unneeded DOM manipulations 2013-02-11 09:42:18 +11:00
Stefan Breunig
686497501b catch being logged in, but stating that the account is not allowed to play ingress.
It will simply reload the page right now after 10s. The user is probably faster to do this
manually, but it solves the problem where the tab is opened and forgotten.
2013-02-10 19:39:28 +01:00
Stefan Breunig
fb656a4982 Merge pull request #78 from Xelio/patch-map-resonator
draw resonators for each portal on map for high zoom levels (17+). Patch by Xelio.
2013-02-10 10:26:52 -08:00
Xelio
7b7f229ac5 Change resonators render min zoom level and radius
Change:
Resonators render minimum zoom level 16 -> 17
Resonators render radius 4 -> 3
Some cleanup and performance tuning
2013-02-11 02:22:35 +08:00
Stefan Breunig
16e0f69929 hack range must obviously be larger than 35m if I’m seeing portals with avg reso dist being 39m 2013-02-10 18:47:45 +01:00
Stefan Breunig
f102ef593d rename expand here as well 2013-02-10 14:58:37 +01:00
Xelio
444bcce988 Code cleanup and minor change
Change:
Code cleanup
Loop over all portalsLayers when delete resonator
2013-02-10 20:58:15 +08:00
Cameron Moon
2647d58e60 Added toggle to collapse sidebar (without old code this time) 2013-02-10 23:03:10 +11:00
Cameron Moon
79b1f2b840 Revert "Added toggle to collapse sidebar" due to old code in commit
This reverts commit 9440e432de91816b5c7d72ea4e12038f88e87bed.
2013-02-10 22:56:53 +11:00
Cameron Moon
9440e432de Added toggle to collapse sidebar 2013-02-10 22:51:54 +11:00
Xelio
eecec0b4a4 Move resonator layer back to layerGroup "portalsLayers",
to make it work with portal level filter.
And modify cleanup code to work with this change.
2013-02-10 16:06:13 +08:00
Xelio
c34d7ee3a2 Resonator on map
Change:
Add "RESONATOR_DISPLAY_ZOOM_LEVEL" to control minimum zoom level resonator will display
Add layerGroup "resonatorsLayers" to draw resonators on it.
Add "window.resonators" to store references to resonators on map

Resonator will have guid of portal with ".11" or ".12" replaced with ".r0"~".r7"
Add function "window.renderResontor" to draw resonators (use sorgo's code [sorgo](https://github.com/sorgo))
"window.renderPortal" will call "window.renderResontor" before add portal to portalsLayers
Change "window.removeByGuid" to handle resonators
Change "window.cleanUp" to handle resonators cleanup
2013-02-10 14:12:26 +08:00
Stefan Breunig
5762b8cb79 Merge branch 'pr' of git://github.com/phoenixsong6/ingress-intel-total-conversion into phoenixsong6-pr 2013-02-10 00:24:43 +01:00
Eashwar Ranganathan
dc4cea2ed7 Display control field count 2013-02-09 15:13:58 -08:00
Stefan Breunig
c6b99c1e7b release 0.4. See NEWS.md for what changed. 2013-02-09 14:12:20 +01:00
Stefan Breunig
6b19e79e07 add plugin basics and fix #31 by providing it as plugin 2013-02-09 13:52:10 +01:00
Stefan Breunig
b9ec6328f8 color portal mods by their rare-ness. Patch by @OshiHidra. Fixes #28. 2013-02-09 11:42:17 +01:00
Jakub Ludwig
c9e2701890 AP for destroying portal
Calculate AP gained from destroyed resonators + link
TODO: fields :)
2013-02-09 11:10:53 +01:00
Stefan Breunig
aadbc19641 fix #15 (patch by @phoenixsong6) 2013-02-08 19:11:29 +01:00
Stefan Breunig
f5edc84635 add ability to filter by portal level. You can access the feature from the layer selector just as before. Fixes #8 and some of #12 2013-02-08 17:39:37 +01:00
mledoze
20d7eb92b4 renamed cardinal to octant 2013-02-08 13:00:55 +01:00
Stefan Breunig
6fb678e6b5 prevent style cache issues when updating 2013-02-08 10:01:28 +01:00
Stefan Breunig
5cd3b006da update build, dump version, add news file 2013-02-08 03:03:40 +01:00