einstein 0.0.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,17 +2,22 @@ require "rspec"
2
2
  require "webmock/rspec"
3
3
  require "einstein"
4
4
  require "vcr"
5
+ require "yaml"
5
6
 
6
7
  RSpec.configure do |config|
7
8
  config.mock_with :rspec
8
9
  config.extend VCR::RSpec::Macros
9
10
  end
10
11
 
11
- VCR.config do |c|
12
+ VCR.configure do |c|
12
13
  c.cassette_library_dir = "spec/fixtures/vcr_cassettes"
13
- c.stub_with :webmock
14
+ c.hook_into :webmock
14
15
  c.default_cassette_options = {
15
- record: :none
16
+ record: :new_episodes,
17
+ serialize_with: :yaml
16
18
  }
19
+ c.preserve_exact_body_bytes do |request|
20
+ request.body.encoding.name == 'ASCII-8BIT' || !request.body.valid_encoding?
21
+ end
17
22
  c.allow_http_connections_when_no_cassette = false
18
23
  end
metadata CHANGED
@@ -1,147 +1,159 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: einstein
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
4
5
  prerelease:
5
- version: 0.0.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Linus Oleander
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-05-19 00:00:00 +02:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-05-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: rest-client
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2248711400 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: nokogiri
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2248711400
25
+ - !ruby/object:Gem::Dependency
26
+ name: nokogiri
27
+ requirement: &2248710200 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
36
33
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: prowl
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2248710200
36
+ - !ruby/object:Gem::Dependency
37
+ name: prowl
38
+ requirement: &2248709100 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
47
44
  type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
45
+ prerelease: false
46
+ version_requirements: *2248709100
47
+ - !ruby/object:Gem::Dependency
50
48
  name: titleize
49
+ requirement: &2248708180 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
51
56
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ version_requirements: *2248708180
58
+ - !ruby/object:Gem::Dependency
59
+ name: rtesseract
60
+ requirement: &2248707500 !ruby/object:Gem::Requirement
53
61
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
58
66
  type: :runtime
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: rspec
62
67
  prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
68
+ version_requirements: *2248707500
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: &2248706820 !ruby/object:Gem::Requirement
64
72
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
69
77
  type: :development
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: webmock
73
78
  prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
79
+ version_requirements: *2248706820
80
+ - !ruby/object:Gem::Dependency
81
+ name: webmock
82
+ requirement: &2248706160 !ruby/object:Gem::Requirement
75
83
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
80
88
  type: :development
81
- version_requirements: *id006
82
- - !ruby/object:Gem::Dependency
89
+ prerelease: false
90
+ version_requirements: *2248706160
91
+ - !ruby/object:Gem::Dependency
83
92
  name: vcr
93
+ requirement: &2248705340 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - =
97
+ - !ruby/object:Gem::Version
98
+ version: 2.1.0
99
+ type: :development
84
100
  prerelease: false
85
- requirement: &id007 !ruby/object:Gem::Requirement
101
+ version_requirements: *2248705340
102
+ - !ruby/object:Gem::Dependency
103
+ name: multi_json
104
+ requirement: &2248698120 !ruby/object:Gem::Requirement
86
105
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
91
110
  type: :development
92
- version_requirements: *id007
111
+ prerelease: false
112
+ version_requirements: *2248698120
93
113
  description: Push notification service for restaurant Einstein.
94
- email:
114
+ email:
95
115
  - linus@oleander.nu
96
116
  executables: []
97
-
98
117
  extensions: []
99
-
100
118
  extra_rdoc_files: []
101
-
102
- files:
119
+ files:
103
120
  - .gitignore
104
121
  - .rspec
105
122
  - Gemfile
106
123
  - README.md
107
- - README.pdf
108
124
  - Rakefile
109
125
  - einstein.gemspec
110
126
  - lib/einstein.rb
111
- - lib/einstein/container.rb
127
+ - lib/einstein/menu.rb
112
128
  - lib/einstein/version.rb
113
129
  - spec/einstein_spec.rb
114
- - spec/fixtures/vcr_cassettes/index.yml
130
+ - spec/fixtures/vcr_cassettes/request.yml
115
131
  - spec/spec_helper.rb
116
- has_rdoc: true
117
- homepage: https://github.com/oleander/Einstein
132
+ homepage: https://github.com/oleander/einstein-rb
118
133
  licenses: []
119
-
120
134
  post_install_message:
121
135
  rdoc_options: []
122
-
123
- require_paths:
136
+ require_paths:
124
137
  - lib
125
- required_ruby_version: !ruby/object:Gem::Requirement
138
+ required_ruby_version: !ruby/object:Gem::Requirement
126
139
  none: false
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: 1.9.0
131
- required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: 1.9.2
144
+ required_rubygems_version: !ruby/object:Gem::Requirement
132
145
  none: false
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- version: "0"
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
137
150
  requirements: []
138
-
139
151
  rubyforge_project: einstein
140
- rubygems_version: 1.6.2
152
+ rubygems_version: 1.8.15
141
153
  signing_key:
142
154
  specification_version: 3
143
155
  summary: Push notification service for restaurant Einstein
144
- test_files:
156
+ test_files:
145
157
  - spec/einstein_spec.rb
146
- - spec/fixtures/vcr_cassettes/index.yml
158
+ - spec/fixtures/vcr_cassettes/request.yml
147
159
  - spec/spec_helper.rb
data/README.pdf DELETED
Binary file
@@ -1,17 +0,0 @@
1
- module EinsteinContainer
2
- class Container < Array
3
- def initialize(*values, whenever)
4
- @whenever = whenever
5
- super(*values)
6
- end
7
-
8
- def push_to(api_key)
9
- Prowl.add({
10
- apikey: api_key,
11
- application: "Einstein ",
12
- event: " #{@whenever.to_s.titleize}'s menu",
13
- description: self.join(", ")
14
- }) unless self.empty?
15
- end
16
- end
17
- end
@@ -1,118 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://www.butlercatering.se:80/einstein.html
6
- body:
7
- headers:
8
- accept:
9
- - "*/*; q=0.5, application/xml"
10
- accept-encoding:
11
- - gzip, deflate
12
- timeout:
13
- - "10"
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- content-length:
20
- - "12151"
21
- content-type:
22
- - text/html
23
- last-modified:
24
- - Mon, 16 May 2011 07:31:54 GMT
25
- accept-ranges:
26
- - bytes
27
- etag:
28
- - "\"ec65549b13cc1:d7b\""
29
- server:
30
- - Microsoft-IIS/6.0
31
- x-powered-by:
32
- - ASP.NET
33
- date:
34
- - Thu, 19 May 2011 11:29:35 GMT
35
- body: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd\">\r\n\
36
- <HTML><!-- InstanceBegin template=\"/Templates/template.dwt\" codeOutsideHTMLIsLocked=\"false\" -->\r\n\
37
- \r\n\
38
- <HEAD>\r\n\
39
- <META HTTP-EQUIV=\"content-type\" CONTENT=\"text/html; charset=ISO-8859-1\">\r\n\
40
- <!-- InstanceBeginEditable name=\"doctitle\" -->\r\n\
41
- <TITLE>--- Butler Catering - G&ouml;teborg ---</TITLE>\r\n\
42
- <!-- InstanceEndEditable --> \r\n\
43
- <META NAME=\"taggar-skapade\" CONTENT=\"2004-01-21 12:04:23\">\r\n\
44
- <META NAME=\"keywords\" CONTENT=\"catering g\xF6teborg,festarrang\xF6r g\xF6teborg,temakv\xE4llar g\xF6teborg,br\xF6llop g\xF6teborg,firmafester g\xF6teborg,catering,br\xF6llop,mat,resturang\">\r\n\
45
- <META NAME=\"description\" CONTENT=\"Butler Catering - Se v\xE5ra catering menyer. Vi arrangerar bl.a. temakv\xE4llar, br\xF6llop och firmafester. Butler catering, din festarrang\xF6r i G\xF6teborg.\">\r\n\
46
- <META NAME=\"expires\" CONTENT=\"never\">\r\n\
47
- <META NAME=\"language\" CONTENT=\"SE\">\r\n\
48
- <META NAME=\"revisit-after\" CONTENT=\"14 days\">\r\n\
49
- <META NAME=\"distribution\" CONTENT=\"global\">\r\n\
50
- <META NAME=\"robots\" CONTENT=\"index,follow\">\r\n\
51
- <META NAME=\"copyright\" CONTENT=\"Copyright \xA92006- Lejhon Disajn www.lejhondisajn.se\">\r\n\
52
- \r\n\
53
- <SCRIPT language=JavaScript type=text/JavaScript>\r\n\
54
- <!--\r\n\
55
- \r\n\
56
- function MM_reloadPage(init) { //reloads the window if Nav4 resized\r\n if (init==true) with (navigator) {if ((appName==\"Netscape\")&&(parseInt(appVersion)==4)) {\r\n document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}\r\n else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();\r\n\
57
- }\r\n\
58
- MM_reloadPage(true);\r\n\
59
- //-->\r\n\
60
- </SCRIPT>\r\n\
61
- <META content=\"MSHTML 6.00.2600.0\" name=GENERATOR>\r\n\
62
- <link href=\"text.css\" rel=\"stylesheet\" type=\"text/css\">\r\n\
63
- \r\n\
64
- <!-- InstanceBeginEditable name=\"head\" --><!-- InstanceEndEditable -->\r\n\
65
- </HEAD>\r\n\
66
- <BODY>\r\n\
67
- <table width=\"1000\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" id=\"topimg\">\r\n <tr> \r\n <td height=\"83\" colspan=\"4\" class=\"loggatop\"></td>\r\n <td height=\"83\" ></td>\r\n </tr>\r\n <tr> \r\n <td width=\"14\" height=\"19\"><img src=\"img/menu_left.gif\" width=\"14\" height=\"21\"></td>\r\n <td width=\"570\" class=\"menurepeater-top\"> <p> <a href=\"index.html\" target=\"_parent\" class=\"greyunderline\" >Hem \r\n </a>|<a href=\"omoss.html\" target=\"_parent\" class=\"greyunderline\" >Om \r\n Oss</a> | <a href=\"forslag.html\" target=\"_parent\" class=\"greyunderline\"> \r\n Catering </a>| <a href=\"einstein.html\" target=\"_parent\" class=\"greyunderline\">Lunchmeny \r\n </a>| <a href=\"event.html\" target=\"_parent\" class=\"greyunderline\" >Event \r\n </a>| <a href=\"porslinsuthyrning.html\" target=\"_parent\" class=\"greyunderline\">Porslinsuthyrning \r\n </a>| <a href=\"lokaler.html\" target=\"_parent\" class=\"greyunderline\"> \r\n Lokaler </a> | <a href=\"tillbehor.html\" target=\"_parent\" class=\"greyunderline\">Tillbeh&ouml;r</a> \r\n | <a href=\"kontakt.html\" target=\"_parent\" class=\"greyunderline\"> Kontakt \r\n </a>|</p></td>\r\n <td width=\"35\"> <img src=\"img/menu_right.gif\" width=\"9\" height=\"21\"> </td>\r\n <td width=\"209\"><p align=\"right\" class=\"p9\"><a href=\"finstilt.html\" target=\"_parent\" class=\"linkvit\">Finstilt</a> \r\n - <a href=\"samarbetspartners.html\" target=\"_parent\" class=\"linkvit\">Samarbetspartners</a> \r\n - <a href=\"bilder.html\" target=\"_parent\" class=\"linkvit\">Bilder</a></p></td>\r\n <td width=\"172\"><div align=\"right\"></div></td>\r\n </tr>\r\n\
68
- </table>\r\n\
69
- <table width=\"1000\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr> \r\n <td width=\"829\" valign=\"top\"> \r\n <div id=\"vitcontainer\"> \r\n <div class=\"roundtopvit\"> \r\n <div class=\"r1vit\"></div>\r\n <div class=\"r2vit\"></div>\r\n <div class=\"r3vit\"></div>\r\n <div class=\"r4vit\"></div>\r\n </div>\r\n <div class=\"contentvit\"> \r\n <table width=\"808\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"10\">\r\n <tr> <!-- InstanceBeginEditable name=\"rubrik\" --> \r\n <td width=\"708\" valign=\"top\" class=\"rub-sidor\"> \r\n <p><strong>LUNCHMENY RESTAURANG EINSTEIN&nbsp;</strong></p></td>\r\n <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name=\"utskrift\" --> \r\n <td width=\"56\" valign=\"top\"><div align=\"left\"><a href=\"Einstein_utskrift.dot\" target=\"_blank\"><img src=\"img/print.gif\" alt=\"Skriv ut sidan\" width=\"28\" height=\"20\" border=\"0\"></a></div></td>\r\n <!-- InstanceEndEditable --></tr>\r\n <tr> \r\n <!-- SLUT navigationsmeny -->\r\n <!-- InstanceBeginEditable name=\"inneholl\" -->\r\n <td colspan=\"2\" valign=\"top\"> <table width=\"755\" height=\"599\" border=\"0\" cellspacing=\"3\">\r\n <tr valign=\"top\"> \r\n <td colspan=\"2\"><h1 align=\"center\" class=\"h1_einstein\">RESTAURANG \r\n EINSTEIN</h1>\r\n <h5 align=\"center\" class=\"h1_einstein\">Meny V 20</h5></td>\r\n </tr>\r\n <tr valign=\"top\"> \r\n <td width=\"396\" class=\"bg_666\"><h5 align=\"center\" class=\"h5_einstein\">VECKANS \r\n MENY</h5></td>\r\n <td width=\"346\" class=\"bg_666\"><h5 align=\"center\" class=\"h5_einstein\">VECKANS \r\n &quot;EXTRA&quot; R&Auml;TTER</h5></td>\r\n </tr>\r\n <tr valign=\"top\">\r\n <td width=\"396\" height=\"477\" class=\"bg_lunchmeny\"> \r\n <p><strong>Dagens r&auml;tt 70 kr</strong></p>\r\n <p>M&aring;n: <br>\r\n &bull;Varmr&ouml;kt laxfil&eacute; med dillmajonn&auml;s och f&auml;rskpotatis<br>\r\n &bull; Biff Africana med banan, kokos, jordn&ouml;tter och ris<br>\r\n &bull; R&auml;ksallad med tillbeh&ouml;r </p>\r\n <p>Tis: <br>\r\n &bull; Tapenadbakad fiskfil&eacute; med vitvins&aring;s och soltorkade tomater <br>\r\n &bull; Pytt i panna med &auml;gg och r&ouml;dbetor <br>\r\n &bull; Salami och Briesallad</p>\r\n <p>Ons: <br>\r\n &bull; Fisk och skaldjursgrat&auml;ng med &ouml;rtris och rucolakr&auml;m<br>\r\n &bull; Stekt pannbiff med persiljemos och r&ouml;dl&ouml;kssky<br>\r\n &bull; Ost och skinksallad </p>\r\n <p>Tors: <br>\r\n &bull; Stekt sm&ouml;rfisk med saffransdoftande skaldjursris &amp; aioli<br>\r\n &bull; Wokad kyckling med gr&ouml;ncurry, kokosmj&ouml;lk och sweet chili <br>\r\n &bull; Kr&auml;ftsallad<br>\r\n </p>\r\n <p>Fre <br>\r\n &bull; Gravad lax med dillstuvad potatis och hovm&auml;stars&aring;s, citron<br>\r\n &bull; Schnitzel med champinjons&aring;s och gr&auml;sl&ouml;kspotatis<br>\r\n &bull; Dagens sallad </p>\r\n <p><a href=\"Einstein_utskrift.dot\" target=\"_blank\" class=\"linkvit\">Skriv \r\n ut meny</a></p>\r\n </td>\r\n <td class=\"bg_extrameny\"> <p align=\"center\"><strong>Veckans \r\n pasta 65 kr</strong><br>\r\n Dagens pasta fr&aring;ga k&ouml;ket (m&aring;n-fre)</p>\r\n <p align=\"center\"> <strong>Veckans vegetariska 65 kr<br>\r\n </strong>Dagens vegetariska fr&aring;ga k&ouml;ket (m&aring;n-fre)</p>\r\n <p align=\"center\"> <strong>Veckans paj 65 kr<br>\r\n </strong>Dagenspaj / vegetariskpaj</p>\r\n <p align=\"center\"> <strong>Veckans aff&auml;rslunch 198kr</strong><br>\r\n Efter &ouml;nskem&aring;l\r\n <br>\r\n <br>\r\n </p>\r\n <p align=\"center\"><a href=\"Einstein_utskrift.dot\" target=\"_blank\" class=\"linkvit\">skriv \r\n ut meny</a></p></td>\r\n </tr>\r\n <tr valign=\"top\"> \r\n <td colspan=\"2\" class=\"bg_666\"><p class=\"txt_fff\">Har ni en \r\n favoritplats i lokalen, &auml;r ett st&ouml;rre s&auml;llskap \r\n eller vill ni boka aff&auml;rslunch g&aring;r det bra \r\n att kontakta oss dagen innan. Senast kl 15.00 p&aring; \r\n tel 031-772 41 70 eller faxa oss p&aring; 031-772 44 70</p></td>\r\n </tr>\r\n </table>\r\n </td>\r\n <!-- InstanceEndEditable --></tr>\r\n </table>\r\n </div>\r\n <div class=\"roundbottomvit\"> \r\n <div class=\"r4vit\"></div>\r\n <div class=\"r3vit\"></div>\r\n <div class=\"r2vit\"></div>\r\n <div class=\"r1vit\"></div>\r\n </div>\r\n </div></td>\r\n <td width=\"171\" valign=\"top\"><div align=\"right\">\r\n <p><img src=\"img/annons.gif\" width=\"170\" height=\"9\"></p>\r\n <p> <a href=\"http://www.cityporslin.se\" target=\"_blank\"><img src=\"img/logo.gif\" width=\"108\" height=\"108\" border=\"0\"></a></p>\r\n <p> <a href=\"http://www.kallsup.se\" target=\"_blank\"><img src=\"img/kallsup.gif\" width=\"151\" height=\"67\" border=\"0\"></a> \r\n </p>\r\n </div></td>\r\n </tr>\r\n\
70
- </table>\r\n\
71
- <table width=\"1000\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"825\"><table width=\"832\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr> \r\n <td colspan=\"7\">&nbsp;</td>\r\n </tr>\r\n <tr> \r\n <td width=\"11\"><img src=\"img/edge_tl.gif\" width=\"11\" height=\"24\"></td>\r\n <td class=\"bg_fff\"colspan=\"5\"><div align=\"center\"> \r\n <p>Butler Catering | Chalmers Teknikpark | Sven Hultinsg. 9 | 412 \r\n 88 G&ouml;teborg| tel: 031-772 41 70</p>\r\n </div></td>\r\n <td width=\"11\"><img src=\"img/edge_tr.gif\" width=\"11\" height=\"24\"></td>\r\n </tr>\r\n <tr> \r\n <td><img src=\"img/edge_bl.gif\" width=\"11\" height=\"24\"></td>\r\n <td class=\"bg_fff\"width=\"207\">&nbsp;</td>\r\n <td width=\"16\"><img src=\"img/adresrad_left.gif\" width=\"16\" height=\"24\"></td>\r\n <td width=\"361\"><p align=\"center\">Copyright &copy; Butler Catering 2006 \r\n - Alla r&auml;ttigheter f&ouml;rbeh&aring;llna. </p></td>\r\n <td width=\"16\"><img src=\"img/adresrad_right.gif\" width=\"16\" height=\"24\"></td>\r\n <td class=\"bg_fff\" width=\"210\"> <div align=\"right\"> \r\n <script language=\"JavaScript\"><!--\r\n\
72
- var TheFontFace = \"Verdana\";\r\n\
73
- var TheFontColor = \"#666666\";\r\n\
74
- var TheFontSize = \"1\";\r\n\
75
- var TheFontStyle = \"italic\"; \r\n\
76
- \r\n\
77
- // Sett separator mellan datum elementen;\r\n\
78
- var TheSeparator = \"-\";\r\n\
79
- \r\n\
80
- var ShowDay =\"yes\";\r\n\
81
- \r\n\
82
- var Days = new Array(\"S&ouml;ndag\",\"M&aring;ndag\",\"Tisdag\",\"Onsdag\",\"Torsdag\",\"Fredag\",\"L&ouml;rdag\");\r\n\
83
- var TheDate = new Date();\r\n\
84
- \r\n\
85
- var TheWeekDay = TheDate.getDay();\r\n\
86
- var Day =\"\";\r\n\
87
- if (ShowDay == \"yes\"){\r\n Day = Days[TheWeekDay];\r\n Day += \" \";}\r\n\
88
- \r\n\
89
- var TheMonth = TheDate.getMonth() + 1;\r\n\
90
- if (TheMonth < 10) TheMonth = \"0\" + TheMonth;\r\n\
91
- \r\n\
92
- var TheMonthDay = TheDate.getDate();\r\n\
93
- if (TheMonthDay < 10) TheMonthDay = \"0\" + TheMonthDay;\r\n\
94
- \r\n\
95
- var TheYear = TheDate.getYear();\r\n\
96
- if (TheYear < 1000) TheYear += 1900;\r\n\
97
- \r\n\
98
- var FontTagLeft = \"\";\r\n\
99
- var FontTagRight = \"\";\r\n\
100
- \r\n\
101
- if (TheFontStyle == \"bold\"){\r\n FontTagLeft = \"<b>\";\r\n FontTagRight =\"</b>\";}\r\n \r\n\
102
- if (TheFontStyle == \"italic\"){\r\n FontTagLeft = \"<i>\";\r\n FontTagRight =\"</i>\";}\r\n \r\n\
103
- if (TheFontStyle == \"bolditalic\"){\r\n FontTagLeft = \"<b><i>\"; \r\n FontTagRight = \"</i></b>\";} \r\n\
104
- \r\n\
105
- var D = \"\";\r\n\
106
- D += \"<font color='\"+TheFontColor+\"' face='\"+TheFontFace+\"' size='\"+TheFontSize+\"'>\";\r\n\
107
- D += FontTagLeft+Day+TheMonth+TheSeparator+TheMonthDay+TheSeparator+TheYear+FontTagRight;\r\n\
108
- D += \"</font>\";\r\n\
109
- \r\n\
110
- document.write(D);\r\n\
111
- \r\n\
112
- //-->\r\n\
113
- </script>\r\n </div></td>\r\n <td><img src=\"img/edge_br.gif\" width=\"11\" height=\"24\"></td>\r\n </tr>\r\n </table></td>\r\n <td width=\"171\">&nbsp;</td>\r\n </tr>\r\n\
114
- </table>\r\n\
115
- </body>\r\n\
116
- \r\n\
117
- <!-- InstanceEnd --></html>"
118
- http_version: "1.1"