Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!--Ubacivanje teksta -->
var text_element = new Array();
var counter = 0;
$('.quoteBox').find('.quote_text').each(function(index, element) {
var element_id = $(this).attr('id');
console.log(element_id);
var font_size = $('#'+element_id).css('font-size');
var text_align = $('#'+element_id).css('text-align');
//var font_family = $('#display_'+element_id).css('font-family');
var font_weight = $('#'+element_id).css('font-weight');
var font_style = $('#'+element_id).css('font-style');
var font_color = $('#'+element_id).css('color');
var width = $('#'+element_id).css('width');
var input = $('#id_'+element_id).val();
var font_top = $('#'+element_id).css('top');;
var font_left = $('#'+element_id).css('left');;
if(promenjiva_text == element_id){
text_element[counter] = new Array(font_size,text_align,font_weight,font_style,font_color,font_top,font_left,input,width);
counter++;
}
});
text_element = JSON.stringify(text_element);
console.log(text_element);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.