"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( '
Proqram\u0131n Tam N\u0259z\u0259rd\u0259n Ke\u00e7irilm\u0259si<\/p>\n
Content<\/p>\n
Bununla bel\u0259, mobil versiyan\u0131n t\u0259tbiql\u0259rd\u0259n daha yava\u015f oldu\u011funu q\u0259bul etm\u0259y\u0259 d\u0259y\u0259r. \u00dcst\u0259lik, canl\u0131 v\u0259 dig\u0259r \u00e7at\u0131\u015fmazl\u0131qlarda \u0259msallar\u0131n yenil\u0259nm\u0259si \u00fc\u00e7\u00fcn vaxt va. M\u0259s\u0259l\u0259n, canl\u0131 \u0259msallar\u0131n m\u00fc\u0259yy\u0259n s\u0259viyy\u0259y\u0259 qalxmas\u0131n\u0131 g\u00f6zl\u0259y\u0259 bil\u0259rsiniz, lakin m\u00fc\u0259yy\u0259n bir n\u00f6qt\u0259d\u0259 kotirovkalar sad\u0259c\u0259 olaraq yenil\u0259nm\u0259yi dayand\u0131racaq. Bunu \u00f6z\u00fcn\u00fcz etm\u0259lisiniz, bu da m\u0259rcl\u0259rd\u0259 tam h\u00fcquqlu qazanc \u0259ld\u0259 etm\u0259y\u0259 mane ola bil\u0259r. Bu s\u0259b\u0259bd\u0259n \u0259ks\u0259r oyun\u00e7ular yaln\u0131z proqramlardan istifad\u0259 etm\u0259yi \u00fcst\u00fcn tuturlar. Bununla bel\u0259, q\u0259rar q\u0259bul etm\u0259zd\u0259n \u0259vv\u0259l b\u00fct\u00fcn variantlar\u0131n i\u015fini m\u00fcst\u0259qil olaraq qiym\u0259tl\u0259ndir\u0259 bil\u0259rsiniz.<\/p>\n