Post by Mike on Jul 12, 2022 13:32:34 GMT -8
I created a plugin"banner flipper"
It works fine on one theme but not on the other theme.
The error is "breakloop not defined".
what I don't understand is why one works and the other doesn't.
I have the code where developing tools says the errors in.
Can someone shed some light on this problem?
Friends of Jesus
It works fine on one theme but not on the other theme.
The error is "breakloop not defined".
what I don't understand is why one works and the other doesn't.
I have the code where developing tools says the errors in.
Can someone shed some light on this problem?
Friends of Jesus
$(document).ready(function(){
var lookat=pb.plugin.get('banner_flipper').settings.setup;
for(p=0;p<lookat.length;p++) {
var theme=lookat[p].choose_theme;
if(theme.length > 0){
for(r=0;r<theme.length;r++){
if(pb.data('user').theme_id==theme[r]){
var fwidth=lookat[p].banner_width;
var fheight=lookat[p].banner_height;
var title=lookat[p].front_title;
var tcol=lookat[p].title_color;
var tsize=lookat[p].text_size;
var fimage=lookat[p].front_image_url;
var bimage=lookat[p].back_image_url;
var bmes=lookat[p].back_message;
var ttop=lookat[p].text_top;
var tlt=lookat[p].text_left;
var bttop=lookat[p].back_text_top;
var btlt=lookat[p].back_text_left;
var tsc=lookat[p].text_shadow_color;
var dest=lookat[p].design_label_top;
var desl=lookat[p].design_label_left;
var btsize=lookat[p].back_text_size;
breakloop = true;
break;
}
}
}
if(breakloop) break;
}