lipsum-api 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,3 +1,2 @@
1
- source 'http://rubygems.org'
2
- gem 'nokogiri'
3
- gem 'rest-client'
1
+ source 'http://rubygems.org'
2
+ gemspec
data/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Copyright (c) 2010 Vicente Reig Rincón de Arellano
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1
+ Copyright (c) 2010 Vicente Reig Rincón de Arellano
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
20
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,24 @@
1
+ A Lipsum.com interface written in Ruby
2
+ ======================================
3
+
4
+ Yeah, another one. :-)
5
+
6
+ Installation
7
+ ------------
8
+ ``gem install lipsum-api``
9
+
10
+
11
+ Usage
12
+ -----
13
+ Requiring lipsum will add the next methods to any Fixnum:
14
+
15
+ * LipsumAPI#lipsum_words -> "Lorem ipsum"
16
+ * LipsumAPI#lipsum_paragraphs -> ["lipsum paragraph", ...]
17
+ * LipsumAPI#lipsum_bytes "Lorem Ipsum"
18
+ * LipsumAPI#lipsum_lists ["lipsum HTML list", ...]
19
+
20
+ require 'rubygems'
21
+ require 'lipsum'
22
+
23
+ puts 6.lipsum_words
24
+ puts 2.lipsum_paragraphs :start_with_lorem => true``
data/Rakefile CHANGED
@@ -1,5 +1,7 @@
1
- task :default => [:test]
2
-
3
- task :test do
4
- ruby ' -Ctest -I../lib/ lipsum_test.rb'
5
- end
1
+ require 'bundler/setup'
2
+
3
+ task :default => [:test]
4
+
5
+ task :test do
6
+ ruby ' -Ctest -I../lib/ lipsum_test.rb'
7
+ end
@@ -1,48 +1,52 @@
1
- require 'rubygems'
2
- require 'nokogiri'
3
- require 'rest-client'
4
-
5
- module LipsumAPI
6
-
7
- LIPSUM_URL = 'http://lipsum.com/feed/html'
8
-
9
- def method_missing(method, *args)
10
- results = []
11
- if method.to_s =~ /^lipsum_(.*)/
12
- opts = (args.first.respond_to? :merge)?args.first: {}
13
- opts.merge!(:what => $1) if ["paragraphs", "lists", "words", "bytes"].include?($1)
14
- opts.merge!(:amount => self) if self.is_a?(Fixnum)
15
- plain_doc = perform_request opts
16
- parse_response(plain_doc) do |element|
17
- results << element.inner_text
18
- end
19
- results = results.first.rstrip.lstrip if opts[:what] == 'words'
20
- results
21
- end
22
- end
23
-
24
- def parse_response(plain_doc)
25
- doc = Nokogiri::HTML(plain_doc)
26
- doc.search('#lipsum p').each { |element|
27
- yield element
28
- }
29
- end
30
-
31
- def perform_request(opts)
32
- opts.merge!( :start => 'yes' ) if opts.delete( :start_with_lorem )
33
- send_request(opts)
34
- end
35
-
36
- def send_request(opts)
37
- begin
38
- RestClient.post LIPSUM_URL, opts
39
- rescue
40
- puts "some error with inet connection =:)"
41
- end
42
- end
43
-
44
- end
45
-
46
- class Fixnum
47
- include LipsumAPI
48
- end
1
+ require 'rubygems'
2
+ require 'nokogiri'
3
+ require 'rest-client'
4
+
5
+ module LipsumAPI
6
+
7
+ LIPSUM_URL = 'http://lipsum.com/feed/html'
8
+
9
+ def method_missing(method, *args)
10
+ results = []
11
+ if method.to_s =~ /^lipsum_(.*)/ && ["paragraphs", "lists", "words", "bytes"].include?($1)
12
+ opts = (args.first.respond_to? :merge)?args.first: {}
13
+ opts.merge!(:what => $1)
14
+ opts.merge!(:amount => self) if self.is_a?(Fixnum)
15
+ plain_doc = perform_request opts
16
+ parse_response(plain_doc) do |element|
17
+ results << element.inner_text
18
+ end
19
+ results = if opts[:what] == 'words'
20
+ results.first.rstrip.lstrip
21
+ else
22
+ results.collect { |item| item.rstrip.lstrip }
23
+ end
24
+ results
25
+ end
26
+ end
27
+
28
+ def parse_response(plain_doc)
29
+ doc = Nokogiri::HTML(plain_doc)
30
+ doc.search('#lipsum p').each { |element|
31
+ yield element
32
+ }
33
+ end
34
+
35
+ def perform_request(opts)
36
+ opts.merge!( :start => 'yes' ) if opts.delete( :start_with_lorem )
37
+ send_request(opts)
38
+ end
39
+
40
+ def send_request(opts)
41
+ begin
42
+ RestClient.post LIPSUM_URL, opts
43
+ rescue
44
+ puts "some error with inet connection =:)"
45
+ end
46
+ end
47
+
48
+ end
49
+
50
+ class Fixnum
51
+ include LipsumAPI
52
+ end
@@ -1,169 +1,169 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
- <head>
5
- <title>Lorem Ipsum - All the facts - Lipsum generator</title>
6
- <meta name="keywords" content="Lorem Ipsum, Lipsum, Lorem, Ipsum, Text, Generate, Generator, Facts, Information, What, Why, Where, Dummy Text, Typesetting, Printing, de Finibus, Bonorum et Malorum, de Finibus Bonorum et Malorum, Extremes of Good and Evil, Cicero, Latin, Garbled, Scrambled, Lorem ipsum dolor sit amet, dolor, sit amet, consectetur, adipiscing, elit, sed, eiusmod, tempor, incididunt" />
7
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
8
- <meta http-equiv="content-language" content="en" />
9
- <link rel="shortcut icon" href="/favicon.ico" />
10
- <style type="text/css">
11
-
12
- #lipsum {font-size:11px;text-align:justify}
13
- #generated {font-size:11px;font-weight:bold;text-align:left}
14
-
15
- a:link,a:visited,a:active {color:#000000}
16
- a:hover {color:#ff0000}
17
-
18
- body {background:url(/images/body.gif);font-family:Arial,Helvetica,sans}
19
- body,td,input,form,div {margin:0px;font-size:11px;font-family:Arial,Helvetica,sans}
20
- #Outer {text-align:center}
21
- #Inner710 {width:710px;margin:0px auto;padding-bottom:10px}
22
- #Inner734 {width:734px;margin:0px auto;padding-bottom:10px}
23
- #Banner {margin-top:15px}
24
- #Languages {margin:20px 0px;clear:both}
25
- #Languages a {padding:0px 6px 0px 22px;font-size:11px;line-height:20px}
26
- #Languages a.zz, #Languages a.zz:hover {text-decoration:none;color:#000000}
27
- #Languages a.xx {padding:0px}
28
- #Languages img {vertical-align:middle;margin-right:4px}
29
- a.hy{background:url(/images/181109.png) no-repeat 0px -400px}
30
- a.sq{background:url(/images/181109.png) no-repeat 0px -760px}
31
- a.ar{background:url(/images/181109.png) no-repeat 0px -40px}
32
- a.bg{background:url(/images/181109.png) no-repeat 0px -80px}
33
- a.ca{background:url(/images/181109.png) no-repeat 0px -120px}
34
- a.hr{background:url(/images/181109.png) no-repeat 0px -360px}
35
- a.cs{background:url(/images/181109.png) no-repeat 0px -140px}
36
- a.da{background:url(/images/181109.png) no-repeat 0px -160px}
37
- a.nl{background:url(/images/181109.png) no-repeat 0px -560px}
38
- a.en{background:url(/images/181109.png) no-repeat 0px -220px}
39
- a.et{background:url(/images/181109.png) no-repeat 0px -260px}
40
- a.fi{background:url(/images/181109.png) no-repeat 0px -300px}
41
- a.fr{background:url(/images/181109.png) no-repeat 0px -320px}
42
- a.ka{background:url(/images/181109.png) no-repeat 0px -460px}
43
- a.de{background:url(/images/181109.png) no-repeat 0px -180px}
44
- a.el{background:url(/images/181109.png) no-repeat 0px -200px}
45
- a.he{background:url(/images/181109.png) no-repeat 0px -340px}
46
- a.hu{background:url(/images/181109.png) no-repeat 0px -380px}
47
- a.id{background:url(/images/181109.png) no-repeat 0px -420px}
48
- a.it{background:url(/images/181109.png) no-repeat 0px -440px}
49
- a.lv{background:url(/images/181109.png) no-repeat 0px -500px}
50
- a.lt{background:url(/images/181109.png) no-repeat 0px -480px}
51
- a.mk{background:url(/images/181109.png) no-repeat 0px -520px}
52
- a.ms{background:url(/images/181109.png) no-repeat 0px -540px}
53
- a.no{background:url(/images/181109.png) no-repeat 0px -580px}
54
- a.pl{background:url(/images/181109.png) no-repeat 0px -600px}
55
- a.pt{background:url(/images/181109.png) no-repeat 0px -620px}
56
- a.ro{background:url(/images/181109.png) no-repeat 0px -640px}
57
- a.ru{background:url(/images/181109.png) no-repeat 0px -660px}
58
- a.sr{background:url(/images/181109.png) no-repeat 0px -780px}
59
- a.sk{background:url(/images/181109.png) no-repeat 0px -700px}
60
- a.sl{background:url(/images/181109.png) no-repeat 0px -720px}
61
- a.es{background:url(/images/181109.png) no-repeat 0px -240px}
62
- a.sv{background:url(/images/181109.png) no-repeat 0px -800px}
63
- a.th{background:url(/images/181109.png) no-repeat 0px -840px}
64
- a.tr{background:url(/images/181109.png) no-repeat 0px -860px}
65
- a.uk{background:url(/images/181109.png) no-repeat 0px -880px}
66
- a.vi{background:url(/images/181109.png) no-repeat 0px -900px}
67
-
68
- #Packages a {margin:0px 2px}
69
- #Footer a {margin:10px;color:#808080}
70
- .lc {clear:left;float:left;width:348px}
71
- .rc {clear:right;float:right;width:348px}
72
- .lc div {float:left;text-align:left}
73
- .rc div {float:left;text-align:left}
74
-
75
- p {text-align:justify;font-size:11px;line-height:14px;margin:0px 0px 14px 0px;padding:0px}
76
-
77
- h1,h2,h3,h4,h5 {margin:0;padding:0;font-weight:normal}
78
- h1 {background:url(/images/lorem.gif) no-repeat center top;height:60px}
79
- h1 span {display:none}
80
- h2 {font-size:12px;height:26px;text-align:left}
81
- h2 span {display:none}
82
- h2.what {background:url(/images/en/heading.gif) no-repeat 0px 0px}
83
- h2.where {background:url(/images/en/heading.gif) no-repeat 0px -26px}
84
- h2.why {background:url(/images/en/heading.gif) no-repeat 0px -52px}
85
- h2.getsome {background:url(/images/en/heading.gif) no-repeat 0px -78px}
86
- h3 {margin-bottom:14px;font-size:11px;font-weight:bold;text-align:left}
87
- h4 {margin-top:14px;font-size:13px;text-align:center;font-style:italic}
88
- h5 {margin-bottom:14px;font-size:11px;text-align:center}
89
-
90
- .box {clear:both;margin-top:6px;padding-top:6px;border-top:1px solid #666666}
91
- .banners {clear:both;margin-top:14px;padding-top:14px;border-top:1px solid #d0d0d0}
92
- .banners img {margin:2px}
93
-
94
- a.lnk:link,a.lnk:visited,a.lnk:active,a.lnk:hover {font-weight:bold;color:#ff0000}
95
-
96
- input#amount {width:40px;text-align:right}
97
- input#generate {width:160px;text-align:center;margin-top:15px}
98
-
99
- div.start {width:30px;margin-top:4px;margin-bottom:12px;text-align:center}
100
-
101
- #HdrLeft {float:left;text-align:left;width:160px}
102
- #HdrRight {float:right;text-align:right;width:160px;line-height:14px}
103
-
104
- #feedtable td {text-align:left;vertical-align:middle}
105
- #typetable td {text-align:left;vertical-align:middle;height:20px}
106
-
107
- .ltr {direction:ltr;unicode-bidi:embed}
108
-
109
- </style>
110
- <!--[if IE 6]><style type="text/css">#Languages a {line-height:16px;height:15px;margin-top:4px}</style><![endif]-->
111
-
112
- </head>
113
- <body>
114
-
115
- <div id="Outer">
116
- <div id="Banner"><!-- FASTCLICK.COM 728x90 and 468x60 BANNER CODE for lipsum.com -->
117
- <script language="javascript" type="text/javascript" src="http://media.fastclick.net/w/get.media?sid=14064&amp;m=1&amp;tp=5&amp;d=j&amp;t=n"></script>
118
- <noscript><a href="http://media.fastclick.net/w/click.here?sid=14064&amp;m=1&amp;c=1" target="_blank">
119
- <img src="http://media.fastclick.net/w/get.media?sid=14064&amp;m=1&amp;tp=5&amp;d=s&amp;c=1"
120
- width="468" height="60" border="1" alt="Banner" /></a></noscript>
121
- <!-- FASTCLICK.COM 728x90 and 468x60 BANNER CODE for lipsum.com --><div style="text-align:right;width:728px"><a href="http://www.valueclickmedia.com/member_privacy.shtml">Privacy Policy</a></div></div>
122
- <div id="Inner710">
123
-
124
- <div id="Languages"><a class="hy" href="http://hy.lipsum.com/">&#1344;&#1377;&#1397;&#1381;&#1408;&#1381;&#1398;</a> <a class="sq" href="http://sq.lipsum.com/">Shqip</a> <span class="ltr" dir="ltr"><a class="xx" href="http://ar.lipsum.com/"><img src="/images/ar/ar.gif" width="18" height="12" border="0" alt="&#8235;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;" /></a><a class="xx" href="http://ar.lipsum.com/">&#8235;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;</a></span>&nbsp;&nbsp; <a class="bg" href="http://bg.lipsum.com/">&#1041;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080;</a> <a class="ca" href="http://ca.lipsum.com/">Catal&agrave;</a> <a class="hr" href="http://hr.lipsum.com/">Hrvatski</a> <a class="cs" href="http://cs.lipsum.com/">&#268;esky</a> <a class="da" href="http://da.lipsum.com/">Dansk</a> <a class="nl" href="http://nl.lipsum.com/">Nederlands</a> <a class="en zz" href="http://www.lipsum.com/">English</a> <a class="et" href="http://et.lipsum.com/">Eesti</a> <a class="fi" href="http://fi.lipsum.com/">Suomi</a> <a class="fr" href="http://fr.lipsum.com/">Fran&ccedil;ais</a> <a class="ka" href="http://ka.lipsum.com/">&#4325;&#4304;&#4320;&#4311;&#4323;&#4314;&#4312;</a> <a class="de" href="http://de.lipsum.com/">Deutsch</a> <a class="el" href="http://el.lipsum.com/">&#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;</a> <span class="ltr" dir="ltr"><a class="xx" href="http://he.lipsum.com/"><img src="/images/he/he.gif" width="18" height="12" border="0" alt="&#8235;&#1506;&#1489;&#1512;&#1497;&#1514;" /></a><a class="xx" href="http://he.lipsum.com/">&#8235;&#1506;&#1489;&#1512;&#1497;&#1514;</a></span>&nbsp;&nbsp; <a class="hu" href="http://hu.lipsum.com/">Magyar</a> <a class="id" href="http://id.lipsum.com/">Indonesia</a> <a class="it" href="http://it.lipsum.com/">Italiano</a> <a class="lv" href="http://lv.lipsum.com/">Latviski</a> <a class="lt" href="http://lt.lipsum.com/">Lietuvi&scaron;kai</a> <a class="mk" href="http://mk.lipsum.com/">&#1084;&#1072;&#1082;&#1077;&#1076;&#1086;&#1085;&#1089;&#1082;&#1080;</a> <a class="ms" href="http://ms.lipsum.com/">Melayu</a> <a class="no" href="http://no.lipsum.com/">Norsk</a> <a class="pl" href="http://pl.lipsum.com/">Polski</a> <a class="pt" href="http://pt.lipsum.com/">Portugu&ecirc;s</a> <a class="ro" href="http://ro.lipsum.com/">Rom&acirc;na</a> <a class="ru" href="http://ru.lipsum.com/">Pycc&#1082;&#1080;&#1081;</a> <a class="sr" href="http://sr.lipsum.com/">&#1057;&#1088;&#1087;&#1089;&#1082;&#1080;</a> <a class="sk" href="http://sk.lipsum.com/">Sloven&#269;ina</a> <a class="sl" href="http://sl.lipsum.com/">Sloven&#353;&#269;ina</a> <a class="es" href="http://es.lipsum.com/">Espa&ntilde;ol</a> <a class="sv" href="http://sv.lipsum.com/">Svenska</a> <a class="th" href="http://th.lipsum.com/">&#3652;&#3607;&#3618;</a> <a class="tr" href="http://tr.lipsum.com/">T&uuml;rk&ccedil;e</a> <a class="uk" href="http://uk.lipsum.com/">&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072;</a> <a class="vi" href="http://vi.lipsum.com/">Ti&#7871;ng Vi&#7879;t</a> </div>
125
-
126
- <div id="HdrLeft"><a href=""><img src="/banners/156.gif" width="150" height="50" border="0" alt="" /></a></div>
127
- <div id="HdrRight"></div>
128
- <h1><span>Lorem Ipsum</span></h1>
129
-
130
- <h4>"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."</h4>
131
- <h5>"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."</h5>
132
- <div class="box"><div style="float:right;margin-left:6px;margin-bottom:6px;"><a target="_blank" href="http://www.cafepress.com/lipsum/"><img src="/images/lipsum05.gif" width="100" height="100" border="0" alt="Lipsum" /></a><br /><a target="_blank" href="http://www.cafepress.com/lipsum/"><img src="/images/lipsum04.gif" width="100" height="100" border="0" alt="Lipsum" /></a><br /><a target="_blank" href="http://www.cafepress.com/lipsum/"><img src="/images/lipsum08.gif" width="100" height="100" border="0" alt="Lipsum" /></a><br /><a target="_blank" href="http://www.cafepress.com/lipsum/"><img src="/images/lipsum07.gif" width="100" height="100" border="0" alt="Lipsum" /></a><br /></div><div id="lipsum">
133
- <p>
134
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod pulvinar est, viverra tincidunt dui tempus vitae. Aliquam elementum dui ac est iaculis ut eleifend lectus elementum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam dapibus, elit a adipiscing tincidunt, diam urna rhoncus diam, quis ullamcorper est sem vitae tortor. Curabitur aliquet sagittis arcu eu commodo. Donec sed ligula quis metus dictum rhoncus. Etiam cursus, eros id consectetur semper, diam tellus facilisis lorem, eget auctor leo eros in sem. Nullam molestie felis in augue scelerisque at laoreet sem euismod. Morbi vel ligula turpis. Phasellus dignissim suscipit nunc, venenatis tincidunt nibh tempor eget. Duis gravida neque id tortor bibendum nec congue mi feugiat. Suspendisse suscipit euismod tellus ut malesuada. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin vehicula ante vel augue facilisis luctus fermentum est pretium.
135
- </p>
136
- <p>
137
- Morbi tincidunt adipiscing adipiscing. Nunc id lorem sit amet sem posuere feugiat a sed enim. Nullam accumsan facilisis vestibulum. Vivamus vel erat erat. Etiam in ante lacus, vel bibendum justo. Aliquam ante leo, lobortis in iaculis quis, tempus nec enim. Vestibulum adipiscing convallis nibh et dapibus. Fusce laoreet enim a metus consectetur ultricies. Quisque quis ligula et dolor auctor rutrum sed pretium felis. Sed in libero eget diam iaculis sodales a nec odio.
138
- </p>
139
- <p>
140
- Nulla rhoncus tristique dictum. Morbi vestibulum auctor diam nec dictum. Quisque ullamcorper scelerisque enim, vitae porttitor risus fermentum hendrerit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce nec massa ut felis sagittis fermentum nec vel lorem. Fusce faucibus, tellus et gravida rhoncus, dui risus malesuada est, eget sagittis diam libero sit amet tellus. Maecenas eget lacus ac neque mattis fermentum. Sed ultrices, justo id tristique tristique, diam sapien commodo leo, ac imperdiet lacus erat non quam. Proin magna sapien, ornare ac dignissim ut, consequat nec leo. Sed sed ultricies turpis. Integer dignissim ligula eu felis pellentesque a pellentesque nisi posuere. Proin eu ante ac felis molestie eleifend sed imperdiet ipsum.
141
- </p>
142
- <p>
143
- Phasellus gravida, justo ut lobortis ultricies, augue magna condimentum nisi, id sagittis mi diam vitae quam. Vivamus quis massa justo. Pellentesque ultricies pulvinar ullamcorper. Fusce dignissim tortor a arcu ullamcorper ornare. Sed eu velit leo, sed cursus ligula. Integer non felis diam, vel cursus mi. Aliquam quis ante dolor, accumsan eleifend urna. Donec eget augue sapien, in scelerisque dolor. Aliquam risus magna, faucibus accumsan volutpat non, faucibus eu massa. Cras non luctus lorem. Morbi ultrices porta velit ac tincidunt. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse iaculis porta condimentum. Maecenas quis ipsum pretium velit sollicitudin mollis non ut urna. Quisque est felis, condimentum vel dignissim viverra, luctus in ipsum. Mauris auctor massa nec mi adipiscing vitae pretium orci pretium.
144
- </p>
145
- <p>
146
- Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus eu urna ac enim vestibulum ornare. Suspendisse ac tristique augue. Aliquam sit amet arcu neque, ac tempor mauris. Pellentesque commodo nulla et enim iaculis ullamcorper sit amet dictum nulla. Aenean dui purus, gravida id pellentesque ac, eleifend semper risus. Integer velit eros, hendrerit vel congue a, commodo vitae neque. Integer consequat fermentum neque, nec euismod enim convallis consectetur. Aenean ullamcorper commodo interdum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
147
- </p></div>
148
- <div id="generated">Generated 5 paragraphs, 544 words, 3736 bytes of <a href="http://www.lipsum.com/" title="Lorem Ipsum">Lorem Ipsum</a></div>
149
- </div><div class="box"><img src="/images/email.gif" width="87" height="14" alt="" style="margin:6px;" /></div>
150
-
151
-
152
-
153
- </div>
154
-
155
- </div>
156
-
157
- <script type="text/javascript">
158
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
159
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
160
- </script>
161
- <script type="text/javascript">
162
- try {
163
- var pageTracker = _gat._getTracker("UA-15036679-1");
164
- pageTracker._setDomainName(".lipsum.com");
165
- pageTracker._trackPageview();
166
- } catch(err) {}</script>
167
-
168
- </body>
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
+ <head>
5
+ <title>Lorem Ipsum - All the facts - Lipsum generator</title>
6
+ <meta name="keywords" content="Lorem Ipsum, Lipsum, Lorem, Ipsum, Text, Generate, Generator, Facts, Information, What, Why, Where, Dummy Text, Typesetting, Printing, de Finibus, Bonorum et Malorum, de Finibus Bonorum et Malorum, Extremes of Good and Evil, Cicero, Latin, Garbled, Scrambled, Lorem ipsum dolor sit amet, dolor, sit amet, consectetur, adipiscing, elit, sed, eiusmod, tempor, incididunt" />
7
+ <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
8
+ <meta http-equiv="content-language" content="en" />
9
+ <link rel="shortcut icon" href="/favicon.ico" />
10
+ <style type="text/css">
11
+
12
+ #lipsum {font-size:11px;text-align:justify}
13
+ #generated {font-size:11px;font-weight:bold;text-align:left}
14
+
15
+ a:link,a:visited,a:active {color:#000000}
16
+ a:hover {color:#ff0000}
17
+
18
+ body {background:url(/images/body.gif);font-family:Arial,Helvetica,sans}
19
+ body,td,input,form,div {margin:0px;font-size:11px;font-family:Arial,Helvetica,sans}
20
+ #Outer {text-align:center}
21
+ #Inner710 {width:710px;margin:0px auto;padding-bottom:10px}
22
+ #Inner734 {width:734px;margin:0px auto;padding-bottom:10px}
23
+ #Banner {margin-top:15px}
24
+ #Languages {margin:20px 0px;clear:both}
25
+ #Languages a {padding:0px 6px 0px 22px;font-size:11px;line-height:20px}
26
+ #Languages a.zz, #Languages a.zz:hover {text-decoration:none;color:#000000}
27
+ #Languages a.xx {padding:0px}
28
+ #Languages img {vertical-align:middle;margin-right:4px}
29
+ a.hy{background:url(/images/181109.png) no-repeat 0px -400px}
30
+ a.sq{background:url(/images/181109.png) no-repeat 0px -760px}
31
+ a.ar{background:url(/images/181109.png) no-repeat 0px -40px}
32
+ a.bg{background:url(/images/181109.png) no-repeat 0px -80px}
33
+ a.ca{background:url(/images/181109.png) no-repeat 0px -120px}
34
+ a.hr{background:url(/images/181109.png) no-repeat 0px -360px}
35
+ a.cs{background:url(/images/181109.png) no-repeat 0px -140px}
36
+ a.da{background:url(/images/181109.png) no-repeat 0px -160px}
37
+ a.nl{background:url(/images/181109.png) no-repeat 0px -560px}
38
+ a.en{background:url(/images/181109.png) no-repeat 0px -220px}
39
+ a.et{background:url(/images/181109.png) no-repeat 0px -260px}
40
+ a.fi{background:url(/images/181109.png) no-repeat 0px -300px}
41
+ a.fr{background:url(/images/181109.png) no-repeat 0px -320px}
42
+ a.ka{background:url(/images/181109.png) no-repeat 0px -460px}
43
+ a.de{background:url(/images/181109.png) no-repeat 0px -180px}
44
+ a.el{background:url(/images/181109.png) no-repeat 0px -200px}
45
+ a.he{background:url(/images/181109.png) no-repeat 0px -340px}
46
+ a.hu{background:url(/images/181109.png) no-repeat 0px -380px}
47
+ a.id{background:url(/images/181109.png) no-repeat 0px -420px}
48
+ a.it{background:url(/images/181109.png) no-repeat 0px -440px}
49
+ a.lv{background:url(/images/181109.png) no-repeat 0px -500px}
50
+ a.lt{background:url(/images/181109.png) no-repeat 0px -480px}
51
+ a.mk{background:url(/images/181109.png) no-repeat 0px -520px}
52
+ a.ms{background:url(/images/181109.png) no-repeat 0px -540px}
53
+ a.no{background:url(/images/181109.png) no-repeat 0px -580px}
54
+ a.pl{background:url(/images/181109.png) no-repeat 0px -600px}
55
+ a.pt{background:url(/images/181109.png) no-repeat 0px -620px}
56
+ a.ro{background:url(/images/181109.png) no-repeat 0px -640px}
57
+ a.ru{background:url(/images/181109.png) no-repeat 0px -660px}
58
+ a.sr{background:url(/images/181109.png) no-repeat 0px -780px}
59
+ a.sk{background:url(/images/181109.png) no-repeat 0px -700px}
60
+ a.sl{background:url(/images/181109.png) no-repeat 0px -720px}
61
+ a.es{background:url(/images/181109.png) no-repeat 0px -240px}
62
+ a.sv{background:url(/images/181109.png) no-repeat 0px -800px}
63
+ a.th{background:url(/images/181109.png) no-repeat 0px -840px}
64
+ a.tr{background:url(/images/181109.png) no-repeat 0px -860px}
65
+ a.uk{background:url(/images/181109.png) no-repeat 0px -880px}
66
+ a.vi{background:url(/images/181109.png) no-repeat 0px -900px}
67
+
68
+ #Packages a {margin:0px 2px}
69
+ #Footer a {margin:10px;color:#808080}
70
+ .lc {clear:left;float:left;width:348px}
71
+ .rc {clear:right;float:right;width:348px}
72
+ .lc div {float:left;text-align:left}
73
+ .rc div {float:left;text-align:left}
74
+
75
+ p {text-align:justify;font-size:11px;line-height:14px;margin:0px 0px 14px 0px;padding:0px}
76
+
77
+ h1,h2,h3,h4,h5 {margin:0;padding:0;font-weight:normal}
78
+ h1 {background:url(/images/lorem.gif) no-repeat center top;height:60px}
79
+ h1 span {display:none}
80
+ h2 {font-size:12px;height:26px;text-align:left}
81
+ h2 span {display:none}
82
+ h2.what {background:url(/images/en/heading.gif) no-repeat 0px 0px}
83
+ h2.where {background:url(/images/en/heading.gif) no-repeat 0px -26px}
84
+ h2.why {background:url(/images/en/heading.gif) no-repeat 0px -52px}
85
+ h2.getsome {background:url(/images/en/heading.gif) no-repeat 0px -78px}
86
+ h3 {margin-bottom:14px;font-size:11px;font-weight:bold;text-align:left}
87
+ h4 {margin-top:14px;font-size:13px;text-align:center;font-style:italic}
88
+ h5 {margin-bottom:14px;font-size:11px;text-align:center}
89
+
90
+ .box {clear:both;margin-top:6px;padding-top:6px;border-top:1px solid #666666}
91
+ .banners {clear:both;margin-top:14px;padding-top:14px;border-top:1px solid #d0d0d0}
92
+ .banners img {margin:2px}
93
+
94
+ a.lnk:link,a.lnk:visited,a.lnk:active,a.lnk:hover {font-weight:bold;color:#ff0000}
95
+
96
+ input#amount {width:40px;text-align:right}
97
+ input#generate {width:160px;text-align:center;margin-top:15px}
98
+
99
+ div.start {width:30px;margin-top:4px;margin-bottom:12px;text-align:center}
100
+
101
+ #HdrLeft {float:left;text-align:left;width:160px}
102
+ #HdrRight {float:right;text-align:right;width:160px;line-height:14px}
103
+
104
+ #feedtable td {text-align:left;vertical-align:middle}
105
+ #typetable td {text-align:left;vertical-align:middle;height:20px}
106
+
107
+ .ltr {direction:ltr;unicode-bidi:embed}
108
+
109
+ </style>
110
+ <!--[if IE 6]><style type="text/css">#Languages a {line-height:16px;height:15px;margin-top:4px}</style><![endif]-->
111
+
112
+ </head>
113
+ <body>
114
+
115
+ <div id="Outer">
116
+ <div id="Banner"><!-- FASTCLICK.COM 728x90 and 468x60 BANNER CODE for lipsum.com -->
117
+ <script language="javascript" type="text/javascript" src="http://media.fastclick.net/w/get.media?sid=14064&amp;m=1&amp;tp=5&amp;d=j&amp;t=n"></script>
118
+ <noscript><a href="http://media.fastclick.net/w/click.here?sid=14064&amp;m=1&amp;c=1" target="_blank">
119
+ <img src="http://media.fastclick.net/w/get.media?sid=14064&amp;m=1&amp;tp=5&amp;d=s&amp;c=1"
120
+ width="468" height="60" border="1" alt="Banner" /></a></noscript>
121
+ <!-- FASTCLICK.COM 728x90 and 468x60 BANNER CODE for lipsum.com --><div style="text-align:right;width:728px"><a href="http://www.valueclickmedia.com/member_privacy.shtml">Privacy Policy</a></div></div>
122
+ <div id="Inner710">
123
+
124
+ <div id="Languages"><a class="hy" href="http://hy.lipsum.com/">&#1344;&#1377;&#1397;&#1381;&#1408;&#1381;&#1398;</a> <a class="sq" href="http://sq.lipsum.com/">Shqip</a> <span class="ltr" dir="ltr"><a class="xx" href="http://ar.lipsum.com/"><img src="/images/ar/ar.gif" width="18" height="12" border="0" alt="&#8235;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;" /></a><a class="xx" href="http://ar.lipsum.com/">&#8235;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;</a></span>&nbsp;&nbsp; <a class="bg" href="http://bg.lipsum.com/">&#1041;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080;</a> <a class="ca" href="http://ca.lipsum.com/">Catal&agrave;</a> <a class="hr" href="http://hr.lipsum.com/">Hrvatski</a> <a class="cs" href="http://cs.lipsum.com/">&#268;esky</a> <a class="da" href="http://da.lipsum.com/">Dansk</a> <a class="nl" href="http://nl.lipsum.com/">Nederlands</a> <a class="en zz" href="http://www.lipsum.com/">English</a> <a class="et" href="http://et.lipsum.com/">Eesti</a> <a class="fi" href="http://fi.lipsum.com/">Suomi</a> <a class="fr" href="http://fr.lipsum.com/">Fran&ccedil;ais</a> <a class="ka" href="http://ka.lipsum.com/">&#4325;&#4304;&#4320;&#4311;&#4323;&#4314;&#4312;</a> <a class="de" href="http://de.lipsum.com/">Deutsch</a> <a class="el" href="http://el.lipsum.com/">&#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;</a> <span class="ltr" dir="ltr"><a class="xx" href="http://he.lipsum.com/"><img src="/images/he/he.gif" width="18" height="12" border="0" alt="&#8235;&#1506;&#1489;&#1512;&#1497;&#1514;" /></a><a class="xx" href="http://he.lipsum.com/">&#8235;&#1506;&#1489;&#1512;&#1497;&#1514;</a></span>&nbsp;&nbsp; <a class="hu" href="http://hu.lipsum.com/">Magyar</a> <a class="id" href="http://id.lipsum.com/">Indonesia</a> <a class="it" href="http://it.lipsum.com/">Italiano</a> <a class="lv" href="http://lv.lipsum.com/">Latviski</a> <a class="lt" href="http://lt.lipsum.com/">Lietuvi&scaron;kai</a> <a class="mk" href="http://mk.lipsum.com/">&#1084;&#1072;&#1082;&#1077;&#1076;&#1086;&#1085;&#1089;&#1082;&#1080;</a> <a class="ms" href="http://ms.lipsum.com/">Melayu</a> <a class="no" href="http://no.lipsum.com/">Norsk</a> <a class="pl" href="http://pl.lipsum.com/">Polski</a> <a class="pt" href="http://pt.lipsum.com/">Portugu&ecirc;s</a> <a class="ro" href="http://ro.lipsum.com/">Rom&acirc;na</a> <a class="ru" href="http://ru.lipsum.com/">Pycc&#1082;&#1080;&#1081;</a> <a class="sr" href="http://sr.lipsum.com/">&#1057;&#1088;&#1087;&#1089;&#1082;&#1080;</a> <a class="sk" href="http://sk.lipsum.com/">Sloven&#269;ina</a> <a class="sl" href="http://sl.lipsum.com/">Sloven&#353;&#269;ina</a> <a class="es" href="http://es.lipsum.com/">Espa&ntilde;ol</a> <a class="sv" href="http://sv.lipsum.com/">Svenska</a> <a class="th" href="http://th.lipsum.com/">&#3652;&#3607;&#3618;</a> <a class="tr" href="http://tr.lipsum.com/">T&uuml;rk&ccedil;e</a> <a class="uk" href="http://uk.lipsum.com/">&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072;</a> <a class="vi" href="http://vi.lipsum.com/">Ti&#7871;ng Vi&#7879;t</a> </div>
125
+
126
+ <div id="HdrLeft"><a href=""><img src="/banners/156.gif" width="150" height="50" border="0" alt="" /></a></div>
127
+ <div id="HdrRight"></div>
128
+ <h1><span>Lorem Ipsum</span></h1>
129
+
130
+ <h4>"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."</h4>
131
+ <h5>"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."</h5>
132
+ <div class="box"><div style="float:right;margin-left:6px;margin-bottom:6px;"><a target="_blank" href="http://www.cafepress.com/lipsum/"><img src="/images/lipsum05.gif" width="100" height="100" border="0" alt="Lipsum" /></a><br /><a target="_blank" href="http://www.cafepress.com/lipsum/"><img src="/images/lipsum04.gif" width="100" height="100" border="0" alt="Lipsum" /></a><br /><a target="_blank" href="http://www.cafepress.com/lipsum/"><img src="/images/lipsum08.gif" width="100" height="100" border="0" alt="Lipsum" /></a><br /><a target="_blank" href="http://www.cafepress.com/lipsum/"><img src="/images/lipsum07.gif" width="100" height="100" border="0" alt="Lipsum" /></a><br /></div><div id="lipsum">
133
+ <p>
134
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod pulvinar est, viverra tincidunt dui tempus vitae. Aliquam elementum dui ac est iaculis ut eleifend lectus elementum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam dapibus, elit a adipiscing tincidunt, diam urna rhoncus diam, quis ullamcorper est sem vitae tortor. Curabitur aliquet sagittis arcu eu commodo. Donec sed ligula quis metus dictum rhoncus. Etiam cursus, eros id consectetur semper, diam tellus facilisis lorem, eget auctor leo eros in sem. Nullam molestie felis in augue scelerisque at laoreet sem euismod. Morbi vel ligula turpis. Phasellus dignissim suscipit nunc, venenatis tincidunt nibh tempor eget. Duis gravida neque id tortor bibendum nec congue mi feugiat. Suspendisse suscipit euismod tellus ut malesuada. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin vehicula ante vel augue facilisis luctus fermentum est pretium.
135
+ </p>
136
+ <p>
137
+ Morbi tincidunt adipiscing adipiscing. Nunc id lorem sit amet sem posuere feugiat a sed enim. Nullam accumsan facilisis vestibulum. Vivamus vel erat erat. Etiam in ante lacus, vel bibendum justo. Aliquam ante leo, lobortis in iaculis quis, tempus nec enim. Vestibulum adipiscing convallis nibh et dapibus. Fusce laoreet enim a metus consectetur ultricies. Quisque quis ligula et dolor auctor rutrum sed pretium felis. Sed in libero eget diam iaculis sodales a nec odio.
138
+ </p>
139
+ <p>
140
+ Nulla rhoncus tristique dictum. Morbi vestibulum auctor diam nec dictum. Quisque ullamcorper scelerisque enim, vitae porttitor risus fermentum hendrerit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce nec massa ut felis sagittis fermentum nec vel lorem. Fusce faucibus, tellus et gravida rhoncus, dui risus malesuada est, eget sagittis diam libero sit amet tellus. Maecenas eget lacus ac neque mattis fermentum. Sed ultrices, justo id tristique tristique, diam sapien commodo leo, ac imperdiet lacus erat non quam. Proin magna sapien, ornare ac dignissim ut, consequat nec leo. Sed sed ultricies turpis. Integer dignissim ligula eu felis pellentesque a pellentesque nisi posuere. Proin eu ante ac felis molestie eleifend sed imperdiet ipsum.
141
+ </p>
142
+ <p>
143
+ Phasellus gravida, justo ut lobortis ultricies, augue magna condimentum nisi, id sagittis mi diam vitae quam. Vivamus quis massa justo. Pellentesque ultricies pulvinar ullamcorper. Fusce dignissim tortor a arcu ullamcorper ornare. Sed eu velit leo, sed cursus ligula. Integer non felis diam, vel cursus mi. Aliquam quis ante dolor, accumsan eleifend urna. Donec eget augue sapien, in scelerisque dolor. Aliquam risus magna, faucibus accumsan volutpat non, faucibus eu massa. Cras non luctus lorem. Morbi ultrices porta velit ac tincidunt. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse iaculis porta condimentum. Maecenas quis ipsum pretium velit sollicitudin mollis non ut urna. Quisque est felis, condimentum vel dignissim viverra, luctus in ipsum. Mauris auctor massa nec mi adipiscing vitae pretium orci pretium.
144
+ </p>
145
+ <p>
146
+ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus eu urna ac enim vestibulum ornare. Suspendisse ac tristique augue. Aliquam sit amet arcu neque, ac tempor mauris. Pellentesque commodo nulla et enim iaculis ullamcorper sit amet dictum nulla. Aenean dui purus, gravida id pellentesque ac, eleifend semper risus. Integer velit eros, hendrerit vel congue a, commodo vitae neque. Integer consequat fermentum neque, nec euismod enim convallis consectetur. Aenean ullamcorper commodo interdum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
147
+ </p></div>
148
+ <div id="generated">Generated 5 paragraphs, 544 words, 3736 bytes of <a href="http://www.lipsum.com/" title="Lorem Ipsum">Lorem Ipsum</a></div>
149
+ </div><div class="box"><img src="/images/email.gif" width="87" height="14" alt="" style="margin:6px;" /></div>
150
+
151
+
152
+
153
+ </div>
154
+
155
+ </div>
156
+
157
+ <script type="text/javascript">
158
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
159
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
160
+ </script>
161
+ <script type="text/javascript">
162
+ try {
163
+ var pageTracker = _gat._getTracker("UA-15036679-1");
164
+ pageTracker._setDomainName(".lipsum.com");
165
+ pageTracker._trackPageview();
166
+ } catch(err) {}</script>
167
+
168
+ </body>
169
169
  </html>