From 384798e366d1c4fd2b0b89af384ecd2253f8736f Mon Sep 17 00:00:00 2001 From: Juliette Culver Date: Wed, 20 Jun 2012 14:08:43 +0100 Subject: [PATCH] Issue #77 --- build/build.txt | 4 ++ build/css/pelagios.css | 2 +- build/demo/index.html | 46 +++++++++++++ .../place}/aphrodisias.html | 4 +- .../place_demo => demo/place}/athens.html | 4 +- .../place_demo => demo/place}/corinth.html | 6 +- .../place/lentia.html} | 0 .../place_demo => demo/place}/olympia.html | 4 +- .../place_demo => demo/place}/olympics.html | 5 +- .../place_demo => demo/place}/rome.html | 4 +- .../demo/place_options/display_map_false.html | 14 ++++ build/demo/place_options/icon_false.html | 13 ++++ build/demo/place_options/mouseover_true.html | 13 ++++ .../place_special_cases}/basic.html | 4 +- .../place_special_cases}/gmapv2.html | 4 +- .../place_special_cases/html4_strict.html | 12 ++++ .../demo/place_special_cases/html4_trans.html | 13 ++++ .../place_special_cases}/html5.html | 4 +- build/demo/place_special_cases/inline.html | 11 +++ .../place_special_cases}/invalid_id.html | 4 +- .../place_special_cases/multiple_jquery.html | 13 ++++ .../multiple_widgets.html | 5 +- .../place_special_cases}/no_doctype.html | 4 +- .../place_special_cases}/table.html | 4 +- build/demo/search/search.html | 13 ++++ .../search_options/display_map_false.html | 13 ++++ build/docs/index.html | 69 +++++++++++++++++++ build/docs/styles.css | 1 + build/index.html | 34 +++++++++ .../test/manual/place_edge_cases/inline.html | 16 ----- .../manual/place_edge_cases/multiple.html | 19 ----- .../place_edge_cases/multiple_jquery.html | 14 ---- build/test/manual/search/demo.php | 13 ---- 33 files changed, 297 insertions(+), 92 deletions(-) create mode 100644 build/demo/index.html rename build/{test/manual/place_demo => demo/place}/aphrodisias.html (67%) rename build/{test/manual/place_demo => demo/place}/athens.html (65%) rename build/{test/manual/place_demo => demo/place}/corinth.html (90%) rename build/{test/manual/place_edge_cases/no_partner_content.html => demo/place/lentia.html} (100%) rename build/{test/manual/place_demo => demo/place}/olympia.html (65%) rename build/{test/manual/place_demo => demo/place}/olympics.html (91%) rename build/{test/manual/place_demo => demo/place}/rome.html (67%) create mode 100644 build/demo/place_options/display_map_false.html create mode 100644 build/demo/place_options/icon_false.html create mode 100644 build/demo/place_options/mouseover_true.html rename build/{test/manual/place_edge_cases => demo/place_special_cases}/basic.html (64%) rename build/{test/manual/place_edge_cases => demo/place_special_cases}/gmapv2.html (64%) create mode 100644 build/demo/place_special_cases/html4_strict.html create mode 100644 build/demo/place_special_cases/html4_trans.html rename build/{test/manual/place_edge_cases => demo/place_special_cases}/html5.html (57%) create mode 100644 build/demo/place_special_cases/inline.html rename build/{test/manual/place_edge_cases => demo/place_special_cases}/invalid_id.html (66%) create mode 100644 build/demo/place_special_cases/multiple_jquery.html rename build/{test/manual/place_edge_cases => demo/place_special_cases}/multiple_widgets.html (83%) rename build/{test/manual/place_edge_cases => demo/place_special_cases}/no_doctype.html (53%) rename build/{test/manual/place_edge_cases => demo/place_special_cases}/table.html (92%) create mode 100644 build/demo/search/search.html create mode 100644 build/demo/search_options/display_map_false.html create mode 100644 build/docs/index.html create mode 100644 build/docs/styles.css create mode 100644 build/index.html delete mode 100644 build/test/manual/place_edge_cases/inline.html delete mode 100644 build/test/manual/place_edge_cases/multiple.html delete mode 100644 build/test/manual/place_edge_cases/multiple_jquery.html delete mode 100644 build/test/manual/search/demo.php diff --git a/build/build.txt b/build/build.txt index 10d3c86..d8789ed 100644 --- a/build/build.txt +++ b/build/build.txt @@ -3,6 +3,10 @@ css/pelagios.css ---------------- css/pelagios.css +docs/styles.css +---------------- +docs/styles.css + test/examples/lexicon/demo_table_styles.css ---------------- test/examples/lexicon/demo_table_styles.css diff --git a/build/css/pelagios.css b/build/css/pelagios.css index 500ddb5..2942140 100644 --- a/build/css/pelagios.css +++ b/build/css/pelagios.css @@ -1 +1 @@ -@media screen {.pelagios div, .pelagios span, .pelagios h1, .pelagios h2, .pelagios h3, .pelagios a, .pelagios img, .pelagios ul {margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 15px!important; vertical-align: baseline !important;} .pelagios {font-family: Arial, Helvetica, sans-serif !important; display: inline !important; line-height: 1.3 !important;} .pelagios .container {width: 550px !important; padding: 5px 15px 15px !important; border-radius: 15px !important; -moz-border-radius: 15px !important; position: absolute !important; z-index: 10000 !important; opacity: 1.0 !important; background: #4F87D1 !important; background: -moz-linear-gradient(top, #4F87D1 , #C8E5FA) !important; background: -webkit-gradient(linear, left top, left bottom, from(#4F87D1 ), to(#C8E5FA)) !important; filter: progid:DXImageTransform.Microsoft.Gradient( StartColorStr='#4F87D1', EndColorStr='#C8E5FA', GradientType=0) !important;} .pelagios .close {float: right !important; padding: 5px 5px 0 0 !important;} .pelagios .logo {float: left !important; padding: 20px 0 0 20px !important;} .pelagios .icon {cursor: pointer !important;} .pelagios .content-wrapper {margin: 130px 15px 15px 15px !important; background: white !important; border-radius: 15px !important; -moz-border-radius: 15px !important; color: #1C3664 !important; padding: 0 0 0 0 !important;} .pelagios .footer {background: white !important; height: 15px !important; border-radius: 15px !important; -moz-border-radius: 15px !important;} .pelagios p {margin: 5px 0 5px 0 !important;} .pelagios a {font-weight: bold !important; color: #4F87D1 !important; text-decoration: none !important;} .pelagios a:hover, .pelagios a:visited {color: #1c3664 !important;} .pelagios h1 {font-size: 1.3em !important; padding: 10px 0 5px 20px !important; margin: 10px 0 0 0 !important; color: white !important; font-family: Times New Roman !important; background: #1C3664 !important; border-radius: 15px 15px 0 0 !important; -moz-border-radius: 15px 15px 0 0 !important;} .pelagios .pleiades-icon {margin: 10px 5px 0 0 !important; padding: 3px 3px 3px 3px !important; border: solid 1px #4F87D1 !important; border-radius: 5px !important; -moz-border-radius: 5px !important; vertical-align: -25% !important;} .pelagios .section {margin: 2px 0 2px 0 !important;} .pelagios .section-header {color: white !important; background: #1C3664 !important; padding: 5px 5px 5px 15px !important; min-height: 30px !important; cursor: pointer !important;} .pelagios .section-header img {display: inline !important;} .pelagios .section-header .section-icon {height: 25px !important; float:left !important; margin: 5px !important; border: 2px solid white; border-radius: 2px !important; -moz-border-radius: 2px !important;} .pelagios .section-header h2 {display: inline !important; padding: 5px 0 0 5px !important; vertical-align:-25% !important; color: white !important;} .pelagios .section-header h2:hover {color: #4f87d1 !important;} .pelagios .section-header .section-toggle {padding: 10px 10px 0 10px !important; vertical-align:-25% !important;} .pelagios .section-header .section-strapline {font-size: 0.8em !important; padding: 5px 0 0 5px !important;} .pelagios .section-content {background: white !important; padding: 10px 10px 10px 20px !important;} .pelagios .link {font-weight: bold !important; color: #4F87D1 !important;} .pelagios .link:hover{color: #1c3664 !important;} .pelagios .section-content .annotations {padding: 0 !important; margin: 10px 5px 5px 0 !important;} .pelagios .subdataset_pagination a {margin: 10px 5px 5px 5px !important; font-size: 0.7em !important;} .pelagios .subdataset_pagination .current {color: #1c3664 !important;} .pelagios .subdataset_pagination span{margin: 10px 5px 5px 5px !important; font-size: 0.7em !important;} .pelagios .section-content ul.subdatasets {list-style-type: disc !important; margin: 0 0 0 20px !important;} .pelagios .section-content ul.subdatasets li {cursor: pointer !important;} .pelagios .section-content ul.annotations {list-style-type: none !important; list-style-image: none !important; padding: 2px 0 2px 2px !important; margin: 0 0 0 5px !important;} .pelagios .section-content ul.annotations a {font-size: 0.7em !important;} .pelagios .search-form {padding: 10px 0 15px 10px !important; border-bottom: solid 1px #4F87D1 !important; margin: 0 10px 0 10px !important;} .pelagios .search-form input[type=text] {display: inline !important; height: 20px !important;} .pelagios .search-form input[type=submit] {display: inline !important; padding: 5px 5px 5px 5px;} .pelagios .search-map {padding: 10px 0 15px 20px !important; border-bottom: solid 1px #4F87D1 !important; margin: 0 10px 0 10px !important;} .pelagios .no-search-results {margin: 10px 10px 10px 10px !important;} .pelagios .list-results-section {padding: 10px 0 15px 20px !important; margin: 0 10px 0 10px !important;} .pelagios .list-results {padding: 10px 0 15px 10px !important; margin: 0 10px 0 10px !important;} .pelagios .list-results ul {font-size: 090%; margin-left: 1em; padding-left: 1em;}} \ No newline at end of file +@media screen {.pelagios div, .pelagios span, .pelagios h1, .pelagios h2, .pelagios h3, .pelagios a, .pelagios img, .pelagios ul {margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 15px!important; vertical-align: baseline !important;} .pelagios {font-family: Arial, Helvetica, sans-serif !important; display: inline !important; line-height: 1.3 !important;} .pelagios .container {width: 550px !important; padding: 5px 15px 15px !important; border-radius: 15px !important; -moz-border-radius: 15px !important; position: absolute !important; z-index: 10000 !important; opacity: 1.0 !important; background: #4F87D1 !important; background: -moz-linear-gradient(top, #4F87D1 , #C8E5FA) !important; background: -webkit-gradient(linear, left top, left bottom, from(#4F87D1 ), to(#C8E5FA)) !important; filter: progid:DXImageTransform.Microsoft.Gradient( StartColorStr='#4F87D1', EndColorStr='#C8E5FA', GradientType=0) !important;} .pelagios .close {float: right !important; padding: 5px 5px 0 0 !important;} .pelagios .logo {float: left !important; padding: 20px 0 0 20px !important;} .pelagios .icon {cursor: pointer !important;} .pelagios .content-wrapper {margin: 130px 15px 15px 15px !important; background: white !important; border-radius: 15px !important; -moz-border-radius: 15px !important; color: #1C3664 !important; padding: 0 0 0 0 !important;} .pelagios .footer {background: white !important; height: 15px !important; border-radius: 15px !important; -moz-border-radius: 15px !important;} .pelagios p {margin: 5px 0 5px 0 !important;} .pelagios a {font-weight: bold !important; color: #4F87D1 !important; text-decoration: none !important;} .pelagios a:hover, .pelagios a:visited {color: #1c3664 !important;} .pelagios h1 {font-size: 1.3em !important; padding: 10px 0 5px 20px !important; margin: 10px 0 0 0 !important; color: white !important; font-family: Times New Roman !important; background: #1C3664 !important; border-radius: 15px 15px 0 0 !important; -moz-border-radius: 15px 15px 0 0 !important;} .pelagios .pleiades-icon {margin: 10px 5px 0 0 !important; padding: 3px 3px 3px 3px !important; border: solid 1px #4F87D1 !important; border-radius: 5px !important; -moz-border-radius: 5px !important; vertical-align: -25% !important;} .pelagios .section {margin: 2px 0 2px 0 !important;} .pelagios .section-header {color: white !important; background: #1C3664 !important; padding: 5px 5px 5px 15px !important; min-height: 30px !important; cursor: pointer !important;} .pelagios .section-header img {display: inline !important;} .pelagios .section-header .section-icon {height: 25px !important; float:left !important; margin: 5px !important; border: 2px solid white; border-radius: 2px !important; -moz-border-radius: 2px !important;} .pelagios .section-header h2 {display: inline !important; padding: 5px 0 0 5px !important; vertical-align:-25% !important; color: white !important;} .pelagios .section-header h2:hover {color: #4f87d1 !important;} .pelagios .section-header .section-toggle {padding: 10px 10px 0 10px !important; vertical-align:-25% !important;} .pelagios .section-header .section-strapline {font-size: 0.8em !important; padding: 5px 0 0 5px !important;} .pelagios .section-content {background: white !important; padding: 10px 10px 10px 20px !important;} .pelagios .link {font-weight: bold !important; color: #4F87D1 !important;} .pelagios .link:hover{color: #1c3664 !important;} .pelagios .section-content .annotations {padding: 0 !important; margin: 10px 5px 5px 10px !important;} .pelagios .subdataset_pagination a {color: #4F87D1 !important; margin: 10px 5px 5px 5px !important; font-size: 0.7em !important;} .pelagios .subdataset_pagination .current {color: #1c3664 !important; font-weight: bold;} .pelagios .subdataset_pagination span{margin: 10px 5px 5px 5px !important; font-size: 0.7em !important;} .pelagios .section-content ul.subdatasets {list-style-type: disc !important; margin: 0 0 0 20px !important;} .pelagios .section-content ul.subdatasets li {cursor: pointer !important;} .pelagios .section-content ul.annotations {list-style-type: disc !important; list-style-image: none !important; padding: 2px 0 2px 2px !important; margin: 0 0 0 5px !important;} .pelagios .section-content ul.annotations a {font-size: 0.7em !important;} .pelagios .search-form {padding: 10px 0 15px 10px !important; border-bottom: solid 1px #4F87D1 !important; margin: 0 10px 0 10px !important;} .pelagios .search-form input[type=text] {display: inline !important; height: 20px !important;} .pelagios .search-form input[type=submit] {display: inline !important; padding: 5px 5px 5px 5px;} .pelagios .search-map {padding: 10px 0 15px 20px !important; border-bottom: solid 1px #4F87D1 !important; margin: 0 10px 0 10px !important;} .pelagios .no-search-results {margin: 10px 10px 10px 10px !important;} .pelagios .list-results-section {padding: 10px 0 15px 20px !important; margin: 0 10px 0 10px !important;} .pelagios .list-results {padding: 10px 0 15px 10px !important; margin: 0 10px 0 10px !important;} .pelagios .list-results ul {font-size: 090%; margin-left: 1em; padding-left: 1em;}} \ No newline at end of file diff --git a/build/demo/index.html b/build/demo/index.html new file mode 100644 index 0000000..5c1da78 --- /dev/null +++ b/build/demo/index.html @@ -0,0 +1,46 @@ + + + +Pelagios Widgets + + + +

Demonstration of the Pelagios Widgets

+

Place Widget: Different Places

+ +

Search Widget

+ +

Different Widget Options

+ + +

Place Widget: Special Cases

+ + + + \ No newline at end of file diff --git a/build/test/manual/place_demo/aphrodisias.html b/build/demo/place/aphrodisias.html similarity index 67% rename from build/test/manual/place_demo/aphrodisias.html rename to build/demo/place/aphrodisias.html index c8752c7..30fb5c3 100644 --- a/build/test/manual/place_demo/aphrodisias.html +++ b/build/demo/place/aphrodisias.html @@ -1,8 +1,8 @@ - - + +

Pelagios Widget Demo: Aphrodisias (638753)

diff --git a/build/test/manual/place_demo/athens.html b/build/demo/place/athens.html similarity index 65% rename from build/test/manual/place_demo/athens.html rename to build/demo/place/athens.html index 354f990..267aa3c 100644 --- a/build/test/manual/place_demo/athens.html +++ b/build/demo/place/athens.html @@ -1,7 +1,7 @@ - - + +

Pelagios Widget Demo: Athens (579885)

diff --git a/build/test/manual/place_demo/corinth.html b/build/demo/place/corinth.html similarity index 90% rename from build/test/manual/place_demo/corinth.html rename to build/demo/place/corinth.html index aff6047..3ddd6f0 100644 --- a/build/test/manual/place_demo/corinth.html +++ b/build/demo/place/corinth.html @@ -3,14 +3,14 @@ Pelagios Widget Demo: Corinth (570182) - - + +

Pelagios Widget Demo: Corinth (570182)

HTML 5

Click the icon to display the widget

-
+

Text afterwards for demo purposes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut felis non massa mattis imperdiet. Donec sit amet turpis non elit cursus aliquet quis ac nunc. Phasellus vitae nisl dui. Sed sit amet quam ac tellus tincidunt convallis. Maecenas nunc justo, rutrum nec accumsan mattis, dignissim nec neque. Etiam pulvinar nulla eget magna porttitor interdum. Mauris aliquam, urna sed pretium faucibus, ipsum tortor commodo quam, sed pharetra turpis nulla fermentum nunc. Integer sit amet diam felis, et imperdiet nunc. Donec velit tellus, gravida vel euismod at, suscipit at nulla. Nam elementum, ipsum sit amet hendrerit fringilla, tortor nisl ultricies nisl, sit amet pretium tellus libero imperdiet lorem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Duis gravida enim nec elit condimentum non vehicula orci vestibulum. Curabitur dignissim nunc ut ante pellentesque accumsan. In eget mollis libero. Nam vel mi sit amet est suscipit bibendum. Quisque quis orci nibh, id molestie neque. diff --git a/build/test/manual/place_edge_cases/no_partner_content.html b/build/demo/place/lentia.html similarity index 100% rename from build/test/manual/place_edge_cases/no_partner_content.html rename to build/demo/place/lentia.html diff --git a/build/test/manual/place_demo/olympia.html b/build/demo/place/olympia.html similarity index 65% rename from build/test/manual/place_demo/olympia.html rename to build/demo/place/olympia.html index 202592d..0805ad0 100644 --- a/build/test/manual/place_demo/olympia.html +++ b/build/demo/place/olympia.html @@ -1,7 +1,7 @@ - - + +

Pelagios Widget Demo: Olympia (570531)

diff --git a/build/test/manual/place_demo/olympics.html b/build/demo/place/olympics.html similarity index 91% rename from build/test/manual/place_demo/olympics.html rename to build/demo/place/olympics.html index 3a818d3..bc27425 100644 --- a/build/test/manual/place_demo/olympics.html +++ b/build/demo/place/olympics.html @@ -3,9 +3,8 @@ - - - + + Pelagios Widget Demo: Table diff --git a/build/test/manual/place_demo/rome.html b/build/demo/place/rome.html similarity index 67% rename from build/test/manual/place_demo/rome.html rename to build/demo/place/rome.html index 841393d..2be314e 100644 --- a/build/test/manual/place_demo/rome.html +++ b/build/demo/place/rome.html @@ -1,8 +1,8 @@ - - + +

Pelagios Widget Demo: Rome (423025)

diff --git a/build/demo/place_options/display_map_false.html b/build/demo/place_options/display_map_false.html new file mode 100644 index 0000000..d10a620 --- /dev/null +++ b/build/demo/place_options/display_map_false.html @@ -0,0 +1,14 @@ + + + + + + + + +

data-display_map="false"

+ +
+ + \ No newline at end of file diff --git a/build/demo/place_options/icon_false.html b/build/demo/place_options/icon_false.html new file mode 100644 index 0000000..e520705 --- /dev/null +++ b/build/demo/place_options/icon_false.html @@ -0,0 +1,13 @@ + + + + + + + + +

data-icon="false"

+ +
+ + \ No newline at end of file diff --git a/build/demo/place_options/mouseover_true.html b/build/demo/place_options/mouseover_true.html new file mode 100644 index 0000000..b057e7a --- /dev/null +++ b/build/demo/place_options/mouseover_true.html @@ -0,0 +1,13 @@ + + + + + + + + +

data-mouseover="true"

+ +
+ + \ No newline at end of file diff --git a/build/test/manual/place_edge_cases/basic.html b/build/demo/place_special_cases/basic.html similarity index 64% rename from build/test/manual/place_edge_cases/basic.html rename to build/demo/place_special_cases/basic.html index 924de59..5d3dada 100644 --- a/build/test/manual/place_edge_cases/basic.html +++ b/build/demo/place_special_cases/basic.html @@ -2,8 +2,8 @@ - - + +

TEST: Basic

diff --git a/build/test/manual/place_edge_cases/gmapv2.html b/build/demo/place_special_cases/gmapv2.html similarity index 64% rename from build/test/manual/place_edge_cases/gmapv2.html rename to build/demo/place_special_cases/gmapv2.html index 924de59..5d3dada 100644 --- a/build/test/manual/place_edge_cases/gmapv2.html +++ b/build/demo/place_special_cases/gmapv2.html @@ -2,8 +2,8 @@ - - + +

TEST: Basic

diff --git a/build/demo/place_special_cases/html4_strict.html b/build/demo/place_special_cases/html4_strict.html new file mode 100644 index 0000000..2a21def --- /dev/null +++ b/build/demo/place_special_cases/html4_strict.html @@ -0,0 +1,12 @@ + + + + + + + + +

HTML 4 Strict Doctype

+
+ + \ No newline at end of file diff --git a/build/demo/place_special_cases/html4_trans.html b/build/demo/place_special_cases/html4_trans.html new file mode 100644 index 0000000..d860c6f --- /dev/null +++ b/build/demo/place_special_cases/html4_trans.html @@ -0,0 +1,13 @@ + + + + + TEST: HTML 5 + + + + +

HTML4 Transitional Doctype

+
+ + \ No newline at end of file diff --git a/build/test/manual/place_edge_cases/html5.html b/build/demo/place_special_cases/html5.html similarity index 57% rename from build/test/manual/place_edge_cases/html5.html rename to build/demo/place_special_cases/html5.html index 970b99c..fcd0d77 100644 --- a/build/test/manual/place_edge_cases/html5.html +++ b/build/demo/place_special_cases/html5.html @@ -3,8 +3,8 @@ TEST: HTML 5 - - + +

TEST: HTML 5

diff --git a/build/demo/place_special_cases/inline.html b/build/demo/place_special_cases/inline.html new file mode 100644 index 0000000..375c21c --- /dev/null +++ b/build/demo/place_special_cases/inline.html @@ -0,0 +1,11 @@ + + + + + + + +

Inline embed

+

Text before

and text afterwards.

+ + diff --git a/build/test/manual/place_edge_cases/invalid_id.html b/build/demo/place_special_cases/invalid_id.html similarity index 66% rename from build/test/manual/place_edge_cases/invalid_id.html rename to build/demo/place_special_cases/invalid_id.html index 031fa4c..c1820d0 100644 --- a/build/test/manual/place_edge_cases/invalid_id.html +++ b/build/demo/place_special_cases/invalid_id.html @@ -1,8 +1,8 @@ - - + +

TEST: Invalid Pleiades ID

diff --git a/build/demo/place_special_cases/multiple_jquery.html b/build/demo/place_special_cases/multiple_jquery.html new file mode 100644 index 0000000..306ccfe --- /dev/null +++ b/build/demo/place_special_cases/multiple_jquery.html @@ -0,0 +1,13 @@ + + + + + + + + + +

TEST: Multiple versions of JQuery

+
+ + \ No newline at end of file diff --git a/build/test/manual/place_edge_cases/multiple_widgets.html b/build/demo/place_special_cases/multiple_widgets.html similarity index 83% rename from build/test/manual/place_edge_cases/multiple_widgets.html rename to build/demo/place_special_cases/multiple_widgets.html index f9566d0..0f80e60 100644 --- a/build/test/manual/place_edge_cases/multiple_widgets.html +++ b/build/demo/place_special_cases/multiple_widgets.html @@ -3,14 +3,13 @@ - + +

Pelagios Widget Demo: Corinth and Rome HTML 4

Click each the first icon to display the Corinth widget. Click the second icon to display the Rome widget.

Corinth widget 1

- -

Rome widget

diff --git a/build/test/manual/place_edge_cases/no_doctype.html b/build/demo/place_special_cases/no_doctype.html similarity index 53% rename from build/test/manual/place_edge_cases/no_doctype.html rename to build/demo/place_special_cases/no_doctype.html index e854df6..3a45d35 100644 --- a/build/test/manual/place_edge_cases/no_doctype.html +++ b/build/demo/place_special_cases/no_doctype.html @@ -1,7 +1,7 @@ - - + +

TEST: No doctype (quirksmode)

diff --git a/build/test/manual/place_edge_cases/table.html b/build/demo/place_special_cases/table.html similarity index 92% rename from build/test/manual/place_edge_cases/table.html rename to build/demo/place_special_cases/table.html index 68eb9ef..a7c0a4a 100644 --- a/build/test/manual/place_edge_cases/table.html +++ b/build/demo/place_special_cases/table.html @@ -2,8 +2,8 @@ - - + +

TEST: Table

diff --git a/build/demo/search/search.html b/build/demo/search/search.html new file mode 100644 index 0000000..fae5fda --- /dev/null +++ b/build/demo/search/search.html @@ -0,0 +1,13 @@ + + + + Search Widget + + + + +

Search Widget

+ + + + \ No newline at end of file diff --git a/build/demo/search_options/display_map_false.html b/build/demo/search_options/display_map_false.html new file mode 100644 index 0000000..ab50d20 --- /dev/null +++ b/build/demo/search_options/display_map_false.html @@ -0,0 +1,13 @@ + + + + Search Widget + + + + +

Search Widget

+ + + + \ No newline at end of file diff --git a/build/docs/index.html b/build/docs/index.html new file mode 100644 index 0000000..1ce4036 --- /dev/null +++ b/build/docs/index.html @@ -0,0 +1,69 @@ + + + +How to Embed the Pelagios Widgets + + + +

How to embed the Pelagios widgets

+

How to embed the Pelagios Place Widget

+

+1) Add the following javascript somewhere on your page.

+
+<script type="text/javascript" src="http://pelagios.github.com/pelagios-widgets/lib/require.js"></script>
+<script type="text/javascript" src="http://pelagios.github.com/pelagios-widgets/place.js"></script>
+
+

+You only need to include the scripts once on each page even if you want to include multiple widgets. +

+2) Find the Pleiades ID of the place +

+Find the place on the Pleiades website and look at the URL of the page for the place to get the Pleiades ID of the place. e.g. if the URL is http://pleiades.stoa.org/places/579885/ or http://pleiades.stoa.org/places/579885/?searchterm=Athens* then the Pleiades ID is 579885. +

+3) Choose a widget ID +

+Your widget needs an ID which can be any alphanumeric string you like, but it must not clash with the id of any other html element on your page and if you want to embed more than one widget on a page each widget must have a different ID. +

+4) Add the following HTML to your page +

+Where you would like the widget to appear add the following HTML where PLEIADES_ID is your Pleiades ID and WIDGET_ID is your widget ID. +

+
+<div id="WIDGET_ID" data-pleiades_id="PLEIADES_ID" class="pelagios pelagios-place"></div>
+
+ +

How to embed the Pelagios Search Widget

+

+1) Add the following javascript somewhere on your page. +

+
+<script type="text/javascript" src="http://pelagios.github.com/pelagios-widgets/lib/require.js"></script>
+<script type="text/javascript" src="http://pelagios.github.com/pelagios-widgets/search.js"></script>
+
+ +

+2) Choose a widget ID +

+Your widget needs an ID which can be any alphanumeric string you like, but it must not clash with the id of any other html element on your page and if you want to embed more than one widget on a page each widget must have a different ID. +

+3) Add the following HTML to your page +

+<div id="WIDGET_ID" class="pelagios pelagios-search"></div>
+
+

+Where you would like the widget to appear add the following HTML where PLEIADES_ID is your Pleiades ID and WIDGET_ID is your widget ID.

+

+

Options

+ +

Hosting the widget code locally

+

You are of course welcome to download the javascript libraries and host them locally. If you place the contents of the build directory at http:// then you then need to use the following javascript instead: +

+<script type="text/javascript" src="http:///lib/require.js"></script> 
+<script type="text/javascript" src="http:///code/search.js"></script>
+
+ \ No newline at end of file diff --git a/build/docs/styles.css b/build/docs/styles.css new file mode 100644 index 0000000..05655e3 --- /dev/null +++ b/build/docs/styles.css @@ -0,0 +1 @@ +body {font-family: Helvetica; font-size: 1.0em,}h2 {font-size: 0.9em;}label {display:block}input {display:block} \ No newline at end of file diff --git a/build/index.html b/build/index.html new file mode 100644 index 0000000..ec75217 --- /dev/null +++ b/build/index.html @@ -0,0 +1,34 @@ + + + +Pelagios Widgets + + + +

Pelagios Widgets

+

The Pelagios widgets are widgets that you can embed on a web page to display +data from the Pelagios partners. For more about the Pelagios project, see +the main Pelagios website. +

+

+There are currently two widgets:

+ + +

Instructions for embedding the widgets

+ +

Demonstration of the widgets

+ +

The Pelagios Widget code is open-source, released under GPLv3: pelagios-widgets on Github

+ +

If you have any issues with embedding the widgets, please contact Juliette +Culver (j.culver@open.ac.uk) or raise an issue on github.

+ +

The Pelagios Widgets were developed by the Institute of Educational Technology at The Open University +as part of the Pelagios 2 project funded by JISC.

+ + \ No newline at end of file diff --git a/build/test/manual/place_edge_cases/inline.html b/build/test/manual/place_edge_cases/inline.html deleted file mode 100644 index 691dea1..0000000 --- a/build/test/manual/place_edge_cases/inline.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - -

TEST: Inline widget

- - - -

Text before

and text afterwards.

- - diff --git a/build/test/manual/place_edge_cases/multiple.html b/build/test/manual/place_edge_cases/multiple.html deleted file mode 100644 index 62c492f..0000000 --- a/build/test/manual/place_edge_cases/multiple.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - -

TEST: Multiple widgets

-

Click each the first icon to display the Corinth widget. Click the second icon to display the Rome widget.

-

Corinth widget 1

- -
-

Rome widget

-
-

Corinth widget 2

-
- - - diff --git a/build/test/manual/place_edge_cases/multiple_jquery.html b/build/test/manual/place_edge_cases/multiple_jquery.html deleted file mode 100644 index 56b1d75..0000000 --- a/build/test/manual/place_edge_cases/multiple_jquery.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - -

TEST: Multiple versions of JQuery

-
- - \ No newline at end of file diff --git a/build/test/manual/search/demo.php b/build/test/manual/search/demo.php deleted file mode 100644 index ff5d9b7..0000000 --- a/build/test/manual/search/demo.php +++ /dev/null @@ -1,13 +0,0 @@ - - - - Search demo - - - - -

Pelagios Search Widget Demo

- - - - \ No newline at end of file