Changeset 1e10434


Ignore:
Timestamp:
Mar 29, 2017, 10:57:54 AM (3 years ago)
Author:
Agnibho Mondal <mondal@…>
Branches:
master
Children:
185d381
Parents:
becb64a
Message:

Fixed click problem on narrow screens.

Location:
mcquick
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mcquick/index.php

    rbecb64a r1e10434  
    156156                </div>
    157157            </div>
    158             <span id="show_question"></span>
     158      <div class="row">
     159      <div id="show_question"></div>
     160      </div>
    159161            <div class="col-sm-offset-3 col-sm-6">
    160162                <button class="btn btn-success btn-lg btn-block" id="submit_paper">Submit Paper</button>
  • mcquick/res/custom.css

    rbecb64a r1e10434  
    4545    left:0;
    4646}
     47.rlab{
     48    padding-left:50px;
     49}
  • mcquick/script.js

    rbecb64a r1e10434  
    287287            +'<div class="panel-body">'
    288288            +'<table class="table table-hover" id="q'+(i-1)+'">'
    289             +'<tr><td><input type="checkbox" name="q'+i+'" data-val="a"/> <strong>a.</strong> </td><td>'+esc(q.get_options()[0])+'</td></tr>'
    290             +'<tr><td><input type="checkbox" name="q'+i+'" data-val="b"/> <strong>b.</strong> </td><td>'+esc(q.get_options()[1])+'</td></tr>'
    291             +'<tr><td><input type="checkbox" name="q'+i+'" data-val="c"/> <strong>c.</strong> </td><td>'+esc(q.get_options()[2])+'</td></tr>'
    292             +'<tr><td><input type="checkbox" name="q'+i+'" data-val="d"/> <strong>d.</strong> </td><td>'+esc(q.get_options()[3])+'</td></tr>';
     289            +'<tr><td><label><input type="checkbox" name="q'+i+'" data-val="a"/> a. <span class="rlab">'+esc(q.get_options()[0])+'</span></label></td></tr>'
     290            +'<tr><td><label><input type="checkbox" name="q'+i+'" data-val="b"/> b. <span class="rlab">'+esc(q.get_options()[1])+'</span></label></td></tr>'
     291            +'<tr><td><label><input type="checkbox" name="q'+i+'" data-val="c"/> c. <span class="rlab">'+esc(q.get_options()[2])+'</span></label></td></tr>'
     292            +'<tr><td><label><input type="checkbox" name="q'+i+'" data-val="d"/> d. <span class="rlab">'+esc(q.get_options()[3])+'</span></label></td></tr>';
    293293        if(paper.get_options()==5){
    294             html=html+'<tr><td><input type="checkbox" name="q'+i+'" data-val="e"/> <strong>e.</strong> </td><td>'+esc(q.get_options()[4])+'</td></tr>';
     294            html=html+'<tr><td><label><input type="checkbox" name="q'+i+'" data-val="e"/> e. <span class="rlab">'+esc(q.get_options()[4])+'</span></label></td></tr>';
    295295        }
    296296        html=html+'</table>'
     
    310310            +'<div class="panel-body">'
    311311            +'<table class="table table-hover" id="q'+(i-1)+'">'
    312             +'<tr><td><input type="radio" name="q'+i+'" data-val="a"/> <strong>a.</strong> </td><td>'+esc(q.get_options()[0])+'</td></tr>'
    313             +'<tr><td><input type="radio" name="q'+i+'" data-val="b"/> <strong>b.</strong> </td><td>'+esc(q.get_options()[1])+'</td></tr>'
    314             +'<tr><td><input type="radio" name="q'+i+'" data-val="c"/> <strong>c.</strong> </td><td>'+esc(q.get_options()[2])+'</td></tr>'
    315             +'<tr><td><input type="radio" name="q'+i+'" data-val="d"/> <strong>d.</strong> </td><td>'+esc(q.get_options()[3])+'</td></tr>';
     312            +'<tr><td><label><input type="radio" name="q'+i+'" data-val="a"/> a. <span class="rlab">'+esc(q.get_options()[0])+'</span></label></td></tr>'
     313            +'<tr><td><label><input type="radio" name="q'+i+'" data-val="b"/> b. <span class="rlab">'+esc(q.get_options()[1])+'</span></label></td></tr>'
     314            +'<tr><td><label><input type="radio" name="q'+i+'" data-val="c"/> c. <span class="rlab">'+esc(q.get_options()[2])+'</span></label></td></tr>'
     315            +'<tr><td><label><input type="radio" name="q'+i+'" data-val="d"/> d. <span class="rlab">'+esc(q.get_options()[3])+'</span></label></td></tr>';
    316316        if(paper.get_options()==5){
    317             html=html+'<tr><td><input type="radio" name="q'+i+'" data-val="e"/> <strong>e.</strong> </td><td>'+esc(q.get_options()[4])+'</td></tr>';
     317            html=html+'<tr><td><label><input type="radio" name="q'+i+'" data-val="e"/> e. <span class="rlab">'+esc(q.get_options()[4])+'</span></label></td></tr>';
    318318        }
    319319        html=html+'</table>'
Note: See TracChangeset for help on using the changeset viewer.