Commit a2f5866bdeeafac0cc90ade528515008d40dc167
1 parent
4afbf7b6
Added static map in case JS don't work
Showing
4 changed files
with
19 additions
and
4 deletions
Show diff stats
css/crep.css
img/.gitignore
img/Makefile
1 | GENIMG=lille1.png polytechlille.png | 1 | GENIMG=lille1.png polytechlille.png |
2 | CMPIMG=CREP-1.jpg CREP-2.jpg CREP-3.jpg CREP-4.jpg CREP-5.jpg | 2 | CMPIMG=CREP-1.jpg CREP-2.jpg CREP-3.jpg CREP-4.jpg CREP-5.jpg |
3 | 3 | ||
4 | -all: $(GENIMG) $(CMPIMG) mainBgPattern.png | 4 | +ALLGEN=$(GENIMG) $(CMPIMG) mainBgPattern.png polyMap.png |
5 | + | ||
6 | +all: $(ALLGEN) | ||
5 | 7 | ||
6 | mainBgPattern.png: | 8 | mainBgPattern.png: |
7 | wget http://subtlepatterns.com/patterns/low_contrast_linen.png -O $@ | 9 | wget http://subtlepatterns.com/patterns/low_contrast_linen.png -O $@ |
@@ -9,6 +11,10 @@ mainBgPattern.png: | @@ -9,6 +11,10 @@ mainBgPattern.png: | ||
9 | convert -channel B -evaluate multiply 1.2 $@ $@ | 11 | convert -channel B -evaluate multiply 1.2 $@ $@ |
10 | optipng -o7 $@ | 12 | optipng -o7 $@ |
11 | 13 | ||
14 | +polyMap.png: | ||
15 | + wget "https://maps.googleapis.com/maps/api/staticmap?center=50.6074998,3.1373338&zoom=16&size=640x400&scale=2&maptype=roadmap&markers=color:red%7Clabel:P%7C50.6074998,3.1373338" -O $@ | ||
16 | + optipng -o7 $@ | ||
17 | + | ||
12 | %.png: %.svg | 18 | %.png: %.svg |
13 | convert -background none $< $@ | 19 | convert -background none $< $@ |
14 | optipng -o7 $@ | 20 | optipng -o7 $@ |
@@ -17,4 +23,4 @@ mainBgPattern.png: | @@ -17,4 +23,4 @@ mainBgPattern.png: | ||
17 | convert -resize x1200 -strip -interlace Plane -gaussian-blur 0.05 -quality 90% $< $@ | 23 | convert -resize x1200 -strip -interlace Plane -gaussian-blur 0.05 -quality 90% $< $@ |
18 | 24 | ||
19 | clean: | 25 | clean: |
20 | - rm -rf $(GENIMG) $(CMPIMG) | 26 | + rm -rf $(ALLGEN) |
pages/contact.php
@@ -4,11 +4,14 @@ | @@ -4,11 +4,14 @@ | ||
4 | </div> | 4 | </div> |
5 | | 5 | |
6 | | 6 | |
7 | -<div id="map-canvas"></div> | 7 | +<div id="map-canvas"> |
8 | + <img src="img/polyMap.png"/> | ||
9 | +</div> | ||
8 | <script> | 10 | <script> |
9 | function initialize() | 11 | function initialize() |
10 | { | 12 | { |
11 | var mapCanvas = document.getElementById('map-canvas'); | 13 | var mapCanvas = document.getElementById('map-canvas'); |
14 | + mapCanvas.innerHTML = '' | ||
12 | var polytechPos = new google.maps.LatLng(50.6074998, 3.1373338); | 15 | var polytechPos = new google.maps.LatLng(50.6074998, 3.1373338); |
13 | var mapOptions = | 16 | var mapOptions = |
14 | { | 17 | { |