/*jshint undef:true, strict:true */ /*global mw, jQuery, newNode */ /** Adds a feedback to to the bottom of the page on the left. This has only been tested with Monobook as it is intended for IPs only. **/ var fb_comment_url = mw.config.get('wgScript') + "?title=Wiktionary:Feedback"+ "&action=edit§ion=new"+ "&preload=Wiktionary:Feedback%2Fpreload"+ "&editintro=Wiktionary:Feedback%2Fintro"+ "&preloadtitle="+ encodeURIComponent("[[:"+mw.config.get('wgPageName').replace(/_/g, ' ')+"]]"); var fb_thanks = "Thank you for giving us some of your time."; var fb_comment = "If you have time, leave us a note."; var fb_questions = []; fb_questions[0] = ["Submit anonymous feedback about Wiktionary:", ['Good', 'Bad', 'Messy', 'Mistake in definition', 'Confusing', 'Could not find the word I want', 'Incomplete', 'Entry has inaccurate information', 'Definition is too complicated'] ]; var fb_options; var fb_text; var fb_sent = false; var fb_sent2= false; function fb_buildBox(){ var sidebar = document.getElementById('mw-panel'); if(!sidebar) return false; /* var list = newNode('ul',{'id':'fb_list'}); for(var i=0;i