Commit b91005a3c550152b7c90f76d0de8b239c1f179e3
1 parent
6842d21e
Exists in
master
and in
1 other branch
fix small changes layout css survery_index
Showing
4 changed files
with
52 additions
and
20 deletions
Show diff stats
src/web/static/css/survey.css
| ... | ... | @@ -14,10 +14,29 @@ height: 80px; |
| 14 | 14 | margin: 50px; |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | +body.survey #wrap { | |
| 18 | +padding-top: 0px; | |
| 19 | +} | |
| 20 | + | |
| 17 | 21 | /* Display None itens Survey */ |
| 22 | +.coda-nav-left, | |
| 23 | +body.survey #header, | |
| 18 | 24 | #recommender-box #upfile, |
| 19 | 25 | #advanced-button, |
| 20 | 26 | #copyright span, |
| 27 | +#navbar, | |
| 21 | 28 | #pkgs_list { |
| 22 | 29 | display: none; |
| 23 | 30 | } |
| 31 | + | |
| 32 | + | |
| 33 | +/* FIXME: não funciona porque as vezes o resultado final não é 10. | |
| 34 | + * #conclude-button, | |
| 35 | + * #10:target #coda-nav-right-1 { | |
| 36 | + * display: none; | |
| 37 | + * } | |
| 38 | + * #10:target #conclude-button { | |
| 39 | + * display: block; | |
| 40 | + * } | |
| 41 | + */ | |
| 42 | + | ... | ... |
src/web/templates/layout.html
| ... | ... | @@ -23,13 +23,6 @@ $ url_base = "http://localhost:8080" |
| 23 | 23 | $for js in content.jsfiles.split(): |
| 24 | 24 | <script src="$js" type="text/javascript"></script> |
| 25 | 25 | |
| 26 | -<!-- survey slides --> | |
| 27 | -<script type="text/javascript"> | |
| 28 | - $$().ready(function() { | |
| 29 | - $$('#coda-slider-1').codaSlider({dynamicTabs: false, dynamicArrowLeftText: "«", dynamicArrowRightText:"»" }); | |
| 30 | - }); | |
| 31 | -</script> | |
| 32 | - | |
| 33 | 26 | <!-- Dynamic form --> |
| 34 | 27 | <script type="text/javascript"> |
| 35 | 28 | window.onload = function() { |
| ... | ... | @@ -47,6 +40,7 @@ if ((u==null) && (x==null) || (x=="Write your list App here or send a file list |
| 47 | 40 | } |
| 48 | 41 | } |
| 49 | 42 | </script> |
| 43 | + | |
| 50 | 44 | <script type="text/javascript"> |
| 51 | 45 | $$(document).ready(function() { |
| 52 | 46 | $$("#advanced-button").click(function () { |
| ... | ... | @@ -150,6 +144,17 @@ if ((u==null) && (x==null) || (x=="Write your list App here or send a file list |
| 150 | 144 | </div><!-- id="header" --> |
| 151 | 145 | <div id="content"> |
| 152 | 146 | |
| 147 | +<noscript> | |
| 148 | + <div> | |
| 149 | + <p>Unfortunately your browser does not have JavaScript capabilities which are required to exploit full functionality of our survey. This could be the result of two possible scenarios:</p> | |
| 150 | + <ol> | |
| 151 | + <li>You are using an old web browser, in which case you should upgrade it to a newer version. We recommend the latest version of <a href="http://www.getfirefox.com">Firefox</a>.</li> | |
| 152 | + <li>You have disabled JavaScript in you browser, in which case you will have to enable it to properly use our site. <a href="http://www.google.com/support/bin/answer.py?answer=23852">Learn how to enable JavaScript</a>.</li> | |
| 153 | + </ol> | |
| 154 | + </div> | |
| 155 | +</noscript> | |
| 156 | + | |
| 157 | + | |
| 153 | 158 | $:content |
| 154 | 159 | |
| 155 | 160 | <div id="footer"> | ... | ... |
src/web/templates/survey.html
| 1 | 1 | $def with (recommends, pkg_details, form, request) |
| 2 | 2 | $var title: Survey |
| 3 | 3 | $var mod = 'survey'; |
| 4 | -$var cssfiles: static/coda-slider-2.0/stylesheets/coda-slider-2.0.css static/coda-slider-2.0/stylesheets/reset.css | |
| 4 | +$var cssfiles: static/coda-slider-2.0/stylesheets/coda-slider-2.0.css static/css/survey.css | |
| 5 | 5 | $var jsfiles: static/coda-slider-2.0/javascripts/jquery-1.3.2.min.js static/coda-slider-2.0/javascripts/jquery.coda-slider-2.0.js static/coda-slider-2.0/javascripts/jquery.easing.1.3.js |
| 6 | 6 | |
| 7 | -<noscript> | |
| 8 | - <div> | |
| 9 | - <p>Unfortunately your browser does not have JavaScript capabilities which are required to exploit full functionality of our survey. This could be the result of two possible scenarios:</p> | |
| 10 | - <ol> | |
| 11 | - <li>You are using an old web browser, in which case you should upgrade it to a newer version. We recommend the latest version of <a href="http://www.getfirefox.com">Firefox</a>.</li> | |
| 12 | - <li>You have disabled JavaScript in you browser, in which case you will have to enable it to properly use our site. <a href="http://www.google.com/support/bin/answer.py?answer=23852">Learn how to enable JavaScript</a>.</li> | |
| 13 | - </ol> | |
| 14 | - </div> | |
| 15 | -</noscript> | |
| 16 | 7 | |
| 17 | -<form action="/thanks" method="post" enctype="multipart/form-data"> | |
| 8 | +<!-- survey slides --> | |
| 9 | +<script type="text/javascript"> | |
| 10 | + $$().ready(function() { | |
| 11 | + $$('#coda-slider-1').codaSlider({dynamicTabs: false, dynamicArrowLeftText: "«", dynamicArrowRightText:"next »" }); | |
| 12 | + }); | |
| 13 | +</script> | |
| 14 | + | |
| 15 | + | |
| 16 | +<div id="maincontent"> | |
| 17 | +<div class="innertube"> | |
| 18 | + | |
| 19 | +<h1>AppRecommender Survey</h1> | |
| 20 | + | |
| 21 | +<form action="/thanks" method="post" enctype="multipart/form-data" name="surveyform"> | |
| 18 | 22 | |
| 19 | 23 | <div class="coda-slider-wrapper"> |
| 20 | 24 | <div class="coda-slider preload" id="coda-slider-1"> |
| ... | ... | @@ -46,6 +50,10 @@ $for pkg in pkg_details: |
| 46 | 50 | </div><!-- .coda-slider --> |
| 47 | 51 | </div><!-- .coda-slider-wrapper --> |
| 48 | 52 | |
| 49 | -<input type="submit" value="Conclude" /> | |
| 53 | +<input id="conclude-button" type="submit" value="Conclude" /> | |
| 50 | 54 | |
| 51 | 55 | </form> |
| 56 | + | |
| 57 | + | |
| 58 | +</div><!-- class="innertube" --> | |
| 59 | +</div><!-- id="maincontent" --> | ... | ... |