From 2112b9b96f12dcbddf765c07cb0d8b4d4de4f0e2 Mon Sep 17 00:00:00 2001 From: TiagoRG <35657250+TiagoRG@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:05:31 +0000 Subject: [PATCH] IEI: tema9 added --- 1ano/iei/projeto/.idea/.gitignore | 5 + 1ano/iei/projeto/.idea/discord.xml | 7 + .../inspectionProfiles/Project_Default.xml | 6 + 1ano/iei/projeto/.idea/modules.xml | 8 ++ 1ano/iei/projeto/.idea/tema09.iml | 12 ++ 1ano/iei/projeto/.idea/vcs.xml | 6 + 1ano/iei/projeto/about.html | 22 ++++ 1ano/iei/projeto/css/style.css | 19 +++ 1ano/iei/projeto/images/ua.png | Bin 0 -> 15147 bytes 1ano/iei/projeto/index.html | 124 ++++++++++++++++++ 1ano/iei/projeto/js/chart.js | 30 +++++ 1ano/iei/projeto/js/image.js | 7 + 1ano/iei/projeto/js/index.js | 0 1ano/iei/projeto/js/map.js | 36 +++++ 14 files changed, 282 insertions(+) create mode 100644 1ano/iei/projeto/.idea/.gitignore create mode 100644 1ano/iei/projeto/.idea/discord.xml create mode 100644 1ano/iei/projeto/.idea/inspectionProfiles/Project_Default.xml create mode 100644 1ano/iei/projeto/.idea/modules.xml create mode 100644 1ano/iei/projeto/.idea/tema09.iml create mode 100644 1ano/iei/projeto/.idea/vcs.xml create mode 100644 1ano/iei/projeto/about.html create mode 100644 1ano/iei/projeto/css/style.css create mode 100644 1ano/iei/projeto/images/ua.png create mode 100644 1ano/iei/projeto/index.html create mode 100644 1ano/iei/projeto/js/chart.js create mode 100644 1ano/iei/projeto/js/image.js create mode 100644 1ano/iei/projeto/js/index.js create mode 100644 1ano/iei/projeto/js/map.js diff --git a/1ano/iei/projeto/.idea/.gitignore b/1ano/iei/projeto/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/1ano/iei/projeto/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/1ano/iei/projeto/.idea/discord.xml b/1ano/iei/projeto/.idea/discord.xml new file mode 100644 index 0000000..d8e9561 --- /dev/null +++ b/1ano/iei/projeto/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/1ano/iei/projeto/.idea/inspectionProfiles/Project_Default.xml b/1ano/iei/projeto/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..25d56ab --- /dev/null +++ b/1ano/iei/projeto/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/1ano/iei/projeto/.idea/modules.xml b/1ano/iei/projeto/.idea/modules.xml new file mode 100644 index 0000000..5ccbd92 --- /dev/null +++ b/1ano/iei/projeto/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/1ano/iei/projeto/.idea/tema09.iml b/1ano/iei/projeto/.idea/tema09.iml new file mode 100644 index 0000000..0c8867d --- /dev/null +++ b/1ano/iei/projeto/.idea/tema09.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/1ano/iei/projeto/.idea/vcs.xml b/1ano/iei/projeto/.idea/vcs.xml new file mode 100644 index 0000000..c2365ab --- /dev/null +++ b/1ano/iei/projeto/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/1ano/iei/projeto/about.html b/1ano/iei/projeto/about.html new file mode 100644 index 0000000..64f627f --- /dev/null +++ b/1ano/iei/projeto/about.html @@ -0,0 +1,22 @@ + + + + + About + + + + + +

Introdução à Engenharia Informática

+

+

Integração de Componentes — Component Integration

+

(Popups - Graphics - Maps - Images)

+

+UA +

Tiago Garcia - 22/12/22

+
+ + + \ No newline at end of file diff --git a/1ano/iei/projeto/css/style.css b/1ano/iei/projeto/css/style.css new file mode 100644 index 0000000..21977b0 --- /dev/null +++ b/1ano/iei/projeto/css/style.css @@ -0,0 +1,19 @@ +/* style for the about page */ +.style_about { + color: black; + background-color: gray; + text-align: center; +} +/* Create two columns (left and right boxes) with the same size */ +/* Put map and image side by side */ +.columnleft { + float: left; + height: 450px; + width: 550px; + margin: 10px; +} +.columnright { + float: right; + height: 450px; + width: 550px; +} \ No newline at end of file diff --git a/1ano/iei/projeto/images/ua.png b/1ano/iei/projeto/images/ua.png new file mode 100644 index 0000000000000000000000000000000000000000..6e4f6e5ca48bb939ffffd7bf4a1d4e0af7e9ca37 GIT binary patch literal 15147 zcmeI3ZB!Fi8pmhtVp|knsxGBo_2gIw}rV~W=RH3|5uCy#=IMJzPtzr$Y^*P-@O%TRhpPS|Ccv)4$+XYvS z`fA61wMww&sGp!MI*U7xuN4X!JbYP0aXHse#~G~ZTvNQ!$AAP*US?H3r^6*Nz8rNh zF9TwwnN+KS61gr%y-+ErsqP4V!(@`0!EQ6M!sf=tYO{LdS>7*{5q|!B% zp3xZ?idKa`YEwLjj2^3vDK#$+mji$0sB2}}&5)$m>(zSGwW7yPQU-&8)agmRUIP>w z$?uX`pT;FU5=t_d$IMHdM{vu6=u#sg?okVaIk8wGwMQJU(>Y>k zNzPvh5QLGA=#E=X z8I;1xF*ecTWMz}!WbHiZcG-<&v=LH977~*uIz$f`5pPO2k|Q-kuHfQg3SE-Sx;Vbj zYyu5hL9jBqY&}&&>vbBQ;;ottTLz~wWO6l{Y_`UbMYFVCugeVHyTto9tyh{6afe6UglyN;%XMo7+e#r@ccMIt!uJp_4PXT!&AlQ8~mI zun@qY*x&?EMsiqNv~oyasZ6M&KB&*q>%fPkl;5xw?vAxq-Q5az$6BM#BH4x znjx2R(uU52GVoBqn=)xSoi>uO&9ROW!N)r)%>vlGlCmT-K&7B3wqrzN6=ckSjZjC} z7@8{R-*<2(L#^Q906dqFkq48ZlN{Lv-*XVXqwhH}oDLU(X&_^a3yBC8U|cW_WQ=hk z5y1kC3#NgLF)kz`Sb%ZCG>|dIg+v4kFfNz|GRC-&h+qN61=B#r7#9)|EWo&68ps&q zLL!0%7#Bj0>iLj4>`GB3OWN!8DLD z#)U)#3otI21~SIDkceOb#s$+r#uyh85iG#CU>e96<3b{W1sE4h0~upnNJOvzm(U43Kzj&4)ZruUbO9WA`BZx1m34+-|5D$sJ`pL)O1;a6$3e5}4edjLs z6}>fqoqq3^7qTDQmbX_^8EEQSlrp!}wazo2UwAk=-mdDuzE{nOY*JFyp(Dvv z1?sfoy>lHYP0~gEvpyyPS2g(tDpJb@IQLeyLC--U}NIV zw->A*n7-$s{<>)^|2BDXf7{PbPf)iDFYERln*7Uw%Kc+jtu9)zv&%m|ZBgyi{NJRU z+#JY_JHLDOlfL!uFZf#X@!2tHOFm6p+Y@-DtY_8C&L8gk=yqFo^=9sZPM$9I-P&%oYnoOj=(hc+D?Yw{Qp4Eij?q&-@bq`Hp3dP)eO~2uG#;5OKWmPyry~cqN44;KVDj!x+k@$Xvxp2 zv;Ng|J?-6|>a+t|`Sc|z;mt482DbjQv0%=PtOpv~if8xEdf|S*GqvFXQ@3@W_2iDs zBah#v3y%H!-15r@UUsj}I(q2FwwoJrH*MU}_oEdDCmB26tY|x7yYlpm*OzRMTYKV8 zey!c`)w@%_Zf#~hOf+shU)J6KO>a}<47=PkF)47v`qI*_-toCqh1Gq1!nvedUn~%= zOs@DOX~qku*8HyO!q&IxRrBIb1vXw8XM3#asn37gGiOW1{5|(f95?BFbA9DAEpazH zn%=5NIr^WvS^pD1Xy4VI++5n~eQJ4X>NlD-IrDN)Hx#uj-+uVD>;<1aakT5D>jyRQ p%QhX^dHBzP*=OuKOKuv7cRE`8&#qp2OnIHPFu&N`zNq?{{{z&a;|l-) literal 0 HcmV?d00001 diff --git a/1ano/iei/projeto/index.html b/1ano/iei/projeto/index.html new file mode 100644 index 0000000..cddf5f0 --- /dev/null +++ b/1ano/iei/projeto/index.html @@ -0,0 +1,124 @@ + + + + + Integração de Componentes em Páginas WEB + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Popups

+ + + +

Charts

+
+ + + +

Maps

+
+
+
+ + +
+ +
+ + + +
+

Images

+
+
+ + +
+ Ups! +
+
+
+ + \ No newline at end of file diff --git a/1ano/iei/projeto/js/chart.js b/1ano/iei/projeto/js/chart.js new file mode 100644 index 0000000..854633c --- /dev/null +++ b/1ano/iei/projeto/js/chart.js @@ -0,0 +1,30 @@ +var type = "line"; // line graphic by default + +function graphic(element) { + let e = document.getElementById( "selection" ); + type = e.options[e.selectedIndex].value; +} + +function draw() { + $("#myGraph").highcharts({ + chart: { type: type }, + title: { text: "Temperatures Average" }, + xAxis: { categories: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", + "Jul", "Ago", "Set", "Out", "Nov", "Dez"] + }, + series:[ + { + name: "Lisboa", + data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6] + }, + { + name: "Aveiro", + data: [5.0, 6.2, 8.4, 10.7, 13.5, 16.5, 16.9, 21.7, 22.7, 16.2, 12.5, 7.6] + }, + { + name: "Leiria - No Data", + data: [] + } + ] + }); +} \ No newline at end of file diff --git a/1ano/iei/projeto/js/image.js b/1ano/iei/projeto/js/image.js new file mode 100644 index 0000000..69b432f --- /dev/null +++ b/1ano/iei/projeto/js/image.js @@ -0,0 +1,7 @@ +function decreaseImage(element){ + let height = parseInt(element.style.height) - 10 ; + element.style.height = height+"px"; +} +function resetImage(element){ + element.style.height = "200px"; +} \ No newline at end of file diff --git a/1ano/iei/projeto/js/index.js b/1ano/iei/projeto/js/index.js new file mode 100644 index 0000000..e69de29 diff --git a/1ano/iei/projeto/js/map.js b/1ano/iei/projeto/js/map.js new file mode 100644 index 0000000..28bac3a --- /dev/null +++ b/1ano/iei/projeto/js/map.js @@ -0,0 +1,36 @@ +let map = new L.Map("myMap", {center: [40.633258,-8.659097],zoom: 15}); +let osmUrl="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"; +let osmAttrib="Map data OpenStreetMap contributors"; +let osm = new L.TileLayer(osmUrl, {attribution: osmAttrib}); +map.addLayer(osm); + +map.on("click", showCoordinates); + +function showCoordinates(e){ + var s = document.getElementById("coordinates"); + s.innerHTML = "Latitude, Longitude = "+e.latlng.lat+", "+e.latlng.lng; +} + +let pontos = [ + L.marker([40.633258, -8.659097]), + L.marker([40.642729, -8.747899]) +] + +for (let i in pontos) { + pontos[i].addTo(map) +} + +L.marker([40.633258, -8.659097]).bindPopup("LABI@DETI").addTo(map); + +let grupo = new L.featureGroup(pontos); +map.fitBounds(grupo.getBounds()); + +let iconeUA = L.icon({ iconUrl: "images/ua.png" }); +L.marker([40.633258, -8.659097], {icon: iconeUA}).bindPopup("LABI@DETI").addTo(map); + +let reitoria = L.polygon( + [ [40.63102, -8.65793], [40.63149, -8.65731], + [40.63126, -8.65699], [40.63078, -8.65759] ], + { color: "red" } ); +reitoria.addTo(map); +reitoria.bindPopup("Reitoria") \ No newline at end of file