Skip to content

Commit

Permalink
Primera página
Browse files Browse the repository at this point in the history
  • Loading branch information
asalberceu committed Aug 7, 2013
1 parent b1f454a commit 8afcf40
Show file tree
Hide file tree
Showing 25 changed files with 11,325 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/index.html
29 changes: 29 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>catalogo patrimonio</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
26 changes: 26 additions & 0 deletions confirm-old.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Lugar registrado</title>
<link rel='stylesheet' href='stylesheets/registration.css' />
<script>
function index(){
window.location='registration.html';
}
</script>
</head>
<body>
<div id='masthead'>
<div id='header' class='limiter'>
<h1>Registro bienes de interés ambiental, cultural, histórico y etnográfico de Campo de Criptana</h1>
</div>
</div>

<div class='limiter'>
<h3>El lugar ha sido registrado, Gracias</h3>
<input type=button onClick="location.href='registration.html'" value='Registrar otro lugar' value='click here'>
<input type=button onClick="location.href='index.html'" value='Ir al mapa de lugares' value='click here'>
</div>
</body>
</html>
26 changes: 26 additions & 0 deletions confirm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Agresión registrada</title>
<link rel='stylesheet' href='stylesheets/registration.css' />
<script>
function index(){
window.location='registration.html';
}
</script>
</head>
<body>
<div id='masthead'>
<div id='header' class='limiter'>
<h1>Registro de agresiones ambientales en la provincia de Ciudad Real</h1>
</div>
</div>

<div class='limiter'>
<h3>La agresión ha sido registrada, Gracias</h3>
<input type=button onClick="location.href='registration.html'" value='Registrar otra agresión' value='click here'>
<input type=button onClick="location.href='index.html'" value='Ir al mapa de agresiones' value='click here'>
</div>
</body>
</html>
Binary file added img/feedback-point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo_ciudad_real_70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
135 changes: 135 additions & 0 deletions img/sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 113 additions & 0 deletions javascripts/Leaflet.fullscreen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
L.Control.Fullscreen = L.Control.extend({
options: {
position: 'topleft',
title: 'View Fullscreen'
},

onAdd: function (map) {
var container = L.DomUtil.create('div', 'leaflet-control-fullscreen leaflet-bar leaflet-control'),
link = L.DomUtil.create('a', 'leaflet-control-fullscreen-button leaflet-bar-part', container);

this._map = map;

link.href = '#';
link.title = this.options.title;

L.DomEvent.on(link, 'click', this._click, this);

return container;
},

_click: function (e) {
L.DomEvent.stopPropagation(e);
L.DomEvent.preventDefault(e);
this._map.toggleFullscreen();
}
});

L.Map.include({
isFullscreen: function () {
return this._isFullscreen;
},

toggleFullscreen: function () {
var container = this.getContainer();
if (this.isFullscreen()) {
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
} else {
L.DomUtil.removeClass(container, 'leaflet-pseudo-fullscreen');
this.invalidateSize();
this._isFullscreen = false;
this.fire('fullscreenchange');
}
} else {
if (container.requestFullscreen) {
container.requestFullscreen();
} else if (container.mozRequestFullScreen) {
container.mozRequestFullScreen();
} else if (container.webkitRequestFullscreen) {
container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
} else {
L.DomUtil.addClass(container, 'leaflet-pseudo-fullscreen');
this.invalidateSize();
this._isFullscreen = true;
this.fire('fullscreenchange');
}
}
},

_onFullscreenChange: function () {
var fullscreenElement =
document.fullscreenElement ||
document.mozFullScreenElement ||
document.webkitFullscreenElement;

if (fullscreenElement === this.getContainer()) {
this._isFullscreen = true;
this.fire('fullscreenchange');
} else if (this._isFullscreen) {
this._isFullscreen = false;
this.fire('fullscreenchange');
}
}
});

L.Map.mergeOptions({
fullscreenControl: false
});

L.Map.addInitHook(function () {
if (this.options.fullscreenControl) {
this.fullscreenControl = new L.Control.Fullscreen();
this.addControl(this.fullscreenControl);
}

var fullscreenchange;

if ('onfullscreenchange' in document) {
fullscreenchange = 'fullscreenchange';
} else if ('onmozfullscreenchange' in document) {
fullscreenchange = 'mozfullscreenchange';
} else if ('onwebkitfullscreenchange' in document) {
fullscreenchange = 'webkitfullscreenchange';
}

if (fullscreenchange) {
this.on('load', function () {
L.DomEvent.on(document, fullscreenchange, this._onFullscreenChange, this);
});

this.on('unload', function () {
L.DomEvent.off(document, fullscreenchange, this._onFullscreenChange);
});
}
});

L.control.fullscreen = function (options) {
return new L.Control.Fullscreen(options);
};
Loading

0 comments on commit 8afcf40

Please sign in to comment.