Changeset 5900:d169f23c4cb4


Ignore:
Timestamp:
08/24/07 00:39:13 (6 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Parents:
5884:a59b2a5a6293 (diff), 5899:38a3bb3c0def (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge

Location:
sage/server/notebook
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sage/server/notebook/cell.py

    r5879 r5900  
    576576            url = "%s/%s"%(self.url_to_self(), F) 
    577577            if F.endswith('.png') or F.endswith('.bmp') or \ 
    578                    F.endswith('.jpg') or F.endswith('.gif'): 
     578                    F.endswith('.jpg') or F.endswith('.gif'): 
    579579                images.append('<img src="%s?%d">'%(url, self.version())) 
     580            elif F.endswith('.obj'): 
     581                images.append("""<a href="javascript:sage3d_show('%s', '%s_%s', '%s');">Click for interactive view.</a>"""%(url, self.__id, F, F[:-4])) 
     582            elif F.endswith('.mtl') or F.endswith(".objmeta"): 
     583                pass 
    580584            elif F.endswith('.svg'): 
    581585                images.append('<embed src="%s" type="image/svg+xml" name="emap">'%url) 
  • sage/server/notebook/cell.py

    r5893 r5900  
    523523              id         = 'cell_input_%s' 
    524524              onKeyPress = 'return input_keypress(%s,event);' 
     525              onKeyDown  = 'return input_keydown(%s,event);' 
    525526              onInput    = 'cell_input_resize(this); return true;' 
    526527              onBlur     = 'cell_blur(%s); return true;' 
     
    528529              %s 
    529530           >%s</textarea> 
    530         """%(cls, r, ncols, id, id, id, id,'readonly=1' if do_print else '', t) 
     531        """%(cls, r, ncols, id, id, id, id, id,'readonly=1' if do_print else '', t) 
    531532 
    532533        t = t.replace("<","&lt;")+" " 
  • sage/server/notebook/notebook.py

    r5884 r5900  
    14061406        head += '<link rel=stylesheet href="/css/highlight/prettify.css" type="text/css">\n' 
    14071407 
     1408        head +=' <script type="text/javascript" src="/javascript/sage3d/sage3d.js"></script>\n' 
    14081409        return head 
    14091410 
  • sage/server/notebook/notebook.py

    r5892 r5900  
    769769        s += '<link rel=stylesheet href="/css/main.css">\n' 
    770770        s += '</head>\n' 
    771         s += '<body>\n' 
    772771        if do_print: 
     772            s += '<body>\n' 
    773773            s += '<div class="worksheet_print_title">%s</div>'%W.name() 
     774        else: 
     775            s += '<body onLoad="initialize_the_notebook();">\n' 
    774776        s += W.html(include_title=False, do_print=do_print) 
    775777        if do_print: 
     
    17711773        <html> 
    17721774        <head>%s</head> 
    1773         <body>%s</body> 
     1775        <body onLoad="initialize_the_notebook();">%s</body> 
    17741776        <script type="text/javascript">jsmath_init()</script> 
    17751777        </html> 
Note: See TracChangeset for help on using the changeset viewer.