78 Commits

Author SHA1 Message Date
Stefan Breunig
6884e967dc different fix for #187 and #192. Please report back if it works. 2013-02-17 00:20:40 +01:00
Stefan Breunig
7438cd6e51 broke the alignment for resos and random details 2013-02-16 16:15:07 +01:00
Stefan Breunig
7b3865e170 fix #185 2013-02-16 15:27:37 +01:00
Stefan Breunig
a2369b5119 avoid off by a few issues for people who zoom their browser. 2013-02-16 15:21:24 +01:00
Stefan Breunig
348202f75d fix #187 2013-02-16 15:05:55 +01:00
Stefan Breunig
e242ca6ef0 avoid stretching chat messages if there are too few for the available space 2013-02-16 11:46:43 +01:00
Stefan Breunig
5445006d5a make chat copy&paste friendly again 2013-02-16 10:56:58 +01:00
Stefan Breunig
2023e33567 more work for #179.
Due to changed display of the portal image it now doesn’t flicker anymore,
which simplifies code a lot.
2013-02-16 10:02:18 +01:00
Stefan Breunig
43d9251c57 part of #179 2013-02-16 08:33:59 +01:00
Stefan Breunig
f1467dd1e9 remove more deprecated stuff 2013-02-15 16:23:11 +01:00
Stefan Breunig
98f22c4e48 see if this fixes the level misalignment 2013-02-14 19:04:31 +01:00
Stefan Breunig
72842612cb more backwards compat 2013-02-14 09:51:02 +01:00
Stefan Breunig
485b1c543b fix #95 (thanks jonatkins) 2013-02-14 08:47:49 +01:00
Stefan Breunig
ae9eaba8c2 further refine tooltips to be more visible against the map 2013-02-13 17:45:07 +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
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
Stefan Breunig
8fc2a891db Merge branch 'gh-pages' of github.com:breunigs/ingress-intel-total-conversion into gh-pages 2013-02-12 10:01:49 +01:00
Stefan Breunig
331d9a3781 add debugging/console capability to devices where it is not available or easily accessibile 2013-02-12 10:01:21 +01:00
Cameron Moon
f9f1cc1266 Added details on how to find updates to error message 2013-02-12 09:23:28 +11:00
Cameron Moon
e761a01aed fixed various minor sidebar layout issues 2013-02-12 08:58:06 +11:00
Stefan Breunig
4d0c0356fe fix breakage in Chrome 2013-02-11 18:55:14 +01:00
Stefan Breunig
43245bf425 add update notice for old users and hide it for all on the current version 2013-02-11 18:17:52 +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
Stefan Breunig
14cc1263f3 undo backwards compat changes, they break the sidebar 2013-02-11 17:31:14 +01:00
Cameron Moon
6599f1375a Remove border on #scrollwrapper as it was duplicating border on #sidebar 2013-02-12 00:20:22 +11:00
Cameron Moon
0c3a9ef4fc Made sidebar look less broken when using out-of-date plugin 2013-02-12 00:14:27 +11:00
Peter Sorger
8b94121bb2 z-index for #scrollwallpaper
had problem with sidebar not showing in Chrome 25, the sidebar got under the map layer. Added z-index 1001;
2013-02-11 13:48:05 +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
Stefan Breunig
1de0e166e0 Merge pull request #99 from cmrn/transparent-sidebar
Transparent sidebar, like the chat box (patch by cmrn)
2013-02-11 02:45:13 -08:00
Stefan Breunig
543fc5ce5b improve portal number separation from background (trick by jonatkins) 2013-02-11 08:57:26 +01:00
Cameron Moon
74be29ea29 Made the sidebar transparent like the chat box 2013-02-11 12:33:44 +11: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
e1c3c9e73b portal mods for unclaimed portals were missing border 2013-02-10 23:38:05 +01:00
Stefan Breunig
2dc8714a63 Merge pull request #84 from scrool/clipboard_friendly_chat
Use invisible formatting for clipboard copy-paste
2013-02-10 11:06:52 -08:00
Pavol Babincak
c66bc0f171 Hide elements used only for clipboard & removed unused selector 2013-02-10 19:22:35 +01:00
Pavol Babincak
7e6c801976 CSS for clipboard-aware chat modified to be backwards compatible 2013-02-10 19:04:47 +01:00
Stefan Breunig
1f8463e487 likely fix #80 2013-02-10 17:09:40 +01:00
Stefan Breunig
8bd0b287b7 fix missing space 2013-02-10 17:08:17 +01:00
Stefan Breunig
c94a95c342 fix #74 2013-02-10 17:03:32 +01:00
Pavol Babincak
0cfb86eff0 Use invisible formatting for clipboard copy-paste
When text is copied from browser it looks like "00:00 <nick> text."
Firefox adds new lines between records. It would be good to get rid of
it.
2013-02-10 15:44:28 +01: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
Stefan Breunig
f2400d1f8b fix #79 and part of #39 2013-02-10 09:02:08 +01:00
Stefan Breunig
6b19e79e07 add plugin basics and fix #31 by providing it as plugin 2013-02-09 13:52:10 +01:00
Xelio
98b0d36859 Change:
Move resonator energy% to tooltip
2013-02-09 02:11:53 +08:00
Xelio
feba54166d Merge remote-tracking branch 'upstream/gh-pages' into patch-resonator-pct 2013-02-09 01:27:13 +08:00
Xelio
86eb0a9025 Add resonator energy% to resonator detail
Change:
Add resonator energy% to resonator detail.
Change shadow color of resonator level and energy% to #808080, more clear for L1 and L2 resonator
2013-02-09 01:18:13 +08:00