diff --git a/divina_invasione/beginning.html b/divina_invasione/beginning.html new file mode 100644 index 0000000..8f24b3a --- /dev/null +++ b/divina_invasione/beginning.html @@ -0,0 +1,103 @@ + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/divina_invasione/divina invasione.txt b/divina_invasione/divina invasione.txt new file mode 100644 index 0000000..ac85a8b --- /dev/null +++ b/divina_invasione/divina invasione.txt @@ -0,0 +1,15 @@ +Your realm ends here and mine begins. +From now on the laws are mine. +So be it, + + + +He sat under palm trees and knew that he had entered the Garden. + +This was his own realm restored. + +There is nothing wrong with this place, is there? Does it lack? You know it doesn't lack; it is Paradise. + +Is the Paradise that you created and I will show you +something better. + diff --git a/divina_invasione/example.html b/divina_invasione/example.html new file mode 100644 index 0000000..2891369 --- /dev/null +++ b/divina_invasione/example.html @@ -0,0 +1,48 @@ + + + + + + + + + + + + diff --git a/divina_invasione/index.html b/divina_invasione/index.html new file mode 100644 index 0000000..adee73c --- /dev/null +++ b/divina_invasione/index.html @@ -0,0 +1,51 @@ + + + + + + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/divina_invasione/main.js b/divina_invasione/main.js new file mode 100644 index 0000000..def7f84 --- /dev/null +++ b/divina_invasione/main.js @@ -0,0 +1,74 @@ +alert('Your realm ends here and mine begins.'); + +var mymap = L.map('mapid', { + maxZoom: 2, + minZoom: 0, + zoom: 0, + crs: L.CRS.Simple, + center: new L.LatLng(-100,300), + + }); //.setView([0, 0], 25); + + // L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', { + // attribution: 'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Mapbox', + // maxZoom: 100, + // id: 'mapbox.streets', + // accessToken: 'your.mapbox.access.token' + // }).addTo(mymap); + + L.GridLayer.DebugCoords = L.GridLayer.extend({ + createTile: function (coords) { + var tile = document.createElement('div'); + var tileSize = this.getTileSize(); + tile.setAttribute('width', '500px'); + tile.setAttribute('height', tileSize.y); + var openpop = false; + + // setTimeout(function () { + // done(null, tile); // Syntax is 'done(error, tile)' + // }, 500 + Math.random() * 1500); + + + if (coords.x == 0 && coords.y == 0){ + tile.innerHTML = '

'+ text2[coords.z] + '

' ; + }else{}; + + if (coords.z == 2 ){ + openpop = true; + //}else if (coords.z == 2 ){popWindow2(); + }else{}; + + + + if (openpop == true) { + setTimeout(function() { + // var myWindow = window.open("", "MyText", "height=230, width=390, left=100, top=100, resizable=no, scrollbars=no, toolbar=no, menubar=no, directories=no, status=yes"); + // myWindow.document.write(''); + // myWindow.document.write('') + // myWindow.document.write('

The subject of this project is not the space exactly, but rather what there is round about or inside it. To start with, then, there is already very much: nothingness, the impalpable, the virtually immaterial; extension, the external, what is external to us, what we move about in the midst of, our ambient milieu, the void around us.

'); + // myWindow.document.write('') + setTimeout(function() {document.getElementById('bttn').innerHTML = 'Show me';}, 1000); + setTimeout(function() {document.getElementById('bttn').innerHTML = 'Show me';}, 1100); + setTimeout(function() {document.getElementById('bttn').innerHTML = 'Show me';}, 1200); + setTimeout(function() {document.getElementById('bttn').innerHTML = 'Show me';}, 1300); + setTimeout(function() {document.getElementById('bttn').innerHTML = 'Show me';}, 1400); + setTimeout(function() {document.getElementById('bttn').innerHTML = 'Show me';}, 1500); + setTimeout(function() {document.getElementById('bttn').innerHTML = 'Show me';}, 1600); + + + }, 1000); + + }else{}; + + return tile; + } + }); + + function closeOpen(){ + + } + L.gridLayer.debugCoords = function(opts) { + return new L.GridLayer.DebugCoords(opts); + }; + + mymap.addLayer( L.gridLayer.debugCoords() ); \ No newline at end of file diff --git a/divina_invasione/text.js b/divina_invasione/text.js new file mode 100644 index 0000000..5e4f738 --- /dev/null +++ b/divina_invasione/text.js @@ -0,0 +1,3 @@ +var text= ["Your realm ends here and mine begins.", +"From now on the laws are mine.", +"So be it,",]; \ No newline at end of file diff --git a/divina_invasione/text2.js b/divina_invasione/text2.js new file mode 100644 index 0000000..cc32b88 --- /dev/null +++ b/divina_invasione/text2.js @@ -0,0 +1,3 @@ +var text2 = ["Good morning,", +"Do you know what does it mean?", +"Then we shall begin",]; \ No newline at end of file