Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

836 geo markup #3

Open
wants to merge 804 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
804 commits
Select commit Hold shift + click to select a range
484aa39
Make image overlay block full screen
speedmax Apr 2, 2015
ea9c8a4
Update gallery layout
speedmax Apr 2, 2015
85a3115
Adds top3 assets
speedmax Mar 26, 2015
dedf086
Fixes import problem
speedmax Apr 3, 2015
dbd715a
Fixes asset loading when embed in rails
speedmax Apr 3, 2015
5d9ba22
update issue icons
markgk629 Apr 3, 2015
9a47b78
broad horizons: minor style fixes
markgk629 Apr 4, 2015
afa235b
broad horizons: update mobile styles
markgk629 Apr 4, 2015
41302c0
update google map to use fixed position
markgk629 Apr 6, 2015
4051b8d
Add custom js into test issue (about)
speedmax Apr 6, 2015
9e5fee1
Merge branch 'master' of github.com:issueapp/spring
speedmax Apr 6, 2015
dbda5f6
Update page coffee and add map view
speedmax Apr 6, 2015
39769d9
Use final video cover asset
speedmax Apr 6, 2015
4d1d2af
Broad-horizons: Adding outback-tours and getting there page
speedmax Apr 6, 2015
a153e23
borad horizons: add outback tours page
markgk629 Apr 6, 2015
e3353fc
broad horizons: update outback & camping products
markgk629 Apr 6, 2015
43cbe63
- Add getting there page
speedmax Apr 6, 2015
03f5a2d
Update broad horizons
speedmax Apr 6, 2015
5ed87c3
update luxe hotel custom style
markgk629 Apr 6, 2015
df5d99f
Scope page animation for current page
Apr 6, 2015
7e2b595
Update cover text-shadow
speedmax Apr 7, 2015
e17cdd4
Add icon/preview image, fixes media-id syntax
speedmax Apr 7, 2015
a790ec4
Fixes asset path
speedmax Apr 7, 2015
c3f8a3b
Fixes image path and issue number
speedmax Apr 7, 2015
f995a75
Add made png
speedmax Apr 7, 2015
4041fc6
broad horizons: - update products style
markgk629 Apr 7, 2015
58b5565
broad horizons: update luxe hotel fullscreen height style
markgk629 Apr 7, 2015
e055a3d
Update page helper
speedmax Apr 8, 2015
08b66a5
broad horizons: remove luxe hotel page data media id
markgk629 Apr 9, 2015
51194c7
- Add aspect ratio in page helpers
speedmax Apr 9, 2015
c87a139
Update minkpink content IMG width
speedmax Apr 9, 2015
2f462f4
update issue icons
markgk629 Apr 9, 2015
3f6acd3
Mark TOC asset with images.
speedmax Apr 10, 2015
9123591
Update spread/broad-horizons/great-escape/music/spring to have data-o…
speedmax Apr 10, 2015
f5c2b5b
ge: add Turbine or Not Turbine story
markgk629 Apr 11, 2015
edd8327
ge: add Return To Investment story
markgk629 Apr 11, 2015
6da5abc
ge: add The People's Power story
markgk629 Apr 11, 2015
144c299
ge: add Where your power comes from story
markgk629 Apr 11, 2015
0662a83
ge: add GE Oil & Gas story
markgk629 Apr 11, 2015
559ccb7
- update turbine or not turbine story styles
markgk629 Apr 11, 2015
9ff017f
Add turbine story loop
speedmax Apr 11, 2015
496f177
- shorten GE/energy issue handle
speedmax Apr 11, 2015
559df55
energy: update turbine responsive styles
markgk629 Apr 12, 2015
b1abd63
energy: update ret question page content
markgk629 Apr 12, 2015
7b6bc10
energy: update people's power page content
markgk629 Apr 12, 2015
aa7554d
energy: fix image paths
markgk629 Apr 12, 2015
d3a9e35
- Add people’s power infographic (3 screens)
speedmax Apr 11, 2015
2909ecd
energy: update ret question paginate page content
markgk629 Apr 12, 2015
12d2621
Merge branch 'master' of github.com:issueapp/spring
speedmax Apr 12, 2015
3d76833
Implement cover overlay style (wip)
speedmax Apr 12, 2015
bbe2c65
Fixes spring page helper
speedmax Apr 12, 2015
a6911f6
energy: update ret question content & styles
markgk629 Apr 12, 2015
832047e
Add map js to ge/energy
speedmax Apr 12, 2015
20b44ac
merge conflcit
speedmax Apr 12, 2015
0dbd44d
Add stock image
speedmax Apr 12, 2015
27d9a43
Add final video to story one
speedmax Apr 12, 2015
4ba3c2d
- export high res infographic
speedmax Apr 12, 2015
8265ccd
energy: update people power story
markgk629 Apr 12, 2015
9bf19e8
Update cover without watermark
speedmax Apr 12, 2015
455bd80
Merge remote-tracking branch 'origin/master'
markgk629 Apr 12, 2015
754d081
update energy content
markgk629 Apr 12, 2015
bb2f784
energy: update people's power page theme
markgk629 Apr 13, 2015
78cebd8
energy: fix paginate page broken image problem
markgk629 Apr 13, 2015
207d21c
- fix energy issue broken youtube video
markgk629 Apr 13, 2015
57740fa
Add energy infographic assets (svg, png)
speedmax Apr 13, 2015
71029e8
energy: peoples power infographic [wip]
markgk629 Apr 13, 2015
8bb66c8
energy: update people's power infographic
markgk629 Apr 13, 2015
a747170
- energy: update content style
markgk629 Apr 13, 2015
de34bd1
- Update poeple’s power chart.svg
speedmax Apr 14, 2015
dfd83e3
energy: update people's power infographic
markgk629 Apr 14, 2015
eaf9ab6
Update solar/wind infographic
speedmax Apr 14, 2015
92c5c7d
Update
speedmax Apr 14, 2015
63ea2b8
energy: update infographic pages
markgk629 Apr 14, 2015
067e2d2
update energy infographic
markgk629 Apr 14, 2015
85b2b31
energy: update infographic responsive styles
markgk629 Apr 15, 2015
cb327a4
energy: update custom js & css
markgk629 Apr 16, 2015
6f664cd
denim: add perfect fit page
markgk629 Apr 16, 2015
eac3c34
high level spec of LocalIssue::PageView
khoan Apr 16, 2015
ea17e4b
denim: add brands to love page
markgk629 Apr 16, 2015
01ebbb1
denim: update brands to love page brand logos
markgk629 Apr 16, 2015
cead824
denim: update cover page
markgk629 Apr 16, 2015
150a911
flesh out Issue::PageView spec
khoan Apr 16, 2015
5638fc9
expand page view spec
khoan Apr 16, 2015
b658dc0
denim: update brands to love page portrait style
markgk629 Apr 17, 2015
9b3ebc7
denim: update brands to love content
markgk629 Apr 17, 2015
6b8da3c
denim: remove list element title
markgk629 Apr 17, 2015
5f463d1
denim: - update cover page responsive style
markgk629 Apr 17, 2015
9932e9d
copy stylesheets from publisher to spring
khoan Apr 17, 2015
d37f843
[wip] integrate Issue::PageView into views/issue/_page.html partial
khoan Apr 17, 2015
5885192
denim: add flip animation on page:active
markgk629 Apr 17, 2015
b5ed235
[wip] PageView#cover_html
khoan Apr 17, 2015
6428744
add some tests around cover html
khoan Apr 20, 2015
83d7912
put some test around product set rendering
khoan Apr 20, 2015
cc2b46b
energy: add electric cars page
markgk629 Apr 20, 2015
611a9e1
- [wip] generate PageView#content_html
khoan Apr 20, 2015
145cfcc
Compress images and remove unused assets
speedmax Apr 20, 2015
17146c9
get local image sizes
khoan Apr 20, 2015
c460772
denim: update flipper bg images
markgk629 Apr 20, 2015
bd1f58a
Merge branch 'master' of github.com:issueapp/spring
speedmax Apr 20, 2015
925be21
denim: - update flip content vertical alignment
markgk629 Apr 20, 2015
aa0fe07
denim: remove brands to love initial flipped cards style
markgk629 Apr 20, 2015
b50e038
delete old denim bg images
speedmax Apr 20, 2015
125eaa7
denim: add new stories
speedmax Apr 21, 2015
d49cb1c
denim: update spotify page
markgk629 Apr 21, 2015
aa941d7
denim: add new pages
markgk629 Apr 21, 2015
3f69c61
sync some coffee and scss from publisher
khoan Apr 21, 2015
84c2354
spec out page custom html and content
khoan Apr 21, 2015
9b24189
don't force encoding in frontmatter parsing: http://ruby-doc.org/core…
khoan Apr 22, 2015
c508be2
fix typo
khoan Apr 22, 2015
5136fa7
PageView model can access view context, so it can call asset_path to …
khoan Apr 22, 2015
7ca22e0
denim: update perfect fit men images
markgk629 Apr 22, 2015
528d787
remove local_issue/page_helpers
khoan Apr 23, 2015
2097016
update page toc partial to use Issue::PageView model
khoan Apr 23, 2015
f2f433e
sync up publisher page scss
khoan Apr 24, 2015
e6b7492
make audio and video works
khoan Apr 24, 2015
ba07f76
pass page json to render mustache-html
khoan Apr 25, 2015
c1d4a61
extract image url from products and link
khoan Apr 25, 2015
7f3a9a3
Compress images
speedmax Apr 25, 2015
02431c9
make Issue::PageView quacks more like its delegated model
khoan Apr 27, 2015
09e35ee
delegate from Issue::PageView to underlying Page/LocalIssue::Page
khoan Apr 27, 2015
0af90f6
replace Nokogiri::HTML::Builder with Nokogiri::Node.create_element
khoan Apr 27, 2015
ff0120b
move Issue::PageView#all to Issue#all_pages
khoan Apr 27, 2015
cf2e4ac
allow Rails to add Issue model as dependency
khoan Apr 27, 2015
4b51f6a
in Issue::PageView model, delegate finding media to page
khoan Apr 27, 2015
aa2069c
- Add html matcher
speedmax Apr 28, 2015
730f6a2
check in missing spec fixtures
speedmax Apr 28, 2015
c29c74d
write better specs for Issue::PageView model
khoan Apr 28, 2015
a4e3607
denim: add new brands to love page layout
markgk629 Apr 28, 2015
3292607
[wip] better spec around video
khoan Apr 28, 2015
90e7279
workaround rspec-html-matchers translating html entity: & becomes &
khoan Apr 28, 2015
482233b
better spec around video iframe rendering in cover html
khoan Apr 29, 2015
16ebd14
clean up html rendering spec
khoan Apr 29, 2015
67f3aa2
denim: brands to love page cards animations [wip]
markgk629 Apr 29, 2015
5a86076
[wip] clean up spec
khoan Apr 29, 2015
963ebf3
denim: add brands to love page scroll animation
markgk629 Apr 29, 2015
3c0d347
denim: - fix webkit backface visibility
markgk629 Apr 29, 2015
7f12e38
correctly detect page cover
khoan Apr 29, 2015
8c24750
denim: - add page thumb urls
markgk629 Apr 29, 2015
ba35194
Add Spotify page
Apr 29, 2015
f1e5896
denim: minor content & style fixes
markgk629 Apr 30, 2015
0c62e53
denim: replace out of stock products
markgk629 Apr 30, 2015
e7b6848
clean up logic around video node decoration
khoan Apr 30, 2015
1510bbf
denim: update mobile page styles
markgk629 Apr 30, 2015
76c12ec
Merge conflict iconic/denim
speedmax Apr 30, 2015
555ae44
- Fixes zepto js warning
speedmax Apr 30, 2015
3163863
- move keyframe to root level
khoan May 1, 2015
9379096
denim: update perfect fit background image position
markgk629 May 1, 2015
c1d2c65
- use utf-8 encoding for node created by nokogiri
khoan May 1, 2015
801e824
- update markup for 2-cate-says-si/3
khoan May 1, 2015
e144840
- Ensure thumb_url on media element gets filter through asset_path
speedmax May 1, 2015
d618a36
add wrapper into page header
markgk629 May 1, 2015
e28e3ec
Merge remote-tracking branch 'origin/802-reuse-pageview' into 802-reu…
speedmax May 2, 2015
f7e7b5e
Update energy issue
speedmax May 2, 2015
c86555d
high level spec of LocalIssue::PageView
khoan Apr 16, 2015
15a0c0f
flesh out Issue::PageView spec
khoan Apr 16, 2015
e81abf4
expand page view spec
khoan Apr 16, 2015
e2bc037
copy stylesheets from publisher to spring
khoan Apr 17, 2015
2528371
[wip] integrate Issue::PageView into views/issue/_page.html partial
khoan Apr 17, 2015
0d4e00e
[wip] PageView#cover_html
khoan Apr 17, 2015
e42a3b9
add some tests around cover html
khoan Apr 20, 2015
46e0950
put some test around product set rendering
khoan Apr 20, 2015
aedeeb5
- [wip] generate PageView#content_html
khoan Apr 20, 2015
28e811a
get local image sizes
khoan Apr 20, 2015
c73661e
sync some coffee and scss from publisher
khoan Apr 21, 2015
81ad1af
spec out page custom html and content
khoan Apr 21, 2015
5a4b339
don't force encoding in frontmatter parsing: http://ruby-doc.org/core…
khoan Apr 22, 2015
cadc780
fix typo
khoan Apr 22, 2015
45d3a14
PageView model can access view context, so it can call asset_path to …
khoan Apr 22, 2015
5d5bbfc
remove local_issue/page_helpers
khoan Apr 23, 2015
8e605b0
update page toc partial to use Issue::PageView model
khoan Apr 23, 2015
1695e6e
sync up publisher page scss
khoan Apr 24, 2015
392462a
make audio and video works
khoan Apr 24, 2015
8dac702
pass page json to render mustache-html
khoan Apr 25, 2015
581cc27
extract image url from products and link
khoan Apr 25, 2015
4a89afe
make Issue::PageView quacks more like its delegated model
khoan Apr 27, 2015
083d60c
delegate from Issue::PageView to underlying Page/LocalIssue::Page
khoan Apr 27, 2015
28453e7
replace Nokogiri::HTML::Builder with Nokogiri::Node.create_element
khoan Apr 27, 2015
62b15ac
move Issue::PageView#all to Issue#all_pages
khoan Apr 27, 2015
0629b65
allow Rails to add Issue model as dependency
khoan Apr 27, 2015
f21160a
in Issue::PageView model, delegate finding media to page
khoan Apr 27, 2015
bebcb48
- Add html matcher
speedmax Apr 28, 2015
2f0d41c
check in missing spec fixtures
speedmax Apr 28, 2015
ee0a611
write better specs for Issue::PageView model
khoan Apr 28, 2015
2ce2383
[wip] better spec around video
khoan Apr 28, 2015
ade4494
workaround rspec-html-matchers translating html entity: & becomes &
khoan Apr 28, 2015
12e8f67
better spec around video iframe rendering in cover html
khoan Apr 29, 2015
0a39f1c
clean up html rendering spec
khoan Apr 29, 2015
54a1877
[wip] clean up spec
khoan Apr 29, 2015
400d4e2
correctly detect page cover
khoan Apr 29, 2015
37cab04
clean up logic around video node decoration
khoan Apr 30, 2015
88f6e3e
- move keyframe to root level
khoan May 1, 2015
be2ff4f
- use utf-8 encoding for node created by nokogiri
khoan May 1, 2015
fe410a7
- update markup for 2-cate-says-si/3
khoan May 1, 2015
71d7d01
add wrapper into page header
markgk629 May 1, 2015
9bc841c
merge conflicts
speedmax May 4, 2015
9a2cce4
- Update Local page to JSON to keep cover_url, thumb_url for rendering
speedmax May 4, 2015
7f953b6
Fixes summer beauty gift page
speedmax May 4, 2015
f8c63e1
set custom_html: true when using customized markup
khoan May 4, 2015
27ff1d8
fix with padding because box model collapses margin
khoan May 4, 2015
7ee5984
LocalIssue#paths use page path or handle
khoan May 4, 2015
ffe59f3
Update z-index for legend label for energy infographic
speedmax May 4, 2015
c167132
scope PageView to el when creating for cover, toc, and page
khoan May 5, 2015
a4f5bd5
- fix page dom_id selector
markgk629 May 5, 2015
e12a7c2
- map product summary to description in json before rendering mustache
khoan May 5, 2015
4e0fd62
map product description to summary for storage
khoan May 5, 2015
c48e197
activate custom_html
khoan May 6, 2015
5d4278b
activate custom html
khoan May 6, 2015
22edfe7
- fix broad horizons flinders range page image
markgk629 May 6, 2015
9079849
use set App.pages[path] to page json
khoan May 7, 2015
32549cf
missing url css for background
khoan May 7, 2015
f4cdd0b
encode ga params
markgk629 May 7, 2015
185cf39
rename overlay class to page-overlay
markgk629 May 7, 2015
de96dee
fixup custom html markup
khoan May 7, 2015
85f7d6e
fix typo
khoan May 8, 2015
0a0358f
fix broken style
khoan May 8, 2015
4976ff4
great-escape: fix page style
markgk629 May 8, 2015
af5e762
- make PageView model quacks more like Page model
khoan May 8, 2015
55a2b5d
denim: update custom.js
markgk629 May 8, 2015
a2a2f38
- update energy issue responsive styles
markgk629 May 11, 2015
723d5c0
- replace touch icon style to mixin
markgk629 May 11, 2015
b87de3f
update energy legend z-index
markgk629 May 11, 2015
9249f9c
update energy issue legend z-index
markgk629 May 11, 2015
bba74e7
fix energy issue missing background bug in mobile safari
markgk629 May 11, 2015
0b804ff
fix energy issue paginate split image problem
markgk629 May 12, 2015
1855cf0
minkpink/music: use original image
khoan May 12, 2015
e73f196
broad-horizons: minor update in page custom style
markgk629 May 12, 2015
24c0c2f
update energy & spring custom styles
markgk629 May 14, 2015
0cdf0f0
minor update on spread custom style
markgk629 May 14, 2015
56001fa
fix operabar escape-one mobile safari style problem
markgk629 May 14, 2015
b401171
Remove outdated vendor prefix
speedmax May 16, 2015
92864e3
Merge branch 'master' of github.com:issueapp/spring
speedmax May 16, 2015
2807a72
convert image aspect ratio to float
khoan May 20, 2015
7f2e5a3
- enable page view edit mode
markgk629 May 21, 2015
59fba69
use video tag in edit mode
markgk629 May 22, 2015
fe44ed2
Allow infographic to resize
speedmax May 22, 2015
0926d9e
energy: update turbine infographic responsive styles
markgk629 May 22, 2015
f12673f
add Activia Rebalance issue
markgk629 May 26, 2015
f0fa7e7
rebalance: add custom polaroid page
markgk629 May 27, 2015
8fa9e22
rebalance: update story three content
markgk629 May 27, 2015
1edad5b
rebalance: add story one custom slide up style
markgk629 May 27, 2015
2f6ac7b
add auto prefixer
markgk629 May 28, 2015
18d4d6e
rebalance: use flex box to style polaroids
markgk629 May 28, 2015
4d5b9e0
add david jones issue: reveal
markgk629 May 28, 2015
cff3cb9
reveal: add hotel & audi tt page
markgk629 May 28, 2015
24c042c
rebalance: update Gut Instinct custom page style
markgk629 May 28, 2015
c77b9cb
rebalance: fix custom page style problem
markgk629 May 28, 2015
7f4eed5
rebalance: update content & styles v1
markgk629 May 29, 2015
e6ac78b
- get page view spec passing
khoan May 29, 2015
86c1298
render geo tag with geo uri scheme
khoan May 31, 2015
b745090
use plural coordinates in geo tag
khoan Jun 1, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
13 changes: 2 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@
*.tmproj
tmtags

## EMACS
*~
\#*
.\#*

## VIM
*.swp

## PROJECT::GENERAL
.sass-cache
coverage
rdoc
pkg

## PROJECT::SPECIFIC
*.gem
.rvmrc
.bundle
tmp/*
tmp/
bin/
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
37 changes: 23 additions & 14 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
source 'https://rubygems.org'

gem "serve", "~> 1.5.1"
gem "serve" #, github: "danielstutzman/serve", require: false

# Use the edge instead:
# gem "serve", :git => "git://github.com/jlong/serve.git"
gem "sinatra"
gem "sinatra-contrib"

gem "sinatra", require: false
gem "sinatra-contrib", require: false, github: "ocapi/sinatra-contrib"
gem "activesupport", require: false

# # Use Compass and Sass
gem "coffee-script"
gem "sinatra-asset-pipeline"
gem "bourbon"
gem "hashie"
gem "coffee-script", require: false
gem "sinatra-asset-pipeline", require: false
gem "bourbon", require: false
gem "hashie", require: false
gem "mime-types", require: false
# gem "actionpack", "~> 3.2"
# # gem "railties", "~> 3.2"
gem "nokogiri"
#


# # Markdown and Textile
gem "mustache"
gem "rdiscount" # Markdown
gem "nokogiri", require: false
gem "mustache", require: false
gem "rdiscount", require: false
gem "fastimage", require: false
# Markdown
# gem "RedCloth" # Textile
#
# Other templating languages
Expand All @@ -29,9 +35,12 @@ gem "rdiscount" # Markdown
# gem "less"
#
group :development, :test do

gem "guard-jasmine"
gem "guard-pow"
gem "rspec", require: false
gem "guard-jasmine", require: false
gem "guard-pow", require: false
gem "awesome_print", require: false
gem 'rspec-html-matchers', require: false
# gem "jasminerice", github: "bradphelan/jasminerice"
# gem "jquery-rails"
end

143 changes: 94 additions & 49 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,62 +1,106 @@
GIT
remote: git://github.com/ocapi/sinatra-contrib.git
revision: 840eb8a3e7c9826f29be070307ca818a74d84f08
specs:
sinatra-contrib (1.4.2)
multi_json
rack-protection
rack-test
sinatra (~> 1.4.0)
tilt (~> 1.3)

GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.6)
i18n (~> 0.6)
activesupport (3.2.21)
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
backports (3.3.5)
addressable (2.3.8)
awesome_print (1.2.0)
bourbon (3.1.8)
sass (>= 3.2.0)
thor
childprocess (0.3.9)
celluloid (0.15.2)
timers (~> 1.1.0)
childprocess (0.4.0)
ffi (~> 1.0, >= 1.0.11)
coderay (1.0.9)
coderay (1.1.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
coffee-script-source (1.7.0)
diff-lcs (1.2.5)
execjs (2.0.2)
ffi (1.4.0)
guard (1.6.2)
listen (>= 0.6.0)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
terminal-table (>= 1.4.3)
thor (>= 0.14.6)
guard-jasmine (1.5.0)
fastimage (1.6.8)
addressable (~> 2.3, >= 2.3.5)
ffi (1.9.3)
formatador (0.2.4)
guard (2.3.0)
formatador (>= 0.2.4)
listen (~> 2.1)
lumberjack (~> 1.0)
pry (>= 0.9.12)
thor (>= 0.18.1)
guard-jasmine (1.19.0)
childprocess
guard (>= 1.1.0)
guard (>= 2.0.0)
multi_json
thor
guard-pow (1.0.0)
guard (>= 1.1)
hashie (1.2.0)
tilt
guard-pow (2.0.0)
guard (~> 2.0)
hashie (2.0.5)
hike (1.2.3)
i18n (0.6.5)
listen (0.7.3)
lumberjack (1.0.2)
method_source (0.8.1)
multi_json (1.8.2)
i18n (0.7.0)
listen (2.4.0)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.4)
method_source (0.8.2)
mime-types (2.1)
mini_portile (0.5.2)
multi_json (1.11.0)
mustache (0.99.5)
nokogiri (1.5.10)
pry (0.9.12)
coderay (~> 1.0.5)
nokogiri (1.6.1)
mini_portile (~> 0.5.0)
pry (0.9.12.6)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
rack (1.5.2)
rack-protection (1.5.1)
rack-protection (1.5.2)
rack
rack-test (0.6.1)
rack-test (0.6.2)
rack (>= 1.0)
rake (0.9.2.2)
rake (10.1.1)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
ffi (>= 0.5.0)
rdiscount (2.1.7)
sass (3.2.9)
serve (1.5.1)
activesupport (~> 3.0)
rspec (3.2.0)
rspec-core (~> 3.2.0)
rspec-expectations (~> 3.2.0)
rspec-mocks (~> 3.2.0)
rspec-core (3.2.0)
rspec-support (~> 3.2.0)
rspec-expectations (3.2.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.2.0)
rspec-html-matchers (0.7.0)
nokogiri (~> 1)
rspec (~> 3)
rspec-mocks (3.2.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.2.0)
rspec-support (3.2.1)
sass (3.2.14)
serve (1.5.2)
activesupport (~> 3.2.12)
i18n
rack (~> 1.2)
rack-test (~> 0.5)
tilt (~> 1.3)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
tilt (~> 1.3.3)
tzinfo
sinatra (1.4.4)
rack (~> 1.4)
Expand All @@ -70,15 +114,8 @@ GEM
sprockets
sprockets-helpers
sprockets-sass
sinatra-contrib (1.4.2)
backports (>= 2.0)
multi_json
rack-protection
rack-test
sinatra (~> 1.4.0)
tilt (~> 1.3)
slop (3.4.3)
sprockets (2.10.0)
slop (3.4.7)
sprockets (2.10.1)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
Expand All @@ -88,24 +125,32 @@ GEM
sprockets-sass (1.0.2)
sprockets (~> 2.0)
tilt (~> 1.1)
terminal-table (1.4.5)
thor (0.18.1)
tilt (1.4.1)
tzinfo (0.3.38)
thread_safe (0.3.5)
tilt (1.3.7)
timers (1.1.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
activesupport
awesome_print
bourbon
coffee-script
fastimage
guard-jasmine
guard-pow
hashie
mime-types
mustache
nokogiri
rdiscount
serve (~> 1.5.1)
rspec
rspec-html-matchers
serve
sinatra
sinatra-asset-pipeline
sinatra-contrib
sinatra-contrib!
Binary file added assets/images/embed-subscribe-50px
Binary file not shown.
90 changes: 45 additions & 45 deletions assets/javascripts/app/analytics.coffee
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
# build data user
unless window.client_geo_data
$.getJSON "http://smart-ip.net/geoip-json?callback=?", (data) ->
window.client_geo_data = data

if not window.issue_uid or document.cookie.match("issue_uid")
window.issue_uid = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15)
document.cookie = "issue_uid=" + issue_uid + "; expires=Fri, 31 Dec " + ((new Date()).getFullYear() + 99) + " 23:59:59 GMT; path=/"

# build environment
tracking_env = (action, title, env) ->
env or env = {}
client_geo_data = window.client_geo_data or {}
user = window.App and App.user and App.user.toJSON()
$.extend
action: action
page: env["page"] or $("link[rel=canonical]").attr("href") or window.location.toString()

# Title: explicity set or default to document.title
title: title or document.title

# Magazine: magazine handle
magazine: null

# Issue: issue handle (short name)
issue: null

# Content page id
page_id: $("[data-page-id]").attr("data-page-id")

# Author
author: null

# User
user: user

# client device
url: window.location.toString()
uid: issue_uid
referer: document.referrer
agent: navigator.userAgent
, env, client_geo_data

App.on "track", (action, title, data) ->
track_url = "//127.0.0.1:9200/analytics/events"
$.post track_url, JSON.stringify(tracking_env(action, title, data))
#unless window.client_geo_data
# $.getJSON "http://smart-ip.net/geoip-json?callback=?", (data) ->
# window.client_geo_data = data
#
#if not window.issue_uid or document.cookie.match("issue_uid")
# window.issue_uid = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15)
# document.cookie = "issue_uid=" + issue_uid + "; expires=Fri, 31 Dec " + ((new Date()).getFullYear() + 99) + " 23:59:59 GMT; path=/"
#
## build environment
#tracking_env = (action, title, env) ->
# env or env = {}
# client_geo_data = window.client_geo_data or {}
# user = window.App and App.user and App.user.toJSON()
# $.extend
# action: action
# page: env["page"] or $("link[rel=canonical]").attr("href") or window.location.toString()
#
# # Title: explicity set or default to document.title
# title: title or document.title
#
# # Magazine: magazine handle
# magazine: null
#
# # Issue: issue handle (short name)
# issue: null
#
# # Content page id
# page_id: $("[data-page-id]").attr("data-page-id")
#
# # Author
# author: null
#
# # User
# user: user
#
# # client device
# url: window.location.toString()
# uid: issue_uid
# referer: document.referrer
# agent: navigator.userAgent
# , env, client_geo_data
#
#App.on "track", (action, title, data) ->
# track_url = "//127.0.0.1:9200/analytics/events"
# $.post track_url, JSON.stringify(tracking_env(action, title, data))
3 changes: 3 additions & 0 deletions assets/javascripts/app/core.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

this.refresh()
this.bindObservers()
this.updateLayout()

this.trigger("loaded", document.title, url: window.location.toString())

Expand Down Expand Up @@ -79,6 +80,8 @@ Core = {
# Support & feature detection
support: {

embed: !!document.location.href.match(/\/embed\/|embed=1/)

standalone: !!window.navigator.standalone

touch: document.documentElement.hasOwnProperty("ontouchstart")
Expand Down
Loading