User:Quarenon/survey.js

if (wgPageName == 'RuneScape:Survey' && navigator.appName.indexOf('MSIE') == -1) { importStylesheet('User:Quarenon/compare.css'); $(function {		$('a.external').click(function { var href = $(this).attr('href');

$(' ').attr('id', 'overlay').appendTo('body').show;

var $closeLink = $(' ').click(function {				$('#modal').fadeOut('normal', function { $('#modal').remove; $('#overlay').remove; });			}).attr('title', 'Exit the survey.').css({'float': 'right', 'cursor': 'pointer'}).html('');

var $usageLink = $('').click(function {				$('#rsSurveyFrame').attr('src', 'http://www.surveymonkey.com/s/LGC2Q9J');				return false;			}).css({'cursor': 'pointer'}).text('Page 1: Usage statistics survey');

var $uxLink = $('').click(function {				$('#rsSurveyFrame').attr('src', 'http://www.surveymonkey.com/s/LGDLZXR');				return false;			}).css({'cursor': 'pointer'}).text('Page 2: User experience survey');

var $p = $('').append($closeLink).append($usageLink).append(' | ').append($uxLink);

var $pNote = $('').text('Please be sure to complete both pages before exiting. Thank you!').css('fontWeight', 'bold');

$(' ').append($p.clone(true)).append(' ').append($p.clone(true)).append($pNote).attr('id', 'modal').appendTo('body'); // Center $('#modal').css({'left': $(window).width / 2 - ($('#modal').width / 2), 'height': 0});

$('#modal').animate({				height: '700px'			}, 1500);

return false; });	}); }