From 91358679976fac7265511fcc8351fec71b22af09 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 17 Jul 2016 15:52:05 -0300 Subject: [PATCH] Otimização do carregamento de imagens --- admin1/headjs.php | 0 init/headjs.php | 0 init/imagens/apple-touch-icon.png | Bin 16495 -> 0 bytes init/imagens/application-vnd-google-earth-kml.png | Bin 40219 -> 0 bytes init/imagens/applications-development-web.png | Bin 50465 -> 0 bytes init/imagens/applications-development.png | Bin 5303 -> 0 bytes init/imagens/cartogramas.png | Bin 71588 -> 0 bytes init/imagens/certificate-server.png | Bin 9314 -> 0 bytes init/imagens/docapi.png | Bin 41183 -> 0 bytes init/imagens/editor.png | Bin 88330 -> 0 bytes init/imagens/folder-image.png | Bin 14629 -> 0 bytes init/imagens/googleearth.png | Bin 30527 -> 0 bytes init/imagens/googlemaps.png | Bin 51885 -> 0 bytes init/imagens/googlemaps_noite.png | Bin 28373 -> 0 bytes init/imagens/guiamigracao.png | Bin 22148 -> 0 bytes init/imagens/gvsigtraining.png | Bin 21687 -> 0 bytes init/imagens/logo_psp.png | Bin 12000 -> 0 bytes init/imagens/mailman.jpg | Bin 2022 -> 0 bytes init/imagens/mailman.png | Bin 0 -> 24251 bytes init/imagens/mashup.png | Bin 42957 -> 0 bytes init/imagens/ogc_logo.png | Bin 7824 -> 0 bytes init/imagens/openlayers.png | Bin 79396 -> 0 bytes init/imagens/openlayersdebug.png | Bin 54105 -> 0 bytes init/imagens/osm.png | Bin 93461 -> 0 bytes init/imagens/saiku_free_small.png | Bin 29356 -> 0 bytes init/imagens/sprite.php | 32 ++++++++++++++++++++++++++++++++ init/imagens/sprites.css | 1 + init/imagens/sprites.html | 1 + init/imagens/sprites.png | Bin 0 -> 453255 bytes init/imagens/svn-update.png | Bin 18118 -> 0 bytes init/imagens/tools-report-bug.png | Bin 15183 -> 0 bytes init/imagens/window-duplicate.png | Bin 10332 -> 0 bytes init/index.js | 50 +++++++++++++++++++++++++------------------------- init/index.php | 19 ++++++++++--------- init/indexjs.php | 28 ++++++++++++++++++++++++++++ pacotes/picStylizer/LICENSE | 340 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/picStylizer/README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pacotes/picStylizer/example.php | 32 ++++++++++++++++++++++++++++++++ pacotes/picStylizer/picStylizer.php | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 39 files changed, 952 insertions(+), 34 deletions(-) mode change 100644 => 100755 admin1/headjs.php mode change 100644 => 100755 init/headjs.php delete mode 100755 init/imagens/mailman.jpg create mode 100755 init/imagens/mailman.png create mode 100755 init/imagens/sprite.php create mode 100755 init/imagens/sprites.css create mode 100755 init/imagens/sprites.html create mode 100755 init/imagens/sprites.png create mode 100755 init/indexjs.php create mode 100755 pacotes/picStylizer/LICENSE create mode 100755 pacotes/picStylizer/README.md create mode 100755 pacotes/picStylizer/example.php create mode 100755 pacotes/picStylizer/picStylizer.php diff --git a/admin1/headjs.php b/admin1/headjs.php old mode 100644 new mode 100755 index 4f61c67..4f61c67 --- a/admin1/headjs.php +++ b/admin1/headjs.php diff --git a/init/headjs.php b/init/headjs.php old mode 100644 new mode 100755 index a5bcf45..a5bcf45 --- a/init/headjs.php +++ b/init/headjs.php diff --git a/init/imagens/apple-touch-icon.png b/init/imagens/apple-touch-icon.png index 3c864ee..c21b5ff 100755 Binary files a/init/imagens/apple-touch-icon.png and b/init/imagens/apple-touch-icon.png differ diff --git a/init/imagens/application-vnd-google-earth-kml.png b/init/imagens/application-vnd-google-earth-kml.png index ebce334..b3be575 100755 Binary files a/init/imagens/application-vnd-google-earth-kml.png and b/init/imagens/application-vnd-google-earth-kml.png differ diff --git a/init/imagens/applications-development-web.png b/init/imagens/applications-development-web.png index 807ce39..4099a54 100755 Binary files a/init/imagens/applications-development-web.png and b/init/imagens/applications-development-web.png differ diff --git a/init/imagens/applications-development.png b/init/imagens/applications-development.png index 1a28ba1..854c759 100755 Binary files a/init/imagens/applications-development.png and b/init/imagens/applications-development.png differ diff --git a/init/imagens/cartogramas.png b/init/imagens/cartogramas.png index 3cc5c77..671e24b 100755 Binary files a/init/imagens/cartogramas.png and b/init/imagens/cartogramas.png differ diff --git a/init/imagens/certificate-server.png b/init/imagens/certificate-server.png index 6187ff4..d40e1e7 100755 Binary files a/init/imagens/certificate-server.png and b/init/imagens/certificate-server.png differ diff --git a/init/imagens/docapi.png b/init/imagens/docapi.png index 2a44c8d..e203b3b 100755 Binary files a/init/imagens/docapi.png and b/init/imagens/docapi.png differ diff --git a/init/imagens/editor.png b/init/imagens/editor.png index f6c4881..8af4bbc 100755 Binary files a/init/imagens/editor.png and b/init/imagens/editor.png differ diff --git a/init/imagens/folder-image.png b/init/imagens/folder-image.png index 94a74af..1e216d1 100755 Binary files a/init/imagens/folder-image.png and b/init/imagens/folder-image.png differ diff --git a/init/imagens/googleearth.png b/init/imagens/googleearth.png index a9ad488..3c37cf5 100755 Binary files a/init/imagens/googleearth.png and b/init/imagens/googleearth.png differ diff --git a/init/imagens/googlemaps.png b/init/imagens/googlemaps.png index 29bdb5c..8bcc3b4 100755 Binary files a/init/imagens/googlemaps.png and b/init/imagens/googlemaps.png differ diff --git a/init/imagens/googlemaps_noite.png b/init/imagens/googlemaps_noite.png index 50f9455..2229cfe 100755 Binary files a/init/imagens/googlemaps_noite.png and b/init/imagens/googlemaps_noite.png differ diff --git a/init/imagens/guiamigracao.png b/init/imagens/guiamigracao.png index 7810e07..20c2a06 100755 Binary files a/init/imagens/guiamigracao.png and b/init/imagens/guiamigracao.png differ diff --git a/init/imagens/gvsigtraining.png b/init/imagens/gvsigtraining.png index f741895..2791b69 100755 Binary files a/init/imagens/gvsigtraining.png and b/init/imagens/gvsigtraining.png differ diff --git a/init/imagens/logo_psp.png b/init/imagens/logo_psp.png index 76023e6..224b1e9 100755 Binary files a/init/imagens/logo_psp.png and b/init/imagens/logo_psp.png differ diff --git a/init/imagens/mailman.jpg b/init/imagens/mailman.jpg deleted file mode 100755 index 94a4c01..0000000 Binary files a/init/imagens/mailman.jpg and /dev/null differ diff --git a/init/imagens/mailman.png b/init/imagens/mailman.png new file mode 100755 index 0000000..df2e6c2 Binary files /dev/null and b/init/imagens/mailman.png differ diff --git a/init/imagens/mashup.png b/init/imagens/mashup.png index be51f2a..7ee8ac7 100755 Binary files a/init/imagens/mashup.png and b/init/imagens/mashup.png differ diff --git a/init/imagens/ogc_logo.png b/init/imagens/ogc_logo.png index fc1f926..b1a1308 100755 Binary files a/init/imagens/ogc_logo.png and b/init/imagens/ogc_logo.png differ diff --git a/init/imagens/openlayers.png b/init/imagens/openlayers.png index a8943e9..c09d8a3 100755 Binary files a/init/imagens/openlayers.png and b/init/imagens/openlayers.png differ diff --git a/init/imagens/openlayersdebug.png b/init/imagens/openlayersdebug.png index da25cd1..9d1cee1 100755 Binary files a/init/imagens/openlayersdebug.png and b/init/imagens/openlayersdebug.png differ diff --git a/init/imagens/osm.png b/init/imagens/osm.png index cca3dea..be58118 100755 Binary files a/init/imagens/osm.png and b/init/imagens/osm.png differ diff --git a/init/imagens/saiku_free_small.png b/init/imagens/saiku_free_small.png index 4a76144..87c3914 100755 Binary files a/init/imagens/saiku_free_small.png and b/init/imagens/saiku_free_small.png differ diff --git a/init/imagens/sprite.php b/init/imagens/sprite.php new file mode 100755 index 0000000..5bd828b --- /dev/null +++ b/init/imagens/sprite.php @@ -0,0 +1,32 @@ + array( + "images" => "." // folder from where the script will take the images + ), + // set destiny folder + "destiny" => array( + "styles" => "sprites.css", // define css style of sprites + "sprites" => "sprites.png", // define the sprite image result + "example" => "sprites.html", // define the html example + "ini_path" => "" // define the path + ) +); +$pS->setFoldersConfig($config); + +// define minization [true/false] (default: true) +$pS->setMinization(); + +// define css style by default (it will add to the sprites.css file) +$css = ''; +$pS->setCssInit($css); + +// gen sprites, styles and html example +$pS->getSprite(); +?> \ No newline at end of file diff --git a/init/imagens/sprites.css b/init/imagens/sprites.css new file mode 100755 index 0000000..1e0db03 --- /dev/null +++ b/init/imagens/sprites.css @@ -0,0 +1 @@ +.apple-touch-icon {background:url('sprites.png') 0 -0px no-repeat;width:190px; height:80px}.application-vnd-google-earth-kml {background:url('sprites.png') 0 -82px no-repeat;width:190px; height:80px}.applications-development-web {background:url('sprites.png') 0 -164px no-repeat;width:190px; height:80px}.applications-development {background:url('sprites.png') 0 -246px no-repeat;width:190px; height:80px}.cartogramas {background:url('sprites.png') 0 -328px no-repeat;width:190px; height:80px}.certificate-server {background:url('sprites.png') 0 -410px no-repeat;width:190px; height:80px}.docapi {background:url('sprites.png') 0 -492px no-repeat;width:190px; height:80px}.editor {background:url('sprites.png') 0 -574px no-repeat;width:190px; height:80px}.folder-image {background:url('sprites.png') 0 -656px no-repeat;width:190px; height:80px}.googleearth {background:url('sprites.png') 0 -738px no-repeat;width:190px; height:80px}.googlemaps {background:url('sprites.png') 0 -820px no-repeat;width:190px; height:80px}.googlemaps_noite {background:url('sprites.png') 0 -902px no-repeat;width:190px; height:80px}.guiamigracao {background:url('sprites.png') 0 -984px no-repeat;width:190px; height:80px}.gvsigtraining {background:url('sprites.png') 0 -1066px no-repeat;width:190px; height:80px}.insert-link {background:url('sprites.png') 0 -1148px no-repeat;width:190px; height:80px}.logo_psp {background:url('sprites.png') 0 -1230px no-repeat;width:190px; height:80px}.mailman {background:url('sprites.png') 0 -1312px no-repeat;width:190px; height:80px}.mashup {background:url('sprites.png') 0 -1394px no-repeat;width:190px; height:80px}.ogc_logo {background:url('sprites.png') 0 -1476px no-repeat;width:190px; height:80px}.openlayers {background:url('sprites.png') 0 -1558px no-repeat;width:190px; height:80px}.openlayersdebug {background:url('sprites.png') 0 -1640px no-repeat;width:190px; height:80px}.osm {background:url('sprites.png') 0 -1722px no-repeat;width:190px; height:80px}.saiku_free_small {background:url('sprites.png') 0 -1804px no-repeat;width:190px; height:80px}.svn-update {background:url('sprites.png') 0 -1886px no-repeat;width:190px; height:80px}.tools-report-bug {background:url('sprites.png') 0 -1968px no-repeat;width:190px; height:80px}.window-duplicate {background:url('sprites.png') 0 -2050px no-repeat;width:190px; height:80px} \ No newline at end of file diff --git a/init/imagens/sprites.html b/init/imagens/sprites.html new file mode 100755 index 0000000..b2e0a12 --- /dev/null +++ b/init/imagens/sprites.html @@ -0,0 +1 @@ +

class: apple-touch-icon

class: application-vnd-google-earth-kml

class: applications-development-web

class: applications-development

class: cartogramas

class: certificate-server

class: docapi

class: editor

class: folder-image

class: googleearth

class: googlemaps

class: googlemaps_noite

class: guiamigracao

class: gvsigtraining

class: insert-link

class: logo_psp

class: mailman

class: mashup

class: ogc_logo

class: openlayers

class: openlayersdebug

class: osm

class: saiku_free_small

class: svn-update

class: tools-report-bug

class: window-duplicate

\ No newline at end of file diff --git a/init/imagens/sprites.png b/init/imagens/sprites.png new file mode 100755 index 0000000..ead444f Binary files /dev/null and b/init/imagens/sprites.png differ diff --git a/init/imagens/svn-update.png b/init/imagens/svn-update.png index 2497cd7..65eadc3 100755 Binary files a/init/imagens/svn-update.png and b/init/imagens/svn-update.png differ diff --git a/init/imagens/tools-report-bug.png b/init/imagens/tools-report-bug.png index 42dd7ab..db01fa6 100755 Binary files a/init/imagens/tools-report-bug.png and b/init/imagens/tools-report-bug.png differ diff --git a/init/imagens/window-duplicate.png b/init/imagens/window-duplicate.png index 5aefa58..77a9c33 100755 Binary files a/init/imagens/window-duplicate.png and b/init/imagens/window-duplicate.png differ diff --git a/init/index.js b/init/index.js index a9b7cbd..7add148 100755 --- a/init/index.js +++ b/init/index.js @@ -1,167 +1,167 @@ botoesIni = [ { - "img":"openlayers.png", + "img":"openlayers", "href": location.href.replace("init/index.php","") + customDir + "/black_ol.htm", "titulo":$trad(4,g_traducao_init), "subtitulo": $trad("4a",g_traducao_init), "fa": "map-o", "target": "_blank" },{ - "img":"osm.png", + "img":"osm", "href": location.href.replace("init/index.php","") + customDir + "/black_osm.htm", "titulo":$trad(23,g_traducao_init), "subtitulo": $trad("23a",g_traducao_init), "fa": "map-o", "target": "_blank" },{ - "img":"googlemaps.png", + "img":"googlemaps", "href": location.href.replace("init/index.php","") + customDir + "/black_gm.phtml", "titulo":$trad(6,g_traducao_init), "subtitulo": $trad("6a",g_traducao_init), "fa": "map-o", "target": "_blank" },{ - "img":"mashup.png", + "img":"mashup", "href": "../mashups/index.php", "titulo":$trad(18,g_traducao_init) + "
OSM" + " - OpenLayers", "subtitulo": $trad("18a",g_traducao_init), "fa": "map-o", "target": "_self" },{ - "img":"googleearth.png", + "img":"googleearth", "href": location.href.replace("init/index.php","") + customDir + "/googleearth.phtml", "titulo":$trad(7,g_traducao_init), "subtitulo": $trad("7a",g_traducao_init), "fa": "map-o", "target": "_blank" },{ - "img":"cartogramas.png", + "img":"cartogramas", "href": location.href.replace("init/index.php","") + customDir + "/black_carto_ol.htm", "titulo":$trad(8,g_traducao_init), "subtitulo": $trad("8a",g_traducao_init), "fa": "map-o", "target": "_blank" },{ - "img":"editor.png", + "img":"editor", "href": "../ferramentas/metaestat/editorlimites.php", "titulo":$trad(9,g_traducao_init), "subtitulo": $trad("9a",g_traducao_init), "fa": "map-o", "target": "_blank" },{ - "img":"window-duplicate.png", + "img":"window-duplicate", "href": "../mapas/index.php", "titulo":$trad(34,g_traducao_init), "subtitulo": $trad("34a",g_traducao_init), "fa": "map-o", "target": "_self" },{ - "img":"ogc_logo.png", + "img":"ogc_logo", "href": "../ogc/index.php", "titulo":$trad(11,g_traducao_init), "subtitulo": $trad("11a",g_traducao_init), "fa": "download", "target": "_self" },{ - "img":"application-vnd-google-earth-kml.png", + "img":"application-vnd-google-earth-kml", "href": "../kml.php", "titulo":$trad(12,g_traducao_init), "subtitulo": $trad("12a",g_traducao_init), "fa": "download", "target": "_self" },{ - "img":"../imagens/saiku_free_small.png", + "img":"saiku_free_small", "href": "../ferramentas/saiku/esquemaxml.php?locaplic="+window.location.href.replace("/init/index.php",""), "titulo":$trad(25,g_traducao_init), "subtitulo": $trad("25a",g_traducao_init), "fa": "bar-chart", "target": "_self" },{ - "img":"insert-link.png", + "img":"insert-link", "href": "../permlinks/index.php", "titulo":$trad(13,g_traducao_init), "subtitulo": $trad("13a",g_traducao_init), "fa": "map-o", "target": "_self" },{ - "img":"openlayersdebug.png", + "img":"openlayersdebug", "href": location.href.replace("init/index.php","") + customDir + "/openlayersdebug.htm", "titulo":$trad(5,g_traducao_init), "subtitulo": $trad("5a",g_traducao_init), "fa": "cogs", "target": "_blank" },{ - "img":"certificate-server.png", + "img":"certificate-server", "href": "../testainstal/index.php", "titulo":$trad(2,g_traducao_init), "subtitulo": $trad("2a",g_traducao_init), "fa": "cogs", "target": "_self" },{ - "img":"applications-development-web.png", + "img":"applications-development-web", "href": "../admin1", "titulo":$trad(3,g_traducao_init), "subtitulo": $trad("3a",g_traducao_init), "fa": "cogs", "target": "_self" },{ - "img":"folder-image.png", + "img":"folder-image", "href": "../exemplos/index.php", "titulo":$trad(14,g_traducao_init), "subtitulo": $trad("14a",g_traducao_init), "fa": "cogs", "target": "_self" },{ - "img":"applications-development.png", + "img":"applications-development", "href": "../utilitarios/index.php", "titulo":$trad(33,g_traducao_init), "subtitulo": $trad("33a",g_traducao_init), "fa": "wrench", "target": "_self" },{ - "img":"guiamigracao.png", + "img":"guiamigracao", "href": "../guia_de_migracao.txt", "titulo":$trad(17,g_traducao_init), "subtitulo": $trad("17a",g_traducao_init), "fa": "cogs", "target": "_self" },{ - "img":"docapi.png", + "img":"docapi", "href": "../documentacao", "titulo":$trad(24,g_traducao_init), "subtitulo": $trad("24a",g_traducao_init), "fa": "book", "target": "_self" },{ - "img":"gvsigtraining.png", + "img":"gvsigtraining", "href":"http://moodle.gvsig-training.com/course/view.php?id=11", "titulo":$trad(28,g_traducao_init), "subtitulo": $trad("28a",g_traducao_init), "fa": "book", "target": "_self" },{ - "img":"tools-report-bug.png", + "img":"tools-report-bug", "href":"https://softwarepublico.gov.br/gitlab/i3geo/i3geo/issues", "titulo":$trad(16,g_traducao_init), "subtitulo": $trad("16a",g_traducao_init), "fa": "group", "target": "_self" },{ - "img":"../imagens/apple-touch-icon.png", + "img":"apple-touch-icon", "href":"https://softwarepublico.gov.br/gitlab/groups/i3geo", "titulo":$trad(30,g_traducao_init), "subtitulo": $trad("30a",g_traducao_init), "fa": "group", "target": "_self" },{ - "img":"logo_psp.png", + "img":"logo_psp", "href":"https://portal.softwarepublico.gov.br/social/i3geo/", "titulo":$trad(31,g_traducao_init), "subtitulo": $trad("31a",g_traducao_init), "fa": "group", "target": "_self" },{ - "img":"mailman.jpg", + "img":"mailman", "href":"http://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo", "titulo":$trad(32,g_traducao_init), "subtitulo": $trad("32a",g_traducao_init), @@ -198,7 +198,7 @@ function mostraBotoesBT(men){ {"d":botoesIni,"abrir" : $trad(36,g_traducao_init)} ); $("#botoesTpl").html(html); - aplicaFavoritos() + aplicaFavoritos(); } function findBootstrapDeviceSize() { var dsize = ['lg', 'md', 'sm', 'xs']; diff --git a/init/index.php b/init/index.php index f28d751..2f36faf 100755 --- a/init/index.php +++ b/init/index.php @@ -35,6 +35,7 @@ if (file_exists ( $dir_tmp )) { error_reporting ( 0 ); include "head.php"; ?> +