Luke Childs
|
3b568f7b2e
|
Follow xo style
|
8 years ago |
Luke Childs
|
f279fc6f47
|
fn -> cb
|
8 years ago |
Luke Childs
|
32f3d51073
|
Update heart message to make it more obvious now we have two hearts
|
8 years ago |
Luke Childs
|
2fd08ea4f2
|
Don't allow code examples to break onto a new line
|
8 years ago |
Luke Childs
|
bec36c871a
|
Fix menu button overlapping title on iPhone 5
|
8 years ago |
Luke Childs
|
1ca404ca08
|
Align menu button properly on mobile
|
8 years ago |
Luke Childs
|
74e980a8eb
|
Reuse SVG response rather than getting the markup back our of an element
Edge doesn't support .outerHTML on SVG so the previous method failed on Edge. This way does make more sense anyway
|
8 years ago |
Luke Childs
|
e2c4fd4421
|
Swap hamburger menu icon for heart
|
8 years ago |
Luke Childs
|
795938293d
|
Update cache message to appear less "webpagey" and more "appy"
|
8 years ago |
Luke Childs
|
436adac60c
|
Better comments for service worker
|
8 years ago |
Luke Childs
|
6078a14355
|
Remove old classList check
|
8 years ago |
Luke Childs
|
416ccb07e7
|
Show how out of date stale pages are
|
8 years ago |
Luke Childs
|
43115cc3d9
|
Don't show searchbar on mobile about and no-connection pages
|
8 years ago |
Luke Childs
|
2de8ec158a
|
Improve no-connection page
|
8 years ago |
Luke Childs
|
892c761c7e
|
Add service worker and cache assets
|
8 years ago |
Luke Childs
|
ebed53e5bf
|
Update homescreen icon
|
8 years ago |
Luke Childs
|
0182cfadbc
|
Show message in ndoe menu if no nodes have been hearted
|
8 years ago |
Luke Childs
|
dfd668c445
|
elem() -> find()
I was getting elem() and create() mixed up, find() is more expresses intent better.
|
8 years ago |
Luke Childs
|
1a6d5d4acb
|
Refactor feature detection into object
No need for reusable class, keep size down
|
8 years ago |
Luke Childs
|
aa80c5533a
|
Make hearted nodes list scrollable
|
8 years ago |
Luke Childs
|
4876042b3d
|
Wire up menu controls
|
8 years ago |
Luke Childs
|
098c3a120d
|
Style hearted nodes list
|
8 years ago |
Luke Childs
|
b65179b7b9
|
Update hearted node menu on heart/unheart
|
8 years ago |
Luke Childs
|
3df4866bca
|
Populate hearted nodes list
|
8 years ago |
Luke Childs
|
a8867adeac
|
Add favourited menu
|
8 years ago |
Luke Childs
|
cc4bd62325
|
Update hearted node name on page load
|
8 years ago |
Luke Childs
|
80e1654d1b
|
Save node name in hash
|
8 years ago |
Luke Childs
|
b5994b7551
|
Store favourited nodes in hash, not array
|
8 years ago |
Luke Childs
|
fe4f01903a
|
Check for classList support on SVG element
IE supports classList but not on SVG elems so favouriting nodes fails halfway through if we only check for classList on generic elems.
|
8 years ago |
Luke Childs
|
2cdf5e88da
|
Reduce width of hamburger
|
8 years ago |
Luke Childs
|
b67dff723f
|
Hover styles for hamburger menu
|
8 years ago |
Luke Childs
|
217c9f758b
|
Do hamburger menu in CSS
|
8 years ago |
Luke Childs
|
45906fca0b
|
variable space optimisations
Uglify.js will optimise these even further
|
8 years ago |
Luke Childs
|
268af94be4
|
No need to save heartEl
|
8 years ago |
Luke Childs
|
588e6b22f5
|
Inject menu button for hearted nodes
|
8 years ago |
Luke Childs
|
df37aadadf
|
Refactor favourite node code to be more readable
|
8 years ago |
Luke Childs
|
7bdba5bfc5
|
Refactor feature tester into class
|
8 years ago |
Luke Childs
|
65f82a1801
|
Add feature detection test for classList
|
8 years ago |
Luke Childs
|
9b1e1febee
|
Add feature detection test for document.querySelector
|
8 years ago |
Luke Childs
|
a1d1cdc89d
|
Refactor feature detection code
|
8 years ago |
Luke Childs
|
a360ff5a93
|
Store active class in variable
|
8 years ago |
Luke Childs
|
266c515f94
|
Check heart status by localStorage not class
|
8 years ago |
Luke Childs
|
cccb84f077
|
Show hearted nodes
|
8 years ago |
Luke Childs
|
a014e9ec0e
|
Add heart to DOM before adding click event
If DOM is already ready we should add the heart to DOM ASAP to reduce lag
|
8 years ago |
Luke Childs
|
c6fbf0b7c5
|
Remove unused var
|
8 years ago |
Luke Childs
|
e60c74a9ce
|
Save hearted nodes
|
8 years ago |
Luke Childs
|
faa96cb69b
|
Add basic click handler
|
8 years ago |
Luke Childs
|
cfdb8ead60
|
Refactor JS
Make DOM ready code reusable and send SVG XHR before DOM is ready, we only need to wait for the DOM to inject the elem.
|
8 years ago |
Luke Childs
|
107520961d
|
Add heart svg if favourite node requirements are met
|
8 years ago |
Luke Childs
|
425cd294a9
|
Un es6ify :(
|
8 years ago |