<\/i><\/a><\/li><\/ul>\n\t<\/div>\n[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section bb_built=”1″ custom_padding=”0px|0px|0px|0px” _builder_version=”3.0.65″ prev_background_color=”#000000″ next_background_color=”#000000″][et_pb_row _builder_version=”3.0.65″ background_size=”initial” background_position=”top_left” background_repeat=”repeat” custom_padding=”0px|0px|27px|0px” background_position_1=”top_left” background_repeat_1=”no-repeat” width_unit=”off” custom_width_percent=”95%”][et_pb_column type=”4_4″][et_pb_4divi_jgallery _builder_version=”3.0.66″ gallery_ids=”1017,1020,1018,1022,1021,1019,1023,1026,1024,1025,1027,1028,1029,1030,1031,1032,1033,1034,1035″ \/][et_pb_code admin_label=”jquery proyectos” _builder_version=”3.2.2″ disabled=”off” disabled_on=”off|off|off” saved_tabs=”all” global_module=”765″ max_width_tablet=”50px”]<script type="text\/javascript"><!– [et_pb_line_break_holder] –> var ancho = 0;<!– [et_pb_line_break_holder] –> var alto_pantalla = 0;<!– [et_pb_line_break_holder] –>\t<!– [et_pb_line_break_holder] –>\t<!– [et_pb_line_break_holder] –> function image_styles() {<!– [et_pb_line_break_holder] –> alto_pantalla = jQuery(window).height();<!– [et_pb_line_break_holder] –>\t\tancho_pantalla = jQuery(window).width();<!– [et_pb_line_break_holder] –> console.log("pantalla-> alto = " + alto_pantalla + "; ancho = " + ancho_pantalla)<!– [et_pb_line_break_holder] –>\t\tbaseElements = jQuery("#jgallery-main");<!– [et_pb_line_break_holder] –> console.log( "Ancho container = " + baseElements.width() )<!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –> baseElements.css({<!– [et_pb_line_break_holder] –> 'text-align': 'center',<!– [et_pb_line_break_holder] –>\t\t\t'-ms-text-justify': 'distribute-all-lines',<!– [et_pb_line_break_holder] –>\t\t\t'text-justify': 'distribute-all-lines'<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –>\t\t<!– [et_pb_line_break_holder] –>\t\tbaseElements.find(".jgallery-item").each(function(index) {<!– [et_pb_line_break_holder] –> \/\/elemento = jQuery(this).find('img')<!– [et_pb_line_break_holder] –>\t\t\telemento = jQuery(this)<!– [et_pb_line_break_holder] –>\t\t\t\/\/.find( '#project-gallery > div > div:nth-child(' + index + ')' )<!– [et_pb_line_break_holder] –>\t\t\t<!– [et_pb_line_break_holder] –> ancho = elemento.find('img').width();<!– [et_pb_line_break_holder] –> alto = elemento.find('img').height();<!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –> if (ancho < alto) {<!– [et_pb_line_break_holder] –> image_vertical( index , elemento );<!– [et_pb_line_break_holder] –> } else {<!– [et_pb_line_break_holder] –> image_horizontal( index , elemento );<!– [et_pb_line_break_holder] –> }<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –>\t};<!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –> function image_vertical( index , elemento ) {<!– [et_pb_line_break_holder] –> var className = elemento.attr('class').split(' ')<!– [et_pb_line_break_holder] –>\t\tImgDimensions = className[2].split('_')\t\t<!– [et_pb_line_break_holder] –> console.log( index + " img Horizontal " + ImgDimensions[1] + " " + ImgDimensions[2]);<!– [et_pb_line_break_holder] –>\t\tvar ratio_img = ImgDimensions[1]\/ImgDimensions[2];<!– [et_pb_line_break_holder] –>\t\tAltoImg = alto_pantalla;<!– [et_pb_line_break_holder] –>\t\tAnchoImg = alto_pantalla * ratio_img;<!– [et_pb_line_break_holder] –>\t\tif ( AnchoImg > baseElements.width() ){<!– [et_pb_line_break_holder] –>\t\t\tAnchoImg = baseElements.width();<!– [et_pb_line_break_holder] –>\t\t\tAltoImg = AnchoImg\/ratio_img;<!– [et_pb_line_break_holder] –>\t\t}<!– [et_pb_line_break_holder] –>\t\tif ( alto_pantalla < ancho_pantalla ){<!– [et_pb_line_break_holder] –>\t\t\tmargen = "0px";<!– [et_pb_line_break_holder] –>\t\t} else {<!– [et_pb_line_break_holder] –>\t\t\tmargen = "0px";<!– [et_pb_line_break_holder] –>\t\t}<!– [et_pb_line_break_holder] –>\t\tconsole.log("ratio_img= " + ratio_img + "; AnchoImg= " + AnchoImg + "; AltoImg= " + AltoImg);<!– [et_pb_line_break_holder] –>\t\t<!– [et_pb_line_break_holder] –>\t\telemento.find('img').css({<!– [et_pb_line_break_holder] –> 'height': AltoImg,<!– [et_pb_line_break_holder] –> 'width': AnchoImg<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –>\t\t<!– [et_pb_line_break_holder] –>\t\tif ( AnchoImg > baseElements.width() * 0.5){<!– [et_pb_line_break_holder] –>\t\t\tAnchoImg = baseElements.width();<!– [et_pb_line_break_holder] –>\t\t}<!– [et_pb_line_break_holder] –>\t\t<!– [et_pb_line_break_holder] –>\t\telemento.css({<!– [et_pb_line_break_holder] –> 'height': AltoImg,<!– [et_pb_line_break_holder] –> 'width': AnchoImg,<!– [et_pb_line_break_holder] –>\t\t\t'margin-right': margen,<!– [et_pb_line_break_holder] –>\t\t\t'margin-left': margen<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –> };<!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –> function image_horizontal( index , elemento ) {<!– [et_pb_line_break_holder] –>\t\tvar className = elemento.attr('class').split(' ')<!– [et_pb_line_break_holder] –>\t\tImgDimensions = className[2].split('_')\t\t<!– [et_pb_line_break_holder] –> console.log( index + " img Horizontal " + ImgDimensions[1] + " " + ImgDimensions[2]);<!– [et_pb_line_break_holder] –>\t\tvar ratio_img = ImgDimensions[1]\/ImgDimensions[2];<!– [et_pb_line_break_holder] –>\t\tAnchoImg = baseElements.width();<!– [et_pb_line_break_holder] –>\t\tAltoImg = baseElements.width() \/ ratio_img;<!– [et_pb_line_break_holder] –>\t\tconsole.log("ratio_img= " + ratio_img + "; AnchoImg= " + AnchoImg + "; AltoImg= " + AltoImg);<!– [et_pb_line_break_holder] –>\t\t<!– [et_pb_line_break_holder] –>\t\telemento.css({<!– [et_pb_line_break_holder] –> 'height': AltoImg,<!– [et_pb_line_break_holder] –> 'width': AnchoImg<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –>\t\t<!– [et_pb_line_break_holder] –>\t\telemento.find('img').css({<!– [et_pb_line_break_holder] –> 'height': AltoImg,<!– [et_pb_line_break_holder] –> 'width': AnchoImg<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –> };<!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –> function social_icons_format() {<!– [et_pb_line_break_holder] –>\t\tvar AnchoTotal = jQuery("#jgallery-main").width();\t\t<!– [et_pb_line_break_holder] –> var baseSocial = jQuery("#social-sharing-container" );<!– [et_pb_line_break_holder] –>\t\tconsole.log( "AnchoSocial=" + baseSocial.width() + "; AnchoTotal = " + AnchoTotal );<!– [et_pb_line_break_holder] –>\t\tif (AnchoTotal == baseSocial.width() ) {<!– [et_pb_line_break_holder] –>\t\t\tbaseSocial.find( 'ul li' ).css({<!– [et_pb_line_break_holder] –>\t\t\t'list-style-type': 'none',<!– [et_pb_line_break_holder] –>\t\t\t'float': 'left'<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –>\t\t\tbaseSocial.find( 'ul > li:nth-child(1) > a > i' ).css({<!– [et_pb_line_break_holder] –>\t\t\t'margin-right': '10px',<!– [et_pb_line_break_holder] –>\t\t\t'padding-top': ''<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –>\t\t} else {<!– [et_pb_line_break_holder] –>\t\t\tbaseSocial.find( 'ul li' ).css({<!– [et_pb_line_break_holder] –>\t\t\t'list-style-type': 'none',<!– [et_pb_line_break_holder] –>\t\t\t'float': 'right'<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –>\t\t\tbaseSocial.find( 'ul > li:nth-child(1) > a > i' ).css({<!– [et_pb_line_break_holder] –>\t\t\t'margin-right': '0px',<!– [et_pb_line_break_holder] –>\t\t\t'padding-top': '5px'<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –>\t\t}<!– [et_pb_line_break_holder] –>};<!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –> jQuery(window).load(function($) {<!– [et_pb_line_break_holder] –>\t\timage_styles();<!– [et_pb_line_break_holder] –>\t\tsocial_icons_format()<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –> jQuery(window).resize(function($) {<!– [et_pb_line_break_holder] –>\t\timage_styles();<!– [et_pb_line_break_holder] –>\t\tsocial_icons_format()<!– [et_pb_line_break_holder] –> });<!– [et_pb_line_break_holder] –><\/script>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section bb_built=”1″ _builder_version=”3.0.47″ prev_background_color=”#000000″][et_pb_row _builder_version=”3.0.47″ background_size=”initial” background_position=”top_left” background_repeat=”repeat”][et_pb_column type=”4_4″][et_pb_portfolio fullwidth=”off” posts_number=”50″ show_categories=”off” show_pagination=”off” disabled_on=”off|off|off” _builder_version=”3.0.65″ title_font_size=”12″ title_line_height=”1em” custom_css_portfolio_image=”display:none;” disabled=”off” show_title=”on” zoom_icon_color=”#000000″ hover_overlay_color=”rgba(255,255,255,0.9)” background_layout=”light” border_style=”solid” title_font=”|||on|” module_id=”projects_navigation” \/][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=”3.0.65″ background_size=”initial” background_position=”top_left” background_repeat=”repeat” background_position_1=”top_left” background_repeat_1=”no-repeat” custom_padding=”0px|||” use_custom_width=”on” width_unit=”off” custom_width_percent=”90%”][et_pb_column type=”4_4″][et_pb_divider color=”#cccccc” show_divider=”on” divider_style=”solid” divider_position=”center” _builder_version=”3.0.65″ disabled_on=”on|on|off” \/][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"Un proyecto de tres trece interiorismo.<\/p>\n","protected":false},"author":2,"featured_media":796,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":""},"project_category":[],"project_tag":[],"_links":{"self":[{"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/project\/769"}],"collection":[{"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/project"}],"about":[{"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/types\/project"}],"author":[{"embeddable":true,"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/comments?post=769"}],"version-history":[{"count":28,"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/project\/769\/revisions"}],"predecessor-version":[{"id":1187,"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/project\/769\/revisions\/1187"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/media\/796"}],"wp:attachment":[{"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/media?parent=769"}],"wp:term":[{"taxonomy":"project_category","embeddable":true,"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/project_category?post=769"},{"taxonomy":"project_tag","embeddable":true,"href":"http:\/\/trestrece.es\/wp-json\/wp\/v2\/project_tag?post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}