"use strict"; /* Basic -------------------------------------------------------------- */ (function($) { var abrMetabox = {}; ( function() { var $this; abrMetabox = { /* * Initialize */ init: function( e ) { $this = abrMetabox; // Variables. $this.wrap = $( '.abr-metabox-wrap' ); // Init. $this.metaboxInit( e ); // Init events. $this.events( e ); }, /* * Events */ events: function( e ) { // Custom Events $this.wrap.on( 'click change keyup keydown', '.abr-metabox-repeater .attribute-name', $this.setSignature ); $this.wrap.on( 'click', '.abr-metabox-repeater .row-topbar', $this.toggleItems ); $this.wrap.on( 'click', '.abr-metabox-repeater .btn-remove-row', $this.removeRepeaterRow ); $this.wrap.on( 'click', '.abr-metabox-repeater .btn-add-row', $this.addRepeaterRow ); }, /* * Init metabox elements */ metaboxInit: function( e ) { // Add tabs for Meta Box (UI) $this.wrap.find( '.abr-metabox-tabs' ).tabs(); // Repeater sortable $this.wrap.find( '.abr-metabox-repeater tbody' ).sortable( { items: 'tr', placeholder: 'ui-state-highlight', handle: '.row-topbar, .row-handle', start: function( e, ui ) { ui.placeholder.height( ui.item.height() ); }, } ); }, /* * Toggle items */ toggleItems: function() { if ( $( this ).hasClass( 'closed' ) ) { $( this ).removeClass( 'closed' ); $( this ).siblings( '.row-fields' ).slideDown(); } else { $( this ).addClass( 'closed' ); $( this ).siblings( '.row-fields' ).slideUp(); } }, /* * Set signature */ setSignature: function() { var label = '' + $( this ).data( 'label' ) + ''; var value = $( this ).val() ? $( this ).val() : label; $( this ).parents( '.row-content' ).find( '.signature' ).html( value ); }, /* * Add repeater row */ addRepeaterRow: function() { var repeater = $( this ).siblings( '.abr-metabox-repeater-table' ) // Get html row. var html = repeater.find( 'tbody tr.hidden' ).html(); // Add new row. repeater.find( 'tbody' ).append( '
[vc_row css=”.vc_custom_1542266104757{margin-top: 0px !important;margin-bottom: 0px !important;border-top-width: 0px !important;border-bottom-width: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}”][vc_column][vc_single_image image=”17020″ img_size=”large” alignment=”center” css=”.vc_custom_1565814890871{margin-right: 20% !important;margin-left: 20% !important;}”][vc_separator color=”custom” border_width=”3″ accent_color=”#f26520″][vc_column_text]*postage included[\/vc_column_text][\/vc_column][\/vc_row][vc_row full_width=”stretch_row” ppadding=”vc_pixrow-padding-bottom” css=”.vc_custom_1542266091866{margin-bottom: 40px !important;padding-bottom: 20px !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}”][vc_column width=”1\/6″][\/vc_column][vc_column width=”2\/3″][vc_row_inner][vc_column_inner width=”1\/3″][vc_column_text css=”.vc_custom_1539092596093{margin-top: 40px !important;}”]<\/p>\n
[\/vc_column_text][\/vc_column_inner][vc_column_inner width=”1\/3″][vc_column_text css=”.vc_custom_1539092581349{margin-top: 40px !important;}”]<\/p>\n
[\/vc_column_text][\/vc_column_inner][vc_column_inner width=”1\/3″][vc_column_text css=”.vc_custom_1539092565957{margin-top: 40px !important;}”]<\/p>\n
[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][\/vc_column][vc_column width=”1\/6″][\/vc_column][\/vc_row][vc_row full_width=”stretch_row” ppadding=”vc_pixrow-no-padding” css=”.vc_custom_1520871814318{margin-bottom: 0px !important;padding-top: 20px !important;padding-bottom: 20px !important;background-image: url(http:\/\/hyperfarmer.com\/wp-content\/uploads\/2018\/03\/back2.jpg?id=3042) !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}”][vc_column][vc_column_text]<\/p>\n
[\/vc_column_text][\/vc_column][\/vc_row][vc_row equal_height=”yes” content_placement=”middle”][vc_column width=”1\/4″][vc_column_text css=”.vc_custom_1572633888208{padding-top: 10px !important;padding-bottom: 10px !important;background-color: #f26520 !important;}” el_class=”pricingtablehead”]<\/p>\n
11×17 Market Watch*<\/b><\/span> [\/vc_column_text][vc_column_text el_class=”pricingtable”]<\/p>\n
\n(4 Sided)<\/span>
\n$495 Design Setup<\/span>
\nProduction Design $40<\/span><\/p>\n