Widget:UserExamQuery: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 7: Line 7:
.headerCell{
.headerCell{
display: inline-block;
display: inline-block;
width:15%;
width:20%;
}
.question{
background: #C7DDEE;
color:#000;
display: inline-block;
width:20%;
height:30px;
}
}
.cell
.cell
{ background:#C7DDEE none repeat-x scroll center left; color:#000; padding:7px 15px; display: inline-block; width:15%;}
{ background:#C7DDEE url('http://www.jankoatwarpspeed.com/wp-content/uploads/examples/expandable-rows/row_bkg.png') repeat-x scroll center left; color:#000; display: inline-block; width:20%; height:30px; }
#header { background:#7CB8E2 url(http://www.jankoatwarpspeed.com/wp-content/uploads/examples/expandable-rows/header_bkg.png) repeat-x scroll center left; color:#fff; width:80%; padding:7px 15px; text-align:left;  
#header { background:#7CB8E2 url('http://www.jankoatwarpspeed.com/wp-content/uploads/examples/expandable-rows/header_bkg.png') repeat-x scroll center left; color:#fff; width:100%; height:30px; text-align:left;  
display: inline-block;}
display: inline-block;}
.mw-collapsible-toggle{
.mw-collapsible-toggle{
position:absolute;
position:absolute;
/* @noflip */
/* @noflip */
right: 3px;
right: 20px;
}
}
</style>
</style>
Line 59: Line 66:
                 outstring += "<div class='mw-collapsible-content'>";
                 outstring += "<div class='mw-collapsible-content'>";
                 $.each(value.questions, function(ind, val){
                 $.each(value.questions, function(ind, val){
                 outstring += val.title+"<br />";
                 outstring += "<span class='question'>"+val.title+"</span>";
                if(val.timestam != null){
                      var timestam = new Date (val.timestam * 1000).toDateString();
                      outstring += "<span class='question'>"+timestam+"</span>";
                }
                outstring += "<span class='question'>"+val.submitted+"</span><br />";
                 });
                 });
                 outstring += "</div>"
                 outstring += "</div>"

Latest revision as of 19:40, 24 July 2014