2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Merging the updated Limesurvey 1.92+ branch of queXS to trunk

This commit is contained in:
azammitdcarf
2012-11-21 04:04:39 +00:00
parent 153fc8ca0d
commit c569559964
856 changed files with 254260 additions and 819988 deletions

View File

@@ -1,10 +1,10 @@
</div><!--endcontent-->
<div id="footer">
<ul id="credits" class="wrapper">
<li id="poweredby"><a href="http://www.limesurvey.org/" title="LimeSurvey Website">Powered by LimeSurvey</a>
<ul id="credits">
<li id="poweredby" class="first"><a href="http://www.limesurvey.org/" title="LimeSurvey Website">Powered by LimeSurvey</a>
<li id="licence">This template is distributed under <a href="http://www.gnu.org/licenses/gpl.txt">GPL licence</a>
</li>
<li id="donate">LimeSurvey is Free software</li>
<li id="donate" class="last">LimeSurvey is Free software</li>
</ul>
</div>
</div><!-- end container-->

View File

@@ -0,0 +1,4 @@
/* For versions of IE 6 and older style */
/* use .ie6 specfic class in template.css */

View File

@@ -0,0 +1,3 @@
/* For versions of IE 7 and older style */
/* use .ie7 specfic class in template.css */

View File

@@ -0,0 +1,3 @@
/* For versions of IE 8 and older style */
/* use .ie8 specfic class in template.css */

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 B

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 B

After

Width:  |  Height:  |  Size: 472 B

View File

@@ -1,282 +1,282 @@
body
{
font-family: arial, helvetica, sans-serif;
font-size: 12px;
}
h1,h2,h3,h4
{
font-family: verdana, arial, helvetica, sans-serif;
}
h2
{
margin-top: 2em;
}
h3
{
margin-top: 0%;
}
*
{
page-break-after: auto;
}
p.q-type-help
{
margin-bottom: 0.5em;
}
div.q-help
{
margin-top: 1.5em;
margin-bottom: 0%;
}
div.q-answer
{
font-size: 110%;
}
div.q-answer ul
{
margin-left: 0%;
padding-left: 0.2em;
}
div.q-answer ul li
{
list-style-type:none;
line-height: 1.9em;
margin-left: 0%;
padding-left: 0%;
}
div.survey-group
{
page-break-after: always;
}
div.boilerplate
,div.choice-5-pt-radio
,div.date
,div.list-radio-flexible
,div.list-radio
,div.list-dropdown-flexible
,div.list-dropdown
,div.list-with-comment
,div.ranking
,div.multiple-opt
,div.language
,div.multiple-opt-comments
,div.multiple-short-txt
,div.numeric-multi
,div.numeric
,div.text-short
,div.text-long
,div.text-huge
,div.yes-no
,div.gender
,div.array-5-pt
,div.array-10-pt
,div.array-yes-uncertain-no
,div.array-increase-same-decrease
,div.array-flexible-row
,div.array-flexible-column
,div.array-multi-flexi
,div.array-multi-flexi-text
,div.array-flexible-duel-scale
{
border: 0.1em solid #aaa;
padding: 1em;
margin: 1em 0.5em;
clear: both;
page-break-inside: avoid;
page-break-before: auto;
}
.breakbefore {
page-break-before:always !important;
}
.other
{
}
.question ul
,.question ul li
{
margin-left: 0%;
padding-left: 0%;
list-style: none;
}
.question ul li { margin-bottom: 0.5em; }
img.input-radio
,img.input-checkbox
{
position: relative;
top: 1px;
margin-right: 0.5em;
}
div.input-other
,div.input-othercomment
,div.input-rank
,div.input-text
,div.input-textarea
{
border: 0.1em solid #666666;
}
li.other
{
margin-top: 0.3em;
}
div.input-other
,div.input-othercomment
{
width: 20em;
height: 2em;
display:inline-block;
}
.multiple-opt div.input-other
{
padding-left: 5.5em;
}
.multiple-opt-comments div.other-replacettext
{
display:table-cell;
}
.multiple-opt-comments div.input-other {
width: 10em;
display:inline-block;
margin-left:5px;
}
.multiple-opt-comments div.input-othercomment {
width: 24em;
display:table-cell;
}
div.other-replacetext
{
white-space:nowrap;
}
.ranking .q-answer li
{
padding-left: 4em;
line-height: 2em;
}
.ranking li div.input-rank
{
margin: 0% 0% -1.8em -4em;
width: 3em;
height: 2em;
}
.multiple-opt-comments .q-answer li
,.multiple-short-txt .q-answer li
,.numeric-multi .q-answer li
{
line-height: 2em;
}
.multiple-opt-comments div.input-text,
.multiple-short-txt div.input-text,
.numeric-multi div.input-text {
display: table-cell;
}
.multiple-opt-comments .q-answer ul li span,
.multiple-short-txt .q-answer ul li span,
.numeric-multi .q-answer ul li span
{
display:table-cell;
padding-right:5px;
}
.multiple-opt-comments .q-answer ul li ,
.multiple-short-txt .q-answer ul li ,
.numeric-multi .q-answer ul li {
display:table-row;
}
.multiple-opt-comments .q-answer ul ,
.multiple-short-txt .q-answer ul ,
.numeric-multi .q-answer ul {
display:table;
border-spacing: 3px;
}
#limesurvey .q-answer table thead th
,#limesurvey .q-answer table .repeat th
{
text-align: center;
vertical-align: bottom;
font-weight: normal;
padding: 0% 1em;
}
#limesurvey .q-answer table tbody td
{
text-align: center;
}
#limesurvey .q-answer table tbody td img
{
margin: 0%;
}
#limesurvey .q-answer table tbody th.answertext
,#limesurvey .q-answer table tbody th.arraycaptionleft
{
text-align: left;
font-weight: normal;
}
/*
div.array-5-pt .q-answer table thead th
,div.array-10-pt table thead th
,div.array-yes-uncertain-no .q-answer table thead th
,div.array-increase-same-decrease .q-answer table thead th
,div.array-flexible-row .q-answer table thead th
,div.array-flexible-column .q-answer table thead th
,div.array-multi-flexi .q-answer table thead th
,div.array-multi-flexi-text .q-answer table thead th
,div.array-flexible-duel-scale .q-answer table thead th
*/
div.array-multi-flexi .q-answer table tbody td div.input-text
{
margin-left: auto;
margin-right: auto;
}
.array-flexible-column tbody th.arraycaptionleft
{
padding-right: 1em;
}
#limesurvey .q-answer table tbody th.answertextright
{
text-align: left;
font-weight: normal;
}
/*
.array-increase-same-decrease {}
.array-flexible-row {}
.array-flexible-column {}
.slider {}
.array-multi-flexi {}
.array-flexible-duel-scale {}
*/
.array-flexible-column col.odd
,.array-flexible-column th.odd
{
background-color: #0c1c2b;
padding: 0% 0.3em;
}
body
{
font-family: arial, helvetica, sans-serif;
font-size: 12px;
}
h1,h2,h3,h4
{
font-family: verdana, arial, helvetica, sans-serif;
}
h2
{
margin-top: 2em;
}
h3
{
margin-top: 0%;
}
*
{
page-break-after: auto;
}
p.q-type-help
{
margin-bottom: 0.5em;
}
div.q-help
{
margin-top: 1.5em;
margin-bottom: 0%;
}
div.q-answer
{
font-size: 110%;
}
div.q-answer ul
{
margin-left: 0%;
padding-left: 0.2em;
}
div.q-answer ul li
{
list-style-type:none;
line-height: 1.9em;
margin-left: 0%;
padding-left: 0%;
}
div.survey-group
{
page-break-after: always;
}
div.boilerplate
,div.choice-5-pt-radio
,div.date
,div.list-radio-flexible
,div.list-radio
,div.list-dropdown-flexible
,div.list-dropdown
,div.list-with-comment
,div.ranking
,div.multiple-opt
,div.language
,div.multiple-opt-comments
,div.multiple-short-txt
,div.numeric-multi
,div.numeric
,div.text-short
,div.text-long
,div.text-huge
,div.yes-no
,div.gender
,div.array-5-pt
,div.array-10-pt
,div.array-yes-uncertain-no
,div.array-increase-same-decrease
,div.array-flexible-row
,div.array-flexible-column
,div.array-multi-flexi
,div.array-multi-flexi-text
,div.array-flexible-duel-scale
{
border: 0.1em solid #aaa;
padding: 1em;
margin: 1em 0.5em;
clear: both;
page-break-inside: avoid;
page-break-before: auto;
}
.breakbefore {
page-break-before:always !important;
}
.other
{
}
.question ul
,.question ul li
{
margin-left: 0%;
padding-left: 0%;
list-style: none;
}
.question ul li { margin-bottom: 0.5em; }
img.input-radio
,img.input-checkbox
{
position: relative;
top: 1px;
margin-right: 0.5em;
}
div.input-other
,div.input-othercomment
,div.input-rank
,div.input-text
,div.input-textarea
{
border: 0.1em solid #666666;
}
li.other
{
margin-top: 0.3em;
}
div.input-other
,div.input-othercomment
{
width: 20em;
height: 2em;
display:inline-block;
}
.multiple-opt div.input-other
{
padding-left: 5.5em;
}
.multiple-opt-comments div.other-replacettext
{
display:table-cell;
}
.multiple-opt-comments div.input-other {
width: 10em;
display:inline-block;
margin-left:5px;
}
.multiple-opt-comments div.input-othercomment {
width: 24em;
display:table-cell;
}
div.other-replacetext
{
white-space:nowrap;
}
.ranking .q-answer li
{
padding-left: 4em;
line-height: 2em;
}
.ranking li div.input-rank
{
margin: 0% 0% -1.8em -4em;
width: 3em;
height: 2em;
}
.multiple-opt-comments .q-answer li
,.multiple-short-txt .q-answer li
,.numeric-multi .q-answer li
{
line-height: 2em;
}
.multiple-opt-comments div.input-text,
.multiple-short-txt div.input-text,
.numeric-multi div.input-text {
display: table-cell;
}
.multiple-opt-comments .q-answer ul li span,
.multiple-short-txt .q-answer ul li span,
.numeric-multi .q-answer ul li span
{
display:table-cell;
padding-right:5px;
}
.multiple-opt-comments .q-answer ul li ,
.multiple-short-txt .q-answer ul li ,
.numeric-multi .q-answer ul li {
display:table-row;
}
.multiple-opt-comments .q-answer ul ,
.multiple-short-txt .q-answer ul ,
.numeric-multi .q-answer ul {
display:table;
border-spacing: 3px;
}
#limesurvey .q-answer table thead th
,#limesurvey .q-answer table .repeat th
{
text-align: center;
vertical-align: bottom;
font-weight: normal;
padding: 0% 1em;
}
#limesurvey .q-answer table tbody td
{
text-align: center;
}
#limesurvey .q-answer table tbody td img
{
margin: 0%;
}
#limesurvey .q-answer table tbody th.answertext
,#limesurvey .q-answer table tbody th.arraycaptionleft
{
text-align: left;
font-weight: normal;
}
/*
div.array-5-pt .q-answer table thead th
,div.array-10-pt table thead th
,div.array-yes-uncertain-no .q-answer table thead th
,div.array-increase-same-decrease .q-answer table thead th
,div.array-flexible-row .q-answer table thead th
,div.array-flexible-column .q-answer table thead th
,div.array-multi-flexi .q-answer table thead th
,div.array-multi-flexi-text .q-answer table thead th
,div.array-flexible-duel-scale .q-answer table thead th
*/
div.array-multi-flexi .q-answer table tbody td div.input-text
{
margin-left: auto;
margin-right: auto;
}
.array-flexible-column tbody th.arraycaptionleft
{
padding-right: 1em;
}
#limesurvey .q-answer table tbody th.answertextright
{
text-align: left;
font-weight: normal;
}
/*
.array-increase-same-decrease {}
.array-flexible-row {}
.array-flexible-column {}
.slider {}
.array-multi-flexi {}
.array-flexible-duel-scale {}
*/
.array-flexible-column col.odd
,.array-flexible-column th.odd
{
background-color: #0c1c2b;
padding: 0% 0.3em;
}

View File

@@ -1,13 +1,16 @@
<div {QUESTION_ESSENTIALS} class="question-wrapper {QUESTION_CLASS}{QUESTION_MAN_CLASS}{QUESTION_INPUT_ERROR_CLASS}">
<div class="question-text">
<span class="asterisk">{QUESTION_MANDATORY}</span><span class="qnumcode">{QUESTION_NUMBER} {QUESTION_CODE} </span>{QUESTION_TEXT}
</div>
<div class="error-wrapper">{QUESTION_MAN_MESSAGE}{QUESTION_VALID_MESSAGE}</div>
<div class="tip help">{QUESTION_HELP}</div>
<div class="answers">
{ANSWER}
</div>
<div class="question-help">
{QUESTIONHELP}
</div>
</div>
<div {QUESTION_ESSENTIALS} class="question-wrapper {QUESTION_CLASS}{QUESTION_MAN_CLASS}{QUESTION_INPUT_ERROR_CLASS}">
<div class="question-text">
<span class="asterisk">{QUESTION_MANDATORY}</span><span class="qnumcode">{QUESTION_NUMBER} {QUESTION_CODE} </span>{QUESTION_TEXT}
</div>
<div class="help-wrapper">
<div class="mandatory error">{QUESTION_MAN_MESSAGE}</div>
{QUESTION_VALID_MESSAGE}
<div class="tip">{QUESTION_HELP}</div>
</div>
<div class="answers-wrapper">
{ANSWER}
</div>
<div class="question-help">
{QUESTIONHELP}
</div>
</div>

View File

@@ -4,5 +4,5 @@
<div class="note">{SAVEMESSAGE}
<div class="form">{SAVEFORM}</div>
</div>
<p class="tools"{RETURNTOSURVEY}</p>
</div>
<p class="tools">{RETURNTOSURVEY}</p>
</div>

View File

@@ -2,6 +2,7 @@
<title>{SURVEYNAME} {GROUPNAME} {SITENAME}</title>
<meta name="generator" content="LimeSurvey http://www.limesurvey.org" />
<meta name="viewport" content="width=device-width" />
<!-- The following CSS hides visual elements of the progress bar from screen readers. -->
<style type="text/css" media="aural tty">
progress-graph .zero, progress-graph .graph, progress-graph .cent { display: none; }
@@ -10,17 +11,19 @@
{TEMPLATECSS}
<link rel="stylesheet" type="text/css" media="print" href="{TEMPLATEURL}print.css" />
<script type="text/javascript" src="{TEMPLATEURL}template.js"></script>
<link rel="shortcut icon" href="{TEMPLATEURL}favicon.ico" />
<link rel="shortcut icon" href="{TEMPLATEURL}favicon.ico" />
{GOOGLE_ANALYTICS_JAVASCRIPT}
</head>
<!--[if lt IE 7 ]> <body class="lang-{SURVEYLANGAGE} {SURVEYFORMAT} ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="lang-{SURVEYLANGAGE} {SURVEYFORMAT} ie ie7"> <![endif]-->
<!--[if IE 8 ]> <body class="lang-{SURVEYLANGAGE} {SURVEYFORMAT} ie ie8"> <![endif]-->
<!--[if IE 9 ]> <body class="lang-{SURVEYLANGAGE} {SURVEYFORMAT} ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--><body class="lang-{SURVEYLANGAGE} {SURVEYFORMAT}"><!--<![endif]-->
<!--[if lt IE 7 ]> <body class="lang-{SURVEYLANGUAGE} {SURVEYFORMAT} ie ie6 no-js"> <![endif]-->
<!--[if IE 7 ]> <body class="lang-{SURVEYLANGUAGE} {SURVEYFORMAT} ie ie7 no-js"> <![endif]-->
<!--[if IE 8 ]> <body class="lang-{SURVEYLANGUAGE} {SURVEYFORMAT} ie ie8 no-js"> <![endif]-->
<!--[if IE 9 ]> <body class="lang-{SURVEYLANGUAGE} {SURVEYFORMAT} ie ie9 no-js"> <![endif]-->
<!--[if gt IE 9]><!--><body id="body" class="lang-{SURVEYLANGUAGE} {SURVEYFORMAT} no-js"><!--<![endif]-->
<script type='text/javascript'>/*<![CDATA[*/(function(H){ H.className=H.className.replace(/\bno-js\b/,'js') })(document.getElementsByTagName('body')[0]);/*]]>*/</script>
<div id="container">
<div id="head">
<div class="wrapper">
<a href="http://www.limesurvey.org" title="The survey software" id="link-logo"><img src="{TEMPLATEURL}logo.png" alt="LimeSurvey" id="logo"/></a>
<a href="#" title="Made with LimeSurvey" id="link-logo"><img src="{TEMPLATEURL}logo.png" alt=" " id="logo"/></a>
<h1 id="sitename">{SITENAME}</h1>
</div>
</div>

View File

@@ -13,91 +13,63 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
body{text-align:right;direction:rtl;}
body{direction:rtl;}
ul,ol{margin:.75em 32px .75em 0;}
blockquote{border-left:none 0 #ddd;border-right:solid 2px #ddd;margin:.75em 20px .75em 0;padding:0 10px 0 0}
dd{margin:.25em 32px .25em 0}
#progress-wrapper #progress-pre{float:right;text-align:left;margin:0 0 0 5px}
#progress-wrapper .ui-widget-content{float:left;text-align:right;}
#progress-wrapper #progress-post{float:right;text-align:right;margin:0 5px 0 0}
.slider_showmin{float:right;text-align:right;}
.slider_showmax{float:left;text-align:left;}
.slider_lefttext{padding-right:0;padding-left:1em;text-align:left;}
.slider_righttext{padding-left:0;padding-right:1em;}
.slider_callout{margin-left:0;margin-right:.8em;text-align:left;}
.ie .ui-slider{float:right;}
.ie .slider_lefttext {float: right;}
.ie .slider_righttext {float: right;}
.ie6 .wrapper,.ie6 #content,.ie7 .wrapper,.ie7 #content{text-align:right;}
#footer ul#credits li.first{text-align:right;}
#footer ul#credits li.last{text-align:left;}
.ie6 #footer ul#credits li,.ie7 #footer ul#credits li{width:33%;display:block;float:right;}
h2#surveytitle{text-align:right;}
ul.tools{text-align: right;}
#surveylist{text-align: right;}
.question-help img{margin:1px 1px 5px 5px;}
.answer-wrapper .tip{text-align:right;}
/* answer table */
table.question tbody{border-width:0 0 0 1px;}
table.question thead th{border-width:1px 0 0 1px;}
table.question thead td,table.question thead th:first-child{border-width:0px 0px 0px 1px;}
table.question tbody td{border-width:1px 0px 0px 1px;border-style:solid;}
ul.tools{
text-align: right;
}
ul.tools li{margin-left:1em;}
ul#surveylist{
table.question tbody th.answertext,table.question tbody th.arraycaptionleft{text-align:left;}
.answers-wrapper li {
text-align: right;
}
ul#surveylist li{
float:right;
clear:right ;
}
.wrapper,#content{text-align:right;}
.asterisk {padding-right:0;padding-left:1em;}
.qnumcode{padding-right:0;padding-left:1em;}
table.question tbody th.answertext,table.question tbody th.arraycaptionright{text-align:left;}
table.question tbody th.answertextleft{text-align:right;}
.choice-5-pt-radio .answers li
,.list-radio-flexible .answers li
,.list-radio .answers li
,.list-with-comment .answers li
,.multiple-opt .answers li
,.multiple-opt-comments .answers li
,.multiple-short-txt .answers li
,.numeric-multi .answers li
,.yes-no .answers li
,.gender .answers li {
text-align: right;
margin: 1em 0;
}
.choice-5-pt-radio li
,.list-radio-flexible li
,.list-radio li
,.list-with-comment li
.choice-5-pt-radio .answers-wrapper ul li
,.yes-no .answers-wrapper ul li
,.gender .answers-wrapper ul li
{
margin-right: 3em;
text-indent: -1.6em;
padding: 0 0 0 1em;
text-align:right;
}
.choice-5-pt-radio ul li
,.yes-no ul li
,.gender ul li
.choice-5-pt-radio .answers-wrapper li
,.list-radio-flexible .answers-wrapper li
,.list-radio .answers-wrapper li
,.list-with-comment .answers-wrapper li
{
padding: 0% 2em 0% 0%;
text-align:right;
margin-right:3em;margin-left: 0;
}
.date p.question { margin-right: 1em;margin-left: 1em; text-align:center;}
.date p.tip
,.numeric-multi p.tip
,.numeric p.tip
.choice-5-pt-radio .answers-wrapper ul li
,.yes-no .answers-wrapper ul li
,.gender .answers-wrapper ul li
{
padding-right: 1.5em;
padding: 0 0 0 2em;
text-align:right;
}
.numeric p.question
{
margin-right: 1em;margin-left: 1em;
}
.numeric-multi p.tip.error
,.numeric-multi input.tip.error
{
text-align: right;
}
.numeric-multi p.tip.good
,.numeric-multi input.tip.good
{
text-align: right;
}
table.rank select{padding-right:0.3em;}
/* STYLES NOT YET DEFINED - - - - -
.list-dropdown {}
*/
.list-with-comment div.list
{
float: right;
@@ -116,61 +88,69 @@ table.rank select{padding-right:0.3em;}
float: right;
}
.numeric-multi ul {}
.numeric-multi ul.computed
{
float:right;
padding-left: 2em;
}
.numeric-multi ul li label
,.multiple-opt-comments ul li span.option
,.multiple-short-txt ul li label
{
float:right;
width:45%;
padding: 0.3em 1em 0% 0%;
padding-left: 2em;padding-right: 0;
}
.numeric-multi ul li label
,.multiple-short-txt ul li label
{
text-align:left;
}
.multinum-slider{text-align:center;display:inline;}
.numeric-multi ul li span.input
,.multiple-opt-comments ul li span.comment
,.multiple-short-txt ul li span
{
text-align: right;
}
.multiple-opt .answers ul li input.checkbox
, .list-radio .answers ul li input.radio
, .list-with-comment .answers ul li input.radio
, .list-radio-flexible .answers ul li input.radio
.ie6 .numeric-multi ul li label,.ie7 .numeric-multi ul li label
,.ie6 .multiple-opt-comments ul li span.option,.ie7 .multiple-opt-comments ul li span.option
,.ie6 .multiple-short-txt ul li label,.ie7 .multiple-short-txt ul li label
{
margin-right:45%;
clear:right;
float:right;
padding: 0.3em 0 0 1em;
}
.multiple-opt .answers-wrapper ul li
, .list-radio .answers-wrapper ul li
, .list-radio-flexible .answers-wrapper ul li
{
padding-right:35%;padding-left:0;
}
.multiple-opt .answers-wrapper ul li input.checkbox
, .list-radio .answers-wrapper ul li input.radio
, .list-radio-flexible .answers-wrapper ul li input.radio
, .list-with-comment .answers-wrapper ul li input.radio
{
margin-left:0;margin-right:-30px;
}
@media screen and (max-width: 640px) {
.multiple-opt .answers-wrapper ul li
, .list-radio .answers-wrapper ul li
, .list-with-comment .answers-wrapper ul li
, .list-radio-flexible .answers-wrapper ul li
{
padding-right:30px;padding-left:0;
}
}
.text-short input
,.text-short textarea
,.text-short textarea
,.text-long textarea
,.text-huge textarea
{
margin-right: 1em;
text-align:right;
margin-right: 1em;margin-left: 0;
text-align:right;
}
.text-short .question
,.text-short .answers
,.text-long .answers
,.text-huge .answers
ul.cols-2 li , ul.cols-2-ul
, ul.cols-3 li , ul.cols-3-ul
, ul.cols-4 li , ul.cols-4-ul
, ul.cols-5 li , ul.cols-5-ul
, ul.cols-6 li , ul.cols-6-ul
, ul.cols-7 li , ul.cols-7-ul
, ul.cols-8 li , ul.cols-8-ul
{
text-align:center;
}
/* Replacement of defautlt jquery-ui */
.slider_callout {
text-align:left;
float: right;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,59 +1,89 @@
/*
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* Copyright (C) 2010 GsiLL / Denis Chenu
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
*
* Description: Javascript file for templates. Put JS-functions for your template here.
*
*
* $Id:$
*/
/*
* The function focusFirst puts the Focus on the first non-hidden element in the Survey.
*
* Normally this is the first input field (the first answer).
*/
function focusFirst(Event)
{
$('#limesurvey :input:visible:enabled:first').focus();
}
// Replace common alert with jquery-ui dialog
// Uncomment this part to test this function
/*function alert(text) {
var $dialog = $('<div></div>')
.html(text)
.dialog({
title: 'Alert',
buttons: { "Ok": function() { $(this).dialog("close"); } },
modal: true
});
$dialog.dialog('open');
}*/
/*
* The focusFirst function is added to the eventlistener, when the page is loaded.
*
* This can be used to start other functions on pageload as well. Just put it inside the 'ready' function block
*/
$(document).ready(function(){
// focusFirst(); /** Uncomment if you want to use the focusFirst function **/
})
/*
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* Copyright (C) 2010 GsiLL / Denis Chenu
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
*
* Description: Javascript file for templates. Put JS-functions for your template here.
*
*
* $Id:$
*/
/*
* The function focusFirst puts the Focus on the first non-hidden element in the Survey.
*
* Normally this is the first input field (the first answer).
*/
function focusFirst(Event)
{
$('#limesurvey :input:visible:enabled:first').focus();
}
// Add empty class to input text and textarea
function addClassEmpty(){
$('.answers-wrapper input.text[value=""]').addClass('empty');
$('.answers-wrapper input[type=text][value=""]').addClass('empty');
$('.answers-wrapper textarea').each(function(index) {
if ($(this).val() == ""){
$(this).addClass('empty');
}
});
$("input.text,input[type=text]").live("blur", function(){
if ($(this).val() == ""){
$(this).addClass('empty');
}else{
$(this).removeClass('empty');
}
});
$("textarea").live("blur", function(){
if ($(this).val() == ""){
$(this).addClass('empty');
}else{
$(this).removeClass('empty');
}
});
}
// Replace common alert with jquery-ui dialog
function jalert(text) {
var $dialog = $('<div></div>')
.html(text)
.dialog({
title: '',
dialogClass: 'alert',
buttons: { "Ok": function() { $(this).dialog("close"); } },
modal: true
});
$dialog.dialog('open');
}
// Uncomment this part to replace default alert
/*function alert(text) {
jalert(text);
}*/
/*
* The focusFirst function is added to the eventlistener, when the page is loaded.
*
* This can be used to start other functions on pageload as well. Just put it inside the 'ready' function block
*/
$(document).ready(function(){
// focusFirst(); /** Uncomment if you want to use the focusFirst function **/
addClassEmpty();
//$(".help-wrapper > span,.help-wrapper > div").not(".error-wrapper").not(":empty").css('display','block');
//$(".help-wrapper .error-wrapper > span,.help-wrapper .error-wrapper > div").not(".error-wrapper").not(":empty").css('display','block');
})