On Thu, Nov 16, 2017 at 7:36 PM, Craig Russell <apache....@gmail.com> wrote: > > I'd like to get as much information about the invitee as is possible from the > browser. I understand we can get IP address. Can we get country, city, GPS?
There appears to be a tool named 'geoiplookup' that can be installed on macs with brew and on ubuntu with apt-get. I don't know anything about it. > It would be nice to continue to develop this application even after the > multi-page form with email is complete. Can we perhaps use a url like > whimsy.apache.org/project/icla?mock=true to use the mock-send code, but if > mock=true is omitted use the email route? I'm afraid I don't have the skill > set to do this part without some guidance. the sinatrarb site appears to be down at the moment, otherwise I would have provided a canonical link to the documentation. The TL;DR is to go into www/project/icla/main.rb, and somewhere within the get '/invite' do... end block, add @mock=params['mock']. Then go into www/project/icla/views/app.html.rb, and add ", mock: @mock" to the line near the bottom that starts with _Main. Then go into www/project/icla/views/main.js, and add ", mock: @@mock" to the call to Vue.createElement. At this point, you should be able to refer to the value of @@mock from any of the files within the www/project/icla/views/pages directory. > Craig L Russell > Secretary, Apache Software Foundation > c...@apache.org http://db.apache.org/jdo - Sam Ruby P.S. Yes, the first two additions have only one @, and the last two have two @@ signs.