diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c17485e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*DS_Store diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ac9d5f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,38 @@ +FROM node:18.2.0-bullseye + +ARG USER_ID +ARG GROUP_ID + +ENV USER_ID=${USER_ID} +ENV GROUP_ID=${GROUP_ID} +ENV USER_NAME=mysuer + +ENV DEBIAN_FRONTEND noninteractive + +RUN getent passwd 1000 + +RUN userdel -r $(id -u -n ${USER_ID}) +RUN groupadd -g ${GROUP_ID} mygroup +RUN useradd -u ${USER_ID} -g ${GROUP_ID} -d /home/myuser -m myuser \ + && apt install ca-certificates bash + +ADD apt.conf.d /etc/apt/apt.conf.d + +RUN mkdir -p /usr/src/app + +RUN apt update && apt install -y unzip git wget + +RUN export PATH=/usr/lib/i386-linux-gnu/ImageMagick-6.8.9/bin-Q16:$PATH + +ADD static /usr/src/app + +RUN chown -R ${USER_ID}:${GROUP_ID} /usr/src/app + +USER ${USER_ID}:${GROUP_ID} + +WORKDIR /usr/src/app + +RUN npm install + +ENTRYPOINT [ "npm" ] +CMD [ "run build" ] \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ec957a8 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +IMAGE_NAME="bitprepared/dvd-site-generator" +VERSION=bullseye + +build-image: + docker buildx build --build-arg USER_ID=1000 --build-arg GROUP_ID=1000 -t $(IMAGE_NAME):$(VERSION) -t $(IMAGE_NAME):latest . + +build-dvd: + docker run --rm -i -v "${PWD}/dvd:/usr/src/app/dvd" -v "${PWD}/dati:/usr/src/app/dati" -v "${PWD}/static/index.js:/usr/src/app/index.js" -v "${PWD}/lib:/usr/src/app/lib" -v "${PWD}/assets:/usr/src/app/assets" -v "${PWD}/build:/usr/src/app/build" -t $(IMAGE_NAME):$(VERSION) run build + +build-dvd-mounted: + docker run --rm -i -v "${PWD}/dvd:/usr/src/app/dvd" -v "${PWD}/dati:/usr/src/app/dati" -v "${PWD}/static/index.js:/usr/src/app/index.js" -v "${PWD}/lib:/usr/src/app/lib" -v "${PWD}/assets:/usr/src/app/assets" -v "/home/yoghi/blackhole/dvd:/usr/src/app/build" -t $(IMAGE_NAME):$(VERSION) run build + +riduci-foto: + $(shell ~/Script/convert_image_smp.sh dvd/diariofotografico/materiale/foto_originali 1600 dvd/diariofotografico/materiale/foto UPDATE) + +jpg-rename: + $(shell find -name '*.JPG' -exec rename .JPG .jpg {} \;) + +clean: + rm -rf build/* + +outdated: + docker run --rm -i -v "${PWD}/dvd:/usr/src/app/dvd" -v "${PWD}/dati:/usr/src/app/dati" -v "${PWD}/static/index.js:/usr/src/app/index.js" -v "${PWD}/lib:/usr/src/app/lib" -v "${PWD}/assets:/usr/src/app/assets" -v "${PWD}/build:/usr/src/app/build" -t $(IMAGE_NAME):$(VERSION) outdated + +open: + qutebrowser file://${PWD}/build/index.html & + diff --git a/README.md b/README.md deleted file mode 100644 index af1f544..0000000 --- a/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Static dvd site generator - -Generazione di un sito in html statico a partire da dati in xml per la visione su cd/dvd/usb pen - -#### Dipendenze - -* saxon for xslt -* compass -* bash diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..650c143 --- /dev/null +++ b/Readme.md @@ -0,0 +1,43 @@ + +# Obiettivo +Creare un dvd/usb che possa essere consegnato a chi partecipa ad un evento, con tutti i documenti/applicazioni utilizzate in modo che rimanga un ricordo + +# Build image +Creazione docker image + +`make build-image` + +## Build local on debian jessie x86 ## + +Prima dell'installazione (npm install) controllare le dipendenze + +~~~ +curl -sL https://deb.nodesource.com/setup_8.x | bash +apt install libmagick++-dev +~~~ + +e alla fine eseguire + +~~~ +export PATH=/usr/lib/i386-linux-gnu/ImageMagick-6.8.9/bin-Q16:$PATH +~~~ + +# Build usb/dvd image + +`make build-dvd` + + +## Alberatura Intranet ## +NOTA: (vedi .htaccess -> ~/www/intranet) + + * http://local.bitprepared.it/sito/ -> ~/www/intranet/sito + * http://local.bitprepared.it/ -> ~/www/intranet/sito + * http://local.bitprepared.it/ -> ~/www/intranet/dashboard + * http://local.bitprepared.it/argh/web/login -> ~/www/intranet/argh/web/ + + +## TODO +- [ ] serve da implementare l'ultimo comando in make per la sync su chiavetta usb +- [ ] serve comando per creare iso +- [ ] serve il reset della struttura dati +- [ ] \ No newline at end of file diff --git a/apt.conf.d/01proxy b/apt.conf.d/01proxy new file mode 100644 index 0000000..d541571 --- /dev/null +++ b/apt.conf.d/01proxy @@ -0,0 +1 @@ +Acquire::http { Proxy "http://mirror.local.costigiola.net:3142"; }; \ No newline at end of file diff --git a/assets/css/inettuts.css b/assets/css/inettuts.css new file mode 100755 index 0000000..0b34e98 --- /dev/null +++ b/assets/css/inettuts.css @@ -0,0 +1,269 @@ +body, img, p, h1, h2, h3, h4, h5, h6, ul, ol { + border: medium none; + list-style: none outside none; + margin: 0; + padding: 0; +} + +body { + background-attachment: fixed; + /* background-color: #42AC88; */ + background-color: white; + /*background-image: url("/css/sfondoStatico.gif");*/ + /* background-position: center top; */ + /* background-repeat: no-repeat; */ + + + background-image: url("/img/sfondo.jpg"); + + /* Full height */ + height: 100%; + + /* Center and scale the image nicely */ + background-position: center; + background-repeat: no-repeat; + background-size: cover; + + + font-family: Arial,Verdana,Sans-Serif; + font-size: 0.8em; +} +a { + color: white; +} +.color-yellow { + background: none repeat scroll 0 0 #F2BC00; +} +.color-red { + background: none repeat scroll 0 0 #DD0000; +} +.color-blue { + background: none repeat scroll 0 0 #148EA4; +} +.color-white { + background: none repeat scroll 0 0 #DFDFDF; +} +.color-orange { + background: none repeat scroll 0 0 #F66E00; +} +.color-green { + background: none repeat scroll 0 0 #8DC100; +} +.color-yellow h3, .color-white h3, .color-green h3 { + color: #000000; +} +.color-red h3, .color-blue h3, .color-orange h3 { + color: #FFFFFF; +} +#head { + /*background: url("/css/head-bg.png") repeat-x scroll 0 0 #000000;*/ + height: 100px; +} +#head h1 { + /* color: #FFFFFF; */ + color: #000000; + line-height: 100px; + text-align: center; +} +#navigation { + text-align: right; +} +#columns .column { + float: left; + height: auto !important; + min-height: 400px; + width: 33.3%; + min-width: 400px; +} +#columns .column-small { + float: left; + height: auto !important; + min-height: 400px; + width: 20%; + min-width: 200px; +} +#columns #column1 { + /* background: url("/css/column-bg-left.png") no-repeat scroll right top transparent; */ +} +#columns #column3 { + /* background: url("/css/column-bg-right.png") no-repeat scroll left top transparent; */ +} +#columns #column1 .widget { + margin: 30px 35px 0 25px; +} +#columns #column3 .widget { + margin: 30px 25px 0 35px; +} +#columns .widget { + border-radius: 4px 4px 4px 4px; + margin: 30px 20px 0; + padding: 2px; +} +#columns .widget .widget-head { + color: #000000; + height: 30px; + line-height: 30px; + overflow: hidden; + width: 100%; +} +#columns .widget .widget-head h3 { + float: left; + padding: 0 5px; +} +#columns .widget .widget-content { + background: url("/img/widget-content-bg.png") repeat-x scroll 0 0 #333333; + border-bottom-left-radius: 2px; + border-bottom-right-radius: 2px; + color: #DDDDDD; + line-height: 1.2em; + overflow: hidden; + padding: 0 5px; +} +#columns .widget .widget-content p { + border-bottom: 1px solid #666666; + padding: 0.8em 0; +} +#columns .widget .widget-content img { + /* border: 1px solid #FFFFFF; */ + float: right; + margin: 10px; +} +#columns .widget .widget-content pre { + color: #EEEEEE; + font-size: 12px; + padding: 0.5em 5px; +} +#columns .widget .widget-content ul { + list-style: disc outside none; + padding: 5px 0 5px 20px; +} +#columns .widget .widget-content ul li { + padding: 3px 0; +} +#columns .widget .widget-content ul.images { + height: 1%; + list-style: none outside none; + padding: 7px 0 0; +} +#columns .widget .widget-content ul.images li { + display: inline; + float: left; +} +#columns .widget .widget-content ul.images img { + display: inline; + float: left; + margin: 0 0 7px 7px; +} + + + +/** MENUBAR */ + +#board { + margin: 0 auto; +} + +.module { + float: left; + text-align: center; + margin: 10px; +} + +#bargraph>div { +} + +.bar { + position: relative; + height: auto; + float: left; + padding: 0 12px; +} +.bars { + border-bottom: 1px solid #999; + float: left; +} +.bar-title { + margin-top: 12px; + float: left; +} + +.bar .header { + top: -8px; + position:relative; + font-size: 36px; + font-weight: thin; + letter-spacing: -0.08em; +} +.bar .total { + color: #fff; + font-weight: bold; +} +.bar .remaining { + color: #6cdaff; +} + +.bar .view { + border-width: 3px; + border-style: solid; + -moz-border-radius-topright: 3px; + -webkit-border-top-right-radius: 3px; + -moz-border-radius-topleft: 3px; + -webkit-border-top-left-radius: 3px; + border-bottom: 0px; +} + +#bar_1 { + background: #FFDF00; + border-color: #FFDF00; + border-left-color: #f3f35b; + border-top-color: #f3f35B; + border-right-color: #d5a110; +} + +#bar_2 { + background: #0000FF; + border-color: #0000FF; + border-left-color: #2151E3; + border-top-color: #2151E3; + border-right-color: #0000AD; +} + +#bar_3 { + background: #FD3B15; + border-color: #FD3B15; + border-left-color: #ff4c21; + border-top-color: #ff4c21; + border-right-color: #cd2e14; +} + +#bar_4 { + background: #FFA500; + border-color: #FFA500; + border-left-color: #F2B125; + border-top-color: #F2B125; + border-right-color: #FF8C00; +} + +#bar_5 { + background: #107CF8; + border-color: #107CF8; +/* border-left-color: #3368d7; */ + border-left-color: #1288ff; + border-top-color: #1288ff; + border-right-color: #3368d7; +} + +#bar_6 { + background: #d8d309; + border-color: #d8d309; +/* border-left-color: #beba06; */ + border-left-color: #ede80a; + border-top-color: #ede80a; + border-right-color: #beba06; +} + + +.gaibrush_logo { + text-align: center; +} + diff --git a/assets/css/inettuts.js.css b/assets/css/inettuts.js.css new file mode 100755 index 0000000..5939d65 --- /dev/null +++ b/assets/css/inettuts.js.css @@ -0,0 +1,73 @@ +/* JS-Enabled CSS */ + +.widget-head a.remove { + float: right; + display: inline; + background: url(/css/buttons.gif) no-repeat -24px 0; + width: 14px; + height: 14px; + margin: 8px 4px 8px 0; + text-indent: -9999em; + outline: none; +} + +.widget-head a.edit { + float: right; + display: inline; + background: url(/css/buttons.gif) no-repeat; + width: 24px; + height: 14px; + text-indent: -9999em; + margin: 8px 4px 8px 4px; + outline: none; +} + +.widget-head a.collapse { + float: left; + display: inline; + background: url(/css/buttons.gif) no-repeat -52px 0; + width: 14px; + height: 14px; + text-indent: -9999em; + margin: 8px 0 8px 4px; + outline: none; +} + +.widget-placeholder { border: 2px dashed #999;} +#column1 .widget-placeholder { margin: 30px 35px 0 25px; } +#column2 .widget-placeholder { margin: 30px 20px 0 20px; } +#column3 .widget-placeholder { margin: 30px 25px 0 35px; } + +.edit-box { + overflow: hidden; + background: #333 url(/css/widget-content-bg.png) repeat-x; + margin-bottom: 2px; + padding: 10px 0; +} + +.edit-box li.item { + padding: 10px 0; + overflow: hidden; + float: left; + width: 100%; + clear: both; +} + + +.edit-box label { + float: left; + width: 30%; + color: #FFF; + padding: 0 0 0 10px; +} + +.edit-box ul.colors li { + width: 20px; + height: 20px; + border: 1px solid #EEE; + float: left; + display: inline; + margin: 0 5px 0 0; + cursor: pointer; +} + diff --git a/sass/stile.css b/assets/css/stile.css old mode 100644 new mode 100755 similarity index 75% rename from sass/stile.css rename to assets/css/stile.css index 5309ddd..f1a9237 --- a/sass/stile.css +++ b/assets/css/stile.css @@ -9,11 +9,11 @@ padding-left: 0px; } .main #bone #content #form1 #ok { - border: 0px solid /*#04BE04*/; + border: 1px solid #ffd700; } .button{ - border: 0px solid /*#04BE04*/ !important; + border: 1px solid #ffd700!important; background:#000; padding:6px; @@ -21,14 +21,14 @@ padding:6px; } #bone { - background-color: #ffffff; + background-color: #000000; width: 780px; clear: both; margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; - border: 0px solid /*#00CC00*/; + border: 2px solid #ffd700; padding: 15px; } .main #bone #content { @@ -44,11 +44,11 @@ padding:6px; #content input { font-family: "Courier New", Courier, monospace; - color: #000000; + color: #ffffff; background-color: #000000; - border-bottom-width: 0px; -/* border-bottom-style: solid; - border-bottom-color: #04BE04;*/ + border-bottom-width: 2px; + border-bottom-style: solid; + border-bottom-color: #ffd700; margin: auto; border-top-style: none; border-right-style: none; @@ -61,13 +61,13 @@ html { height: 100%; } .main #bone a { - color: #000000; + color: #FFFFFF; text-decoration: none; } -/* .main #bone a:hover { +.main #bone a:hover { color: #000000; text-decoration: none; -background-color: #235F84;*/ + background-color: #ffd700; } .main #bone #head li { list-style-type: none; @@ -76,10 +76,10 @@ background-color: #235F84;*/ padding-left: 10px; font-size: 16px; font-family: "Courier New", Courier, monospace; - color: #33FF00; + color: #ffd700; }#content input .radio { font-family: "Courier New", Courier, monospace; - color: #00FF00; + color: #ffd700; background-color: #000000; border-bottom-style: none; border-top-style: none; @@ -94,23 +94,23 @@ background-color: #235F84;*/ } .main #bone #content .titolo { font-size: 18px; - color:#000000; + color:#FFFFFF; font-weight:bold; } .provenienze { border-bottom-width: 1px; border-bottom-style: solid; - border-bottom-color: #000000; + border-bottom-color: #FFFFFF; } .main #bone #footer #logout { font-size: 12px; font-weight: bold; font-variant: small-caps; - color: #000000; + color: #FFFFFF; text-align: right; background-color: #000000; float: right; - border: 1px solid #000000; + border: 1px solid #FFFFFF; font-family: "Courier New", Courier, monospace; margin-top: 6px; margin-right: 2px; @@ -132,17 +132,17 @@ background-color: #235F84;*/ } .Stile1 { - color: #000000; + color: #FFFFFF; font-weight: bold; } #content textarea { font-family: "Courier New", Courier, monospace; - color: #000000; + color: #ffffff; background-color: #000000; - border-bottom-width: 0px; -/* border-bottom-style: solid; - border-bottom-color: #04BE04;*/ + border-bottom-width: 2px; + border-bottom-style: solid; + border-bottom-color: #ffd700; margin: auto; border-top-style: none; border-right-style: none; @@ -151,5 +151,5 @@ background-color: #235F84;*/ .righino_form { border-bottom-width: 1px; border-bottom-style: dotted; - border-bottom-color: #00CC00; + border-bottom-color: #ffd700; } diff --git a/sass/stile_m.css b/assets/css/stile_m.css old mode 100644 new mode 100755 similarity index 74% rename from sass/stile_m.css rename to assets/css/stile_m.css index 10d3114..c1fc150 --- a/sass/stile_m.css +++ b/assets/css/stile_m.css @@ -2,11 +2,12 @@ body { font-family: "Courier New", Courier, monospace; font-size: 14px; - color:#000; + color: #ffd700; background-attachment: fixed; - background-color:#42AC88 /* #000000*/; - /*background-image: url(advancedmatrixphp.gif);*/ - background-repeat: repeat; + background-color: #000000; + /* background-image: url(../img/sfondo.jpg); + background-repeat: no-repeat; + background-position: right; */ margin: 0px; padding: 0px; } @@ -23,21 +24,19 @@ body { } .main #bone #content #form1 #ok { - border: 0px /*solid #04BE04*/; + border: 1px solid #ffd700; } #bone { - /*background:url(./caccia-al-tesoro1.png); */ - background-repeat:no-repeat; - background-color: #ffffff; + background-color: #000000; width: 780px; clear: both; margin-top: 0; margin-right: auto; margin-bottom: auto; margin-left: auto; - /* border-top: #00CC00*/; + border: 2px solid #ffd700; padding: 15px; } .main #bone #content { @@ -52,15 +51,15 @@ body { } .filino { - border-bottom: 0px solid /*#0F0*/;} + border-bottom: 1px solid #ffd700;} #content input { font-family: "Courier New", Courier, monospace; - color: #00FF00; - background-color: #ffffff; - border-bottom-width: 0px; - /*border-bottom-style: solid; - border-bottom-color: #04BE04;*/ + color: #ffd700; + background-color: #000000; + border-bottom-width: 2px; + border-bottom-style: solid; + border-bottom-color: #ffd700; margin: auto; border-top-style: none; border-right-style: none; @@ -73,15 +72,14 @@ html { height: 100%; } .main #bone a { - /*color: #42AC88;*/ - color:blue; + color: #FFFFFF; text-decoration: none; } -/* .main #bone a:hover { - color: #ffffff; +.main #bone a:hover { + color: #000000; text-decoration: none; - background-color: #42AC88; -} */ + background-color: #ffd700; +} .main #bone #head li { list-style-type: none; display: inline; @@ -89,12 +87,12 @@ html { padding-left: 10px; font-size: 16px; font-family: "Courier New", Courier, monospace; - color: #33FF00; + color: #ffd700; } #content input .radio { font-family: "Courier New", Courier, monospace; - color: #42AC88; - background-color: #42AC88; + color: #ffd700; + background-color: #000000; border-bottom-style: none; border-top-style: none; border-right-style: none; @@ -108,23 +106,23 @@ html { } .main #bone #content .titolo { font-size: 18px; - color:#000; + color:#FFFFFF; font-weight:bold; } .provenienze { border-bottom-width: 1px; border-bottom-style: solid; - border-bottom-color: #000; + border-bottom-color: #FFFFFF; } .main #bone #footer #logout { font-size: 12px; font-weight: bold; font-variant: small-caps; - color: #000; + color: #FFFFFF; text-align: right; - background-color: #ffffff; + background-color: #000000; float: right; - border: 0px solid /*#000*/; + border: 1px solid #FFFFFF; font-family: "Courier New", Courier, monospace; margin-top: 6px; margin-right: 2px; @@ -146,13 +144,13 @@ html { } .Stile1 { - color: #000; + color: #FFFFFF; font-weight: bold; } #menu { - background-color: #ffffff; - border: 0px solid /*#00CC00*/; + background-color: #000000; + border: 2px solid #ffd700; text-align: left; list-style-position: inset; list-style-image: none; @@ -161,13 +159,11 @@ html { line-height: 25px; margin-left:15px; - } #menu li a { list-style-type: none; padding-right: 10px; padding-left: 10px; font-family: "Courier New", Courier, monospace; - color: #000000; - + color: #ffd700; } diff --git a/assets/img/footer.png b/assets/img/footer.png new file mode 100644 index 0000000..6c137d1 Binary files /dev/null and b/assets/img/footer.png differ diff --git a/assets/img/sfondo.jpg b/assets/img/sfondo.jpg new file mode 100755 index 0000000..5713b34 Binary files /dev/null and b/assets/img/sfondo.jpg differ diff --git a/assets/img/starwars.png b/assets/img/starwars.png new file mode 100755 index 0000000..140c329 Binary files /dev/null and b/assets/img/starwars.png differ diff --git a/assets/img/widget-content-bg.png b/assets/img/widget-content-bg.png new file mode 100755 index 0000000..db54a2d Binary files /dev/null and b/assets/img/widget-content-bg.png differ diff --git a/assets/js/inettuts.js b/assets/js/inettuts.js new file mode 100755 index 0000000..2ff8780 --- /dev/null +++ b/assets/js/inettuts.js @@ -0,0 +1,336 @@ +/* + * Script from NETTUTS.com [by James Padolsey] + * @requires jQuery($), jQuery UI & sortable/draggable UI modules + */ + +var iNettuts = { + + jQuery : $, + + settings : { + columns : '.column', + widgetSelector: '.widget', + handleSelector: '.widget-head', + contentSelector: '.widget-content', + + /* If you don't want preferences to be saved change this value to false, otherwise change it to the name of the cookie: */ + saveToCookie: 'costigiola-dash', + + widgetDefault : { + movable: false, + removable: false, + collapsible: false, + editable: false, + colorClasses : ['color-yellow', 'color-red', 'color-blue', 'color-white', 'color-orange', 'color-green'] + }, + widgetIndividual : { + intro : { + movable: false, + removable: false, + collapsible: false, + editable: false + } + } + }, + + init : function () { + + this.attachStylesheet('/css/inettuts.js.css'); + + $(this.settings.widgetSelector,$(this.settings.columns)).each(function (i) { + if(!this.id) { + this.id = 'widget-no-id-' + i; + } + }); + + this.addWidgetControls(); + this.makeSortable(); + this.sortWidgets(); + }, + + getWidgetSettings : function (id) { + var $ = this.jQuery, + settings = this.settings; + return (id && settings.widgetIndividual[id]) ? $.extend({},settings.widgetDefault,settings.widgetIndividual[id]) : $.extend({},settings.widgetDefault); + }, + + + setWidgetSettings: function (id,newSettings) { + var $ = this.jQuery, + settings = this.settings; + settings.widgetIndividual[id] = $.extend({},newSettings); + }, + + update : function () { + this.addWidgetControls(); + this.makeSortable(); + }, + + + addWidgetControls : function () { + var iNettuts = this, + $ = this.jQuery, + settings = this.settings; + + $(settings.widgetSelector, $(settings.columns)).each(function () { + var thisWidgetSettings = iNettuts.getWidgetSettings(this.id); + + $(settings.handleSelector+" .remove", this).remove('.remove'); + + if (thisWidgetSettings.removable) { + $('CLOSE').mousedown(function (e) { + e.stopPropagation(); + }).click(function () { + if(confirm('This widget will be removed, ok?')) { + $(this).parents(settings.widgetSelector).animate({ + opacity: 0 + },function () { + $(this).wrap('
').parent().slideUp(function () { + $(this).remove(); + }); + }); + } + return false; + }).appendTo($(settings.handleSelector, this)); + + } + + $(settings.handleSelector+" .edit", this).remove('.edit'); + $(".edit-box", this).remove('.edit-box'); + + if (thisWidgetSettings.editable) { + + $('EDIT').mousedown(function (e) { + e.stopPropagation(); + }).toggle(function () { + $(this).css({backgroundPosition: '-66px 0', width: '55px'}) + .parents(settings.widgetSelector) + .find('.edit-box').show().find('input').focus(); + return false; + },function () { + $(this).css({backgroundPosition: '', width: ''}) + .parents(settings.widgetSelector) + .find('.edit-box').hide(); + return false; + }).appendTo($(settings.handleSelector,this)); + + $('').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(), +top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle= +this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne", +nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d
');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor== +String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection(); +this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){if(!a.disabled){e(this).removeClass("ui-resizable-autohide");b._handles.show()}},function(){if(!a.disabled)if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy(); +var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a= +false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"}); +this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff= +{width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis]; +if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false}, +_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;f=f?0:c.sizeDiff.width;f={width:c.helper.width()-f,height:c.helper.height()-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f, +{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(b){var a=this.options,c,d,f;a={minWidth:k(a.minWidth)?a.minWidth:0,maxWidth:k(a.maxWidth)?a.maxWidth:Infinity,minHeight:k(a.minHeight)?a.minHeight:0,maxHeight:k(a.maxHeight)?a.maxHeight: +Infinity};if(this._aspectRatio||b){b=a.minHeight*this.aspectRatio;d=a.minWidth/this.aspectRatio;c=a.maxHeight*this.aspectRatio;f=a.maxWidth/this.aspectRatio;if(b>a.minWidth)a.minWidth=b;if(d>a.minHeight)a.minHeight=d;if(cb.width,h=k(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,l=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&l)b.left=i-a.minWidth;if(d&&l)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left= +null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+ +a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+ +c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]); +b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"1.8.15"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(), +10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top- +f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var l=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:l.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n=(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(l.css("position"))){c._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType? +e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a= +e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing, +step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement= +e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset; +var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left: +a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top- +d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition, +f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25, +display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b= +e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height= +d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},k=function(b){return!isNaN(parseInt(b,10))}})(jQuery); +;/* + * jQuery UI Selectable 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Selectables + * + * Depends: + * jquery.ui.core.js + * jquery.ui.mouse.js + * jquery.ui.widget.js + */ +(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"), +selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("
")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX, +c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting", +c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d= +this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.righti||a.bottomb&&a.rightg&&a.bottom *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable"); +this.refresh();this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a=== +"disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&& +!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top, +left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]}; +this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!= +document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a); +return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0], +e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset(); +c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"): +this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null, +dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):d(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")}, +toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+jg&&b+la[this.floating?"width":"height"]?j:g0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith(); +if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), +this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h=0;b--){var c=this.items[b];if(!(c.instance!=this.currentContainer&&this.currentContainer&&c.item[0]!=this.currentItem[0])){var e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b= +this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f= +d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")|| +0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out", +a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h- +f)this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g- +this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.topthis.containment[3])?g:!(g-this.offset.click.topthis.containment[2])?f:!(f-this.offset.click.left=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this, +this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop", +a,this._uiHash());for(e=0;e li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"); +a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"); +if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion", +function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a= +this.options;if(a.icons){c("").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"); +this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons(); +b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target); +a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+ +c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options; +if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); +if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(), +e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight|| +e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false", +"aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.15", +animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/); +f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide", +paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery); +;/* + * jQuery UI Autocomplete 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Autocomplete + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + * jquery.ui.position.js + */ +(function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.propAttr("readOnly"))){g= +false;var f=d.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!= +a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)}; +this.menu=d("
    ").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&& +a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"); +d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&& +b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source= +this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length").data("item.autocomplete",b).append(d("").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, +"\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery); +(function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex", +-1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.scrollTop(),c=this.element.height();if(b<0)this.element.scrollTop(g+b);else b>=c&&this.element.scrollTop(g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id"); +this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b, +this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e,g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active|| +this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active|| +this.first()?":last":":first"))},hasScroll:function(){return this.element.height()").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),e=this.options.icons,f=e.primary&&e.secondary,d=[];if(e.primary||e.secondary){if(this.options.text)d.push("ui-button-text-icon"+(f?"s":e.primary?"-primary":"-secondary"));e.primary&&a.prepend("");e.secondary&&a.append("");if(!this.options.text){d.push(f?"ui-button-icons-only": +"ui-button-icon-only");this.hasTitle||a.attr("title",c)}}else d.push("ui-button-text-only");a.addClass(d.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,c){a==="disabled"&&this.buttons.button("option",a,c);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var a=this.element.css("direction")=== +"ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(a?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(a?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"); +b.Widget.prototype.destroy.call(this)}})})(jQuery); +;/* + * jQuery UI Dialog 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Dialog + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + * jquery.ui.button.js + * jquery.ui.draggable.js + * jquery.ui.mouse.js + * jquery.ui.position.js + * jquery.ui.resizable.js + */ +(function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false, +position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("
    ")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ +b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), +h=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("").addClass("ui-dialog-title").attr("id", +e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); +a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== +b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()};c.ui.dialog.maxZ+=1; +d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== +f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
    ").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, +function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", +handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, +originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", +f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): +[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); +if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): +e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= +this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- +b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.15",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), +create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(), +height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight); +b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j"); +this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle", +g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length? +(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i- +m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy(); +return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false; +this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b= +this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b= +this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b); +c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a= +this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e- +g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"}, +b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.15"})})(jQuery); +;/* + * jQuery UI Tabs 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Tabs + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"
    ",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
  • #{label}
  • "},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&& +e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b= +d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| +(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); +this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= +this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); +if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")); +this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+ +g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal", +function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")}; +this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected= +-1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier."; +d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e= +d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b, +e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]); +j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove(); +if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null, +this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this}, +load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c, +"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this}, +url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.15"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k'))}function N(a){return a.bind("mouseout", +function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"); +b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b)if(b[c]==null||b[c]==C)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv}, +setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g, +"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
    '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker", +function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c== +"focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker(): +d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a, +b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+= +1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/ +2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b= +d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e= +a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a, +"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f== +a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input", +a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos= +d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b, +c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&& +d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+ +this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&& +a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth(): +0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a), +"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b)b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst= +null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")}, +_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"): +0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"? +"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a); +this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a, +"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b== +"")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y", +RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear; +b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a));if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()== +""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999, +9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a)); +n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m, +g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&& +a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
    '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
    ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1)switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}y+='">'}y+='
    '+(/all|left/.test(t)&& +x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
    ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay, +z);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
    '+this._get(a,"weekHeader")+"
    '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+ +r.getDate()+"":''+r.getDate()+"")+"
    "+(l?""+(i[0]>0&&G==i[1]-1?'
    ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'': +"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
    ',o="";if(h||!j)o+=''+i[b]+"";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l)k+=''+c+"";else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b, +e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u)k+=(h||!(j&&l)?" ":"")+o;k+="
    ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+ +(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b)b.apply(a.input? +a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c, +e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a, +"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length)return this; +if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));return this.each(function(){typeof a== +"string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery); +;/* + * jQuery UI Progressbar 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Progressbar + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("
    ").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"); +this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===d)return this._value();this._setOption("value",a);return this},_setOption:function(a,c){if(a==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100* +this._value()/this.options.max},_refreshValue:function(){var a=this.value(),c=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.15"})})(jQuery); +;/* + * jQuery UI Effects 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/ + */ +jQuery.effects||function(f,j){function m(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1], +16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, +a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= +a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function l(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor", +"borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0, +0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211, +211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b, +d){if(f.isFunction(b)){d=b;b=null}return this.queue(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("class");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("class",v);e.animate(u(h,r),{queue:false,duration:a,easing:b,complete:function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments);f.dequeue(this)}})})}; +f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this, +[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.15",save:function(c,a){for(var b=0;b").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}); +c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c, +a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments); +a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%", +"pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d* +((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/= +e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/= +e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+ +e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery); +;/* + * jQuery UI Effects Fade 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Fade + * + * Depends: + * jquery.effects.core.js + */ +(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery); +;/* + * jQuery UI Effects Fold 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Fold + * + * Depends: + * jquery.effects.core.js + */ +(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","bottom","left","right"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1], +10)/100*f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery); +;/* + * jQuery UI Effects Highlight 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Highlight + * + * Depends: + * jquery.effects.core.js + */ +(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&& +this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); +;/* + * jQuery UI Effects Pulsate 1.8.15 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Pulsate + * + * Depends: + * jquery.effects.core.js + */ +(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments); +b.dequeue()})})}})(jQuery); +; \ No newline at end of file diff --git a/assets/js/jquery.cookie.js b/assets/js/jquery.cookie.js new file mode 100755 index 0000000..6a3e394 --- /dev/null +++ b/assets/js/jquery.cookie.js @@ -0,0 +1,41 @@ +/** + * jQuery Cookie plugin + * + * Copyright (c) 2010 Klaus Hartl (stilbuero.de) + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + */ +jQuery.cookie = function (key, value, options) { + + // key and at least value given, set cookie... + if (arguments.length > 1 && String(value) !== "[object Object]") { + options = jQuery.extend({}, options); + + if (value === null || value === undefined) { + options.expires = -1; + } + + if (typeof options.expires === 'number') { + var days = options.expires, t = options.expires = new Date(); + t.setDate(t.getDate() + days); + } + + value = String(value); + + return (document.cookie = [ + encodeURIComponent(key), '=', + options.raw ? value : encodeURIComponent(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '' + ].join('')); + } + + // key and possibly options given, get cookie... + options = value || {}; + var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; + return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; +}; diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/build/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/config.rb b/config.rb deleted file mode 100644 index ca1126d..0000000 --- a/config.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Require any additional compass plugins here. - -# Set this to the root of your project when deployed: -http_path = "/" -css_dir = "output/css" -sass_dir = "sass" -images_dir = "img" -javascripts_dir = "js" - -# You can select your preferred output style here (can be overridden via the command line): -# output_style = :expanded or :nested or :compact or :compressed -output_style = :compact - -# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true -relative_assets = true - -# To disable debugging comments that display the original location of your selectors. Uncomment: -# line_comments = false -line_comments = false - - -# If you prefer the indented syntax, you might want to regenerate this -# project again passing --syntax sass, or you can uncomment this: -# preferred_syntax = :sass -# and then run: -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass diff --git a/copy.sh b/copy.sh new file mode 100755 index 0000000..42725f8 --- /dev/null +++ b/copy.sh @@ -0,0 +1,12 @@ +#!/bin/bash +mount /mnt/yoghi-usb +rsync -progress --modify-window=1 --update --recursive --times --stats --human-readable build/* /mnt/yoghi-usb +time umount /mnt/yoghi-usb +mount /mnt/yoghi-usb +ls /mnt/yoghi-usb +cp CDC-BitPrepared_USB2023.md5 /mnt/yoghi-usb +cd /mnt/yoghi-usb +md5sum -c CDC-BitPrepared_USB2023.md5 +rm CDC-BitPrepared_USB2023.md5 +cd +umount /mnt/yoghi-usb diff --git a/dati/.gitignore b/dati/.gitignore new file mode 100644 index 0000000..a7e04af --- /dev/null +++ b/dati/.gitignore @@ -0,0 +1 @@ +squadriglie.json \ No newline at end of file diff --git a/dati/categorieDiarioFotografico.json b/dati/categorieDiarioFotografico.json new file mode 100755 index 0000000..877b37d --- /dev/null +++ b/dati/categorieDiarioFotografico.json @@ -0,0 +1,41 @@ +[ + "primo_giorno", + "alzabandiera", + "arrivo", + "formazione_sq", + "catechesi", + "cena", + "gioco_formazione_squadriglie", + "gioco_notturno", + "linee_generali_workshop", + "presentazioni", + "workshop", + "secondo_giorno", + "varie", + "missioni", + "missioni_oro", + "missioni_rosso", + "missioni_blu", + "missioni_arancio", + "spiegazione_prbm", + "gioco_puntamento", + "ginnastica", + "ragazzi", + "fuoco", + "terzo_giorno", + "prbmm", + "flora", + "digital_life", + "astronomia", + "quarto_giorno", + "staff", + "gioco_telematica", + "bug_reporting", + "mayalinux", + "softwarelibero", + "ospiti", + "impresa", + "patto_del_campo", + "abcdef", + "ammainabandiera" +] \ No newline at end of file diff --git a/dati/materialeAltreAttivita.json b/dati/materialeAltreAttivita.json new file mode 100755 index 0000000..9a6d8b8 --- /dev/null +++ b/dati/materialeAltreAttivita.json @@ -0,0 +1,139 @@ +[ + { + "title": "Percorso Retificato Belga Multimediale Mobile", + "dir": "prbmm", + "responsabile": [ + "Stefano", "Nicola" + ], + "files": [ + { + "filename": "oro.html", + "description": "Prbmm Equipaggio Oro" + }, + { + "filename": "blu.html", + "description": "Prbmm Equipaggio Blu" + }, + { + "filename": "arancio.html", + "description": "Prbmm Equipaggio Arancio" + }, + { + "filename": "rosso.html", + "description": "Prbmm Equipaggio Rosso" + } + ] + }, + { + "title": " Valutazione Impatto Ambientale ", + "dir": "via", + "responsabile": [ + "Stefano B." + ], + "files": [ + { + "filename": "vademecum_impatto_ambientale.odt", + "description": "Vademecum Impatto Ambientale" + }, + { + "filename": "domande_VIA.odt", + "description": "Domande" + } + ] + }, + { + "title": "Astronomia", + "dir": "astronomia", + "responsabile": [ + "Lucia" + ], + "files": [ + { + "filename": "veglia_alle_stelle_2023.pdf", + "description": "traccia veglia alle stelle" + }, + { + "filename":"costellazioni.pdf", + "description":"Costellazioni" + }, + { + "filename": "astronomia_slides.pdf", + "description": "Slide sull'astronomia" + } + ] + }, + { + "title": "Lezioni di telecomunicazioni di base", + "dir": "telecomunicazione", + "responsabile": [ + "Daniele P." + ], + "files": [ + { + "filename": "warriors-700-it-vbr.mpg", + "description": "Internet Warriors of the net" + }, + { + "filename": "History_of_the_Internet-9hIQjrMHTv4.mp4", + "description": "Internet Storia di internet" + }, + { + "filename": "postino_internet.odp", + "description": "Confronto tra il postino ed internet" + }, + { + "filename": "PROTECT_IP_Act_Breaks_The_Internet.mp4", + "description": "Internet Leggi su internet" + }, + { + "filename": "vladstudio_how_internet_works_1280x1024.jpg", + "description": "How DNS works" + }, + { + "filename": "gioco", + "description": "Gioco IP" + } + + ] + }, + { + "title": "Digital Life", + "dir": "digital_life", + "responsabile": [ + "Elena", + "Stefano T.", + "Margherita" + ], + "files": [ + { + "filename": "carte_digital_life.pdf", + "description": "Carte per gioco Digital Life" + }, + { + "filename": "Game.odt", + "description": "Gioco Digital Life" + } + ] + }, + { + "title": "Software libero", + "dir": "softwarelibero", + "responsabile": [ + "Stefano", "Alessandro R." + ], + "files":[] + }, + { + "title": "ABCDEF", + "dir": "abcdef", + "responsabile": [ + "Rubi" + ], + "files":[ + { + "filename": "abcdef.pdf", + "description": "Slide ABCDEF" + } + ] + } +] \ No newline at end of file diff --git a/dati/materialeAngoliSq.json b/dati/materialeAngoliSq.json new file mode 100755 index 0000000..a3e1171 --- /dev/null +++ b/dati/materialeAngoliSq.json @@ -0,0 +1,36 @@ +[ + { + "title": "Foto guidoni", + "dir": "guidoni", + "responsabile": [ + "Riccardo" + ] + }, + { + "title": "Urli Squadriglia", + "dir": "urli", + "responsabile": [ + "Riccardo" + ] + }, + { + "title": "Foto Singoli Ragazzi Reparto", + "dir": "reparto", + "responsabile": [ + "Nicola" + ] + }, + { + "title": "Foto Squadriglia", + "dir": "reparto", + "responsabile": [ + "Nicola" + ], + "files": [ + { + "filename": "fotogruppo.jpg", + "description": "foto di gruppo" + } + ] + } +] \ No newline at end of file diff --git a/dati/materialeDiarioFotografico.json b/dati/materialeDiarioFotografico.json new file mode 100644 index 0000000..cfcf86b --- /dev/null +++ b/dati/materialeDiarioFotografico.json @@ -0,0 +1,9 @@ +[ + { + "title": "cartella foto", + "dir": "foto", + "responsabile": [ + "Riccardo" + ] + } +] diff --git a/dati/materialeDocumentiGenerali.json b/dati/materialeDocumentiGenerali.json new file mode 100755 index 0000000..8caec73 --- /dev/null +++ b/dati/materialeDocumentiGenerali.json @@ -0,0 +1,57 @@ +[ + { + "title": "Catechesi", + "dir": "catechesi", + "responsabile": [ + "Don Fulvio", "Elena", "Lucia" + ], + "files": [ + { + "filename": "preghiera-2023-08-22-felicita.html", + "description": "catechesi 22 agosto" + }, + { + "filename": "preghiera-2023-08-23-liberta.html", + "description": "catechesi 23 agosto" + }, + { + "filename": "preghiera-2023-08-24-frattale.html", + "description": "catechesi 24 agosto" + }, + { + "filename": "preghiera-2023-08-25-community.html", + "description": "catechesi 25 agosto" + } + ] + }, + { + "title": "Video ricordo", + "dir": "ricordo", + "responsabile": [ + "Nicola" + ], + "files": [ + { + "filename": "VideoRicordo-BitPrepared23.avi", + "description": "ricordo campo" + } + ] + }, + { + "title": "Segnapunti", + "dir": "segnapunti", + "responsabile": [ + "Alessandro" + ], + "files": [ + { + "filename": "puntel.pdf", + "description": "schema elettrico da stampare" + }, + { + "filename": "puntel.png", + "description": "schema visivo componenti" + } + ] + } +] \ No newline at end of file diff --git a/dati/materialeVarie.json b/dati/materialeVarie.json new file mode 100755 index 0000000..e968561 --- /dev/null +++ b/dati/materialeVarie.json @@ -0,0 +1,16 @@ +[ + { + "title": "So a memoria il morse", + "file": "morse.mp3", + "responsabile": [ + "Stefano" + ] + }, + { + "title": "Utility Scout", + "dir": "utility_scout", + "responsabile": [ + "Enrico" + ] + } +] \ No newline at end of file diff --git a/dati/materialeWorkshop.json b/dati/materialeWorkshop.json new file mode 100644 index 0000000..96149c3 --- /dev/null +++ b/dati/materialeWorkshop.json @@ -0,0 +1,111 @@ +[ + { + "title": "App", + "dir": "app", + "responsabile": [ + "Nicola C." + ], + "files": [ + { + "description": "App di Esempio - Musicbox", + "url": "https://studio.code.org/projects/applab/xWSObAhlbYO5gReJ303ct-5IalL5Gz5m-YyQmvP-Qc0" + }, + { + "description": "App di Esempio - Canzoniere", + "url": "https://studio.code.org/projects/applab/l9mHY61G9sF27C7zFKzD6TLDCrbWpxNqRMDJO2vAzO8" + }, + { + "description": "App di Esempio - Star Wars Encyclopedia", + "url": "https://studio.code.org/projects/applab/ODA3P7UPuY896f89QriWFP6GV50B3WKJRrf3uX6G54A" + }, + { + "description": "App Rosso - Space Shooter", + "url": "https://studio.code.org/projects/applab/Ot20uAhNagNig0WI24g-ZG0S3G6pPAt3wPOFjsKR3lM" + }, + { + "description": "App Oro - Gioco d'elloca", + "url": "https://studio.code.org/projects/applab/lFWewHIBZcbSjex_PwLURaHJ8H1MulowZKuaON3TMx8" + }, + { + "description": "App Blu - Stick Fighter", + "url": "https://studio.code.org/projects/applab/97dJjpWIv1BsnWcClO81NqHFTT_82jztNKxTJZAO9NY" + }, + { + "description": "App Arancio - Cluedo", + "url": "https://studio.code.org/projects/applab/ChxIU0MgVtepveS0aHrxSsaL9vQI_TGfoCq3lz8QDxU" + } + + ] + }, + { + "title": "Multimediale", + "dir": "multimediale", + "responsabile": [ + "Luciano", "Elena" + ], + "files": [ + { + "description": "Introduzione alla fotografia", + "filename": "1_Introuzione alla fotografia e generi fotografici.pdf" + }, + { + "description": "Tipi macchina fotografica", + "filename": "2_tipi di macchina fotografica_ le reflex.pdf" + }, + { + "description": "Objettivo e componenti", + "filename": "3_l'obiettivo e le sue componenti.pdf" + }, + { + "description": "Qualita e formati", + "filename": "4_qualita e formati file.pdf" + }, + { + "description": "Piani e Campi", + "filename": "5_Il video_ i piani e i campi.pdf" + } + ] + }, + { + "title": "Grafica", + "dir": "htmlcss", + "responsabile": [ + "Stefano", "Gloria" + ], + "files": [ + { + "description": "Struttura Laboratorio", + "filename": "laboratorio_html_css.zip" + }, + { + "description": "Oro", + "filename": "oro.zip" + }, + { + "description": "Rosso", + "filename": "rosso.zip" + }, + { + "description": "Blu", + "filename": "blu.zip" + }, + { + "description": "Arancio", + "filename": "arancio.zip" + } + ] + }, + { + "title": "Mayalinux", + "dir": "mayalinux", + "responsabile": [ + "Nicola C." + ], + "files": [ + { + "description": "Github - Mayalinux", + "url": "https://github.com/BitPrepared/Mayalinux" + } + ] + } +] diff --git a/dati/squadriglie_example.json b/dati/squadriglie_example.json new file mode 100755 index 0000000..47829d1 --- /dev/null +++ b/dati/squadriglie_example.json @@ -0,0 +1,34 @@ +{ + "oro": { + "name": "oro", + "members": { + "chiarademicco": { + "nome": "Pippo", + "cognome": "Zoo", + "dtnascita": "18022003", + "citta": "Topolinia", + "provincia": "Reggio Emilia", + "sesso": "M", + "telefono": "12345678901", + "nickname": null, + "facebook": null, + "blog": null, + "instagram": "", + "email": "pippo@topolinia.it", + "via": "Del basso", + "ncivico": "81", + "cap": "42019", + "zona": "Reggio Emilia", + "nomegruppo": "Topolinia 1", + "nomereparto": "Topos", + "nomesquadriglia": "Tigri", + "specialita": "fotografo", + "username": "pippo.zoo", + "password": "$2y$10$NzAOT77aZeiO0yx86GEwQONp2QJg\/5Fr1Zem1Aj.p8pMIFDnZBium", + "squadriglia": "", + "codicecensimento": "", + "ruolo": "" + } + } + } +} \ No newline at end of file diff --git a/dvd/angolisq/.gitignore b/dvd/angolisq/.gitignore new file mode 100755 index 0000000..e831038 --- /dev/null +++ b/dvd/angolisq/.gitignore @@ -0,0 +1 @@ +src \ No newline at end of file diff --git a/dvd/angolisq/index.js b/dvd/angolisq/index.js new file mode 100755 index 0000000..e013c3b --- /dev/null +++ b/dvd/angolisq/index.js @@ -0,0 +1,201 @@ +const fs = require('fs'); +const fsextra = require('fs-extra'); +const rimraf = require('rimraf'); +const path = require('path'); +const handlebars = require('handlebars'); +//const imagemagick = require('imagemagick-native'); +const gm = require('gm').subClass({imageMagick: true}); +const moment = require('moment'); + +var Angolisq = function (logger, squadriglie, materiale) { + this.logger = logger; + this.materiale = materiale; + this.squadriglie = squadriglie; +}; + +function valuta(logger, materiale, squadriglie) { + var missing = []; + materiale.forEach((currentValue, index, arr) => { + logger.info(currentValue.title); + if (currentValue.dir) { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.dir + '/'))) { + missing.push(currentValue); + } + } else { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.file))) { + missing.push(currentValue); + } + } + }); + return missing; +} + +Angolisq.prototype.check = function () { + this.logger.info('Angolisq', 'check materiale'); + var missing = []; + this.logger.info('Angolisq', 'materiale'); + + missing = missing.concat(valuta(this.logger, this.materiale, this.squadriglie)); + + for (var key in this.squadriglie) { + var element = this.squadriglie[key]; + const sqname = element.name.toLowerCase(); + const members = element.members; + for (var keyM in members) { + var squadrigliere = members[keyM]; + var filename = keyM.concat('.jpg'); + if (!fs.existsSync(path.join(__dirname, './materiale/reparto/', filename))) { + missing = missing.concat({ + "title": "manca ".concat(filename), + "dir": "reparto", + "responsabile": [ + "Riccardo" + ] + }); + } + } + } + + const pathFotoGruppo = path.join(__dirname, 'materiale/reparto/', 'fotogruppo.jpg'); + if (!fs.existsSync(pathFotoGruppo)) { + missing = missing.concat({ + "title": "manca ".concat('fotogruppo.jpg'), + "dir": "reparto", + "responsabile": [ + "Riccardo" + ] + }); + } + return missing; +}; + +function createThumb(loggerParent, fullpathIn, fullpathOut, size) { + if (!fs.existsSync(fullpathOut)) { + loggerParent.info("create thumb of " + path.basename(fullpathIn)); + gm(fs.readFileSync(fullpathIn)).resize(size,size).write(fullpathOut, function(err) { + if (err) this.logger.error(err); + }); + + // fs.writeFileSync(fullpathOut, imagemagick.convert({ + // srcData: fs.readFileSync(fullpathIn), + // quality: 95, + // width: size, + // height: size, + // resizeStyle: 'aspectfit', + // format: 'JPEG' + // })); + } +} + +function concat_ifnotempty($str, $append){ + if ( $append ){ + return $str.concat($append).concat(' '); + } + return $str; +} + +Angolisq.prototype.build = function () { + + this.logger.info('Angolisq', 'build'); + + fsextra.copySync(path.join(__dirname, 'template/index.hbs'), path.join(__dirname, 'src/index.hbs')); + + // var template = fs.readFileSync(path.join(__dirname, 'template/index.hbs'), 'utf8'); + // var templateScript = handlebars.compile(template); + // var context = { "name": "Ritesh Kumar", "occupation": "developer" }; + // var html = templateScript(context); + + for (var key in this.squadriglie) { + var element = this.squadriglie[key]; + const sqname = element.name.toLowerCase(); + const members = element.members; + var contents = fs.readFileSync(path.join(__dirname, 'template/sq.hbs'), 'utf8'); + contents = contents.replace(new RegExp('##NAMESQ##', 'g'), sqname); + fsextra.ensureDirSync(path.join(__dirname, 'src/')); + fs.writeFileSync(path.join(__dirname, 'src/' + sqname + '.hbs'), contents); + for (var keyM in members) { + var squadrigliere = members[keyM]; + var filename = keyM; //(squadrigliere.nome + squadrigliere.cognome).toLowerCase().replace('\'', '').replace(' ',''); + this.logger.info('found: ' + filename); + const desc_name = squadrigliere.nome + " " + squadrigliere.cognome; + var contents = fs.readFileSync(path.join(__dirname, 'template/squadrigliere.hbs'), 'utf8'); + contents = contents.replace(new RegExp('##NAMESQ##', 'g'), sqname); + contents = contents.replace(new RegExp('##NAMESQUADRIGLIERE##', 'g'), desc_name); + contents = contents.replace(new RegExp('##IDSQUADRIGLIERE##', 'g'), filename); + fsextra.ensureDirSync(path.join(__dirname, 'src/')); + fs.writeFileSync(path.join(__dirname, 'src/' + filename + '.hbs'), contents); + + const datanascita = moment(squadrigliere.dtnascita,'DDMMYYYY'); + squadrigliere.dtnascitadisplay = datanascita.format('DD/MM/YYYY'); + + var indirizzoStr = 'via '; + indirizzoStr = concat_ifnotempty(concat_ifnotempty(indirizzoStr, squadrigliere.via), squadrigliere.ncivico); + indirizzoStr = concat_ifnotempty(concat_ifnotempty(indirizzoStr, squadrigliere.cap), squadrigliere.citta); + indirizzoStr = concat_ifnotempty(concat_ifnotempty(indirizzoStr, ' ('), squadrigliere.provincia); + squadrigliere.indirizzo = indirizzoStr.concat(')'); + + if (squadrigliere.specialita ){ + squadrigliere.specialita = squadrigliere.specialita.replace(new RegExp('_', 'g'), ' '); + } + } + + } + + const loggerParent = this.logger; + + + // guidoni + const dirGuidoni = path.join(__dirname, 'materiale/guidoni/'); + if (fs.existsSync(dirGuidoni) ){ + fs.readdirSync(dirGuidoni).forEach(function(file){ + if ( file.indexOf('thumb_') < 0 && path.basename(file, path.extname(file)).indexOf('.') < 0 ) { + const newFilename = 'thumb_' + path.basename(file); + createThumb(loggerParent, path.join(dirGuidoni, file), path.join(dirGuidoni, newFilename), 150 ); + } + }); + } + + // squadriglia + const dirSquadriglia = path.join(__dirname, 'materiale/squadriglia/'); + if (fs.existsSync(dirSquadriglia)){ + fs.readdirSync(dirSquadriglia).forEach(function (file) { + if (file.indexOf('thumb_') < 0 && path.basename(file, path.extname(file)).indexOf('.') < 0) { + const newFilename = 'thumb_' + path.basename(file); + createThumb(loggerParent, path.join(dirSquadriglia, file), path.join(dirSquadriglia, newFilename), 450); + } + }); + } + + // reparto + const dirReparto = path.join(__dirname, 'materiale/reparto/'); + if (fs.existsSync(dirReparto)){ + fs.readdirSync(dirReparto).forEach(function (file) { + if (file.indexOf('thumb_') < 0 && path.basename(file, path.extname(file)).indexOf('.') < 0) { + const newFilename = 'thumb_' + path.basename(file); + createThumb(loggerParent, path.join(dirReparto, file), path.join(dirReparto, newFilename), 150); + } + }); + } + + //sovrascrivo con una thumb piu grande + //fsextra.removeSync(path.join(dirReparto, 'thumb_fotogruppo.jpg')); + const pathFotoGruppo = path.join(dirReparto, 'fotogruppo.jpg'); + if (fs.existsSync(pathFotoGruppo)) { + createThumb(loggerParent, pathFotoGruppo, path.join(dirReparto, 'thumb_fotogruppo.jpg'), 650); + } + +} + +Angolisq.prototype.clean = function () { + rimraf.sync(path.join(__dirname, 'src')); +} + +Angolisq.prototype.src = function () { + return path.join(__dirname, 'src'); +} + +Angolisq.prototype.srcAssets = function () { + return path.join(__dirname, 'materiale'); +} + +module.exports = Angolisq; diff --git a/dvd/angolisq/materiale/.gitignore b/dvd/angolisq/materiale/.gitignore new file mode 100755 index 0000000..86d0cb2 --- /dev/null +++ b/dvd/angolisq/materiale/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/dvd/angolisq/template/index.hbs b/dvd/angolisq/template/index.hbs new file mode 100755 index 0000000..e3a1a9b --- /dev/null +++ b/dvd/angolisq/template/index.hbs @@ -0,0 +1,32 @@ +--- +layout: base.html +subtitle: Angoli di sq. +--- + + +
    + + + + +
    +
    + diff --git a/dvd/angolisq/template/sq.hbs b/dvd/angolisq/template/sq.hbs new file mode 100755 index 0000000..be30e07 --- /dev/null +++ b/dvd/angolisq/template/sq.hbs @@ -0,0 +1,55 @@ +--- +layout: base.html +subtitle: Angoli di sq. ##NAMESQ## +--- + + +
    + + + + + + + + +
    FOTO SQ. +
    + + Foto Sq. ##NAMESQ## + +
    +
    +
    + Urlo di Sq. +

    PRBM +

    +

    +

    + Torna alla Lista delle Squadriglie +

    +
    +
    +
    + \ No newline at end of file diff --git a/dvd/angolisq/template/squadrigliere.hbs b/dvd/angolisq/template/squadrigliere.hbs new file mode 100755 index 0000000..d818d9a --- /dev/null +++ b/dvd/angolisq/template/squadrigliere.hbs @@ -0,0 +1,58 @@ +--- +layout: base.html +subtitle: Sq. ##NAMESQ## ##NAMESQUADRIGLIERE## +--- + + + +
    + + + + +
    +
    + \ No newline at end of file diff --git a/dvd/blog/index.js b/dvd/blog/index.js new file mode 100755 index 0000000..20a7a68 --- /dev/null +++ b/dvd/blog/index.js @@ -0,0 +1,43 @@ +const fs = require('fs'); +const fsextra = require('fs-extra'); +const rimraf = require('rimraf'); +const path = require('path'); +const handlebars = require('handlebars'); + +var Blog = function (logger) { + this.logger = logger; +}; + +Blog.prototype.check = function () { + this.logger.info('Blog', 'check materiale'); + var missing = []; + if (!fs.existsSync(path.join(__dirname, 'materiale/index.html'))) { + missing.push({ + "title": "blog export", + "description": "export del blog interno", + "dir": "materiale", + "responsabile": [ + "Daniele" + ] + }); + } + return missing; +}; + +Blog.prototype.build = function () { + +} + +Blog.prototype.clean = function () { + +} + +Blog.prototype.src = function () { + return path.join(__dirname, 'src'); +} + +Blog.prototype.srcAssets = function () { + return path.join(__dirname, 'materiale'); +} + +module.exports = Blog; diff --git a/dvd/blog/materiale/.gitignore b/dvd/blog/materiale/.gitignore new file mode 100755 index 0000000..86d0cb2 --- /dev/null +++ b/dvd/blog/materiale/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/dvd/diariofotografico/.gitignore b/dvd/diariofotografico/.gitignore new file mode 100755 index 0000000..e831038 --- /dev/null +++ b/dvd/diariofotografico/.gitignore @@ -0,0 +1 @@ +src \ No newline at end of file diff --git a/dvd/diariofotografico/index.js b/dvd/diariofotografico/index.js new file mode 100755 index 0000000..ce1b7e2 --- /dev/null +++ b/dvd/diariofotografico/index.js @@ -0,0 +1,91 @@ +const fs = require('fs'); +const fsextra = require('fs-extra'); +const rimraf = require('rimraf'); +const path = require('path'); +const handlebars = require('handlebars'); +//const imagemagick = require('imagemagick-native'); +const gm = require('gm').subClass({imageMagick: true}); +const dirTree = require('directory-tree'); + +var DiarioFotografico = function (logger, elencoEstensioniAmmesse, categories, materialeDiarioFotografico) { + this.logger = logger; + this.categories = categories; + this.elencoEstensioniAmmesse = elencoEstensioniAmmesse; + this.materialeDiarioFotografico = materialeDiarioFotografico; +}; + + +DiarioFotografico.prototype.check = function () { + this.logger.info('DiarioFotografico', 'check materiale'); + var missing = []; + if (!fs.existsSync(path.join(__dirname, './materiale/foto/'))) { + missing = missing.concat(this.materialeDiarioFotografico); + } + return missing; +}; + +function createThumb(loggerParent, fullpathIn, fullpathOut) { + if (!fs.existsSync(fullpathOut)) { + loggerParent.info("create thumb " + path.basename(fullpathIn)); + + gm(fs.readFileSync(fullpathIn)).resize(150,150).write(fullpathOut, function(err) { + if (err) this.logger.error(err); + }); + + // fs.writeFileSync(fullpathOut, imagemagick.convert({ + // srcData: fs.readFileSync(fullpathIn), + // quality: 95, + // width: 150, + // height: 150, + // resizeStyle: 'aspectfit', + // format: 'JPEG' + // })); + } +} + +DiarioFotografico.prototype.build = function () { + this.logger.info('DiarioFotografico', 'build'); + var contents = fs.readFileSync(path.join(__dirname, 'template/index.hbs'), 'utf8'); + fsextra.ensureDirSync(path.join(__dirname, 'src/')); + fs.writeFileSync(path.join(__dirname, 'src/index.hbs'), contents); + + var contentsCategory = fs.readFileSync(path.join(__dirname, 'template/category.hbs'), 'utf8'); + this.categories.forEach(function(element) { + var contentsCategoryR = contentsCategory.replace(new RegExp('##CATEGORY##', 'g'), element); + fs.writeFileSync(path.join(__dirname, 'src/' + element + '.hbs'), contentsCategoryR); + }); + this.thumb(); +} + +DiarioFotografico.prototype.thumb = function () { + this.logger.info('DiarioFotografico', 'create thumb'); + const destdir = path.join(__dirname, 'materiale/thumb/'); + fsextra.ensureDirSync(destdir); + const fotoSrc = path.join(__dirname, 'materiale/foto/'); + const elencoEstensioni = this.elencoEstensioniAmmesse.join("|") + const loggerParent = this.logger; + const filteredTree = dirTree(fotoSrc, { extensions: new RegExp(".(" + elencoEstensioni + ")$") }, function (item, PATH) { + const outputdir = item.path.replace(fotoSrc, '').replace(item.name, ''); + const outputname = item.name.replace(path.extname(item.path), '') + ".jpg"; + fsextra.ensureDirSync(destdir + outputdir); + const output = destdir + outputdir + outputname; + createThumb(loggerParent, item.path, output); + }); +} + +DiarioFotografico.prototype.clean = function () { + this.logger.info('DiarioFotografico', 'clean'); + rimraf.sync(path.join(__dirname, 'src')); + // NB: mantengo le vecchie thumb per performance/tempo di ri-generazione + // rimraf.sync(path.join(__dirname, 'materiale/thumb/')); +} + +DiarioFotografico.prototype.src = function () { + return path.join(__dirname, 'src'); +} + +DiarioFotografico.prototype.srcAssets = function () { + return path.join(__dirname, 'materiale'); +} + +module.exports = DiarioFotografico; diff --git a/dvd/diariofotografico/materiale/.gitignore b/dvd/diariofotografico/materiale/.gitignore new file mode 100755 index 0000000..3598fee --- /dev/null +++ b/dvd/diariofotografico/materiale/.gitignore @@ -0,0 +1,3 @@ +foto_originali +foto +thumb \ No newline at end of file diff --git a/dvd/diariofotografico/template/category.hbs b/dvd/diariofotografico/template/category.hbs new file mode 100755 index 0000000..f370037 --- /dev/null +++ b/dvd/diariofotografico/template/category.hbs @@ -0,0 +1,32 @@ +--- +layout: base.html +subtitle: Diario Fotografico ##CATEGORY## +--- + + +
    + +

    Diario Fotografico > ##CATEGORY##

    + + + + {{#each galleries.##CATEGORY##}} + {{#if_modzero @index 5}} + + + + {{else}} + + {{/if_modzero}} + {{/each}} + +
    thumb of {{name}}thumb of {{name}}
    + +
    + \ No newline at end of file diff --git a/dvd/diariofotografico/template/index.hbs b/dvd/diariofotografico/template/index.hbs new file mode 100755 index 0000000..a411014 --- /dev/null +++ b/dvd/diariofotografico/template/index.hbs @@ -0,0 +1,27 @@ +--- +layout: base.html +subtitle: Diario Fotografico +--- + + +
    + +

    Diario Fotografico

    + +

    Categorie:

    +

    +

      + {{#each categories}} +
    • {{this}}
    • + {{/each}} +
    +

    + +
    + \ No newline at end of file diff --git a/dvd/documenti/index.js b/dvd/documenti/index.js new file mode 100755 index 0000000..9fccbcc --- /dev/null +++ b/dvd/documenti/index.js @@ -0,0 +1,97 @@ +const fs = require('fs'); +const fsextra = require('fs-extra'); +const rimraf = require('rimraf'); +const path = require('path'); +const handlebars = require('handlebars'); +//const imagemagick = require('imagemagick-native'); +const gm = require('gm').subClass({imageMagick: true}); + +var DocumentiGenerali = function (logger, materiale) { + this.logger = logger; + this.materiale = materiale; +}; + +function valuta(logger, materiale) { + var missing = []; + materiale.forEach((currentValue, index, arr) => { + logger.info(currentValue.title); + var curDir = currentValue.dir; + if (currentValue.dir) { + if (!fs.existsSync(path.join(__dirname, './materiale/' + curDir + '/'))) { + missing.push(currentValue); + } + if (currentValue.files) { + currentValue.files.forEach((currentValue, index, arr) => { + if(currentValue.filename){ + if (!fs.existsSync(path.join(__dirname, './materiale/' + curDir + '/' + currentValue.filename))) { + missing.push(currentValue); + } + } + }); + } + + } else { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.file))) { + missing.push(currentValue); + } + } + }); + return missing; +} + +DocumentiGenerali.prototype.check = function () { + var missing = []; + this.logger.info('DocumentiGenerali', 'materiale'); + missing = missing.concat(valuta(this.logger, this.materiale)); + return missing; +}; + +function createThumb(loggerParent, fullpathIn, fullpathOut, size) { + if (!fs.existsSync(fullpathOut)) { + loggerParent.info("create thumb of " + path.basename(fullpathIn)); + gm(fs.readFileSync(fullpathIn)).resize(size,size).write(fullpathOut, function(err) { + if (err) this.logger.error(err); + }); + + // fs.writeFileSync(fullpathOut, imagemagick.convert({ + // srcData: fs.readFileSync(fullpathIn), + // quality: 95, + // width: size, + // height: size, + // resizeStyle: 'aspectfit', + // format: 'JPEG' + // })); + } +} + +DocumentiGenerali.prototype.build = function () { + // wget --mirror -w 2 -p --convert-links --load-cookies cookies.txt -e robots=off --reject logout https://precampo.bitprepared.it + // poi vanno fixati i link! + + const loggerParent = this.logger; + + // squadriglia + const dirStaff = path.join(__dirname, 'materiale/staff/'); + if (fs.existsSync(dirStaff)) { + fs.readdirSync(dirStaff).forEach(function (file) { + if (file.indexOf('thumb_') < 0 && path.basename(file, path.extname(file)).indexOf('.') < 0) { + const newFilename = 'thumb_' + path.basename(file); + createThumb(loggerParent, path.join(dirStaff, file), path.join(dirStaff, newFilename), 650); + } + }); + } +} + +DocumentiGenerali.prototype.clean = function () { + +} + +DocumentiGenerali.prototype.src = function () { + return path.join(__dirname, 'src'); +} + +DocumentiGenerali.prototype.srcAssets = function () { + return path.join(__dirname, 'materiale'); +} + +module.exports = DocumentiGenerali; diff --git a/dvd/documenti/src/.gitignore b/dvd/documenti/src/.gitignore new file mode 100755 index 0000000..22653bb --- /dev/null +++ b/dvd/documenti/src/.gitignore @@ -0,0 +1 @@ +staff.hbs \ No newline at end of file diff --git a/dvd/documenti/src/index.hbs b/dvd/documenti/src/index.hbs new file mode 100755 index 0000000..f9fb645 --- /dev/null +++ b/dvd/documenti/src/index.hbs @@ -0,0 +1,41 @@ +--- +layout: base.html +subtitle: Come recuperare i software usati al campo +--- + + +
    + +

    Documenti Reparto:

    + + + + + Sito al campo + + + Video Campo + + + Segnapunti + + +
    + \ No newline at end of file diff --git a/dvd/esercitazioni/index.js b/dvd/esercitazioni/index.js new file mode 100755 index 0000000..cfe39eb --- /dev/null +++ b/dvd/esercitazioni/index.js @@ -0,0 +1,65 @@ +var extend = require('util')._extend; +const fs = require('fs'); +const path = require('path'); + +var Esercitazioni = function (logger, materiale, materialeAltreAttivita) { + this.logger = logger; + this.materiale = materiale; + this.materialeAltreAttivita = materialeAltreAttivita; +}; + +function valuta(logger, materiale) { + var missing = []; + materiale.forEach((currentValue, index, arr) => { + logger.info(currentValue.title); + var curDir = currentValue.dir; + if (curDir) { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.dir + '/'))) { + missing.push(currentValue); + } + if ( currentValue.files ) { + currentValue.files.forEach((currentValue, index, arr) => { + if (currentValue.filename) { + if (!fs.existsSync(path.join(__dirname, './materiale/' + curDir + '/' + currentValue.filename))) { + missing.push(currentValue); + } + } + }); + } + + } else { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.file))) { + missing.push(currentValue); + } + } + }); + return missing; +} + +Esercitazioni.prototype.check = function () { + var missing = []; + this.logger.info('Esercitazioni', 'workshop'); + missing = missing.concat(valuta(this.logger, this.materiale)); + this.logger.info('Esercitazioni', 'altre attivita'); + missing = missing.concat(valuta(this.logger, this.materialeAltreAttivita)); + return missing; +}; + +Esercitazioni.prototype.src = function () { + return path.join(__dirname, 'src'); +} + +Esercitazioni.prototype.srcAssets = function () { + return path.join(__dirname, 'materiale'); +} + +Esercitazioni.prototype.templateVar = function () { + return { + materialeWorkshop: this.materiale, + materialeAltreAttivita: this.materialeAltreAttivita + }; +} + + + +module.exports = Esercitazioni; diff --git a/dvd/esercitazioni/materiale/.gitignore b/dvd/esercitazioni/materiale/.gitignore new file mode 100755 index 0000000..86d0cb2 --- /dev/null +++ b/dvd/esercitazioni/materiale/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/dvd/esercitazioni/src/index.hbs b/dvd/esercitazioni/src/index.hbs new file mode 100755 index 0000000..0329a36 --- /dev/null +++ b/dvd/esercitazioni/src/index.hbs @@ -0,0 +1,69 @@ +--- +layout: base.html +subtitle: Impresa +--- + + +
    +

    Impresa:

    + {{#each esercitazioni.materialeWorkshop}} + + + + + + + +
    +

    +

      + {{#each files}} + {{#if filename includeZero=true}} +
    • {{description}}
    • + {{/if}} {{#if url includeZero=true}} +
    • {{description}}
    • + {{/if}} + {{/each}} +
    +

    +
    + {{/each}} +

    Esercitazioni generiche:

    + {{#each esercitazioni.materialeAltreAttivita}} + + + + + + + +
    +

    +

      + {{#each files}} + {{#if filename includeZero=true}} +
    • {{description}}
    • + {{/if}} + {{#if url includeZero=true}} +
    • {{description}}
    • + {{/if}} + {{/each}} +
    +

    +
    + {{/each}} +
    + + + + diff --git a/dvd/home/.gitignore b/dvd/home/.gitignore new file mode 100755 index 0000000..e831038 --- /dev/null +++ b/dvd/home/.gitignore @@ -0,0 +1 @@ +src \ No newline at end of file diff --git a/dvd/home/index.js b/dvd/home/index.js new file mode 100755 index 0000000..bdc42a1 --- /dev/null +++ b/dvd/home/index.js @@ -0,0 +1,68 @@ +const fs = require('fs'); +const fsextra = require('fs-extra'); +const path = require('path'); +const rimraf = require('rimraf'); + +var Home = function (logger) { + this.logger = logger; + this.materiale = [ + { + "title": "Lettera", + "file": "lettera/lettera.md", + "responsabile": ["Elena", "Luciano"] + }, + { + "title": "Sublettera", + "file": "lettera/sublettera.md", + "responsabile": ["Elena", "Luciano"] + } + ] +}; + +function valuta(logger, materiale) { + var missing = []; + materiale.forEach((currentValue, index, arr) => { + logger.info(currentValue.title); + if (currentValue.dir){ + if (!fs.existsSync(path.join(__dirname,'./materiale/' + currentValue.dir + '/'))) { + missing.push(currentValue); + } + } else { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.file))) { + missing.push(currentValue); + } + } + }); + return missing; +} + +Home.prototype.check = function () { + var missing = []; + this.logger.info('Home', 'materiali'); + missing = missing.concat(valuta(this.logger, this.materiale)); + return missing; +}; + +Home.prototype.build = function () { + var contents = fs.readFileSync( path.join(__dirname, 'template/index.hbs'), 'utf8'); + if (fs.existsSync(path.join(__dirname, 'materiale/lettera/lettera.md'))) { + var lettera = fs.readFileSync(path.join(__dirname, 'materiale/lettera/lettera.md'), 'utf8'); + contents = contents.replace('##LETTERA##', lettera); + } + if (fs.existsSync(path.join(__dirname, 'materiale/lettera/sublettera.md'))) { + var testo = fs.readFileSync(path.join(__dirname, 'materiale/lettera/sublettera.md'), 'utf8'); + contents = contents.replace('##SUBLETTERA##', testo); + } + fsextra.ensureDirSync(path.join(__dirname, 'src/') ); + fs.writeFileSync( path.join(__dirname,'src/index.hbs'),contents); +} + +Home.prototype.clean = function () { + rimraf.sync(path.join(__dirname,'src')); +} + +Home.prototype.src = function () { + return path.join(__dirname, 'src'); +} + +module.exports = Home; diff --git a/dvd/home/materiale/.gitignore b/dvd/home/materiale/.gitignore new file mode 100755 index 0000000..86d0cb2 --- /dev/null +++ b/dvd/home/materiale/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/dvd/home/template/index.hbs b/dvd/home/template/index.hbs new file mode 100755 index 0000000..1125c1d --- /dev/null +++ b/dvd/home/template/index.hbs @@ -0,0 +1,38 @@ +--- +layout: base.html +--- + + +
    +

    Costigiola 2023

    +

    + {{#markdown}} + ##LETTERA## + {{/markdown}} +

    +

    +

    Buona caccia!

    La Staff del Campo
    +

    +

    + {{#markdown}} + ##SUBLETTERA## + {{/markdown}} +

    +

    + + Foto di Gruppo + +

    + (clicca sulla foto per ingradirla) +

    +

    +

    Questa USB è stato realizzato "in real time" nell'ultima notte.

    +
    + + diff --git a/dvd/programmi/index.js b/dvd/programmi/index.js new file mode 100755 index 0000000..ad89670 --- /dev/null +++ b/dvd/programmi/index.js @@ -0,0 +1,32 @@ +const fs = require('fs'); +const fsextra = require('fs-extra'); +const rimraf = require('rimraf'); +const path = require('path'); +const handlebars = require('handlebars'); + +var Programmi = function (logger) { + this.logger = logger; +}; + +Programmi.prototype.check = function () { + this.logger.info('Programmi', 'materiale'); + return []; +}; + +Programmi.prototype.build = function () { + +} + +Programmi.prototype.clean = function () { + +} + +Programmi.prototype.src = function () { + return path.join(__dirname, 'src'); +} + +Programmi.prototype.srcAssets = function () { + return path.join(__dirname, 'materiale'); +} + +module.exports = Programmi; diff --git a/dvd/programmi/src/index.hbs b/dvd/programmi/src/index.hbs new file mode 100755 index 0000000..a71f1f0 --- /dev/null +++ b/dvd/programmi/src/index.hbs @@ -0,0 +1,24 @@ +--- +layout: base.html +subtitle: Come recuperare i software usati al campo +--- + + +
    + +

    Programmi:

    + +

    Come Staff non crediamo sia utile inserire copie statiche di software reperibile online dentro questa USB.

    + +

    Abbiamo inserito l'elenco dei software utilizzati al campo (e non) all'interno della sezione software del sito bitprepared.it, cercheremo di tenere l'elenco sempre aggiornato.

    + +

    Vi ricordiamo che il software prodotto dalla nostra Staff sarà sempre rilasciato come Software Libero e che anche per il software di terze parti elencato cerchiamo di usare solo Software Libero.

    + +
    + \ No newline at end of file diff --git a/dvd/varie/index.js b/dvd/varie/index.js new file mode 100755 index 0000000..71469ba --- /dev/null +++ b/dvd/varie/index.js @@ -0,0 +1,60 @@ +const fs = require('fs'); +const fsextra = require('fs-extra'); +const rimraf = require('rimraf'); +const path = require('path'); +const handlebars = require('handlebars'); + +var Varie = function (logger, materiale) { + this.logger = logger; + this.materiale = materiale; +}; + +function valuta(logger, materiale) { + var missing = []; + materiale.forEach((currentValue, index, arr) => { + logger.info(currentValue.title); + if (currentValue.dir) { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.dir + '/'))) { + missing.push(currentValue); + } + if (currentValue.files) { + currentValue.files.forEach((currentValue, index, arr) => { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.dir + '/' + currentValue.filename))) { + missing.push(currentValue); + } + }); + } + + } else { + if (!fs.existsSync(path.join(__dirname, './materiale/' + currentValue.file))) { + missing.push(currentValue); + } + } + }); + return missing; +} + +Varie.prototype.check = function () { + var missing = []; + this.logger.info('Varie', 'check materiale'); + missing = missing.concat(valuta(this.logger, this.materiale)); + return missing; +}; + +Varie.prototype.build = function () { + +} + +Varie.prototype.clean = function () { + +} + +Varie.prototype.src = function () { + return path.join(__dirname, 'src'); +} + +Varie.prototype.srcAssets = function () { + return path.join(__dirname, 'materiale'); +} + +module.exports = Varie; diff --git a/dvd/varie/materiale/.gitignore b/dvd/varie/materiale/.gitignore new file mode 100755 index 0000000..86d0cb2 --- /dev/null +++ b/dvd/varie/materiale/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/dvd/varie/src/index.hbs b/dvd/varie/src/index.hbs new file mode 100755 index 0000000..3ab91c4 --- /dev/null +++ b/dvd/varie/src/index.hbs @@ -0,0 +1,30 @@ +--- +layout: base.html +subtitle: Varie +--- + + + + \ No newline at end of file diff --git a/dvd/varie/src/utility_scout.hbs b/dvd/varie/src/utility_scout.hbs new file mode 100755 index 0000000..4836b3f --- /dev/null +++ b/dvd/varie/src/utility_scout.hbs @@ -0,0 +1,113 @@ +--- +layout: base.html +subtitle: Utilità Scout +--- + + +
    + +

    Utilita Scout:

    + + + +
    + \ No newline at end of file diff --git a/lib/generatore.js b/lib/generatore.js new file mode 100755 index 0000000..2494fd6 --- /dev/null +++ b/lib/generatore.js @@ -0,0 +1,185 @@ +const Metalsmith = require('metalsmith'); +const markdown = require('metalsmith-markdown'); +/* const asciidoc = require('metalsmith-asciidoc'); */ +const handlebars = require('handlebars'); +const hbtmd = require('metalsmith-hbt-md'); +const renamer = require('metalsmith-renamer'); +const ancestry = require("metalsmith-ancestry"); +const layouts = require('metalsmith-layouts'); +const layoutsByName = require('metalsmith-layouts-by-name'); +const permalinks = require('metalsmith-permalinks'); +const assets = require('metalsmith-assets'); +const links = require("metalsmith-relative-links"); +const rootpath = require('metalsmith-rootpath'); +const handlebarsIntl = require('handlebars-intl'); +handlebarsIntl.registerWith(handlebars); +const helpers = require('handlebars-helpers')({ + handlebars: handlebars +}); + +const path = require('path'); + +// custom lib +// const debug = require('./metalsmith-debug'); +const gallery = require('./metalsmith-gallery'); +const savesrc = require('./metalsmith-savesrc'); + +var GeneratoreHTML = function (logger) { this.logger = logger; }; + +handlebars.registerHelper('if_eq', function (a, b, opts) { + if (a == b) // Or === depending on your needs + return opts.fn(this); + else + return opts.inverse(this); +}); + +handlebars.registerHelper('if_modzero', function (a, b, opts) { + if (a % b == 0) // Or === depending on your needs + return opts.fn(this); + else + return opts.inverse(this); +}); + +handlebars.registerHelper("debug", function (optionalValue) { + if (optionalValue) { + console.log("Value"); + console.log("===================="); + console.log(optionalValue); + } else { + console.log("Current Context"); + console.log("===================="); + console.log(this); + } +}); + +handlebars.registerHelper('concat', function (value) { + return value.hash.a + value.hash.b; +}); + +GeneratoreHTML.prototype.genera = function (config) { + const loggerParent = this.logger; + + this.logger.info('GeneratoreHTML', 'metalsmith HTML setup'); + + this.logger.info('Source: ' + config.src); + + this.logger.info('Layouts: ' + config.layouts); + + this.logger.info('Partials: ' + config.partials); + + const metalsmith = Metalsmith(__dirname) + .metadata({ + title: config.title, + description: config.description, + generator: "Metalsmith", + url: config.url, + menu: config.menu, + squadriglie: config.squadriglie, + esercitazioni: config.esercitazioni + }) + .source(config.src) + .destination(config.output) + .clean(false) //viene gia arrichita build precedentemente + .use(rootpath()) + .use(assets({ source: config.assets })) + .use(links({ + // // Name of property that should get the link function + // linkProperty: "link", + // + // // Pattern of files to match + // match: "**/*.htm,html", + + // Function to modify links. See below. + modifyLinks: function (uri) { + const x = uri.replace(/\.md$/, ".html"); //.replace(/(^|\/|\\)index.html$/, "$1"); + return x.replace(/(^|\/|\\)$/, "$1/index.html").replace('\/\/', '\/'); + } + })) + .use(ancestry({ + match: '**/*', + sortFilesFirst: "**/index.{html,md,hbs}", + sortBy: function (a, b) { + loggerParent.debug('ancestry', 'sortBy date'); + loggerParent.debug('Date A: ' + a.date); + loggerParent.debug('Date B: ' + b.date); + // 1 -> a piu grnade + // -1 -> a piu piccolo + if (a.date) { + if (b.date) { + if (new Date(a.date) == new Date(b.date)) return 0; + if (new Date(a.date) > new Date(b.date)) { + loggerParent.debug('vince a'); + return 1; + } + loggerParent.debug('vince b'); + return -1; + } else { + loggerParent.debug("b undefined"); + // metto per primo chi ha la data + return 1; + } + } else { + if (b.date) { + loggerParent.debug("a undefined"); + // metto per primo chi ha la data + return -1; + } else { + return 0; + } + } + } + })) + .use(gallery({ + "imagesDirectory": config.fotosrc, + "imagesKey": "galleries", + "pattern": "**/*.hbs", + "authorizedCategorie": config.categories, + "authorizedExts": config.authorizedExts + })) + .use(hbtmd(handlebars, { + pattern: '**/*.{md,hbs}' + })) + .use(permalinks({ + relative: true, + pattern: ':title', + })) + .use(markdown({ + gfm: true, + tables: true, + breaks: true + })) + // .use(asciidoc()) + .use(layoutsByName({ + directory: config.layouts + })) + .use(layouts({ + engine: 'handlebars', + directory: config.layouts, + partials: config.partials, + pretty: true + })) + .use(renamer({ + filesToRename: { + pattern: '**/*.hbs', + rename: function (name) { + return path.basename(name,'.hbs') + ".html"; + } + } + })) + .use(savesrc()); + + loggerParent.info('GeneratoreHTML', 'metalsmith build'); + + loggerParent.info('Output dir '+ config.output); + + metalsmith.build((error, files) => { + if (error) { + loggerParent.error('Build with error!', '', error); + console.log(error); + } else { + loggerParent.success('Build finished!'); + } + }); +}; + +module.exports = GeneratoreHTML; \ No newline at end of file diff --git a/lib/logger.js b/lib/logger.js new file mode 100755 index 0000000..ef83747 --- /dev/null +++ b/lib/logger.js @@ -0,0 +1,54 @@ +const chalk = require('chalk'); +const emoji = require('node-emoji'); + +var Logger = function(debug) { if ( debug ) { this.enableDebug = debug; } else { this.enableDebug = false; } }; + +Logger.prototype.title = function(title) { + process.stdout.write(chalk.gray(emoji.emojify('[ ]') + title) + "\n"); +}; + +Logger.prototype.success = function(message) { + process.stdout.write(chalk.white('[') + chalk.green( emoji.emojify(':white_check_mark:')) + chalk.white(' ] ') + chalk.green(message) + "\n" ); +}; + +// [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ unihubsign-main --- +// // [INFO] blah blah +Logger.prototype.info = function(info, moduleName) { + if ( moduleName ) { + process.stderr.write(chalk.white('[ ') + chalk.blue('INFO') + chalk.white(' ] --- ') + info + " @ " + chalk.cyan(moduleName) + chalk.white(' --- ') + "\n"); + } else { + process.stderr.write(chalk.white('[ ') + chalk.blue('INFO') + chalk.white(' ] ') + info + "\n"); + } +}; + +Logger.prototype.debug = function(debug, moduleName) { + if (this.enableDebug){ + if ( moduleName ) { + process.stderr.write(chalk.gray('[ ') + chalk.gray('DEBUG') + chalk.gray(' ] --- ') + debug + " @ " + chalk.cyan(moduleName) + chalk.gray(' --- ') + "\n"); + } else { + process.stderr.write(chalk.gray('[ ') + chalk.gray('DEBUG') + chalk.gray(' ] ') + debug + "\n"); + } + } +}; + +Logger.prototype.warn = function(warn) { + process.stderr.write(chalk.white('[') + chalk.yellow(emoji.emojify(':raised_hand:')) + chalk.white(' ] ') + chalk.yellow(warn) + "\n"); +}; + +Logger.prototype.error = function(text, stdout, stderr) { + //process.stderr.write(chalk.bgRed.white(emoji.emojify('[:heavy_multiplication_x: ] ') + text ) + "\n"); + process.stderr.write(chalk.white('[') + chalk.red(emoji.emojify(':x:')) + chalk.white(' ] ') + chalk.bgRed.white(text) + "\n"); + if (stdout) process.stderr.write(chalk.white('[ ') + chalk.red('ERROR') + chalk.white(' ] ') + chalk.gray(stdout + "\n")); + if (stderr) process.stderr.write(chalk.white('[ ') + chalk.red('ERROR') + chalk.white(' ] ') + chalk.red(stderr + "\n")); +}; + +Logger.prototype.test = function() { + this.info('info!', 'moduleName'); + this.info('text info'); + this.warn('warn text!'); + this.error('error text'); + this.error('error text with output','stdout', 'stderr'); + this.success('success'); +}; + +module.exports = Logger; diff --git a/lib/metalsmith-debug.js b/lib/metalsmith-debug.js new file mode 100755 index 0000000..e104f41 --- /dev/null +++ b/lib/metalsmith-debug.js @@ -0,0 +1,25 @@ +/* +metalsmith-debug +displays site metadata and page information in the console +*/ +module.exports = function() { + + 'use strict'; + + return function(files, metalsmith, done) { + + console.log('\nMETADATA:'); + console.log(metalsmith.metadata()); + + for (var f in files) { + + console.log('\nPAGE:'); + console.log(files[f]); + + } + + done(); + + }; + +}; diff --git a/lib/metalsmith-gallery.js b/lib/metalsmith-gallery.js new file mode 100755 index 0000000..0e97518 --- /dev/null +++ b/lib/metalsmith-gallery.js @@ -0,0 +1,150 @@ +/* +metalsmith-gallery + +Strutture + +--- directory src (Es: foto) + | --- giorno + | --- categoria + | --- giorno + | --- categoria + + +*/ + +const match = require('multimatch'); +const debug = require('debug')('metalsmith-hbt-md'); +const extend = require('util')._extend; +const fs = require('fs'); +const path = require('path'); +const dirTree = require('directory-tree'); + +/** + * @param {Object} options + * @param {Array} authorized extensions - e.g ['jpg', 'png', 'gif'] + * @return {Object} + */ +function normalizeOptions(options) { + // define options + var defaultOptions = { + authorizedExts: ['jpg', 'jpeg', 'svg', 'png', 'gif', 'JPG', 'JPEG', 'SVG', 'PNG', 'GIF'], + imagesDirectory: 'images', + imagesKey: 'images', + authorizedCategories: [], + categoriesKey: "categories", + pattern: "**/*.md" + }; + + return extend(defaultOptions, options); +} + +module.exports.normalizeOptions = normalizeOptions; + +/** + * @param {String} file + * @param {Array} authorized extensions - e.g ['jpg', 'png', 'gif'] + * @return {Boolean} + */ +function isAuthorizedFile(file, authorizedExtensions) { + // get extension + var extension = file.split('.').pop(); + return authorizedExtensions.indexOf(extension) > -1; +} + +module.exports.isAuthorizedFile = isAuthorizedFile; + +module.exports = function (options) { + + 'use strict'; + + options = normalizeOptions(options); + + return function (files, metalsmith, done) { + + // fs.readdirSync(options.imagesDirectory).forEach(element => { + // if (!fs.lstatSync(options.imagesDirectory + "/" + element).isDirectory() ) { + // const file = element; + // if (isAuthorizedFile(file, options.authorizedExts)) { + // console.log(file); + // // var imagePath = path.join(files[file].path.dir, options.imagesDirectory, dirFile); + // // files[file][options.imagesKey].push(imagePath); + // } + // } else { + // console.log("dir "+element); + // } + // }) + + const elencoEstensioni = options.authorizedExts.join("|") + const filteredTree = dirTree(options.imagesDirectory, { extensions: new RegExp(".(" + elencoEstensioni + ")$") }); + + var gallery = {}; + var categorie = []; + + if (filteredTree){ + filteredTree.children.forEach(function(item){ + if (fs.lstatSync(item.path).isDirectory()) { + debug("giorno: " + item.name); + const giorno = item.name; + gallery[giorno] = []; + item.children.forEach(function(item_child){ + if (fs.lstatSync(item_child.path).isDirectory()) { + debug("categoria: " + item_child.name); + const categoria = item_child.name; + categorie.push(categoria); + gallery[categoria] = []; + item_child.children.forEach(function (item_photo) { + debug("foto: " + item_photo.name); + const name = path.basename(item_photo.name, path.extname(item_photo.name)); + var obj = { + "name": name, + "filename": path.basename(item_photo.path), + "path": item_photo.path.replace(options.imagesDirectory,''), + "pathThumb": item_photo.path.replace(options.imagesDirectory, '').replace(path.basename(item_photo.path),'') + name + ".jpg" + }; + if (categorie.indexOf(giorno) < 0 ){ + categorie.push(giorno); + } + gallery[giorno].push(obj); + gallery[categoria].push(obj); + }); + } + }); + } + }); + } + + + if ( options.authorizedCategorie.length != 0 ){ + categorie = categorie.filter(function (i) { return options.authorizedCategorie.indexOf(i) > -1; }) + } + + const categorieFiltered = categorie.filter((item, index) => categorie.indexOf(item) === index); + + Object.keys(files).forEach(function (file) { + + if (match(file, options.pattern).length === 0) { + return; + } + + debug('Processing ' + file); + + var fileStore = files[file]; + // var source = file.contents.toString(); + // var template = handlebars.compile(source, options); + // var data = Object.assign({}, meta, file); + + // try { + // file.contents = new Buffer(template(data)); + // debug('Processed ' + file); + // } catch (e) { + // console.log(e.message); + // } + files[file][options.imagesKey] = gallery || []; + files[file][options.categoriesKey] = categorieFiltered || []; + }); + + done(); + + }; + +}; diff --git a/lib/metalsmith-savesrc.js b/lib/metalsmith-savesrc.js new file mode 100755 index 0000000..a22558c --- /dev/null +++ b/lib/metalsmith-savesrc.js @@ -0,0 +1,10 @@ +module.exports = options => { + + return (files, metalsmith, done) => { + setImmediate(done) + + for (let file in files) { + files[file].src = file + } + } +} diff --git a/lib/saxon9he.jar b/lib/saxon9he.jar deleted file mode 100644 index 982c061..0000000 Binary files a/lib/saxon9he.jar and /dev/null differ diff --git a/sass/partials/_footer.scss b/sass/partials/_footer.scss deleted file mode 100644 index 8872580..0000000 --- a/sass/partials/_footer.scss +++ /dev/null @@ -1,11 +0,0 @@ - -footer[role="contentinfo"] { - bottom: 10px; - position: relative; - clear: both; - padding-top: 100px; - padding-bottom: 100px; - min-height: 300px; - text-align: center; - vertical-align: middle; -} \ No newline at end of file diff --git a/sass/partials/_header.scss b/sass/partials/_header.scss deleted file mode 100644 index bc24401..0000000 --- a/sass/partials/_header.scss +++ /dev/null @@ -1,53 +0,0 @@ - -header[role="title"] { - - .logo { - - float: left; - min-width: 300px; - position: relative; - - } - - // Nesting example using parent selector - .menu { - - //background-color: $white; - //padding: 10px; - //max-width: 738px; - //list-style-position: inside; - - position: relative; - - text-align: left; - list-style-image: none; - line-height: 25px; - min-width: 200px; - margin-left:5px; - margin-right:5px; - - float: left; - - ol,ul { - vertical-align: middle; - list-style-type: none; - margin: 0px; - padding: 0px; - li { - background-color: transparent; - float: left; - padding: 5px; - margin-top: 10px; - margin-bottom: 10px; - - min-width: 30px; - border: 1px $verde_melee solid; - a { - padding: 10px; - } - } - } - } - -} - diff --git a/sass/partials/_layout-320.scss b/sass/partials/_layout-320.scss deleted file mode 100644 index 5ff50ff..0000000 --- a/sass/partials/_layout-320.scss +++ /dev/null @@ -1,54 +0,0 @@ -div[role="container"] { - max-width:320px; - align: center; - position: relative; -} - -div[role="main"] { - font-size: 0.8em; -} - -.main-content { - //border: 1px solid yellow; - color: $white; - background: transparent; - float: left; - top: 600px; - padding: 10px; - margin-left:5px; - margin-right:5px; -} - -.two-column-left-content { - //border: 1px solid red; - color: $white; - background: transparent; - float: left; - margin-left:5px; - margin-right:5px; - min-width: 100px; -} - -.two-column-main-content { - //border: 1px solid yellow; - color: $white; - background: transparent; - float: left; - margin-left:5px; - margin-right:5px; - width: 70%; -} - -.two-column-right-content { - //border: 1px solid red; - color: $white; - background: transparent; - float: right; - margin-left:5px; - margin-right:5px; - min-width: 100px; -} - -.clear { - clear: both; -} \ No newline at end of file diff --git a/sass/partials/_layout-480.scss b/sass/partials/_layout-480.scss deleted file mode 100644 index 1b370eb..0000000 --- a/sass/partials/_layout-480.scss +++ /dev/null @@ -1,54 +0,0 @@ -div[role="container"] { - max-width:480px; - align: center; - position: relative; -} - -div[role="main"] { - font-size: 0.8em; -} - -.main-content { - //border: 1px solid yellow; - color: $white; - background: transparent; - float: left; - top: 600px; - padding: 10px; - margin-left:5px; - margin-right:5px; -} - -.two-column-left-content { - //border: 1px solid red; - color: $white; - background: transparent; - float: left; - margin-left:5px; - margin-right:5px; - min-width: 100px; -} - -.two-column-main-content { - //border: 1px solid yellow; - color: $white; - background: transparent; - float: left; - margin-left:5px; - margin-right:5px; - width: 70%; -} - -.two-column-right-content { - //border: 1px solid red; - color: $white; - background: transparent; - float: right; - margin-left:5px; - margin-right:5px; - min-width: 100px; -} - -.clear { - clear: both; -} \ No newline at end of file diff --git a/sass/partials/_layout.scss b/sass/partials/_layout.scss deleted file mode 100644 index 8d92bef..0000000 --- a/sass/partials/_layout.scss +++ /dev/null @@ -1,54 +0,0 @@ -div[role="container"] { - max-width:1024px; - align: center; - position: relative; -} - -div[role="main"] { - font-size: 0.8em; -} - -.main-content { - //border: 1px solid yellow; - color: $white; - background: transparent; - float: left; - top: 600px; - padding: 10px; - margin-left:5px; - margin-right:5px; -} - -.two-column-left-content { - //border: 1px solid red; - color: $white; - background: transparent; - float: left; - margin-left:5px; - margin-right:5px; - min-width: 100px; -} - -.two-column-main-content { - //border: 1px solid yellow; - color: $white; - background: transparent; - float: left; - margin-left:5px; - margin-right:5px; - width: 70%; -} - -.two-column-right-content { - //border: 1px solid red; - color: $white; - background: transparent; - float: right; - margin-left:5px; - margin-right:5px; - min-width: 100px; -} - -.clear { - clear: both; -} \ No newline at end of file diff --git a/sass/partials/_navigation.scss b/sass/partials/_navigation.scss deleted file mode 100644 index e69de29..0000000 diff --git a/sass/partials/_normalize.scss b/sass/partials/_normalize.scss deleted file mode 100644 index bb16c00..0000000 --- a/sass/partials/_normalize.scss +++ /dev/null @@ -1,461 +0,0 @@ -// ============================================================================= -// Normalize.scss settings -// ============================================================================= - -// Set to false if you want to drop support for IE6 and IE7 -// Notice: setting to false might render some elements -// slightly differently than when set to true - -$support-for-ie6-and-ie7: false; - -// ============================================================================= -// HTML5 display definitions -// ============================================================================= - -// Corrects block display not defined in IE6/7/8/9 & FF3 - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -nav, -section, -summary { - display: block; -} - -// Corrects inline-block display not defined in IE6/7/8/9 & FF3 - -audio, -canvas, -video { - display: inline-block; - @if $support-for-ie6-and-ie7 { - *display: inline; - *zoom: 1; - } -} - -// 1. Prevents modern browsers from displaying 'audio' without controls -// 2. Remove excess height in iOS5 devices - -audio:not([controls]) { - display: none; // 1 - height: 0; // 2 -} - -// Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4 -// Known issue: no IE6 support - -[hidden] { - display: none; -} - -// ============================================================================= -// Base -// ============================================================================= - -// 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units -// http://clagnut.com/blog/348/#c790 -// 2. Prevents iOS text size adjust after orientation change, without disabling user zoom -// www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ - -html { - @if $support-for-ie6-and-ie7 { - font-size: 100%; // 1 - } - -webkit-text-size-adjust: 100%; // 2 - -ms-text-size-adjust: 100%; // 2 -} - -// Addresses font-family inconsistency between 'textarea' and other form elements. - -html, -button, -input, -select, -textarea { - font-family: sans-serif; -} - -// Addresses margins handled incorrectly in IE6/7 - -body { - margin: 0; -} - -// ============================================================================= -// Links -// ============================================================================= - -// 1. Addresses outline displayed oddly in Chrome -// 2. Improves readability when focused and also mouse hovered in all browsers -// people.opera.com/patrickl/experiments/keyboard/test - -a { - - // 1 - - &:focus { - outline: thin dotted; - } - - // 2 - - &:hover, - &:active { - outline: 0; - } -} - -// ============================================================================= -// Typography -// ============================================================================= - -// Addresses font sizes and margins set differently in IE6/7 -// Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5 - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -h2 { - font-size: 1.5em; - margin: 0.83em 0; -} - -h3 { - font-size: 1.17em; - margin: 1em 0; -} - -h4 { - font-size: 1em; - margin: 1.33em 0; -} - -h5 { - font-size: 0.83em; - margin: 1.67em 0; -} - -h6 { - font-size: 0.75em; - margin: 2.33em 0; -} - -// Addresses styling not present in IE7/8/9, S5, Chrome - -abbr[title] { - border-bottom: 1px dotted; -} - -// Addresses style set to 'bolder' in FF3+, S4/5, Chrome - -b, -strong { - font-weight: bold; -} - -@if $support-for-ie6-and-ie7 { - blockquote { - margin: 1em 40px; - } -} - -// Addresses styling not present in S5, Chrome - -dfn { - font-style: italic; -} - -// Addresses styling not present in IE6/7/8/9 - -mark { - background: #ff0; - color: #000; -} - -// Addresses margins set differently in IE6/7 -@if $support-for-ie6-and-ie7 { - p, - pre { - margin: 1em 0; - } -} - -// Corrects font family set oddly in IE6, S4/5, Chrome -// en.wikipedia.org/wiki/User:Davidgothberg/Test59 - -pre, -code, -kbd, -samp { - font-family: monospace, serif; - @if $support-for-ie6-and-ie7 { - _font-family: 'courier new', monospace; - } - font-size: 1em; -} - -// Improves readability of pre-formatted text in all browsers - -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -// 1. Addresses CSS quotes not supported in IE6/7 -// 2. Addresses quote property not supported in S4 - -// 1 -@if $support-for-ie6-and-ie7 { - q { - quotes: none; - } -} - -// 2 - -q:before, -q:after { - content: ''; - content: none; -} - -small { - font-size: 75%; -} - -// Prevents sub and sup affecting line-height in all browsers -// gist.github.com/413930 - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -// ============================================================================= -// Lists -// ============================================================================= - -// Addresses margins set differently in IE6/7 -@if $support-for-ie6-and-ie7 { - dl, - menu, - ol, - ul { - margin: 1em 0; - } -} - -@if $support-for-ie6-and-ie7 { - dd { - margin: 0 0 0 40px; - } -} - -// Addresses paddings set differently in IE6/7 -@if $support-for-ie6-and-ie7 { - menu, - ol, - ul { - padding: 0 0 0 40px; - } -} - -// Corrects list images handled incorrectly in IE7 - -nav { - ul, - ol { - list-style: none; - @if $support-for-ie6-and-ie7 { - list-style-image: none; - } - } -} - -// ============================================================================= -// Embedded content -// ============================================================================= - -// 1. Removes border when inside 'a' element in IE6/7/8/9, FF3 -// 2. Improves image quality when scaled in IE7 -// code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ - -img { - border: 0; // 1 - @if $support-for-ie6-and-ie7 { - -ms-interpolation-mode: bicubic; // 2 - } -} - -// Corrects overflow displayed oddly in IE9 - -svg:not(:root) { - overflow: hidden; -} - -// ============================================================================= -// Figures -// ============================================================================= - -// Addresses margin not present in IE6/7/8/9, S5, O11 - -figure { - margin: 0; -} - -// ============================================================================= -// Forms -// ============================================================================= - -// Corrects margin displayed oddly in IE6/7 -@if $support-for-ie6-and-ie7 { - form { - margin: 0; - } -} - -// Define consistent border, margin, and padding - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -// 1. Corrects color not being inherited in IE6/7/8/9 -// 2. Corrects text not wrapping in FF3 -// 3. Corrects alignment displayed oddly in IE6/7 - -legend { - border: 0; // 1 - padding: 0; - white-space: normal; // 2 - @if $support-for-ie6-and-ie7 { - *margin-left: -7px; // 3 - } -} - -// 1. Corrects font size not being inherited in all browsers -// 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome -// 3. Improves appearance and consistency in all browsers - -button, -input, -select, -textarea { - font-size: 100%; // 1 - margin: 0; // 2 - vertical-align: baseline; // 3 - @if $support-for-ie6-and-ie7 { - *vertical-align: middle; // 3 - } -} - -// Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet - -button, -input { - line-height: normal; // 1 -} - -// 1. Improves usability and consistency of cursor style between image-type 'input' and others -// 2. Corrects inability to style clickable 'input' types in iOS -// 3. Removes inner spacing in IE7 without affecting normal text inputs -// Known issue: inner spacing remains in IE6 - -button, -input[type="button"], -input[type="reset"], -input[type="submit"] { - cursor: pointer; // 1 - -webkit-appearance: button; // 2 - @if $support-for-ie6-and-ie7 { - *overflow: visible; // 3 - } -} - -// Re-set default cursor for disabled elements - -button[disabled], -input[disabled] { - cursor: default; -} - -// 1. Addresses box sizing set to content-box in IE8/9 -// 2. Removes excess padding in IE8/9 -// 3. Removes excess padding in IE7 -// Known issue: excess padding remains in IE6 - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; // 1 - padding: 0; // 2 - @if $support-for-ie6-and-ie7 { - *height: 13px; // 3 - *width: 13px; // 3 - } -} - -// 1. Addresses appearance set to searchfield in S5, Chrome -// 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof) -// 3. Removes inner padding and search cancel button in S5, Chrome on OS X - -input[type="search"] { - -webkit-appearance: textfield; // 1 - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; // 2 - box-sizing: content-box; - &::-webkit-search-decoration, &::-webkit-search-cancel-button { // 3 - -webkit-appearance: none; - } -} - -// Removes inner padding and border in FF3+ -// www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ - -button, input { - &::-moz-focus-inner { - border: 0; - padding: 0; - } -} - -// 1. Removes default vertical scrollbar in IE6/7/8/9 -// 2. Improves readability and alignment in all browsers - -textarea { - overflow: auto; // 1 - vertical-align: top; // 2 -} - -// ============================================================================= -// Tables -// ============================================================================= - -// Remove most spacing between table cells - -table { - border-collapse: collapse; - border-spacing: 0; -} diff --git a/sass/partials/_sidebar.scss b/sass/partials/_sidebar.scss deleted file mode 100644 index d8f3eac..0000000 --- a/sass/partials/_sidebar.scss +++ /dev/null @@ -1,4 +0,0 @@ - -div [role="sidebar"]{ - text-align: left; -} \ No newline at end of file diff --git a/sass/partials/_social.scss b/sass/partials/_social.scss deleted file mode 100644 index e69de29..0000000 diff --git a/sass/partials/_variables.scss b/sass/partials/_variables.scss deleted file mode 100644 index 191affa..0000000 --- a/sass/partials/_variables.scss +++ /dev/null @@ -1,41 +0,0 @@ -// Immagine Coordinata Agesci (colori) -$giallo_agesci: rgb(249,214,22); -$verde_agesci: rgb(61,142,51); -$rosso_agesci: rgb(80,15,17); -$violetto_agesci: rgb(122,30,153); - -$azzurro_agesci: rgb(102,137,204); -$giallo_oro_agesci: rgb(255,204,30); -$blu_agesci: rgb(98,37,153); - -// Colori neutri -$black: #000; // Black -$white: #FFF; // White - -// Colori Melee Island -$verde_melee: #42AC88; - -// Fonts -$blockquote: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; -$bitfont: "Courier New", Courier, monospace; - -// Mixin variables -$defined-bs-type: border-box !default; - - - - - - - -/* -$color1: #FF0000; // Red -$color2: #FFBF00; // Orange -$color3: #FFFF00; // Yellow -$color4: #7FFF00; // Green -$color5: #007FFF; // Light Blue -$color6: #00FFFF; // Cyan -$color7: #0000FF; // Blue -$color8: #7F00FF; // Purple -$color9: #FF00FF; // Magenta -*/ \ No newline at end of file diff --git a/sass/styles-320.scss b/sass/styles-320.scss deleted file mode 100644 index a2f671f..0000000 --- a/sass/styles-320.scss +++ /dev/null @@ -1,71 +0,0 @@ - -// ==================================================================== -// Imports -// ==================================================================== - -@import "compass"; -@import "partials/variables"; -@import "partials/normalize"; -@import "partials/layout-320"; -@import "partials/header"; -@import "partials/footer"; -@import "partials/sidebar"; -@import "partials/navigation"; -@import "partials/social"; - -body { - - font-size: 1em; - line-height: 1.4; - - //@include background(image-url("subtlenet2.png")); - - //font-family: "SansationRegular","HelveticaNeue-Light","Helvetica Neue", Helvetica, Arial, sans-serif; - font-family: $bitfont; - - // Modernizr fallback for when there is no fontface support - .no-fontface & { - font-size: 1.05em; - } - - //background: $verde_melee; - background: red; - color: $white; - -} - -em { - display: block; - margin: 4px; -} - -blockquote { - font-style: italic; -} - -::-moz-selection { - background: $giallo_oro_agesci; - text-shadow: none; - color: $black; -} - -::selection { - background: $giallo_oro_agesci; - text-shadow: none; - color: $black; -} - -.fotobook { - min-width: 150px; -} - -.foto-in-elenco { - float: left; - margin: 5px; - text-align: center; - width: 145px; -} - -.foto-in-elenco img { - width: 72px; -} diff --git a/sass/styles-480.scss b/sass/styles-480.scss deleted file mode 100644 index ddec551..0000000 --- a/sass/styles-480.scss +++ /dev/null @@ -1,70 +0,0 @@ - -// ==================================================================== -// Imports -// ==================================================================== - -@import "compass"; -@import "partials/variables"; -@import "partials/normalize"; -@import "partials/layout-480"; -@import "partials/header"; -@import "partials/footer"; -@import "partials/sidebar"; -@import "partials/navigation"; -@import "partials/social"; - -body { - - font-size: 1em; - line-height: 1.4; - - //@include background(image-url("subtlenet2.png")); - - //font-family: "SansationRegular","HelveticaNeue-Light","Helvetica Neue", Helvetica, Arial, sans-serif; - font-family: $bitfont; - - // Modernizr fallback for when there is no fontface support - .no-fontface & { - font-size: 1.05em; - } - - background: $verde_melee; - color: $white; - -} - -em { - display: block; - margin: 4px; -} - -blockquote { - font-style: italic; -} - -::-moz-selection { - background: $giallo_oro_agesci; - text-shadow: none; - color: $black; -} - -::selection { - background: $giallo_oro_agesci; - text-shadow: none; - color: $black; -} - -.fotobook { - min-width: 150px; -} - -.foto-in-elenco { - float: left; - margin: 5px; - text-align: center; - width: 145px; -} - -.foto-in-elenco img { - width: 72px; -} diff --git a/sass/styles.scss b/sass/styles.scss deleted file mode 100644 index fd93698..0000000 --- a/sass/styles.scss +++ /dev/null @@ -1,70 +0,0 @@ - -// ==================================================================== -// Imports -// ==================================================================== - -@import "compass"; -@import "partials/variables"; -@import "partials/normalize"; -@import "partials/layout"; -@import "partials/header"; -@import "partials/footer"; -@import "partials/sidebar"; -@import "partials/navigation"; -@import "partials/social"; - -body { - - font-size: 1em; - line-height: 1.4; - - //@include background(image-url("subtlenet2.png")); - - //font-family: "SansationRegular","HelveticaNeue-Light","Helvetica Neue", Helvetica, Arial, sans-serif; - font-family: $bitfont; - - // Modernizr fallback for when there is no fontface support - .no-fontface & { - font-size: 1.05em; - } - - background: $verde_melee; - color: $white; - -} - -em { - display: block; - margin: 4px; -} - -blockquote { - font-style: italic; -} - -::-moz-selection { - background: $giallo_oro_agesci; - text-shadow: none; - color: $black; -} - -::selection { - background: $giallo_oro_agesci; - text-shadow: none; - color: $black; -} - -.fotobook { - min-width: 150px; -} - -.foto-in-elenco { - float: left; - margin: 5px; - text-align: center; - width: 145px; -} - -.foto-in-elenco img { - width: 72px; -} diff --git a/src/angoli/index.html b/src/angoli/index.html deleted file mode 100644 index 09a6872..0000000 --- a/src/angoli/index.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - Angoli di Sq. ::: Campo di Competenza Informatica e Tecniche Scout - - - - -
    - - -
    -
    - -
    -

    Isola di Melée

    -
    - - - - - - - - - -
    -
    -
    -
    -
    - -
    - \ No newline at end of file diff --git a/src/homepage.xml b/src/homepage.xml deleted file mode 100644 index 0fa4052..0000000 --- a/src/homepage.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - 2013 - Campo di Competenza Informatica e Tecniche Scout - - <p> - Cari ragazzi, stiamo nuovamente pensando a voi con la stessa gioia che ha contraddistinto la settimana trascorsa insieme. Eh s&igrave; sono bastati cinque giorni di campo per condividere un'esperienza unica.</p><p> - La frastornante sveglia del mattino, i profondi momenti di catechesi, le mille ore di laboratorio, i mille calcoli di azimut, la merenda, le centinaia di magliette cambiate causa il caldo tropicale, come non dimenticare le api, i chilometri camminati in missione con la sq, i capi e i loro orologi. E' impossibile dimenticare tutto questo. Chissà se il viaggio di ritorno lo avete vissuto come noi, immersi nei ricordi e con il cuore pieno di felicit&agrave;. - Ci avete donato molto. I vostri sorrisi e la vostra allegria ci hanno accompagnato durante tutte le giornate di questo campo e sono stati una presenza indelebile che ci ha aiutato a fare del nostro meglio. La vostra creativit&agrave; e il vostro impegno sono stati fondamentali per raggiungere gli obiettivi del campo. Noi vi abbiamo fornito semplicemente le nostre conoscenze e i mezzi tecnici, tutto il resto &egrave; il risultato del vostro impegno e del vostro entusiasmo.</p><p> - Questo DVD &egrave; il risultato finale dei nostri reciproci sforzi e vi dar&agrave; la possibilit&agrave; di ricordare attraverso le foto, i video ed i lavori realizzati questo bellissmo campo. All'interno troverete i programmi e le utilities che abbiamo imparato ad utilizzare durante il campo, cos&igrave; potrete realizzare progetti ancora pi&ugrave; grandi e condividerli con gli altri, perch&egrave; la vera ricchezza &egrave; ci&ograve; che si dona e non ci&ograve; che si possiede.</p> - &Egrave; il nostro ultimo dono a voi, come esploratori e guide di questo campo.</p><p> - Questo non &egrave; un addio, ma un arrivederci, speriamo di sentirvi online e magari di persona in futuro. - </p> - <p> - Puntate in alto! - </p> - - Buona caccia! - Daniele e Michela - - Guarda, una scimmia a tre teste dietro di te! Ora spegni il computer e vai a giocare. - - img/gruppo/gruppo_low.jpg - img/gruppo/gruppo.jpg -
    - Questo DVD &egrave; stato realizzato &quot;in real time&quot; da un gruppo di folli (Chiara, Daniele, REz, Riccardo, Stefano, Luca, Michela, Francesco, Andrea, Emanuele, Elisa e Enrico) che nello svolgimento del compito hanno lottato contro vespe e "mangiacavaj", alla fine stanchi ma soddisfatti..:) -
    -
    \ No newline at end of file diff --git a/src/impostazioni.xml b/src/impostazioni.xml deleted file mode 100644 index 3995ab5..0000000 --- a/src/impostazioni.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - Campo di Competenza Informatica e Tecniche Scout - 2013 - - - pagina dati prodotti ragazzi - - dati.html - 1 - both - sito/ - dati_e_programmi.png - - - archivio di reparto - - angoli/ - index.html - 2 - both - sito/angoli/ - angoli_di_sq.png - - - blog - - blog/ - index.html - 3 - both - sito/blog/ - blog.png - - - FOL diario foto - - fol.html - 4 - both - sito/fol/ - diario_fotografico.png - - - pagina documenti generali - - documenti.html - 5 - offline - documenti/ - documenti_generali.png - - - pagina programmi e utililita' - - programmi.html - 6 - offline - programmi/ - programmi_e_utilita.png - - - pagina varie - - varie.html - 7 - offline - varie/ - varie.png - - - diff --git a/src/js/matchmedia.js b/src/js/matchmedia.js deleted file mode 100755 index adce5ab..0000000 --- a/src/js/matchmedia.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ -window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.appendChild(g);return function(h){g.innerHTML='­';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document); \ No newline at end of file diff --git a/src/js/picturefill.js b/src/js/picturefill.js deleted file mode 100755 index 0ba0e78..0000000 --- a/src/js/picturefill.js +++ /dev/null @@ -1,61 +0,0 @@ -/*! Picturefill - Responsive Images that work today. (and mimic the proposed Picture element with span elements). Author: Scott Jehl, Filament Group, 2012 | License: MIT/GPLv2 */ - -(function( w ){ - - // Enable strict mode - "use strict"; - - w.picturefill = function() { - var ps = w.document.getElementsByTagName( "span" ); - - // Loop the pictures - for( var i = 0, il = ps.length; i < il; i++ ){ - if( ps[ i ].getAttribute( "data-picture" ) !== null ){ - - var sources = ps[ i ].getElementsByTagName( "span" ), - matches = []; - - // See if which sources match - for( var j = 0, jl = sources.length; j < jl; j++ ){ - var media = sources[ j ].getAttribute( "data-media" ); - // if there's no media specified, OR w.matchMedia is supported - if( !media || ( w.matchMedia && w.matchMedia( media ).matches ) ){ - matches.push( sources[ j ] ); - } - } - - // Find any existing img element in the picture element - var picImg = ps[ i ].getElementsByTagName( "img" )[ 0 ]; - - if( matches.length ){ - var matchedEl = matches.pop(); - if( !picImg ){ - picImg = w.document.createElement( "img" ); - picImg.alt = ps[ i ].getAttribute( "data-alt" ); - } - - picImg.src = matchedEl.getAttribute( "data-src" ); - matchedEl.appendChild( picImg ); - } - else if( picImg ){ - picImg.parentNode.removeChild( picImg ); - } - } - } - }; - - // Run on resize and domready (w.load as a fallback) - if( w.addEventListener ){ - w.addEventListener( "resize", w.picturefill, false ); - w.addEventListener( "DOMContentLoaded", function(){ - w.picturefill(); - // Run once only - w.removeEventListener( "load", w.picturefill, false ); - }, false ); - w.addEventListener( "load", w.picturefill, false ); - } - else if( w.attachEvent ){ - w.attachEvent( "onload", w.picturefill ); - } - -}( this )); \ No newline at end of file diff --git a/start.sh b/start.sh deleted file mode 100755 index b148e6f..0000000 --- a/start.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/bash - -echo "clean" -rm -rf output - -echo "copy resources" -mkdir -p output/img output/js -cp -rv src/js/ output/js/ - -echo "resize image" -elenco=$(ls ./src/img/) -for i in $elenco -do - if [ -d "./src/img/$i" ]; then - if [ ! -d "./output/img/$i" ]; then - mkdir ./output/img/$i - chmod 755 ./output/img/$i - fi - elenco_interno=$(ls ./src/img/$i) - for f in $elenco_interno - do - echo ./output/img/$i/$f; - - c=$(identify ./src/img/$i/$f | awk '{print $2;}' | grep PNG | wc -l) - if [ $c = 1 ]; then - pngcrush -fix ./src/img/$i/$f /tmp/$f - if [ "$i" == "menu" ]; then - echo "skip" - else - convert /tmp/$f -resize 400 ./output/img/$i/$f - fi - rm /tmp/$f - else - convert ./src/img/$i/$f -resize 200 ./output/img/$i/$(basename $f .jpg)_200.jpg - convert ./src/img/$i/$f -resize 400 ./output/img/$i/$(basename $f .jpg)_400.jpg - convert ./src/img/$i/$f -resize 800 ./output/img/$i/$(basename $f .jpg)_800.jpg - convert ./src/img/$i/$f -resize 1000 ./output/img/$i/$(basename $f .jpg)_1000.jpg - fi - - done - fi -done - -echo "prepare img dir" -mkdir -p src/img/{menu,rank} - -echo "copy menu" -cp -rv src/img/menu/* output/img/menu/ - -echo "copy rank" -cp -rv src/img/rank/* output/img/rank/ - -echo "Css Generation" -compass compile - -echo "Preparazione dati" -java -jar ./lib/saxon9he.jar -o output/commenti.xml src/fol_data.xml xslt/xml-process.xsl -java -jar ./lib/saxon9he.jar -o output/elenco_reparto.xml src/query_result.xml xslt/xml-elenco-reparto.xsl - -echo "Homepage" -java -jar ./lib/saxon9he.jar -o output/index.html src/homepage.xml xslt/homepage.xsl - -echo "Dati" -java -jar ./lib/saxon9he.jar -o output/dati.html src/dati.xml xslt/dati.xsl - -echo "Indice Fol" -java -jar ./lib/saxon9he.jar -o output/fol.html src/fol_data.xml xslt/fol_index.xsl - -echo "Singole Pagine delle immagini di Fol" -java -jar ./lib/saxon9he.jar -o output/fol/nonesiste.html output/commenti.xml xslt/fol-single-foto.xsl - -echo "Singole Pagine delle attivita'/tag di Fol" -java -jar ./lib/saxon9he.jar -o output/fol/nonesiste.html src/tag.xml xslt/fol-tags.xsl - -echo "Anagrafica Singole Sq" -java -jar ./lib/saxon9he.jar -o output/angoli/nonesiste.html output/elenco_reparto.xml xslt/reparto.xsl - -echo "Anagrafica Singoli" -java -jar ./lib/saxon9he.jar -o output/angoli/nonesiste.html output/elenco_reparto.xml xslt/reparto-single-page.xsl - -echo "Anagrafica Index" -cp src/angoli/index.html output/angoli/index.html - -echo "Programmi" -echo "Documenti" -echo "Varie" diff --git a/static/.eslintrc.json b/static/.eslintrc.json new file mode 100755 index 0000000..ca426c6 --- /dev/null +++ b/static/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "env": { + "es6": true + } +} \ No newline at end of file diff --git a/static/.gitignore b/static/.gitignore new file mode 100755 index 0000000..37efbce --- /dev/null +++ b/static/.gitignore @@ -0,0 +1,20 @@ +# files +*.pub +*.key +*.crt +*.pem +*.log +*.retry +npm-debug.log* +artillery_report_* + +# files exact match +.DS_Store + +# directory +OBIETTIVO +build +dist +node_modules +.vagrant +/src diff --git a/static/assets/.gitignore b/static/assets/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/static/assets/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/static/dati/.gitignore b/static/dati/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/static/dati/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/static/dvd/.gitignore b/static/dvd/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/static/dvd/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/static/index.js b/static/index.js new file mode 100644 index 0000000..9c85c49 --- /dev/null +++ b/static/index.js @@ -0,0 +1,219 @@ +// Base file config +const Home = require('./dvd/home/index.js'); +const Esercitazioni = require('./dvd/esercitazioni/index.js'); +const Angolisq = require('./dvd/angolisq/index.js'); +const Programmi = require('./dvd/programmi/index.js'); +const DocumentiGenerali = require('./dvd/documenti/index.js'); +const Varie = require('./dvd/varie/index.js'); +const DiarioFotografico = require('./dvd/diariofotografico/index.js'); +const Blog = require('./dvd/blog/index.js'); +const Logger = require('./lib/logger.js'); +const GeneratoreHTML = require('./lib/generatore.js'); +const path = require('path'); +const rimraf = require('rimraf'); + +require('fs-extra-debug') +const fs = require('fs-extra'); + +const shell = require('shelljs'); + +const materialeAngoliSq = fs.readJsonSync(path.join(__dirname, 'dati/materialeAngoliSq.json'), 'utf8'); +const materialeWorkshop = fs.readJsonSync(path.join(__dirname, 'dati/materialeWorkshop.json'), 'utf8'); +const materialeDocumentiGenerali = fs.readJsonSync(path.join(__dirname, 'dati/materialeDocumentiGenerali.json'), 'utf8'); +const materialeVarie = fs.readJsonSync(path.join(__dirname, 'dati/materialeVarie.json'), 'utf8'); +const materialeAltreAttivita = fs.readJsonSync(path.join(__dirname, 'dati/materialeAltreAttivita.json'), 'utf8'); +const squadriglie = fs.readJsonSync(path.join(__dirname, 'dati/squadriglie.json'), 'utf8'); +const categories = fs.readJsonSync(path.join(__dirname, 'dati/categorieDiarioFotografico.json'), 'utf8'); +const materialeDiarioFotografico = fs.readJsonSync(path.join(__dirname, 'dati/materialeDiarioFotografico.json'), 'utf8'); + +const authorizedExts = ['jpg', 'jpeg', 'svg', 'png', 'gif', 'JPG', 'JPEG', 'SVG', 'PNG', 'GIF']; + +var menu = [ + { + 'url': 'esercitazioni/index.html', + 'alt': 'Impresa' + }, + { + 'url': 'angolisq/index.html', + 'alt': 'Angoli di sq.' + }, + { + 'url': 'blog/index.html', + 'alt': 'Blog' + }, + { + 'url': 'diariofotografico/index.html', + 'alt': 'Diario fotografico' + }, + { + 'url': 'documenti/index.html', + 'alt': 'Documenti generali' + }, + { + 'url': 'programmi/index.html', + 'alt': 'Programmi ed utilità' + }, + { + 'url': 'varie/index.html', + 'alt': 'Varie' + } +]; + +var logger = new Logger(); + +var home = new Home(logger); +const missingHome = home.check(); +missingHome.forEach((currentValue, index, arr) => { + const responsabili = currentValue.responsabile.join(','); + logger.warn('missing: ' + currentValue.title + '! Responsabile [' + responsabili + ']'); +}); +home.clean(); +home.build(); + +var esercitazioni = new Esercitazioni(logger, materialeWorkshop, materialeAltreAttivita); +const missing = esercitazioni.check(); +missing.forEach((currentValue, index, arr) => { + if (currentValue.responsabile) { + const responsabili = currentValue.responsabile.join(','); + logger.warn('missing: '+currentValue.title+'! Responsabile ['+responsabili+']'); + } else { + logger.warn('missing: ' + currentValue.description + '!'); + } +}); + +var angolisq = new Angolisq(logger, squadriglie, materialeAngoliSq); +const missingAngoli = angolisq.check(); +missingAngoli.forEach((currentValue, index, arr) => { + const responsabili = currentValue.responsabile.join(','); + logger.warn('missing: ' + currentValue.title + '! Responsabile [' + responsabili + ']'); +}); +angolisq.clean(); +angolisq.build(); + +var programmi = new Programmi(logger); +angolisq.check(); + +var blog = new Blog(logger); +const missingBlog = blog.check(); +missingBlog.forEach((currentValue, index, arr) => { + const responsabili = currentValue.responsabile.join(','); + logger.warn('missing: ' + currentValue.title + '! Responsabile [' + responsabili + ']'); +}); + +var documentiGenerali = new DocumentiGenerali(logger, materialeDocumentiGenerali); +const missingDocumentiGenerali = documentiGenerali.check(); +missingDocumentiGenerali.forEach((currentValue, index, arr) => { + if (currentValue.responsabile) { + const responsabili = currentValue.responsabile.join(','); + logger.warn('missing: ' + currentValue.title + '! Responsabile [' + responsabili + ']'); + } else { + logger.warn('missing: ' + currentValue.description + '!'); + } +}); +documentiGenerali.build(); + +var varie = new Varie(logger, materialeVarie); +const missingVarie = varie.check(); +missingVarie.forEach((currentValue, index, arr) => { + if (currentValue.responsabile) { + const responsabili = currentValue.responsabile.join(','); + logger.warn('missing: ' + currentValue.title + '! Responsabile [' + responsabili + ']'); + } else { + logger.warn('missing: ' + currentValue.description + '!'); + } +}); + +var diariofotografico = new DiarioFotografico(logger, authorizedExts ,categories, materialeDiarioFotografico); +const missingDiario = diariofotografico.check(); +missingDiario.forEach((currentValue, index, arr) => { + if (currentValue.responsabile) { + const responsabili = currentValue.responsabile.join(','); + logger.warn('missing: ' + currentValue.title + '! Responsabile [' + responsabili + ']'); + } else { + logger.warn('missing: ' + currentValue.description + '!'); + } +}); + +diariofotografico.clean(); +diariofotografico.build(); + +logger.info('PrepareResources', 'prepare config'); + +const outputdir = path.join(__dirname, 'build'); + +var config = { + title: 'Bit Prepared', + description: 'Campo di Competenza Informatica e Tecniche Scout', + url: './', + src: path.join(__dirname, 'src'), + output: outputdir, + layouts: path.join(__dirname, 'layouts'), + partials: path.join(__dirname, 'partials'), + assets: path.join(__dirname, 'assets'), + menu: menu, + squadriglie: squadriglie, + esercitazioni: esercitazioni.templateVar(), + fotosrc: path.join(outputdir, 'diariofotografico/foto'), + categories: categories, + authorizedExts: authorizedExts +} + +logger.info('PrepareResources', 'prepare directory'); + +rimraf.sync(config.src); +rimraf.sync(config.output); +fs.ensureDirSync(config.src); + +function prepareResources(logger, title, src, dest) { + logger.info('PrepareResources', title); + try { + fs.ensureDirSync(dest); + fs.copySync(src, dest); + logger.success(title + " completata!"); + } catch (err) { + logger.error(title + " fallita!"); + console.error(err); + } +} + +prepareResources(logger, 'copy assets css', './assets/css', path.join(config.output, 'css')); + +prepareResources(logger, 'copy first page src', home.src(), config.src); + +prepareResources(logger, 'copy esercitazioni src', esercitazioni.src(), path.join(config.src, 'esercitazioni')); + +prepareResources(logger, 'copy esercitazioni materiale', esercitazioni.srcAssets(), path.join(config.output, 'esercitazioni')); + +prepareResources(logger, 'copy angoli src', angolisq.src(), path.join(config.src, 'angolisq')); + +// FIXME: non copia la thumb della foto di gruppo +prepareResources(logger, 'copy angoli materiale', angolisq.srcAssets(), path.join(config.output, 'angolisq')); + +prepareResources(logger, 'copy programmi src', programmi.src(), path.join(config.src, 'programmi')); + +prepareResources(logger, 'copy documenti generali src', documentiGenerali.src(), path.join(config.src, 'documenti')); + +// FIXME: il filename del ricordo campo non é preso dal json +prepareResources(logger, 'copy documenti generali materiale', documentiGenerali.srcAssets(), path.join(config.output, 'documenti')); + +prepareResources(logger, 'copy varie src', varie.src(), path.join(config.src, 'varie')); + +prepareResources(logger, 'copy varie materiale', varie.srcAssets(), path.join(config.output, 'varie')); + +prepareResources(logger, 'copy diario fotografico src', diariofotografico.src(), path.join(config.src, 'diariofotografico')); + +prepareResources(logger, 'copy diario fotografico materiale', diariofotografico.srcAssets(), path.join(config.output, 'diariofotografico')); + +prepareResources(logger, 'copy blog materiale', blog.srcAssets(), path.join(config.output, 'blog')); + +var generatore = new GeneratoreHTML(logger); + +generatore.genera(config); + +// logger.info(''); +// logger.info(' ------------- '); +// logger.info(' test logging '); +// logger.info(' ------------- '); +// logger.info(''); +// +// logger.test(); \ No newline at end of file diff --git a/static/layouts/base.html b/static/layouts/base.html new file mode 100755 index 0000000..35fd18b --- /dev/null +++ b/static/layouts/base.html @@ -0,0 +1,26 @@ + + + + + + HOME ::: {{title}} {{subtitle}} + + + + + + + + + + +
    + {{> menu }} + +
    + {{{ contents }}} +
    +
    + + + \ No newline at end of file diff --git a/static/layouts/example/full-toc.html b/static/layouts/example/full-toc.html new file mode 100755 index 0000000..a993ab6 --- /dev/null +++ b/static/layouts/example/full-toc.html @@ -0,0 +1,92 @@ + + + + {{> common-meta }} + + {{ title }} - Kuzzle Documentation + + + + + + + + + + + + + +{{> header }} + + + + + +
    + {{> nav-left-toc }} + +
    +
    +
    + {{> nav-members }} + +
    + {{{ contents }}} +
    +
    + + {{> disqus }} + + {{> nav-members-bottom }} +
    +
    +
    + + + + diff --git a/static/layouts/example/layout.html b/static/layouts/example/layout.html new file mode 100755 index 0000000..19e7e13 --- /dev/null +++ b/static/layouts/example/layout.html @@ -0,0 +1,22 @@ + + + + {{> common-meta }} + + {{ title }} + + + + {{> header }} + +

    {{ title }}

    +

    {{ description }}

    + + {{{ contents }}} + +
    +

    Generated with {{ generator }} — {{ url }}

    +
    + + + diff --git a/static/layouts/example/post.html b/static/layouts/example/post.html new file mode 100755 index 0000000..41bfe15 --- /dev/null +++ b/static/layouts/example/post.html @@ -0,0 +1,27 @@ + + + + + {{ title }} + + + + {{> header }} + +

    {{ title }}

    + + {{{ contents }}} + + {{#if ancestry.prevMember includeZero=true}} + Prev + {{/if}} + + {{#if ancestry.nextMember includeZero=true}} + Next + {{/if}} + +
    +

    Generated with {{ generator }} — {{ url }}

    +
    + + diff --git a/static/lib/.gitignore b/static/lib/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/static/lib/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/static/package.json b/static/package.json new file mode 100644 index 0000000..7cd3c03 --- /dev/null +++ b/static/package.json @@ -0,0 +1,68 @@ +{ + "name": "dvdworkflow", + "version": "1.0.0", + "description": "sistema per la creazione del dvd/usb standalone del campo di competenza bit prepared", + "main": "index.js", + "scripts": { + "build": "npm-run-all --silent --parallel check build:favicon build:html", + "build:html": "node index.js", + "build:favicon": "echo \"fav\"", + "check": "echo \"check\"", + "debug": "DEBUG=metalsmith* node index.js", + "start": "npm-run-all --silent check build", + "clean": "npm-run-all --silent --parallel clean:build clean:dist", + "clean:build": "rimraf ./build ./src", + "clean:dist": "rimraf ./dist", + "dist": "echo \"dist\"", + "open-mac": "opener file://dist/index.html", + "open-linux": "xdg-open file://dist/index.html" + }, + "dependencies": { + "chalk": "^2.1.0", + "co": "^4.6.0", + "co-prompt": "^1.0.0", + "directory-tree": "^2.0.0", + "fs-extra": "^11.1.1", + "fs-extra-debug": "^1.0.4", + "gm": "^1.23.1", + "handlebars": "^4.0.10", + "handlebars-helpers": "^0.9.7", + "handlebars-intl": "^1.1.2", + "metalsmith": "^2.3.0", + "metalsmith-ancestry": "^1.3.0", + "metalsmith-asciidoc": "^1.1.0", + "metalsmith-assets": "^0.1.0", + "metalsmith-handlebars": "^1.0.0", + "metalsmith-hbt-md": "^1.0.1", + "metalsmith-layouts": "^1.8.1", + "metalsmith-layouts-by-name": "^0.1.4", + "metalsmith-markdown": "^0.2.1", + "metalsmith-permalinks": "^0.5.0", + "metalsmith-relative-links": "^1.2.0", + "metalsmith-renamer": "^0.3.0", + "metalsmith-rootpath": "^1.0.4", + "mkdirp": "^3.0.1", + "moment": "^2.18.1", + "node-emoji": "^1.5.1", + "npm-run-all": "^4.0.2", + "opener": "^1.4.3", + "process-env": "^1.1.0", + "rimraf": "^2.6.1", + "shelljs": "^0.7.8" + }, + "engines": { + "node": "18.x", + "npm": "8.x" + }, + "keywords": [], + "author": "Bit Prepared", + "repository": { + "type": "git", + "url": "https://github.com/BitPrepared/static-dvd-site-generator.git" + }, + "bugs": { + "url": "https://github.com/BitPrepared/static-dvd-site-generator/issues" + }, + "homepage": "https://github.com/BitPrepared/static-dvd-site-generator", + "license": "GPL-3.0" +} diff --git a/static/partials/common-meta.html b/static/partials/common-meta.html new file mode 100755 index 0000000..5183618 --- /dev/null +++ b/static/partials/common-meta.html @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/partials/header.html b/static/partials/header.html new file mode 100755 index 0000000..cd06813 --- /dev/null +++ b/static/partials/header.html @@ -0,0 +1,19 @@ +
    + +
    + + + +
    + +
    diff --git a/static/partials/menu.html b/static/partials/menu.html new file mode 100755 index 0000000..ee2ca39 --- /dev/null +++ b/static/partials/menu.html @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/xslt/dati.xsl b/xslt/dati.xsl deleted file mode 100644 index 45e5dc5..0000000 --- a/xslt/dati.xsl +++ /dev/null @@ -1,544 +0,0 @@ - - - - - -]> - - - - - - - - - ../dati/esercitazioni/ - ../programmi/ - - - - - - - - <xsl:value-of select="dati/title"/> - ::: - <xsl:value-of select="document('../src/impostazioni.xml')/impostazioni/nome"/> - ::: - <xsl:value-of select="document('../src/impostazioni.xml')/impostazioni/anno"/> - - - - - - - - -
    - -
    - -
    - - - - - -
    -
    -
    - - - - - - - -
    -

    Esercitazioni e Programmi -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - NON È PRESENTE ANCORA NESSUNA ATTIVITÀ, TORNA QUANDO AVRAI FATTO QUALCOSA. - -
    - ATTIVITÀ - - - - - DATI - - - - - - PROGRAMMI - - - - - - INFORMAZIONI - - -
    - - - - - -
      - -
    • - - - - - -   - odt - | - Pdf - -
    • -
      - -
    - -
    - - -

    - - - -

    -
    - - - - - - - - - - -
      - -
    • - - -   - Dwg - | - Pdf - -
    • -
      -
    -
    -
    - - -

    - - - -

    -
    - - - - - -   - - -

    - - - -

    -
    - - - - - -   - - -

    - - - -

    -
    - - - - - -   - - -

    - - - -

    -
    - - - - - -   -
      - -
    • - - -   - - - - -
    • -
      - -
    -
    -

    - - - -

    -
    - - - - - - -
      - - -
    • - - sq - -   - Finale - | - PRB - -
    • -
      - -
    -

    - PERCORSI RILEVATI CON GPS-LOGGER -

    - -
    - - - -

    - - - -

    -
    - - - - - -   - - -

    - - - -

    -
    - - - - - -   - - -

    - - - -

    -
    - - - - - -   - - -

    - - - -

    -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    - -
    - -