Changeset 2359 for 2011/26


Ignore:
Timestamp:
2011-06-30 14:08:48 (8 years ago)
Author:
tekrjant
Message:

CSS embedded to the web page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/build_games.py

    r2327 r2359  
    1818table = None 
    1919msbuild = "msbuild" 
     20 
     21CSS = """ 
     22tr { 
     23  color: white; 
     24} 
     25 
     26.success { 
     27  background-color: green; 
     28} 
     29 
     30.fail { 
     31  background-color: red; 
     32} 
     33""" 
    2034 
    2135 
     
    112126 
    113127        head = addElement(html, "head") 
    114         css_link = addElement(head, "link") 
    115         css_link.setAttribute("href", "build.css") 
    116         css_link.setAttribute("rel", "StyleSheet") 
    117         css_link.setAttribute("type", "text/css") 
     128        style = addTextElement(head, "style", CSS) 
     129        style.setAttribute("type", "text/css") 
    118130        addTextElement(head, "title", "Build") 
    119131 
Note: See TracChangeset for help on using the changeset viewer.