incandenza 3 years ago
parent
commit
b733030535
7 changed files with 194 additions and 47 deletions
  1. 0 0
      asset/i_FA_48.png
  2. 0 0
      asset/i_FI_48.png
  3. 0 0
      asset/i_FL_48.png
  4. 0 0
      asset/i_UD_48.png
  5. 182 36
      asset/pois.js
  6. 8 8
      asset/river.html
  7. 4 3
      asset/udatinos.js

+ 0 - 0
asset/i_FF_48.png → asset/i_FA_48.png


+ 0 - 0
asset/i_PR_48.png → asset/i_FI_48.png


+ 0 - 0
asset/i_ST_48.png → asset/i_FL_48.png


+ 0 - 0
asset/i_AS_48.png → asset/i_UD_48.png


+ 182 - 36
asset/pois.js

@@ -37,12 +37,16 @@ var pois=[];
 
 
 var poi=Object.create(poiAlpha);
+//-----------
+// FIUME
+//-----------
+ 
     //0
     poi.x = 346;
     poi.y = 332;
     poi.id = "First One";
     poi.type = 'I'; //looking for "asset/I_0.jpg"
-    poi.cat = 'FF'
+    poi.cat = 'FI'
     pois.push(poi);
 
     //1
@@ -51,7 +55,7 @@ var poi=Object.create(poiAlpha);
     poi.y= 432;
     poi.id="Two";
     poi.type = 'V'; //looking for "asset/V_1.mp4"
-    poi.cat = 'AS'
+    poi.cat = 'FI'
     pois.push(poi);
 
     //2
@@ -60,7 +64,7 @@ var poi=Object.create(poiAlpha);
     poi.y= 402;
     poi.id="Two";
     poi.type = 'T'; //looking for "asset/T_2.html"
-    poi.cat = 'PR'
+    poi.cat = 'FI'
     pois.push(poi);
     
     //3
@@ -69,7 +73,7 @@ var poi=Object.create(poiAlpha);
     poi.y = 532;
     poi.id = "3";
     poi.type = 'I'; 
-    poi.cat = 'FF'
+    poi.cat = 'FI'
     pois.push(poi);
 
     //4
@@ -78,87 +82,229 @@ var poi=Object.create(poiAlpha);
     poi.y = 532;
     poi.id = "4";
     poi.type = 'I'; 
-    poi.cat = 'FF'
+    poi.cat = 'FI'
     pois.push(poi);
+
+//-----------
+// FLORA
+//-----------
     //5
     poi=Object.create(poiAlpha);
-    poi.x = 412;
-    poi.y = 605;
     poi.id = "5";
     poi.type = 'I'; 
-    poi.cat = 'FF'
+    poi.cat = 'FL'
     pois.push(poi);
     //6
     poi=Object.create(poiAlpha);
-    poi.x = 626;
-    poi.y = 132;
     poi.id = "6";
     poi.type = 'I'; 
-    poi.cat = 'FF'
+    poi.cat = 'FL'
     pois.push(poi);
     //7
     poi=Object.create(poiAlpha);
-    poi.x = 211;
-    poi.y = 483;
     poi.id = "7";
     poi.type = 'I'; 
-    poi.cat = 'FF'
+    poi.cat = 'FL'
     pois.push(poi);
     //8
     poi=Object.create(poiAlpha);
-    poi.x = 599;
-    poi.y = 191;
     poi.id = "8";
     poi.type = 'I'; 
-    poi.cat = 'FF'
+    poi.cat = 'FL'
     pois.push(poi);
     //9
     poi=Object.create(poiAlpha);
-    poi.x = 376;
-    poi.y = 500;
     poi.id = "9";
     poi.type = 'I'; 
-    poi.cat = 'FF'
+    poi.cat = 'FL'
     pois.push(poi);
-
     //10
     poi=Object.create(poiAlpha);
-    poi.x = 876;
-    poi.y = 500;
     poi.id = "10";
     poi.type = 'V'; 
-    poi.cat = 'AS'
+    poi.cat = 'FL'
     pois.push(poi);
     //11
     poi=Object.create(poiAlpha);
-    poi.x = 816;
-    poi.y = 600;
     poi.id = "11";
     poi.type = 'V'; 
-    poi.cat = 'AS'
+    poi.cat = 'FL'
     pois.push(poi);
     //12
     poi=Object.create(poiAlpha);
-    poi.x = 912;
-    poi.y = 100;
     poi.id = "12";
     poi.type = 'I'; 
-    poi.cat = 'AS'
+    poi.cat = 'FL'
     pois.push(poi);
     //13
     poi=Object.create(poiAlpha);
-    poi.x = 877;
-    poi.y = 432;
     poi.id = "13";
     poi.type = 'V'; 
-    poi.cat = 'AS'
+    poi.cat = 'FL'
     pois.push(poi);
     //14
     poi=Object.create(poiAlpha);
-    poi.x = 876;
-    poi.y = 599;
     poi.id = "14";
     poi.type = 'T'; 
-    poi.cat = 'AS'
+    poi.cat = 'FL'
+    pois.push(poi);
+
+
+//-----------
+// FAUNA 
+//-----------
+    //15
+    poi=Object.create(poiAlpha);
+    poi.id = "5";
+    poi.type = 'I'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //16
+    poi=Object.create(poiAlpha);
+    poi.id = "6";
+    poi.type = 'I'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //17
+    poi=Object.create(poiAlpha);
+    poi.id = "7";
+    poi.type = 'I'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //18
+    poi=Object.create(poiAlpha);
+    poi.id = "8";
+    poi.type = 'I'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //19
+    poi=Object.create(poiAlpha);
+    poi.id = "9";
+    poi.type = 'I'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //20
+    poi=Object.create(poiAlpha);
+    poi.id = "10";
+    poi.type = 'V'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //21
+    poi=Object.create(poiAlpha);
+    poi.id = "11";
+    poi.type = 'V'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //22
+    poi=Object.create(poiAlpha);
+    poi.id = "12";
+    poi.type = 'I'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //23
+    poi=Object.create(poiAlpha);
+    poi.id = "13";
+    poi.type = 'V'; 
+    poi.cat = 'FA'
+    pois.push(poi);
+    //24
+    poi=Object.create(poiAlpha);
+    poi.id = "14";
+    poi.type = 'T'; 
+    poi.cat = 'FA'
     pois.push(poi);
 
+//-----------
+// UDATINOS 
+//-----------
+ 
+    //25
+    poi=Object.create(poiAlpha);
+    poi.x = 1146;
+    poi.y = 543;
+    poi.id = "First One";
+    poi.type = 'I'; //looking for "asset/I_0.jpg"
+    poi.cat = 'UD'
+    pois.push(poi);
+
+    //26
+    poi=Object.create(poiAlpha);
+    poi.x= 789;
+    poi.y= 100;
+    poi.id="Two";
+    poi.type = 'V'; //looking for "asset/V_1.mp4"
+    poi.cat = 'UD'
+    pois.push(poi);
+
+    //27
+    poi=Object.create(poiAlpha);
+    poi.x= 1053;
+    poi.y= 438;
+    poi.id="Two";
+    poi.type = 'T'; //looking for "asset/T_2.html"
+    poi.cat = 'UD'
+    pois.push(poi);
+    
+    //28
+    poi=Object.create(poiAlpha);
+    poi.x = 26;
+    poi.y = 211;
+    poi.id = "3";
+    poi.type = 'I'; 
+    poi.cat = 'UD'
+    pois.push(poi);
+
+    //29
+    poi=Object.create(poiAlpha);
+    poi.x = 79;
+    poi.y = 701;
+    poi.id = "4";
+    poi.type = 'I'; 
+    poi.cat = 'UD'
+    pois.push(poi);
+
+    //30
+    poi.x = 316;
+    poi.y = 532;
+    poi.id = "First One";
+    poi.type = 'I'; //looking for "asset/I_0.jpg"
+    poi.cat = 'UD'
+    pois.push(poi);
+
+    //31
+    poi=Object.create(poiAlpha);
+    poi.x= 710;
+    poi.y= 236;
+    poi.id="Two";
+    poi.type = 'V'; //looking for "asset/V_1.mp4"
+    poi.cat = 'UD'
+    pois.push(poi);
+
+    //32
+    poi=Object.create(poiAlpha);
+    poi.x= 301;
+    poi.y= 123;
+    poi.id="Two";
+    poi.type = 'T'; //looking for "asset/T_2.html"
+    poi.cat = 'UD'
+    pois.push(poi);
+    
+    //33
+    poi=Object.create(poiAlpha);
+    poi.x = 506;
+    poi.y = 562;
+    poi.id = "3";
+    poi.type = 'I'; 
+    poi.cat = 'UD'
+    pois.push(poi);
+
+    //34
+    poi=Object.create(poiAlpha);
+    poi.x = 616;
+    poi.y = 232;
+    poi.id = "4";
+    poi.type = 'I'; 
+    poi.cat = 'UD'
+    pois.push(poi);
+
+

+ 8 - 8
asset/river.html

@@ -16,20 +16,20 @@
 	<div id="primary" class="content-area">
   <ul style="list-style-type:none;">
     <li>
-      <input type="checkbox" id="FF" checked="false">
-      <label>Fauna e flora</label>
+      <input type="checkbox" id="FI" checked="false">
+      <label>Fiume</label>
     </li>
     <li>
-      <input type="checkbox" id="PR" checked="false">
-      <label>Scout</label>
+      <input type="checkbox" id="FL" checked="false">
+      <label>Flora</label>
     </li>
     <li>
-      <input type="checkbox" id="AS" checked="false">
-      <label>Categoria 3</label>
+      <input type="checkbox" id="FA" checked="false">
+      <label>Fauna</label>
     </li>
     <li>
-      <input type="checkbox" id="C4" checked="false">
-      <label>Categoria 4</label>
+      <input type="checkbox" id="UD" checked="false">
+      <label>Udatinos</label>
     </li>
 
 

+ 4 - 3
asset/udatinos.js

@@ -15,7 +15,8 @@ jQuery.event.trigger = function( event, data, elem, onlyHandlers ) {
 }
 
 function addPin(poi,i){
-
+  var x=(poi.cat=='FL'||poi.cat=='FA')?Math.floor(Math.random() * 1200):poi.x;
+  var y=(poi.cat=='FL'||poi.cat=='FA')?Math.floor(Math.random() * 700):poi.y;
   // var img = $jq('<img id="pin_'+i+'" src="asset/i_'+poi.cat+'_48.png" style="position:absolute;left:'+Math.floor(Math.random() * 1200)+'px;top:'+Math.floor(Math.random() * 700)+'px; display: block;visibility: visible;"/>');
   var img = $jq('<img id="pin_'+i+'" src="asset/i_'+poi.cat+'_48.png" class="river" style="position:absolute;left:'+Math.floor($jq(window).width()/2)+'px;top:'+Math.floor($jq(window).height()/2)+'px; display: block;visibility: visible;"/>'); 
   img.click(function(){ // handle click
@@ -43,8 +44,8 @@ function addPin(poi,i){
 // });
   $jq('body').append( img );
   img.delay(500);
-  img.animate({top: poi.y + 'px'},'fast');
-  img.animate({left:poi.x + 'px'},'fast');
+  img.animate({top:   y + 'px'},'fast');
+  img.animate({left:  x + 'px'},'fast');
 
 }