Commit Graph
10 Commits
Author SHA1 Message Date
Jonathan RaimanandGitHub 940b70ce5b Remove ES6 arrow functions from hover-box
Browsers such as Safari do not natively understand ES6 functions, thus during development only Chrome can be used when the hover box is imported into the page.
(On Safari the following error occurs: ```SyntaxError: Unexpected token ')'
appendChild — index.html:77
hoverBox — template.v1.js:18012
renderOnLoad — template.v1.js:18217
(anonymous function) — template.v1.js:18227
```, this is caused by the function arrow notation not being parsed).
2017-06-17 00:12:33 -07:00
Ben Firshman 22b1f06a12 Fix hover box on touch screens
Relying on the mouse events made the boxes on touch screens really
janky. I have:

- Made opening/closing the touch box purely use touchstart events
  so it is more reliable and responsive
- Made tapping anywhere outside the box close it
- Refactored binding into separate link and div functions so that
  the touch events can be bound correctly
2017-04-14 13:23:11 +02:00
Christopher Olah 22fd0e2b21 better hover box system 2017-04-06 15:10:35 -07:00
Sam Liu bf0cefac67 dismiss-citation-popup-ontouchend 2017-03-22 12:16:36 -04:00
Shan Carter 347f509660 bg color 2017-01-13 16:37:18 -08:00
Shan Carter 02a6b5f1f1 Footnote tweaks 2017-01-13 16:13:21 -08:00
Shan Carter d8bc87061d CSS fixes 2017-01-11 16:38:28 -08:00
Christopher Olah 712d859dad more work on citations 2017-01-10 12:42:59 -08:00
Christopher Olah 9c40d08edd port hover box to node 2017-01-10 11:06:28 -08:00
Shan Carter 501e624d74 static js include 2017-01-10 10:15:59 -08:00