juan_gandhi: (VP)
[personal profile] juan_gandhi
  def questionHTML(i: Int, q: String) =
    <span>
      <h3>Question {i+1}</h3>{q}
      <br/><br/><br/><br/><br/><br/>
  </span>

  def variantHTML(v: List[String]) =
    <p style="page-break-after:always;">
      <h1><center>{title}</center></h1>
      {v.zipWithIndex map {case(q,j) => questionHTML(j,q)}}
    </p>

  def html(variants: List[List[String]]) = {
    <html><body>{
      variants map variantHTML
    }</body></html>
  }

Date: 2014-12-06 02:01 am (UTC)
From: [identity profile] doxtop.livejournal.com
я имел ввиду под жестью, 6-тикратный бр :)редактор в жж что-то совсем не дает код вставить.

Date: 2014-12-06 05:10 pm (UTC)
From: [identity profile] juan-gandhi.livejournal.com
Если бы я решал задачу в общем виде, я, наверно, вычислял бы размеры таблицы или позицию div-а.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 27th, 2025 07:59 pm
Powered by Dreamwidth Studios