Delete unused javascript artifacts related to google maps
diff --git a/website/layouts/header.html b/website/layouts/header.html
index 00f34fa..4f6b5cd 100644
--- a/website/layouts/header.html
+++ b/website/layouts/header.html
@@ -37,177 +37,6 @@
<link href="https://fonts.googleapis.com/css?family=Open+Sans:200,400,500,300,600,800,700,400italic,600italic,700italic,800italic,300italic" rel="stylesheet" type="text/css">
<link href="/css/font-awesome.min.css" rel="stylesheet" type='text/css'>
- <% if @community == true %>
- <script type="text/javascript"
- src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBYSxyIKS22zC4wSLFXZGR8QKXbGWLFwYw&sensor=false">
- </script>
- <script type="text/javascript">
-
- var points = [
- new google.maps.LatLng(-33.8674869,151.2069902),
- new google.maps.LatLng(40.2338438,-111.6585337),
- new google.maps.LatLng(37.6909682,-122.3107517),
- new google.maps.LatLng(-37.6825027,176.1880232),
- new google.maps.LatLng(-0.023559,37.906193),
- new google.maps.LatLng(41.00527,28.97696),
- new google.maps.LatLng(47.1569444,27.5902778),
- new google.maps.LatLng(49.261226,-123.1139268),
- new google.maps.LatLng(55.378051,-3.435973),
- new google.maps.LatLng(30.3321838,-81.65565099999999),
- new google.maps.LatLng(30.267153,-97.7430608),
- new google.maps.LatLng(-14.235004,-51.92528),
- new google.maps.LatLng(41.76371109999999,-72.6850932),
- new google.maps.LatLng(53.3498053,-6.2603097),
- new google.maps.LatLng(-37.814107,144.96328),
- new google.maps.LatLng(26.820553,30.802498),
- new google.maps.LatLng(34.0522342,-118.2436849),
- new google.maps.LatLng(37.566535,126.9779692),
- new google.maps.LatLng(7.873053999999999,80.77179699999999),
- new google.maps.LatLng(39.737567,-104.9847179),
- new google.maps.LatLng(52.9399159,-73.5491361),
- new google.maps.LatLng(40.7143528,-74.00597309999999),
- new google.maps.LatLng(44.9374831,-93.20099979999999),
- new google.maps.LatLng(38.963745,35.243322),
- new google.maps.LatLng(35.7795897,-78.6381787),
- new google.maps.LatLng(35.907757,127.766922),
- new google.maps.LatLng(-6.2689913,106.8060388),
- new google.maps.LatLng(27.3364347,-82.53065269999999),
- new google.maps.LatLng(44.494887,11.3426163),
- new google.maps.LatLng(39.952335,-75.16378900000001),
- new google.maps.LatLng(37.09024,-95.712891),
- new google.maps.LatLng(40.5852602,-105.084423),
- new google.maps.LatLng(43.653226,-79.3831843),
- new google.maps.LatLng(47.6062095,-122.3320708),
- new google.maps.LatLng(31.046051,34.851612),
- new google.maps.LatLng(51.41233,-0.300689),
- new google.maps.LatLng(39.4699075,-0.3762881),
- new google.maps.LatLng(51.51121389999999,-0.1198244),
- new google.maps.LatLng(42.3556899,-83.361853),
- new google.maps.LatLng(33.4483771,-112.0740373),
- new google.maps.LatLng(45.5234515,-122.6762071),
- new google.maps.LatLng(43.0730517,-89.4012302),
- new google.maps.LatLng(36.1031378,-80.202394),
- new google.maps.LatLng(37.7749295,-122.4194155),
- new google.maps.LatLng(5.263234100000001,100.4846227),
- new google.maps.LatLng(35.5950581,-82.5514869),
- new google.maps.LatLng(35.86166,104.195397),
- new google.maps.LatLng(34.4208305,-119.6981901),
- new google.maps.LatLng(1.352083,103.819836),
- new google.maps.LatLng(36.8507689,-76.28587259999999),
- new google.maps.LatLng(22.396428,114.109497),
- new google.maps.LatLng(48.856614,2.3522219),
- new google.maps.LatLng(40.4167754,-3.7037902),
- new google.maps.LatLng(18.5204303,73.8567437),
- new google.maps.LatLng(36.1666667,-86.7833333),
- new google.maps.LatLng(53.3498053,-6.2603097),
- new google.maps.LatLng(26.0993883,-80.1343301),
- new google.maps.LatLng(42.331427,-83.0457538),
- new google.maps.LatLng(37.82206000000001,-122.272437),
- new google.maps.LatLng(30.42130899999999,-87.2169149),
- new google.maps.LatLng(44.4325,26.1038889),
- new google.maps.LatLng(41.0700485,-81.49516210000002),
- new google.maps.LatLng(12.9715987,77.5945627),
- new google.maps.LatLng(53.41291,-8.24389),
- new google.maps.LatLng(34.0583995,-106.8914159),
- new google.maps.LatLng(-9.189967,-75.015152),
- new google.maps.LatLng(55.6760968,12.5683371),
- new google.maps.LatLng(53.9807737,-6.7148821),
- new google.maps.LatLng(31.230416,121.473701),
- new google.maps.LatLng(33.7489954,-84.3879824),
- new google.maps.LatLng(8.4874949,76.948623),
- new google.maps.LatLng(13.0524139,80.25082460000002),
- new google.maps.LatLng(28.0836269,-80.60810889999999),
- new google.maps.LatLng(39.0457549,-76.64127119999999),
- new google.maps.LatLng(17.385044,78.486671),
- new google.maps.LatLng(-23.5489433,-46.6388182),
- new google.maps.LatLng(52.09179,5.114569899999999),
- new google.maps.LatLng(19.2667,76.7833),
- new google.maps.LatLng(19.0759837,72.8776559),
- new google.maps.LatLng(12.9715987,77.5945627),
- new google.maps.LatLng(41.1566892,-8.6239254),
- new google.maps.LatLng(39.90403,116.407526),
- new google.maps.LatLng(42.3584308,-71.0597732),
- new google.maps.LatLng(32.725409,-97.3208496),
- new google.maps.LatLng(39.074208,21.824312),
- new google.maps.LatLng(10.066049,123.538599),
- new google.maps.LatLng(37.42410599999999,-122.1660756),
- new google.maps.LatLng(36.204824,138.252924)
- ];
-
- var map;
- var markers = [];
- var iterator = 0;
- var dropped = false;
- var recentered = false;
-
- function initialize() {
- var mapOptions = {
- center: new google.maps.LatLng(0,0),
- //draggable: false,
- //zoomControl: false,
- scrollwheel: false,
- streetViewControl: false,
- mapTypeControl: false,
- panControl: false,
- //disableDoubleClickZoom: true,
- zoom: 2,
- //disableDefaultUI: true,
- mapTypeId: google.maps.MapTypeId.ROADMAP
- };
- map = new google.maps.Map(document.getElementById("map-canvas"),
- mapOptions);
-
- google.maps.event.addDomListener(map, 'idle', function() {
- if (recentered == false) {
- map.setCenter(new google.maps.LatLng(20,0));
- recentered = true;
- }
- });
-
- var bounds = new google.maps.LatLngBounds();
-
- // Extend bounds with each point
- for (var i = 0; i < points.length; i++) {
- bounds.extend(points[i]);
- }
- map.fitBounds(bounds);
-
- if (document.hasFocus()) {
- dropped = true;
- drop();
- }
-
-
- }
- function drop() {
- dropped = true;
- for (var i = 0; i < points.length; i++) {
- setTimeout(function() {
- addMarker();
- }, i * 50);
- }
- }
-
- function addMarker() {
- markers.push(new google.maps.Marker({
- position: points[iterator],
- map: map,
- draggable: false,
- animation: google.maps.Animation.DROP
- }));
- iterator++;
- }
-
- google.maps.event.addDomListener(window, 'load', initialize);
-
- window.onfocus = function () {
- if (dropped == false) {
- drop();
- }
- };
- </script>
- <% end %>
-
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
diff --git a/website/utilities/map-markers.rb b/website/utilities/map-markers.rb
deleted file mode 100644
index 19e2306..0000000
--- a/website/utilities/map-markers.rb
+++ /dev/null
@@ -1,75 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-require 'rest_client'
-require 'csv'
-require 'json/ext'
-
-rapportive_token = "BAgiX3BYOTZUVXlNalExclVBNWIyazVNcjBxK3UzdURNUnovTXVTamRZVTVmRmNsakw5WGZrUHJIYXFRaVV2YkRYaGctLWNFQjJLUmZNam05cjdmZDEzVGFPL3c9PQ==--71d66f8c1b8eafb0a8f31691b55b95fbce58857a"
-rapportive_qs = "?viewport_height=325&view_type=cv&user_email=tim.anglade%40gmail.com&client_version=ChromeExtension+rapportive+1.4.1&client_stamp=1382671311"
-
-places = {}
-
-# CSV.foreach("usergrid.csv") do |row|
-# begin
-# next if row[0].start_with?('Members ')
-# next if row[0].start_with?('Email ')
-# email = row[0]
-# #puts email
-
-# response = RestClient.get "http://profiles.rapportive.com/contacts/email/#{URI.escape(email)}#{rapportive_qs}", {"user-agent" => "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36", "origin" => "https://mail.google.com", "referer" => "https://mail.google.com/mail/u/0/", "x-session-token" => rapportive_token}
-# rapportive = JSON.parse(response.to_str)
-
-# next unless rapportive['contact']['location']
-# location = rapportive['contact']['location'].gsub(/\sBay\sArea$/,'').gsub(' Area,',',').gsub(/\sArea$/,'').gsub(/^Greater\s/,'')
-
-# puts location
-
-# places[location] ? places[location] += 1 : places[location] = 1
-# rescue => e
-# puts e
-# sleep 10
-# retry
-# end
-# end
-
-# places.each do |place, count|
-# puts "\"#{place}\",#{count}"
-# end
-
-places2 = {"Sydney, Australia"=>2, "Provo, Utah"=>1, "San Francisco Bay"=>27, "Bay of Plenty, New Zealand"=>1, "Kenya"=>1, "Istanbul, Turkey"=>2, "Iasi County, Romania"=>1, "Vancouver, Canada"=>2, "United Kingdom"=>3, "Jacksonville, Florida"=>1, "Austin, Texas"=>6, "Brazil"=>1, "Hartford, Connecticut"=>2, "Dublin"=>1, "Melbourne, Australia"=>1, "Egypt"=>1, "Los Angeles"=>7, "Seoul, Korea"=>1, "Sri Lanka"=>2, "Denver"=>6, "Quebec, Canada"=>1, "New York City"=>5, "Minneapolis-St. Paul"=>1, "Turkey"=>2, "Raleigh-Durham, North Carolina"=>3, "Korea"=>4, "Jakarta Selatan"=>1, "Sarasota, Florida"=>1, "Bologna, Italy"=>1, "Philadelphia"=>2, "United States"=>1, "Fort Collins, CO"=>2, "Toronto, Canada"=>2, "Seattle"=>6, "Israel"=>1, "Kingston upon Thames, United Kingdom"=>1, "Valencia, Spain"=>1, "London, United Kingdom"=>2, "Washington D.C. Metro"=>1, "Phoenix, Arizona"=>2, "Portland, Oregon"=>1, "Madison, Wisconsin"=>1, "Greensboro/Winston-Salem, North Carolina"=>1, "San Francisco, CA"=>1, "Penang, Malaysia"=>1, "Asheville, North Carolina"=>1, "China"=>1, "Santa Barbara, California"=>1, "Singapore"=>2, "Norfolk, Virginia"=>1, "Hong Kong"=>3, "Paris, France"=>1, "Madrid, Spain"=>1, "Pune, India"=>3, "nashville, TN"=>1, "Dublin, Ireland"=>1, "Miami/Fort Lauderdale"=>1, "Detroit"=>1, "720 32nd St, Oakland, CA 94609"=>1, "Pensacola, Florida"=>1, "Bucharest, Romania"=>1, "Cleveland/Akron, Ohio"=>1, "Bengaluru, India"=>7, "Ireland"=>1, "Socorro, New Mexico"=>1, "Peru"=>1, "Copenhagen, Denmark"=>1, "Somewhere"=>1, "Istanbul, Turkey"=>1, "Shanghai City, China"=>1, "Atlanta"=>2, "Thiruvananthapuram, India"=>1, "Chennai, Tamil Nadu"=>1, "Melbourne, Florida"=>1, "Maryland"=>1, "Hyderabad, India"=>1, "Sao Paulo, Brazil"=>1, "Utrecht, Netherlands"=>1, "Parbhani, India"=>1, "Mumbai, India"=>1, "Bangalore, Karnataka, India"=>1, "Porto, Portugal"=>1, "Beijing, China"=>1, "Boston"=>1, "Dallas/Fort Worth"=>1, "Greece"=>1, "Mountains"=>1, "Stanford, California"=>1, "Japan"=>1}
-
-countries = {}
-
-places2.each do |place, count|
- begin
- response = RestClient.get "http://maps.googleapis.com/maps/api/geocode/json?address=#{URI.escape(place)}&sensor=false"
- j = JSON.parse(response.to_str)
- geocoding = j["results"][0]["geometry"]
- j["results"][0]["address_components"].each do |c|
- next unless c["types"].include?("country")
- countries[c["short_name"]] ? countries[c["short_name"]] += 1 : countries[c["short_name"]] = 1
- end
-
- #puts "new google.maps.Marker({\nmap:map,\nanimation: google.maps.Animation.DROP,\nposition: new google.maps.LatLng(#{geocoding['location']['lat']},#{geocoding['location']['lng']})\n});"
- sleep 0.1
- rescue => e
- puts e
- end
-end
-
-puts "Found #{countries.size} countries"
diff --git a/website/utilities/markers.txt b/website/utilities/markers.txt
deleted file mode 100644
index 994555d..0000000
--- a/website/utilities/markers.txt
+++ /dev/null
@@ -1,440 +0,0 @@
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(-33.8674869,151.2069902)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(40.2338438,-111.6585337)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(37.6909682,-122.3107517)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(-37.6825027,176.1880232)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(-0.023559,37.906193)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(41.00527,28.97696)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(47.1569444,27.5902778)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(49.261226,-123.1139268)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(55.378051,-3.435973)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(30.3321838,-81.65565099999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(30.267153,-97.7430608)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(-14.235004,-51.92528)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(41.76371109999999,-72.6850932)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(53.3498053,-6.2603097)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(-37.814107,144.96328)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(26.820553,30.802498)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(34.0522342,-118.2436849)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(37.566535,126.9779692)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(7.873053999999999,80.77179699999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(39.737567,-104.9847179)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(52.9399159,-73.5491361)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(40.7143528,-74.00597309999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(44.9374831,-93.20099979999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(38.963745,35.243322)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(35.7795897,-78.6381787)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(35.907757,127.766922)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(-6.2689913,106.8060388)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(27.3364347,-82.53065269999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(44.494887,11.3426163)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(39.952335,-75.16378900000001)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(37.09024,-95.712891)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(40.5852602,-105.084423)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(43.653226,-79.3831843)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(47.6062095,-122.3320708)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(31.046051,34.851612)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(51.41233,-0.300689)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(39.4699075,-0.3762881)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(51.51121389999999,-0.1198244)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(42.3556899,-83.361853)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(33.4483771,-112.0740373)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(45.5234515,-122.6762071)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(43.0730517,-89.4012302)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(36.1031378,-80.202394)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(37.7749295,-122.4194155)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(5.263234100000001,100.4846227)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(35.5950581,-82.5514869)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(35.86166,104.195397)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(34.4208305,-119.6981901)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(1.352083,103.819836)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(36.8507689,-76.28587259999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(22.396428,114.109497)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(48.856614,2.3522219)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(40.4167754,-3.7037902)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(18.5204303,73.8567437)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(36.1666667,-86.7833333)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(53.3498053,-6.2603097)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(26.0993883,-80.1343301)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(42.331427,-83.0457538)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(37.82206000000001,-122.272437)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(30.42130899999999,-87.2169149)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(44.4325,26.1038889)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(41.0700485,-81.49516210000002)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(12.9715987,77.5945627)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(53.41291,-8.24389)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(34.0583995,-106.8914159)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(-9.189967,-75.015152)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(55.6760968,12.5683371)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(53.9807737,-6.7148821)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(31.230416,121.473701)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(33.7489954,-84.3879824)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(8.4874949,76.948623)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(13.0524139,80.25082460000002)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(28.0836269,-80.60810889999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(39.0457549,-76.64127119999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(17.385044,78.486671)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(-23.5489433,-46.6388182)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(52.09179,5.114569899999999)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(19.2667,76.7833)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(19.0759837,72.8776559)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(12.9715987,77.5945627)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(41.1566892,-8.6239254)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(39.90403,116.407526)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(42.3584308,-71.0597732)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(32.725409,-97.3208496)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(39.074208,21.824312)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(10.066049,123.538599)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(37.42410599999999,-122.1660756)
-});
-new google.maps.Marker({
-map:map,
-animation: google.maps.Animation.DROP,
- position: new google.maps.LatLng(36.204824,138.252924)
-});
diff --git a/website/utilities/snapshot-apigee.rb b/website/utilities/snapshot-apigee.rb
deleted file mode 100644
index 4adf0ca..0000000
--- a/website/utilities/snapshot-apigee.rb
+++ /dev/null
@@ -1,88 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-require 'rubygems'
-require 'mechanize'
-require 'anemone'
-require 'pandoc-ruby'
-# require 'json/ext'
-
-TO_REMOVE = [ 'div.toc-filter-back-to-top',
- '.rate-yesno-title',
- 'colgroup',
- 'div.rate-widget',
- 'div.toc-filter.toc-filter-bullet' ]
-
-puts "Crawling..."
-
-urls = []
-Anemone.crawl("http://apigee.com/docs/app_services", :skip_query_strings => true) do |anemone|
- # anemone.on_every_page {|page| puts page.url}
- # anemone.skip_links_like(/https?\:\/\/apigee.com\/docs\/(comment|node|api-platform|console|ja|enterprise|consoletogo)/)
- anemone.focus_crawl { |page| page.links.select{|l| l.to_s.match(/https?\:\/\/apigee.com\/docs\/(app-services|geode)\/content/) } }
- anemone.on_pages_like(/https?\:\/\/apigee.com\/docs\/(app-services|geode)\/content/) do |page|
- urls.push page.url
- # puts "Found #{page.url}"
- end
- # anemone.after_crawl { }
-end
-
-urls = urls.compact.map{|u| u.to_s}.uniq.sort
-
-puts "Found #{urls.size} documentation articles"
-puts urls.join("\n")
-gets
-
-a = Mechanize.new { |agent|
- agent.user_agent_alias = 'Mac Safari'
-}
-
-urls.each do |url|
- name = url.split('/')[-1]
- puts "Processing #{name}"
- begin
- a.get(url) do |article|
- # title = article.search('h1').first
- body = article.search('section#block-system-main>div.node>div.field-name-body').first
- next if body.nil?
- # body.children.first.add_previous_sibling(title)
- # body.search('br').each {|l| l.remove}
- body.search(TO_REMOVE.join(', ')).each {|l| l.remove}
- body.search('div#collapse').each do |div|
- div.add_next_sibling '<a id="'+div.attributes['id'].value+'"></a>'
- div.remove
- end
- body.search('h2').each {|h| h.remove_attribute('class')}
- body.search('*').each{|n| n.remove_attribute('style')}
- body.search("a").each do |link|
- begin
- link.attributes["href"].value = link.attributes["href"].value.gsub(/^\/docs\/app-services\/content\//,'/')
- rescue
- end
- end
- markdown = PandocRuby.convert(body, :from => :html, :to => :markdown)
- front_matter = "---\ntitle: #{title.inner_html.gsub(':',' - ')}\ncategory: \nlayout: article\n---\n\n"
- markdown.gsub!('Apigee App Services', 'Apache Usergrid')
- markdown.gsub!('App Services', 'Apache Usergrid')
- markdown.insert(0,front_matter)
- today = Time.new.strftime('%Y-%m-%d')
- File.open("../content/docs/#{today}-#{name}.md", 'w') {|f| f.write(markdown) }
- end
- rescue Exception => e
- puts e
- end
-end