Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

import time 

from rocketisp.rocket_isp import __version__ 

 

 

def getHead(task='Thruster Isp Calculation'): 

 

date_and_time = time.strftime("%A, %b %d, %Y at %I:%M%p") 

 

return '''<!DOCTYPE html> 

<html> 

<head> 

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> 

<title>%s</title> 

<style> 

.isp_data { 

font-family: "Lucida Console", Courier, monospace; 

border-collapse: collapse; 

font-weight: bold; 

} 

 

.alt_data { 

font-family: "Lucida Console", Courier, monospace; 

border-collapse: collapse; 

font-weight: normal; 

} 

 

.desc_data{ 

font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; 

} 

 

.summ_data{ 

background-color: #FFFFFF; 

font-family: "Lucida Console", Courier, monospace; 

border-collapse: collapse; 

font-weight: bold; 

margin-bottom: 8px; 

} 

 

tbody tr:nth-child(odd) { 

color: #000000; 

background-color: #DBE4EE; 

} 

 

tbody tr:nth-child(even) { 

color: #000000; 

background-color: #F5F7FA; 

} 

 

 

.header { 

font-size: 22px; 

color: #000000; 

font-weight: bold; 

line-height: 26px; 

 

} 

 

.h_msg { 

font-size: 18px; 

color: #000000; 

font-weight: bold; 

line-height: 22px; 

margin-bottom: 8px; 

} 

 

 

 

</style> 

 

</head> 

<body> 

<center><table bgcolor="#FFFFFF" width=100%%><tr><td colspan="2" nowrap align="center"> 

<h3 class="header">%s</h3></td></tr> 

<tr> 

<td align="left"><span class="header"></span></td> 

<td align="right"><span class="header"></span></td></tr> 

<tr> 

<td align="left"><span class="h_msg"> RocketIsp %s</span></td> 

<td align="right"><span class="h_msg">%s</span></td> 

</tr></table></center> 

'''%(task, task, 'version '+__version__, date_and_time) 

 

 

def getFooter(): 

return '''</body> 

</html> 

'''