Bug 12233: Remove the prog and ccsr themes files
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
|
|
@ -1,152 +0,0 @@
|
|||
/* ## BABELTHEQUE ## */
|
||||
/* Babeltheque is a french supplier for advanced features
|
||||
this babeltheque.css is not used anywhere by Koha, it's not a mistake
|
||||
If you're babeltheque customer, you have access to a specific configuration URL
|
||||
on babeltheque website, where you can activate this css
|
||||
So: it should not be removed from Koha !
|
||||
*/
|
||||
|
||||
#BW_etiquettes {
|
||||
clear :left;
|
||||
border: 1px solid #E8E8E8;
|
||||
margin-top: 10px;
|
||||
width: 49%;
|
||||
float: left;
|
||||
visibility: hidden;
|
||||
visibility: visible\9;
|
||||
}
|
||||
#BW_etiquettes:not(:empty) {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#BW_etiquettes h2 {
|
||||
clear:left;
|
||||
background-color: #E8E8E8;
|
||||
margin: 5px 10px;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#BW_ulEti {max-width:100%;}
|
||||
|
||||
#BW_ulEti ul {
|
||||
margin:0;
|
||||
padding:0 15px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#BW_ulEti a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#BW_ulEti a.tag_s0 {font-weight: 120;font-size:0.8em;}
|
||||
#BW_ulEti a.tag_s1 {font-weight: 150;font-size:0.9em;}
|
||||
#BW_ulEti a.tag_s2 {font-weight: 180;font-size:1.0em;}
|
||||
#BW_ulEti a.tag_s3 {font-weight: 200;font-size:1.2em;}
|
||||
#BW_ulEti a.tag_s4 {font-weight: 220;font-size:1.4em;}
|
||||
#BW_ulEti a.tag_s5 {font-weight: 230;font-size:1.5em;}
|
||||
#BW_ulEti a.tag_s6 {font-weight: 320;font-size:1.6em;}
|
||||
#BW_ulEti a.tag_s7 {font-weight: 350;font-size:1.7em;}
|
||||
#BW_ulEti a.tag_s8 {font-weight: 400;font-size:1.8em;}
|
||||
#BW_ulEti { padding: 0px; line-height: 2em; text-align: center;}
|
||||
#BW_ulEti a { padding: 2px; }
|
||||
#BW_ulEti { margin: 0px; }
|
||||
|
||||
#BW_ulEti ol {
|
||||
float:left;
|
||||
display: inline;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
#BW_suggestions {
|
||||
border: 1px solid #E8E8E8;
|
||||
margin-top: 10px;
|
||||
float: right;
|
||||
width: 49%;
|
||||
visibility: hidden;
|
||||
visibility: visible\9;
|
||||
}
|
||||
#BW_suggestions:not(:empty) {
|
||||
visibility: visible;
|
||||
}
|
||||
#BW_suggestions h2 {
|
||||
background-color: #E8E8E8;
|
||||
margin: 5px 10px;
|
||||
padding: 0 5px;
|
||||
}
|
||||
#BW_suggestions .BW_livres_tag_page {
|
||||
padding: 0 15px;
|
||||
}
|
||||
#BW_suggestions .BW_livres_tag_page:before {
|
||||
content : '> ';
|
||||
}
|
||||
#BW_droite .BW_livres_tag:before {
|
||||
content : '> ';
|
||||
}
|
||||
|
||||
#BW_videos {
|
||||
clear : both;
|
||||
border: 1px solid #E8E8E8;
|
||||
padding-bottom: 140px;
|
||||
margin-top: 10px;
|
||||
max-width: 100%;
|
||||
visibility: hidden;
|
||||
visibility: visible\9;
|
||||
}
|
||||
|
||||
#BW_videos:not(:empty) {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#BW_videos h2 {
|
||||
background-color: #E8E8E8;
|
||||
margin: 5px 10px;
|
||||
padding: 0 5px;
|
||||
}
|
||||
#BW_videos .BW_bloc_vid {
|
||||
clear: both;
|
||||
padding: 0 15px;
|
||||
}
|
||||
.BW_vignette_vid {
|
||||
border: 1px solid #DFD9CE;
|
||||
float: left;
|
||||
height: 141px;
|
||||
margin: 5px;
|
||||
min-height: 141px;
|
||||
padding: 5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#BW_notes {clear :left;}
|
||||
#BW_notes h2 {font-size:85%;}
|
||||
|
||||
#BW_citations {}
|
||||
#BW_citations h2 {font-size:85%;}
|
||||
|
||||
#BW_critiques {}
|
||||
#BW_critiques h2 {font-size:85%;}
|
||||
|
||||
#BW_critiques_pro {}
|
||||
#BW_critiques_pro h2 {font-size:85%;}
|
||||
|
||||
#BW_citations,#BW_critiques,#BW_critiques_pro {
|
||||
background: -moz-linear-gradient(center top , #3399FF, #3333FF) repeat scroll 0 0 transparent;
|
||||
background: -webkit-gradient(linear, center top, center bottom, from(#3399FF), to(#3333FF));
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3399FF', endColorstr='#3333FF');
|
||||
border: 1px solid #B7B7B7;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
color: #FFFFCC;
|
||||
display: inline-block;
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
margin: 15px 20px 15px 0;
|
||||
min-width: 150px;
|
||||
padding: 0 15px 8px;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
text-shadow: 1px 1px 1px #777777;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#BW_citations a,#BW_critiques a,#BW_critiques_pro a {
|
||||
color: #FFFFCC;
|
||||
}
|
||||
|
|
@ -1,751 +0,0 @@
|
|||
/* ================================
|
||||
* !Main
|
||||
* ================================*/
|
||||
|
||||
div.clear {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
body {
|
||||
min-width:1000px;
|
||||
font-family: "Lucida Grande", Arial;
|
||||
padding:0;
|
||||
background-color : #eaeae6;
|
||||
}
|
||||
|
||||
body.popup {
|
||||
min-width: 100px;
|
||||
padding : 1em;
|
||||
}
|
||||
|
||||
#container {
|
||||
background: #fff;
|
||||
border:1px solid #d2d2cf;
|
||||
-webkit-border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
border-radius: 8px;
|
||||
margin:0 20px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
a:link,
|
||||
a:visited {
|
||||
color: #007fae;
|
||||
}
|
||||
a:hover {
|
||||
color: #00a5e2;
|
||||
}
|
||||
|
||||
#container #ctn_lt {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
#opacnav {
|
||||
width:240px;
|
||||
}
|
||||
|
||||
#opacmainuserblock, #news {
|
||||
margin-left:7em;
|
||||
}
|
||||
|
||||
/* ================================
|
||||
* !Header
|
||||
* ================================*/
|
||||
|
||||
#header-wrapper {
|
||||
background: none;
|
||||
}
|
||||
|
||||
#opac-main-search {
|
||||
background: none;
|
||||
border: none;
|
||||
display: table;
|
||||
padding: 0.7em 0 0 0.5em;
|
||||
width: 100%;
|
||||
}
|
||||
*:first-child+html #opac-main-search {
|
||||
display: block;
|
||||
}
|
||||
#opac-main-search a.logo {
|
||||
display: table-cell;
|
||||
padding: 8px 0 0 13px;
|
||||
vertical-align: top;
|
||||
width: 145px;
|
||||
}
|
||||
|
||||
#opac-main-search #fluid {
|
||||
display: table-cell;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#opac-main-search div#libraryname {
|
||||
display: table-cell;
|
||||
float: none;
|
||||
vertical-align: top;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
padding: 0 11px 17px;
|
||||
width: 128px;
|
||||
}
|
||||
|
||||
/* IE 7 Hack */
|
||||
*:first-child+html #opac-main-search a.logo,
|
||||
*:first-child+html #opac-main-search #fluid,
|
||||
*:first-child+html #opac-main-search div#libraryname {
|
||||
display: block;
|
||||
float: left;
|
||||
height: 100px;
|
||||
}
|
||||
*:first-child+html #opac-main-search #fluid {
|
||||
width: 800px;
|
||||
}
|
||||
#opac-main-search div#libraryname h1 {
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
display: block;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
}
|
||||
#opac-main-search div#libraryname h1 img {
|
||||
display: block;
|
||||
margin: 0 0 7px;
|
||||
max-height: 80px;
|
||||
}
|
||||
|
||||
#opac-main-search div#libraryname span#official-website {
|
||||
background: url("../../images/arrow-right-grey-logo.png") no-repeat scroll 0 50%;
|
||||
font: 11px/14px Arial;
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
#opac-main-search div#libraryname span#official-website a {
|
||||
color: #696965;
|
||||
text-decoration: none;
|
||||
}
|
||||
#opac-main-search div#libraryname span#official-website a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
/* search form */
|
||||
|
||||
form#searchform {
|
||||
background: #a7a7a2 url("../../images/bg-search-bar.png") repeat-x scroll 0 0;
|
||||
-webkit-border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
border-radius: 8px;
|
||||
display: block;
|
||||
padding: 12px 10px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
form#searchform label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
form.single-library .input-wrapper {
|
||||
margin: 0 237px 0 0;
|
||||
}
|
||||
form.multi-libraries .input-wrapper {
|
||||
margin: 0 416px 0 0;
|
||||
}
|
||||
form#searchform .input-wrapper input[type="text"] {
|
||||
background: #fff;
|
||||
border: 1px solid #A0A09A;
|
||||
-webkit-border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
border-radius: 8px;
|
||||
color: #868684;
|
||||
font-size: 12px !important;
|
||||
padding: 8px 8px 9px;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
form#searchform select {
|
||||
left: -9999em;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
form.multi-libraries #filters .jqTransformSelectWrapper {
|
||||
position: absolute;
|
||||
right: 229px;
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
form.single-library #filters .jqTransformSelectWrapper,
|
||||
form.multi-libraries #libraries .jqTransformSelectWrapper {
|
||||
position: absolute;
|
||||
right: 50px;
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
form#searchform input[type="submit"] {
|
||||
background: #619bb5 url("../../images/btn-search-bar.png") no-repeat 50% 50%;
|
||||
border: 1px solid #adadaa;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 0;
|
||||
font-weight: normal;
|
||||
height: 33px;
|
||||
margin-left: 4px;
|
||||
margin-top: 0;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 12px;
|
||||
width: 34px;
|
||||
}
|
||||
|
||||
#moresearches {
|
||||
margin: 7px 10px 0;
|
||||
}
|
||||
#moresearches a:link,
|
||||
#moresearches a:visited {
|
||||
background: url("../../images/arrow-right-grey-11x6.png") no-repeat scroll left center transparent;
|
||||
color: #007fae;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
margin-right: 12px;
|
||||
padding-left: 12px;
|
||||
text-decoration: none;
|
||||
}
|
||||
#moresearches a:hover {
|
||||
color: #00a5e2;
|
||||
}
|
||||
|
||||
#moresearches span.pipe {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.transparent {
|
||||
zoom: 1;
|
||||
filter: alpha(opacity=50);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
div#top-bar {
|
||||
z-index: 9999999;
|
||||
position: fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 29px;
|
||||
background: #454543 url("../../images/img_bg_header.png") repeat-x 0 0;
|
||||
}
|
||||
|
||||
|
||||
ul#menu-left {
|
||||
margin: 0 0 0 30px;
|
||||
padding: 0;
|
||||
display: block;
|
||||
float: left;
|
||||
width: auto;
|
||||
height: 29px;
|
||||
}
|
||||
ul#menu-left li {
|
||||
margin: 0;
|
||||
padding: 0 8px 0 10px;
|
||||
float: left;
|
||||
height: 29px;
|
||||
list-style-type: none;
|
||||
background: url("../../images/img_sep_header.png") no-repeat left top;
|
||||
}
|
||||
ul#menu-left li#listsmenulink {
|
||||
padding: 1px 0 0 12px;
|
||||
border: none;
|
||||
}
|
||||
ul#menu-left #listsmenulink:hover {
|
||||
background: url("../../images/img_sep_header.png") no-repeat left top !important;
|
||||
}
|
||||
ul#menu-left li a#cartmenulink,
|
||||
ul#menu-left li#listsmenulink a {
|
||||
margin: 2px 0 0 0;
|
||||
color: #9EE1FF;
|
||||
font-family: Arial;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
}
|
||||
ul#menu-left li a#cartmenulink:hover,
|
||||
ul#menu-left li#listsmenulink a:hover {
|
||||
color: #9EE1FF;
|
||||
}
|
||||
|
||||
ul#menu-left li#listsmenulink a {
|
||||
padding: 2px 0 0;
|
||||
}
|
||||
|
||||
ul#menu-left li a#cartmenulink span,
|
||||
ul#menu-left li#listsmenulink a span {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
ul#menu-left li a#cartmenulink span#basketcount {
|
||||
margin: 0 0 0 5px;
|
||||
padding: 0;
|
||||
background: none;
|
||||
}
|
||||
ul#menu-left li a#cartmenulink span img,
|
||||
ul#menu-left li#listsmenulink a span img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul#menu-left li a#cartmenulink {
|
||||
padding: 0 0 0 30px;
|
||||
background: url("../../images/img_toolbar-button-cart.png") no-repeat left center;
|
||||
}
|
||||
ul#menu-left li#listsmenulink a {
|
||||
padding: 0 0 0 20px;
|
||||
background: url("../../images/img_toolbar-button-lists.png") no-repeat left center;
|
||||
}
|
||||
|
||||
div#cartDetails,
|
||||
div#listsmenu {
|
||||
z-index: 9999999;
|
||||
top: 29px !important;
|
||||
margin: 0;
|
||||
padding: 10px !important;
|
||||
background: #649EB8;
|
||||
border-left: 1px solid #A0A09A !important;
|
||||
border-right: 1px solid #A0A09A !important;
|
||||
border-bottom: 1px solid #A0A09A !important;
|
||||
-webkit-border-radius: 0 0 7px 7px;
|
||||
-moz-border-radius: 0 0 7px 7px;
|
||||
border-radius: 0 0 7px 7px;
|
||||
}
|
||||
div#cartDetails {
|
||||
margin-left: -9px;
|
||||
}
|
||||
|
||||
|
||||
#members {
|
||||
background: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: right;
|
||||
}
|
||||
#members ul {
|
||||
margin: 0;
|
||||
margin-right: 20px;
|
||||
float: right;
|
||||
}
|
||||
#members li {
|
||||
background: none;
|
||||
margin:0;
|
||||
float: left;
|
||||
border-right: none;
|
||||
}
|
||||
#members ul li a {
|
||||
background: url("../../images/img_sep_header.png") no-repeat scroll right top transparent;
|
||||
color: #9EE1FF;
|
||||
display: block;
|
||||
font-family: Arial;
|
||||
font-size: 13px;
|
||||
height: 22px;
|
||||
padding: 7px 14px 0 3px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#members li span.members {
|
||||
color:#fff;
|
||||
padding:7px 14px 0 9px;
|
||||
float: left;
|
||||
background: url(../../images/img_sep_header.png) no-repeat right top;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
#members li span.members a {
|
||||
display:inline;
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#members li a {
|
||||
padding:7px 14px 0 9px;
|
||||
}
|
||||
|
||||
#members li a.logout {
|
||||
color:#ff825b;
|
||||
font-weight: normal;
|
||||
padding:7px 14px 0 9px;
|
||||
}
|
||||
|
||||
div#listsmenu {
|
||||
margin-left: 1px;
|
||||
}
|
||||
div#listsmenu h4 {
|
||||
margin: 0 !important;
|
||||
color: #fff;
|
||||
}
|
||||
div#listsmenu ul li {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
height: auto !important;
|
||||
background: none !important;
|
||||
}
|
||||
div#listsmenu ul li {
|
||||
float: none !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
list-style-type: none !important;
|
||||
background: none !important;
|
||||
}
|
||||
div#listsmenu a {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
color: #fff !important;
|
||||
font-weight: normal !important;
|
||||
text-decoration: none;
|
||||
background: none !important;
|
||||
}
|
||||
div#listsmenu a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#cartDetails,#cartUpdate,#holdDetails,#listsDetails {
|
||||
background-color : #FFF;
|
||||
border: 1px solid #739acf;
|
||||
color : #fff;
|
||||
display : none;
|
||||
margin : 0;
|
||||
padding : 10px;
|
||||
text-align : center;
|
||||
width : 180px;
|
||||
box-shadow: 1px 1px 3px #666;
|
||||
-moz-box-shadow: 1px 1px 3px #666;
|
||||
-webkit-box-shadow: 1px 1px 3px #666;
|
||||
|
||||
}
|
||||
|
||||
#cartmenulink, #listsmenulink {
|
||||
display : block;
|
||||
position : relative;
|
||||
background : #aaa;
|
||||
padding : 5px;
|
||||
float : left;
|
||||
color : #333;
|
||||
text-decoration : none;
|
||||
cursor : pointer;
|
||||
}
|
||||
|
||||
#cartmenulink {
|
||||
background : #98CB58;
|
||||
color : #336600;
|
||||
font-size : 105%;
|
||||
}
|
||||
|
||||
#cartmenulink[class], #listsmenulink[class] {
|
||||
background-image : ;
|
||||
background-position : ;
|
||||
}
|
||||
|
||||
#cartmenulink span, #listsmenulink span {
|
||||
padding : 0 0 5px 10px;
|
||||
background-position:;
|
||||
left:;
|
||||
margin-bottom:;
|
||||
}
|
||||
|
||||
#cartmenulink *, #listsmenulink * {
|
||||
background-image : none;
|
||||
}
|
||||
|
||||
#cartmenulink span#basketcount span {
|
||||
color:#fff;
|
||||
margin:0 0 0 5px;
|
||||
padding:0;
|
||||
background:none;
|
||||
font-size:15px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
|
||||
/* ================================
|
||||
* !jQtransform
|
||||
* ================================*/
|
||||
|
||||
.jqTransformSelectWrapper {
|
||||
background: none repeat scroll 0 0 #FFFFFF;
|
||||
border: 1px solid #A0A09A;
|
||||
border-radius: 8px 8px 8px 8px;
|
||||
color: #252525;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 13px;
|
||||
float: left;
|
||||
margin-left: 5px;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
width: 171px !important;
|
||||
}
|
||||
.jqTransformSelectWrapper div {
|
||||
height: 19px;
|
||||
padding: 9px 5px 4px;
|
||||
text-indent: 4px;
|
||||
}
|
||||
.jqTransformSelectWrapper div span {
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper div a {
|
||||
background: url("../../images/img_select-puce.png") no-repeat scroll 0 50% transparent;
|
||||
display: block;
|
||||
height: 26px;
|
||||
outline: medium none;
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
top: 3px;
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper ul {
|
||||
background: none repeat scroll 0 0 #FFFFFF;
|
||||
border: 1px solid #A0A09A;
|
||||
-webkit-border-radius: 7px;
|
||||
-moz-border-radius: 7px;
|
||||
border-radius: 7px;
|
||||
height: auto !important;
|
||||
padding: 5px 0 !important;
|
||||
position: absolute;
|
||||
width: 100% !important;
|
||||
}
|
||||
.jqTransformSelectWrapper ul li {
|
||||
background: none repeat scroll 0 0 transparent !important;
|
||||
list-style: none outside none !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 5px !important;
|
||||
}
|
||||
.jqTransformSelectWrapper ul li a {
|
||||
color: #252525 !important;
|
||||
display: block;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 13px;
|
||||
font-weight: normal;
|
||||
padding-left: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.jqTransformSelectWrapper ul li a:hover {
|
||||
background: none repeat scroll 0 0 #F5F5F4;
|
||||
}
|
||||
|
||||
|
||||
/* ================================
|
||||
* !Footer
|
||||
* ================================*/
|
||||
|
||||
#main_footer {
|
||||
padding:0 30px;
|
||||
font-family:"Lucida Grande", Arial;
|
||||
margin-bottom: 65px;
|
||||
}
|
||||
|
||||
#main_footer .colleft {
|
||||
float:left;
|
||||
margin-top:8px;
|
||||
}
|
||||
|
||||
#main_footer .colleft ul {
|
||||
padding:0;
|
||||
}
|
||||
|
||||
#main_footer .colleft li {
|
||||
display:inline;
|
||||
list-style:none;
|
||||
}
|
||||
|
||||
#main_footer .colleft li.first {
|
||||
background:url(../../images/img_sep_footer.png) no-repeat right top;
|
||||
padding-right: 8px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#main_footer .colleft li a {
|
||||
color:#4f91b0;
|
||||
text-decoration:none;
|
||||
font-size:14px;
|
||||
font-weight: normal;
|
||||
}
|
||||
#main_footer .colleft li a:hover {
|
||||
color:#00a5e2;
|
||||
}
|
||||
|
||||
#main_footer .colleft .copy {
|
||||
font-size:12px;
|
||||
color:#5f5f5f;
|
||||
margin-top:10px;
|
||||
}
|
||||
|
||||
#main_footer .colright {
|
||||
float:right;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#main_footer .colright .koha {
|
||||
float:left;
|
||||
background: url(../../images/img_logo_koha.jpg) no-repeat bottom right;
|
||||
width: 168px;
|
||||
height: 40px;
|
||||
}
|
||||
#main_footer .colright .koha a {
|
||||
display:block;
|
||||
padding:0;
|
||||
width: 168px;
|
||||
height: 40px;
|
||||
color:#5f5f5f;
|
||||
text-decoration: none;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
div#changelanguage {
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
|
||||
|
||||
/* ================================
|
||||
* !Page : Search results
|
||||
* ================================*/
|
||||
|
||||
/* breacrumbs */
|
||||
|
||||
body#results #breadcrumbs {
|
||||
margin: -1px 0 17px 2px;
|
||||
padding: 0;
|
||||
}
|
||||
body#results #breadcrumbs p {
|
||||
font: normal 11px/11px Arial;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body#results #breadcrumbs p a {
|
||||
color: #007fae;
|
||||
display: inline;
|
||||
text-decoration: none;
|
||||
}
|
||||
body#results #breadcrumbs p a:hover {
|
||||
color: #00a5e2;
|
||||
}
|
||||
|
||||
body#results #breadcrumbs p a img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
body#results #breadcrumbs p .rsaquo {
|
||||
color: #8d8d89;
|
||||
font-size: 20px;
|
||||
line-height: 11px;
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
/* IE7 Hack */
|
||||
*:first-child+html body#results #breadcrumbs p span {
|
||||
display: inline;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
body#results #breadcrumbs p strong {
|
||||
color: #5f5f5f;
|
||||
}
|
||||
|
||||
.nb_results {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* search-facets */
|
||||
|
||||
body#results #search-facets {
|
||||
border: none;
|
||||
}
|
||||
body#results #search-facets h4 {
|
||||
background: none;
|
||||
border-bottom: 1px solid #E8E8E8;
|
||||
font-size: 90%;
|
||||
margin: 0 9px 10px 0;
|
||||
padding: 13px 0 7px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
body#results #search-facets a {
|
||||
color: #007fae;
|
||||
}
|
||||
body#results #search-facets a:hover {
|
||||
color: #00a5e2;
|
||||
}
|
||||
|
||||
|
||||
/* userresults */
|
||||
|
||||
body#results div#userresults {
|
||||
border-left: 1px solid #c8c8c4;
|
||||
padding: 0 20px 0;
|
||||
}
|
||||
|
||||
|
||||
/* searchresults */
|
||||
|
||||
body#results tr {
|
||||
border: none;
|
||||
}
|
||||
body#results tr td {
|
||||
background: #fff url("../../images/bg-result-light.png") repeat-x 0 0;
|
||||
border-top: 1px solid #c8c8c4;
|
||||
border-bottom: none;
|
||||
height: 115px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
body#results .searchresults td.resultscontrol {
|
||||
background: #ddddda url("../../images/bg-results-control.png") repeat-x 0 100%;
|
||||
-moz-border-radius-topleft: 6px;
|
||||
-moz-border-radius-topright: 6px;
|
||||
-moz-border-radius-bottomright: 0px;
|
||||
-moz-border-radius-bottomleft: 0px;
|
||||
-webkit-border-radius: 6px 6px 0px 0px;
|
||||
border-radius: 6px 6px 0px 0px;
|
||||
border: none;
|
||||
border-bottom: 1px solid #b0b0ae;
|
||||
padding: 2px 7px 6px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
||||
/* Navigation */
|
||||
|
||||
body#results a.nav:link, div.pages a:link {
|
||||
background-color: #EEEEEE;
|
||||
border: 1px solid #CCCC99;
|
||||
color: #007FAE;
|
||||
font-weight: bold;
|
||||
padding: 1px 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
body#results a.nav:hover, div.pages a:hover {
|
||||
color: #00A5E2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ================================
|
||||
* !Page : Opac detail
|
||||
* ================================*/
|
||||
|
||||
body#opac-detail .nav_results ul.pg_menu {
|
||||
display: table;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
body#opac-detail .nav_results ul.pg_menu li {
|
||||
display: table-cell;
|
||||
float: none;
|
||||
}
|
||||
|
|
@ -1,265 +0,0 @@
|
|||
input.search_init {
|
||||
color: #999999;
|
||||
}
|
||||
.sorting_asc {
|
||||
padding-right: 19px;
|
||||
background: url("../../img/asc.gif") no-repeat scroll right center #EEEEEE;
|
||||
}
|
||||
.sorting_desc {
|
||||
padding-right: 19px;
|
||||
background: url("../../img/desc.gif") no-repeat scroll right center #EEEEEE;
|
||||
}
|
||||
.sorting {
|
||||
padding-right: 19px;
|
||||
background: url("../../img/ascdesc.gif") no-repeat scroll right center #EEEEEE;
|
||||
}
|
||||
.sorting_asc_disabled {
|
||||
padding-right: 19px;
|
||||
background: url("../../img/datatables/sort_asc_disabled.png") no-repeat scroll right center #EEEEEE;
|
||||
}
|
||||
.sorting_desc_disabled {
|
||||
padding-right: 19px;
|
||||
background: url("../../img/datatables/sort_desc_disabled.png") no-repeat scroll right center #EEEEEE;
|
||||
}
|
||||
.sorting_disabled {
|
||||
padding-right: 19px;
|
||||
background-color: #EEEEEE;
|
||||
}
|
||||
|
||||
div.top {clear : both; }
|
||||
|
||||
div.top.pager,
|
||||
div.bottom.pager {
|
||||
background-color : #E5E5E5;
|
||||
padding : 0;
|
||||
}
|
||||
|
||||
div.bottom.pager div.dataTables_paginate.paging_full_numbers,
|
||||
div.bottom.pager div.dataTables_paginate.paging_four_button {
|
||||
border-right-width : 0;
|
||||
}
|
||||
|
||||
div.dataTables_filter,
|
||||
div.dataTables_length,
|
||||
div.dataTables_info,
|
||||
div.dataTables_paginate {
|
||||
float: left;
|
||||
padding : .3em .5em .3em .5em;
|
||||
|
||||
}
|
||||
div.dataTables_length {
|
||||
border-right : 1px solid #686868;
|
||||
line-height:1.9em;
|
||||
}
|
||||
div.dataTables_info {
|
||||
border-right : 1px solid #AAA;
|
||||
line-height:1.9em;
|
||||
}
|
||||
div.dataTables_length,
|
||||
div.dataTables_filter {
|
||||
border-left : 1px solid #FFF;
|
||||
}
|
||||
div.dataTables_filter {
|
||||
line-height : 1.9em;
|
||||
}
|
||||
div.dataTables_paginate {
|
||||
background-color : #F4F4F4;
|
||||
font-size: 110%;
|
||||
padding : 0;
|
||||
}
|
||||
|
||||
.paging_full_numbers span.paginate_button,
|
||||
.paging_full_numbers span.paginate_active {
|
||||
border-right : 1px solid #AAA;
|
||||
border-left : 1px solid #FFF;
|
||||
display : block;
|
||||
float : left;
|
||||
line-height:1.6em;
|
||||
padding: .3em .7em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.paging_full_numbers span.paginate_button {
|
||||
color : #0000CC;
|
||||
}
|
||||
.paging_full_numbers span.paginate_button.first {
|
||||
background-image : url('../../img/first.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position : 2px center;
|
||||
padding-left : 2em;
|
||||
}
|
||||
.paging_full_numbers span.paginate_button.previous {
|
||||
background-image : url('../../img/prev.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position : 2px center;
|
||||
padding-left : 2em;
|
||||
}
|
||||
.paging_full_numbers span.paginate_button.next {
|
||||
background-image : url('../../img/next.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position : right center;
|
||||
padding-right : 2em;
|
||||
}
|
||||
.paging_full_numbers span.paginate_button.last {
|
||||
background-image : url('../../img/last.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position : right center;
|
||||
border-right : 1px solid #686868;
|
||||
padding-right : 2em;
|
||||
}
|
||||
div.bottom.pager .paging_full_numbers span.paginate_button.last {
|
||||
border-right-width : 0;
|
||||
}
|
||||
.paging_full_numbers span.paginate_active {
|
||||
background-color : #FFFFEA;
|
||||
color : #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.paging_full_numbers span.paginate_button:hover {
|
||||
background-color: #FFC;
|
||||
}
|
||||
|
||||
.paging_full_numbers span.paginate_button.paginate_button_disabled {
|
||||
color : #666;
|
||||
}
|
||||
|
||||
/* Two-button version */
|
||||
|
||||
div.dataTables_paginate.paging_two_button,
|
||||
div.dataTables_paginate.paging_four_button {
|
||||
background-color : transparent;
|
||||
border-right : 1px solid #686868;
|
||||
border-left : 1px solid #FFF;
|
||||
line-height : 1.8em;
|
||||
}
|
||||
.paginate_disabled_first,
|
||||
.paginate_enabled_first,
|
||||
.paginate_disabled_previous,
|
||||
.paginate_enabled_previous,
|
||||
.paginate_disabled_next,
|
||||
.paginate_enabled_next,
|
||||
.paginate_disabled_last,
|
||||
.paginate_enabled_last {
|
||||
float: left;
|
||||
height: 16px;
|
||||
margin: .5em;
|
||||
width: 16px;
|
||||
}
|
||||
.paginate_disabled_first {
|
||||
background-image: url("../../img/first-disabled.png");
|
||||
}
|
||||
.paginate_enabled_first {
|
||||
background-image: url("../../img/first.png");
|
||||
cursor: pointer;
|
||||
}
|
||||
.paginate_disabled_previous {
|
||||
background-image: url("../../img/prev-disabled.png");
|
||||
}
|
||||
.paginate_enabled_previous {
|
||||
background-image: url("../../img/prev.png");
|
||||
cursor: pointer;
|
||||
}
|
||||
.paginate_disabled_next {
|
||||
background-image: url("../../img/next-disabled.png");
|
||||
}
|
||||
.paginate_enabled_next {
|
||||
background-image: url("../../img/next.png");
|
||||
cursor: pointer;
|
||||
}
|
||||
.paginate_disabled_last {
|
||||
background-image: url("../../img/last-disabled.png");
|
||||
}
|
||||
.paginate_enabled_last {
|
||||
background-image: url("../../img/last.png");
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
table.display {
|
||||
width: 100%;
|
||||
}
|
||||
table.display thead th {
|
||||
border-bottom: 1px solid black;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
padding: 3px 18px 3px 10px;
|
||||
}
|
||||
.dataTables_wrapper {
|
||||
clear: both;
|
||||
position: relative;
|
||||
}
|
||||
.dataTables_processing {
|
||||
background-color: white;
|
||||
border: 1px solid #DDDDDD;
|
||||
color: #999999;
|
||||
font-size: 14px;
|
||||
height: 30px;
|
||||
left: 50%;
|
||||
margin-left: -125px;
|
||||
margin-top: -15px;
|
||||
padding: 14px 0 2px;
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
top: 50%;
|
||||
width: 250px;
|
||||
}
|
||||
.dataTables_info {
|
||||
float: left;
|
||||
width: 60%;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
float: right;
|
||||
text-align: right;
|
||||
width: 44px;
|
||||
}
|
||||
.paging_full_numbers {
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
width: 400px;
|
||||
}
|
||||
.paging_full_numbers span.paginate_button,
|
||||
.paging_full_numbers span.paginate_active {
|
||||
border: 1px solid #aaa;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
padding: 2px 5px;
|
||||
margin: 0 3px;
|
||||
cursor: pointer;
|
||||
*cursor: hand;
|
||||
}
|
||||
|
||||
.paging_full_numbers span.paginate_button {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
.paging_full_numbers span.paginate_button:hover {
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
.paging_full_numbers span.paginate_active {
|
||||
background-color: #99B3FF;
|
||||
}
|
||||
.paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next {
|
||||
float: left;
|
||||
height: 19px;
|
||||
margin-left: 3px;
|
||||
width: 19px;
|
||||
}
|
||||
.paginate_disabled_previous {
|
||||
background-image: url("../../img/datatables/back_disabled.jpg");
|
||||
}
|
||||
.paginate_enabled_previous {
|
||||
background-image: url("../../img/datatables/back_enabled.jpg");
|
||||
}
|
||||
.paginate_disabled_next {
|
||||
background-image: url("../../img/datatables/forward_disabled.jpg");
|
||||
}
|
||||
.paginate_enabled_next {
|
||||
background-image: url("../../img/datatables/forward_enabled.jpg");
|
||||
}
|
||||
.spacer {
|
||||
clear: both;
|
||||
height: 20px;
|
||||
}
|
||||
|
|
@ -1,105 +0,0 @@
|
|||
.hierarchies {
|
||||
background-color:#fff;
|
||||
color:#000000;
|
||||
padding:5px;
|
||||
margin-left:50px;
|
||||
-moz-border-radius:6px;
|
||||
display:block;
|
||||
font-size:10px;
|
||||
}
|
||||
.hierarchy {
|
||||
padding:5px;
|
||||
width:90%;
|
||||
-moz-border-radius:6px;
|
||||
display:block;
|
||||
}
|
||||
.child {
|
||||
display:none;
|
||||
margin-left : 50px;
|
||||
width:150%;
|
||||
}
|
||||
.child a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.parent {
|
||||
display:none;
|
||||
margin-left : -50px;
|
||||
}
|
||||
.parent a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child0{
|
||||
width : 20%;
|
||||
text-align : left;
|
||||
}
|
||||
.child0 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child1{
|
||||
width : 20%;
|
||||
text-align : left;
|
||||
margin-left : 50px;
|
||||
}
|
||||
.child1 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child2{
|
||||
width : 20%;
|
||||
text-align : left;
|
||||
margin-left : 100px;
|
||||
}
|
||||
.child2 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child3{
|
||||
width : 20%;
|
||||
text-align : left;
|
||||
margin-left : 150px;
|
||||
}
|
||||
.child3 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child4{
|
||||
width : 20%;
|
||||
text-align : left;
|
||||
margin-left : 200px;
|
||||
}
|
||||
.child4 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child5{
|
||||
width : 20%;
|
||||
text-align : left;
|
||||
margin-left : 250px;
|
||||
}
|
||||
.child5 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child6{
|
||||
width : 20%;
|
||||
text-align : left;
|
||||
margin-left : 300px;
|
||||
}
|
||||
.child6 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child7{
|
||||
width : 20%;
|
||||
text-align : left;
|
||||
margin-left : 350px;
|
||||
}
|
||||
.child7 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.child8{
|
||||
width : 10%;
|
||||
text-align : left;
|
||||
margin-left : 400px;
|
||||
}
|
||||
.child8 a:hover{
|
||||
background-color:#BFCFFF;
|
||||
}
|
||||
.parents{
|
||||
display:inline;
|
||||
cursor:crosshair;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
/* jQuery.Rating Plugin CSS - http://www.fyneworks.com/jquery/star-rating/ */
|
||||
div.rating-cancel,div.star-rating{float:left;width:15px;height:15px;text-indent:-999em;cursor:pointer;display:block;background:transparent;overflow:hidden}
|
||||
div.rating-cancel,div.rating-cancel a{background:url(../../images/star-ratings-sprite.png) no-repeat 0 -49px}
|
||||
div.star-rating,div.star-rating a{background:url(../../images/star-ratings-sprite.png) no-repeat 0 0px}
|
||||
div.rating-cancel a{display:block;width:16px;height:100%;background-position:0 -49px;border:0}
|
||||
div.star-rating a{display:block;width:16px;height:100%;background-position:0 0px;border:0}
|
||||
div.star-rating-on a{background-position:0 -32px!important}
|
||||
div.rating-cancel.star-rating-hover a{background-position:0 -65px}
|
||||
div.star-rating-hover a{background-position:0 -16px}
|
||||
/* Read Only CSS */
|
||||
div.star-rating-readonly a{cursor:default !important}
|
||||
/* Partial Star CSS */
|
||||
div.star-rating{background:transparent!important;overflow:hidden!important}
|
||||
/* END jQuery.Rating Plugin CSS */
|
||||
|
|
@ -1,628 +0,0 @@
|
|||
/*
|
||||
Mobile stylesheet
|
||||
Frédérick Capovilla, 2012 - Libéo
|
||||
*/
|
||||
|
||||
/* Hidden elements */
|
||||
|
||||
.mobile-hidden,
|
||||
body#opac-main #login,
|
||||
body#opac-main #login~div,
|
||||
body#opac-main #opacnav,
|
||||
body#opac-main #opacmainuserblock,
|
||||
body#results #facetcontainer,
|
||||
body#opac-detail #ulactioncontainer>:not(#action),
|
||||
body#opac-detail #ulactioncontainer #action a:not(.reserve),
|
||||
body#opac-detail #shelfbrowser,
|
||||
body#opac-detail #views,
|
||||
body#opac-detail div#bibliodescriptions>ul>li:nth-of-type(n+3),
|
||||
body#results #userresults .pages:nth-of-type(1),
|
||||
body#results #userresults>br,
|
||||
body#results td.select.selectcol,
|
||||
body#results span.results_summary.actions>:not(.hold),
|
||||
body#results span.addto,
|
||||
body#results span#placehold,
|
||||
body#results span.checkall,
|
||||
body#results span.clearall,
|
||||
body#results .searchresults td.resultscontrol,
|
||||
body#advsearch form div.yui-g:nth-last-of-type(-n+4),
|
||||
body#opac-readingrecord ul.ui-tabs-nav li,
|
||||
body#opac-login-page #opac-main-search div#libraryname,
|
||||
#leftmenus>:not(#menu),
|
||||
#top-bar #menu-left,
|
||||
#members>ul>li:nth-child(2),
|
||||
#moresearches,
|
||||
#breadcrumbs>p:nth-of-type(1),
|
||||
#main_footer .colleft,
|
||||
#opac-main-search a.logo {
|
||||
display:none !important;
|
||||
}
|
||||
|
||||
|
||||
/* General */
|
||||
|
||||
body{
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#doc, #doc2, #doc3, #doc4, .yui-t1, .yui-t2, .yui-t3, .yui-t4, .yui-t5, .yui-t6, .yui-t7 {
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
.yui-ge div.first, .yui-gf .yui-g, .yui-gf .yui-u{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bd:after, .yui-g:after, .yui-gb:after, .yui-gc:after, .yui-gd:after, .yui-ge:after, .yui-gf:after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
#container{
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-bottom: 10px;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#container #ctn_lt {
|
||||
padding: 0 10px;
|
||||
padding-left: auto;
|
||||
}
|
||||
|
||||
#doc3{
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#opac-main-search {
|
||||
margin: 0 !important;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#main_footer{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#yui-main .yui-b {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
#breadcrumbs{
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
body#results #breadcrumbs>*{
|
||||
padding: 20px !important;
|
||||
}
|
||||
|
||||
|
||||
/* Main */
|
||||
|
||||
body#opac-main #container #ctn_lt{
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
body#opac-main #opacmainuserblockmobile {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#news.container {
|
||||
display: block;
|
||||
margin: 0em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Results */
|
||||
|
||||
body#results div#userresults {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
body#results .yui-t1 #yui-main .yui-b {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body#results #container #ctn_lt{
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body#results .searchresults td.resultscontrol{
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
body#results .searchresults .resort{
|
||||
width: 50%;
|
||||
float:right;
|
||||
}
|
||||
|
||||
body#results .searchresults #sort_by{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body#results .searchresults .cartlist{
|
||||
width:50%;
|
||||
}
|
||||
|
||||
body#results .results_summary.actions .hold {
|
||||
font-size: 140%;
|
||||
font-weight: bold;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
|
||||
/* Cancel highlighting */
|
||||
|
||||
a .term {
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
.term {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
|
||||
/* Details */
|
||||
|
||||
body#opac-detail #ctn_lt,
|
||||
body#opac-marcdetail #ctn_lt,
|
||||
body#opac-isbddetail #ctn_lt{
|
||||
margin: 10px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body#opac-detail #opac-detail-yui-ge {
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
#views>span {
|
||||
display:block;
|
||||
}
|
||||
|
||||
body#opac-detail #ulactioncontainer{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
body#opac-detail #container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body#opac-detail #ulactioncontainer ul{
|
||||
margin-top: 0;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
body#opac-detail #ulactioncontainer li{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Logo in the footer */
|
||||
|
||||
#opac-main-search div#libraryname {
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: -116px;
|
||||
left: 0;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
#opac-main-search div#libraryname img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#doc3{
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#main_footer {
|
||||
padding-top: 29px;
|
||||
}
|
||||
|
||||
#main_footer .colright,
|
||||
#main_footer .colleft{
|
||||
float: none;
|
||||
}
|
||||
|
||||
#main_footer .colright .koha{
|
||||
float: right;
|
||||
overflow: hidden;
|
||||
text-indent: -5000em;
|
||||
width: 92px;
|
||||
height: 80px;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
|
||||
/* Login bar */
|
||||
|
||||
div#top-bar {
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -29px;
|
||||
top: auto;
|
||||
overflow: hidden;
|
||||
z-index: auto;
|
||||
}
|
||||
|
||||
#members ul{
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
/* Search bar */
|
||||
|
||||
form#searchform {
|
||||
border-radius: 0;
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
form#searchform #filters .jqTransformSelectWrapper,
|
||||
form#searchform #libraries .jqTransformSelectWrapper {
|
||||
position: relative;
|
||||
left: 0;
|
||||
top: 0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
form.multi-libraries #filters .jqTransformSelectWrapper{
|
||||
width: 49% !important;
|
||||
float: left;
|
||||
}
|
||||
|
||||
form.multi-libraries #libraries .jqTransformSelectWrapper{
|
||||
width: 49% !important;
|
||||
float: right;
|
||||
}
|
||||
|
||||
form.single-library #filters .jqTransformSelectWrapper,
|
||||
form.multi-libraries.single-field-mobile #filters .jqTransformSelectWrapper,
|
||||
form.multi-libraries.single-field-mobile #libraries .jqTransformSelectWrapper{
|
||||
width: 100% !important;
|
||||
float:left;
|
||||
}
|
||||
|
||||
form.multi-libraries .input-wrapper{
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
form#searchform .input-wrapper input[type="text"]{
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
form#searchform .input-wrapper{
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding: 0 10px;
|
||||
padding-right: 46px;
|
||||
}
|
||||
|
||||
form#searchform input[type="submit"]{
|
||||
position: absolute;
|
||||
border-radius: 0;
|
||||
top: 15px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper{
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper div{
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper div span{
|
||||
white-space:nowrap;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper div a{
|
||||
border-left: 5px solid #FFF;
|
||||
border-right: 5px solid #FFF;
|
||||
background-color: white;
|
||||
box-shadow: -3px 0 5px #FFF;
|
||||
right: 0px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper ul li a{
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
#opac-main-search #fluid {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/* Login screen */
|
||||
|
||||
#holds, #opac-auth {
|
||||
min-width: 0;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
|
||||
/* User */
|
||||
|
||||
body#opac-user .yui-b,
|
||||
body#opac-passwd .yui-b,
|
||||
body#opac-search-history .yui-b,
|
||||
body#opac-readingrecord .yui-b,
|
||||
body#opac-userupdate .yui-b,
|
||||
body#opac-account .yui-b{
|
||||
width: auto;
|
||||
float: none;
|
||||
}
|
||||
|
||||
body#opac-user #yui-main ,
|
||||
body#opac-passwd #yui-main ,
|
||||
body#opac-search-history #yui-main ,
|
||||
body#opac-readingrecord #yui-main ,
|
||||
body#opac-userupdate #yui-main ,
|
||||
body#opac-account #yui-main {
|
||||
float: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body#opac-userupdate .yui-g .yui-u{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body#opac-passwd fieldset,
|
||||
body#opac-userupdate fieldset{
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.renewals {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
|
||||
/* Tables */
|
||||
|
||||
body#opac-user #checkoutst td.links,
|
||||
body#opac-user thead,
|
||||
body#opac-holds div:not(.calendar) table>tbody>tr:nth-child(1),
|
||||
body#opac-readingrecord #readingrec tr:nth-child(1),
|
||||
body#opac-detail #holdingst thead,
|
||||
body#opac-detail #holdingst td.call_no a{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body#opac-detail table#holdingst,
|
||||
body#opac-readingrecord table,
|
||||
body#opac-holds div:not(.calendar) table,
|
||||
body#opac-user table#holdst,
|
||||
body#opac-user table#checkoutst{
|
||||
border-right: none;
|
||||
border-top: none;
|
||||
border: none;
|
||||
counter-reset: item;
|
||||
}
|
||||
|
||||
body#opac-detail #holdingst tr,
|
||||
body#opac-readingrecord tr,
|
||||
body#opac-holds div:not(.calendar) tr,
|
||||
body#opac-user #holdst tr,
|
||||
body#opac-user #checkoutst tr{
|
||||
border: none;
|
||||
display: block;
|
||||
position: relative;
|
||||
margin-left: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
body#opac-detail #holdingst td,
|
||||
body#opac-readingrecord td,
|
||||
body#opac-holds div:not(.calendar) td,
|
||||
body#opac-user #holdst td,
|
||||
body#opac-user #checkoutst td{
|
||||
display: block;
|
||||
border: 1px solid #DDD;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body#opac-user #checkoutst caption {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body#opac-detail #holdingst tr:before,
|
||||
body#opac-readingrecord tr:before,
|
||||
body#opac-holds div:not(.calendar) tr:not(.copiesrow):before,
|
||||
body#opac-user #holdst tr:before,
|
||||
body#opac-user #checkoutst tr:before {
|
||||
font-weight: bold;
|
||||
content: counter(item) ". ";
|
||||
counter-increment: item;
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: -13px;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
body#opac-detail #holdingst td:before,
|
||||
body#opac-readingrecord td:before,
|
||||
body#opac-holds div:not(.calendar) td:before,
|
||||
body#opac-user #holdst td:before,
|
||||
body#opac-user #checkoutst td:before {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
body#opac-detail #holdingst td.itype:before {content: "Item type : ";}
|
||||
body#opac-detail #holdingst td.location:before {content: "Location : ";}
|
||||
body#opac-detail #holdingst td.collection:before {content: "Collection : ";}
|
||||
body#opac-detail #holdingst td.call_no:before {content: "Call Number : ";}
|
||||
body#opac-detail #holdingst td.vol_info:before {content: "Vol Info : ";}
|
||||
body#opac-detail #holdingst td.url:before {content: "URL : ";}
|
||||
body#opac-detail #holdingst td.copynumber:before {content: "Copy Number : ";}
|
||||
body#opac-detail #holdingst td.status:before {content: "Status : ";}
|
||||
body#opac-detail #holdingst td.notes:before {content: "Notes : ";}
|
||||
body#opac-detail #holdingst td.date_due:before {content: "Date Due : ";}
|
||||
body#opac-detail #holdingst td.barcode:before {content: "Barcode : ";}
|
||||
body#opac-detail #holdingst td.holds_count:before {content: "Item holds : ";}
|
||||
|
||||
body#opac-user #checkoutst td.date_due:before {content: "Date due : ";}
|
||||
body#opac-user #checkoutst td.call_no:before {content: "Call No. : ";}
|
||||
body#opac-user #checkoutst td.fines:before {content: "Fines : ";}
|
||||
|
||||
body#opac-user #holdst td.reservedate:before {content: "Placed On : ";}
|
||||
body#opac-user #holdst td.expirationdate:before {content: "Expires On : ";}
|
||||
body#opac-user #holdst td.branch:before {content: "Pick Up Location : ";}
|
||||
body#opac-user #holdst td.priority:before {content: "Priority : ";}
|
||||
body#opac-user #holdst td.status:before {content: "Status : ";}
|
||||
|
||||
body#opac-readingrecord #readingrec td:nth-child(3):before {content: "Item Type : ";}
|
||||
body#opac-readingrecord #readingrec td:nth-child(4):before {content: "Call No. : ";}
|
||||
body#opac-readingrecord #readingrec td:nth-child(5):before {content: "Date : ";}
|
||||
|
||||
body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.hold:before {content: "Hold : ";}
|
||||
body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.itype:before {content: "Item Type : ";}
|
||||
body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.priority:before {content: "Priority : ";}
|
||||
body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.reserve_date:before {content: "Hold Starts On Date : ";}
|
||||
body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.expiration_date:before {content: "Hold Not Needed After : ";}
|
||||
body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.place_on_type:before {content: "Place On : ";}
|
||||
body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.branch:before {content: "Pickup Location : ";}
|
||||
|
||||
body#opac-holds #bibitemloop table td.copynumber:before {content: "Copy Number : ";}
|
||||
body#opac-holds #bibitemloop table td.itype:before {content: "Item Type : ";}
|
||||
body#opac-holds #bibitemloop table td.barcode:before {content: "Barcode : ";}
|
||||
body#opac-holds #bibitemloop table td.homebranch:before {content: "Home Library : ";}
|
||||
body#opac-holds #bibitemloop table td.holdingbranch:before {content: "Last Location : ";}
|
||||
body#opac-holds #bibitemloop table td.call_no:before {content: "Call Number : ";}
|
||||
body#opac-holds #bibitemloop table td.vol_info:before {content: "Vol Info : ";}
|
||||
body#opac-holds #bibitemloop table td.information:before {content: "Information : ";}
|
||||
|
||||
|
||||
/* Holds */
|
||||
|
||||
body#opac-holds tr.copiesrow {
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
body#opac-holds tr.copiesrow>td:nth-child(1) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body#opac-holds #bibitemloop tr {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
/* User Fines table */
|
||||
|
||||
body#opac-account #useraccount th:nth-child(3),
|
||||
body#opac-account #useraccount td:nth-child(3) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body#opac-account #useraccount table {
|
||||
position: relative;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
body#opac-account #useraccount tfoot {
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
bottom: -23px;
|
||||
}
|
||||
|
||||
body#opac-account #useraccount thead th {
|
||||
padding: 2px 10px;
|
||||
}
|
||||
|
||||
body#opac-account #useraccount tbody td:nth-child(1) {
|
||||
min-width: 70px;
|
||||
}
|
||||
|
||||
body#opac-account #useraccount tbody td:nth-child(4) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
body#opac-account #useraccount tfoot th {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body#opac-account #useraccount tfoot td {
|
||||
border-right: 1px solid #DDD;
|
||||
}
|
||||
|
||||
body#opac-account #useraccount tfoot td:before {
|
||||
content: "Total due : "
|
||||
}
|
||||
|
||||
|
||||
/* User menu */
|
||||
|
||||
#leftmenus>#menu ul li.messaging,
|
||||
#leftmenus>#menu ul li.suggestions,
|
||||
#leftmenus>#menu ul li.privateshelves,
|
||||
#leftmenus>#menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile_only {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.mobile_menu form#searchform .input-wrapper{
|
||||
padding-left: 90px;
|
||||
}
|
||||
|
||||
body.mobile_menu_opened #doc3>div,
|
||||
body.mobile_menu_opened #main_footer>div {
|
||||
position: relative;
|
||||
left: 200px;
|
||||
}
|
||||
|
||||
body.mobile_menu_opened #main_footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.mobile_menu_opened #doc3 {
|
||||
overflow: hidden;
|
||||
min-height: 380px;
|
||||
}
|
||||
|
||||
body.mobile_menu_opened #ctn_rb>.ctn_in>.yui-b {
|
||||
position: static;
|
||||
}
|
||||
|
||||
body.mobile_menu_opened #leftmenus>#menu {
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: -201px;
|
||||
padding: 0;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
#mobile_menu_button {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
background: url(../../images/mobile-menu-button.png) no-repeat scroll 50% 50%;
|
||||
border: 0px;
|
||||
font-size: 0;
|
||||
width: 76px;
|
||||
height: 38px;
|
||||
top: 13px;
|
||||
left: 6px;
|
||||
}
|
||||
|
|
@ -1,228 +0,0 @@
|
|||
/* Link body */
|
||||
.persona-button{
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-weight: bold;
|
||||
line-height: 1.1;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
text-shadow: 0 1px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.2);
|
||||
|
||||
background: #297dc3;
|
||||
background: -moz-linear-gradient(top, #43a6e2, #287cc2);
|
||||
background: -ms-linear-gradient(top, #43a6e2, #287cc2);
|
||||
background: -o-linear-gradient(top, #43a6e2, #287cc2);
|
||||
background: -webkit-linear-gradient(top, #43a6e2, #287cc2);
|
||||
background: linear-gradient(top, #43a6e2, #287cc2);
|
||||
|
||||
-moz-border-radius: 3px;
|
||||
-ms-border-radius: 3px;
|
||||
-o-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
|
||||
-moz-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
|
||||
-ms-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
|
||||
-o-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
|
||||
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
|
||||
box-shadow: 0 1px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.persona-button:hover{
|
||||
background: #21669f;
|
||||
background: -moz-linear-gradient(top, #3788b9, #21669f);
|
||||
background: -ms-linear-gradient(top, #3788b9, #21669f);
|
||||
background: -o-linear-gradient(top, #3788b9, #21669f);
|
||||
background: -webkit-linear-gradient(top, #3788b9, #21669f);
|
||||
background: linear-gradient(top, #3788b9, #21669f);
|
||||
}
|
||||
|
||||
.persona-button:active, .persona-button:focus{
|
||||
top: 1px;
|
||||
-moz-box-shadow: none;
|
||||
-ms-box-shadow: none;
|
||||
-o-box-shadow: none;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.persona-button span{
|
||||
display: inline-block;
|
||||
padding: 5px 10px 5px 40px;
|
||||
}
|
||||
|
||||
/* Icon */
|
||||
.persona-button span:after{
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAA4klEQVR42o2RWaqEMBRE3YaCiDjPwQGcd9CrysLv4wTyoLFD90dxqbp1EgdPRB7Kskznea6Zn/aPoKoqUUrJOI5m4l2QBfSyLHKep1zXZSae3An1fS/7vst931bGkzuhaZrsLVbGkzuheZ7lOI6HyJ2QUkqv6yrbtv0LT+6E7G0UrfBfP3lZlpoXH4ZBmHgn5Pv+KwxDfqp0XQdgJp6c/RsUBIGOokiSJDE/s21bACbe5Ozp0TdAHMdSFIXUdS1N01C2wpObPT36HifwCJzI0iX29Oh7XP0E3CB9L01TzM+i/wePv4ZE5RtAngAAAABJRU5ErkJggg==) 10px center no-repeat;
|
||||
content: '';
|
||||
display: block;
|
||||
width: 31px;
|
||||
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: -3px;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* Icon background */
|
||||
.persona-button span:before{
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 20px;
|
||||
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
|
||||
background: #42a9dd;
|
||||
background: -moz-linear-gradient(top, #50b8e8, #3095ce);
|
||||
background: -ms-linear-gradient(top, #50b8e8, #3095ce);
|
||||
background: -o-linear-gradient(top, #50b8e8, #3095ce);
|
||||
background: -webkit-linear-gradient(top, #50b8e8, #3095ce);
|
||||
background: linear-gradient(top, #50b8e8, #3095ce);
|
||||
|
||||
-moz-border-radius: 3px 0 0 3px;
|
||||
-ms-border-radius: 3px 0 0 3px;
|
||||
-o-border-radius: 3px 0 0 3px;
|
||||
-webkit-border-radius: 3px 0 0 3px;
|
||||
border-radius: 3px 0 0 3px;
|
||||
}
|
||||
|
||||
/* Triangle */
|
||||
.persona-button:before{
|
||||
background: #42a9dd;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 26px;
|
||||
width: 26px;
|
||||
|
||||
position: absolute;
|
||||
left: 2px;
|
||||
top: 50%;
|
||||
margin-top: -13px;
|
||||
z-index: 0;
|
||||
|
||||
background: -moz-linear-gradient(-45deg, #50b8e8, #3095ce);
|
||||
background: -ms-linear-gradient(-45deg, #50b8e8, #3095ce);
|
||||
background: -o-linear-gradient(-45deg, #50b8e8, #3095ce);
|
||||
background: -webkit-linear-gradient(-45deg, #50b8e8, #3095ce);
|
||||
background: linear-gradient(-45deg, #3095ce, #50b8e8); /* flipped for updated spec */
|
||||
|
||||
-moz-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
|
||||
-ms-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
|
||||
-o-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
|
||||
-webkit-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
|
||||
box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
|
||||
|
||||
-moz-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
/* Inset shadow (required here because the icon background clips it when on the `a` element) */
|
||||
.persona-button:after{
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
|
||||
-moz-border-radius: 3px;
|
||||
-ms-border-radius: 3px;
|
||||
-o-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
|
||||
-moz-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
|
||||
-ms-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
|
||||
-o-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
|
||||
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
|
||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
/* ========================================================
|
||||
* Dark button
|
||||
* ===================================================== */
|
||||
.persona-button.dark{
|
||||
background: #3c3c3c;
|
||||
background: -moz-linear-gradient(top, #606060, #3c3c3c);
|
||||
background: -ms-linear-gradient(top, #606060, #3c3c3c);
|
||||
background: -o-linear-gradient(top, #606060, #3c3c3c);
|
||||
background: -webkit-linear-gradient(top, #606060, #3c3c3c);
|
||||
background: linear-gradient(top, #606060, #3c3c3c);
|
||||
}
|
||||
.persona-button.dark:hover{
|
||||
background: #2d2d2d;
|
||||
background: -moz-linear-gradient(top, #484848, #2d2d2d);
|
||||
background: -ms-linear-gradient(top, #484848, #2d2d2d);
|
||||
background: -o-linear-gradient(top, #484848, #2d2d2d);
|
||||
background: -webkit-linear-gradient(top, #484848, #2d2d2d);
|
||||
background: linear-gradient(top, #484848, #2d2d2d);
|
||||
}
|
||||
.persona-button.dark span:before{ /* Icon BG */
|
||||
background: #d34f2d;
|
||||
background: -moz-linear-gradient(top, #ebac45, #d34f2d);
|
||||
background: -ms-linear-gradient(top, #ebac45, #d34f2d);
|
||||
background: -o-linear-gradient(top, #ebac45, #d34f2d);
|
||||
background: -webkit-linear-gradient(top, #ebac45, #d34f2d);
|
||||
background: linear-gradient(top, #ebac45, #d34f2d);
|
||||
}
|
||||
.persona-button.dark:before{ /* Triangle */
|
||||
background: #d34f2d;
|
||||
background: -moz-linear-gradient(-45deg, #ebac45, #d34f2d);
|
||||
background: -ms-linear-gradient(-45deg, #ebac45, #d34f2d);
|
||||
background: -o-linear-gradient(-45deg, #ebac45, #d34f2d);
|
||||
background: -webkit-linear-gradient(-45deg, #ebac45, #d34f2d);
|
||||
background: linear-gradient(-45deg, #d34f2d, #ebac45); /* flipped for updated spec */
|
||||
}
|
||||
|
||||
/* ========================================================
|
||||
* Orange button
|
||||
* ===================================================== */
|
||||
.persona-button.orange{
|
||||
background: #ee731a;
|
||||
background: -moz-linear-gradient(top, #ee731a, #d03116);
|
||||
background: -ms-linear-gradient(top, #ee731a, #d03116);
|
||||
background: -o-linear-gradient(top, #ee731a, #d03116);
|
||||
background: -webkit-linear-gradient(top, #ee731a, #d03116);
|
||||
background: linear-gradient(top, #ee731a, #d03116);
|
||||
}
|
||||
.persona-button.orange:hover{
|
||||
background: #cb6216;
|
||||
background: -moz-linear-gradient(top, #cb6216, #b12a13);
|
||||
background: -ms-linear-gradient(top, #cb6216, #b12a13);
|
||||
background: -o-linear-gradient(top, #cb6216, #b12a13);
|
||||
background: -webkit-linear-gradient(top, #cb6216, #b12a13);
|
||||
background: linear-gradient(top, #cb6216, #b12a13);
|
||||
}
|
||||
.persona-button.orange span:before{ /* Icon BG */
|
||||
background: #e84a21;
|
||||
background: -moz-linear-gradient(top, #f7ad27, #e84a21);
|
||||
background: -ms-linear-gradient(top, #f7ad27, #e84a21);
|
||||
background: -o-linear-gradient(top, #f7ad27, #e84a21);
|
||||
background: -webkit-linear-gradient(top, #f7ad27, #e84a21);
|
||||
background: linear-gradient(top, #f7ad27, #e84a21);
|
||||
}
|
||||
.persona-button.orange:before{ /* Triangle */
|
||||
background: #e84a21;
|
||||
background: -moz-linear-gradient(-45deg, #f7ad27, #e84a21);
|
||||
background: -ms-linear-gradient(-45deg, #f7ad27, #e84a21);
|
||||
background: -o-linear-gradient(-45deg, #f7ad27, #e84a21);
|
||||
background: -webkit-linear-gradient(-45deg, #f7ad27, #e84a21);
|
||||
background: linear-gradient(-45deg, #e84a21, #f7ad27); /* flipped for updated spec */
|
||||
}
|
||||
|
|
@ -1,227 +0,0 @@
|
|||
a:link {
|
||||
color : #000066;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color : #000066;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color : #993300;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color : #FFF;
|
||||
color : #333333;
|
||||
font-family : arial, geneva, sans-serif;
|
||||
font-size : 14px;
|
||||
margin : 0px 0px 0px 0px;
|
||||
word-wrap : break-word;
|
||||
}
|
||||
|
||||
caption {
|
||||
color : #000066;
|
||||
font-size : 18px;
|
||||
font-weight : bold;
|
||||
margin-top : 5px;
|
||||
text-align : left;
|
||||
}
|
||||
|
||||
div.table {
|
||||
width : 100%;
|
||||
}
|
||||
|
||||
form {
|
||||
margin : 0px;
|
||||
padding : 0px;
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
color : #000066;
|
||||
font-size : 22px;
|
||||
font-weight : bold;
|
||||
margin-bottom : 3px;
|
||||
margin-top : 3px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color : #000066;
|
||||
font-size : 20px;
|
||||
font-weight : bold;
|
||||
margin-bottom : 3px;
|
||||
margin-top : 3px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color : #000066;
|
||||
font-size : 18px;
|
||||
font-weight : bold;
|
||||
margin-bottom : 3px;
|
||||
margin-top : 3px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
color : #000066;
|
||||
font-size : 16px;
|
||||
font-weight : bold;
|
||||
margin-bottom : 3px;
|
||||
margin-top : 3px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
color : #000066;
|
||||
font-size : 15px;
|
||||
font-weight : bold;
|
||||
margin-bottom : 1px;
|
||||
margin-top : 1px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
color : #000066;
|
||||
font-size : 14px;
|
||||
font-weight : bold;
|
||||
margin-bottom : 1px;
|
||||
margin-top : 1px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top : 0px;
|
||||
}
|
||||
|
||||
table {
|
||||
background-color : #FFFFFF;
|
||||
border-bottom : 0px solid #CCCCCC;
|
||||
border-collapse : collapse;
|
||||
border-left : 0px solid #CCCCCC;
|
||||
margin : 3px 0px 5px 0px;
|
||||
padding : 0px;
|
||||
width : 99%;
|
||||
}
|
||||
|
||||
td {
|
||||
background-color : #FFF;
|
||||
border-bottom : 1px solid #CCCCCC;
|
||||
border-right : 1px solid #CCCCCC;
|
||||
padding : 5px 5px 5px 5px;
|
||||
vertical-align : top;
|
||||
}
|
||||
|
||||
td:last-child {
|
||||
background-color : #FFF;
|
||||
border-bottom : 1px solid #CCCCCC;
|
||||
border-right : 0px solid #CCCCCC;
|
||||
padding : 5px 5px 5px 5px;
|
||||
vertical-align : top;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color : #E9E9E9;
|
||||
border-bottom : 1px solid #CCCCCC;
|
||||
border-right : 1px solid #CCCCCC;
|
||||
font-weight : bold;
|
||||
padding : 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
th:last-child {
|
||||
background-color : #E9E9E9;
|
||||
border-bottom : 1px solid #CCCCCC;
|
||||
border-right : 0px solid #CCCCCC;
|
||||
font-weight : bold;
|
||||
padding : 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
tr.highlight {
|
||||
background-color: #e9e9e9;
|
||||
}
|
||||
|
||||
body#basket tr.highlight {
|
||||
background-color : transparent;
|
||||
}
|
||||
|
||||
body#basket a {
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
body#basket table {
|
||||
border-top : 1px solid #EEE;
|
||||
border-left : 1px solid #EEE;
|
||||
}
|
||||
body#basket td,
|
||||
body#basket th {
|
||||
background-color : transparent;
|
||||
padding : 2px;
|
||||
}
|
||||
|
||||
body#basket th {
|
||||
background-color : #EEE;
|
||||
}
|
||||
|
||||
body#basket th,
|
||||
body#basket th[scope=col] {
|
||||
text-align : center;
|
||||
vertical-align : middle;
|
||||
}
|
||||
|
||||
body#basket th[scope=row] {
|
||||
font-size : 89%;
|
||||
text-align : right;
|
||||
vertical-align : top;
|
||||
width : 10%;
|
||||
}
|
||||
|
||||
body#basket p {
|
||||
font-size : 85%;
|
||||
margin : .2em 0;
|
||||
text-indent : .5em;
|
||||
}
|
||||
|
||||
.error {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ex {
|
||||
font-family : "Courier New", Courier, monospace;
|
||||
}
|
||||
.inline {
|
||||
display : inline;
|
||||
}
|
||||
|
||||
.screen {
|
||||
display : none;
|
||||
}
|
||||
|
||||
#bookcover {
|
||||
float:left;
|
||||
margin:0pt;
|
||||
padding:0pt;
|
||||
}
|
||||
|
||||
#members,#opac-main-search,#opac-user-views .ui-tabs-nav,input,h2 span.hint,td.resultscontrol,.pages,.suggestion,.views,#action,#export,#bibliodescriptions .ui-tabs-nav,#addshelf,fieldset.action, .list-actions, .ft, #facetcontainer,.results_summary.actions,.koha_url,.yui-b {
|
||||
display : none;
|
||||
}
|
||||
|
||||
#userresults {
|
||||
position : absolute;
|
||||
right : 0px;
|
||||
word-wrap : break-word;
|
||||
display : block;
|
||||
}
|
||||
|
||||
div#userupdate input,div#userupdate textarea {
|
||||
display : inline;
|
||||
border : 0;
|
||||
}
|
||||
|
||||
#yui-main,
|
||||
#yui-main .yui-b,
|
||||
.yui-t1 #yui-main .yui-b {
|
||||
display : block !important;
|
||||
margin : 0 !important;
|
||||
padding : 0 !important;
|
||||
width : auto !important;
|
||||
float : none !important;
|
||||
}
|
||||
|
|
@ -1,252 +0,0 @@
|
|||
/*Search form */
|
||||
form#searchform select {
|
||||
display:none;
|
||||
right: -9999em;
|
||||
position: absolute;
|
||||
}
|
||||
div#menu {
|
||||
border-left: 1px solid rgb(151, 151, 151);
|
||||
font-size: 94%;
|
||||
margin-left: 0.5em;
|
||||
|
||||
}
|
||||
/*text alignment */
|
||||
body,
|
||||
#doc,
|
||||
#doc2,
|
||||
#doc3,
|
||||
#doc4,
|
||||
.yui-t1,
|
||||
.yui-t2,
|
||||
.yui-t3,
|
||||
.yui-t4,
|
||||
.yui-t5,
|
||||
.yui-t6,
|
||||
.yui-t7,
|
||||
table#marc th,
|
||||
caption
|
||||
{
|
||||
text-align: right;
|
||||
direction: rtl;
|
||||
}
|
||||
h4
|
||||
{
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
/*floats*/
|
||||
.yui-g .yui-u, .yui-g .yui-g, .yui-g .yui-gb, .yui-g .yui-gc, .yui-g .yui-gd, .yui-g .yui-ge, .yui-g .yui-gf, .yui-gc .yui-u, .yui-gd .yui-g, .yui-g .yui-gc .yui-u, .yui-ge .yui-u, .yui-ge .yui-g, .yui-gf .yui-g, .yui-gf .yui-u {
|
||||
float: left;
|
||||
}
|
||||
.yui-g div.first, .yui-g div.first, .yui-gc div.first, .yui-gc div.first div.first, .yui-gd div.first, .yui-ge div.first, .yui-gf div.first {
|
||||
float: right;
|
||||
}
|
||||
fieldset.rows label, fieldset.rows span.label {
|
||||
float: right;
|
||||
margin-right: 1em;
|
||||
text-align: right;
|
||||
}
|
||||
.yui-t1 .yui-b {
|
||||
float: right;
|
||||
width: 12.3207em;
|
||||
}
|
||||
|
||||
|
||||
#opacmainuserblock, #news {
|
||||
margin-right: 7em;
|
||||
}
|
||||
ul#menu-left {
|
||||
margin: 0px 30px 0px 0px ;
|
||||
float: right;
|
||||
}
|
||||
#members {
|
||||
background: none repeat scroll 0% 0% transparent;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
float: left;
|
||||
}
|
||||
#members li {
|
||||
float: right;
|
||||
border-left: medium none;
|
||||
}
|
||||
.ui-tabs .ui-tabs-nav li {
|
||||
float: right;
|
||||
}
|
||||
div.rating-cancel, div.star-rating {
|
||||
float: right;
|
||||
}
|
||||
.left {
|
||||
float: right;
|
||||
}
|
||||
input#searchsubmit.left {
|
||||
float:right;
|
||||
}
|
||||
|
||||
#fluid-offset {
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#moresearches a:link, #moresearches a:visited {
|
||||
background: url("../../images/arrow-left-grey-11x6.png") no-repeat scroll right center transparent;
|
||||
margin-left: 0px;
|
||||
padding-left: 0px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
form.single-library .input-wrapper {
|
||||
margin: 0px 0px 0px 237px;
|
||||
}
|
||||
form.multi-libraries .input-wrapper
|
||||
{
|
||||
margin: 0pt 0pt 0pt 416px;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper{
|
||||
float:right;
|
||||
margin-right: 5px;
|
||||
margin-left: -5px;
|
||||
}
|
||||
|
||||
|
||||
form.multi-libraries #filters .jqTransformSelectWrapper {
|
||||
left:230px;
|
||||
right:auto;
|
||||
}
|
||||
form.single-library #filters .jqTransformSelectWrapper,
|
||||
form.multi-libraries #libraries .jqTransformSelectWrapper {
|
||||
left:50px;
|
||||
right:auto;
|
||||
}
|
||||
|
||||
|
||||
form#searchform input[type="submit"] {
|
||||
margin-right: 4px;
|
||||
margin-left: 0pt;
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
right: auto;
|
||||
}
|
||||
ul#i18nMenu li {
|
||||
float:right !important;
|
||||
}
|
||||
div.lang {
|
||||
float:right !important;
|
||||
}
|
||||
|
||||
#main_footer .colright {
|
||||
float: left;
|
||||
}
|
||||
#main_footer .colright .koha {
|
||||
background: url("../../images/img_logo_koha.jpg") no-repeat scroll left bottom transparent;
|
||||
}
|
||||
.yui-t1 #yui-main,
|
||||
.yui-t2 #yui-main,
|
||||
.yui-t3 #yui-main
|
||||
{
|
||||
float: left;
|
||||
}
|
||||
.yui-t1 #yui-main .yui-b {
|
||||
margin-right: 13.3207em;
|
||||
}
|
||||
.yui-t1 #yui-main, .yui-t2 #yui-main, .yui-t3 #yui-main {
|
||||
margin-right: -25em;
|
||||
margin-left: auto;
|
||||
}
|
||||
.yui-t1 #yui-main .yui-b {
|
||||
margin-left: auto;
|
||||
}
|
||||
body#results div#userresults {
|
||||
border-right: 1px solid rgb(200, 200, 196);
|
||||
}
|
||||
|
||||
form#searchform .input-wrapper {
|
||||
right: -39px;
|
||||
left: auto;
|
||||
}
|
||||
.statictabs ul li {
|
||||
float: right;
|
||||
}
|
||||
#auth {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.jqTransformSelectWrapper div a {
|
||||
left: 3px;
|
||||
right: auto;
|
||||
}
|
||||
.jqTransformSelectWrapper div span {
|
||||
float: right;
|
||||
}
|
||||
.resort {
|
||||
float: left;
|
||||
}
|
||||
|
||||
ul#menu-left li a#cartmenulink {
|
||||
padding: 0px 30px 0px 0px ;
|
||||
background: url("../../images/img_toolbar-button-cart.png") no-repeat scroll right center transparent;
|
||||
}
|
||||
ul#menu-left li {
|
||||
float: right;
|
||||
}
|
||||
div#cartDetails {
|
||||
margin-left: -9.5em;
|
||||
}
|
||||
div#listsmenu {
|
||||
margin-left: -70px;
|
||||
}
|
||||
ul#menu-left li#listsmenulink a {
|
||||
padding: 0px 20px 0px 0px;
|
||||
background: url("../../images/img_toolbar-button-lists.png") no-repeat scroll right center transparent;
|
||||
}
|
||||
div.rating-cancel, div.star-rating {
|
||||
float: right !important;
|
||||
}
|
||||
.actions a.addtocart {
|
||||
background-position: 49px -572px;
|
||||
padding-right: 15px;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.actions a.addtoshelf {
|
||||
|
||||
background-position: 45px -27px;
|
||||
padding-right: 13px;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
#social_networks span {
|
||||
float: right;
|
||||
margin: 0.5em 0.5em 0px !important;
|
||||
}
|
||||
#social_networks div {
|
||||
float: right !important;
|
||||
margin: 0.5em 0.2em 0.5em 0px !important;
|
||||
}
|
||||
#action a.addtocart, #toolbar a.addtocart {
|
||||
background-position: 60px -265px;
|
||||
}
|
||||
#action a.print {
|
||||
background-position: 16px -186px;
|
||||
}
|
||||
#action a {
|
||||
padding-right: 35px;
|
||||
padding-left: 0px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
div#menu li a {
|
||||
background: -moz-linear-gradient(right center , rgb(238, 238, 238) 0%, rgb(238, 238, 238) 96%, rgb(230, 230, 230) 97%, rgb(204, 204, 204) 99%, rgb(193, 193, 193) 100%) repeat scroll 0% 0% transparent;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
border: 1px solid rgb(151, 151, 151);
|
||||
font-size: 111%;
|
||||
margin: 0.5em -1px 0.5em 0px;
|
||||
padding: 0.4em 0.3em;
|
||||
}
|
||||
|
||||
#action a.addtoshelf, #toolbar a.addtoshelf {
|
||||
background-image: url("../../images/sprite.png");
|
||||
background-position: 68px -225px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
|
@ -1,353 +0,0 @@
|
|||
@import url("../../../lib/yui/reset-fonts-grids.css");
|
||||
@import url("../../../lib/yui/skin.css");
|
||||
|
||||
a {
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
color : #006699;
|
||||
}
|
||||
|
||||
a:hover,input.editshelf:hover,a.editshelf:hover,input.deleteshelf:hover {
|
||||
color : #990033;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color : white;
|
||||
text-align : left;
|
||||
padding : 0 0 2.5em 0;
|
||||
}
|
||||
|
||||
caption {
|
||||
font-size : 110%;
|
||||
text-align : left;
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
background-color: #FFF;
|
||||
border : 2px solid #EEEEEE;
|
||||
margin : 1em 1em 1em 0;
|
||||
padding : 1em;
|
||||
}
|
||||
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
font-weight : bold;
|
||||
margin : .5em 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size : 138.5%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size : 134%;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size : 123.1%;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size : 116%;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size : 108%;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size : 100%;
|
||||
}
|
||||
|
||||
input[type=submit],
|
||||
input[type=button],
|
||||
input[type=reset],
|
||||
fieldset.brief input[type=submit],
|
||||
fieldset.brief input[type=button],
|
||||
fieldset.brief input[type=reset]
|
||||
{
|
||||
background: #f4f9fc; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #f4f9fc 0%, #dfeefa 4%, #bfd5ea 93%, #a1c4e2 97%, #b8d0e6 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f9fc), color-stop(4%,#dfeefa), color-stop(93%,#bfd5ea), color-stop(97%,#a1c4e2), color-stop(100%,#b8d0e6)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #f4f9fc 0%,#dfeefa 4%,#bfd5ea 93%,#a1c4e2 97%,#b8d0e6 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #f4f9fc 0%,#dfeefa 4%,#bfd5ea 93%,#a1c4e2 97%,#b8d0e6 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #f4f9fc 0%,#dfeefa 4%,#bfd5ea 93%,#a1c4e2 97%,#b8d0e6 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f9fc', endColorstr='#b8d0e6',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #f4f9fc 0%,#dfeefa 4%,#bfd5ea 93%,#a1c4e2 97%,#b8d0e6 100%); /* W3C */
|
||||
border-top: 1px solid #cccccc;
|
||||
border-left: 1px solid #cccccc;
|
||||
border-right: 1px solid #eeeeee;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
color : #333;
|
||||
font-size : 93%;
|
||||
font-weight : bold;
|
||||
padding : 4px;
|
||||
}
|
||||
|
||||
input[type=submit]:active, input[type=button]:active, input[type=reset]:active {
|
||||
border: 1px inset #666666;
|
||||
float : none;
|
||||
}
|
||||
.dialog {
|
||||
border: 1px solid #bcbcbc;
|
||||
padding : .5em;
|
||||
margin : 1em auto;
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
.dialog h2, .dialog h3, .dialog h4 {
|
||||
margin : auto;
|
||||
text-align : center;
|
||||
}
|
||||
|
||||
div.alert {
|
||||
background: #fef8d3; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #fef8d3 0%, #ffec91 9%, #ffed87 89%, #f9dc00 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fef8d3), color-stop(9%,#ffec91), color-stop(89%,#ffed87), color-stop(100%,#f9dc00)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fef8d3', endColorstr='#f9dc00',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* W3C */
|
||||
text-align : center;
|
||||
}
|
||||
|
||||
div.alert strong {
|
||||
color : #900;
|
||||
}
|
||||
|
||||
div.message {
|
||||
background: #ffffff; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #f4f6fa 2%, #eaeef5 23%, #e8edf6 94%, #cddbf2 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(2%,#f4f6fa), color-stop(23%,#eaeef5), color-stop(94%,#e8edf6), color-stop(100%,#cddbf2)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cddbf2',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* W3C */
|
||||
border : 1px solid #bcbcbc;
|
||||
width : 55%;
|
||||
}
|
||||
|
||||
.dialog input {
|
||||
background : #FFF none;
|
||||
border : 1px solid #bcbcbc;
|
||||
margin : .4em;
|
||||
padding : .4em;
|
||||
}
|
||||
|
||||
|
||||
.dialog input.back {
|
||||
background : #FFF url(/opac-tmpl/lib/famfamfam/silk/arrow_left.png) no-repeat 4px center;
|
||||
padding : .4em .4em .4em 25px;
|
||||
}
|
||||
|
||||
.dialog input.return {
|
||||
background : #FFF url(/opac-tmpl/lib/famfamfam/silk/book_previous.png) no-repeat 4px center;
|
||||
padding : .4em .4em .4em 25px;
|
||||
}
|
||||
|
||||
.dialog input.renew {
|
||||
background : #FFF url(/opac-tmpl/lib/famfamfam/silk/arrow_refresh.png) no-repeat 4px center;
|
||||
padding : .4em .4em .4em 25px;
|
||||
}
|
||||
|
||||
.dialog input.cancel {
|
||||
background : #FFF url(/opac-tmpl/lib/famfamfam/silk/cancel.png) no-repeat 4px center;
|
||||
padding : .4em .4em .4em 25px;
|
||||
}
|
||||
|
||||
input.finish {
|
||||
background : #dbe7ff url(/opac-tmpl/lib/famfamfam/silk/stop.png) no-repeat 4px center;
|
||||
border : 1px outset #666;
|
||||
padding : .2em .2em .2em 25px;
|
||||
}
|
||||
|
||||
table {
|
||||
background-color: #FFF;
|
||||
border-collapse : collapse;
|
||||
margin : 1em 0;
|
||||
border-right : 1px solid #dddddd;
|
||||
border-top : 1px solid #dddddd;
|
||||
}
|
||||
|
||||
td,th {
|
||||
background-color: #FFF;
|
||||
border-left : 1px solid #dddddd;
|
||||
border-bottom : 1px solid #dddddd;
|
||||
padding : 3px 3px;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color:#EEE;
|
||||
font-weight : bold;
|
||||
padding : 2px 23px;
|
||||
text-align : center;
|
||||
}
|
||||
|
||||
tr.highlight td, tr.highlight th, tr.odd td {
|
||||
background-color : #F3F3F3;
|
||||
border-top : 1px solid #DDDDDD;
|
||||
border-bottom : 1px solid #DDDDDD;
|
||||
}
|
||||
|
||||
tr.even td, tr.even.highlight td {
|
||||
background-color: #FFF;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: .7em 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
em {
|
||||
font-style : italic;
|
||||
}
|
||||
#borrowerdetails {
|
||||
margin-top : 1em;
|
||||
}
|
||||
#barcode,
|
||||
#patronid {
|
||||
font-size : 125%;
|
||||
padding-bottom : 3px;
|
||||
}
|
||||
input.focus {
|
||||
background-color : #FFC;
|
||||
border : 2px inset #336699;
|
||||
}
|
||||
#checkouthelp {
|
||||
background : #FFF url("/opac-tmpl/lib/famfamfam/silk/help.png") no-repeat 4px center;
|
||||
padding : 3px 3px 3px 26px;
|
||||
position : absolute;
|
||||
top : 0;
|
||||
right : 0;
|
||||
}
|
||||
div.button {
|
||||
float : left;
|
||||
margin-top : 2em;
|
||||
padding : .4em 0;
|
||||
}
|
||||
div.button a:link,
|
||||
div.button a:visited,
|
||||
div.button a:hover,
|
||||
div.button a:active {
|
||||
background : #FFF url(/opac-tmpl/lib/famfamfam/silk/book_previous.png) no-repeat 4px center;
|
||||
border : 1px outset #666;
|
||||
color : #000;
|
||||
padding : .4em .4em .4em 25px;
|
||||
text-decoration : none;
|
||||
}
|
||||
div.button a:active {
|
||||
border : 1px inset #666;
|
||||
}
|
||||
|
||||
div.koha_url {
|
||||
border-top: none !important;
|
||||
}
|
||||
span.koha_url {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
a.koha_url {
|
||||
text-decoration: none;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
div#changelanguage{
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #CCC;
|
||||
color : #666;
|
||||
font-size : 85%;
|
||||
padding : 1em;
|
||||
margin-top : 2em;
|
||||
}
|
||||
|
||||
div#changelanguage a {
|
||||
font-weight : normal;
|
||||
padding : .5em 0;
|
||||
}
|
||||
|
||||
div#changelanguage li.yuimenuitem {
|
||||
font-size: 120%;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
padding: 0 1em;
|
||||
}
|
||||
div#changelanguage li.yuimenuitem a.yuimenuitemlabel {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul#i18nMenu {
|
||||
margin : 0;
|
||||
padding : .2em 0;
|
||||
}
|
||||
|
||||
ul#i18nMenu li {
|
||||
border-left : 1px solid #CCC;
|
||||
display : inline;
|
||||
list-style : none;
|
||||
padding : 0 .4em;
|
||||
}
|
||||
|
||||
ul#i18nMenu li:first-child {
|
||||
border-left : 0;
|
||||
}
|
||||
|
||||
ul#i18nMenu li ul li {
|
||||
border : 0;
|
||||
display : block;
|
||||
padding : 0;
|
||||
}
|
||||
|
||||
|
||||
ul#i18nMenu li.more a {
|
||||
background-image : url("../../images/sprite.png");
|
||||
background-position : 37px -940px;
|
||||
background-repeat:no-repeat;
|
||||
padding-right: 1.3em;
|
||||
}
|
||||
|
||||
ul#i18nMenu li.more ul li a {
|
||||
background-image : none;
|
||||
padding: 0 1.3em;
|
||||
}
|
||||
|
||||
span.lang{
|
||||
float:left;
|
||||
border-right : 1px solid black;
|
||||
padding : 0 .5em;
|
||||
}
|
||||
|
||||
div.ft {
|
||||
clear : both;
|
||||
}
|
||||
|
||||
.sorting_asc {
|
||||
padding-right: 19px;
|
||||
background: url("../../images/asc.gif") no-repeat scroll right center #EEEEEE;
|
||||
}
|
||||
.sorting_desc {
|
||||
padding-right: 19px;
|
||||
background: url("../../images/desc.gif") no-repeat scroll right center #EEEEEE;
|
||||
}
|
||||
.sorting {
|
||||
padding-right: 19px;
|
||||
background: url("../../images/ascdesc.gif") no-repeat scroll right center #EEEEEE;
|
||||
}
|
||||
.nosort,
|
||||
.nosort.sorting_asc,
|
||||
.nosort.sorting_desc,
|
||||
.nosort.sorting {
|
||||
padding-right: 19px;
|
||||
background: #EEEEEE none;
|
||||
}
|
||||
|
||||
#top-bar,
|
||||
#main_footer {
|
||||
display: none;
|
||||
}
|
||||
|
|
@ -1,145 +0,0 @@
|
|||
</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
|
||||
<link rel="shortcut icon" href="[% IF ( OpacFavicon ) %][% OpacFavicon %][% ELSE %][% interface %]/[% theme %]/images/favicon.ico[% END %]" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="[% themelang %]/lib/jquery/jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/opac-tmpl/lib/yui/reset-fonts-grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/opac-tmpl/lib/yui/skin.css" />
|
||||
[% SET opaclayoutstylesheet='opac.css' UNLESS opaclayoutstylesheet %]
|
||||
[% IF (opaclayoutstylesheet.match('^https?:|^\/')) %]
|
||||
<link rel="stylesheet" type="text/css" href="[% opaclayoutstylesheet %]" />
|
||||
[% ELSE %]
|
||||
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/[% opaclayoutstylesheet %]" />
|
||||
[% END %]
|
||||
[% IF ( opaccolorstylesheet ) %]
|
||||
[% IF (opaccolorstylesheet.match('^https?:|^\/')) %]
|
||||
<link rel="stylesheet" type="text/css" href="[% opaccolorstylesheet %]" />
|
||||
[% ELSE %]
|
||||
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/[% opaccolorstylesheet %]" />
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( opac_css_override ) %]
|
||||
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/[% opac_css_override %]" />
|
||||
[% END %]
|
||||
<link rel="stylesheet" type="text/css" media="print" href="[% themelang %]/css/print.css" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
|
||||
<link rel="stylesheet" type="text/css" media="screen and (max-width:700px)" href="[% themelang %]/css/mobile.css" />
|
||||
[% IF ( bidi ) %]
|
||||
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/right-to-left.css" />
|
||||
[% END %]
|
||||
<style id="region-opacmobileusercss" type="text/css" media="screen and (max-width:700px)">[% OPACMobileUserCSS %]</style>
|
||||
<style id="region-opacusercss" type="text/css">[% OPACUserCSS %]</style>
|
||||
[% IF persona %]
|
||||
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/persona-buttons.css" />
|
||||
[% END %]
|
||||
|
||||
<!-- yui js -->
|
||||
<script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script>
|
||||
<script type="text/javascript" src="[% yuipath %]/container/container-min.js"></script>
|
||||
<script type="text/javascript" src="[% yuipath %]/menu/menu-min.js"></script>
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery-ui.js"></script>
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.hoverIntent.minified.js"></script>
|
||||
<script type="text/javascript" src="[% themelang %]/js/script.js"></script>
|
||||
[% IF ( OPACAmazonCoverImages ) %]
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var NO_AMAZON_IMAGE = _("No cover image available");
|
||||
//]]>
|
||||
</script>
|
||||
<script type="text/javascript" src="[% themelang %]/js/amazonimages.js"></script>
|
||||
[% END %]
|
||||
[% IF ( SyndeticsCoverImages ) %]
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var NO_AMAZON_IMAGE = _("No cover image available");
|
||||
//]]>
|
||||
</script>
|
||||
<script type="text/javascript" src="[% themelang %]/js/amazonimages.js"></script> [% END %]
|
||||
|
||||
[% IF ( opacbookbag ) %]<script type="text/javascript" src="[% themelang %]/js/basket.js">
|
||||
[% ELSIF ( virtualshelves ) %]<script type="text/javascript" src="[% themelang %]/js/basket.js">
|
||||
[% ELSE %]<script type="text/javascript"> var readCookie;[% END %]
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
[% IF ( opacbookbag ) %]var MSG_BASKET_EMPTY = _("Your cart is currently empty");
|
||||
var MSG_RECORD_IN_BASKET = _("This item is already in your cart");
|
||||
var MSG_RECORD_ADDED = _("This item has been added to your cart");
|
||||
var MSG_RECORD_REMOVED = _("This item has been removed from your cart");
|
||||
var MSG_NRECORDS_ADDED = _(" item(s) added to your cart");
|
||||
var MSG_NRECORDS_IN_BASKET = _("already in your cart");
|
||||
var MSG_NO_RECORD_SELECTED = _("No item was selected");
|
||||
var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
|
||||
var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
|
||||
var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
|
||||
var MSG_ITEM_IN_CART = _("In your cart");
|
||||
var MSG_IN_YOUR_CART = _("Items in your cart: ");
|
||||
var MSG_ITEM_NOT_IN_CART = _("Add to your cart");
|
||||
$("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><span> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); });
|
||||
[% ELSE %][% IF ( virtualshelves ) %]
|
||||
var MSG_NO_RECORD_SELECTED = _("No item was selected");[% END %][% END %]
|
||||
[% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");
|
||||
var MSG_TAG_ALL_BAD = _("Error! Your tag was entirely markup code. It was NOT added. Please try again with plain text.");
|
||||
var MSG_ILLEGAL_PARAMETER = _("Error! Illegal parameter");
|
||||
var MSG_TAG_SCRUBBED = _("Note: your tag contained markup code that was removed. The tag was added as ");
|
||||
var MSG_ADD_TAG_FAILED = _("Error! The add_tag operation failed on");
|
||||
var MSG_ADD_TAG_FAILED_NOTE = _("Note: you can only tag an item with a given term once. Check 'My Tags' to see your current tags.");
|
||||
var MSG_DELETE_TAG_FAILED = _("Error! You cannot delete the tag");
|
||||
var MSG_DELETE_TAG_FAILED_NOTE = _("Note: you can only delete your own tags.")
|
||||
var MSG_LOGIN_REQUIRED = _("You must be logged in to add tags.");
|
||||
var MSG_TAGS_ADDED = _("Tags added: ");
|
||||
var MSG_TAGS_DELETED = _("Tags added: ");
|
||||
var MSG_TAGS_ERRORS = _("Errors: ");
|
||||
var MSG_MULTI_ADD_TAG_FAILED = _("Unable to add one or more tags.");
|
||||
var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");[% END %][% END %]
|
||||
[% IF ( OPACAmazonCoverImages ) %]$(window).load(function() {
|
||||
verify_images();
|
||||
});[% END %]
|
||||
[% IF ( SyndeticsCoverImages ) %]$(window).load(function() {
|
||||
verify_images();
|
||||
});[% END %]
|
||||
//]]>
|
||||
[% IF ( opacbookbag ) %]</script><script type="text/javascript" src="[% themelang %]/js/basket.js">
|
||||
[% ELSIF ( virtualshelves ) %]</script><script type="text/javascript" src="[% themelang %]/js/basket.js">
|
||||
[% ELSE %]</script><script type="text/javascript">var readCookie;[% END %]</script>
|
||||
[% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]<script type="text/javascript" src="[% themelang %]/js/tags.js"></script>[% END %][% ELSE %][% END %]
|
||||
[% IF ( GoogleJackets ) %]
|
||||
<script type="text/javascript" src="[% themelang %]/js/google-jackets.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var NO_GOOGLE_JACKET = _("No cover image available");
|
||||
//]]>
|
||||
</script>
|
||||
[% END %]
|
||||
[% IF OpenLibraryCovers %]
|
||||
<script type="text/javascript" src="[% themelang %]/js/openlibrary.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var NO_OL_JACKET = _("No cover image available");
|
||||
//]]>
|
||||
</script>
|
||||
[% END %]
|
||||
|
||||
[% IF OPACLocalCoverImages %]
|
||||
<script type="text/javascript" src="[% themelang %]/js/localcovers.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var NO_LOCAL_JACKET = _("No cover image available");
|
||||
//]]>
|
||||
</script>
|
||||
[% END %]
|
||||
|
||||
[% IF ( BakerTaylorEnabled ) %]<script type="text/javascript" src="[% themelang %]/js/bakertaylorimages.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var NO_BAKERTAYLOR_IMAGE = _("No cover image available");
|
||||
$(window).load(function(){
|
||||
bt_verify_images();
|
||||
});
|
||||
//]]>
|
||||
</script>[% END %]
|
||||
<link rel="unapi-server" type="application/xml" title="unAPI" href="[% OPACBaseURL %]/cgi-bin/koha/unapi" />
|
||||
[% IF ( GoogleIndicTransliteration ) %]
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript" src="[% themelang %]/js/googleindictransliteration.js"></script>
|
||||
[% END %]
|
||||
|
|
@ -1,249 +0,0 @@
|
|||
<div id="header-wrapper">
|
||||
|
||||
<div id="opac-custom-header">
|
||||
[% IF ( opacheader ) %]
|
||||
[% opacheader %]
|
||||
[% END %]
|
||||
</div>
|
||||
|
||||
<div id="opac-main-search" class="yui-g">
|
||||
|
||||
<a class="logo" href="/cgi-bin/koha/opac-main.pl">
|
||||
[% UNLESS ( opacsmallimage ) %]
|
||||
[% UNLESS ( LibraryName ) %]
|
||||
<img src="/opac-tmpl/ccsr/images/logo-koha.png" alt="Koha Online Catalog" />
|
||||
[% ELSE %]
|
||||
<img src="/opac-tmpl/ccsr/images/logo-koha.png" alt="[% LibraryName %] Online Catalog" />
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
[% UNLESS ( LibraryName ) %]
|
||||
<img src="[% opacsmallimage %]" alt="Koha Online Catalog" />
|
||||
[% ELSE %]
|
||||
<img src="[% opacsmallimage %]" alt="[% LibraryName %] Online Catalog" />
|
||||
[% END %]
|
||||
[% END %]
|
||||
</a>
|
||||
|
||||
<div id="fluid">
|
||||
|
||||
[% IF ( OpacPublic ) %]
|
||||
<div id="fluid-offset">
|
||||
[% UNLESS ( advsearch ) %]
|
||||
[% IF Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 %]
|
||||
[% IF ( OpacShowFiltersPulldownMobile and not OpacShowLibrariesPulldownMobile ) or ( not OpacShowFiltersPulldownMobile and OpacShowLibrariesPulldownMobile ) %]
|
||||
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries single-field-mobile">
|
||||
[% ELSE %]
|
||||
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries">
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="single-library">
|
||||
[% END %]
|
||||
<label for="masthead_search" class="left"> Search
|
||||
[% UNLESS ( OpacAddMastheadLibraryPulldown ) %]
|
||||
[% IF ( mylibraryfirst ) %] (in [% mylibraryfirst %] only)[% END %]
|
||||
[% END %]
|
||||
</label>
|
||||
[% IF ( OpacShowFiltersPulldownMobile ) %]
|
||||
<div id="filters">
|
||||
[% ELSE %]
|
||||
<div id="filters" class="mobile-hidden">
|
||||
[% END %]
|
||||
<select name="idx" id="masthead_search" class="left">
|
||||
[% IF ( ms_kw ) %]
|
||||
<option selected="selected" value="">Library catalog</option>
|
||||
[% ELSE %]
|
||||
<option value="">Library catalog</option>
|
||||
[% END %]
|
||||
[% IF ( ms_ti ) %]
|
||||
<option selected="selected" value="ti">Title</option>
|
||||
[% ELSE %]
|
||||
<option value="ti">Title</option>
|
||||
[% END %]
|
||||
[% IF ( ms_au ) %]
|
||||
<option selected="selected" value="au">Author</option>
|
||||
[% ELSE %]
|
||||
<option value="au">Author</option>
|
||||
[% END %]
|
||||
[% IF ( ms_su ) %]
|
||||
<option selected="selected" value="su">Subject</option>
|
||||
[% ELSE %]
|
||||
<option value="su">Subject</option>
|
||||
[% END %]
|
||||
[% IF ( ms_nb ) %]
|
||||
<option selected="selected" value="nb">ISBN</option>
|
||||
[% ELSE %]
|
||||
<option value="nb">ISBN</option>
|
||||
[% END %]
|
||||
[% IF ( ms_se ) %]
|
||||
<option selected="selected" value="se">Series</option>
|
||||
[% ELSE %]
|
||||
<option value="se">Series</option>
|
||||
[% END %]
|
||||
[% IF ( ms_callnum ) %]
|
||||
<option selected="selected" value="callnum">Call number</option>
|
||||
[% ELSE %]
|
||||
<option value="callnum">Call number</option>
|
||||
[% END %]</select>
|
||||
</div>
|
||||
|
||||
<div class="input-wrapper">
|
||||
[% IF ( ms_value ) %]
|
||||
<input type="text" id = "transl1" name="q" value="[% ms_value |html %]" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
|
||||
[% ELSE %]
|
||||
<input type="text" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
|
||||
[% END %]
|
||||
</div>
|
||||
|
||||
[% IF Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 %]
|
||||
[% IF ( OpacShowLibrariesPulldownMobile ) %]
|
||||
<div id="libraries">
|
||||
[% ELSE %]
|
||||
<div id="libraries" class="mobile-hidden">
|
||||
[% END %]
|
||||
|
||||
<select name="branch_group_limit" id="select_library" class="left">
|
||||
<option value="">All libraries</option>
|
||||
<optgroup label="Libraries">
|
||||
[% FOREACH BranchesLoo IN BranchesLoop %]
|
||||
[% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
|
||||
[% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
|
||||
[% END %]
|
||||
</optgroup>
|
||||
[% IF BranchCategoriesLoop %]
|
||||
<optgroup label="Groups">
|
||||
[% FOREACH bc IN BranchCategoriesLoop %]
|
||||
[% IF ( bc.selected ) %]
|
||||
<option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
|
||||
[% ELSE %]
|
||||
<option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</optgroup>
|
||||
[% END %]
|
||||
</select>
|
||||
|
||||
</div>
|
||||
[% ELSE %]
|
||||
[% IF ( opac_limit_override ) %]
|
||||
[% IF ( opac_search_limit ) %]
|
||||
<input name="limit" value="[% opac_search_limit %]" type="hidden" />
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
[% IF ( mylibraryfirst ) %]
|
||||
<input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
|
||||
<input type="submit" value="Go" id="searchsubmit" class="left" />
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</form>
|
||||
[% ELSE %] <!--advsearch -->
|
||||
[% IF Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 %]
|
||||
[% IF ( OpacShowFiltersPulldownMobile and not OpacShowLibrariesPulldownMobile ) or ( not OpacShowFiltersPulldownMobile and OpacShowLibrariesPulldownMobile ) %]
|
||||
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries single-field-mobile">
|
||||
[% ELSE %]
|
||||
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries">
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="single-library">
|
||||
[% END %]
|
||||
<label for="masthead_search" class="left"> Search
|
||||
[% UNLESS ( OpacAddMastheadLibraryPulldown ) %]
|
||||
[% IF ( mylibraryfirst ) %] (in [% mylibraryfirst %] only)[% END %]
|
||||
[% END %]
|
||||
</label>
|
||||
[% IF ( OpacShowFiltersPulldownMobile ) %]
|
||||
<div id="filters" class="transparent">
|
||||
[% ELSE %]
|
||||
<div id="filters" class="transparent mobile-hidden">
|
||||
[% END %]
|
||||
<select name="idx" id="masthead_search" class="left" disabled="disabled">
|
||||
<option selected="selected" value="">Library Catalog</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-wrapper">
|
||||
<input type="text" id = "transl1" name="q" class="left transparent" style="width: 35%; font-size: 111%;" disabled="disabled"/><div id="translControl"></div>
|
||||
</div>
|
||||
|
||||
[% IF Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 %]
|
||||
[% IF ( OpacShowLibrariesPulldownMobile ) %]
|
||||
<div id="libraries">
|
||||
[% ELSE %]
|
||||
<div id="libraries" class="mobile-hidden">
|
||||
[% END %]
|
||||
<select name="limit" id="select_library" class="left transparent">
|
||||
<option value="">All Libraries</option>
|
||||
</select>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
|
||||
<input type="submit" value="Go" id="searchsubmit" class="left transparent" disabled="disabled" />
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</form>
|
||||
[% END %]
|
||||
|
||||
<div id="moresearches">
|
||||
<a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
|
||||
[% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>[% END %]
|
||||
[% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>[% END %]
|
||||
[% IF ( OpacAuthorities ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>[% END %]
|
||||
[% IF ( opacuserlogin && ( Koha.Preference( 'reviewson' ) == 1 ) && ( Koha.Preference( 'OpacShowRecentComments' ) == 1 ) ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>[% END %]
|
||||
[% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>[% END %]
|
||||
[% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>[% END %]
|
||||
[% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>[% END %]
|
||||
[% IF ( suggestion ) %]
|
||||
[% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
|
||||
[% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="libraryname">
|
||||
<h1></h1>
|
||||
</div>
|
||||
|
||||
[% END %] <!-- OpacPublic -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="container">
|
||||
<div id="ctn_lt">
|
||||
<div id="ctn_rt">
|
||||
<div id="ctn_lb">
|
||||
<div id="ctn_rb">
|
||||
|
||||
<div id="breadcrumbs" class="yui-g">
|
||||
<p><a href="/cgi-bin/koha/opac-main.pl" title="Home">Home</a>
|
||||
[% IF ( searchdesc ) %]<span class="rsaquo"> › </span><a href="/cgi-bin/koha/opac-search.pl" title="Search">Search</a><span class="rsaquo"> › </span>
|
||||
[% IF ( total ) %]<strong>Your search returned [% total |html %] results.</strong>
|
||||
[% IF ( related ) %] (related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %]). [% END %]
|
||||
<a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&count=[% countrss |html %]&sort_by=acqdate_dsc&format=rss2" class="rsssearchlink">
|
||||
<img src="/opac-tmpl/ccsr/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
|
||||
[% ELSE %]
|
||||
<strong>No results found!</strong>
|
||||
<p>
|
||||
[% IF ( searchdesc ) %]
|
||||
No results found for that in [% LibraryName %] catalog. <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&format=rss2" class="rsssearchlink"><img src="/opac-tmpl/ccsr/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
|
||||
[% ELSE %]
|
||||
You did not specify any search criteria.
|
||||
[% END %]
|
||||
</p>
|
||||
<div id="noresultsfound">
|
||||
[% OPACNoResultsFound %]
|
||||
</div>
|
||||
|
||||
</div>
|
||||
[% END %]</p>[% END %]</div>
|
||||
|
||||
<div class="ctn_in">
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
<div id="region-opacnav">
|
||||
[% OpacNav %]
|
||||
</div>
|
||||
[% IF IsPatronPage %]
|
||||
[% INCLUDE usermenu.inc %]
|
||||
[% END %]
|
||||
<div id="region-opacnavbottom">
|
||||
[% OpacNavBottom %]
|
||||
</div>
|
||||
|
|
@ -1,136 +0,0 @@
|
|||
<div class="ft">
|
||||
[% opaccredits %]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[%# Sticking the div for the top bar here; since the
|
||||
top bar is positioned absolutely in this theme, it
|
||||
it makes the positioning of the rest of the elements
|
||||
easier to keep it out of the doc3 div.
|
||||
%]
|
||||
[% INCLUDE 'top-bar.inc' %]
|
||||
|
||||
<div id="main_footer">
|
||||
<div class="colleft">
|
||||
</div>
|
||||
[% IF ( OpacKohaUrl ) %]
|
||||
<div class="colright">
|
||||
<div class="koha">
|
||||
[% IF template.name.match('opac-main.tt') %]
|
||||
<a class="koha_url" href="http://koha-community.org">Powered by</a>
|
||||
[% ELSE %]
|
||||
<a class="koha_url" rel="nofollow" href="http://koha-community.org">Powered by</a>
|
||||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
[% END %]
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
[% IF ( opaclanguagesdisplay || OpacKohaUrl ) %]
|
||||
[% IF ( languages_loop && opaclanguagesdisplay ) %]
|
||||
[% UNLESS ( one_language_enabled ) %]
|
||||
<div id="changelanguage" class="ft">
|
||||
<div class="lang" style="float:left;padding: 0.1em 0;"><strong>Languages: </strong></div>
|
||||
<ul id="i18nMenu" class="footermenu">
|
||||
[% FOREACH languages_loo IN languages_loop %]
|
||||
|
||||
[% IF ( languages_loo.group_enabled ) %]
|
||||
[% IF ( languages_loo.plural ) %]
|
||||
<li class="more" style="float:left;"><a class="sublangs" id="show[% languages_loo.rfc4646_subtag %]" href="#">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a><div id="sub[% languages_loo.rfc4646_subtag %]">
|
||||
<div class="bd"><ul>
|
||||
[% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
|
||||
[% IF ( sublanguages_loo.enabled ) %]
|
||||
[% IF ( sublanguages_loo.sublanguage_current ) %]
|
||||
<li> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</li>
|
||||
[% ELSE %]
|
||||
<li><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</a></li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% END %]
|
||||
</ul></div></div></li>
|
||||
|
||||
[% ELSE %]
|
||||
[% IF ( languages_loo.group_enabled ) %]
|
||||
[% IF ( languages_loo.current ) %]
|
||||
<li style="float:left;">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</li>
|
||||
[% ELSE %]
|
||||
<li style="float:left;"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a></li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% END %]
|
||||
|
||||
|
||||
<script type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jqtransform_select.js"></script>
|
||||
<script id="region-opacuserjs" type="text/javascript">
|
||||
[% opacuserjs %]
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
//find all form with class jqtransform and apply the plugin
|
||||
$("form#searchform").jqTransform();
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- /ADD JQUERY PLUGIN JQTRANSFORM - LIBÉO -->
|
||||
|
||||
[% IF persona %]
|
||||
<script src="https://login.persona.org/include.js"></script>
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
navigator.id.watch({
|
||||
loggedInUser: [% IF emailaddress && loggedinpersona %]'[% emailaddress %]'[% ELSE %]null[% END %],
|
||||
onlogin: function (assertion) {
|
||||
$.post('/cgi-bin/koha/svc/login',
|
||||
{ assertion: assertion },
|
||||
function (data) {
|
||||
window.location = '/cgi-bin/koha/opac-user.pl';
|
||||
}
|
||||
)
|
||||
.fail(function() {
|
||||
var errstr = _("Could not login, perhaps your Persona email does not match your Koha one");
|
||||
alert(errstr);
|
||||
});
|
||||
},
|
||||
onlogout: function () {
|
||||
window.location = '/cgi-bin/koha/opac-main.pl?logout.x=1';
|
||||
}
|
||||
});
|
||||
|
||||
var signinLink = document.getElementById('browserid');
|
||||
|
||||
if (signinLink) {
|
||||
signinLink.onclick = function(evt) {
|
||||
// Requests a signed identity assertion from the user.
|
||||
navigator.id.request({
|
||||
siteName: "[% LibraryName | html %]",
|
||||
returnTo: '/cgi-bin/koha/opac-user.pl',
|
||||
oncancel: function() { alert('user refuses to share identity.'); }
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
</script>
|
||||
[% END %]
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
<div id="top-bar">
|
||||
<ul id="menu-left">
|
||||
<!-- [% IF ( opacbookbag ) %] -->
|
||||
<li>
|
||||
<span id="cmspan"></span>
|
||||
<div id="cartDetails">Your cart is empty.</div>
|
||||
</li>
|
||||
<!-- [% END %] -->
|
||||
|
||||
[% IF ( virtualshelves ) %]
|
||||
|
||||
<li id="listsmenulink">
|
||||
<a href="/cgi-bin/koha/opac-shelves.pl" class="">
|
||||
<span>Lists</span>
|
||||
</a>
|
||||
<div id="listsmenu" class="yuimenu" style="display: none">
|
||||
<h4>Public lists</h4>
|
||||
[% IF ( pubshelves ) %]
|
||||
<ul class="first-of-type">
|
||||
[% FOREACH pubshelvesloo IN pubshelvesloop %]
|
||||
<li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
|
||||
[% END %]
|
||||
<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">[View All]</a></li>
|
||||
</ul>
|
||||
[% ELSE %]
|
||||
No public lists
|
||||
[% END %]
|
||||
[% IF ( opacuserlogin ) %]
|
||||
<h4>Your lists</h4>
|
||||
[% IF ( loggedinusername ) %]
|
||||
[% IF ( barshelves ) %]
|
||||
<ul class="first-of-type">
|
||||
[% FOREACH barshelvesloo IN barshelvesloop %]
|
||||
<li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li>
|
||||
[% END %]
|
||||
<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[View all]</a></li>
|
||||
</ul>
|
||||
[% ELSE %]
|
||||
<ul class="first-of-type">
|
||||
<li>No private lists</li>
|
||||
<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[New list]</a></li></ul>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to create your own lists</a></li></ul>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</div><!-- /listmenu /virtualshelves -->
|
||||
[% END %]
|
||||
<div id="listsDetails"></div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div id="members">
|
||||
[% IF ( opacuserlogin ) %]
|
||||
<ul>
|
||||
[% UNLESS ( loggedinusername ) %]
|
||||
<li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>[% END %]
|
||||
[% IF ( loggedinusername ) %]
|
||||
<li><span class="members">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</span></a></span></li>
|
||||
|
||||
[% END %]
|
||||
[% IF ( EnableOpacSearchHistory ) %]
|
||||
<li><a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a></li>
|
||||
[% END %]
|
||||
[% IF ( loggedinusername ) %]<li>[% IF persona %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>[% ELSE %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">[% END %]Log Out</a></li>[% END %]
|
||||
</ul>
|
||||
[% END %]
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</div>
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
[% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %]
|
||||
<div id="menu">
|
||||
<ul>
|
||||
[% IF ( userview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-user.pl">my summary</a></li>
|
||||
[% IF ( OPACFinesTab ) %]
|
||||
[% IF ( accountview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-account.pl">my fines</a></li>
|
||||
[% END %]
|
||||
[% IF ( userupdateview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-memberentry.pl">my personal details</a></li>
|
||||
[% IF ( TagsEnabled ) %]
|
||||
[% IF ( tagsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-tags.pl?mine=1">my tags</a></li>
|
||||
[% END %]
|
||||
[% IF ( OpacPasswordChange ) %]
|
||||
[% IF ( passwdview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-passwd.pl">change my password</a></li>
|
||||
[% END %]
|
||||
[% IF EnableOpacSearchHistory %]
|
||||
[% IF ( searchhistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-search-history.pl">my search history</a></li>
|
||||
[% END %]
|
||||
[% IF ( opacreadinghistory ) %]
|
||||
[% IF ( readingrecview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-readingrecord.pl">my reading history</a></li>
|
||||
[% IF ( OPACPrivacy ) %]
|
||||
[% IF ( privacyview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-privacy.pl">my privacy</a></li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( suggestion ) %]
|
||||
[% UNLESS ( AnonSuggestions ) %]
|
||||
[% IF ( suggestionsview ) %]<li class="active suggestions">[% ELSE %]<li class="suggestions">[% END %]<a href="/cgi-bin/koha/opac-suggestions.pl">my purchase suggestions</a></li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( EnhancedMessagingPreferences ) %]
|
||||
[% IF ( messagingview ) %]<li class="active messaging">[% ELSE %]<li class="messaging">[% END %]<a href="/cgi-bin/koha/opac-messaging.pl">my messaging</a></li>
|
||||
[% END %]
|
||||
[% IF ( virtualshelves ) %]
|
||||
[% IF ( listsview ) %]<li class="active privateshelves">[% ELSE %]<li class="privateshelves">[% END %]<a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">my lists</a></li>
|
||||
[% END %]
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
[% END %][% ELSE %][% END %]
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
|
||||
function verify_images() {
|
||||
$("img").each(function(i){
|
||||
if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('syndetics.com') >=0) ) {
|
||||
w = this.width;
|
||||
h = this.height;
|
||||
if ((w == 1) || (h == 1)) {
|
||||
$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>");
|
||||
} else if ((this.complete != null) && (!this.complete)) {
|
||||
$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
|
||||
function bt_verify_images() {
|
||||
$("img").each(function(i){
|
||||
if (this.src.indexOf('btol.com') >= 0) {
|
||||
h = this.height;
|
||||
if (h == 20) {
|
||||
$(this).before("<span class=\"no-image\" style=\"margin-bottom:5px;width:80px;\">"+NO_BAKERTAYLOR_IMAGE+"</span>");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -1,546 +0,0 @@
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
// BASIC FUNCTIONS FOR COOKIE MANAGEMENT //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var CGIBIN = "/cgi-bin/koha/";
|
||||
|
||||
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
|
||||
if(valCookie){
|
||||
var arrayRecords = valCookie.split("/");
|
||||
if(arrayRecords.length > 0){
|
||||
var basketcount = arrayRecords.length-1;
|
||||
} else {
|
||||
var basketcount = "";
|
||||
}
|
||||
} else {
|
||||
var basketcount = "";
|
||||
}
|
||||
|
||||
function writeCookie(name, val, wd) {
|
||||
if (wd) {
|
||||
parent.opener.document.cookie = name + "=" + val;
|
||||
}
|
||||
else {
|
||||
parent.document.cookie = name + "=" + val;
|
||||
}
|
||||
}
|
||||
|
||||
function readCookieValue (str, val_beg) {
|
||||
var val_end = str.indexOf(";", val_end);
|
||||
if (val_end == -1)
|
||||
val_end = str.length;
|
||||
return str.substring(val_beg, val_end);
|
||||
}
|
||||
|
||||
function readCookie(name, wd) {
|
||||
var str_name = name + "=";
|
||||
var str_len = str_name.length;
|
||||
var str_cookie = "";
|
||||
if (wd) {
|
||||
str_cookie = parent.opener.document.cookie;
|
||||
}
|
||||
else {
|
||||
str_cookie = parent.document.cookie;
|
||||
}
|
||||
// fixed - getting the part of the basket that is bib_list
|
||||
var cookie_parts = str_cookie.split(";");
|
||||
for(var i=0;i < cookie_parts.length;i++) {
|
||||
var c = cookie_parts[i];
|
||||
while (c.charAt(0)==' ') c = c.substring(1,c.length);
|
||||
if(c.indexOf(str_name) == 0) return c.substring(str_name.length,c.length);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function delCookie(name) {
|
||||
var exp = new Date();
|
||||
exp.setTime(exp.getTime()-1);
|
||||
if(parent.opener){
|
||||
parent.opener.document.cookie = name + "=null; expires=" + exp.toGMTString();
|
||||
} else {
|
||||
document.cookie = name + "=null; expires=" + exp.toGMTString();
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// SPECIFIC FUNCTIONS USING COOKIES //
|
||||
///////////////////////////////////////////////////////////////////
|
||||
|
||||
function openBasket() {
|
||||
var strCookie = "";
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
if ( valCookie ) {
|
||||
strCookie = nameCookie + "=" + valCookie;
|
||||
}
|
||||
|
||||
if ( strCookie ) {
|
||||
var iW = 820;
|
||||
var iH = 450;
|
||||
var optWin = "status=yes,scrollbars=yes,resizable=yes,toolbar=no,location=yes,height="+iH+",width="+iW;
|
||||
var loc = CGIBIN + "opac-basket.pl?" + strCookie;
|
||||
var basket = open(loc, "basket", optWin);
|
||||
if (window.focus) {basket.focus()}
|
||||
}
|
||||
else {
|
||||
showCartUpdate(MSG_BASKET_EMPTY);
|
||||
}
|
||||
}
|
||||
|
||||
function addRecord(val, selection,NoMsgAlert) {
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
var write = 0;
|
||||
|
||||
if ( ! valCookie ) { // empty basket
|
||||
valCookie = val + '/';
|
||||
write = 1;
|
||||
updateBasket(1);
|
||||
}
|
||||
else {
|
||||
// is this record already in the basket ?
|
||||
var found = false;
|
||||
var arrayRecords = valCookie.split("/");
|
||||
for (var i = 0; i < valCookie.length - 1; i++) {
|
||||
if (val == arrayRecords[i]) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ( found ) {
|
||||
if (selection) {
|
||||
return 0;
|
||||
}
|
||||
if (! NoMsgAlert ) {
|
||||
showCartUpdate(MSG_RECORD_IN_BASKET);
|
||||
}
|
||||
}
|
||||
else {
|
||||
valCookie += val + '/';
|
||||
write = 1;
|
||||
updateBasket(arrayRecords.length);
|
||||
}
|
||||
}
|
||||
|
||||
if (write) {
|
||||
writeCookie(nameCookie, valCookie);
|
||||
if (selection) { // when adding a selection of records
|
||||
updateLink(val,"add");
|
||||
return 1;
|
||||
}
|
||||
if (! NoMsgAlert ) {
|
||||
showCartUpdate(MSG_RECORD_ADDED);
|
||||
updateLink(val,"add");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function AllAreChecked(s){
|
||||
if (! s.length) { return false;}
|
||||
var l = s.length;
|
||||
for (var i=0; i < l; i++) {
|
||||
if(! s[i].checked) { return false; }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function SelectAll(){
|
||||
if(document.bookbag_form.biblionumber.length > 0) {
|
||||
var checky = AllAreChecked(document.bookbag_form.biblionumber);
|
||||
var l = document.bookbag_form.biblionumber.length;
|
||||
for (var i=0; i < l; i++) {
|
||||
document.bookbag_form.biblionumber[i].checked = (checky) ? false : true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addMultiple(){
|
||||
var c_value = "";
|
||||
if(document.bookbag_form.biblionumber.length > 0) {
|
||||
for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
|
||||
if (document.bookbag_form.biblionumber[i].checked) {
|
||||
c_value = c_value + document.bookbag_form.biblionumber[i].value + "/";
|
||||
}
|
||||
}
|
||||
addSelRecords(c_value);
|
||||
} else {
|
||||
c_value = c_value + document.bookbag_form.biblionumber.value + "/";
|
||||
addSelRecords(c_value);
|
||||
}
|
||||
}
|
||||
|
||||
function addSelRecords(valSel) { // function for adding a selection of biblios to the basket
|
||||
// from the results list
|
||||
var arrayRecords = valSel.split("/");
|
||||
var i = 0;
|
||||
var nbAdd = 0;
|
||||
for (i=0;i<arrayRecords.length;i++) {
|
||||
if (arrayRecords[i]) {
|
||||
nbAdd += addRecord(arrayRecords[i], 1);
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
var msg = "";
|
||||
if (nbAdd) {
|
||||
if (i > nbAdd) {
|
||||
msg = nbAdd+" "+MSG_NRECORDS_ADDED+", "+(i-nbAdd)+" "+MSG_NRECORDS_IN_BASKET;
|
||||
}
|
||||
else {
|
||||
msg = nbAdd+" "+MSG_NRECORDS_ADDED;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (i < 1) {
|
||||
msg = MSG_NO_RECORD_SELECTED;
|
||||
}
|
||||
else {
|
||||
msg = MSG_NO_RECORD_ADDED+" ("+MSG_NRECORDS_IN_BASKET+") !";
|
||||
}
|
||||
}
|
||||
showCartUpdate(msg);
|
||||
}
|
||||
|
||||
function showCartUpdate(msg){
|
||||
// set body of popup window
|
||||
$("#cartDetails").html(msg);
|
||||
showCart();
|
||||
setTimeout("hideCart()",2000);
|
||||
}
|
||||
|
||||
function showListsUpdate(msg){
|
||||
// set body of popup window
|
||||
$("#listsDetails").html(msg);
|
||||
showLists();
|
||||
setTimeout("hideLists()",2000);
|
||||
}
|
||||
|
||||
function selRecord(num, status) {
|
||||
var str = document.myform.records.value
|
||||
if (status){
|
||||
str += num+"/";
|
||||
}
|
||||
else {
|
||||
str = delRecord(num, str);
|
||||
}
|
||||
|
||||
document.myform.records.value = str;
|
||||
}
|
||||
|
||||
function delSingleRecord(biblionumber){
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
var arrayRecords = valCookie.split("/");
|
||||
var pos = jQuery.inArray(biblionumber,arrayRecords);
|
||||
arrayRecords.splice(pos,1);
|
||||
valCookie = arrayRecords.join("/");
|
||||
writeCookie( nameCookie, valCookie );
|
||||
updateBasket( arrayRecords.length-1 );
|
||||
updateLink(biblionumber,"del");
|
||||
showCartUpdate(MSG_RECORD_REMOVED);
|
||||
}
|
||||
|
||||
function delSelRecords() {
|
||||
var recordsSel = 0;
|
||||
var end = 0;
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie, 1);
|
||||
if (valCookie) {
|
||||
var str = document.myform.records.value;
|
||||
if (str.length > 0){
|
||||
recordsSel = 1;
|
||||
var str2 = valCookie;
|
||||
while (!end){
|
||||
s = str.indexOf("/");
|
||||
if (s>0){
|
||||
num = str.substring(0, s);
|
||||
str = delRecord(num,str);
|
||||
str2 = delRecord(num,str2);
|
||||
updateLink(num,"del",top.opener);
|
||||
} else {
|
||||
end = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (str2.length == 0) { // equivalent to emptying the basket
|
||||
var rep = false;
|
||||
rep = confirm(MSG_CONFIRM_DEL_BASKET);
|
||||
if (rep) {
|
||||
delCookie(nameCookie);
|
||||
document.location = "about:blank";
|
||||
updateBasket(0,top.opener);
|
||||
window.close();
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
writeCookie(nameCookie, str2, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (recordsSel) {
|
||||
var strCookie = "";
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie, 1);
|
||||
strCookie = nameCookie + "=" + valCookie;
|
||||
var arrayRecords = valCookie.split("/");
|
||||
updateBasket(arrayRecords.length-1,top.opener);
|
||||
document.location = CGIBIN + "opac-basket.pl?" + strCookie;
|
||||
}
|
||||
else {
|
||||
alert(MSG_NO_RECORD_SELECTED);
|
||||
}
|
||||
}
|
||||
|
||||
function delRecord (n, s) {
|
||||
var re = /\d/;
|
||||
var aux = s;
|
||||
var found = 0;
|
||||
var pos = -1;
|
||||
|
||||
while (!found) {
|
||||
pos = aux.indexOf(n, pos+1);
|
||||
var charAfter = aux.charAt(pos+n.length); // character right after the researched string
|
||||
if (charAfter.match(re)) { // record number inside another one
|
||||
continue;
|
||||
}
|
||||
else { // good record number
|
||||
aux = s.substring(0, pos)+ s.substring(pos+n.length+1, s.length);
|
||||
s = aux;
|
||||
found = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
function delBasket() {
|
||||
var nameCookie = "bib_list";
|
||||
|
||||
var rep = false;
|
||||
rep = confirm(MSG_CONFIRM_DEL_BASKET);
|
||||
if (rep) {
|
||||
delCookie(nameCookie);
|
||||
updateAllLinks(top.opener);
|
||||
document.location = "about:blank";
|
||||
updateBasket(0,top.opener);
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function quit() {
|
||||
if (document.myform.records.value) {
|
||||
var rep = false;
|
||||
rep = confirm(MSG_CONFIRM_DEL_RECORDS);
|
||||
if (rep) {
|
||||
delSelRecords();
|
||||
}
|
||||
}
|
||||
updateBasket(arrayRecords.length-1,top.opener);
|
||||
window.close();
|
||||
}
|
||||
|
||||
function sendBasket() {
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
var strCookie = nameCookie + "=" + valCookie;
|
||||
|
||||
var loc = CGIBIN + "opac-sendbasket.pl?" + strCookie;
|
||||
|
||||
var optWin="scrollbars=no,resizable=no,height=300,width=450,top=50,left=100";
|
||||
var win_form = open(loc,"win_form",optWin);
|
||||
}
|
||||
|
||||
function downloadBasket() {
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
var strCookie = nameCookie + "=" + valCookie;
|
||||
|
||||
var loc = CGIBIN + "opac-downloadcart.pl?" + strCookie;
|
||||
|
||||
open(loc,"win_form",'scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
|
||||
}
|
||||
|
||||
function printBasket() {
|
||||
var loc = document.location + "&print=1";
|
||||
document.location = loc;
|
||||
}
|
||||
|
||||
function showMore() {
|
||||
var strCookie = "";
|
||||
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
if (valCookie) {
|
||||
strCookie = nameCookie + "=" + valCookie;
|
||||
}
|
||||
var loc = CGIBIN + "opac-basket.pl?" + strCookie + "&verbose=1";
|
||||
document.location = loc;
|
||||
}
|
||||
|
||||
function showLess() {
|
||||
var strCookie = "";
|
||||
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
if (valCookie) {
|
||||
strCookie = nameCookie + "=" + valCookie;
|
||||
}
|
||||
var loc = CGIBIN + "opac-basket.pl?" + strCookie + "&verbose=0";
|
||||
document.location = loc;
|
||||
}
|
||||
|
||||
function holdSel() {
|
||||
var items = document.getElementById('records').value;
|
||||
if (items) {
|
||||
parent.opener.document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers=" + items;
|
||||
window.close();
|
||||
} else {
|
||||
alert(MSG_NO_RECORD_SELECTED);
|
||||
}
|
||||
}
|
||||
|
||||
function updateBasket(updated_value,target) {
|
||||
if(target){
|
||||
target.$('#basketcount').html("<span>"+updated_value+"</span>");
|
||||
target.$('#cartDetails').html(MSG_IN_YOUR_CART+updated_value);
|
||||
} else {
|
||||
$('#basketcount').html("<span>"+updated_value+"</span>");
|
||||
$('#cartDetails').html(MSG_IN_YOUR_CART+updated_value);
|
||||
}
|
||||
var basketcount = updated_value;
|
||||
}
|
||||
|
||||
function openBiblio(dest,biblionumber) {
|
||||
openerURL=dest+"?biblionumber="+biblionumber;
|
||||
opener.document.location = openerURL;
|
||||
opener.focus();
|
||||
}
|
||||
|
||||
function addSelToShelf() {
|
||||
var items = document.getElementById('records').value;
|
||||
if(items){
|
||||
document.location = "/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber="+items;
|
||||
} else {
|
||||
alert(MSG_NO_RECORD_SELECTED);
|
||||
}
|
||||
}
|
||||
|
||||
/// vShelfAdd() builds url string for multiple-biblio adds.
|
||||
|
||||
function vShelfAdd() {
|
||||
bibs= new Array;
|
||||
if(document.bookbag_form.biblionumber.length > 0) {
|
||||
for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
|
||||
if (document.bookbag_form.biblionumber[i].checked) {
|
||||
bibs.push("biblionumber=" + document.bookbag_form.biblionumber[i].value);
|
||||
}
|
||||
}
|
||||
if (bibs.length == 0) { showListsUpdate(MSG_NO_RECORD_SELECTED); }
|
||||
return bibs.join("&");
|
||||
} else {
|
||||
if (document.bookbag_form.biblionumber.checked) {
|
||||
return "biblionumber=" + document.bookbag_form.biblionumber.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function showCart(){
|
||||
var position = $("#cartmenulink").offset();
|
||||
var scrolld = $(window).scrollTop();
|
||||
var top = position.top + $("#cartmenulink").outerHeight();
|
||||
if( scrolld > top ){
|
||||
top = scrolld + 15;
|
||||
}
|
||||
var menuWidth = 200;
|
||||
var buttonWidth = $("#cartmenulink").innerWidth();
|
||||
var buttonOffset = menuWidth - buttonWidth;
|
||||
var left = position.left;
|
||||
$("#cartDetails").css("position","fixed").css("left",left);
|
||||
$("#cartDetails").fadeIn("fast");
|
||||
}
|
||||
|
||||
function showLists(){
|
||||
var position = $("#listsmenulink").offset();
|
||||
var top = position.top + $("#listsmenulink").outerHeight();
|
||||
var menuWidth = 200;
|
||||
var buttonWidth = $("#listsmenulink").innerWidth();
|
||||
var buttonOffset = menuWidth - buttonWidth;
|
||||
var left = position.left;
|
||||
$("#listsDetails").css("position","fixed").css("top",top);
|
||||
$("#listsDetails").css("position","fixed").css("left",left);
|
||||
$("#listsDetails").fadeIn("fast");
|
||||
}
|
||||
|
||||
function hideCart(){
|
||||
$("#cartDetails").fadeOut("fast");
|
||||
}
|
||||
|
||||
function hideLists(){
|
||||
$("#listsDetails").fadeOut("fast");
|
||||
}
|
||||
|
||||
function updateLink(val,op,target){
|
||||
if(target){
|
||||
if(op == "add"){
|
||||
target.$("a.cart"+val).html(MSG_ITEM_IN_CART).addClass("incart");
|
||||
target.$("a.cartR"+val).show();
|
||||
} else {
|
||||
target.$("a.cart"+val).html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart cart"+val);
|
||||
target.$("a.cartR"+val).hide();
|
||||
}
|
||||
} else {
|
||||
if(op == "add"){
|
||||
$("a.cart"+val).html(MSG_ITEM_IN_CART).addClass("incart");
|
||||
$("a.cartR"+val).show();
|
||||
} else {
|
||||
$("a.cart"+val).html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart cart"+val);
|
||||
$("a.cartR"+val).hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function updateAllLinks(target){
|
||||
if(target){
|
||||
target.$("a.incart").html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart");
|
||||
target.$("a.cartRemove").hide();
|
||||
} else {
|
||||
$("a.incart").html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart");
|
||||
$("a.cartRemove").hide();
|
||||
}
|
||||
}
|
||||
|
||||
$("#cartDetails").ready(function(){
|
||||
$("#cartDetails,#cartmenulink").click(function(){ hideCart(); });
|
||||
$("#cartmenulink").click(function(){ openBasket(); return false; });
|
||||
$("#cartmenulink").hoverIntent(function(){
|
||||
showCart();
|
||||
},function(){
|
||||
hideCart();
|
||||
});
|
||||
if(basketcount){ updateBasket(basketcount) }
|
||||
});
|
||||
|
||||
$("#listsmenu").ready(function(){
|
||||
$("#listsmenulink").mouseenter(function(){
|
||||
var position = $("#listsmenulink").offset();
|
||||
var top = position.top + $("#listsmenulink").outerHeight();
|
||||
var menuWidth = 200;
|
||||
var buttonWidth = $("#listsmenulink").innerWidth();
|
||||
var buttonOffset = menuWidth - buttonWidth;
|
||||
var left = position.left;
|
||||
$("#listsmenu").css("position","fixed").css("top",top);
|
||||
$("#listsmenu").css("position","fixed").css("left",left);
|
||||
$("#listsmenu").fadeIn("fast");
|
||||
});
|
||||
$("#listsmenulink").mouseleave(function(){
|
||||
$("#listsmenu").fadeOut("fast");
|
||||
});
|
||||
});
|
||||
|
|
@ -1,100 +0,0 @@
|
|||
// These default options are for translation but can be used
|
||||
// for any other datatables settings
|
||||
// MSG_DT_* variables comes from datatables-strings.inc
|
||||
// To use it, write:
|
||||
// $("#table_id").dataTable($.extend(true, {}, dataTableDefaults, {
|
||||
// // other settings
|
||||
// } ) );
|
||||
var dataTablesDefaults = {
|
||||
"oLanguage": {
|
||||
"oPaginate": {
|
||||
"sFirst" : window.MSG_DT_FIRST || "First",
|
||||
"sLast" : window.MSG_DT_LAST || "Last",
|
||||
"sNext" : window.MSG_DT_NEXT || "Next",
|
||||
"sPrevious" : window.MSG_DT_PREVIOUS || "Previous"
|
||||
},
|
||||
"sEmptyTable" : window.MSG_DT_EMPTY_TABLE || "No data available in table",
|
||||
"sInfo" : window.MSG_DT_INFO || "Showing _START_ to _END_ of _TOTAL_ entries",
|
||||
"sInfoEmpty" : window.MSG_DT_INFO_EMPTY || "No entries to show",
|
||||
"sInfoFiltered" : window.MSG_DT_INFO_FILTERED || "(filtered from _MAX_ total entries)",
|
||||
"sLengthMenu" : window.MSG_DT_LENGTH_MENU || "Show _MENU_ entries",
|
||||
"sLoadingRecords" : window.MSG_DT_LOADING_RECORDS || "Loading...",
|
||||
"sProcessing" : window.MSG_DT_PROCESSING || "Processing...",
|
||||
"sSearch" : window.MSG_DT_SEARCH || "Search:",
|
||||
"sZeroRecords" : window.MSG_DT_ZERO_RECORDS || "No matching records found"
|
||||
},
|
||||
// "aaSorting": [$(" - select row position of th -")],
|
||||
"sDom": 't',
|
||||
"bPaginate": false,
|
||||
// "fnHeaderCallback": function() {
|
||||
// return $('th.sorting.nosort,th.sorting_desc.nosort,th.sorting_asc.nosort').removeClass("sorting sorting_desc sorting_asc").unbind("click");
|
||||
// }
|
||||
};
|
||||
|
||||
/* Plugin to allow sorting on data stored in a span's title attribute
|
||||
*
|
||||
* Ex: <td><span title="[% ISO_date %]">[% formatted_date %]</span></td>
|
||||
*
|
||||
* In DataTables config:
|
||||
* "aoColumns": [
|
||||
* { "sType": "title-string" },
|
||||
* ]
|
||||
* http://datatables.net/plug-ins/sorting#hidden_title_string
|
||||
*/
|
||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
"title-string-pre": function ( a ) {
|
||||
return a.match(/title="(.*?)"/)[1].toLowerCase();
|
||||
},
|
||||
|
||||
"title-string-asc": function ( a, b ) {
|
||||
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
||||
},
|
||||
|
||||
"title-string-desc": function ( a, b ) {
|
||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||
}
|
||||
} );
|
||||
|
||||
(function() {
|
||||
|
||||
/* Plugin to allow text sorting to ignore articles
|
||||
*
|
||||
* In DataTables config:
|
||||
* "aoColumns": [
|
||||
* { "sType": "anti-the" },
|
||||
* ]
|
||||
* Based on the plugin found here:
|
||||
* http://datatables.net/plug-ins/sorting#anti_the
|
||||
* Modified to exclude HTML tags from sorting
|
||||
* Extended to accept a string of space-separated articles
|
||||
* from a configuration file (in English, "a," "an," and "the")
|
||||
*/
|
||||
|
||||
if(CONFIG_EXCLUDE_ARTICLES_FROM_SORT){
|
||||
var articles = CONFIG_EXCLUDE_ARTICLES_FROM_SORT.split(" ");
|
||||
var rpattern = "";
|
||||
for(i=0;i<articles.length;i++){
|
||||
rpattern += "^" + articles[i] + " ";
|
||||
if(i < articles.length - 1){ rpattern += "|"; }
|
||||
}
|
||||
var re = new RegExp(rpattern, "i");
|
||||
}
|
||||
|
||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
"anti-the-pre": function ( a ) {
|
||||
var x = String(a).replace( /<[\s\S]*?>/g, "" );
|
||||
var y = x.trim();
|
||||
var z = y.replace(re, "").toLowerCase();
|
||||
return z;
|
||||
},
|
||||
|
||||
"anti-the-asc": function ( a, b ) {
|
||||
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
||||
},
|
||||
|
||||
"anti-the-desc": function ( a, b ) {
|
||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||
}
|
||||
});
|
||||
|
||||
}());
|
||||
|
|
@ -1,76 +0,0 @@
|
|||
if (typeof KOHA == "undefined" || !KOHA) {
|
||||
var KOHA = {};
|
||||
}
|
||||
|
||||
/**
|
||||
* A namespace for Google related functions.
|
||||
*/
|
||||
KOHA.Google = {
|
||||
|
||||
|
||||
/**
|
||||
* Search all:
|
||||
* <div title="biblionumber" id="isbn" class="gbs-thumbnail"></div>
|
||||
* or
|
||||
* <div title="biblionumber" id="isbn" class="gbs-thumbnail-preview"></div>
|
||||
* and run a search with all collected isbns to Google Book Search.
|
||||
* The result is asynchronously returned by Google and catched by
|
||||
* gbsCallBack().
|
||||
*/
|
||||
GetCoverFromIsbn: function(newWindow) {
|
||||
var bibkeys = [];
|
||||
$("[id^=gbs-thumbnail]").each(function(i) {
|
||||
bibkeys.push($(this).attr("class")); // id=isbn
|
||||
});
|
||||
bibkeys = bibkeys.join(',');
|
||||
var scriptElement = document.createElement("script");
|
||||
this.openInNewWindow=newWindow;
|
||||
scriptElement.setAttribute("id", "jsonScript");
|
||||
scriptElement.setAttribute("src",
|
||||
"http://books.google.com/books?bibkeys=" + escape(bibkeys) +
|
||||
"&jscmd=viewapi&callback=KOHA.Google.gbsCallBack");
|
||||
scriptElement.setAttribute("type", "text/javascript");
|
||||
document.documentElement.firstChild.appendChild(scriptElement);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Add cover pages <div
|
||||
* and link to preview if div id is gbs-thumbnail-preview
|
||||
*/
|
||||
gbsCallBack: function(booksInfo) {
|
||||
var target = '';
|
||||
if (this.openInNewWindow) {
|
||||
target = 'target="_blank" ';
|
||||
}
|
||||
for (id in booksInfo) {
|
||||
var book = booksInfo[id];
|
||||
$("[id^=gbs-thumbnail]."+book.bib_key).each(function() {
|
||||
var a = document.createElement("a");
|
||||
a.href = book.info_url;
|
||||
if (typeof(book.thumbnail_url) != "undefined") {
|
||||
var img = document.createElement("img");
|
||||
img.src = book.thumbnail_url;
|
||||
$(this).append(img);
|
||||
var re = /^gbs-thumbnail-preview/;
|
||||
if ( re.exec($(this).attr("id")) ) {
|
||||
$(this).append(
|
||||
'<div style="margin-bottom:5px; margin-top:-5px;font-size:9px">' +
|
||||
'<a '+target+'href="' +
|
||||
book.info_url +
|
||||
'"><img src="' +
|
||||
'http://books.google.com/intl/en/googlebooks/images/gbs_preview_sticker1.gif' +
|
||||
'"></a></div>'
|
||||
);
|
||||
}
|
||||
} else {
|
||||
var message = document.createElement("span");
|
||||
$(message).attr("class","no-image");
|
||||
$(message).html(NO_GOOGLE_JACKET);
|
||||
$(this).append(message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
// Load the Google Transliteration API
|
||||
google.load("elements", "1", {
|
||||
packages: "transliteration"
|
||||
});
|
||||
|
||||
function onLoad() {
|
||||
var options = {
|
||||
sourceLanguage: 'en',
|
||||
destinationLanguage: ['hi','kn','ml','ta','te'],
|
||||
shortcutKey: 'ctrl+g',
|
||||
transliterationEnabled: true
|
||||
};
|
||||
|
||||
// Create an instance on TransliterationControl with the required
|
||||
// options.
|
||||
var control =
|
||||
new google.elements.transliteration.TransliterationControl(options);
|
||||
|
||||
// Enable transliteration in the textfields with the given ids.
|
||||
var ids = [ "transl1" ];
|
||||
control.makeTransliteratable(ids);
|
||||
|
||||
// Show the transliteration control which can be used to toggle between
|
||||
// English and Hindi and also choose other destination language.
|
||||
control.showControl('translControl');
|
||||
}
|
||||
google.setOnLoadCallback(onLoad);
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
if (typeof KOHA == "undefined" || !KOHA) {
|
||||
var KOHA = {};
|
||||
}
|
||||
|
||||
/**
|
||||
* A namespace for local cover related functions.
|
||||
*/
|
||||
KOHA.LocalCover = {
|
||||
|
||||
|
||||
/**
|
||||
* Search all:
|
||||
* <div title="biblionumber" id="isbn" class="openlibrary-thumbnail"></div>
|
||||
* or
|
||||
* <div title="biblionumber" id="isbn" class="openlibrary-thumbnail-preview"></div>
|
||||
* and run a search with all collected isbns to Open Library Book Search.
|
||||
* The result is asynchronously returned by OpenLibrary and catched by
|
||||
* olCallBack().
|
||||
*/
|
||||
GetCoverFromBibnumber: function(uselink) {
|
||||
$("div[id^=local-thumbnail],span[id^=local-thumbnail]").each(function(i) {
|
||||
var mydiv = this;
|
||||
var message = document.createElement("span");
|
||||
$(message).attr("class","no-image");
|
||||
$(message).html(NO_LOCAL_JACKET);
|
||||
$(mydiv).append(message);
|
||||
var img = $("<img />").attr('src',
|
||||
'/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
|
||||
.load(function () {
|
||||
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
|
||||
} else {
|
||||
if (uselink) {
|
||||
var a = $("<a />").attr('href', '/cgi-bin/koha/opac-imageviewer.pl?biblionumber=' + $(mydiv).attr("class"));
|
||||
$(a).append(img);
|
||||
$(mydiv).append(a);
|
||||
} else {
|
||||
$(mydiv).append(img);
|
||||
}
|
||||
$(mydiv).children('.no-image').remove();
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
if (typeof KOHA == "undefined" || !KOHA) {
|
||||
var KOHA = {};
|
||||
}
|
||||
|
||||
/**
|
||||
* A namespace for OpenLibrary related functions.
|
||||
*/
|
||||
KOHA.OpenLibrary = {
|
||||
|
||||
|
||||
/**
|
||||
* Search all:
|
||||
* <div title="biblionumber" id="isbn" class="openlibrary-thumbnail"></div>
|
||||
* or
|
||||
* <div title="biblionumber" id="isbn" class="openlibrary-thumbnail-preview"></div>
|
||||
* and run a search with all collected isbns to Open Library Book Search.
|
||||
* The result is asynchronously returned by OpenLibrary and catched by
|
||||
* olCallBack().
|
||||
*/
|
||||
GetCoverFromIsbn: function() {
|
||||
var bibkeys = [];
|
||||
$("[id^=openlibrary-thumbnail]").each(function(i) {
|
||||
bibkeys.push("ISBN:" + $(this).attr("class")); // id=isbn
|
||||
});
|
||||
bibkeys = bibkeys.join(',');
|
||||
var scriptElement = document.createElement("script");
|
||||
scriptElement.setAttribute("id", "jsonScript");
|
||||
scriptElement.setAttribute("src",
|
||||
"http://openlibrary.org/api/books?bibkeys=" + escape(bibkeys) +
|
||||
"&callback=KOHA.OpenLibrary.olCallBack&jscmd=data");
|
||||
scriptElement.setAttribute("type", "text/javascript");
|
||||
document.documentElement.firstChild.appendChild(scriptElement);
|
||||
},
|
||||
|
||||
/**
|
||||
* Add cover pages <div
|
||||
* and link to preview if div id is gbs-thumbnail-preview
|
||||
*/
|
||||
olCallBack: function(booksInfo) {
|
||||
for (id in booksInfo) {
|
||||
var book = booksInfo[id];
|
||||
var isbn = id.substring(5);
|
||||
$("[id^=openlibrary-thumbnail]."+isbn).each(function() {
|
||||
var is_opacdetail = /openlibrary-thumbnail-preview/.exec($(this).attr("id"));
|
||||
var a = document.createElement("a");
|
||||
a.href = booksInfo.url;
|
||||
if (book.cover) {
|
||||
var img = document.createElement("img");
|
||||
if (is_opacdetail) {
|
||||
img.src = book.cover.medium;
|
||||
$(this).append(img);
|
||||
$(this).append('<div class="results_summary">' + '<a href="' + book.url + '">Preview</a></div>');
|
||||
} else {
|
||||
img.src = book.cover.medium;
|
||||
img.height = '110';
|
||||
$(this).append(img);
|
||||
}
|
||||
} else {
|
||||
var message = document.createElement("span");
|
||||
$(message).attr("class","no-image");
|
||||
$(message).html(NO_OL_JACKET);
|
||||
$(this).append(message);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
if ( typeof KOHA == "undefined" || !KOHA ) {
|
||||
var KOHA = {};
|
||||
}
|
||||
|
||||
KOHA.OverDrive = ( function() {
|
||||
var proxy_base_url = '/cgi-bin/koha/svc/overdrive_proxy';
|
||||
var library_base_url = 'http://api.overdrive.com/v1/libraries/';
|
||||
return {
|
||||
Get: function( url, params, callback ) {
|
||||
$.ajax( {
|
||||
type: 'GET',
|
||||
url: url.replace( /https?:\/\/api.overdrive.com\/v1/, proxy_base_url ),
|
||||
dataType: 'json',
|
||||
data: params,
|
||||
error: function( xhr, error ) {
|
||||
try {
|
||||
callback( JSON.parse( xhr.responseText ));
|
||||
} catch ( e ) {
|
||||
callback( {error: xhr.responseText || true} );
|
||||
}
|
||||
},
|
||||
success: callback
|
||||
} );
|
||||
},
|
||||
GetCollectionURL: function( library_id, callback ) {
|
||||
if ( KOHA.OverDrive.collection_url ) {
|
||||
callback( KOHA.OverDrive.collection_url );
|
||||
return;
|
||||
}
|
||||
|
||||
KOHA.OverDrive.Get(
|
||||
library_base_url + library_id,
|
||||
{},
|
||||
function ( data ) {
|
||||
if ( data.error ) {
|
||||
callback( data );
|
||||
return;
|
||||
}
|
||||
|
||||
KOHA.OverDrive.collection_url = data.links.products.href;
|
||||
|
||||
callback( data.links.products.href );
|
||||
}
|
||||
);
|
||||
},
|
||||
Search: function( library_id, q, limit, offset, callback ) {
|
||||
KOHA.OverDrive.GetCollectionURL( library_id, function( data ) {
|
||||
if ( data.error ) {
|
||||
callback( data );
|
||||
return;
|
||||
}
|
||||
|
||||
KOHA.OverDrive.Get(
|
||||
data,
|
||||
{q: q, limit: limit, offset: offset},
|
||||
callback
|
||||
);
|
||||
} );
|
||||
}
|
||||
};
|
||||
} )();
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
function _(s) { return s } // dummy function for gettext
|
||||
function confirmDelete(message) {
|
||||
return (confirm(message) ? true : false);
|
||||
}
|
||||
|
||||
function Dopop(link) {
|
||||
newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes,resizeable=yes');
|
||||
}
|
||||
|
||||
$.datepicker.setDefaults({
|
||||
showOn: "both",
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
buttonImage: '/opac-tmpl/lib/famfamfam/silk/calendar.png',
|
||||
buttonImageOnly: true,
|
||||
showButtonPanel: true
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
$(".close").click(function(){
|
||||
window.close();
|
||||
});
|
||||
$(".focus").focus();
|
||||
$( ".datepicker" ).datepicker();
|
||||
// http://jqueryui.com/demos/datepicker/#date-range
|
||||
var dates = $( ".datepickerfrom, .datepickerto" ).datepicker({
|
||||
changeMonth: true,
|
||||
numberOfMonths: 1,
|
||||
onSelect: function( selectedDate ) {
|
||||
var option = this.id == "from" ? "minDate" : "maxDate",
|
||||
instance = $( this ).data( "datepicker" );
|
||||
date = $.datepicker.parseDate(
|
||||
instance.settings.dateFormat ||
|
||||
$.datepicker._defaults.dateFormat,
|
||||
selectedDate, instance.settings );
|
||||
dates.not( this ).datepicker( "option", option, date );
|
||||
}
|
||||
});
|
||||
// clear the basket when user logs out
|
||||
$("#logout").click(function(){
|
||||
var nameCookie = "bib_list";
|
||||
var valCookie = readCookie(nameCookie);
|
||||
if (valCookie) { // basket has contents
|
||||
updateBasket(0,null);
|
||||
delCookie(nameCookie);
|
||||
return true;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Add the mobile menu button if we are in some sections of the opac
|
||||
if($('body#opac-user, body#opac-passwd, body#opac-search-history, body#opac-readingrecord, body#opac-userupdate, body#opac-usersuggestions, body#opac-account, body#opac-privacy, body#opac-usertags').length != 0) {
|
||||
$('body').addClass('mobile_menu');
|
||||
|
||||
var button = $('<input type="button" id="mobile_menu_button" value="">').addClass('mobile_only');
|
||||
$('#searchform').append(button);
|
||||
|
||||
button.click(function() {
|
||||
if($('body').hasClass('mobile_menu_opened')){
|
||||
$('body').removeClass('mobile_menu_opened');
|
||||
}
|
||||
else {
|
||||
$('body').addClass('mobile_menu_opened');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// build Change Language menus
|
||||
YAHOO.util.Event.onContentReady("changelanguage", function () {
|
||||
$(".sublangs").each(function(){
|
||||
var menuid = $(this).attr("id");
|
||||
var menuid = menuid.replace("show","");
|
||||
|
||||
var oMenu = new YAHOO.widget.Menu("sub"+menuid, { zindex: 2 });
|
||||
function positionoMenu() {
|
||||
oMenu.align("bl", "tl");
|
||||
}
|
||||
oMenu.subscribe("beforeShow", function () {
|
||||
if (this.getRoot() == this) {
|
||||
positionoMenu();
|
||||
}
|
||||
});
|
||||
oMenu.render();
|
||||
oMenu.cfg.setProperty("context", ["show"+menuid, "bl", "tl"]);
|
||||
function onYahooClick(p_oEvent) {
|
||||
// Position and display the menu
|
||||
positionoMenu();
|
||||
oMenu.show();
|
||||
// Stop propagation and prevent the default "click" behavior
|
||||
YAHOO.util.Event.stopEvent(p_oEvent);
|
||||
}
|
||||
YAHOO.util.Event.addListener("show"+menuid, "click", onYahooClick);
|
||||
YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
// Build lists menu
|
||||
YAHOO.util.Event.onContentReady("listsmenu", function () {
|
||||
YAHOO.widget.Menu.prototype.onRender = function () { };
|
||||
$("#listsmenu").css("display","block").css("visibility","hidden");
|
||||
$("#listsmenulink").attr("href","#");
|
||||
var listMenu = new YAHOO.widget.Menu("listsmenu");
|
||||
listMenu.render();
|
||||
listMenu.cfg.setProperty("context", ["listsmenulink", "tr", "br"]);
|
||||
listMenu.cfg.setProperty("effect",{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.05});
|
||||
listMenu.subscribe("beforeShow",positionlistMenu);
|
||||
listMenu.subscribe("show", listMenu.focus);
|
||||
function positionlistMenu() {
|
||||
listMenu.align("tr", "br");
|
||||
}
|
||||
YAHOO.util.Event.addListener("listsmenulink", "click", listMenu.show, null, listMenu);
|
||||
YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionlistMenu);
|
||||
});
|
||||
*/
|
||||
|
||||
jQuery.fn.preventDoubleFormSubmit = function() {
|
||||
jQuery(this).submit(function() {
|
||||
if (this.beenSubmitted)
|
||||
return false;
|
||||
else
|
||||
this.beenSubmitted = true;
|
||||
});
|
||||
};
|
||||
|
|
@ -1,145 +0,0 @@
|
|||
if (typeof KOHA == "undefined" || !KOHA) {
|
||||
var KOHA = {};
|
||||
}
|
||||
|
||||
/**
|
||||
* A namespace for Tags related functions.
|
||||
|
||||
$.ajaxSetup({
|
||||
url: "/cgi-bin/koha/opac-tags.pl",
|
||||
type: "POST",
|
||||
dataType: "script"
|
||||
});
|
||||
*/
|
||||
KOHA.Tags = {
|
||||
add_tag_button: function(bibnum, tag){
|
||||
var mynewtag = "newtag" + bibnum;
|
||||
var mytagid = "#" + mynewtag;
|
||||
var mydata = {};
|
||||
mydata[mynewtag] = tag;
|
||||
var response; // AJAX from server will assign value to response.
|
||||
$.post(
|
||||
"/cgi-bin/koha/opac-tags.pl",
|
||||
mydata,
|
||||
function(data){
|
||||
// alert("AJAX Response: " + data);
|
||||
eval(data);
|
||||
// alert("counts: " + response["added"] + response["deleted"] + response["errors"]);
|
||||
KOHA.Tags.set_tag_status(
|
||||
mytagid + "_status",
|
||||
KOHA.Tags.common_status(response["added"], response["deleted"], response["errors"])
|
||||
);
|
||||
if (response.alerts) {
|
||||
alert(response.alerts.join("\n\n"));
|
||||
}
|
||||
},
|
||||
'script'
|
||||
);
|
||||
return false;
|
||||
},
|
||||
common_status : function(addcount, delcount, errcount) {
|
||||
var cstat = "";
|
||||
if (addcount && addcount > 0) {cstat += MSG_TAGS_ADDED + addcount + ". " ;}
|
||||
if (delcount && delcount > 0) {cstat += MSG_TAGS_DELETED + delcount + ". " ;}
|
||||
if (errcount && errcount > 0) {cstat += MSG_TAGS_ERRORS + errcount + ". " ;}
|
||||
return cstat;
|
||||
},
|
||||
set_tag_status : function(tagid, newstatus) {
|
||||
$(tagid).html(newstatus);
|
||||
$(tagid).show();
|
||||
},
|
||||
append_tag_status : function(tagid, newstatus) {
|
||||
$(tagid).append(newstatus);
|
||||
$(tagid).show();
|
||||
},
|
||||
clear_all_tag_status : function() {
|
||||
$(".tagstatus").empty().hide();
|
||||
},
|
||||
|
||||
tag_message: {
|
||||
tagsdisabled : function(arg) {return (MSG_TAGS_DISABLED);},
|
||||
scrubbed_all_bad : function(arg) {return (MSG_TAG_ALL_BAD);},
|
||||
badparam : function(arg) {return (MSG_ILLEGAL_PARAMETER+" "+arg);},
|
||||
scrubbed : function(arg) {return (MSG_TAG_SCRUBBED+" "+arg);},
|
||||
failed_add_tag : function(arg) {return (MSG_ADD_TAG_FAILED+ " '"+arg+"'. \n"+MSG_ADD_TAG_FAILED_NOTE);},
|
||||
failed_delete : function(arg) {return (MSG_DELETE_TAG_FAILED+ " '"+arg+"'. \n"+MSG_DELETE_TAG_FAILED_NOTE);},
|
||||
login : function(arg) {return (MSG_LOGIN_REQUIRED);}
|
||||
},
|
||||
|
||||
// Used to tag multiple items at once. The main difference
|
||||
// is that status is displayed on a per item basis.
|
||||
add_multitags_button : function(bibarray, tag){
|
||||
var mydata = {};
|
||||
for (var i = 0; i < bibarray.length; i++) {
|
||||
var mynewtag = "newtag" + bibarray[i];
|
||||
mydata[mynewtag] = tag;
|
||||
}
|
||||
var response; // AJAX from server will assign value to response.
|
||||
$.post(
|
||||
"/cgi-bin/koha/opac-tags.pl",
|
||||
mydata,
|
||||
function(data){
|
||||
eval(data);
|
||||
KOHA.Tags.clear_all_tag_status();
|
||||
var bibErrors = false;
|
||||
|
||||
// Display the status for each tagged bib
|
||||
for (var i = 0; i < bibarray.length; i++) {
|
||||
var bib = bibarray[i];
|
||||
var mytagid = "#newtag" + bib;
|
||||
var status = "";
|
||||
|
||||
// Number of tags added.
|
||||
if (response[bib]) {
|
||||
var added = response[bib]["added"];
|
||||
if (added > 0) {
|
||||
status = MSG_TAGS_ADDED + added + ". ";
|
||||
KOHA.Tags.set_tag_status(mytagid + "_status", status);
|
||||
}
|
||||
|
||||
// Show a link that opens an error dialog, if necessary.
|
||||
var errors = response[bib]["errors"];
|
||||
if (errors.length > 0) {
|
||||
bibErrors = true;
|
||||
var errid = "tagerr_" + bib;
|
||||
var errstat = "<a id=\"" + errid + "\" class=\"tagerror\" href=\"#\">";
|
||||
errstat += MSG_TAGS_ERRORS + errors.length + ". ";
|
||||
errstat += "</a>";
|
||||
KOHA.Tags.append_tag_status(mytagid + "_status", errstat);
|
||||
var errmsg = "";
|
||||
for (var e = 0; e < errors.length; e++){
|
||||
if (e) {
|
||||
errmsg += "\n\n";
|
||||
}
|
||||
errmsg += errors[e];
|
||||
}
|
||||
$("#" + errid).click(function(){
|
||||
alert(errmsg);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bibErrors || response["global_errors"]) {
|
||||
var msg = "";
|
||||
if (bibErrors) {
|
||||
msg = MSG_MULTI_ADD_TAG_FAILED;
|
||||
}
|
||||
|
||||
// Show global errors in a dialog.
|
||||
if (response["global_errors"]) {
|
||||
var global_errors = response["global_errors"];
|
||||
var msg;
|
||||
for (var e = 0; e < global_errors.length; e++) {
|
||||
msg += "\n\n";
|
||||
msg += response.alerts[global_errors[e]];
|
||||
}
|
||||
}
|
||||
alert(msg);
|
||||
}
|
||||
},
|
||||
'script'
|
||||
);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
@ -1,525 +0,0 @@
|
|||
AJS={BASE_URL:"",drag_obj:null,drag_elm:null,_drop_zones:[],_cur_pos:null,join:function(_1,_2){
|
||||
try{
|
||||
return _2.join(_1);
|
||||
}
|
||||
catch(e){
|
||||
var r=_2[0]||"";
|
||||
AJS.map(_2,function(_4){
|
||||
r+=_1+_4;
|
||||
},1);
|
||||
return r+"";
|
||||
}
|
||||
},getScrollTop:function(){
|
||||
var t;
|
||||
if(document.documentElement&&document.documentElement.scrollTop){
|
||||
t=document.documentElement.scrollTop;
|
||||
}else{
|
||||
if(document.body){
|
||||
t=document.body.scrollTop;
|
||||
}
|
||||
}
|
||||
return t;
|
||||
},addClass:function(){
|
||||
var _6=AJS.forceArray(arguments);
|
||||
var _7=_6.pop();
|
||||
var _8=function(o){
|
||||
if(!new RegExp("(^|\\s)"+_7+"(\\s|$)").test(o.className)){
|
||||
o.className+=(o.className?" ":"")+_7;
|
||||
}
|
||||
};
|
||||
AJS.map(_6,function(_a){
|
||||
_8(_a);
|
||||
});
|
||||
},setStyle:function(){
|
||||
var _b=AJS.forceArray(arguments);
|
||||
var _c=_b.pop();
|
||||
var _d=_b.pop();
|
||||
AJS.map(_b,function(_e){
|
||||
_e.style[_d]=AJS.getCssDim(_c);
|
||||
});
|
||||
},_getRealScope:function(fn,_10,_11,_12){
|
||||
var _13=window;
|
||||
_10=AJS.$A(_10);
|
||||
if(fn._cscope){
|
||||
_13=fn._cscope;
|
||||
}
|
||||
return function(){
|
||||
var _14=[];
|
||||
var i=0;
|
||||
if(_11){
|
||||
i=1;
|
||||
}
|
||||
AJS.map(arguments,function(arg){
|
||||
_14.push(arg);
|
||||
},i);
|
||||
_14=_14.concat(_10);
|
||||
if(_12){
|
||||
_14=_14.reverse();
|
||||
}
|
||||
return fn.apply(_13,_14);
|
||||
};
|
||||
},preloadImages:function(){
|
||||
AJS.AEV(window,"load",AJS.$p(function(_17){
|
||||
AJS.map(_17,function(src){
|
||||
var pic=new Image();
|
||||
pic.src=src;
|
||||
});
|
||||
},arguments));
|
||||
},_createDomShortcuts:function(){
|
||||
var _1a=["ul","li","td","tr","th","tbody","table","input","span","b","a","div","img","button","h1","h2","h3","br","textarea","form","p","select","option","iframe","script","center","dl","dt","dd","small","pre"];
|
||||
var _1b=function(elm){
|
||||
var _1d="return AJS.createDOM.apply(null, ['"+elm+"', arguments]);";
|
||||
var _1e="function() { "+_1d+" }";
|
||||
eval("AJS."+elm.toUpperCase()+"="+_1e);
|
||||
};
|
||||
AJS.map(_1a,_1b);
|
||||
AJS.TN=function(_1f){
|
||||
return document.createTextNode(_1f);
|
||||
};
|
||||
},documentInsert:function(elm){
|
||||
if(typeof (elm)=="string"){
|
||||
elm=AJS.HTML2DOM(elm);
|
||||
}
|
||||
document.write("<span id=\"dummy_holder\"></span>");
|
||||
AJS.swapDOM(AJS.$("dummy_holder"),elm);
|
||||
},getWindowSize:function(doc){
|
||||
doc=doc||document;
|
||||
var _22,_23;
|
||||
if(self.innerHeight){
|
||||
_22=self.innerWidth;
|
||||
_23=self.innerHeight;
|
||||
}else{
|
||||
if(doc.documentElement&&doc.documentElement.clientHeight){
|
||||
_22=doc.documentElement.clientWidth;
|
||||
_23=doc.documentElement.clientHeight;
|
||||
}else{
|
||||
if(doc.body){
|
||||
_22=doc.body.clientWidth;
|
||||
_23=doc.body.clientHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
return {"w":_22,"h":_23};
|
||||
},flattenList:function(_24){
|
||||
var r=[];
|
||||
var _26=function(r,l){
|
||||
AJS.map(l,function(o){
|
||||
if(o==null){
|
||||
}else{
|
||||
if(AJS.isArray(o)){
|
||||
_26(r,o);
|
||||
}else{
|
||||
r.push(o);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
_26(r,_24);
|
||||
return r;
|
||||
},setEventKey:function(e){
|
||||
e.key=e.keyCode?e.keyCode:e.charCode;
|
||||
if(window.event){
|
||||
e.ctrl=window.event.ctrlKey;
|
||||
e.shift=window.event.shiftKey;
|
||||
}else{
|
||||
e.ctrl=e.ctrlKey;
|
||||
e.shift=e.shiftKey;
|
||||
}
|
||||
switch(e.key){
|
||||
case 63232:
|
||||
e.key=38;
|
||||
break;
|
||||
case 63233:
|
||||
e.key=40;
|
||||
break;
|
||||
case 63235:
|
||||
e.key=39;
|
||||
break;
|
||||
case 63234:
|
||||
e.key=37;
|
||||
break;
|
||||
}
|
||||
},removeElement:function(){
|
||||
var _2b=AJS.forceArray(arguments);
|
||||
AJS.map(_2b,function(elm){
|
||||
AJS.swapDOM(elm,null);
|
||||
});
|
||||
},_unloadListeners:function(){
|
||||
if(AJS.listeners){
|
||||
AJS.map(AJS.listeners,function(elm,_2e,fn){
|
||||
AJS.REV(elm,_2e,fn);
|
||||
});
|
||||
}
|
||||
AJS.listeners=[];
|
||||
},partial:function(fn){
|
||||
var _31=AJS.forceArray(arguments);
|
||||
return AJS.$b(fn,null,_31.slice(1,_31.length).reverse(),false,true);
|
||||
},getIndex:function(elm,_33,_34){
|
||||
for(var i=0;i<_33.length;i++){
|
||||
if(_34&&_34(_33[i])||elm==_33[i]){
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
},isDefined:function(o){
|
||||
return (o!="undefined"&&o!=null);
|
||||
},isArray:function(obj){
|
||||
return obj instanceof Array;
|
||||
},setLeft:function(){
|
||||
var _38=AJS.forceArray(arguments);
|
||||
_38.splice(_38.length-1,0,"left");
|
||||
AJS.setStyle.apply(null,_38);
|
||||
},appendChildNodes:function(elm){
|
||||
if(arguments.length>=2){
|
||||
AJS.map(arguments,function(n){
|
||||
if(AJS.isString(n)){
|
||||
n=AJS.TN(n);
|
||||
}
|
||||
if(AJS.isDefined(n)){
|
||||
elm.appendChild(n);
|
||||
}
|
||||
},1);
|
||||
}
|
||||
return elm;
|
||||
},isOpera:function(){
|
||||
return (navigator.userAgent.toLowerCase().indexOf("opera")!=-1);
|
||||
},isString:function(obj){
|
||||
return (typeof obj=="string");
|
||||
},hideElement:function(elm){
|
||||
var _3d=AJS.forceArray(arguments);
|
||||
AJS.map(_3d,function(elm){
|
||||
elm.style.display="none";
|
||||
});
|
||||
},setOpacity:function(elm,p){
|
||||
elm.style.opacity=p;
|
||||
elm.style.filter="alpha(opacity="+p*100+")";
|
||||
},setHeight:function(){
|
||||
var _41=AJS.forceArray(arguments);
|
||||
_41.splice(_41.length-1,0,"height");
|
||||
AJS.setStyle.apply(null,_41);
|
||||
},setWidth:function(){
|
||||
var _42=AJS.forceArray(arguments);
|
||||
_42.splice(_42.length-1,0,"width");
|
||||
AJS.setStyle.apply(null,_42);
|
||||
},createArray:function(v){
|
||||
if(AJS.isArray(v)&&!AJS.isString(v)){
|
||||
return v;
|
||||
}else{
|
||||
if(!v){
|
||||
return [];
|
||||
}else{
|
||||
return [v];
|
||||
}
|
||||
}
|
||||
},isDict:function(o){
|
||||
var _45=String(o);
|
||||
return _45.indexOf(" Object")!=-1;
|
||||
},isMozilla:function(){
|
||||
return (navigator.userAgent.toLowerCase().indexOf("gecko")!=-1&&navigator.productSub>=20030210);
|
||||
},_listenOnce:function(elm,_47,fn){
|
||||
var _49=function(){
|
||||
AJS.removeEventListener(elm,_47,_49);
|
||||
fn(arguments);
|
||||
};
|
||||
return _49;
|
||||
},addEventListener:function(elm,_4b,fn,_4d,_4e){
|
||||
if(!_4e){
|
||||
_4e=false;
|
||||
}
|
||||
var _4f=AJS.$A(elm);
|
||||
AJS.map(_4f,function(_50){
|
||||
if(_4d){
|
||||
fn=AJS._listenOnce(_50,_4b,fn);
|
||||
}
|
||||
if(AJS.isIn(_4b,["submit","load","scroll","resize"])){
|
||||
var old=elm["on"+_4b];
|
||||
elm["on"+_4b]=function(){
|
||||
if(old){
|
||||
fn(arguments);
|
||||
return old(arguments);
|
||||
}else{
|
||||
return fn(arguments);
|
||||
}
|
||||
};
|
||||
return;
|
||||
}
|
||||
if(AJS.isIn(_4b,["keypress","keydown","keyup","click"])){
|
||||
var _52=fn;
|
||||
fn=function(e){
|
||||
AJS.setEventKey(e);
|
||||
return _52.apply(null,arguments);
|
||||
};
|
||||
}
|
||||
if(_50.attachEvent){
|
||||
_50.attachEvent("on"+_4b,fn);
|
||||
}else{
|
||||
if(_50.addEventListener){
|
||||
_50.addEventListener(_4b,fn,_4e);
|
||||
}
|
||||
}
|
||||
AJS.listeners=AJS.$A(AJS.listeners);
|
||||
AJS.listeners.push([_50,_4b,fn]);
|
||||
});
|
||||
},createDOM:function(_54,_55){
|
||||
var i=0,_57;
|
||||
elm=document.createElement(_54);
|
||||
if(AJS.isDict(_55[i])){
|
||||
for(k in _55[0]){
|
||||
_57=_55[0][k];
|
||||
if(k=="style"){
|
||||
elm.style.cssText=_57;
|
||||
}else{
|
||||
if(k=="class"||k=="className"){
|
||||
elm.className=_57;
|
||||
}else{
|
||||
elm.setAttribute(k,_57);
|
||||
}
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if(_55[0]==null){
|
||||
i=1;
|
||||
}
|
||||
AJS.map(_55,function(n){
|
||||
if(n){
|
||||
if(AJS.isString(n)||AJS.isNumber(n)){
|
||||
n=AJS.TN(n);
|
||||
}
|
||||
elm.appendChild(n);
|
||||
}
|
||||
},i);
|
||||
return elm;
|
||||
},setTop:function(){
|
||||
var _59=AJS.forceArray(arguments);
|
||||
_59.splice(_59.length-1,0,"top");
|
||||
AJS.setStyle.apply(null,_59);
|
||||
},getElementsByTagAndClassName:function(_5a,_5b,_5c){
|
||||
var _5d=[];
|
||||
if(!AJS.isDefined(_5c)){
|
||||
_5c=document;
|
||||
}
|
||||
if(!AJS.isDefined(_5a)){
|
||||
_5a="*";
|
||||
}
|
||||
var els=_5c.getElementsByTagName(_5a);
|
||||
var _5f=els.length;
|
||||
var _60=new RegExp("(^|\\s)"+_5b+"(\\s|$)");
|
||||
for(i=0,j=0;i<_5f;i++){
|
||||
if(_60.test(els[i].className)||_5b==null){
|
||||
_5d[j]=els[i];
|
||||
j++;
|
||||
}
|
||||
}
|
||||
return _5d;
|
||||
},removeClass:function(){
|
||||
var _61=AJS.forceArray(arguments);
|
||||
var cls=_61.pop();
|
||||
var _63=function(o){
|
||||
o.className=o.className.replace(new RegExp("\\s?"+cls,"g"),"");
|
||||
};
|
||||
AJS.map(_61,function(elm){
|
||||
_63(elm);
|
||||
});
|
||||
},bindMethods:function(_66){
|
||||
for(var k in _66){
|
||||
var _68=_66[k];
|
||||
if(typeof (_68)=="function"){
|
||||
_66[k]=AJS.$b(_68,_66);
|
||||
}
|
||||
}
|
||||
},log:function(o){
|
||||
if(AJS.isMozilla()){
|
||||
console.log(o);
|
||||
}else{
|
||||
var div=AJS.DIV({"style":"color: green"});
|
||||
AJS.ACN(AJS.getBody(),AJS.setHTML(div,""+o));
|
||||
}
|
||||
},isNumber:function(obj){
|
||||
return (typeof obj=="number");
|
||||
},map:function(_6c,fn,_6e,_6f){
|
||||
var i=0,l=_6c.length;
|
||||
if(_6e){
|
||||
i=_6e;
|
||||
}
|
||||
if(_6f){
|
||||
l=_6f;
|
||||
}
|
||||
for(i;i<l;i++){
|
||||
fn.apply(null,[_6c[i],i]);
|
||||
}
|
||||
},removeEventListener:function(elm,_73,fn,_75){
|
||||
if(!_75){
|
||||
_75=false;
|
||||
}
|
||||
if(elm.removeEventListener){
|
||||
elm.removeEventListener(_73,fn,_75);
|
||||
if(AJS.isOpera()){
|
||||
elm.removeEventListener(_73,fn,!_75);
|
||||
}
|
||||
}else{
|
||||
if(elm.detachEvent){
|
||||
elm.detachEvent("on"+_73,fn);
|
||||
}
|
||||
}
|
||||
},getCssDim:function(dim){
|
||||
if(AJS.isString(dim)){
|
||||
return dim;
|
||||
}else{
|
||||
return dim+"px";
|
||||
}
|
||||
},setHTML:function(elm,_78){
|
||||
elm.innerHTML=_78;
|
||||
return elm;
|
||||
},bind:function(fn,_7a,_7b,_7c,_7d){
|
||||
fn._cscope=_7a;
|
||||
return AJS._getRealScope(fn,_7b,_7c,_7d);
|
||||
},forceArray:function(_7e){
|
||||
var r=[];
|
||||
AJS.map(_7e,function(elm){
|
||||
r.push(elm);
|
||||
});
|
||||
return r;
|
||||
},update:function(l1,l2){
|
||||
for(var i in l2){
|
||||
l1[i]=l2[i];
|
||||
}
|
||||
return l1;
|
||||
},getBody:function(){
|
||||
return AJS.$bytc("body")[0];
|
||||
},HTML2DOM:function(_84,_85){
|
||||
var d=AJS.DIV();
|
||||
d.innerHTML=_84;
|
||||
if(_85){
|
||||
return d.childNodes[0];
|
||||
}else{
|
||||
return d;
|
||||
}
|
||||
},getElement:function(id){
|
||||
if(AJS.isString(id)||AJS.isNumber(id)){
|
||||
return document.getElementById(id);
|
||||
}else{
|
||||
return id;
|
||||
}
|
||||
},showElement:function(){
|
||||
var _88=AJS.forceArray(arguments);
|
||||
AJS.map(_88,function(elm){
|
||||
elm.style.display="";
|
||||
});
|
||||
},swapDOM:function(_8a,src){
|
||||
_8a=AJS.getElement(_8a);
|
||||
var _8c=_8a.parentNode;
|
||||
if(src){
|
||||
src=AJS.getElement(src);
|
||||
_8c.replaceChild(src,_8a);
|
||||
}else{
|
||||
_8c.removeChild(_8a);
|
||||
}
|
||||
return src;
|
||||
},isIn:function(elm,_8e){
|
||||
var i=AJS.getIndex(elm,_8e);
|
||||
if(i!=-1){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}};
|
||||
AJS.$=AJS.getElement;
|
||||
AJS.$$=AJS.getElements;
|
||||
AJS.$f=AJS.getFormElement;
|
||||
AJS.$p=AJS.partial;
|
||||
AJS.$b=AJS.bind;
|
||||
AJS.$A=AJS.createArray;
|
||||
AJS.DI=AJS.documentInsert;
|
||||
AJS.ACN=AJS.appendChildNodes;
|
||||
AJS.RCN=AJS.replaceChildNodes;
|
||||
AJS.AEV=AJS.addEventListener;
|
||||
AJS.REV=AJS.removeEventListener;
|
||||
AJS.$bytc=AJS.getElementsByTagAndClassName;
|
||||
AJS.addEventListener(window,"unload",AJS._unloadListeners);
|
||||
AJS._createDomShortcuts();
|
||||
AJS.Class=function(_90){
|
||||
var fn=function(){
|
||||
if(arguments[0]!="no_init"){
|
||||
return this.init.apply(this,arguments);
|
||||
}
|
||||
};
|
||||
fn.prototype=_90;
|
||||
AJS.update(fn,AJS.Class.prototype);
|
||||
return fn;
|
||||
};
|
||||
AJS.Class.prototype={extend:function(_92){
|
||||
var _93=new this("no_init");
|
||||
for(k in _92){
|
||||
var _94=_93[k];
|
||||
var cur=_92[k];
|
||||
if(_94&&_94!=cur&&typeof cur=="function"){
|
||||
cur=this._parentize(cur,_94);
|
||||
}
|
||||
_93[k]=cur;
|
||||
}
|
||||
return new AJS.Class(_93);
|
||||
},implement:function(_96){
|
||||
AJS.update(this.prototype,_96);
|
||||
},_parentize:function(cur,_98){
|
||||
return function(){
|
||||
this.parent=_98;
|
||||
return cur.apply(this,arguments);
|
||||
};
|
||||
}};
|
||||
AJS.$=AJS.getElement;
|
||||
AJS.$$=AJS.getElements;
|
||||
AJS.$f=AJS.getFormElement;
|
||||
AJS.$b=AJS.bind;
|
||||
AJS.$p=AJS.partial;
|
||||
AJS.$FA=AJS.forceArray;
|
||||
AJS.$A=AJS.createArray;
|
||||
AJS.DI=AJS.documentInsert;
|
||||
AJS.ACN=AJS.appendChildNodes;
|
||||
AJS.RCN=AJS.replaceChildNodes;
|
||||
AJS.AEV=AJS.addEventListener;
|
||||
AJS.REV=AJS.removeEventListener;
|
||||
AJS.$bytc=AJS.getElementsByTagAndClassName;
|
||||
AJSDeferred=function(req){
|
||||
this.callbacks=[];
|
||||
this.errbacks=[];
|
||||
this.req=req;
|
||||
};
|
||||
AJSDeferred.prototype={excCallbackSeq:function(req,_9b){
|
||||
var _9c=req.responseText;
|
||||
while(_9b.length>0){
|
||||
var fn=_9b.pop();
|
||||
var _9e=fn(_9c,req);
|
||||
if(_9e){
|
||||
_9c=_9e;
|
||||
}
|
||||
}
|
||||
},callback:function(){
|
||||
this.excCallbackSeq(this.req,this.callbacks);
|
||||
},errback:function(){
|
||||
if(this.errbacks.length==0){
|
||||
alert("Error encountered:\n"+this.req.responseText);
|
||||
}
|
||||
this.excCallbackSeq(this.req,this.errbacks);
|
||||
},addErrback:function(fn){
|
||||
this.errbacks.unshift(fn);
|
||||
},addCallback:function(fn){
|
||||
this.callbacks.unshift(fn);
|
||||
},addCallbacks:function(fn1,fn2){
|
||||
this.addCallback(fn1);
|
||||
this.addErrback(fn2);
|
||||
},sendReq:function(_a3){
|
||||
if(AJS.isObject(_a3)){
|
||||
this.req.send(AJS.queryArguments(_a3));
|
||||
}else{
|
||||
if(AJS.isDefined(_a3)){
|
||||
this.req.send(_a3);
|
||||
}else{
|
||||
this.req.send("");
|
||||
}
|
||||
}
|
||||
}};
|
||||
script_loaded=true;
|
||||
|
||||
|
||||
script_loaded=true;
|
||||
|
|
@ -1,136 +0,0 @@
|
|||
AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(_1,_2){
|
||||
var _3=new AJS.fx.Base();
|
||||
_3.elm=AJS.$(_1);
|
||||
_3.setOptions(_2);
|
||||
_3.options.duration=600;
|
||||
AJS.update(_3,{increase:function(){
|
||||
if(this.now==7){
|
||||
_1.style.backgroundColor="transparent";
|
||||
}else{
|
||||
_1.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)];
|
||||
}
|
||||
}});
|
||||
return _3.custom(6,0);
|
||||
},fadeIn:function(_4,_5){
|
||||
_5=_5||{};
|
||||
if(!_5.from){
|
||||
_5.from=0;
|
||||
AJS.setOpacity(_4,0);
|
||||
}
|
||||
if(!_5.to){
|
||||
_5.to=1;
|
||||
}
|
||||
var s=new AJS.fx.Style(_4,"opacity",_5);
|
||||
return s.custom(_5.from,_5.to);
|
||||
},fadeOut:function(_7,_8){
|
||||
_8=_8||{};
|
||||
if(!_8.from){
|
||||
_8.from=1;
|
||||
}
|
||||
if(!_8.to){
|
||||
_8.to=0;
|
||||
}
|
||||
_8.duration=300;
|
||||
var s=new AJS.fx.Style(_7,"opacity",_8);
|
||||
return s.custom(_8.from,_8.to);
|
||||
},setWidth:function(_a,_b){
|
||||
var s=new AJS.fx.Style(_a,"width",_b);
|
||||
return s.custom(_b.from,_b.to);
|
||||
},setHeight:function(_d,_e){
|
||||
var s=new AJS.fx.Style(_d,"height",_e);
|
||||
return s.custom(_e.from,_e.to);
|
||||
}};
|
||||
AJS.fx.Base=new AJS.Class({init:function(){
|
||||
AJS.bindMethods(this);
|
||||
},setOptions:function(_10){
|
||||
this.options=AJS.update({onStart:function(){
|
||||
},onComplete:function(){
|
||||
},transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50},_10||{});
|
||||
},step:function(){
|
||||
var _11=new Date().getTime();
|
||||
if(_11<this.time+this.options.duration){
|
||||
this.cTime=_11-this.time;
|
||||
this.setNow();
|
||||
}else{
|
||||
setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10);
|
||||
this.clearTimer();
|
||||
this.now=this.to;
|
||||
}
|
||||
this.increase();
|
||||
},setNow:function(){
|
||||
this.now=this.compute(this.from,this.to);
|
||||
},compute:function(_12,to){
|
||||
var _14=to-_12;
|
||||
return this.options.transition(this.cTime,_12,_14,this.options.duration);
|
||||
},clearTimer:function(){
|
||||
clearInterval(this.timer);
|
||||
this.timer=null;
|
||||
return this;
|
||||
},_start:function(_15,to){
|
||||
if(!this.options.wait){
|
||||
this.clearTimer();
|
||||
}
|
||||
if(this.timer){
|
||||
return;
|
||||
}
|
||||
setTimeout(AJS.$p(this.options.onStart,this.elm),10);
|
||||
this.from=_15;
|
||||
this.to=to;
|
||||
this.time=new Date().getTime();
|
||||
this.timer=setInterval(this.step,Math.round(1000/this.options.fps));
|
||||
return this;
|
||||
},custom:function(_17,to){
|
||||
return this._start(_17,to);
|
||||
},set:function(to){
|
||||
this.now=to;
|
||||
this.increase();
|
||||
return this;
|
||||
},setStyle:function(elm,_1b,val){
|
||||
if(this.property=="opacity"){
|
||||
AJS.setOpacity(elm,val);
|
||||
}else{
|
||||
AJS.setStyle(elm,_1b,val);
|
||||
}
|
||||
}});
|
||||
AJS.fx.Style=AJS.fx.Base.extend({init:function(elm,_1e,_1f){
|
||||
this.parent();
|
||||
this.elm=elm;
|
||||
this.setOptions(_1f);
|
||||
this.property=_1e;
|
||||
},increase:function(){
|
||||
this.setStyle(this.elm,this.property,this.now);
|
||||
}});
|
||||
AJS.fx.Styles=AJS.fx.Base.extend({init:function(elm,_21){
|
||||
this.parent();
|
||||
this.elm=AJS.$(elm);
|
||||
this.setOptions(_21);
|
||||
this.now={};
|
||||
},setNow:function(){
|
||||
for(p in this.from){
|
||||
this.now[p]=this.compute(this.from[p],this.to[p]);
|
||||
}
|
||||
},custom:function(obj){
|
||||
if(this.timer&&this.options.wait){
|
||||
return;
|
||||
}
|
||||
var _23={};
|
||||
var to={};
|
||||
for(p in obj){
|
||||
_23[p]=obj[p][0];
|
||||
to[p]=obj[p][1];
|
||||
}
|
||||
return this._start(_23,to);
|
||||
},increase:function(){
|
||||
for(var p in this.now){
|
||||
this.setStyle(this.elm,p,this.now[p]);
|
||||
}
|
||||
}});
|
||||
AJS.fx.Transitions={linear:function(t,b,c,d){
|
||||
return c*t/d+b;
|
||||
},sineInOut:function(t,b,c,d){
|
||||
return -c/2*(Math.cos(Math.PI*t/d)-1)+b;
|
||||
}};
|
||||
script_loaded=true;
|
||||
|
||||
|
||||
script_loaded=true;
|
||||
|
|
@ -1,502 +0,0 @@
|
|||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>GreyBox - About</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
var GB_ROOT_DIR = "./greybox/";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="greybox/AJS.js"></script>
|
||||
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
|
||||
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
|
||||
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
|
||||
|
||||
<script type="text/javascript" src="static_files/help.js"></script>
|
||||
<link href="static_files/help.css" rel="stylesheet" type="text/css" media="all" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script>
|
||||
insertHeader();
|
||||
insertMenu('about');
|
||||
</script>
|
||||
|
||||
<p>
|
||||
GreyBox is copyrighted work by <a href="http://amix.dk/">Amir Salihefendic</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
It is based on <a href="http://orangoo.com/labs/AJS/">AJS</a> JavaScript library.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
It is realesed under <a href="LGPL.txt">LGPL</a>.
|
||||
</p>
|
||||
|
||||
<h3>Links</h3>
|
||||
<ul>
|
||||
<li> <a href="http://orangoo.com/labs/GreyBox/">GreyBox official site</a> </li>
|
||||
</ul>
|
||||
|
||||
<h3>Need help?</h3>
|
||||
<ul>
|
||||
<li><a href="http://groups.google.com/group/greybox">GreyBox Google group</a> - A group where you can ask questions and get answers</li>
|
||||
<li><a href="http://orangoo.com/labs/GreyBox/FAQ/">GreyBox FAQ</a> -Frequently Asked Questions about GreyBox</li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,182 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>GreyBox - Advance usage</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
var GB_ROOT_DIR = "./greybox/";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="greybox/AJS.js"></script>
|
||||
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
|
||||
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
|
||||
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
|
||||
|
||||
<script type="text/javascript" src="static_files/help.js"></script>
|
||||
<link href="static_files/help.css" rel="stylesheet" type="text/css" media="all" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script>
|
||||
insertHeader();
|
||||
insertMenu('adv_usage');
|
||||
</script>
|
||||
|
||||
<h2>Methods for showing windows</h2>
|
||||
|
||||
<h3 class="first">GB_show</h3>
|
||||
|
||||
<h4>Signature:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'GB_show(caption, url, /*optional*/ height, width, callback_fn)'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'<a href="http://google.com/" onclick="return GB_show(\'Google\', this.href)">Visit Google</a>'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://google.com/" onclick="return GB_show('Google', this.href)">Visit Google</a>
|
||||
|
||||
|
||||
<h3>GB_showCenter</h3>
|
||||
|
||||
<h4>Signature:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'GB_showCenter(caption, url, /* optional */ height, width, callback_fn)'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'<a href="http://google.com/" onclick="return GB_showCenter(\'Google\', this.href)">Visit Google</a>'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://google.com/" onclick="return GB_showCenter('Google', this.href)">Visit Google</a>
|
||||
|
||||
|
||||
<h3>GB_showFullScreen</h3>
|
||||
|
||||
<h4>Signature:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'GB_showFullScreen(caption, url, callback_fn)'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'<a href="http://google.com/" onclick="return GB_showFullScreen(\'Google\', this.href)">Visit Google</a>'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://google.com/" onclick="return GB_showFullScreen('Google', this.href)">Visit Google</a>
|
||||
|
||||
<h2>Methods for showing overlays</h2>
|
||||
|
||||
<h3 class="first">GB_showImage</h3>
|
||||
<h4>Signature:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'GB_showImage(caption, url, callback_fn)'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'<a href="http://static.flickr.com/119/294309231_a3d2a339b9.jpg"\n'+
|
||||
'onclick="return GB_showImage(\'Flower\', this.href)">A flower in my hand</a>'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://static.flickr.com/119/294309231_a3d2a339b9.jpg" onclick="return GB_showImage('Flower', this.href)">A flower in my hand</a>
|
||||
|
||||
<h3>GB_showPage</h3>
|
||||
<h4>Signature:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'GB_showPage(caption, url, callback_fn)'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'<a href="http://google.com" onclick="return GB_showPage(\'Google\', this.href)">Show Google in another layout</a>'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://google.com" onclick="return GB_showPage('Google', this.href)">Show Google in another layout</a>
|
||||
|
||||
|
||||
<h2>Methods for showing sets</h2>
|
||||
|
||||
<h3 class="first">GB_showFullScreenSet</h3>
|
||||
<h4>Signature:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'GB_showFullScreenSet(set, start_index, callback_fn)'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
"<script>",
|
||||
"var page_set = [{'caption': 'Google', 'url': 'http://google.com/'},",
|
||||
" {'caption': 'Yahoo', 'url': 'http://yahoo.com/'}];",
|
||||
"<\/script>",
|
||||
'<a href="#" onclick="return GB_showFullScreenSet(page_set, 1)">Show first page in page_set</a>'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<script>
|
||||
var page_set = [{'caption': 'Google', 'url': 'http://google.com/'},
|
||||
{'caption': 'Yahoo', 'url': 'http://yahoo.com/'}];
|
||||
</script>
|
||||
<a href="#" onclick="return GB_showFullScreenSet(page_set, 1)">Show first page in page_set</a>
|
||||
|
||||
<h3>GB_showImageSet</h3>
|
||||
<h4>Signature:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
'GB_showImageSet(set, start_index, callback_fn)'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<script>
|
||||
insertCode(
|
||||
"<script>",
|
||||
"var image_set = [{'caption': 'Flower', 'url': 'http://static.flickr.com/119/294309231_a3d2a339b9.jpg'},",
|
||||
" {'caption': 'Nice waterfall', 'url': 'http://www.widerange.org/images/large/plitvicka.jpg'}];",
|
||||
"<\/script>",
|
||||
'<a href="#" onclick="return GB_showImageSet(image_set, 1)">Show first picture in image_set</a>'
|
||||
);
|
||||
</script>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<script>
|
||||
var image_set = [{'caption': 'Flower', 'url': 'http://static.flickr.com/119/294309231_a3d2a339b9.jpg'},
|
||||
{'caption': 'Nice waterfall', 'url': 'http://www.widerange.org/images/large/plitvicka.jpg'}];
|
||||
</script>
|
||||
<a href="#" onclick="return GB_showImageSet(image_set, 1)">Show first picture in image_set</a>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,134 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
"""
|
||||
Used to combine the different parts of GreyBox.
|
||||
- Python 2.4 required
|
||||
- Java 1.4+ required
|
||||
- Dojo's JavaScript compressor (http://dojotoolkit.org/docs/compressor_system.html). Place it under compression_lib/custom_rhino.jar
|
||||
"""
|
||||
import os, sys, shutil
|
||||
from compression_lib import AJS_minify
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
args = sys.argv
|
||||
|
||||
if len(args) < 2:
|
||||
print """
|
||||
Usage is:
|
||||
python combiner.py [full|gallery|window]
|
||||
Example usage:
|
||||
python combiner.py full
|
||||
The files will be store in greybox_dist/* depending on the dist. type
|
||||
"""
|
||||
sys.exit(0)
|
||||
|
||||
type = args[1]
|
||||
output_dir = 'greybox'
|
||||
|
||||
##
|
||||
# Config file list
|
||||
#
|
||||
js = []
|
||||
css = []
|
||||
static = []
|
||||
|
||||
append = lambda l, x: l.append('greybox_source/%s' % x)
|
||||
|
||||
def appendBase():
|
||||
append(js, 'base/base.js')
|
||||
append(js, 'auto_deco.js')
|
||||
append(css, 'base/base.css')
|
||||
append(static, 'base/indicator.gif')
|
||||
append(static, 'base/loader_frame.html')
|
||||
|
||||
def appendSet():
|
||||
append(js, 'set/set.js')
|
||||
append(css, 'set/set.css')
|
||||
append(static, 'set/next.gif')
|
||||
append(static, 'set/prev.gif')
|
||||
|
||||
def appendGallery():
|
||||
append(js, 'gallery/gallery.js')
|
||||
append(css, 'gallery/gallery.css')
|
||||
append(static, 'gallery/g_close.gif')
|
||||
|
||||
def appendWindow():
|
||||
append(js, 'window/window.js')
|
||||
append(css, 'window/window.css')
|
||||
append(static, 'window/header_bg.gif')
|
||||
append(static, 'window/w_close.gif')
|
||||
|
||||
appendBase()
|
||||
|
||||
if type == 'full':
|
||||
appendGallery()
|
||||
appendSet()
|
||||
appendWindow()
|
||||
elif type == 'gallery':
|
||||
appendGallery()
|
||||
appendSet()
|
||||
elif type == 'window':
|
||||
appendWindow()
|
||||
else:
|
||||
sys.exit('Uknown type')
|
||||
|
||||
print 'Follwoing styles are used:'
|
||||
for style in css:
|
||||
print ' %s' % style
|
||||
|
||||
print 'Follwoing JavaScript is used:'
|
||||
for script in js:
|
||||
print ' %s' % script
|
||||
|
||||
##
|
||||
# Copy the files
|
||||
#
|
||||
try:
|
||||
shutil.rmtree(output_dir)
|
||||
except:
|
||||
pass
|
||||
os.mkdir(output_dir)
|
||||
|
||||
def concatFiles(f_list):
|
||||
data = []
|
||||
for f in f_list:
|
||||
data.append(open(f, 'r').read())
|
||||
return '\n\n'.join(data)
|
||||
|
||||
def copyFiles(f_list):
|
||||
for f in f_list:
|
||||
shutil.copy(f, output_dir)
|
||||
|
||||
copyFiles(static)
|
||||
fp = open('%s/%s' % (output_dir, 'gb_styles.css'), 'w')
|
||||
fp.write(concatFiles(css))
|
||||
fp.close()
|
||||
print 'Compressed styles in %s' % ('greybox/gb_styles.css')
|
||||
|
||||
##
|
||||
# Concat js
|
||||
#
|
||||
fp = open('%s/%s' % (output_dir, 'gb_scripts_tmp.js'), 'w')
|
||||
fp.write(concatFiles(js))
|
||||
fp.close()
|
||||
|
||||
AJS_minify.AJS_SRC = 'greybox_source/base/AJS.js'
|
||||
AJS_minify.AJS_MINI_SRC = 'greybox/AJS_tmp.js'
|
||||
files = ['greybox/gb_scripts_tmp.js', 'greybox_source/base/AJS_fx.js', 'static_files/help.js']
|
||||
code_analyzer = AJS_minify.ExternalCodeAnalyzer(files)
|
||||
composer = AJS_minify.AjsComposer(code_analyzer.findFunctions())
|
||||
composer.writeToOutput()
|
||||
|
||||
os.popen('java -jar compression_lib/custom_rhino.jar -c greybox/AJS_tmp.js > greybox/AJS.js')
|
||||
os.remove('greybox/AJS_tmp.js')
|
||||
os.popen('java -jar compression_lib/custom_rhino.jar -c greybox_source/base/AJS_fx.js > greybox/AJS_fx.js')
|
||||
print 'Compressed AJS.js and AJS.js into greybox/'
|
||||
|
||||
os.popen('java -jar compression_lib/custom_rhino.jar -c greybox/gb_scripts_tmp.js > greybox/gb_scripts.js')
|
||||
os.remove('greybox/gb_scripts_tmp.js')
|
||||
print 'Compressed JavaScript in %s' % ('greybox/gb_scripts.css')
|
||||
|
||||
#Append script_loaded
|
||||
open('greybox/AJS.js', 'a').write('\nscript_loaded=true;')
|
||||
open('greybox/AJS_fx.js', 'a').write('\nscript_loaded=true;')
|
||||
open('greybox/gb_scripts.js', 'a').write('\nscript_loaded=true;')
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>GreyBox - Compressing GreyBox</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
var GB_ROOT_DIR = "./greybox/";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="greybox/AJS.js"></script>
|
||||
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
|
||||
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
|
||||
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
|
||||
|
||||
<script type="text/javascript" src="static_files/help.js"></script>
|
||||
<link href="static_files/help.css" rel="stylesheet" type="text/css" media="all" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script>
|
||||
insertHeader();
|
||||
insertMenu('cmpr');
|
||||
</script>
|
||||
|
||||
<h2>Code structure</h2>
|
||||
<ul>
|
||||
<li><b>greybox:</b> Generated and compressed JavaScript and CSS is located here</li>
|
||||
<li><b>greybox_source:</b> CSS and JavaScript structured in directories.</li>
|
||||
</ul>
|
||||
It's not recommend that you alter code in the <b>greybox</b> directory, since it's computer generated and very unreadable!
|
||||
|
||||
|
||||
<h2>Download Dojo ShrinkSafe</h2>
|
||||
To make the filesize as small as possible GreyBox JavaScript is compressed down using <a href="http://alex.dojotoolkit.org/shrinksafe/">Dojo ShrinkSafe</a>. This library requires <a href="http://www.java.com/getjava/">Java</a>, so make sure you got Java installed. Download following JAR file:
|
||||
<ul>
|
||||
<li><a href="http://svn.dojotoolkit.org/dojo/trunk/buildscripts/lib/custom_rhino.jar">custom_rhino.jar</a></li>
|
||||
</ul>
|
||||
Place <b>custom_rhino.jar</b> in GreyBox's <b>compression_lib</b> directory.
|
||||
|
||||
|
||||
<h2>Compressing GreyBox</h2>
|
||||
Now, you are ready to compress GreyBox. This is done by running a Python script called <b>combiner.py</b>. I.e. you need to download and install <a href="http://www.python.org/download/">Pyhton</a>.
|
||||
|
||||
<p>
|
||||
You can run <b>combiner.py</b> in following ways:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><b>python combiner.py full:</b> Compress everything</li>
|
||||
<li><b>python combiner.py gallery:</b> Compress only gallery related CSS and JavaScript</li>
|
||||
<li><b>python combiner.py window:</b> Compress only window related CSS and JavaScript</li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,255 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
#Last-update: 08/05/07 12:39:17
|
||||
import re
|
||||
import sys
|
||||
from sets import Set
|
||||
|
||||
##
|
||||
# External files
|
||||
#
|
||||
AJS_SRC = 'AJS.js'
|
||||
AJS_MINI_SRC = 'AJS_compressed.js'
|
||||
|
||||
|
||||
##
|
||||
# Standard stuff that may change in the future
|
||||
#
|
||||
DOM_SHORTCUTS = [
|
||||
"ul", "li", "td", "tr", "th",
|
||||
"tbody", "table", "input", "span", "b",
|
||||
"a", "div", "img", "button", "h1",
|
||||
"h2", "h3", "br", "textarea", "form",
|
||||
"p", "select", "option", "iframe", "script",
|
||||
"center", "dl", "dt", "dd", "small",
|
||||
"pre", "tn"
|
||||
]
|
||||
|
||||
FN_SHORTCUTS = {
|
||||
'$': 'getElement',
|
||||
'$$': 'getElements',
|
||||
'$f': 'getFormElement',
|
||||
'$b': 'bind',
|
||||
'$p': 'partial',
|
||||
'$A': 'createArray',
|
||||
'DI': 'documentInsert',
|
||||
'ACN': 'appendChildNodes',
|
||||
'RCN': 'replaceChildNodes',
|
||||
'AEV': 'addEventListener',
|
||||
'REV': 'removeEventListener',
|
||||
'$bytc': 'getElementsByTagAndClassName'
|
||||
}
|
||||
|
||||
AJS_TEMPLATE = """//AJS JavaScript library (minify'ed version)
|
||||
//Copyright (c) 2006 Amir Salihefendic. All rights reserved.
|
||||
//Copyright (c) 2005 Bob Ippolito. All rights reserved.
|
||||
//License: http://www.opensource.org/licenses/mit-license.php
|
||||
//Visit http://orangoo.com/AmiNation/AJS for full version.
|
||||
AJS = {
|
||||
BASE_URL: "",
|
||||
drag_obj: null,
|
||||
drag_elm: null,
|
||||
_drop_zones: [],
|
||||
_cur_pos: null,
|
||||
|
||||
%(functions)s
|
||||
}
|
||||
|
||||
AJS.$ = AJS.getElement;
|
||||
AJS.$$ = AJS.getElements;
|
||||
AJS.$f = AJS.getFormElement;
|
||||
AJS.$p = AJS.partial;
|
||||
AJS.$b = AJS.bind;
|
||||
AJS.$A = AJS.createArray;
|
||||
AJS.DI = AJS.documentInsert;
|
||||
AJS.ACN = AJS.appendChildNodes;
|
||||
AJS.RCN = AJS.replaceChildNodes;
|
||||
AJS.AEV = AJS.addEventListener;
|
||||
AJS.REV = AJS.removeEventListener;
|
||||
AJS.$bytc = AJS.getElementsByTagAndClassName;
|
||||
|
||||
AJS.addEventListener(window, 'unload', AJS._unloadListeners);
|
||||
AJS._createDomShortcuts();
|
||||
|
||||
%(AJSClass)s
|
||||
|
||||
%(AJSDeferred)s
|
||||
script_loaded = true;
|
||||
"""
|
||||
|
||||
|
||||
def getAjsCode():
|
||||
return open(AJS_SRC).read()
|
||||
|
||||
def writeAjsMini(code):
|
||||
open(AJS_MINI_SRC, "w").write(code)
|
||||
|
||||
|
||||
class AjsAnalyzer:
|
||||
|
||||
def __init__(self):
|
||||
self.code = getAjsCode()
|
||||
self.ajs_fns = {}
|
||||
self.ajs_deps = {}
|
||||
self._parseAJS()
|
||||
self._findDeps()
|
||||
|
||||
def _parseAJS(self):
|
||||
ajs_code = re.search("AJS =(.|\n)*\n}\n", self.code).group(0)
|
||||
fns = re.findall("\s+((\w*?):.*?{(.|\n)*?\n\s*})(,|\n+})\n", ajs_code)
|
||||
for f in fns:
|
||||
self.ajs_fns[f[1]] = f[0]
|
||||
|
||||
def getFnCode(self, fn_name, caller=None):
|
||||
"""
|
||||
Returns the code of function and it's dependencies as a list
|
||||
"""
|
||||
fn_name = self._unfoldFn(fn_name)
|
||||
r = []
|
||||
if self.ajs_fns.get(fn_name):
|
||||
r.append(self.ajs_fns[fn_name])
|
||||
for dep_fn in self.ajs_deps[fn_name]:
|
||||
if fn_name != dep_fn and dep_fn != caller:
|
||||
r.extend(self.getFnCode(dep_fn, fn_name))
|
||||
elif fn_name not in ['listeners', 'Class']:
|
||||
print 'Could not find "%s"' % fn_name
|
||||
return r
|
||||
|
||||
def getAjsClassCode(self):
|
||||
return re.search("AJS.Class =(.|\n)*\n};\n", self.code).group(0)
|
||||
|
||||
def getAjsDeferredCode(self):
|
||||
return re.search("AJSDeferred =(.|\n)*\n};\n", self.code).group(0)
|
||||
|
||||
def _findDeps(self):
|
||||
"""
|
||||
Parses AJS and for every function it finds dependencies for the other functions.
|
||||
"""
|
||||
for fn_name, fn_code in self.ajs_fns.items():
|
||||
self.ajs_deps[fn_name] = self._findFns(fn_code)
|
||||
|
||||
def _findFns(self, inner):
|
||||
"""
|
||||
Searches after AJS.fnX( in inner and returns all the fnX in a Set.
|
||||
"""
|
||||
s = re.findall("AJS\.([\w_$]*?)(?:\(|,|\.)", inner)
|
||||
s = list(Set(s))
|
||||
return self._unfoldFns(s)
|
||||
|
||||
def _unfoldFns(self, list):
|
||||
"""
|
||||
Unfolds:
|
||||
AJS.B, AJS.H1 etc. to _createDomShortcuts
|
||||
AJS.$ to AJS.getElement etc.
|
||||
"""
|
||||
return [self._unfoldFn(n) for n in list]
|
||||
|
||||
def _unfoldFn(self, fn_name):
|
||||
if fn_name.lower() in DOM_SHORTCUTS:
|
||||
return "_createDomShortcuts"
|
||||
elif FN_SHORTCUTS.get(fn_name):
|
||||
return FN_SHORTCUTS[fn_name]
|
||||
else:
|
||||
return fn_name
|
||||
|
||||
|
||||
class ExternalCodeAnalyzer:
|
||||
|
||||
def __init__(self, files):
|
||||
self.found_ajs_fns = []
|
||||
self.files = files
|
||||
|
||||
def findFunctions(self):
|
||||
for f in self.files:
|
||||
self.found_ajs_fns.extend( self._parseFile(f) )
|
||||
return list(Set(self.found_ajs_fns))
|
||||
|
||||
def _parseFile(self, f):
|
||||
"""
|
||||
Parses the file, looks for AJS functions and returns all the found functions.
|
||||
"""
|
||||
code = open(f).read()
|
||||
return re.findall("AJS\.([\w_$]*?)\(", code)
|
||||
|
||||
|
||||
|
||||
class AjsComposer:
|
||||
|
||||
def __init__(self, fn_list):
|
||||
self.code = getAjsCode()
|
||||
self.analyzer = AjsAnalyzer()
|
||||
self.fn_list = fn_list
|
||||
|
||||
#Append standard functions
|
||||
req = ['_unloadListeners', 'createDOM', '_createDomShortcuts', 'log', 'addEventListener']
|
||||
self.fn_list.extend(req)
|
||||
|
||||
#Append AJSDeferred only if needed
|
||||
in_list = lambda x: x in self.fn_list
|
||||
if in_list('getRequest') or in_list('loadJSONDoc'):
|
||||
self.deferred = self._minify(self.analyzer.getAjsDeferredCode())
|
||||
self.fn_list.append('isObject')
|
||||
else:
|
||||
self.deferred = ''
|
||||
|
||||
def writeToOutput(self):
|
||||
fns = self._getFns()
|
||||
d = {}
|
||||
d['functions'] = ",\n".join(fns)
|
||||
d['AJSDeferred'] = self.deferred
|
||||
d['AJSClass'] = self.analyzer.getAjsClassCode()
|
||||
|
||||
mini_code = AJS_TEMPLATE % d
|
||||
writeAjsMini(mini_code)
|
||||
|
||||
def _minify(self, code):
|
||||
new_lines = []
|
||||
for l in code.split("\n"):
|
||||
if l not in ['\n', '']:
|
||||
new_lines.append(l.lstrip())
|
||||
return "\n".join(new_lines)
|
||||
|
||||
def _getFns(self):
|
||||
"""
|
||||
Returns a list with real code of functions
|
||||
"""
|
||||
r = []
|
||||
for fn in self.fn_list:
|
||||
r.extend(self.analyzer.getFnCode(fn))
|
||||
|
||||
r = list(Set(r))
|
||||
return [self._minify(fn) for fn in r]
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
args = sys.argv
|
||||
|
||||
if len(args) < 3:
|
||||
print """Usage is:
|
||||
python AJS_minify.py [-o output_file] ajs_file js_file.js html_using_ajs.html ...
|
||||
Example usage:
|
||||
Using relative paths:
|
||||
python AJS_minify.py -o AJS_mini.js AJS.js test.js index.html
|
||||
This will create AJS_mini.js from test.js and index.html.
|
||||
Using absolute paths:
|
||||
python AJS_minify.py ~/Desktop/AJS/AJS.js ~/Desktop/GreyBox_v3_42/greybox/greybox.js
|
||||
This will create a new file called '%s' that has the needed AJS functions.""" % AJS_MINI_SRC
|
||||
|
||||
sys.exit(0)
|
||||
|
||||
if sys.argv[1] == '-o':
|
||||
AJS_MINI_SRC = sys.argv[2]
|
||||
AJS_SRC = sys.argv[3]
|
||||
FILES = sys.argv[4:]
|
||||
else:
|
||||
AJS_SRC = sys.argv[1]
|
||||
FILES = sys.argv[2:]
|
||||
|
||||
print 'Parsing through:\n %s' % "\n ".join(FILES)
|
||||
|
||||
code_analyzer = ExternalCodeAnalyzer(FILES)
|
||||
found_fns = code_analyzer.findFunctions()
|
||||
print 'Found following AJS functions:\n %s' % ("\n ".join(found_fns))
|
||||
|
||||
composer = AjsComposer(found_fns)
|
||||
composer.writeToOutput()
|
||||
print "Written the minified code to '%s'" % AJS_MINI_SRC
|
||||
|
|
@ -1 +0,0 @@
|
|||
#
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>GreyBox - Examples</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
var GB_ROOT_DIR = "./greybox/";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="greybox/AJS.js"></script>
|
||||
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
|
||||
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
|
||||
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
|
||||
|
||||
<script type="text/javascript" src="static_files/help.js"></script>
|
||||
<link href="static_files/help.css" rel="stylesheet" type="text/css" media="all" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script>
|
||||
insertHeader();
|
||||
insertMenu('examples');
|
||||
</script>
|
||||
|
||||
|
||||
<h3>One website</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://google.com/" title="Google" rel="gb_page_center[640, 480]">Launch google.com in a 640x480 window</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://google.com/" title="Google" rel="gb_page_fs[]">Launch google.com in fullscreen window</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>Website gallery</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://google.com/" title="Google" rel="gb_pageset[search_sites]">Launch Google search</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://search.yahoo.com/" rel="gb_pageset[search_sites]">Launch Yahoo search</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://www.koders.com/" rel="gb_pageset[search_sites]">Launch Koders search</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>Image gallery</h3>
|
||||
<script type="text/javascript">
|
||||
var image_set = [{'caption': 'Flower', 'url': 'http://static.flickr.com/119/294309231_a3d2a339b9.jpg'},
|
||||
{'caption': 'Nice waterfall', 'url': 'http://www.widerange.org/images/large/plitvicka.jpg'}];
|
||||
</script>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#" onclick="return GB_showImageSet(image_set, 1)">Launch gallery</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="static_files/night_valley.jpg" rel="gb_imageset[nice_pics]" title="Night valley">
|
||||
<img src="static_files/night_valley_thumb.jpg" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="static_files/salt.jpg" rel="gb_imageset[nice_pics]" title="Salt flats in Chile">
|
||||
<img src="static_files/salt_thumb.gif" />
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>Without loading</h3>
|
||||
<script type="text/javascript">
|
||||
GB_myShow = function(caption, url, /* optional */ height, width, callback_fn) {
|
||||
var options = {
|
||||
caption: caption,
|
||||
height: height || 500,
|
||||
width: width || 500,
|
||||
fullscreen: false,
|
||||
show_loading: false,
|
||||
callback_fn: callback_fn
|
||||
}
|
||||
var win = new GB_Window(options);
|
||||
return win.show(url);
|
||||
}
|
||||
</script>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://google.com/" onclick="return GB_myShow('Google', this.href)">Visit Google without loading</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
var GB_SETS = {};
|
||||
function decoGreyboxLinks() {
|
||||
var as = AJS.$bytc('a');
|
||||
AJS.map(as, function(a) {
|
||||
if(a.getAttribute('href') && a.getAttribute('rel')) {
|
||||
var rel = a.getAttribute('rel');
|
||||
if(rel.indexOf('gb_') == 0) {
|
||||
var name = rel.match(/\w+/)[0];
|
||||
var attrs = rel.match(/\[(.*)\]/)[1];
|
||||
var index = 0;
|
||||
|
||||
var item = {
|
||||
'caption': a.title || '',
|
||||
'url': a.href
|
||||
}
|
||||
|
||||
//Set up GB_SETS
|
||||
if(name == 'gb_pageset' || name == 'gb_imageset') {
|
||||
if(!GB_SETS[attrs]) { GB_SETS[attrs] = []; }
|
||||
GB_SETS[attrs].push(item);
|
||||
index = GB_SETS[attrs].length;
|
||||
}
|
||||
|
||||
//Append onclick
|
||||
if(name == 'gb_pageset') {
|
||||
a.onclick = function() {
|
||||
GB_showFullScreenSet(GB_SETS[attrs], index);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(name == 'gb_imageset') {
|
||||
a.onclick = function() {
|
||||
GB_showImageSet(GB_SETS[attrs], index);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(name == 'gb_image') {
|
||||
a.onclick = function() {
|
||||
GB_showImage(item.caption, item.url);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(name == 'gb_page') {
|
||||
a.onclick = function() {
|
||||
var sp = attrs.split(/, ?/);
|
||||
GB_show(item.caption, item.url, parseInt(sp[1]), parseInt(sp[0]));
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(name == 'gb_page_fs') {
|
||||
a.onclick = function() {
|
||||
GB_showFullScreen(item.caption, item.url);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(name == 'gb_page_center') {
|
||||
a.onclick = function() {
|
||||
var sp = attrs.split(/, ?/);
|
||||
GB_showCenter(item.caption, item.url, parseInt(sp[1]), parseInt(sp[0]));
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}});
|
||||
}
|
||||
|
||||
AJS.AEV(window, 'load', decoGreyboxLinks);
|
||||
|
|
@ -1,194 +0,0 @@
|
|||
/*
|
||||
Last Modified: 25/12/06 18:26:30
|
||||
|
||||
AJS effects
|
||||
A very small library with a lot of functionality
|
||||
AUTHOR
|
||||
4mir Salihefendic (http://amix.dk) - amix@amix.dk
|
||||
LICENSE
|
||||
Copyright (c) 2006 Amir Salihefendic. All rights reserved.
|
||||
Copyright (c) 2005 Bob Ippolito. All rights reserved.
|
||||
Copyright (c) 2006 Valerio Proietti, http://www.mad4milk.net
|
||||
http://www.opensource.org/licenses/mit-license.php
|
||||
VERSION
|
||||
3.6
|
||||
SITE
|
||||
http://orangoo.com/AmiNation/AJS
|
||||
**/
|
||||
AJS.fx = {
|
||||
_shades: {0: 'ffffff', 1: 'ffffee', 2: 'ffffdd',
|
||||
3: 'ffffcc', 4: 'ffffbb', 5: 'ffffaa',
|
||||
6: 'ffff99'},
|
||||
|
||||
highlight: function(elm, options) {
|
||||
var base = new AJS.fx.Base();
|
||||
base.elm = AJS.$(elm);
|
||||
base.setOptions(options);
|
||||
base.options.duration = 600;
|
||||
|
||||
AJS.update(base, {
|
||||
increase: function(){
|
||||
if(this.now == 7)
|
||||
elm.style.backgroundColor = 'transparent';
|
||||
else
|
||||
elm.style.backgroundColor = '#' + AJS.fx._shades[Math.floor(this.now)];
|
||||
}
|
||||
});
|
||||
return base.custom(6, 0);
|
||||
},
|
||||
|
||||
fadeIn: function(elm, options) {
|
||||
options = options || {};
|
||||
if(!options.from) {
|
||||
options.from = 0;
|
||||
AJS.setOpacity(elm, 0);
|
||||
}
|
||||
if(!options.to) options.to = 1;
|
||||
var s = new AJS.fx.Style(elm, 'opacity', options);
|
||||
return s.custom(options.from, options.to);
|
||||
},
|
||||
|
||||
fadeOut: function(elm, options) {
|
||||
options = options || {};
|
||||
if(!options.from) options.from = 1;
|
||||
if(!options.to) options.to = 0;
|
||||
options.duration = 300;
|
||||
var s = new AJS.fx.Style(elm, 'opacity', options);
|
||||
return s.custom(options.from, options.to);
|
||||
},
|
||||
|
||||
setWidth: function(elm, options) {
|
||||
var s = new AJS.fx.Style(elm, 'width', options);
|
||||
return s.custom(options.from, options.to);
|
||||
},
|
||||
|
||||
setHeight: function(elm, options) {
|
||||
var s = new AJS.fx.Style(elm, 'height', options);
|
||||
return s.custom(options.from, options.to);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//From moo.fx
|
||||
AJS.fx.Base = new AJS.Class({
|
||||
init: function() {
|
||||
AJS.bindMethods(this);
|
||||
},
|
||||
|
||||
setOptions: function(options){
|
||||
this.options = AJS.update({
|
||||
onStart: function(){},
|
||||
onComplete: function(){},
|
||||
transition: AJS.fx.Transitions.sineInOut,
|
||||
duration: 500,
|
||||
wait: true,
|
||||
fps: 50
|
||||
}, options || {});
|
||||
},
|
||||
|
||||
step: function(){
|
||||
var time = new Date().getTime();
|
||||
if (time < this.time + this.options.duration){
|
||||
this.cTime = time - this.time;
|
||||
this.setNow();
|
||||
} else {
|
||||
setTimeout(AJS.$b(this.options.onComplete, this, [this.elm]), 10);
|
||||
this.clearTimer();
|
||||
this.now = this.to;
|
||||
}
|
||||
this.increase();
|
||||
},
|
||||
|
||||
setNow: function(){
|
||||
this.now = this.compute(this.from, this.to);
|
||||
},
|
||||
|
||||
compute: function(from, to){
|
||||
var change = to - from;
|
||||
return this.options.transition(this.cTime, from, change, this.options.duration);
|
||||
},
|
||||
|
||||
clearTimer: function(){
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
return this;
|
||||
},
|
||||
|
||||
_start: function(from, to){
|
||||
if (!this.options.wait) this.clearTimer();
|
||||
if (this.timer) return;
|
||||
setTimeout(AJS.$p(this.options.onStart, this.elm), 10);
|
||||
this.from = from;
|
||||
this.to = to;
|
||||
this.time = new Date().getTime();
|
||||
this.timer = setInterval(this.step, Math.round(1000/this.options.fps));
|
||||
return this;
|
||||
},
|
||||
|
||||
custom: function(from, to){
|
||||
return this._start(from, to);
|
||||
},
|
||||
|
||||
set: function(to){
|
||||
this.now = to;
|
||||
this.increase();
|
||||
return this;
|
||||
},
|
||||
|
||||
setStyle: function(elm, property, val) {
|
||||
if(this.property == 'opacity')
|
||||
AJS.setOpacity(elm, val);
|
||||
else
|
||||
AJS.setStyle(elm, property, val);
|
||||
}
|
||||
});
|
||||
|
||||
AJS.fx.Style = AJS.fx.Base.extend({
|
||||
init: function(elm, property, options) {
|
||||
this.parent();
|
||||
this.elm = elm;
|
||||
this.setOptions(options);
|
||||
this.property = property;
|
||||
},
|
||||
|
||||
increase: function(){
|
||||
this.setStyle(this.elm, this.property, this.now);
|
||||
}
|
||||
});
|
||||
|
||||
AJS.fx.Styles = AJS.fx.Base.extend({
|
||||
init: function(elm, options){
|
||||
this.parent();
|
||||
this.elm = AJS.$(elm);
|
||||
this.setOptions(options);
|
||||
this.now = {};
|
||||
},
|
||||
|
||||
setNow: function(){
|
||||
for (p in this.from)
|
||||
this.now[p] = this.compute(this.from[p], this.to[p]);
|
||||
},
|
||||
|
||||
custom: function(obj){
|
||||
if (this.timer && this.options.wait) return;
|
||||
var from = {};
|
||||
var to = {};
|
||||
for (p in obj){
|
||||
from[p] = obj[p][0];
|
||||
to[p] = obj[p][1];
|
||||
}
|
||||
return this._start(from, to);
|
||||
},
|
||||
|
||||
increase: function(){
|
||||
for (var p in this.now) this.setStyle(this.elm, p, this.now[p]);
|
||||
}
|
||||
});
|
||||
|
||||
//Transitions (c) 2003 Robert Penner (http://www.robertpenner.com/easing/), BSD License.
|
||||
AJS.fx.Transitions = {
|
||||
linear: function(t, b, c, d) { return c*t/d + b; },
|
||||
sineInOut: function(t, b, c, d) { return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; }
|
||||
};
|
||||
|
||||
script_loaded = true;
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
/* Last-Modified: 28/06/06 00:08:22 */
|
||||
#GB_overlay {
|
||||
background-color: #000;
|
||||
position: absolute;
|
||||
margin: auto;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
#GB_window {
|
||||
left: 0;
|
||||
top: 0;
|
||||
font-size: 1px;
|
||||
position: absolute;
|
||||
overflow: visible;
|
||||
z-index: 150;
|
||||
}
|
||||
|
||||
#GB_window .content {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#GB_frame {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
@ -1,192 +0,0 @@
|
|||
var GB_CURRENT = null;
|
||||
|
||||
GB_hide = function() {
|
||||
GB_CURRENT.hide();
|
||||
}
|
||||
|
||||
GreyBox = new AJS.Class({
|
||||
init: function(options) {
|
||||
this.use_fx = AJS.fx;
|
||||
this.type = "page";
|
||||
this.overlay_click_close = false;
|
||||
this.salt = 0;
|
||||
this.root_dir = GB_ROOT_DIR;
|
||||
this.callback_fns = [];
|
||||
this.reload_on_close = false;
|
||||
this.src_loader = this.root_dir + 'loader_frame.html';
|
||||
|
||||
//Solve the www issue
|
||||
var h_www = window.location.hostname.indexOf('www');
|
||||
var src_www = this.src_loader.indexOf('www');
|
||||
if(h_www != -1 && src_www == -1)
|
||||
this.src_loader = this.src_loader.replace('://', '://www.');
|
||||
|
||||
if(h_www == -1 && src_www != -1)
|
||||
this.src_loader = this.src_loader.replace('://www.', '://');
|
||||
|
||||
this.show_loading = true;
|
||||
AJS.update(this, options);
|
||||
},
|
||||
|
||||
addCallback: function(fn) {
|
||||
if(fn) this.callback_fns.push(fn);
|
||||
},
|
||||
|
||||
show: function(url) {
|
||||
GB_CURRENT = this;
|
||||
this.url = url;
|
||||
|
||||
var elms = [AJS.$bytc("object"), AJS.$bytc("select")];
|
||||
AJS.map(AJS.flattenList(elms), function(elm) {
|
||||
elm.style.visibility = "hidden";
|
||||
});
|
||||
|
||||
this.createElements();
|
||||
return false;
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
var c_bs = this.callback_fns;
|
||||
if(c_bs != []) {
|
||||
AJS.map(c_bs, function(fn) {
|
||||
fn();
|
||||
});
|
||||
}
|
||||
|
||||
this.onHide();
|
||||
if(this.use_fx) {
|
||||
var elm = this.overlay;
|
||||
AJS.fx.fadeOut(this.overlay, {
|
||||
onComplete: function() {
|
||||
AJS.removeElement(elm);
|
||||
elm = null;
|
||||
},
|
||||
duration: 300
|
||||
});
|
||||
AJS.removeElement(this.g_window);
|
||||
}
|
||||
else {
|
||||
AJS.removeElement(this.g_window, this.overlay);
|
||||
}
|
||||
|
||||
this.removeFrame();
|
||||
|
||||
AJS.REV(window, "scroll", _GB_setOverlayDimension);
|
||||
AJS.REV(window, "resize", _GB_update);
|
||||
|
||||
var elms = [AJS.$bytc("object"), AJS.$bytc("select")];
|
||||
AJS.map(AJS.flattenList(elms), function(elm) {
|
||||
elm.style.visibility = "visible";
|
||||
});
|
||||
|
||||
GB_CURRENT = null;
|
||||
|
||||
if(this.reload_on_close)
|
||||
window.location.reload();
|
||||
},
|
||||
|
||||
update: function() {
|
||||
this.setOverlayDimension();
|
||||
this.setFrameSize();
|
||||
this.setWindowPosition();
|
||||
},
|
||||
|
||||
createElements: function() {
|
||||
this.initOverlay();
|
||||
|
||||
this.g_window = AJS.DIV({'id': 'GB_window'});
|
||||
AJS.hideElement(this.g_window);
|
||||
AJS.getBody().insertBefore(this.g_window, this.overlay.nextSibling);
|
||||
|
||||
this.initFrame();
|
||||
this.initHook();
|
||||
this.update();
|
||||
|
||||
var me = this;
|
||||
if(this.use_fx) {
|
||||
AJS.fx.fadeIn(this.overlay, {
|
||||
duration: 300,
|
||||
to: 0.7,
|
||||
onComplete: function() {
|
||||
me.onShow();
|
||||
AJS.showElement(me.g_window);
|
||||
me.startLoading();
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
AJS.setOpacity(this.overlay, 0.7);
|
||||
AJS.showElement(this.g_window);
|
||||
this.onShow();
|
||||
this.startLoading();
|
||||
}
|
||||
|
||||
AJS.AEV(window, "scroll", _GB_setOverlayDimension);
|
||||
AJS.AEV(window, "resize", _GB_update);
|
||||
},
|
||||
|
||||
removeFrame: function() {
|
||||
try{ AJS.removeElement(this.iframe); }
|
||||
catch(e) {}
|
||||
|
||||
this.iframe = null;
|
||||
},
|
||||
|
||||
startLoading: function() {
|
||||
this.iframe.src = this.src_loader + '?s='+this.salt++;
|
||||
AJS.showElement(this.iframe);
|
||||
},
|
||||
|
||||
setOverlayDimension: function() {
|
||||
var page_size = AJS.getWindowSize();
|
||||
if(AJS.isMozilla() || AJS.isOpera())
|
||||
AJS.setWidth(this.overlay, "100%");
|
||||
else
|
||||
AJS.setWidth(this.overlay, page_size.w);
|
||||
|
||||
var max_height = Math.max(AJS.getScrollTop()+page_size.h, AJS.getScrollTop()+this.height);
|
||||
|
||||
if(max_height < AJS.getScrollTop())
|
||||
AJS.setHeight(this.overlay, max_height);
|
||||
else
|
||||
AJS.setHeight(this.overlay, AJS.getScrollTop()+page_size.h);
|
||||
},
|
||||
|
||||
initOverlay: function() {
|
||||
this.overlay = AJS.DIV({'id': 'GB_overlay'});
|
||||
|
||||
if(this.overlay_click_close)
|
||||
AJS.AEV(this.overlay, "click", GB_hide);
|
||||
|
||||
AJS.setOpacity(this.overlay, 0);
|
||||
AJS.getBody().insertBefore(this.overlay, AJS.getBody().firstChild);
|
||||
},
|
||||
|
||||
initFrame: function() {
|
||||
if(!this.iframe) {
|
||||
var d = {'name': 'GB_frame', 'class': 'GB_frame', 'frameBorder': 0};
|
||||
this.iframe = AJS.IFRAME(d);
|
||||
this.middle_cnt = AJS.DIV({'class': 'content'}, this.iframe);
|
||||
|
||||
this.top_cnt = AJS.DIV();
|
||||
this.bottom_cnt = AJS.DIV();
|
||||
|
||||
AJS.ACN(this.g_window, this.top_cnt, this.middle_cnt, this.bottom_cnt);
|
||||
}
|
||||
},
|
||||
|
||||
/* Can be implemented */
|
||||
onHide: function() {},
|
||||
onShow: function() {},
|
||||
setFrameSize: function() {},
|
||||
setWindowPosition: function() {},
|
||||
initHook: function() {}
|
||||
|
||||
});
|
||||
|
||||
_GB_update = function() { if(GB_CURRENT) GB_CURRENT.update(); }
|
||||
_GB_setOverlayDimension = function() { if(GB_CURRENT) GB_CURRENT.setOverlayDimension(); }
|
||||
|
||||
AJS.preloadImages(GB_ROOT_DIR+'indicator.gif');
|
||||
|
||||
script_loaded = true;
|
||||
|
Before Width: | Height: | Size: 8.0 KiB |
|
|
@ -1,104 +0,0 @@
|
|||
<!--
|
||||
Notice: I feel so dirty doing this, but its the only way to make it cross browser.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
var GB = parent.GB_CURRENT;
|
||||
document.write('<script type="text/javascript" src="AJS.js"><\/script>');
|
||||
if(GB.use_fx) {
|
||||
document.write('<script type="text/javascript" src="AJS_fx.js"><\/script>');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#GB_frame {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#loading {
|
||||
padding-top: 50px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="loading">
|
||||
<img src="indicator.gif">
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var loading = AJS.$('loading');
|
||||
var gb_type = GB.type;
|
||||
var gb_url = GB.url;
|
||||
|
||||
//Start loading in the iframe
|
||||
if(gb_type == "page") {
|
||||
document.write('<iframe id="GB_frame" src="' + gb_url + '" frameborder="0"></iframe>');
|
||||
}
|
||||
else {
|
||||
var img_holder = new Image();
|
||||
img_holder.src = gb_url;
|
||||
document.write('<img id="GB_frame" src="' + gb_url + '">');
|
||||
}
|
||||
var frame = AJS.$('GB_frame');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
function setupOuterGB() {
|
||||
frame.style.visibility = 'visible';
|
||||
GB.setFrameSize();
|
||||
GB.setWindowPosition();
|
||||
}
|
||||
|
||||
function loaded() {
|
||||
AJS.removeElement(loading);
|
||||
|
||||
GB.overlay.innerHTML += " "; //Safari bugfix
|
||||
|
||||
if(gb_type == "image") {
|
||||
if(img_holder.width != 0 && img_holder.height != 0) {
|
||||
var width = img_holder.width;
|
||||
var height = img_holder.height;
|
||||
|
||||
GB.width = width;
|
||||
GB.height = height;
|
||||
|
||||
setupOuterGB();
|
||||
|
||||
if(GB.use_fx) {
|
||||
AJS.setOpacity(frame, 0);
|
||||
AJS.fx.fadeIn(frame);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
GB.width = frame.offsetWidth;
|
||||
GB.height = frame.offsetHeight;
|
||||
setupOuterGB();
|
||||
}
|
||||
}
|
||||
|
||||
if(GB.show_loading) {
|
||||
AJS.AEV(window, 'load', function(e) {
|
||||
loaded();
|
||||
});
|
||||
}
|
||||
else {
|
||||
loaded();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 541 B |
|
|
@ -1,51 +0,0 @@
|
|||
.GB_Gallery {
|
||||
margin: 0 22px 0 22px;
|
||||
}
|
||||
|
||||
.GB_Gallery .content {
|
||||
background-color: #fff;
|
||||
border: 3px solid #ddd;
|
||||
}
|
||||
|
||||
.GB_header {
|
||||
top: 10px;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
z-index: 500;
|
||||
position: absolute;
|
||||
border-bottom: 2px solid #555;
|
||||
border-top: 2px solid #555;
|
||||
}
|
||||
|
||||
.GB_header .inner {
|
||||
background-color: #333;
|
||||
font-family: Arial, Verdana, sans-serif;
|
||||
padding: 2px 20px 2px 20px;
|
||||
}
|
||||
|
||||
.GB_header table {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.GB_header .caption {
|
||||
text-align: left;
|
||||
color: #eee;
|
||||
white-space: nowrap;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.GB_header .close {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.GB_header .close img {
|
||||
z-index: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.GB_header .middle {
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
@ -1,114 +0,0 @@
|
|||
GB_showImage = function(caption, url, callback_fn) {
|
||||
var options = {
|
||||
width: 300,
|
||||
height: 300,
|
||||
type: 'image',
|
||||
|
||||
fullscreen: false,
|
||||
center_win: true,
|
||||
caption: caption,
|
||||
callback_fn: callback_fn
|
||||
}
|
||||
var win = new GB_Gallery(options);
|
||||
return win.show(url);
|
||||
}
|
||||
|
||||
GB_showPage = function(caption, url, callback_fn) {
|
||||
var options = {
|
||||
type: 'page',
|
||||
|
||||
caption: caption,
|
||||
callback_fn: callback_fn,
|
||||
fullscreen: true,
|
||||
center_win: false
|
||||
}
|
||||
var win = new GB_Gallery(options);
|
||||
return win.show(url);
|
||||
}
|
||||
|
||||
GB_Gallery = GreyBox.extend({
|
||||
init: function(options) {
|
||||
this.parent({});
|
||||
this.img_close = this.root_dir + 'g_close.gif';
|
||||
AJS.update(this, options);
|
||||
this.addCallback(this.callback_fn);
|
||||
},
|
||||
|
||||
initHook: function() {
|
||||
AJS.addClass(this.g_window, 'GB_Gallery');
|
||||
|
||||
var inner = AJS.DIV({'class': 'inner'});
|
||||
this.header = AJS.DIV({'class': 'GB_header'}, inner);
|
||||
AJS.setOpacity(this.header, 0);
|
||||
AJS.getBody().insertBefore(this.header, this.overlay.nextSibling);
|
||||
|
||||
var td_caption = AJS.TD({'id': 'GB_caption', 'class': 'caption', 'width': '40%'}, this.caption);
|
||||
var td_middle = AJS.TD({'id': 'GB_middle', 'class': 'middle', 'width': '20%'});
|
||||
|
||||
var img_close = AJS.IMG({'src': this.img_close});
|
||||
AJS.AEV(img_close, 'click', GB_hide);
|
||||
var td_close = AJS.TD({'class': 'close', 'width': '40%'}, img_close);
|
||||
|
||||
var tbody = AJS.TBODY(AJS.TR(td_caption, td_middle, td_close));
|
||||
|
||||
var table = AJS.TABLE({'cellspacing': '0', 'cellpadding': 0, 'border': 0}, tbody);
|
||||
AJS.ACN(inner, table);
|
||||
|
||||
if(this.fullscreen)
|
||||
AJS.AEV(window, 'scroll', AJS.$b(this.setWindowPosition, this));
|
||||
else
|
||||
AJS.AEV(window, 'scroll', AJS.$b(this._setHeaderPos, this));
|
||||
},
|
||||
|
||||
setFrameSize: function() {
|
||||
var overlay_w = this.overlay.offsetWidth;
|
||||
var page_size = AJS.getWindowSize();
|
||||
|
||||
if(this.fullscreen) {
|
||||
this.width = overlay_w-40;
|
||||
this.height = page_size.h-80;
|
||||
}
|
||||
AJS.setWidth(this.iframe, this.width);
|
||||
AJS.setHeight(this.iframe, this.height);
|
||||
|
||||
AJS.setWidth(this.header, overlay_w);
|
||||
},
|
||||
|
||||
_setHeaderPos: function() {
|
||||
AJS.setTop(this.header, AJS.getScrollTop()+10);
|
||||
},
|
||||
|
||||
setWindowPosition: function() {
|
||||
var overlay_w = this.overlay.offsetWidth;
|
||||
var page_size = AJS.getWindowSize();
|
||||
AJS.setLeft(this.g_window, ((overlay_w - 50 - this.width)/2));
|
||||
|
||||
var header_top = AJS.getScrollTop()+55;
|
||||
if(!this.center_win) {
|
||||
AJS.setTop(this.g_window, header_top);
|
||||
}
|
||||
else {
|
||||
var fl = ((page_size.h - this.height) /2) + 20 + AJS.getScrollTop();
|
||||
if(fl < 0) fl = 0;
|
||||
if(header_top > fl) {
|
||||
fl = header_top;
|
||||
}
|
||||
AJS.setTop(this.g_window, fl);
|
||||
}
|
||||
this._setHeaderPos();
|
||||
},
|
||||
|
||||
onHide: function() {
|
||||
AJS.removeElement(this.header);
|
||||
AJS.removeClass(this.g_window, 'GB_Gallery');
|
||||
},
|
||||
|
||||
onShow: function() {
|
||||
if(this.use_fx)
|
||||
AJS.fx.fadeIn(this.header, {to: 1});
|
||||
else
|
||||
AJS.setOpacity(this.header, 1);
|
||||
}
|
||||
});
|
||||
|
||||
AJS.preloadImages(GB_ROOT_DIR+'g_close.gif');
|
||||
|
Before Width: | Height: | Size: 528 B |
|
Before Width: | Height: | Size: 525 B |
|
|
@ -1,20 +0,0 @@
|
|||
#GB_middle {
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
#GB_middle img {
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#GB_middle .disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
#GB_middle .left {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
#GB_middle .right {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
GB_showFullScreenSet = function(set, start_index, callback_fn) {
|
||||
var options = {
|
||||
type: 'page',
|
||||
fullscreen: true,
|
||||
center_win: false
|
||||
}
|
||||
var gb_sets = new GB_Sets(options, set);
|
||||
gb_sets.addCallback(callback_fn);
|
||||
gb_sets.showSet(start_index-1);
|
||||
return false;
|
||||
}
|
||||
|
||||
GB_showImageSet = function(set, start_index, callback_fn) {
|
||||
var options = {
|
||||
type: 'image',
|
||||
fullscreen: false,
|
||||
center_win: true,
|
||||
width: 300,
|
||||
height: 300
|
||||
}
|
||||
var gb_sets = new GB_Sets(options, set);
|
||||
gb_sets.addCallback(callback_fn);
|
||||
gb_sets.showSet(start_index-1);
|
||||
return false;
|
||||
}
|
||||
|
||||
GB_Sets = GB_Gallery.extend({
|
||||
init: function(options, set) {
|
||||
this.parent(options);
|
||||
if(!this.img_next) this.img_next = this.root_dir + 'next.gif';
|
||||
if(!this.img_prev) this.img_prev = this.root_dir + 'prev.gif';
|
||||
this.current_set = set;
|
||||
},
|
||||
|
||||
showSet: function(start_index) {
|
||||
this.current_index = start_index;
|
||||
|
||||
var item = this.current_set[this.current_index];
|
||||
this.show(item.url);
|
||||
this._setCaption(item.caption);
|
||||
|
||||
this.btn_prev = AJS.IMG({'class': 'left', src: this.img_prev});
|
||||
this.btn_next = AJS.IMG({'class': 'right', src: this.img_next});
|
||||
|
||||
AJS.AEV(this.btn_prev, 'click', AJS.$b(this.switchPrev, this));
|
||||
AJS.AEV(this.btn_next, 'click', AJS.$b(this.switchNext, this));
|
||||
|
||||
GB_STATUS = AJS.SPAN({'class': 'GB_navStatus'});
|
||||
AJS.ACN(AJS.$('GB_middle'), this.btn_prev, GB_STATUS, this.btn_next);
|
||||
|
||||
this.updateStatus();
|
||||
},
|
||||
|
||||
updateStatus: function() {
|
||||
AJS.setHTML(GB_STATUS, (this.current_index + 1) + ' / ' + this.current_set.length);
|
||||
if(this.current_index == 0) {
|
||||
AJS.addClass(this.btn_prev, 'disabled');
|
||||
}
|
||||
else {
|
||||
AJS.removeClass(this.btn_prev, 'disabled');
|
||||
}
|
||||
|
||||
if(this.current_index == this.current_set.length-1) {
|
||||
AJS.addClass(this.btn_next, 'disabled');
|
||||
}
|
||||
else {
|
||||
AJS.removeClass(this.btn_next, 'disabled');
|
||||
}
|
||||
},
|
||||
|
||||
_setCaption: function(caption) {
|
||||
AJS.setHTML(AJS.$('GB_caption'), caption);
|
||||
},
|
||||
|
||||
updateFrame: function() {
|
||||
var item = this.current_set[this.current_index];
|
||||
this._setCaption(item.caption);
|
||||
this.url = item.url;
|
||||
this.startLoading();
|
||||
},
|
||||
|
||||
switchPrev: function() {
|
||||
if(this.current_index != 0) {
|
||||
this.current_index--;
|
||||
this.updateFrame();
|
||||
this.updateStatus();
|
||||
}
|
||||
},
|
||||
|
||||
switchNext: function() {
|
||||
if(this.current_index != this.current_set.length-1) {
|
||||
this.current_index++
|
||||
this.updateFrame();
|
||||
this.updateStatus();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
AJS.AEV(window, 'load', function() {
|
||||
AJS.preloadImages(GB_ROOT_DIR+'next.gif', GB_ROOT_DIR+'prev.gif');
|
||||
});
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 74 B |
|
|
@ -1,39 +0,0 @@
|
|||
.GB_Window .content {
|
||||
background-color: #fff;
|
||||
border: 3px solid #ccc;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.GB_Window .header {
|
||||
border-bottom: 1px solid #aaa;
|
||||
border-top: 1px solid #999;
|
||||
border-left: 3px solid #ccc;
|
||||
border-right: 3px solid #ccc;
|
||||
margin: 0;
|
||||
|
||||
height: 22px;
|
||||
font-size: 12px;
|
||||
padding: 3px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.GB_Window .caption {
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.GB_Window .close { text-align: right; }
|
||||
.GB_Window .close span {
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.GB_Window .close img {
|
||||
cursor: pointer;
|
||||
padding: 0 3px 0 0;
|
||||
}
|
||||
|
||||
.GB_Window .on { border-bottom: 1px solid #333; }
|
||||
.GB_Window .click { border-bottom: 1px solid red; }
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
GB_show = function(caption, url, /* optional */ height, width, callback_fn) {
|
||||
var options = {
|
||||
caption: caption,
|
||||
height: height || 500,
|
||||
width: width || 500,
|
||||
fullscreen: false,
|
||||
callback_fn: callback_fn
|
||||
}
|
||||
var win = new GB_Window(options);
|
||||
return win.show(url);
|
||||
}
|
||||
|
||||
GB_showCenter = function(caption, url, /* optional */ height, width, callback_fn) {
|
||||
var options = {
|
||||
caption: caption,
|
||||
center_win: true,
|
||||
height: height || 500,
|
||||
width: width || 500,
|
||||
fullscreen: false,
|
||||
callback_fn: callback_fn
|
||||
}
|
||||
var win = new GB_Window(options);
|
||||
return win.show(url);
|
||||
}
|
||||
|
||||
GB_showFullScreen = function(caption, url, callback_fn) {
|
||||
var options = {
|
||||
caption: caption,
|
||||
fullscreen: true,
|
||||
callback_fn: callback_fn
|
||||
}
|
||||
var win = new GB_Window(options);
|
||||
return win.show(url);
|
||||
}
|
||||
|
||||
GB_Window = GreyBox.extend({
|
||||
init: function(options) {
|
||||
this.parent({});
|
||||
this.img_header = this.root_dir+"header_bg.gif";
|
||||
this.img_close = this.root_dir+"w_close.gif";
|
||||
this.show_close_img = true;
|
||||
AJS.update(this, options);
|
||||
this.addCallback(this.callback_fn);
|
||||
},
|
||||
|
||||
initHook: function() {
|
||||
AJS.addClass(this.g_window, 'GB_Window');
|
||||
|
||||
this.header = AJS.TABLE({'class': 'header'});
|
||||
this.header.style.backgroundImage = "url("+ this.img_header +")";
|
||||
|
||||
var td_caption = AJS.TD({'class': 'caption'}, this.caption);
|
||||
var td_close = AJS.TD({'class': 'close'});
|
||||
|
||||
if(this.show_close_img) {
|
||||
var img_close = AJS.IMG({'src': this.img_close});
|
||||
var span = AJS.SPAN('Close');
|
||||
|
||||
var btn = AJS.DIV(img_close, span);
|
||||
|
||||
AJS.AEV([img_close, span], 'mouseover', function() { AJS.addClass(span, 'on'); });
|
||||
AJS.AEV([img_close, span], 'mouseout', function() { AJS.removeClass(span, 'on'); });
|
||||
AJS.AEV([img_close, span], 'mousedown', function() { AJS.addClass(span, 'click'); });
|
||||
AJS.AEV([img_close, span], 'mouseup', function() { AJS.removeClass(span, 'click'); });
|
||||
AJS.AEV([img_close, span], 'click', GB_hide);
|
||||
|
||||
AJS.ACN(td_close, btn);
|
||||
}
|
||||
|
||||
tbody_header = AJS.TBODY();
|
||||
AJS.ACN(tbody_header, AJS.TR(td_caption, td_close));
|
||||
|
||||
AJS.ACN(this.header, tbody_header);
|
||||
AJS.ACN(this.top_cnt, this.header);
|
||||
|
||||
if(this.fullscreen)
|
||||
AJS.AEV(window, 'scroll', AJS.$b(this.setWindowPosition, this));
|
||||
},
|
||||
|
||||
setFrameSize: function() {
|
||||
if(this.fullscreen) {
|
||||
var page_size = AJS.getWindowSize();
|
||||
overlay_h = page_size.h;
|
||||
this.width = Math.round(this.overlay.offsetWidth - (this.overlay.offsetWidth/100)*10);
|
||||
this.height = Math.round(overlay_h - (overlay_h/100)*10);
|
||||
}
|
||||
|
||||
AJS.setWidth(this.header, this.width+6); //6 is for the left+right border
|
||||
AJS.setWidth(this.iframe, this.width);
|
||||
AJS.setHeight(this.iframe, this.height);
|
||||
},
|
||||
|
||||
setWindowPosition: function() {
|
||||
var page_size = AJS.getWindowSize();
|
||||
AJS.setLeft(this.g_window, ((page_size.w - this.width)/2)-13);
|
||||
|
||||
if(!this.center_win) {
|
||||
AJS.setTop(this.g_window, AJS.getScrollTop());
|
||||
}
|
||||
else {
|
||||
var fl = ((page_size.h - this.height) /2) - 20 + AJS.getScrollTop();
|
||||
if(fl < 0)
|
||||
fl = 0;
|
||||
AJS.setTop(this.g_window, fl);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
AJS.preloadImages(GB_ROOT_DIR+'w_close.gif', GB_ROOT_DIR+'header_bg.gif');
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>GreyBox - Installation</title>
|
||||
|
||||
<script type="text/javascript" src="greybox/AJS.js"></script>
|
||||
|
||||
<script type="text/javascript" src="static_files/help.js"></script>
|
||||
<link href="static_files/help.css" rel="stylesheet" type="text/css" media="all" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script>
|
||||
insertHeader();
|
||||
insertMenu('installation');
|
||||
</script>
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
Append following to your header section (in between <code><header>...</header></code>).
|
||||
<br />
|
||||
<span class="hl">GB_ROOT_DIR</span> is the URL where static files are located:
|
||||
<pre>
|
||||
<code><script type="text/javascript">
|
||||
var GB_ROOT_DIR = "http://mydomain.com/greybox/";
|
||||
</script></code>
|
||||
</pre>
|
||||
</li>
|
||||
GB_ROOT_DIR should be absolute.
|
||||
|
||||
<li>
|
||||
Append also following scripts and one stylesheet:
|
||||
<pre>
|
||||
<code><script type="text/javascript" src="greybox/AJS.js"></script>
|
||||
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
|
||||
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
|
||||
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" /></code>
|
||||
</pre>
|
||||
|
||||
AJS_fx.js is optional, it's used for effects. If you don't wish effects, then don't include AJS_fx.js in your header section.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
That's it, you are now ready to use GreyBox!
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>GreyBox - Normal usage</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
var GB_ROOT_DIR = "./greybox/";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="greybox/AJS.js"></script>
|
||||
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
|
||||
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
|
||||
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
|
||||
|
||||
<script type="text/javascript" src="static_files/help.js"></script>
|
||||
<link href="static_files/help.css" rel="stylesheet" type="text/css" media="all" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script>
|
||||
insertHeader();
|
||||
insertMenu('nrm_usage');
|
||||
</script>
|
||||
|
||||
<h2>Showing images</h2>
|
||||
|
||||
<h3 class="first">Showing one image:</h3>
|
||||
<h4>Syntax:</h4>
|
||||
<pre>
|
||||
<code><a href="URL" title="CAPTION" rel="gb_image[]">HTML</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<pre>
|
||||
<code><a href="http://static.flickr.com/119/294309231_a3d2a339b9.jpg" title="Flower" rel="gb_image[]">Show flower</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://static.flickr.com/119/294309231_a3d2a339b9.jpg" title="Flower" rel="gb_image[]">Show flower</a>
|
||||
|
||||
|
||||
<h3>Showing a group of images:</h3>
|
||||
<h4>Syntax:</h4>
|
||||
<pre>
|
||||
<code><a href="URL" title="CAPTION" rel="gb_imageset[NAME]">HTML</a></code>
|
||||
<code><a href="URL" title="CAPTION" rel="gb_imageset[NAME]">HTML</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<pre>
|
||||
<code><a href="static_files/salt.jpg" rel="gb_imageset[nice_pics]" title="Salt flats in Chile">Salt flats</a></code>
|
||||
<code><a href="static_files/night_valley.jpg" rel="gb_imageset[nice_pics]" title="Night valley">Night valley</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="static_files/salt.jpg" rel="gb_imageset[nice_pics]" title="Salt flats in Chile">Salt flats</a>
|
||||
<a href="static_files/night_valley.jpg" rel="gb_imageset[nice_pics]" title="Night valley">Night valley</a>
|
||||
|
||||
|
||||
<h2>Showing pages</h2>
|
||||
|
||||
<h3>Showing one page:</h3>
|
||||
<h4>Syntax:</h4>
|
||||
<pre>
|
||||
<code><a href="URL" title="CAPTION" rel="gb_page[WIDTH, HEIGHT]">HTML</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<pre>
|
||||
<code><a href="http://google.com/" title="Google" rel="gb_page[500, 500]">Launch Google.com</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://google.com/" title="Google" rel="gb_page[500, 500]">Launch Google.com</a>
|
||||
|
||||
|
||||
<h3>Showing one page as center window:</h3>
|
||||
<h4>Syntax:</h4>
|
||||
<pre>
|
||||
<code><a href="URL" title="CAPTION" rel="gb_page_center[WIDTH, HEIGHT]">HTML</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<pre>
|
||||
<code><a href="http://google.com/" title="Google" rel="gb_page_center[500, 500]">Launch Google.com</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://google.com/" title="Google" rel="gb_page_center[500, 500]">Launch Google.com</a>
|
||||
|
||||
|
||||
<h3>Showing one page in fullscreen:</h3>
|
||||
<h4>Syntax:</h4>
|
||||
<pre>
|
||||
<code><a href="URL" title="CAPTION" rel="gb_page_fs[]">HTML</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<pre>
|
||||
<code><a href="http://google.com/" title="Google" rel="gb_page_fs[]">Launch Google.com</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://google.com/" title="Google" rel="gb_page_fs[]">Launch Google.com</a>
|
||||
|
||||
<h3>Showing a group of pages:</h3>
|
||||
<h4>Syntax:</h4>
|
||||
<pre>
|
||||
<code><a href="URL" title="CAPTION" rel="gb_pageset[NAME]">HTML</a></code>
|
||||
<code><a href="URL" title="CAPTION" rel="gb_pageset[NAME]">HTML</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example:</h4>
|
||||
<pre>
|
||||
<code><a href="http://google.com/" title="Google" rel="gb_pageset[search_sites]">Launch Google search</a></code>
|
||||
<code><a href="http://search.yahoo.com/" rel="gb_pageset[search_sites]">Launch Yahoo search</a></code>
|
||||
</pre>
|
||||
|
||||
<h4>Example rendered:</h4>
|
||||
<a href="http://google.com/" title="Google" rel="gb_pageset[search_sites]">Launch Google search</a>
|
||||
<a href="http://search.yahoo.com/" rel="gb_pageset[search_sites]">Launch Yahoo search</a>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
body {
|
||||
font-family: helvetica, verdana, sans-serif;
|
||||
font-size: 12px;
|
||||
background-color: #fff;
|
||||
padding: 10px 35px 35px 35px;
|
||||
width: 800px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#top {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
margin: 35px 0 10px 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: #333;
|
||||
border-bottom: 1px solid #999;
|
||||
font-size: 15px;
|
||||
margin: 30px 0 3px 0;
|
||||
}
|
||||
|
||||
.first {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
color: black;
|
||||
font-size: 13px;
|
||||
margin: 10px 0 5px 0;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-size: 11px;
|
||||
margin-top: 5px;
|
||||
padding: 4px;
|
||||
background-color: #e3e2c6;
|
||||
border: 1px solid #999;
|
||||
}
|
||||
|
||||
.hl {
|
||||
background-color: #ffffcc;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0 0px 0 20px;
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 5px 0 5px 0;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Menu
|
||||
*/
|
||||
#menu {
|
||||
border-bottom: 1px solid #999;
|
||||
margin: 20px 0px;
|
||||
padding: 10px 0pt 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#menu li {
|
||||
display: inline;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
#menu a {
|
||||
background: #ddd none repeat;
|
||||
border: 1px solid #999;
|
||||
margin: 0 5px 0 5px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#menu a.current {
|
||||
background: #fff none repeat;
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
|
||||
#menu a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
var tmpl_header = AJS.join('', [
|
||||
'<div id="top"> <img src="static_files/logo.gif" alt="" /> <br />',
|
||||
'<span style="font-weight: bold; color: #333">A pop-up window that doesn\'t suck.</span>',
|
||||
'</div>'
|
||||
]);
|
||||
|
||||
function insertHeader() {
|
||||
AJS.DI(tmpl_header);
|
||||
}
|
||||
|
||||
var LINKS = {
|
||||
'installation': 'installation.html',
|
||||
'examples': 'examples.html',
|
||||
'nrm_usage': 'normal_usage.html',
|
||||
'adv_usage': 'advance_usage.html',
|
||||
'cmpr': 'compressing_greybox.html',
|
||||
'about': 'about.html'
|
||||
}
|
||||
|
||||
function insertMenu(current_page) {
|
||||
var menu = AJS.UL({id: 'menu'});
|
||||
var create_item = function(cls, name) {
|
||||
var item = AJS.LI({'class': cls});
|
||||
AJS.ACN(item, AJS.A({href: LINKS[cls]}, name));
|
||||
return item;
|
||||
}
|
||||
var items = [
|
||||
create_item('installation', 'Installation'),
|
||||
create_item('examples', 'Examples'),
|
||||
create_item('nrm_usage', 'Normal usage'),
|
||||
create_item('adv_usage', 'Advance usage'),
|
||||
create_item('cmpr', 'Compressing GreyBox'),
|
||||
create_item('about', 'About')
|
||||
];
|
||||
|
||||
AJS.map(items, function(item) {
|
||||
if(item.className == current_page) {
|
||||
AJS.addClass(AJS.$bytc('a', null, item)[0], 'current');
|
||||
}
|
||||
AJS.ACN(menu, item);
|
||||
});
|
||||
AJS.DI(menu);
|
||||
}
|
||||
|
||||
function insertCode() {
|
||||
var code = AJS.join('\n', arguments);
|
||||
var result = '<pre><code>';
|
||||
code = code.replace(/</g, '<').replace(/>/g, '>');
|
||||
result += code;
|
||||
result += '</code></pre>';
|
||||
document.write(result);
|
||||
}
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 541 B |
|
|
@ -1,436 +0,0 @@
|
|||
var GB_CURRENT=null;
|
||||
GB_hide=function(){
|
||||
GB_CURRENT.hide();
|
||||
};
|
||||
GreyBox=new AJS.Class({init:function(_1){
|
||||
this.use_fx=AJS.fx;
|
||||
this.type="page";
|
||||
this.overlay_click_close=false;
|
||||
this.salt=0;
|
||||
this.root_dir=GB_ROOT_DIR;
|
||||
this.callback_fns=[];
|
||||
this.reload_on_close=false;
|
||||
this.src_loader=this.root_dir+"loader_frame.html";
|
||||
var _2=window.location.hostname.indexOf("www");
|
||||
var _3=this.src_loader.indexOf("www");
|
||||
if(_2!=-1&&_3==-1){
|
||||
this.src_loader=this.src_loader.replace("://","://www.");
|
||||
}
|
||||
if(_2==-1&&_3!=-1){
|
||||
this.src_loader=this.src_loader.replace("://www.","://");
|
||||
}
|
||||
this.show_loading=true;
|
||||
AJS.update(this,_1);
|
||||
},addCallback:function(fn){
|
||||
if(fn){
|
||||
this.callback_fns.push(fn);
|
||||
}
|
||||
},show:function(_5){
|
||||
GB_CURRENT=this;
|
||||
this.url=_5;
|
||||
var _6=[AJS.$bytc("object"),AJS.$bytc("select")];
|
||||
AJS.map(AJS.flattenList(_6),function(_7){
|
||||
_7.style.visibility="hidden";
|
||||
});
|
||||
this.createElements();
|
||||
return false;
|
||||
},hide:function(){
|
||||
var _8=this.callback_fns;
|
||||
if(_8!=[]){
|
||||
AJS.map(_8,function(fn){
|
||||
fn();
|
||||
});
|
||||
}
|
||||
this.onHide();
|
||||
if(this.use_fx){
|
||||
var _a=this.overlay;
|
||||
AJS.fx.fadeOut(this.overlay,{onComplete:function(){
|
||||
AJS.removeElement(_a);
|
||||
_a=null;
|
||||
},duration:300});
|
||||
AJS.removeElement(this.g_window);
|
||||
}else{
|
||||
AJS.removeElement(this.g_window,this.overlay);
|
||||
}
|
||||
this.removeFrame();
|
||||
AJS.REV(window,"scroll",_GB_setOverlayDimension);
|
||||
AJS.REV(window,"resize",_GB_update);
|
||||
var _b=[AJS.$bytc("object"),AJS.$bytc("select")];
|
||||
AJS.map(AJS.flattenList(_b),function(_c){
|
||||
_c.style.visibility="visible";
|
||||
});
|
||||
GB_CURRENT=null;
|
||||
if(this.reload_on_close){
|
||||
window.location.reload();
|
||||
}
|
||||
},update:function(){
|
||||
this.setOverlayDimension();
|
||||
this.setFrameSize();
|
||||
this.setWindowPosition();
|
||||
},createElements:function(){
|
||||
this.initOverlay();
|
||||
this.g_window=AJS.DIV({"id":"GB_window"});
|
||||
AJS.hideElement(this.g_window);
|
||||
AJS.getBody().insertBefore(this.g_window,this.overlay.nextSibling);
|
||||
this.initFrame();
|
||||
this.initHook();
|
||||
this.update();
|
||||
var me=this;
|
||||
if(this.use_fx){
|
||||
AJS.fx.fadeIn(this.overlay,{duration:300,to:0.7,onComplete:function(){
|
||||
me.onShow();
|
||||
AJS.showElement(me.g_window);
|
||||
me.startLoading();
|
||||
}});
|
||||
}else{
|
||||
AJS.setOpacity(this.overlay,0.7);
|
||||
AJS.showElement(this.g_window);
|
||||
this.onShow();
|
||||
this.startLoading();
|
||||
}
|
||||
AJS.AEV(window,"scroll",_GB_setOverlayDimension);
|
||||
AJS.AEV(window,"resize",_GB_update);
|
||||
},removeFrame:function(){
|
||||
try{
|
||||
AJS.removeElement(this.iframe);
|
||||
}
|
||||
catch(e){
|
||||
}
|
||||
this.iframe=null;
|
||||
},startLoading:function(){
|
||||
this.iframe.src=this.src_loader+"?s="+this.salt++;
|
||||
AJS.showElement(this.iframe);
|
||||
},setOverlayDimension:function(){
|
||||
var _e=AJS.getWindowSize();
|
||||
if(AJS.isMozilla()||AJS.isOpera()){
|
||||
AJS.setWidth(this.overlay,"100%");
|
||||
}else{
|
||||
AJS.setWidth(this.overlay,_e.w);
|
||||
}
|
||||
var _f=Math.max(AJS.getScrollTop()+_e.h,AJS.getScrollTop()+this.height);
|
||||
if(_f<AJS.getScrollTop()){
|
||||
AJS.setHeight(this.overlay,_f);
|
||||
}else{
|
||||
AJS.setHeight(this.overlay,AJS.getScrollTop()+_e.h);
|
||||
}
|
||||
},initOverlay:function(){
|
||||
this.overlay=AJS.DIV({"id":"GB_overlay"});
|
||||
if(this.overlay_click_close){
|
||||
AJS.AEV(this.overlay,"click",GB_hide);
|
||||
}
|
||||
AJS.setOpacity(this.overlay,0);
|
||||
AJS.getBody().insertBefore(this.overlay,AJS.getBody().firstChild);
|
||||
},initFrame:function(){
|
||||
if(!this.iframe){
|
||||
var d={"name":"GB_frame","class":"GB_frame","frameBorder":0};
|
||||
this.iframe=AJS.IFRAME(d);
|
||||
this.middle_cnt=AJS.DIV({"class":"content"},this.iframe);
|
||||
this.top_cnt=AJS.DIV();
|
||||
this.bottom_cnt=AJS.DIV();
|
||||
AJS.ACN(this.g_window,this.top_cnt,this.middle_cnt,this.bottom_cnt);
|
||||
}
|
||||
},onHide:function(){
|
||||
},onShow:function(){
|
||||
},setFrameSize:function(){
|
||||
},setWindowPosition:function(){
|
||||
},initHook:function(){
|
||||
}});
|
||||
_GB_update=function(){
|
||||
if(GB_CURRENT){
|
||||
GB_CURRENT.update();
|
||||
}
|
||||
};
|
||||
_GB_setOverlayDimension=function(){
|
||||
if(GB_CURRENT){
|
||||
GB_CURRENT.setOverlayDimension();
|
||||
}
|
||||
};
|
||||
AJS.preloadImages(GB_ROOT_DIR+"indicator.gif");
|
||||
script_loaded=true;
|
||||
var GB_SETS={};
|
||||
function decoGreyboxLinks(){
|
||||
var as=AJS.$bytc("a");
|
||||
AJS.map(as,function(a){
|
||||
if(a.getAttribute("href")&&a.getAttribute("rel")){
|
||||
var rel=a.getAttribute("rel");
|
||||
if(rel.indexOf("gb_")==0){
|
||||
var _14=rel.match(/\w+/)[0];
|
||||
var _15=rel.match(/\[(.*)\]/)[1];
|
||||
var _16=0;
|
||||
var _17={"caption":a.title||"","url":a.href};
|
||||
if(_14=="gb_pageset"||_14=="gb_imageset"){
|
||||
if(!GB_SETS[_15]){
|
||||
GB_SETS[_15]=[];
|
||||
}
|
||||
GB_SETS[_15].push(_17);
|
||||
_16=GB_SETS[_15].length;
|
||||
}
|
||||
if(_14=="gb_pageset"){
|
||||
a.onclick=function(){
|
||||
GB_showFullScreenSet(GB_SETS[_15],_16);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(_14=="gb_imageset"){
|
||||
a.onclick=function(){
|
||||
GB_showImageSet(GB_SETS[_15],_16);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(_14=="gb_image"){
|
||||
a.onclick=function(){
|
||||
GB_showImage(_17.caption,_17.url);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(_14=="gb_page"){
|
||||
a.onclick=function(){
|
||||
var sp=_15.split(/, ?/);
|
||||
GB_show(_17.caption,_17.url,parseInt(sp[1]),parseInt(sp[0]));
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(_14=="gb_page_fs"){
|
||||
a.onclick=function(){
|
||||
GB_showFullScreen(_17.caption,_17.url);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
if(_14=="gb_page_center"){
|
||||
a.onclick=function(){
|
||||
var sp=_15.split(/, ?/);
|
||||
GB_showCenter(_17.caption,_17.url,parseInt(sp[1]),parseInt(sp[0]));
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
AJS.AEV(window,"load",decoGreyboxLinks);
|
||||
GB_showImage=function(_1a,url,_1c){
|
||||
var _1d={width:300,height:300,type:"image",fullscreen:false,center_win:true,caption:_1a,callback_fn:_1c};
|
||||
var win=new GB_Gallery(_1d);
|
||||
return win.show(url);
|
||||
};
|
||||
GB_showPage=function(_1f,url,_21){
|
||||
var _22={type:"page",caption:_1f,callback_fn:_21,fullscreen:true,center_win:false};
|
||||
var win=new GB_Gallery(_22);
|
||||
return win.show(url);
|
||||
};
|
||||
GB_Gallery=GreyBox.extend({init:function(_24){
|
||||
this.parent({});
|
||||
this.img_close=this.root_dir+"g_close.gif";
|
||||
AJS.update(this,_24);
|
||||
this.addCallback(this.callback_fn);
|
||||
},initHook:function(){
|
||||
AJS.addClass(this.g_window,"GB_Gallery");
|
||||
var _25=AJS.DIV({"class":"inner"});
|
||||
this.header=AJS.DIV({"class":"GB_header"},_25);
|
||||
AJS.setOpacity(this.header,0);
|
||||
AJS.getBody().insertBefore(this.header,this.overlay.nextSibling);
|
||||
var _26=AJS.TD({"id":"GB_caption","class":"caption","width":"40%"},this.caption);
|
||||
var _27=AJS.TD({"id":"GB_middle","class":"middle","width":"20%"});
|
||||
var _28=AJS.IMG({"src":this.img_close});
|
||||
AJS.AEV(_28,"click",GB_hide);
|
||||
var _29=AJS.TD({"class":"close","width":"40%"},_28);
|
||||
var _2a=AJS.TBODY(AJS.TR(_26,_27,_29));
|
||||
var _2b=AJS.TABLE({"cellspacing":"0","cellpadding":0,"border":0},_2a);
|
||||
AJS.ACN(_25,_2b);
|
||||
if(this.fullscreen){
|
||||
AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this));
|
||||
}else{
|
||||
AJS.AEV(window,"scroll",AJS.$b(this._setHeaderPos,this));
|
||||
}
|
||||
},setFrameSize:function(){
|
||||
var _2c=this.overlay.offsetWidth;
|
||||
var _2d=AJS.getWindowSize();
|
||||
if(this.fullscreen){
|
||||
this.width=_2c-40;
|
||||
this.height=_2d.h-80;
|
||||
}
|
||||
AJS.setWidth(this.iframe,this.width);
|
||||
AJS.setHeight(this.iframe,this.height);
|
||||
AJS.setWidth(this.header,_2c);
|
||||
},_setHeaderPos:function(){
|
||||
AJS.setTop(this.header,AJS.getScrollTop()+10);
|
||||
},setWindowPosition:function(){
|
||||
var _2e=this.overlay.offsetWidth;
|
||||
var _2f=AJS.getWindowSize();
|
||||
AJS.setLeft(this.g_window,((_2e-50-this.width)/2));
|
||||
var _30=AJS.getScrollTop()+55;
|
||||
if(!this.center_win){
|
||||
AJS.setTop(this.g_window,_30);
|
||||
}else{
|
||||
var fl=((_2f.h-this.height)/2)+20+AJS.getScrollTop();
|
||||
if(fl<0){
|
||||
fl=0;
|
||||
}
|
||||
if(_30>fl){
|
||||
fl=_30;
|
||||
}
|
||||
AJS.setTop(this.g_window,fl);
|
||||
}
|
||||
this._setHeaderPos();
|
||||
},onHide:function(){
|
||||
AJS.removeElement(this.header);
|
||||
AJS.removeClass(this.g_window,"GB_Gallery");
|
||||
},onShow:function(){
|
||||
if(this.use_fx){
|
||||
AJS.fx.fadeIn(this.header,{to:1});
|
||||
}else{
|
||||
AJS.setOpacity(this.header,1);
|
||||
}
|
||||
}});
|
||||
AJS.preloadImages(GB_ROOT_DIR+"g_close.gif");
|
||||
GB_showFullScreenSet=function(set,_33,_34){
|
||||
var _35={type:"page",fullscreen:true,center_win:false};
|
||||
var _36=new GB_Sets(_35,set);
|
||||
_36.addCallback(_34);
|
||||
_36.showSet(_33-1);
|
||||
return false;
|
||||
};
|
||||
GB_showImageSet=function(set,_38,_39){
|
||||
var _3a={type:"image",fullscreen:false,center_win:true,width:300,height:300};
|
||||
var _3b=new GB_Sets(_3a,set);
|
||||
_3b.addCallback(_39);
|
||||
_3b.showSet(_38-1);
|
||||
return false;
|
||||
};
|
||||
GB_Sets=GB_Gallery.extend({init:function(_3c,set){
|
||||
this.parent(_3c);
|
||||
if(!this.img_next){
|
||||
this.img_next=this.root_dir+"next.gif";
|
||||
}
|
||||
if(!this.img_prev){
|
||||
this.img_prev=this.root_dir+"prev.gif";
|
||||
}
|
||||
this.current_set=set;
|
||||
},showSet:function(_3e){
|
||||
this.current_index=_3e;
|
||||
var _3f=this.current_set[this.current_index];
|
||||
this.show(_3f.url);
|
||||
this._setCaption(_3f.caption);
|
||||
this.btn_prev=AJS.IMG({"class":"left",src:this.img_prev});
|
||||
this.btn_next=AJS.IMG({"class":"right",src:this.img_next});
|
||||
AJS.AEV(this.btn_prev,"click",AJS.$b(this.switchPrev,this));
|
||||
AJS.AEV(this.btn_next,"click",AJS.$b(this.switchNext,this));
|
||||
GB_STATUS=AJS.SPAN({"class":"GB_navStatus"});
|
||||
AJS.ACN(AJS.$("GB_middle"),this.btn_prev,GB_STATUS,this.btn_next);
|
||||
this.updateStatus();
|
||||
},updateStatus:function(){
|
||||
AJS.setHTML(GB_STATUS,(this.current_index+1)+" / "+this.current_set.length);
|
||||
if(this.current_index==0){
|
||||
AJS.addClass(this.btn_prev,"disabled");
|
||||
}else{
|
||||
AJS.removeClass(this.btn_prev,"disabled");
|
||||
}
|
||||
if(this.current_index==this.current_set.length-1){
|
||||
AJS.addClass(this.btn_next,"disabled");
|
||||
}else{
|
||||
AJS.removeClass(this.btn_next,"disabled");
|
||||
}
|
||||
},_setCaption:function(_40){
|
||||
AJS.setHTML(AJS.$("GB_caption"),_40);
|
||||
},updateFrame:function(){
|
||||
var _41=this.current_set[this.current_index];
|
||||
this._setCaption(_41.caption);
|
||||
this.url=_41.url;
|
||||
this.startLoading();
|
||||
},switchPrev:function(){
|
||||
if(this.current_index!=0){
|
||||
this.current_index--;
|
||||
this.updateFrame();
|
||||
this.updateStatus();
|
||||
}
|
||||
},switchNext:function(){
|
||||
if(this.current_index!=this.current_set.length-1){
|
||||
this.current_index++;
|
||||
this.updateFrame();
|
||||
this.updateStatus();
|
||||
}
|
||||
}});
|
||||
AJS.AEV(window,"load",function(){
|
||||
AJS.preloadImages(GB_ROOT_DIR+"next.gif",GB_ROOT_DIR+"prev.gif");
|
||||
});
|
||||
GB_show=function(_42,url,_44,_45,_46){
|
||||
var _47={caption:_42,height:_44||500,width:_45||500,fullscreen:false,callback_fn:_46};
|
||||
var win=new GB_Window(_47);
|
||||
return win.show(url);
|
||||
};
|
||||
GB_showCenter=function(_49,url,_4b,_4c,_4d){
|
||||
var _4e={caption:_49,center_win:true,height:_4b||500,width:_4c||500,fullscreen:false,callback_fn:_4d};
|
||||
var win=new GB_Window(_4e);
|
||||
return win.show(url);
|
||||
};
|
||||
GB_showFullScreen=function(_50,url,_52){
|
||||
var _53={caption:_50,fullscreen:true,callback_fn:_52};
|
||||
var win=new GB_Window(_53);
|
||||
return win.show(url);
|
||||
};
|
||||
GB_Window=GreyBox.extend({init:function(_55){
|
||||
this.parent({});
|
||||
this.img_header=this.root_dir+"header_bg.gif";
|
||||
this.img_close=this.root_dir+"w_close.gif";
|
||||
this.show_close_img=true;
|
||||
AJS.update(this,_55);
|
||||
this.addCallback(this.callback_fn);
|
||||
},initHook:function(){
|
||||
AJS.addClass(this.g_window,"GB_Window");
|
||||
this.header=AJS.TABLE({"class":"header"});
|
||||
this.header.style.backgroundImage="url("+this.img_header+")";
|
||||
var _56=AJS.TD({"class":"caption"},this.caption);
|
||||
var _57=AJS.TD({"class":"close"});
|
||||
if(this.show_close_img){
|
||||
var _58=AJS.IMG({"src":this.img_close});
|
||||
var _59=AJS.SPAN("Close");
|
||||
var btn=AJS.DIV(_58,_59);
|
||||
AJS.AEV([_58,_59],"mouseover",function(){
|
||||
AJS.addClass(_59,"on");
|
||||
});
|
||||
AJS.AEV([_58,_59],"mouseout",function(){
|
||||
AJS.removeClass(_59,"on");
|
||||
});
|
||||
AJS.AEV([_58,_59],"mousedown",function(){
|
||||
AJS.addClass(_59,"click");
|
||||
});
|
||||
AJS.AEV([_58,_59],"mouseup",function(){
|
||||
AJS.removeClass(_59,"click");
|
||||
});
|
||||
AJS.AEV([_58,_59],"click",GB_hide);
|
||||
AJS.ACN(_57,btn);
|
||||
}
|
||||
tbody_header=AJS.TBODY();
|
||||
AJS.ACN(tbody_header,AJS.TR(_56,_57));
|
||||
AJS.ACN(this.header,tbody_header);
|
||||
AJS.ACN(this.top_cnt,this.header);
|
||||
if(this.fullscreen){
|
||||
AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this));
|
||||
}
|
||||
},setFrameSize:function(){
|
||||
if(this.fullscreen){
|
||||
var _5b=AJS.getWindowSize();
|
||||
overlay_h=_5b.h;
|
||||
this.width=Math.round(this.overlay.offsetWidth-(this.overlay.offsetWidth/100)*10);
|
||||
this.height=Math.round(overlay_h-(overlay_h/100)*10);
|
||||
}
|
||||
AJS.setWidth(this.header,this.width+6);
|
||||
AJS.setWidth(this.iframe,this.width);
|
||||
AJS.setHeight(this.iframe,this.height);
|
||||
},setWindowPosition:function(){
|
||||
var _5c=AJS.getWindowSize();
|
||||
AJS.setLeft(this.g_window,((_5c.w-this.width)/2)-13);
|
||||
if(!this.center_win){
|
||||
AJS.setTop(this.g_window,AJS.getScrollTop());
|
||||
}else{
|
||||
var fl=((_5c.h-this.height)/2)-20+AJS.getScrollTop();
|
||||
if(fl<0){
|
||||
fl=0;
|
||||
}
|
||||
AJS.setTop(this.g_window,fl);
|
||||
}
|
||||
}});
|
||||
AJS.preloadImages(GB_ROOT_DIR+"w_close.gif",GB_ROOT_DIR+"header_bg.gif");
|
||||
|
||||
|
||||
script_loaded=true;
|
||||
|
|
@ -1,158 +0,0 @@
|
|||
/* Last-Modified: 28/06/06 00:08:22 */
|
||||
#GB_overlay {
|
||||
background-color: #000;
|
||||
position: absolute;
|
||||
margin: auto;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
#GB_window {
|
||||
left: 0;
|
||||
top: 0;
|
||||
font-size: 1px;
|
||||
position: absolute;
|
||||
overflow: visible;
|
||||
z-index: 150;
|
||||
}
|
||||
|
||||
#GB_window .content {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#GB_frame {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.GB_Gallery {
|
||||
margin: 0 22px 0 22px;
|
||||
}
|
||||
|
||||
.GB_Gallery .content {
|
||||
background-color: #fff;
|
||||
border: 3px solid #ddd;
|
||||
}
|
||||
|
||||
.GB_header {
|
||||
top: 10px;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
z-index: 500;
|
||||
position: absolute;
|
||||
border-bottom: 2px solid #555;
|
||||
border-top: 2px solid #555;
|
||||
}
|
||||
|
||||
.GB_header .inner {
|
||||
background-color: #333;
|
||||
font-family: Arial, Verdana, sans-serif;
|
||||
padding: 2px 20px 2px 20px;
|
||||
}
|
||||
|
||||
.GB_header table {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-right: 0px;
|
||||
border-top: 0px;
|
||||
}
|
||||
|
||||
.GB_header td {
|
||||
background-color: #333333;
|
||||
border-bottom: 0px;
|
||||
border-left: 0px;
|
||||
padding: 0em 0em;
|
||||
}
|
||||
|
||||
.GB_header .caption {
|
||||
text-align: left;
|
||||
color: #eee;
|
||||
white-space: nowrap;
|
||||
font-size: 20px;
|
||||
border-collapse: separate;
|
||||
}
|
||||
|
||||
.GB_header .close {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.GB_header .close img {
|
||||
z-index: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.GB_header .middle {
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
#GB_middle {
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
#GB_middle img {
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#GB_middle .disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
#GB_middle .left {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
#GB_middle .right {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
|
||||
.GB_Window .content {
|
||||
background-color: #fff;
|
||||
border: 3px solid #ccc;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.GB_Window .header {
|
||||
border-bottom: 1px solid #aaa;
|
||||
border-top: 1px solid #999;
|
||||
border-left: 3px solid #ccc;
|
||||
border-right: 3px solid #ccc;
|
||||
margin: 0;
|
||||
|
||||
height: 22px;
|
||||
font-size: 12px;
|
||||
padding: 3px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.GB_Window .caption {
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.GB_Window .close { text-align: right; }
|
||||
.GB_Window .close span {
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.GB_Window .close img {
|
||||
cursor: pointer;
|
||||
padding: 0 3px 0 0;
|
||||
}
|
||||
|
||||
.GB_Window .on { border-bottom: 1px solid #333; }
|
||||
.GB_Window .click { border-bottom: 1px solid red; }
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 8.0 KiB |
|
|
@ -1,104 +0,0 @@
|
|||
<!--
|
||||
Notice: I feel so dirty doing this, but its the only way to make it cross browser.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
var GB = parent.GB_CURRENT;
|
||||
document.write('<script type="text/javascript" src="AJS.js"><\/script>');
|
||||
if(GB.use_fx) {
|
||||
document.write('<script type="text/javascript" src="AJS_fx.js"><\/script>');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#GB_frame {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#loading {
|
||||
padding-top: 50px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="loading">
|
||||
<img src="indicator.gif">
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var loading = AJS.$('loading');
|
||||
var gb_type = GB.type;
|
||||
var gb_url = GB.url;
|
||||
|
||||
//Start loading in the iframe
|
||||
if(gb_type == "page") {
|
||||
document.write('<iframe id="GB_frame" src="' + gb_url + '" frameborder="0"></iframe>');
|
||||
}
|
||||
else {
|
||||
var img_holder = new Image();
|
||||
img_holder.src = gb_url;
|
||||
document.write('<img id="GB_frame" src="' + gb_url + '">');
|
||||
}
|
||||
var frame = AJS.$('GB_frame');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
function setupOuterGB() {
|
||||
frame.style.visibility = 'visible';
|
||||
GB.setFrameSize();
|
||||
GB.setWindowPosition();
|
||||
}
|
||||
|
||||
function loaded() {
|
||||
AJS.removeElement(loading);
|
||||
|
||||
GB.overlay.innerHTML += " "; //Safari bugfix
|
||||
|
||||
if(gb_type == "image") {
|
||||
if(img_holder.width != 0 && img_holder.height != 0) {
|
||||
var width = img_holder.width;
|
||||
var height = img_holder.height;
|
||||
|
||||
GB.width = width;
|
||||
GB.height = height;
|
||||
|
||||
setupOuterGB();
|
||||
|
||||
if(GB.use_fx) {
|
||||
AJS.setOpacity(frame, 0);
|
||||
AJS.fx.fadeIn(frame);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
GB.width = frame.offsetWidth;
|
||||
GB.height = frame.offsetHeight;
|
||||
setupOuterGB();
|
||||
}
|
||||
}
|
||||
|
||||
if(GB.show_loading) {
|
||||
AJS.AEV(window, 'load', function(e) {
|
||||
loaded();
|
||||
});
|
||||
}
|
||||
else {
|
||||
loaded();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 528 B |
|
Before Width: | Height: | Size: 525 B |
|
Before Width: | Height: | Size: 74 B |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
|
@ -1,13 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* Copyright (c) 2006-2008 Sam Collett (http://www.texotela.co.uk)
|
||||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
*
|
||||
* Version 2.1
|
||||
* Demo: http://www.texotela.co.uk/code/jquery/checkboxes/
|
||||
*
|
||||
* $LastChangedDate$
|
||||
* $Rev$
|
||||
*/
|
||||
;(function(d){d.fn.toggleCheckboxes=function(a,b){a=a||"*";b=b||false;var c=d([]);this.each(function(){var e=d("input[type=checkbox]",this).filter(a).each(function(){this.checked=!this.checked}).filter(":checked");c=e});if(!b){c=this}return c};d.fn.checkCheckboxes=function(a,b){a=a||"*";b=b||false;var c=d([]);this.each(function(){var e=d("input[type=checkbox]",this).filter(a).each(function(){this.checked=true}).filter(":checked");c=e});if(!b){c=this}return c};d.fn.unCheckCheckboxes=function(a,b){a=a||"*";b=b||false;var c=d([]);this.each(function(){var e=d("input[type=checkbox]",this).filter(a).each(function(){this.checked=false}).filter(":not(:checked)");c=e});if(!b){c=this}return c};d.radioCheckboxGroup=function(e,a){a=a||"*";var b="input[type=checkbox]";if(e){b+="[name="+e+"]"}var c=d(b).filter(a);c.click(function(){c.not(this).each(function(){this.checked=false}).end()})}})(jQuery);
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
/*
|
||||
|
||||
highlight v3
|
||||
|
||||
Highlights arbitrary terms.
|
||||
|
||||
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
|
||||
|
||||
MIT license.
|
||||
|
||||
Johann Burkard
|
||||
<http://johannburkard.de>
|
||||
<mailto:jb@eaio.com>
|
||||
|
||||
*/
|
||||
|
||||
jQuery.fn.highlight = function(pat) {
|
||||
function innerHighlight(node, pat) {
|
||||
var skip = 0;
|
||||
if (node.nodeType == 3) {
|
||||
var pos = node.data.toUpperCase().indexOf(pat);
|
||||
if (pos >= 0) {
|
||||
var spannode = document.createElement('span');
|
||||
spannode.className = 'term';
|
||||
var middlebit = node.splitText(pos);
|
||||
var endbit = middlebit.splitText(pat.length);
|
||||
var middleclone = middlebit.cloneNode(true);
|
||||
spannode.appendChild(middleclone);
|
||||
middlebit.parentNode.replaceChild(spannode, middlebit);
|
||||
skip = 1;
|
||||
}
|
||||
}
|
||||
else if (node.nodeType == 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) {
|
||||
for (var i = 0; i < node.childNodes.length; ++i) {
|
||||
i += innerHighlight(node.childNodes[i], pat);
|
||||
}
|
||||
}
|
||||
return skip;
|
||||
}
|
||||
return this.each(function() {
|
||||
innerHighlight(this, pat.toUpperCase());
|
||||
});
|
||||
};
|
||||
|
||||
jQuery.fn.removeHighlight = function() {
|
||||
return this.find("span.term").each(function() {
|
||||
this.parentNode.firstChild.nodeName;
|
||||
with (this.parentNode) {
|
||||
replaceChild(this.firstChild, this);
|
||||
normalize();
|
||||
}
|
||||
}).end();
|
||||
};
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
/**
|
||||
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
|
||||
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
|
||||
*
|
||||
* @param f onMouseOver function || An object with configuration options
|
||||
* @param g onMouseOut function || Nothing (use configuration options object)
|
||||
* @author Brian Cherne <brian@cherne.net>
|
||||
*/
|
||||
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length)settings.single='metadata';var data=$.data(elem,settings.single);if(data)return data;data="{}";var getData=function(data){if(typeof data!="string")return data;if(data.indexOf('{')<0){data=eval("("+data+")");}}
|
||||
var getObject=function(data){if(typeof data!="string")return data;data=eval("("+data+")");return data;}
|
||||
if(settings.type=="html5"){var object={};$(elem.attributes).each(function(){var name=this.nodeName;if(name.match(/^data-/))name=name.replace(/^data-/,'');else return true;object[name]=getObject(this.nodeValue);});}else{if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m)
|
||||
data=m[1];}else if(settings.type=="elem"){if(!elem.getElementsByTagName)returnvar;e=elem.getElementsByTagName(settings.name);if(e.length)
|
||||
data=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)
|
||||
data=attr;}
|
||||
object=getObject(data.indexOf("{")<0?"{"+data+"}":data);}
|
||||
$.data(elem,settings.single,object);return object;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);
|
||||
|
|
@ -1,392 +0,0 @@
|
|||
/*
|
||||
### jQuery Star Rating Plugin v3.14 - 2012-01-26 ###
|
||||
* Home: http://www.fyneworks.com/jquery/star-rating/
|
||||
* Code: http://code.google.com/p/jquery-star-rating-plugin/
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
###
|
||||
*/
|
||||
|
||||
/*# AVOID COLLISIONS #*/
|
||||
;if(window.jQuery) (function($){
|
||||
/*# AVOID COLLISIONS #*/
|
||||
|
||||
// IE6 Background Image Fix
|
||||
if ($.browser.msie) try { document.execCommand("BackgroundImageCache", false, true)} catch(e) { };
|
||||
// Thanks to http://www.visualjquery.com/rating/rating_redux.html
|
||||
|
||||
// plugin initialization
|
||||
$.fn.rating = function(options){
|
||||
if(this.length==0) return this; // quick fail
|
||||
|
||||
// Handle API methods
|
||||
if(typeof arguments[0]=='string'){
|
||||
// Perform API methods on individual elements
|
||||
if(this.length>1){
|
||||
var args = arguments;
|
||||
return this.each(function(){
|
||||
$.fn.rating.apply($(this), args);
|
||||
});
|
||||
};
|
||||
// Invoke API method handler
|
||||
$.fn.rating[arguments[0]].apply(this, $.makeArray(arguments).slice(1) || []);
|
||||
// Quick exit...
|
||||
return this;
|
||||
};
|
||||
|
||||
// Initialize options for this call
|
||||
var options = $.extend(
|
||||
{}/* new object */,
|
||||
$.fn.rating.options/* default options */,
|
||||
options || {} /* just-in-time options */
|
||||
);
|
||||
|
||||
// Allow multiple controls with the same name by making each call unique
|
||||
$.fn.rating.calls++;
|
||||
|
||||
// loop through each matched element
|
||||
this
|
||||
.not('.star-rating-applied')
|
||||
.addClass('star-rating-applied')
|
||||
.each(function(){
|
||||
|
||||
// Load control parameters / find context / etc
|
||||
var control, input = $(this);
|
||||
var eid = (this.name || 'unnamed-rating').replace(/\[|\]/g, '_').replace(/^\_+|\_+$/g,'');
|
||||
var context = $(this.form || document.body);
|
||||
|
||||
// FIX: http://code.google.com/p/jquery-star-rating-plugin/issues/detail?id=23
|
||||
var raters = context.data('rating');
|
||||
if(!raters || raters.call!=$.fn.rating.calls) raters = { count:0, call:$.fn.rating.calls };
|
||||
var rater = raters[eid];
|
||||
|
||||
// if rater is available, verify that the control still exists
|
||||
if(rater) control = rater.data('rating');
|
||||
|
||||
if(rater && control)//{// save a byte!
|
||||
// add star to control if rater is available and the same control still exists
|
||||
control.count++;
|
||||
|
||||
//}// save a byte!
|
||||
else{
|
||||
// create new control if first star or control element was removed/replaced
|
||||
|
||||
// Initialize options for this rater
|
||||
control = $.extend(
|
||||
{}/* new object */,
|
||||
options || {} /* current call options */,
|
||||
($.metadata? input.metadata(): ($.meta?input.data():null)) || {}, /* metadata options */
|
||||
{ count:0, stars: [], inputs: [] }
|
||||
);
|
||||
|
||||
// increment number of rating controls
|
||||
control.serial = raters.count++;
|
||||
|
||||
// create rating element
|
||||
rater = $('<span class="star-rating-control"/>');
|
||||
input.before(rater);
|
||||
|
||||
// Mark element for initialization (once all stars are ready)
|
||||
rater.addClass('rating-to-be-drawn');
|
||||
|
||||
// Accept readOnly setting from 'disabled' property
|
||||
if(input.attr('disabled') || input.hasClass('disabled')) control.readOnly = true;
|
||||
|
||||
// Accept required setting from class property (class='required')
|
||||
if(input.hasClass('required')) control.required = true;
|
||||
|
||||
// Create 'cancel' button
|
||||
rater.append(
|
||||
control.cancel = $('<div class="rating-cancel"><a title="' + control.cancel + '">' + control.cancelValue + '</a></div>')
|
||||
.mouseover(function(){
|
||||
$(this).rating('drain');
|
||||
$(this).addClass('star-rating-hover');
|
||||
//$(this).rating('focus');
|
||||
})
|
||||
.mouseout(function(){
|
||||
$(this).rating('draw');
|
||||
$(this).removeClass('star-rating-hover');
|
||||
//$(this).rating('blur');
|
||||
})
|
||||
.click(function(){
|
||||
$(this).rating('select');
|
||||
})
|
||||
.data('rating', control)
|
||||
);
|
||||
|
||||
}; // first element of group
|
||||
|
||||
// insert rating star
|
||||
var star = $('<div class="star-rating rater-'+ control.serial +'"><a title="' + (this.title || this.value) + '">' + this.value + '</a></div>');
|
||||
rater.append(star);
|
||||
|
||||
// inherit attributes from input element
|
||||
if(this.id) star.attr('id', this.id);
|
||||
if(this.className) star.addClass(this.className);
|
||||
|
||||
// Half-stars?
|
||||
if(control.half) control.split = 2;
|
||||
|
||||
// Prepare division control
|
||||
if(typeof control.split=='number' && control.split>0){
|
||||
var stw = ($.fn.width ? star.width() : 0) || control.starWidth;
|
||||
var spi = (control.count % control.split), spw = Math.floor(stw/control.split);
|
||||
star
|
||||
// restrict star's width and hide overflow (already in CSS)
|
||||
.width(spw)
|
||||
// move the star left by using a negative margin
|
||||
// this is work-around to IE's stupid box model (position:relative doesn't work)
|
||||
.find('a').css({ 'margin-left':'-'+ (spi*spw) +'px' })
|
||||
};
|
||||
|
||||
// readOnly?
|
||||
if(control.readOnly)//{ //save a byte!
|
||||
// Mark star as readOnly so user can customize display
|
||||
star.addClass('star-rating-readonly');
|
||||
//} //save a byte!
|
||||
else//{ //save a byte!
|
||||
// Enable hover css effects
|
||||
star.addClass('star-rating-live')
|
||||
// Attach mouse events
|
||||
.mouseover(function(){
|
||||
$(this).rating('fill');
|
||||
$(this).rating('focus');
|
||||
})
|
||||
.mouseout(function(){
|
||||
$(this).rating('draw');
|
||||
$(this).rating('blur');
|
||||
})
|
||||
.click(function(){
|
||||
$(this).rating('select');
|
||||
})
|
||||
;
|
||||
//}; //save a byte!
|
||||
|
||||
// set current selection
|
||||
if(this.checked) control.current = star;
|
||||
|
||||
// set current select for links
|
||||
if(this.nodeName=="A"){
|
||||
if($(this).hasClass('selected'))
|
||||
control.current = star;
|
||||
};
|
||||
|
||||
// hide input element
|
||||
input.hide();
|
||||
|
||||
// backward compatibility, form element to plugin
|
||||
input.change(function(){
|
||||
$(this).rating('select');
|
||||
});
|
||||
|
||||
// attach reference to star to input element and vice-versa
|
||||
star.data('rating.input', input.data('rating.star', star));
|
||||
|
||||
// store control information in form (or body when form not available)
|
||||
control.stars[control.stars.length] = star[0];
|
||||
control.inputs[control.inputs.length] = input[0];
|
||||
control.rater = raters[eid] = rater;
|
||||
control.context = context;
|
||||
|
||||
input.data('rating', control);
|
||||
rater.data('rating', control);
|
||||
star.data('rating', control);
|
||||
context.data('rating', raters);
|
||||
}); // each element
|
||||
|
||||
// Initialize ratings (first draw)
|
||||
$('.rating-to-be-drawn').rating('draw').removeClass('rating-to-be-drawn');
|
||||
|
||||
return this; // don't break the chain...
|
||||
};
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
### Core functionality and API ###
|
||||
*/
|
||||
$.extend($.fn.rating, {
|
||||
// Used to append a unique serial number to internal control ID
|
||||
// each time the plugin is invoked so same name controls can co-exist
|
||||
calls: 0,
|
||||
|
||||
focus: function(){
|
||||
var control = this.data('rating'); if(!control) return this;
|
||||
if(!control.focus) return this; // quick fail if not required
|
||||
// find data for event
|
||||
var input = $(this).data('rating.input') || $( this.tagName=='INPUT' ? this : null );
|
||||
// focus handler, as requested by focusdigital.co.uk
|
||||
if(control.focus) control.focus.apply(input[0], [input.val(), $('a', input.data('rating.star'))[0]]);
|
||||
}, // $.fn.rating.focus
|
||||
|
||||
blur: function(){
|
||||
var control = this.data('rating'); if(!control) return this;
|
||||
if(!control.blur) return this; // quick fail if not required
|
||||
// find data for event
|
||||
var input = $(this).data('rating.input') || $( this.tagName=='INPUT' ? this : null );
|
||||
// blur handler, as requested by focusdigital.co.uk
|
||||
if(control.blur) control.blur.apply(input[0], [input.val(), $('a', input.data('rating.star'))[0]]);
|
||||
}, // $.fn.rating.blur
|
||||
|
||||
fill: function(){ // fill to the current mouse position.
|
||||
var control = this.data('rating'); if(!control) return this;
|
||||
// do not execute when control is in read-only mode
|
||||
if(control.readOnly) return;
|
||||
// Reset all stars and highlight them up to this element
|
||||
this.rating('drain');
|
||||
this.prevAll().andSelf().filter('.rater-'+ control.serial).addClass('star-rating-hover');
|
||||
},// $.fn.rating.fill
|
||||
|
||||
drain: function() { // drain all the stars.
|
||||
var control = this.data('rating'); if(!control) return this;
|
||||
// do not execute when control is in read-only mode
|
||||
if(control.readOnly) return;
|
||||
// Reset all stars
|
||||
control.rater.children().filter('.rater-'+ control.serial).removeClass('star-rating-on').removeClass('star-rating-hover');
|
||||
},// $.fn.rating.drain
|
||||
|
||||
draw: function(){ // set value and stars to reflect current selection
|
||||
var control = this.data('rating'); if(!control) return this;
|
||||
// Clear all stars
|
||||
this.rating('drain');
|
||||
// Set control value
|
||||
if(control.current){
|
||||
control.current.data('rating.input').attr('checked','checked');
|
||||
control.current.prevAll().andSelf().filter('.rater-'+ control.serial).addClass('star-rating-on');
|
||||
}
|
||||
else
|
||||
$(control.inputs).removeAttr('checked');
|
||||
// Show/hide 'cancel' button
|
||||
control.cancel[control.readOnly || control.required?'hide':'show']();
|
||||
// Add/remove read-only classes to remove hand pointer
|
||||
this.siblings()[control.readOnly?'addClass':'removeClass']('star-rating-readonly');
|
||||
},// $.fn.rating.draw
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
select: function(value,wantCallBack){ // select a value
|
||||
|
||||
// ***** MODIFICATION *****
|
||||
// Thanks to faivre.thomas - http://code.google.com/p/jquery-star-rating-plugin/issues/detail?id=27
|
||||
//
|
||||
// ***** LIST OF MODIFICATION *****
|
||||
// ***** added Parameter wantCallBack : false if you don't want a callback. true or undefined if you want postback to be performed at the end of this method'
|
||||
// ***** recursive calls to this method were like : ... .rating('select') it's now like .rating('select',undefined,wantCallBack); (parameters are set.)
|
||||
// ***** line which is calling callback
|
||||
// ***** /LIST OF MODIFICATION *****
|
||||
|
||||
var control = this.data('rating'); if(!control) return this;
|
||||
// do not execute when control is in read-only mode
|
||||
if(control.readOnly) return;
|
||||
// clear selection
|
||||
control.current = null;
|
||||
// programmatically (based on user input)
|
||||
if(typeof value!='undefined'){
|
||||
// select by index (0 based)
|
||||
if(typeof value=='number')
|
||||
return $(control.stars[value]).rating('select',undefined,wantCallBack);
|
||||
// select by literal value (must be passed as a string
|
||||
if(typeof value=='string')
|
||||
//return
|
||||
$.each(control.stars, function(){
|
||||
if($(this).data('rating.input').val()==value) $(this).rating('select',undefined,wantCallBack);
|
||||
});
|
||||
}
|
||||
else
|
||||
control.current = this[0].tagName=='INPUT' ?
|
||||
this.data('rating.star') :
|
||||
(this.is('.rater-'+ control.serial) ? this : null);
|
||||
|
||||
// Update rating control state
|
||||
this.data('rating', control);
|
||||
// Update display
|
||||
this.rating('draw');
|
||||
// find data for event
|
||||
var input = $( control.current ? control.current.data('rating.input') : null );
|
||||
// click callback, as requested here: http://plugins.jquery.com/node/1655
|
||||
|
||||
// **** MODIFICATION *****
|
||||
// Thanks to faivre.thomas - http://code.google.com/p/jquery-star-rating-plugin/issues/detail?id=27
|
||||
//
|
||||
//old line doing the callback :
|
||||
//if(control.callback) control.callback.apply(input[0], [input.val(), $('a', control.current)[0]]);// callback event
|
||||
//
|
||||
//new line doing the callback (if i want :)
|
||||
if((wantCallBack ||wantCallBack == undefined) && control.callback) control.callback.apply(input[0], [input.val(), $('a', control.current)[0]]);// callback event
|
||||
//to ensure retro-compatibility, wantCallBack must be considered as true by default
|
||||
// **** /MODIFICATION *****
|
||||
|
||||
},// $.fn.rating.select
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
readOnly: function(toggle, disable){ // make the control read-only (still submits value)
|
||||
var control = this.data('rating'); if(!control) return this;
|
||||
// setread-only status
|
||||
control.readOnly = toggle || toggle==undefined ? true : false;
|
||||
// enable/disable control value submission
|
||||
if(disable) $(control.inputs).attr("disabled", "disabled");
|
||||
else $(control.inputs).removeAttr("disabled");
|
||||
// Update rating control state
|
||||
this.data('rating', control);
|
||||
// Update display
|
||||
this.rating('draw');
|
||||
},// $.fn.rating.readOnly
|
||||
|
||||
disable: function(){ // make read-only and never submit value
|
||||
this.rating('readOnly', true, true);
|
||||
},// $.fn.rating.disable
|
||||
|
||||
enable: function(){ // make read/write and submit value
|
||||
this.rating('readOnly', false, false);
|
||||
}// $.fn.rating.select
|
||||
|
||||
});
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
### Default Settings ###
|
||||
eg.: You can override default control like this:
|
||||
$.fn.rating.options.cancel = 'Clear';
|
||||
*/
|
||||
$.fn.rating.options = { //$.extend($.fn.rating, { options: {
|
||||
cancel: 'Cancel Rating', // advisory title for the 'cancel' link
|
||||
cancelValue: '', // value to submit when user click the 'cancel' link
|
||||
split: 0, // split the star into how many parts?
|
||||
|
||||
// Width of star image in case the plugin can't work it out. This can happen if
|
||||
// the jQuery.dimensions plugin is not available OR the image is hidden at installation
|
||||
starWidth: 16//,
|
||||
|
||||
//NB.: These don't need to be pre-defined (can be undefined/null) so let's save some code!
|
||||
//half: false, // just a shortcut to control.split = 2
|
||||
//required: false, // disables the 'cancel' button so user can only select one of the specified values
|
||||
//readOnly: false, // disable rating plugin interaction/ values cannot be changed
|
||||
//focus: function(){}, // executed when stars are focused
|
||||
//blur: function(){}, // executed when stars are focused
|
||||
//callback: function(){}, // executed when a star is clicked
|
||||
}; //} });
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
### Default implementation ###
|
||||
The plugin will attach itself to file inputs
|
||||
with the class 'multi' when the page loads
|
||||
*/
|
||||
$(function(){
|
||||
$('input[type=radio].star').rating();
|
||||
});
|
||||
|
||||
|
||||
|
||||
/*# AVOID COLLISIONS #*/
|
||||
})(jQuery);
|
||||
/*# AVOID COLLISIONS #*/
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 264 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1023 B |