2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00
Files
CATI_Tool/include/limesurvey/admin/scripts/templates.js
2010-01-14 07:45:37 +00:00

37 lines
1.2 KiB
JavaScript

// $Id: templates.js 6963 2009-05-28 03:49:18Z jcleeland $
// based on TTabs from http://interface.eyecon.ro/
$(document).ready(function(){
if($("#changes").length > 0) {
editAreaLoader.init({
language: adminlanguage,
id : "changes" // textarea id
,syntax: highlighter // syntax to be uses for highgliting
,font_size: 8
,allow_toggle: false
,word_wrap: true
,start_highlight: true // to display with highlight mode on start-up
});
}
$('#iphone').click(function(){
$('#previewiframe').css("width", "320px");
$('#previewiframe').css("height", "396px");
});
$('#640').click(function(){
$('#previewiframe').css("width", "640px");
$('#previewiframe').css("height", "480px");
});
$('#800').click(function(){
$('#previewiframe').css("width", "800px");
$('#previewiframe').css("height", "600px");
});
$('#1024').click(function(){
$('#previewiframe').css("width", "1024px");
$('#previewiframe').css("height", "768px");
});
$('#full').click(function(){
$('#previewiframe').css("width", "95%");
$('#previewiframe').css("height", "768px");
});
});