From dd3ae1a0928d1e180578d41d604243e25ceb41cc Mon Sep 17 00:00:00 2001 From: danactive Date: Sat, 29 Nov 2014 12:04:01 -0800 Subject: [PATCH] Prepare for JSON folder, move albums to XML source folder --- app.js | 2 +- favicon.ico | Bin 0 -> 318 bytes gallery-demo/{ => xml}/album_sample.xml | 2 +- gallery-demo/{ => xml}/character_ass.xml | 14 +- gallery-demo/{ => xml}/characters.xml | 42 +++--- gallery-demo/{ => xml}/gallery.xml | 26 ++-- index.htm | 12 +- js/xml.js | 2 +- xslt/album.xslt | 7 +- xslt/gallery.xslt | 158 +++++++++++------------ 10 files changed, 133 insertions(+), 132 deletions(-) create mode 100644 favicon.ico rename gallery-demo/{ => xml}/album_sample.xml (93%) rename gallery-demo/{ => xml}/character_ass.xml (98%) rename gallery-demo/{ => xml}/characters.xml (89%) rename gallery-demo/{ => xml}/gallery.xml (89%) diff --git a/app.js b/app.js index 92173db96..152784360 100644 --- a/app.js +++ b/app.js @@ -25,7 +25,7 @@ var doT = require('doT'), response.write("

Photo Galleries

"); response.end('Admin'); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..cd6234da1baf9829d095bae0e723f669b38a6316 GIT binary patch literal 318 zcmbtOu?fI13{#*7Wa`|phh)!7J}pOeS0$4|p=7FpWlNSJK+&tU!Z-`CyQ}ORs)9`n zMDmx?7sVXHNr^FrT7VEloCBwzjJ5`uyG~vnl(r$6#;acrNVo2wwt4v6$?*9C{@Neh D);Cea literal 0 HcmV?d00001 diff --git a/gallery-demo/album_sample.xml b/gallery-demo/xml/album_sample.xml similarity index 93% rename from gallery-demo/album_sample.xml rename to gallery-demo/xml/album_sample.xml index 3e4a74a2b..1f312413c 100644 --- a/gallery-demo/album_sample.xml +++ b/gallery-demo/xml/album_sample.xml @@ -1,5 +1,5 @@  - + diff --git a/gallery-demo/character_ass.xml b/gallery-demo/xml/character_ass.xml similarity index 98% rename from gallery-demo/character_ass.xml rename to gallery-demo/xml/character_ass.xml index b8f31e6af..5459899ac 100644 --- a/gallery-demo/character_ass.xml +++ b/gallery-demo/xml/character_ass.xml @@ -1,8 +1,8 @@ - - - - -sample

2

3
-sample

3

1
-sample

1

3
+ + + + +sample

2

3
+sample

3

1
+sample

1

3
\ No newline at end of file diff --git a/gallery-demo/characters.xml b/gallery-demo/xml/characters.xml similarity index 89% rename from gallery-demo/characters.xml rename to gallery-demo/xml/characters.xml index 53ffa2d71..23f83cfde 100644 --- a/gallery-demo/characters.xml +++ b/gallery-demo/xml/characters.xml @@ -1,22 +1,22 @@ - - - - - - - A - Friend - grade1 - 2006Q2 - - - - - Hurray - More - Best Friend - Canadian - 2010Q2 - - + + + + + + + A + Friend + grade1 + 2006Q2 + + + + + Hurray + More + Best Friend + Canadian + 2010Q2 + + \ No newline at end of file diff --git a/gallery-demo/gallery.xml b/gallery-demo/xml/gallery.xml similarity index 89% rename from gallery-demo/gallery.xml rename to gallery-demo/xml/gallery.xml index 04ee63da1..0a844df40 100644 --- a/gallery-demo/gallery.xml +++ b/gallery-demo/xml/gallery.xml @@ -1,14 +1,14 @@ - - - - - 1 - sample - 1.8 - 1 - Sample - British Columbia - 2001-2005 - 2004-01-04-01.jpg - + + + + + 1 + sample + 1.8 + 1 + Sample + British Columbia + 2001-2005 + 2004-01-04-01.jpg + \ No newline at end of file diff --git a/index.htm b/index.htm index 7e8460009..a89dda3b8 100644 --- a/index.htm +++ b/index.htm @@ -1,7 +1,7 @@ - -

View Photo Galleries

-
    -
  • Photo admin
  • -
  • GitHub: Download code
  • -
  • Demo site 0.15.0
  • + +

    View Photo Galleries

    + \ No newline at end of file diff --git a/js/xml.js b/js/xml.js index 04d9c0ed1..17539e131 100644 --- a/js/xml.js +++ b/js/xml.js @@ -4,7 +4,7 @@ function Xml(options) { callback = requireArg({"args": options, "name": "callback", "type": "function"}), gallery = requireArg({"args": options, "name": "gallery", "type": "string"}); - jQuery.get('../gallery-' + gallery + '/album_' + album + '.xml') + jQuery.get('../gallery-' + gallery + '/xml/album_' + album + '.xml') .error(ajaxError) .success(function (response) { var json = jQuery.parseJSON(util.xml.convertToJsonString(response,'')); diff --git a/xslt/album.xslt b/xslt/album.xslt index c3d3f6a4e..1fa3c8d37 100644 --- a/xslt/album.xslt +++ b/xslt/album.xslt @@ -3,8 +3,8 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - - + + @@ -15,7 +15,8 @@ History - Photo Album - + +