Quellcode durchsuchen

Added version number to build.

tags/1.0
Matthew Petroff vor 12 Jahren
Ursprung
Commit
80017c887f
3 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. +1
    -3
      VERSION
  2. +1
    -1
      src/pannellum.htm
  3. +3
    -1
      utils/build.py

+ 1
- 3
VERSION Datei anzeigen

@@ -1,3 +1 @@
pannellum
Version: 0.1
Date: 2011-04-18
0.1

+ 1
- 1
src/pannellum.htm Datei anzeigen

@@ -35,7 +35,7 @@
<div id="nocanvas" class="noselect"><p>A browser supporting WebGL (and the canvas element) is required to view this panorama.</p></div>
<div id="about_box" class="noselect"><div id="close_button" class="sprite" onclick="about_box.style.display='none'"></div><div id="pannellum_logo_about" class="sprite"></div><a href="http://pannellum.sf.net/" target="_blank">http://pannellum.sf.net/</a><p>Licensing:<br><a href="//www.gnu.org/licenses/lgpl-2.1.txt" target="_blank">GNU LGPL v2.1</a></div>
<div id="about_box" class="noselect"><div id="close_button" class="sprite" onclick="about_box.style.display='none'"></div><a href="http://pannellum.sf.net/" target="_blank"><div id="pannellum_logo_about" class="sprite"></div></a><p>Licensing:<br><a href="//www.gnu.org/licenses/lgpl-2.1.txt" target="_blank">GNU LGPL v2.1</a></div>
<script type="text/javascript" src="js/Three.js"></script>
<script type="text/javascript" src="js/RequestAnimationFrame.js"></script>


+ 3
- 1
utils/build.py Datei anzeigen

@@ -71,7 +71,8 @@ def htmlCompress(text):

def addHeader(text):
text = text.replace('<!DOCTYPE HTML>','');
return '<!DOCTYPE HTML>\n<!-- Pannellum, http://pannellum.sf.net/ -->\n' + text
header = '<!DOCTYPE HTML>\n<!-- Pannellum ' + read('../VERSION') + ', http://pannellum.sf.net/ -->\n'
return header + text

def build(files, css, html, filename):
folder = ''
@@ -107,6 +108,7 @@ def build(files, css, html, filename):
html = html.replace('<script type="text/javascript" src="js/Three.js"></script>','')
html = html.replace('<script type="text/javascript" src="js/RequestAnimationFrame.js"></script>','')
html = html.replace('<script type="text/javascript" src="js/pannellum.js"></script>','<script type="text/javascript">' + js + '</script>')
html = html.replace('</div></a><p>Licensing:<br>','</div></a>Version ' + read('../VERSION') + '<p>Licensing:<br>')
html = htmlCompress(html)
output(addHeader(html), folder + htmlfilename)


Laden…
Abbrechen
Speichern